PageSourceSearch

https://ashritai.vercel.app/_next/static/chunks/3al-9-si5-xkq.js

js ashritai.vercel.app collected 2026-10-03 06:07:42 UTC 204,883 bytes, 108 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52683,e=>{"use strict";let t,i,s;var n,r=e.i(43476),a=e.i(71645);let o={about:{id:"about",title:"Text Editor",icon:"FileText",color:"#f4f4f4",width:640,height:480,minWidth:320,minHeight:240,resizable:!0,category:"Accessories"},skills:{id:"skills",title:"System Monitor",icon:"Activity",color:"#2d2d2d",width:720,height:520,minWidth:400,minHeight:300,resizable:!0,category:"System"},projects:{id:"projects",title:"Files",icon:"FolderOpen",color:"#f4f4f4",width:800,height:560,minWidth:400,minHeight:300,resizable:!0,category:"Accessories"},resume:{id:"resume",title:"Document Viewer",icon:"File",color:"#f4f4f4",width:680,height:720,minWidth:360,minHeight:400,resizable:!0,category:"Office"},contact:{id:"contact",title:"Terminal",icon:"Terminal",color:"#300a24",width:700,height:460,minWidth:360,minHeight:240,resizable:!0,category:"System"},browser:{id:"browser",title:"Firefox Web Browser",icon:"Globe",color:"#1e1e2e",width:900,height:620,minWidth:400,minHeight:300,resizable:!0,category:"Internet"},vscode:{id:"vscode",title:"Visual Studio Code",icon:"Code2",color:"#1e1e2e",width:920,height:620,minWidth:420,minHeight:300,resizable:!0,category:"Development"},terminal:{id:"terminal",title:"Terminal",icon:"Terminal",color:"#300a24",width:700,height:460,minWidth:360,minHeight:240,resizable:!0,category:"System"},files:{id:"files",title:"Files",icon:"FolderOpen",color:"#f4f4f4",width:800,height:560,minWidth:400,minHeight:300,resizable:!0,category:"Accessories"},settings:{id:"settings",title:"Settings",icon:"Settings",color:"#f4f4f4",width:560,height:420,minWidth:320,minHeight:240,resizable:!1,category:"System"},trash:{id:"trash",title:"Trash",icon:"Trash2",color:"#f4f4f4",width:400,height:300,minWidth:300,minHeight:200,resizable:!1,category:"Accessories"}},l=[{id:"home",appId:"about",label:"About Me",x:24,y:24},{id:"projects",appId:"projects",label:"Projects",x:24,y:104},{id:"resume",appId:"resume",label:"Resume.pdf",x:24,y:184},{id:"contact",appId:"contact",label:"Contact",x:24,y:264},{id:"github",appId:"browser",label:"GitHub",x:24,y:344,url:"https://github.com/ashritanshuman"},{id:"linkedin",appId:"browser",label:"LinkedIn",x:24,y:424,url:"https://linkedin.com/in/ashritanshuman/"},{id:"trash",appId:"trash",label:"Trash",x:24,y:504}],h=["files","browser","vscode","terminal","about","skills","projects","resume","contact","settings","trash"],c=[{label:"CPU Usage",value:95,color:"#e95420",usage:88},{label:"RAM Usage",value:90,color:"#772953",usage:84},{label:"GPU Usage",value:86,color:"#2c001e",usage:80},{label:"Storage",value:82,color:"#5e2750",usage:75},{label:"Network",value:88,color:"#aea79f",usage:82}],d={"CPU Usage":"Python, Java, JavaScript, SQL","RAM Usage":"React.js, Tailwind CSS, HTML/JS","GPU Usage":"OpenRouter AI, NumPy, Pandas",Storage:"MongoDB, Firebase, Express.js",Network:"Git, GitHub, Docker, Linux"},u=[{id:"skillora-ai",name:"Skillora AI – AI-Powered Resume Builder",description:"AI-powered resume-building platform enabling users to create structured, professional resumes with dynamic customization, real-time preview, and AI content generation.",tech:["React.js","Tailwind CSS","OpenRouter AI API Integration"],link:"https://skilloraai.vercel.app/",github:"https://github.com/ashritanshuman/skillora-ai",folder:"AI"},{id:"pathgen",name:"PathGen - Skills Roadmap Generator",description:"AI-powered learning roadmap platform that generates structured, personalized learning paths for technical skills and career roles with stage-by-stage curated resources.",tech:["HTML","Tailwind CSS","JavaScript"],link:"https://ashritanshuman.github.io/skill-roadmap-generator/",github:"https://github.com/ashritanshuman/skill-roadmap-generator",folder:"Web Development"},{id:"sgf-phoenix",name:"Study Group Finder",description:"Full-stack student collaboration platform to discover and connect with study groups based on shared academic interests, featuring secure auth and real-time cloud data.",tech:["React.js","Tailwind CSS","Firebase"],link:"https://sgfphoneix.vercel.app/",github:"https://github.com/ashritanshuman/study-group-finder",folder:"Full Stack"},{id:"sih-alumni",name:"Digital Alumni Data Management Platform",description:"Alumni Data Management and Engagement Platform built as Team Lead during Smart India Hackathon 2025 at ITM University Gwalior.",tech:["React.js","Tailwind CSS","Express.js","MongoDB"],github:"https://github.com/ashritanshuman/alumni-platform",folder:"Hackathons"},{id:"ubuntu-portfolio",name:"Ubuntu Portfolio OS",description:"Interactive desktop environment portfolio simulating Ubuntu Linux built with Next.js, React, Tailwind CSS, and Framer Motion.",tech:["Next.js","React.js","Tailwind CSS","TypeScript"],link:"https://ashritanshuman.vercel.app",github:"https://github.com/ashritanshuman/ubuntu-portfolio",folder:"Web Development"}],m=["Full Stack","Web Development","AI","Hackathons"],p={"about.js":{language:"javascript",content:`const about = {
2  name: "Ashrit Anshuman Pradhan",
3  location: "Gwalior, Madhya Pradesh, India",
4  role: "Full Stack Developer & Graphic Designer",
5  education: {
6    institution: "ITM University Gwalior",
7    degree: "Bachelor of Technology in Computer Science",
8    duration: "August 2025 -- September 2029"
9  },
10  experience: {
11    role: "Freelance Web Developer and Graphic Designer",
12    duration: "May 2025 -- Present",
13    highlights: [
14      "Delivered responsive, customized websites for 10+ local business clients",
15      "Completed graphic design & promotional projects for 20+ clients",
16      "Partnered with 3 schools for promotional event campaigns & creative outreach"
17    ]
18  },
19  leadership: {
20    event: "Smart India Hackathon (September 2025)",
21    role: "Team Lead (6-member team)",
22    project: "Digital Alumni Data Management and Engagement Platform"
23  }
24};
25
26export default about;`},"projects.js":{language:"javascript",content:`const projects = [
27  {
28    name: "Skillora AI – AI-Powered Resume Builder",
29    stack: ["React.js", "Tailwind CSS", "OpenRouter AI API"],
30    live: "https://skilloraai.vercel.app/",
31    description: "Dynamic resume builder with real-time preview & AI content generation."
32  },
33  {
34    name: "PathGen - Skills Roadmap Generator",
35    stack: ["HTML", "Tailwind CSS", "JavaScript"],
36    live: "https://ashritanshuman.github.io/skill-roadmap-generator/",
37    description: "AI-powered personalized learning roadmap generator."
38  },
39  {
40    name: "Study Group Finder",
41    stack: ["React.js", "Tailwind CSS", "Firebase"],
42    live: "https://sgfphoneix.vercel.app/",
43    description: "Full-stack peer academic collaboration platform."
44  },
45  {
46    name: "Digital Alumni Management Platform",
47    stack: ["React.js", "Express.js", "MongoDB"],
48    description: "SIH 2025 Alumni networking & data management platform."
49  }
50];
51
52export default projects;`},"skills.js":{language:"javascript",content:`const skills = {
53  languages: ["Python", "Java", "JavaScript", "SQL"],
54  developerTools: ["Git", "GitHub", "VS Code", "Docker", "Linux"],
55  technologiesAndFrameworks: [
56    "React.js",
57    "Tailwind CSS",
58    "MongoDB",
59    "Express.js",
60    "Firebase",
61    "NumPy",
62    "Pandas",
63    "Matplotlib"
64  ]
65};
66
67export default skills;`},"contact.js":{language:"javascript",content:`const contact = {
68  name: "Ashrit Anshuman Pradhan",
69  email: "[email protected]",
70  phone: "+91 6370205656",
71  github: "https://github.com/ashritanshuman",
72  linkedin: "https://linkedin.com/in/ashritanshuman/",
73  portfolio: "https://ashritanshuman.vercel.app",
74  location: "Gwalior, Madhya Pradesh, India",
75  availability: "Open for freelance projects and technical opportunities"
76};
77
78export default contact;`}},f=(0,a.createContext)(void 0);function x({children:e}){let[t,i]=(0,a.useState)([]),[s,n]=(0,a.useState)(null),[l,h]=(0,a.useState)(1),[c,d]=(0,a.useState)(!1),[u,m]=(0,a.useState)(!0),p=(0,a.useRef)(10),y=(0,a.useRef)(0),g=(0,a.useCallback)(e=>o[e]??o.about,[]),v=(0,a.useCallback)(e=>{i(t=>{let i=t.find(t=>
78t.id===e);if(!i||i.minimized)return t;p.current+=1;let s=p.current;return t.map(t=>t.id===e?{...t,focused:!0,zIndex:s}:{...t,focused:!1})}),n(e)},[]),b=(0,a.useCallback)((e,t)=>{var s,r,a,o;let c,d,u=g(e),{width:m,height:f}=(s=u.width,r=u.height,a=u.minWidth,o=u.minHeight,{width:Math.max(a,Math.min(s,window.innerWidth-32)),height:Math.max(o,Math.min(r,window.innerHeight-96))}),x=24*y.current,{x:v,y:b}=(c=window.innerWidth,{x:Math.max(24,Math.min(c-m-24,(c-m)/2+x)),y:Math.max(64,Math.min((d=window.innerHeight)-f-96,(d-f)/2+x))});y.current+=1;let w=`${e}-${Date.now()}-${Math.random().toString(36).slice(2,7)}`;p.current+=1;let j={id:w,appId:e,title:u.title,x:v,y:b,width:m,height:f,minimized:!1,maximized:!1,zIndex:p.current,workspace:t?.workspace??l,focused:!0};return i(e=>[...e.map(e=>({...e,focused:!1})),j]),n(w),t?.workspace&&t.workspace!==l&&h(t.workspace),w},[g,l]),w=(0,a.useCallback)(e=>{i(t=>{let i=t.filter(t=>t.id!==e),s=t.find(t=>t.id===e);if(s&&s.focused){let e=i.filter(e=>!e.minimized&&e.workspace===s.workspace).sort((e,t)=>t.zIndex-e.zIndex)[0];if(e)return n(e.id),i.map(t=>({...t,focused:t.id===e.id}));n(null)}return i})},[]),j=(0,a.useCallback)(e=>{i(t=>{let i=t.find(t=>t.id===e);if(!i)return t;let s=t.map(t=>t.id===e?{...t,minimized:!0,focused:!1}:t);if(i.focused){let e=s.filter(e=>!e.minimized&&e.workspace===i.workspace).sort((e,t)=>t.zIndex-e.zIndex)[0];return n(e?.id??null),s.map(t=>({...t,focused:t.id===e?.id}))}return s})},[]),k=(0,a.useCallback)(e=>{i(t=>t.map(t=>t.id===e?{...t,maximized:!0,minimized:!1}:t)),v(e)},[v]),S=(0,a.useCallback)((e,t)=>{i(i=>i.map(i=>i.id===e?{...i,minimized:!1,maximized:!1,focused:!0,workspace:t?.workspace??i.workspace}:{...i,focused:!1})),n(e)},[]),N=(0,a.useCallback)((e,t,s)=>{i(i=>i.map(i=>i.id===e?{...i,x:t,y:s,maximized:!1}:i))},[]),T=(0,a.useCallback)((e,t,s)=>{i(i=>i.map(i=>i.id===e?{...i,width:t,height:s}:i))},[]),P=(0,a.useCallback)((e,t)=>{i(i=>i.map(i=>i.id===e?{...i,workspace:t}:i))},[]),M=(0,a.useCallback)(e=>{h(Math.max(1,Math.min(2,e)))},[]),A=(0,a.useCallback)(()=>{d(e=>!e)},[]),C=(0,a.useMemo)(()=>Array.from(new Set(t.filter(e=>!e.minimized).map(e=>e.appId))),[t]),E=(0,a.useMemo)(()=>{let e={};return Object.values(o).forEach(t=>{let i=t.category??"Other";e[i]||(e[i]=[]),e[i].push(t.id)}),e},[]);return(0,a.useEffect)(()=>{let e=e=>{if("Escape"===e.key&&c&&d(!1),"ArrowRight"===e.key&&e.metaKey&&h(e=>Math.min(2,e+1)),"ArrowLeft"===e.key&&e.metaKey&&h(e=>Math.max(1,e-1)),"Tab"===e.key&&e.altKey){e.preventDefault();let i=t.filter(e=>!e.minimized&&e.workspace===l);if(i.length>0){let e=i.findIndex(e=>e.id===s);v(i[(e+1)%i.length].id)}}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[c,t,l,s,v]),(0,r.jsx)(f.Provider,{value:{windows:t,activeWindowId:s,workspace:l,activitiesOpen:c,soundEnabled:u,setSoundEnabled:m,openApp:b,closeWindow:w,focusWindow:v,minimizeWindow:j,maximizeWindow:k,restoreWindow:S,moveWindow:N,resizeWindow:T,setWindowWorkspace:P,setWorkspace:M,toggleActivities:A,setActivitiesOpen:d,getAppConfig:g,runningAppIds:C,appsByCategory:E},children:e})}function y(){let e=(0,a.useContext)(f);if(!e)throw Error("useDesktop must be used within DesktopProvider");return e}let g=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],v=new Set([...g,"pathRotation"]),b=(e,t,i)=>i>t?t:i<e?e:i,w={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},j={...w,transform:e=>b(0,1,e)},k={...w,default:1},S=e=>Math.round(1e5*e)/1e5,N=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,T=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,P=(e,t)=>i=>!!("string"==typeof i&&T.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),M=(e,t,i)=>s=>{if("string"!=typeof s)return s;let[n,r,a,o]=s.match(N);return{[e]:parseFloat(n),[t]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},A={...w,transform:e=>Math.round(b(0,255,e))},C={test:P("rgb","red"),parse:M("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:s=1})=>"rgba("+A.transform(e)+", "+A.transform(t)+", "+A.transform(i)+", "+S(j.transform(s))+")"},E={test:P("#"),parse:function(e){let t="",i="",s="",n="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),s=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),s=e.substring(3,4),n=e.substring(4,5),t+=t,i+=i,s+=s,n+=n),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(s,16),alph
78a:n?parseInt(n,16)/255:1}},transform:C.transform},D=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),V=D("deg"),R=D("%"),L=D("px"),I=D("vh"),F=D("vw"),B={...R,parse:e=>R.parse(e)/100,transform:e=>R.transform(100*e)},z={test:P("hsl","hue"),parse:M("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:s=1})=>"hsla("+Math.round(e)+", "+R.transform(S(t))+", "+R.transform(S(i))+", "+S(j.transform(s))+")"},O={test:e=>C.test(e)||E.test(e)||z.test(e),parse:e=>C.test(e)?C.parse(e):z.test(e)?z.parse(e):E.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?C.transform(e):z.transform(e),getAnimatableNone:e=>{let t=O.parse(e);return t.alpha=0,O.transform(t)}},U=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,$="number",W="color",H=/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 G(e){let t=e.toString(),i=[],s={color:[],number:[],var:[]},n=[],r=0,a=t.replace(H,e=>(O.test(e)?(s.color.push(r),n.push(W),i.push(O.parse(e))):e.startsWith("var(")?(s.var.push(r),n.push("var"),i.push(e)):(s.number.push(r),n.push($),i.push(parseFloat(e))),++r,"${}")).split("${}");return{values:i,split:a,indexes:s,types:n}}function Y({split:e,types:t}){let i=e.length;return s=>{let n="";for(let r=0;r<i;r++)if(n+=e[r],void 0!==s[r]){let e=t[r];e===$?n+=S(s[r]):e===W?n+=O.transform(s[r]):n+=s[r]}return n}}let X={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(N)?.length||0)+(e.match(U)?.length||0)>0},parse:function(e){return G(e).values},createTransformer:function(e){return Y(G(e))},getAnimatableNone:function(e){let t=G(e);return Y(t)(t.values.map((e,i)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:O.test(e)?O.getAnimatableNone(e):e)(e,t.split[i])))}},_=new Set(["brightness","contrast","saturate","opacity"]);function q(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[s]=i.match(N)||[];if(!s)return e;let n=i.replace(s,""),r=+!!_.has(t);return s!==i&&(r*=100),t+"("+r+n+")"}let K=/\b([a-z-]*)\(.*?\)/gu,J={...X,getAnimatableNone:e=>{let t=e.match(K);return t?t.map(q).join(" "):e}},Z={...X,getAnimatableNone:e=>{let t=X.parse(e);return X.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},Q={...w,transform:Math.round},ee={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,inset:L,insetBlock:L,insetBlockStart:L,insetBlockEnd:L,insetInline:L,insetInlineStart:L,insetInlineEnd:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,paddingBlock:L,paddingBlockStart:L,paddingBlockEnd:L,paddingInline:L,paddingInlineStart:L,paddingInlineEnd:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,marginBlock:L,marginBlockStart:L,marginBlockEnd:L,marginInline:L,marginInlineStart:L,marginInlineEnd:L,fontSize:L,backgroundPositionX:L,backgroundPositionY:L,rotate:V,pathRotation:V,rotateX:V,rotateY:V,rotateZ:V,scale:k,scaleX:k,scaleY:k,scaleZ:k,skew:V,skewX:V,skewY:V,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:j,originX:B,originY:B,originZ:L,zIndex:Q,fillOpacity:j,strokeOpacity:j,numOctaves:Q},et={...ee,color:O,backgroundColor:O,outlineColor:O,fill:O,stroke:O,borderColor:O,borderTopColor:O,borderRightColor:O,borderBottomColor:O,borderLeftColor:O,filter:J,WebkitFilter:J,mask:Z,WebkitMask:Z},ei=e=>et[e],es=()=>({translate:0,scale:1,origin:0,originPoint:0}),en=()=>({x:es(),y:es()}),er=()=>({min:0,max:0}),ea=()=>({x:er(),y:er()}),eo=e=>!!(e&&e.getVelocity),el=new Set(["width","height","top","left","right","bottom",...g]),eh=e=>t=>t.test(e),ec=[w,L,R,V,F,I,{test:e=>"auto"===e,parse:e=>e}],ed=e=>ec.find(eh(e));var eu=e.i(47167);let em=()=>{},ep=()=>{};eu.default;let ef=e=>t=>"string"==typeof t&&t.startsWith(e),ex=ef("--"),ey=ef("var(--"),eg=e=>!!ey(e)&&ev.test(e.split("/*")[0].trim()),ev=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function eb(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let ew=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ej=e=>180*e/Math.PI,ek=e=>eN(ej(Math.atan2(e[1],e[0]))),eS={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ek,rotateZ:ek,skewX:e=>ej(Math.atan(e[1])),skewY:e=>ej(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},eN=e=>((e%=360)<0&&(e+=360),e),eT=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),eP=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),eM={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:eT,scaleY:eP,scale:e=>(eT(e)+eP(e))/2,rotateX:e=>eN(ej(Math.atan2(e[6],e[5]))),rotateY:e=>eN(ej(Math.atan2(-e[2],e[0]))),rotateZ:ek,rotate:ek,skewX:e=>ej(Math.atan(e[4])),skewY:e=>ej(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function eA(e){return+!!e.includes("scale")}function eC(e,t){let i,s;if(!e||"none"===e)return eA(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=eM,s=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=eS,s=t}if(!s)return eA(t);let r=i[t],a=s[1].split(",").map(eE);return"function"==typeof r?r(a):a[r]}function eE(e){return parseFloat(e.trim())}let eD=e=>e===w||e===L,eV=new Set(["x","y","z"]),eR=g.filter(e=>!eV.has(e)),eL={width:({x:e},{paddingLeft:t="0",paddingRight:i="0",boxSizing:s})=>{let n=e.max-e.min;return"border-box"===s?n:n-parseFloat(t)-parseFloat(i)},height:({y:e},{paddingTop:t="0",paddingBottom:i="0",boxSizing:s})=>{let n=e.max-e.min;return"border-box"===s?n:n-parseFloat(t)-parseFloat(i)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>eC(t,"x"),y:(e,{transform:t})=>eC(t,"y")};eL.translateX=eL.x,eL.translateY=eL.y;let eI=e=>e,eF={},eB=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ez(e,t){let i=!1,s=!0,n={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,a=eB.reduce((e,t)=>
78(e[t]=function(e){let t=new Set,i=new Set,s=!1,n=!1,r=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function o(t){r.has(t)&&(l.schedule(t),e()),t(a)}let l={schedule:(e,n=!1,a=!1)=>{let o=a&&s?t:i;return n&&r.add(e),o.add(e),e},cancel:e=>{i.delete(e),r.delete(e)},process:e=>{if(a=e,s){n=!0;return}s=!0;let r=t;t=i,i=r,t.forEach(o),t.clear(),s=!1,n&&(n=!1,l.process(e))}};return l}(r),e),{}),{setup:o,read:l,resolveKeyframes:h,preUpdate:c,update:d,preRender:u,render:m,postRender:p}=a,f=()=>{let r=eF.useManualTiming,a=r?n.timestamp:performance.now();i=!1,r||(n.delta=s?1e3/60:Math.max(Math.min(a-n.timestamp,40),1)),n.timestamp=a,n.isProcessing=!0,o.process(n),l.process(n),h.process(n),c.process(n),d.process(n),u.process(n),m.process(n),p.process(n),n.isProcessing=!1,i&&t&&(s=!1,e(f))};return{schedule:eB.reduce((t,r)=>{let o=a[r];return t[r]=(t,r=!1,a=!1)=>(!i&&(i=!0,s=!0,n.isProcessing||e(f)),o.schedule(t,r,a)),t},{}),cancel:e=>{for(let t=0;t<eB.length;t++)a[eB[t]].cancel(e)},state:n,steps:a}}let{schedule:eO,cancel:eU,state:e$,steps:eW}=ez("u">typeof requestAnimationFrame?requestAnimationFrame:eI,!0),eH=new Set,eG=!1,eY=!1,eX=!1;function e_(){if(eY){let e=Array.from(eH).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t,s=(t=[],eR.forEach(i=>{let s=e.getValue(i);void 0!==s&&(t.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),t);s.length&&(i.set(e,s),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(([t,i])=>{e.getValue(t)?.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eY=!1,eG=!1,eH.forEach(e=>e.complete(eX)),eH.clear()}function eq(){eH.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eY=!0)})}class eK{constructor(e,t,i,s,n,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=s,this.element=n,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(eH.add(this),eG||(eG=!0,eO.read(eq),eO.resolveKeyframes(e_))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:s}=this;if(null===e[0]){let n=s?.get(),r=e[e.length-1];if(void 0!==n)e[0]=n;else if(i&&t){let s=i.readValue(t,r);null!=s&&(e[0]=s)}void 0===e[0]&&(e[0]=r),s&&void 0===n&&s.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eH.delete(this)}cancel(){"scheduled"===this.state&&(eH.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eJ=new Set([J,Z]);function eZ(e,t){let i=ei(e);return eJ.has(i)||(i=X),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let eQ=new Set(["auto","none","0"]);class e0 extends eK{constructor(e,t,i,s,n){super(e,t,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let s=e[i];if("string"==typeof s&&eg(s=s.trim())){let n=function e(t,i,s=1){ep(s<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,r]=function(e){let t=ew.exec(e);if(!t)return[,];let[,i,s,n]=t;return[`--${i??s}`,n]}(t);if(!n)return;let a=window.getComputedStyle(i).getPropertyValue(n);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return eg(r)?e(r,i,s+1):r}(s,t.current);void 0!==n&&(e[i]=n),i===e.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!el.has(i)||2!==e.length)return;let[s,n]=e,r=ed(s),a=ed(n);if(eb(s)!==eb(n)&&eL[i]){this.needsMeasurement=!0;return}if(r!==a)if(eD(r)&&eD(a))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else eL[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&i.push(t);i.length&&function(e,t,i){let s,n=0;for(;n<e.length&&!s;){let t=e[n];"string"==typeof t&&!eQ.has(t)&&G(t).values.length&&(s=e[n]),n++}if(s&&i)for(let n of t)e[n]=eZ(i,s)}(e,i,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eL[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let s=t[t.length-1];void 0!==s&&e.getValue(i,s).jump(s,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:i}=this;if(!e||!e.current)return;let s=e.getValue(t);s&&s.jump(this.measuredOrigin,!1);let n=i.length-1,r=i[n];i[n]=eL[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
78h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let e1=e=>1e3*e;function e2(e,t){-1===e.indexOf(t)&&e.push(t)}function e3(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class e4{constructor(){this.subscriptions=[]}add(e){return e2(this.subscriptions,e),()=>e3(this.subscriptions,e)}notify(e,t,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](e,t,i);else for(let n=0;n<s;n++){let s=this.subscriptions[n];s&&s(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function e5(e,t,i){t.startsWith("--")?e.style.setProperty(t,i):e.style[t]=i}function e6(e){let t;return()=>(void 0===t&&(t=e()),t)}let e9={};function e8(e,t){let i=e6(e);return()=>e9[t]??i()}let e7=e8(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),te=e=>null!==e;function tt(e,{repeat:t,repeatType:i="loop"},s,n=1){let r=e.filter(te),a=n<0||t&&"loop"!==i&&t%2==1?0:r.length-1;return a&&void 0!==s?s:r[a]}class ti{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let ts=e=>Array.isArray(e)&&"number"==typeof e[0],tn=e8(()=>{try{document.createElement("div").animate({opacity:0}
78,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),tr=(e,t,i=10)=>{let s="",n=Math.max(Math.round(t/i),2);for(let t=0;t<n;t++)s+=Math.round(1e4*e(t/(n-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},ta=([e,t,i,s])=>`cubic-bezier(${e}, ${t}, ${i}, ${s})`,to={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ta([0,.65,.55,1]),circOut:ta([.55,0,1,.45]),backIn:ta([.31,.01,.66,-.59]),backOut:ta([.33,1.53,.69,.99])};function tl(e){return"function"==typeof e&&"applyToOptions"in e}class th extends ti{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:i,keyframes:s,pseudoElement:n,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=e;this.isPseudoElement=!!n,this.allowFlatten=r,this.options=e,ep("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return tl(e)&&tn()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},h){let c={[t]:i};l&&(c.offset=l);let d=function e(t,i){if(t)return"function"==typeof t?tn()?tr(t,i):"ease-out":ts(t)?ta(t):Array.isArray(t)?t.map(t=>e(t,i)||to.easeOut):to[t]}(o,n);Array.isArray(d)&&(c.easing=d);let u={delay:s,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};return h&&(u.pseudoElement=h),e.animate(c,u)}(t,i,s,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let e=tt(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(e),e5(t,i,e),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=e1(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:i,observe:s}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&e7())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),i&&(this.animation.rangeEnd=i),eI):s(this)}}let tc=new Set(["opacity","clipPath","filter","transform"]),{schedule:td}=ez(queueMicrotask,!1);function tu(){t=void 0}let tm={now:()=>(void 0===t&&tm.set(e$.isProcessing||eF.useManualTiming?e$.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(tu)}},tp=(e,t)=>t?1e3/t*e:0,tf;class tx{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=tm.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tm.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new e4);let i=this.events[e].add(t);return"change"===e?()=>{i(),eO.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return tf&&tf.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=tm.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tp(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ty(e,t){return new tx(e,t)}let tg=[...ec,O,X],tv=new WeakMap;function tb(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tw(e){return"string"==typeof e||Array.isArray(e)}let tj=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tk=["initial",...tj];function tS(e){return tb(e.animate)||tk.some(t=>tw(e[t]))}function tN(e){return!!(tS(e)||e.variants)}let tT={current:null},tP={current:!1},tM="u">typeof window;function tA(e){let t=[{},{}];
78return e?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function tC(e,t,i,s){if("function"==typeof t){let[n,r]=tA(s);t=t(void 0!==i?i:e.custom,n,r)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[n,r]=tA(s);t=t(void 0!==i?i:e.custom,n,r)}return t}let tE=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tD={};class tV{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:s,skipAnimations:n,blockInitialAnimation:r,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=eK,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 e=tm.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eO.render(this.render,!1,!0))};const{latestValues:l,renderState:h}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=h,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=tS(t),this.isVariantNode=tN(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==l[e]&&eo(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,tv.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tP.current||function(){if(tP.current=!0,tM)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tT.current=e.matches;e.addEventListener("change",t),t()}else tT.current=!1}(),this.shouldReduceMotion=tT.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),eU(this.notifyUpdate),eU(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let i;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&tc.has(e)&&this.current instanceof HTMLElement){let{factory:i,keyframes:s,times:n,ease:r,duration:a}=t.accelerate,o=new th({element:this.current,name:e,keyframes:s,times:n,ease:r,duration:e1(a)}),l=i(o);this.valueSubscriptions.set(e,()=>{l(),o.cancel()});return}let s=v.has(e);s&&this.onBindTransform&&this.onBindTransform();let n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eO.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{n(),i&&i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tD){let t=tD[e];if(!t)continue;let{isEnabled:i,Feature:s}=t;if(!this.features[e]&&s&&i(this.props)&&(this.features[e]=new s(this)),this.features[e]){let t=this.features[e];
78t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ea()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tE.length;t++){let i=tE[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=e["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(e,t,i){for(let s in t){let n=t[s],r=i[s];if(eo(n))e.addValue(s,n);else if(eo(r))e.addValue(s,ty(n,{owner:e}));else if(r!==n)if(e.hasValue(s)){let t=e.getValue(s);!0===t.liveStyle?t.jump(n):t.hasAnimated||t.set(n)}else{let t=e.getStaticValue(s);e.addValue(s,ty(void 0!==t?t:n,{owner:e}))}}for(let s in i)void 0===t[s]&&e.removeValue(s);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=ty(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=i){let s,n;if("string"==typeof i&&(s=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s)||(n=i,/^0[^.\s]+$/u.test(n))))i=parseFloat(i);else{let s;s=i,!tg.find(eh(s))&&X.test(t)&&(i=eZ(e,t))}this.setBaseTarget(e,eo(i)?i.get():i)}return eo(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let s=tC(this.props,i,this.presenceContext?.custom);s&&(t=s[e])}if(i&&void 0!==t)return t;let s=this.getBaseTargetFromProps(this.props,e);return void 0===s||eo(s)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:s}on(e,t){return this.events[e]||(this.events[e]=new e4),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){td.render(this.render)}}class tR extends tV{constructor(){super(...arguments),this.KeyframeResolver=e0}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let i=e.style;return i?i[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;eo(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tL(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tI=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tB=g.length;function tz(e,t,i){let{style:s,vars:n,transformOrigin:r}=e,a=!1,o=!1;for(let e in t){let i=t[e];if(v.has(e)){a=!0;continue}if(ex(e)){n[e]=i;continue}{let t=tI(i,ee[e]);e.startsWith("origin")?(o=!0,r[e]=t):s[e]=t}}if(!t.transform&&(a||i?s.transform=function(e,t,i){let s="",n=!0;for(let r=0;r<tB;r++){let a=g[r],o=e[a];if(void 0===o)continue;let l=!0;if("number"==typeof o)l=o===+!!a.startsWith("scale");else{let e=parseFloat(o);l=a.startsWith("scale")?1===e:0===e}if(!l||i){let e=tI(o,ee[a]);if(!l){n=!1;let t=tF[a]||a;s+=`${t}(${e}) `}i&&(t[a]=e)}}let r=e.pathRotation;return r&&(n=!1,s+=`rotate(${tI(r,ee.pathRotation)}) `),s=s.trim(),i?s=i(t,n?"":s):n&&(s="none"),s}(t,e.transform,i):s.transform&&(s.transform="none")),o){let{originX:e="50%",originY:t="50%",originZ:i=0}=r;s.transformOrigin=`${e} ${t} ${i}`}}let tO={offset:"stroke-dashoffset",array:"stroke-dasharray"},tU={offset:"strokeDashoffset",array:"strokeDasharray"},t$=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tW(e,{attrX:t,attrY:i,attrScale:s,pathLength:n,pathSpacing:r=1,pathOffset:a=0,...o}
78,l,h,c){if(tz(e,o,h),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:u}=e;for(let e of(d.transform&&(u.transform=d.transform,delete d.transform),(u.transform||d.transformOrigin)&&(u.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),u.transform&&(u.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t$))void 0!==d[e]&&(u[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==i&&(d.y=i),void 0!==s&&(d.scale=s),void 0!==n&&function(e,t,i=1,s=0,n=!0){e.pathLength=1;let r=n?tO:tU;e[r.offset]=`${-s}`,e[r.array]=`${t} ${i}`}(d,n,r,a,!1)}let tH=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"]),tG=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tY(e,{style:t,vars:i},s,n){let r,a=e.style;for(r in t)a[r]=t[r];for(r in n?.applyProjectionStyles(a,s),i)a.setProperty(r,i[r])}let tX=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function t_(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tq={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!L.test(e))return e;else e=parseFloat(e);let i=t_(e,t.target.x),s=t_(e,t.target.y);return`${i}% ${s}%`}},tK=(e,t,i)=>e+(t-e)*i,tJ={borderRadius:{...tq,applyTo:[...tX]},borderTopLeftRadius:tq,borderTopRightRadius:tq,borderBottomLeftRadius:tq,borderBottomRightRadius:tq,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let s=X.parse(e);if(s.length>5)return e;let n=X.createTransformer(e),r=+("number"!=typeof s[0]),a=i.x.scale*t.x,o=i.y.scale*t.y;s[0+r]/=a,s[1+r]/=o;let l=tK(a,o,.5);return"number"==typeof s[2+r]&&(s[2+r]/=l),"number"==typeof s[3+r]&&(s[3+r]/=l),n(s)}}};function tZ(e,{layout:t,layoutId:i}){return v.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!tJ[e]||"opacity"===e)}function tQ(e,t,i){let s=e.style,n=t?.style,r={};if(!s)return r;for(let t in s)(eo(s[t])||n&&eo(n[t])||tZ(t,e)||i?.getValue(t)?.liveStyle!==void 0)&&(r[t]=s[t]);return r}function t0(e,t,i){let s=tQ(e,t,i);for(let i in e)(eo(e[i])||eo(t[i]))&&(s[-1!==g.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return s}class t1 extends tR{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ea}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(v.has(t)){let e=ei(t);return e&&e.default||0}return t=tH.has(t)?t:tL(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return t0(e,t,i)}build(e,t,i){tW(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,s){for(let i in tY(e,t,void 0,s),t.attrs)e.setAttribute(tH.has(i)?i:tL(i),t.attrs[i])}mount(e){this.isSVGTag=tG(e.tagName),super.mount(e)}}function t2({top:e,left:t,right:i,bottom:s}){return{x:{min:t,max:i},y:{min:e,max:s}}}function t3(e){return void 0===e||1===e}function t4({scale:e,scaleX:t,scaleY:i}){return!t3(e)||!t3(t)||!t3(i)}function t5(e){return t4(e)||t6(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function t6(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function t9(e,t,i,s,n){return void 0!==n&&(e=s+n*(e-s)),s+i*(e-s)+t}function t8(e,t=0,i=1,s,n){e.min=t9(e.min,t,i,s,n),e.max=t9(e.max,t,i,s,n)}function t7(e,{x:t,y:i}){t8(e.x,t.translate,t.scale,t.originPoint),t8(e.y,i.translate,i.scale,i.originPoint)}function ie(e,t){e.min+=t,e.max+=t}function it(e,t,i,s,n=.5){let r=tK(e.min,e.max,n);t8(e,t,i,r,s)}function ii(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function is(e,t,i){let s=i??e;it(e.x,ii(t.x,s.x),t.scaleX,t.scale,t.originX),it(e.y,ii(t.y,s.y),t.scaleY,t.scale,t.originY)}function ir(e,t){return t2(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(e.getBoundingClientRect(),t))}class ia extends tR{constructor(){super(...arguments),this.type="html",this.renderInstance=tY}readValueFromInstance(e,t){if(v.has(t))return this.projection?.isProjecting?eA(t):((e,t)=>{let{transform:i="none"}=getComputedStyle(e);return eC(i,t)})(e,t);{let i=window.getComputedStyle(e),s=(ex(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ir(e,t)}build(e,t,i){tz(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return tQ(e,t,i)}}let io=["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 il(e){if("string"!=typeof e||e.includes("-"));else if(io.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let ih=(0,a.createContext)({}),ic=(0,a.createContext)({strict:!1}),id=(0,a.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),iu=(0,a.createContext)({});function im(e){return Array.isArray(e)?e.join(" "):e}let ip=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ix(e,t,i){for(let s in t)eo(t[s])||tZ(s,i)||(e[s]=t[s])}let iy=()=>({...ip(),attrs:{}}),ig=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 iv(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ig.has(e)}let ib=e=>!iv(e);try{n=(()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default,"function"==typeof n&&(ib=e=>e.startsWith("on")?!iv(e):n(e))}catch{}function iw(e){return eo(e)?e.get():e}let ij=(0,a.createContext)(null);function ik(e){let t=(0,a.useRef)(null);return null===t.current&&(t.current=e()),t.current}let iS=e=>(t,i)=>{let s=(0,a.useContext)(iu),n=(0,a.useContext)(ij),r=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},i,s,n){return{latestValues:function(e,t,i,s){let n={},r=s(e,{});for(let e in r)n[e]=iw(r[e]);let{initial:a,animate:o}=e,l=tS(e),h=tN(e);t&&h&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===o&&(o=t.animate));let c=!!i&&!1===i.initial,d=(c=c||!1===a)?o:a;if(d&&"boolean"!=typeof d&&!tb(d)){let t=Array.isArray(d)?d:[d];for(let i=0;i<t.length;i++){let s=tC(e,t[i]);if(s){let{transitionEnd:e,transition:t,...i}=s;for(let e in i){let t=i[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(n[e]=t)}for(let t in e)n[t]=e[t]}}}return n}(i,s,n,e),renderState:t()}})(e,t,s,n);return i?r():ik(r)},iN=iS({scrapeMotionValuesFromProps:tQ,createRenderState:ip}),iT=iS({scrapeMotionValuesFromProps:t0,createRenderState:iy}),iP={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"]},iM=!1;function iA(){return!function(){if(iM)return;let e={};for(let t in iP)e[t]={isEnabled:e=>iP[t].some(t=>!!e[t])};tD=e,iM=!0}(),tD}let iC=Symbol.for("motionComponentSymbol"),iE="data-"+tL("framerAppearId"),iD=(0,a.createContext)({});function iV(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let iR="u">typeof window?a.useLayoutEffect:a.useEffect;function iL(e,{forwardMotionProps:t=!1,type:i}={},s,n){s&&function(e){let t=iA();for(let i in e)t[i]={...t[i],...e[i]};tD=t}(s);let o=i?"svg"===i:il(e),l=o?iT:iN;function h(i,s){var h;let c,d,u,m={...(0,a.useContext)(id),...i,layoutId:function({layoutId:e}){let t=(0,a.useContext)(ih).id;return t&&void 0!==e?t+"-"+e:e}(i)},{isStatic:p}=m,f=function(e){let{initial:t,animate:i}=function(e,t){if(tS(e)){let{initial:t,animate:i}=e;return{initial:!1===t||tw(t)?t:void 0,animate:tw(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(iu));return(0,a.useMemo)(()=>({initial:t,animate:i}),[im(t),im(i)])}(i),x=l(i,p);if(!p&&"u">typeof window){(0,a.useContext)(ic).strict;let t=function(e){let{drag:t,layout:i}=iA();if(!t&&!i)return{};let s={...t,...i};return{MeasureLayout:t?.isEnabled(e)||i?.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
78(m);c=t.MeasureLayout,f.visualElement=function(e,t,i,s,n,r){let{visualElement:o}=(0,a.useContext)(iu),l=(0,a.useContext)(ic),h=(0,a.useContext)(ij),c=(0,a.useContext)(id),d=c.reducedMotion,u=c.skipAnimations,m=(0,a.useRef)(null),p=(0,a.useRef)(!1);s=s||l.renderer,!m.current&&s&&(m.current=s(e,{visualState:t,parent:o,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:d,skipAnimations:u,isSVG:r}),p.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));let f=m.current,x=(0,a.useContext)(iD);f&&!f.projection&&n&&("html"===f.type||"svg"===f.type)&&function(e,t,i,s){let{layoutId:n,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:h,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:n,layout:r,alwaysMeasureLayout:!!a||o&&iV(o),visualElement:e,animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,crossfade:d,layoutScroll:l,layoutRoot:h,layoutAnchor:c})}(m.current,i,n,x);let y=(0,a.useRef)(!1);(0,a.useInsertionEffect)(()=>{f&&y.current&&f.update(i,h)});let g=i[iE],v=(0,a.useRef)(!!g&&"u">typeof window&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return iR(()=>{p.current=!0,f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),v.current&&f.animationState&&f.animationState.animateChanges())}),(0,a.useEffect)(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),v.current=!1),f.enteringChildren=void 0)}),f}(e,x,m,n,t.ProjectionNode,o)}return(0,r.jsxs)(iu.Provider,{value:f,children:[c&&f.visualElement?(0,r.jsx)(c,{visualElement:f.visualElement,...m}):null,function(e,t,i,{latestValues:s},n,r=!1,o){let l=(o??il(e)?function(e,t,i,s){let n=(0,a.useMemo)(()=>{let i=iy();return tW(i,t,tG(s),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};ix(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t){let i,s,n={},r=(i=e.style||{},ix(s={},i,e),Object.assign(s,function({transformTemplate:e},t){return(0,a.useMemo)(()=>{let i=ip();return tz(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),s);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(t,s,n,e),h=function(e,t,i){let s={};for(let n in e)("values"!==n||"object"!=typeof e.values)&&!eo(e[n])&&(ib(n)||!0===i&&iv(n)||!t&&!iv(n)||e.draggable&&n.startsWith("onDrag"))&&(s[n]=e[n]);return s}(t,"string"==typeof e,r),c=e!==a.Fragment?{...h,...l,ref:i}:{},{children:d}=t,u=(0,a.useMemo)(()=>eo(d)?d.get():d,[d]);return(0,a.createElement)(e,{...c,children:u})}(e,i,(h=f.visualElement,d=(0,a.useRef)(s),(0,a.useInsertionEffect)(()=>{d.current=s}),u=(0,a.useRef)(null),(0,a.useCallback)(e=>{e&&x.onMount?.(e),h&&(e?h.mount(e):h.unmount());let t=d.current;if("function"==typeof t)if(e){let i=t(e);"function"==typeof i&&(u.current=i)}else u.current?(u.current(),u.current=null):t(e);else t&&(t.current=e)},[h])),x,p,t,o)]})}h.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let c=(0,a.forwardRef)(h);return c[iC]=e,c}class iI{constructor(e){this.isMounted=!1,this.node=e}update(){}}function iF(e,t,i){let s=e.getProps();return tC(s,t,void 0!==i?i:s.custom,e)}function iB(e,t){if(e?.inherit&&t){let{inherit:i,...s}=e;return{...t,...s}}return e}function iz(e,t){let i=e?.[t]??e?.default??e;return i!==e?iB(i,e):i}let iO=e=>Array.isArray(e);function iU(e,t){let i=e.getValue("willChange");if(eo(i)&&i.add)return i.add(t);if(!i&&eF.WillChange){let i=new eF.WillChange("auto");e.addValue("willChange",i),i.add(t)}}let i$=(...e)=>e.reduce((e,t)=>i=>t(e(i)));function iW(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function iH(e,t){return i=>i>0?t:e}let iG=(e,t,i)=>{let s=e*e,n=i*(t*t-s)+s;return n<0?0:Math.sqrt(n)},iY=[E,C,z];function iX(e){let t=iY.find(t=>t.test(e));if(em(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let i=t.parse(e);return t===z&&(i=function({hue:e,saturation:t,lightness:i,alpha:s}){e/=360,i/=100;let n=0,r=0,a=0;if(t/=100){let s=i<.5?i*(1+t):i+t-i*t,o=2*i-s;
78n=iW(o,s,e+1/3),r=iW(o,s,e),a=iW(o,s,e-1/3)}else n=r=a=i;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*a),alpha:s}}(i)),i}let i_=(e,t)=>{let i=iX(e),s=iX(t);if(!i||!s)return iH(e,t);let n={...i};return e=>(n.red=iG(i.red,s.red,e),n.green=iG(i.green,s.green,e),n.blue=iG(i.blue,s.blue,e),n.alpha=tK(i.alpha,s.alpha,e),C.transform(n))},iq=new Set(["none","hidden"]);function iK(e,t){return i=>tK(e,t,i)}function iJ(e){return"number"==typeof e?iK:"string"==typeof e?eg(e)?iH:O.test(e)?i_:i0:Array.isArray(e)?iZ:"object"==typeof e?O.test(e)?i_:iQ:iH}function iZ(e,t){let i=[...e],s=i.length,n=e.map((e,i)=>iJ(e)(e,t[i]));return e=>{for(let t=0;t<s;t++)i[t]=n[t](e);return i}}function iQ(e,t){let i={...e,...t},s={};for(let n in i)void 0!==e[n]&&void 0!==t[n]&&(s[n]=iJ(e[n])(e[n],t[n]));return e=>{for(let t in s)i[t]=s[t](e);return i}}let i0=(e,t)=>{let i=X.createTransformer(t),s=G(e),n=G(t);if(!(s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length))return em(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),iH(e,t);if(iq.has(e)&&!n.values.length||iq.has(t)&&!s.values.length)return iq.has(e)?i=>i<=0?e:t:i=>i>=1?t:e;return i$(iZ(function(e,t){let i=[],s={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let r=t.types[n],a=e.indexes[r][s[r]],o=e.values[a]??0;i[n]=o,s[r]++}return i}(s,n),n.values),i)};function i1(e,t,i){return"number"==typeof e&&"number"==typeof t&&"number"==typeof i?tK(e,t,i):iJ(e)(e,t)}let i2=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eO.update(t,e),stop:()=>eU(t),now:()=>e$.isProcessing?e$.timestamp:tm.now()}};function i3(e){let t=0,i=e.next(t);for(;!i.done&&t<2e4;)t+=50,i=e.next(t);return t>=2e4?1/0:t}let i4=.01,i5=2,i6=.005,i9=.5;function i8(e,t){return e*Math.sqrt(1-t*t)}let i7=["duration","bounce"],se=["stiffness","damping","mass"];function st(e,t){return t.some(t=>void 0!==e[t])}function si(e=.3,t=.3){let i,s,n,r,a,o,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:h,restDelta:c}=l,d=l.keyframes[0],u=l.keyframes[l.keyframes.length-1],m={done:!1,value:d},{stiffness:p,damping:f,mass:x,duration:y,velocity:g,isResolvedFromDuration:v}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!st(e,se)&&st(e,i7))if(t.velocity=0,e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),s=i*i,n=2*b(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:1,stiffness:s,damping:n}}else{let i=function({duration:e=800,bounce:t=.3,velocity:i=0,mass:s=1}){let n,r;em(e<=e1(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=b(.05,1,a),e=b(.01,10,e/1e3),a<1?(n=t=>{let s=t*a,n=s*e;return .001-(s-i)/i8(t,a)*Math.exp(-n)},r=t=>{let s=t*a*e,r=Math.pow(a,2)*Math.pow(t,2)*e,o=Math.exp(-s),l=i8(Math.pow(t,2),a);return(s*i+i-r)*o*(-n(t)+.001>0?-1:1)/l}):(n=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),r=t=>e*e*(i-t)*Math.exp(-t*e));let o=function(e,t,i){let s=i;for(let i=1;i<12;i++)s-=e(s)/t(s);return s}(n,r,5/e);if(e=e1(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(o,2)*s;return{stiffness:t,damping:2*a*Math.sqrt(s*t),duration:e}}}({...e,velocity:0});(t={...t,...i,mass:1}).isResolvedFromDuration=!0}return t}({...l,velocity:-((l.velocity||0)/1e3)}),w=g||0,j=f/(2*Math.sqrt(p*x)),k=u-d,S=Math.sqrt(p/x)/1e3,N=5>Math.abs(k);if(h||(h=N?i4:i5),c||(c=N?i6:i9),j<1)n=i8(S,j),r=(w+j*S*k)/n,i=e=>u-Math.exp(-j*S*e)*(r*Math.sin(n*e)+k*Math.cos(n*e)),a=j*S*r+k*n,o=j*S*k-r*n,s=e=>Math.exp(-j*S*e)*(a*Math.sin(n*e)+o*Math.cos(n*e));else if(1===j){i=e=>u-Math.exp(-S*e)*(k+(w+S*k)*e);let e=w+S*k;s=t=>Math.exp(-S*t)*(S*e*t-w)}else{let e=S*Math.sqrt(j*j-1);i=t=>{let i=Math.exp(-j*S*t),s=Math.min(e*t,300);return u-i*((w+j*S*k)*Math.sinh(s)+e*k*Math.cosh(s))/e};let t=(w+j*S*k)/e,n=j*S*t-k*e,r=j*S*k-t*e;s=t=>{let i=Math.exp(-j*S*t),s=Math.min(e*t,300);return i*(n*Math.sinh(s)+r*Math.cosh(s))}}let T={calculatedDuration:v&&y||null,velocity:e=>e1(s(e)),next:e=>{if(!v&&j<1){let t=Math.exp(-j*S*e),i=Math.sin(n*e),s=Math.cos(n*e),l=u-t*(r*i+k*s);
78return m.done=Math.abs(e1(t*(a*i+o*s)))<=h&&Math.abs(u-l)<=c,m.value=m.done?u:l,m}let t=i(e);return v?m.done=e>=y:m.done=Math.abs(e1(s(e)))<=h&&Math.abs(u-t)<=c,m.value=m.done?u:t,m},toString:()=>{let e=Math.min(i3(T),2e4),t=tr(t=>T.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return T}function ss(e,t,i){let s=Math.max(t-5,0);return tp(i-e(s),t-s)}function sn({keyframes:e,velocity:t=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:h=.5,restSpeed:c}){let d,u,m=e[0],p={done:!1,value:m},f=i*t,x=m+f,y=void 0===a?x:a(x);y!==x&&(f=y-m);let g=e=>-f*Math.exp(-e/s),v=e=>y+g(e),b=e=>{let t=g(e),i=v(e);p.done=Math.abs(t)<=h,p.value=p.done?y:i},w=e=>{let t;if(t=p.value,void 0!==o&&t<o||void 0!==l&&t>l){var i;d=e,u=si({keyframes:[p.value,(i=p.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:ss(v,e,p.value),damping:n,stiffness:r,restDelta:h,restSpeed:c})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(u||void 0!==d||(t=!0,b(e),w(e)),void 0!==d&&e>=d)?u.next(e-d):(t||b(e),p)}}}si.applyToOptions=e=>{let t=function(e,t=100,i){let s=i({...e,keyframes:[0,t]}),n=Math.min(i3(s),2e4);return{type:"keyframes",ease:e=>s.next(n*e).value/t,duration:n/1e3}}(e,100,si);return e.ease=t.ease,e.duration=e1(t.duration),e.type="keyframes",e};let sr=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function sa(e,t,i,s){return e===t&&i===s?eI:n=>0===n||1===n?n:sr(function(e,t,i,s,n){let r,a,o=0;do(r=sr(a=t+(i-t)/2,s,n)-e)>0?i=a:t=a;while(Math.abs(r)>1e-7&&++o<12)return a}(n,0,1,e,i),t,s)}let so=sa(.42,0,1,1),sl=sa(0,0,.58,1),sh=sa(.42,0,.58,1),sc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,sd=e=>t=>1-e(1-t),su=sa(.33,1.53,.69,.99),sm=sd(su),sp=sc(sm),sf=e=>e>=1?1:(e*=2)<1?.5*sm(e):.5*(2-Math.pow(2,-10*(e-1))),sx=e=>1-Math.sin(Math.acos(e)),sy=sd(sx),sg=sc(sx),sv={linear:eI,easeIn:so,easeInOut:sh,easeOut:sl,circIn:sx,circInOut:sg,circOut:sy,backIn:sm,backInOut:sp,backOut:su,anticipate:sf},sb=e=>{if(ts(e)){ep(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,i,s,n]=e;return sa(t,i,s,n)}return"string"==typeof e?(ep(void 0!==sv[e],`Invalid easing type '${e}'`,"invalid-easing-type"),sv[e]):e},sw=(e,t,i)=>{let s=t-e;return s?(i-e)/s:1};function sj({duration:e=300,keyframes:t,times:i,ease:s="easeInOut"}){var n;let r,a=Array.isArray(s)&&"number"!=typeof s[0]?s.map(sb):sb(s),o={done:!1,value:t[0]},l=function(e,t,{clamp:i=!0,ease:s,mixer:n}={}){let r=e.length;if(ep(r===t.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>t[0];if(2===r&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,i){let s=[],n=i||eF.mix||i1,r=e.length-1;for(let i=0;i<r;i++){let r=n(e[i],e[i+1]);t&&(r=i$(Array.isArray(t)?t[i]||eI:t,r)),s.push(r)}return s}(t,s,n),l=o.length,h=i=>{if(a&&i<e[0])return t[0];let s=0;if(l>1)for(;s<e.length-2&&!(i<e[s+1]);s++);let n=sw(e[s],e[s+1],i);return o[s](n)};return i?t=>h(b(e[0],e[r-1],t)):h}((n=i&&i.length===t.length?i:(!function(e,t){let i=e[e.length-1];for(let s=1;s<=t;s++){let n=sw(0,t,s);e.push(tK(i,1,n))}}(r=[0],t.length-1),r),n.map(t=>t*e)),t,{ease:Array.isArray(a)?a:t.map(()=>a||sh).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}let sk={decay:sn,inertia:sn,tween:sj,keyframes:sj,spring:si};function sS(e){"string"==typeof e.type&&(e.type=sk[e.type])}let sN=e=>e/100;class sT extends ti{constructor(e){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:e}=this.options;e&&e.updatedAt!==tm.now()&&this.tick(tm.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;sS(e);let{type:t=sj,repeat:i=0,repeatDelay:s=0,repeatType:n,velocity:r=0}=e,{keyframes:a}=e,o=t||sj;o!==sj&&"number"!=typeof a[0]&&(this.mixKeyframes=i$(sN,i1(a[0],a[1])),a=[0,100]);let l=o({...e,keyframes:a});"mirror"===n&&(this.mirroredGenerator=o({...e,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=i3(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let i,{generator:s,totalDuration:n,mixKeyframes:r,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return s.next(0);
78let{delay:h=0,keyframes:c,repeat:d,repeatType:u,repeatDelay:m,type:p,onUpdate:f,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let y=this.currentTime-h*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let v=this.currentTime,w=s;if(d){let e=Math.min(this.currentTime,n)/o,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,d+1))%2&&("reverse"===u?(i=1-i,m&&(i-=m/o)):"mirror"===u&&(w=a)),v=b(0,1,i)*o}g?(this.delayState.value=c[0],i=this.delayState):i=w.next(v),r&&!g&&(i.value=r(i.value));let{done:j}=i;g||null===l||(j=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&j);return k&&p!==sn&&(i.value=tt(c,this.options,x,this.speed)),f&&f(i.value),k&&this.finish(),i}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=e1(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return ss(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(tm.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=i2,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),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=t??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(tm.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(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let sP={anticipate:sf,backInOut:sp,circInOut:sg};class sM extends th{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in sP&&(e.ease=sP[e.ease])}(e),sS(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:i,onComplete:s,element:n,...r}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new sT({...r,autoplay:!1}),o=Math.max(10,tm.now()-this.startTime),l=b(0,10,o-10),h=a.sample(o).value,{name:c}=this.options;n&&c&&e5(n,c,h),t.setWithVelocity(a.sample(Math.max(0,o-l)).value,h,l),a.stop()}}let sA=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(X.test(e)||"0"===e)&&!e.startsWith("url("));function sC(e){e.duration=0,e.type="keyframes"}let sE=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,sD=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),sV=e6(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class sR extends ti{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:h,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tm.now();const d={autoplay:e,delay:t,type:i,repeat:s,repeatDelay:n,repeatType:r,name:o,motionValue:l,element:h,...c},u=h?.KeyframeResolver||eK;this.keyframeResolver=new u(a,(e,t,i)=>this.onKeyframesResolved(e,t,d,!i),o,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,s){let n;this.keyframeResolver=void 0;let{name:r,type:a,velocity:o,delay:l,isHandoff:h,onUpdate:c}=i;this.resolvedAt=tm.now();let d=!0;!function(e,t,i,s){let n=e[0];if(null===n)return!1;if("display"===t||"visibility"===t)return!0;let r=e[e.length-1],a=sA(n,t),o=sA(r,t);return em(a===o,`You are trying to animate ${t} from "${n}" to "${r}". "${a?r:n}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||tl(i))&&s)}(e,r,a,o)&&(d=!1,(eF.instantAnimations||!l)&&c?.(tt(e,i,t)),e[0]=e[e.length-1],sC(i),i.repeat=0);let u={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:e},m=d&&!h&&function(e){let{motionValue:t,name:i,repeatDelay:s,repeatType:n,damping:r,type:a,keyframes:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;
78let{onUpdate:l,transformTemplate:h}=t.owner.getProps();return sV()&&i&&(tc.has(i)||sD.has(i)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&sE.test(e[t]))return!0;return!1}(o))&&("transform"!==i||!h)&&!l&&!s&&"mirror"!==n&&0!==r&&"inertia"!==a}(u),p=u.motionValue?.owner?.current;if(m)try{n=new sM({...u,element:p})}catch{n=new sT(u)}else n=new sT(u);n.finished.then(()=>{this.notifyFinished()}).catch(eI),this.pendingTimeline&&(this.stopTimeline=n.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=n}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eX=!0,eq(),e_(),eX=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let sL={type:"spring",stiffness:500,damping:25,restSpeed:10},sI={type:"keyframes",duration:.8},sF={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sB=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),sz=(e,t,i,s={},n,r)=>a=>{let o=iz(s,e)||{},l=o.delay||s.delay||0,{elapsed:h=0}=s;h-=e1(l);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-h,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:r?void 0:n};!function(e){for(let t in e)if(!sB.has(t))return!0;return!1}(o)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?sI:v.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:sL:sF)(e,c)),c.duration&&(c.duration=e1(c.duration)),c.repeatDelay&&(c.repeatDelay=e1(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(sC(c),0===c.delay&&(d=!0)),(eF.instantAnimations||eF.skipAnimations||n?.shouldSkipAnimations||o.skipAnimations)&&(d=!0,sC(c),c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!r&&void 0!==t.get()){let e=tt(c.keyframes,o);if(void 0!==e)return void eO.update(()=>{c.onUpdate(e),c.onComplete()})}return o.isSync?new sT(c):new sR(c)};function sO(e,t,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:r,transitionEnd:a,...o}=t,l=e.getDefaultTransition();r=r?iB(r,l):l;let h=r?.reduceMotion,c=r?.skipAnimations;s&&(r=s);let d=[],u=n&&e.animationState&&e.animationState.getState()[n],m=r?.path;for(let t in m&&m.animateVisualElement(e,o,r,i,d),o){let s=e.getValue(t,e.latestValues[t]??null),n=o[t];if(void 0===n||u&&function({protectedKeys:e,needsAnimating:t},i){let s=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,s}(u,t))continue;let a={delay:i,...iz(r||{},t)};c&&(a.skipAnimations=!0);let l=s.get();if(void 0!==l&&!s.isAnimating()&&!Array.isArray(n)&&n===l&&!a.velocity){eO.update(()=>s.set(n));continue}let m=!1;if(window.MotionHandoffAnimation){let i=e.props[iE];if(i){let e=window.MotionHandoffAnimation(i,t,eO);null!==e&&(a.startTime=e,m=!0)}}iU(e,t);let p=h??e.shouldReduceMotion;s.start(sz(t,s,n,p&&el.has(t)?{type:!1}:a,e,m));let f=s.animation;f&&d.push(f)}if(a){let t=()=>eO.update(()=>{a&&function(e,t){let{transitionEnd:i={},transition:s={},...n}=iF(e,t)||{};for(let t in n={...n,...i}){var r;let i=iO(r=n[t])?r[r.length-1]||0:r;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,ty(i))}}(e,a)});d.length?Promise.all(d).then(t):t()}return d}function sU(e,t,i,s=0,n=1){let r=Array.from(e).sort((e,t)=>
78e.sortNodePosition(t)).indexOf(t),a=e.size,o=(a-1)*s;return"function"==typeof i?i(r,a):1===n?r*s:o-r*s}function s$(e,t,i={}){let s=iF(e,t,"exit"===i.type?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);let r=s?()=>Promise.all(sO(e,s,i)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=n;return function(e,t,i=0,s=0,n=0,r=1,a){let o=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),o.push(s$(l,t,{...a,delay:i+("function"==typeof s?0:s)+sU(e.variantChildren,l,s,n,r)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}(e,t,s,r,a,o,i)}:()=>Promise.resolve(),{when:o}=n;if(!o)return Promise.all([r(),a(i.delay)]);{let[e,t]="beforeChildren"===o?[r,a]:[a,r];return e().then(()=>t())}}let sW=tk.length;function sH(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let s=0;s<i;s++)if(t[s]!==e[s])return!1;return!0}let sG=[...tj].reverse(),sY=tj.length;function sX(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function s_(){return{animate:sX(!0),whileInView:sX(),whileHover:sX(),whileTap:sX(),whileDrag:sX(),whileFocus:sX(),exit:sX()}}let sq=0;function sK(e){return[e("x"),e("y")]}function sJ(e,t,i,s={passive:!0}){return e.addEventListener(t,i,s),()=>e.removeEventListener(t,i,s)}let sZ={x:!1,y:!1};function sQ(e){return e.max-e.min}function s0(e,t,i,s=.5){e.origin=s,e.originPoint=tK(t.min,t.max,e.origin),e.scale=sQ(i)/sQ(t),e.translate=tK(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function s1(e,t,i,s){s0(e.x,t.x,i.x,s?s.originX:void 0),s0(e.y,t.y,i.y,s?s.originY:void 0)}function s2(e,t,i,s=0){e.min=(s?tK(i.min,i.max,s):i.min)+t.min,e.max=e.min+sQ(t)}function s3(e,t,i,s=0){let n=s?tK(i.min,i.max,s):i.min;e.min=t.min-n,e.max=e.min+sQ(t)}function s4(e,t,i,s){s3(e.x,t.x,i.x,s?.x),s3(e.y,t.y,i.y,s?.y)}let s5=e=>"object"==typeof e&&null!==e;function s6(e){return s5(e)&&"ownerSVGElement"in e}function s9(e,t,i){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let s=document;t&&(s=t.current);let n=i?.[e]??s.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(e=>null!=e)}let s8=new WeakMap,s7=(e,t,i)=>(s,n)=>n&&n[0]?n[0][e+"Size"]:s6(s)&&"getBBox"in s?s.getBBox()[t]:s[i],ne=s7("inline","width","offsetWidth"),nt=s7("block","height","offsetHeight");function ni({target:e,borderBoxSize:t}){s8.get(e)?.forEach(i=>{i(e,{get width(){return ne(e,t)},get height(){return nt(e,t)}})})}function ns(e){e.forEach(ni)}let nn=new Set;function nr(e,t){let n;return"function"==typeof e?(nn.add(e),s||(s=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};nn.forEach(t=>t(e))},window.addEventListener("resize",s)),()=>{nn.delete(e),nn.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(ns)),(n=s9(e)).forEach(e=>{let s=s8.get(e);s||(s=new Set,s8.set(e,s)),s.add(t),i?.observe(e)}),()=>{n.forEach(e=>{let s=s8.get(e);s?.delete(t),s?.size||i?.unobserve(e)})})}let na=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),no=new Set(["INPUT","SELECT","TEXTAREA"]),nl=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function nh(e){return{point:{x:e.pageX,y:e.pageY}}}function nc(e,t,i,s){return sJ(e,t,e=>nl(e)&&i(e,nh(e)),s)}let nd=({current:e})=>e?e.ownerDocument.defaultView:null,nu=(e,t)=>Math.abs(e-t),nm=new Set(["auto","scroll"]);class np{constructor(e,t,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=nf(this.lastRawMoveEventInfo,this.transformPagePoint));let i=ny(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(e=i.offset,t={x:0,y:0},Math.sqrt(nu(e.x,t.x)**2+nu(e.y,t.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:r}=i,{timestamp:a}=e$;this.history.push({...r,timestamp:a});
78let{onStart:o,onMove:l}=this.handlers;s||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=nf(t,this.transformPagePoint),eO.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=ny("pointercancel"===e.type?this.lastMoveEventInfo:nf(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,r),s&&s(e,r)},!nl(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const o=nf(nh(e),this.transformPagePoint),{point:l}=o,{timestamp:h}=e$;this.history=[{...l,timestamp:h}];const{onSessionStart:c}=t;c&&c(e,ny(o,this.history));const d={passive:!0,capture:!0};this.removeListeners=i$(nc(this.contextWindow,"pointermove",this.handlePointerMove,d),nc(this.contextWindow,"pointerup",this.handlePointerUp,d),nc(this.contextWindow,"pointercancel",this.handlePointerUp,d)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(nm.has(e.overflowX)||nm.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.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(e){let t=this.scrollPositions.get(e);if(!t)return;let i=e===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},n={x:s.x-t.x,y:s.y-t.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(e,s),eO.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eU(this.updatePoint)}}function nf(e,t){return t?{point:t(e.point)}:e}function nx(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ny({point:e},t){return{point:e,delta:nx(e,ng(t)),offset:nx(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,i=null,s=ng(e);for(;t>=0&&(i=e[t],!(s.timestamp-i.timestamp>e1(.1)));)t--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&s.timestamp-i.timestamp>2*e1(.1)&&(i=e[1]);let n=(s.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let r={x:(s.x-i.x)/n,y:(s.y-i.y)/n};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(t)}}function ng(e){return e[e.length-1]}function nv(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function nb(e,t){let i=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,s]=[s,i]),{min:i,max:s}}function nw(e,t,i){return{min:nj(e,t),max:nj(e,i)}}function nj(e,t){return"number"==typeof e?e:e[t]||0}let nk=new WeakMap;class nS{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ea(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let n=e=>{t&&this.snapToCursor(nh(e).point),this.stopAnimation()},r=(e,t)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(sZ[e])return null;else return sZ[e]=!0,()=>{sZ[e]=!1};return sZ.x||sZ.y?null:(sZ.x=sZ.y=!0,()=>{sZ.x=sZ.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),sK(e=>{let t=this.getAxisMotionValue(e).get()||0;if(R.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[e];s&&(t=sQ(s)*(parseFloat(t)/100))}}this.originPoint[e]=t}),n&&eO.update(()=>n(e,t),!1,!0),iU(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=t;if(s&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),r&&eO.update(()=>r(e,t),!1,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:h}=this.getProps();this.panSession=new np(e,{onSessionStart:n,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:nd(this.visualElement),element:this.visualElement.current})}stop(e,t){let i=e||this.latestPointerEvent,s=t||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:r}=s;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&eO.postRender(()=>a(i,s))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,i){let{drag:s}=this.getProps();if(!i||!nT(e,s,this.currentDirection))return;let n=this.getAxisMotionValue(e),r=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(r=function(e,{min:t,max:i},s){return void 0!==t&&e<t?e=s?tK(t,e,s.min):Math.max(e,t):void 0!==i&&e>i&&(e=s?tK(i,e,s.max):Math.min(e,i)),e}(r,this.constraints[e],this.elastic[e])),n.set(r)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;e&&iV(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:s,right:n}){return{x:nv(e.x,i,n),y:nv(e.y,t,s)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nw(e,"left","right"),y:nw(e,"to
78p","bottom")}}(t),s!==this.constraints&&!iV(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&sK(e=>{var t,s;let n;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=i.layoutBox[e],s=this.constraints[e],n={},void 0!==s.min&&(n.min=s.min-t.min),void 0!==s.max&&(n.max=s.max-t.min),n))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!iV(t))return!1;let s=t.current;ep(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;n.root&&(n.root.scroll=void 0,n.root.updateScroll());let r=function(e,t,i){let s=ir(e,i),{scroll:n}=t;return n&&(ie(s.x,n.offset.x),ie(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),a=(e=n.layout.layoutBox,{x:nb(e.x,r.x),y:nb(e.y,r.y)});if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=t2(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(sK(a=>{if(!nT(a,t,this.currentDirection))return;let l=o&&o[a]||{};(!0===r||r===a)&&(l={min:0,max:0});let h={type:"inertia",velocity:i?e[a]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return iU(this.visualElement,e),i.start(sz(e,i,0,t,this.visualElement,!1))}stopAnimation(){sK(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){sK(t=>{let{drag:i}=this.getProps();if(!nT(t,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(t);if(s&&s.layout){let{min:i,max:r}=s.layout.layoutBox[t],a=n.get()||0;n.set(e[t]-tK(i,r,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!iV(t)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};sK(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var i,n;let r,a,o,l=t.get();s[e]=(i={min:l,max:l},n=this.constraints[e],r=.5,a=sQ(i),(o=sQ(n))>a?r=sw(n.min,n.max-a,i.min):a>o&&(r=sw(i.min,i.max-o,n.min)),b(0,1,r))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),sK(t=>{if(!nT(t,e,null))return;let i=this.getAxisMotionValue(t),{min:n,max:r}=this.constraints[t];i.set(tK(n,r,s[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;nk.set(this.visualElement,this);let t=this.visualElement.current,i=nc(t,"pointerdown",e=>{let{drag:i,dragListener:s=!0}=this.getProps(),n=e.target,r=n!==t&&(no.has(n.tagName)||!0===n.isContentEditable);i&&s&&!r&&this.start(e)}),s=()=>{var i,s,n;let r,a,{dragConstraints:o}=this.getProps();iV(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),e||(i=t,s=o.current,r=nr(i,nN(n=()=>this.scalePositionWithinConstraints())),a=nr(s,nN(n)),e=()=>{r(),a()}))},{projection:n}=this.visualElement,r=n.addEventListener("measure",s);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),eO.read(s);let a=sJ(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(sK(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),i(),r(),o&&o(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:a}}}function nN(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function nT(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let nP=e=>(t,i)=>{e&&eO.update(()=>e(t,i),!1,!0)},nM={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var nA=a;function nC(e=!0){let t=(0,a.useContext)(ij);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:s,register:n}=t,r=(0,a.useId)();(0,a.useEffect)(()=>
78{if(e)return n(r)},[e]);let o=(0,a.useCallback)(()=>e&&s&&s(r),[r,s,e]);return!i&&s?[!1,o]:[!0]}let nE=!1;class nD extends nA.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=e;n&&(t.group&&t.group.add(n),i&&i.register&&s&&i.register(n),nE&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nM.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:s,isPresent:n}=this.props,{projection:r}=i;return r&&(r.isPresent=n,e.layoutDependency!==t&&r.setOptions({...r.options,layoutDependency:t}),nE=!0,s||e.layoutDependency!==t||void 0===t||e.isPresent!==n?r.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?r.promote():r.relegate()||eO.postRender(()=>{let e=r.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:i}=e;i&&(i.options.layoutAnchor=t,i.root.didUpdate(),td.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:s}=e;nE=!0,s&&(s.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nV(e){let[t,i]=nC(),s=(0,nA.useContext)(ih);return(0,r.jsx)(nD,{...e,layoutGroup:s,switchLayoutGroup:(0,nA.useContext)(iD),isPresent:t,safeToRemove:i})}let nR=tX.length,nL=e=>"string"==typeof e?parseFloat(e):e,nI=e=>"number"==typeof e||L.test(e);function nF(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nB=nO(0,.5,sy),nz=nO(.5,.95,eI);function nO(e,t,i){return s=>s<e?0:s>t?1:i(sw(e,t,s))}function nU(e,t){e.min=t.min,e.max=t.max}function n$(e,t){nU(e.x,t.x),nU(e.y,t.y)}function nW(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nH(e,t,i,s,n){return e-=t,e=s+1/i*(e-s),void 0!==n&&(e=s+1/n*(e-s)),e}function nG(e,t,[i,s,n],r,a){!function(e,t=0,i=1,s=.5,n,r=e,a=e){if(R.test(t)&&(t=parseFloat(t),t=tK(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=tK(r.min,r.max,s);e===r&&(o-=t),e.min=nH(e.min,t,i,o,n),e.max=nH(e.max,t,i,o,n)}(e,t[i],t[s],t[n],t.scale,r,a)}let nY=["x","scaleX","originX"],nX=["y","scaleY","originY"];function n_(e,t,i,s){nG(e.x,t,nY,i?i.x:void 0,s?s.x:void 0),nG(e.y,t,nX,i?i.y:void 0,s?s.y:void 0)}function nq(e){return 0===e.translate&&1===e.scale}function nK(e){return nq(e.x)&&nq(e.y)}function nJ(e,t){return e.min===t.min&&e.max===t.max}function nZ(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nQ(e,t){return nZ(e.x,t.x)&&nZ(e.y,t.y)}function n0(e){return sQ(e.x)/sQ(e.y)}function n1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class n2{constructor(){this.members=[]}add(e){e2(this.members,e);for(let t=this.members.length-1;t>=0;t--){let i=this.members[t];if(i===e||i===this.lead||i===this.prevLead)continue;let s=i.instance;s&&!1!==s.isConnected||i.snapshot||(e3(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if(e3(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.updateSnapshot(),e.scheduleRender();let{layoutDependency:s}=i.options,{layoutDependency:n}=e.options;(void 0===s||s!==n)&&(e.resumeFrom=i,t&&(i.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}
78scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let n3=(e,t)=>e.depth-t.depth;class n4{constructor(){this.children=[],this.isDirty=!1}add(e){e2(this.children,e),this.isDirty=!0}remove(e){e3(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(n3),this.isDirty=!1,this.children.forEach(e)}}let n5=["","X","Y","Z"],n6=0;function n9(e,t,i,s){let{latestValues:n}=t;n[e]&&(i[e]=n[e],t.setStaticValue(e,0),s&&(s[e]=0))}function n8({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(e={},i=t?.()){this.id=n6++,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(rt),this.nodes.forEach(rc),this.nodes.forEach(rd),this.nodes.forEach(ri)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,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 e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new n4)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new e4),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=s6(t)&&!(s6(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:i,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),e){let i,s=0,n=()=>this.root.updateBlockedByResize=!1;eO.read(()=>{s=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==s){let t,r;s=e,this.root.updateBlockedByResize=!0,i&&i(),t=tm.now(),r=({timestamp:e})=>{let i=e-t;i>=250&&(eU(r),n(i-250))},eO.setup(r,!0),i=()=>eU(r),nM.hasAnimatedSinceResize&&(nM.hasAnimatedSinceResize=!1,this.nodes.forEach(rh))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||ry,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=n.getProps(),l=!this.targetLayout||!nQ(this.targetLayout,s),h=!t&&i;if(this.options.layoutRoot||this.resumeFrom||h||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...iz(r,"layout"),onPlay:a,onComplete:o};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,h,t.path)}else t||rh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eU(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
78h(ru),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let s=i.props[iE];if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(s,"transform",eO,!(e||i))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&e(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(rr),this.nodes.forEach(rn);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(ra);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ro),this.nodes.forEach(rl),this.nodes.forEach(n7),this.nodes.forEach(re)):this.nodes.forEach(ra),this.clearAllSnapshots();let e=tm.now();e$.delta=b(0,1e3/60,e-e$.timestamp),e$.timestamp=e,e$.isProcessing=!0,eW.update.process(e$),eW.preRender.process(e$),eW.render.process(e$),e$.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,td.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rs),this.sharedNodes.forEach(rm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eO.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eO.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||sQ(this.snapshot.measuredBox.x)||sQ(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=ea()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=s(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!n)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!nK(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;e&&this.instance&&(t||t5(this.latestValues)||r)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),s=this.removeElementScroll(i);return e&&(s=this.removeTransform(s)),rb((t=s).x),rb(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return ea();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rj))){let{scroll:e}=this.root;e&&(ie(t.x,e.offset.x),ie(t.y,e.offset.y))}return t}removeElementScroll(e){let t=ea();if(n$(t,e),this.scroll?.wasRoot)return t;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:r}=s;s!==this.root&&n&&r.layoutScroll&&(n.wasRoot&&n$(t,e),ie(t.x,n.offset.x),ie(t.y,n.offset.y))}return t}applyTransform(e,t=!1,i){let s=i||ea();n$(s,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(ie(s.x,-i.scroll.offset.x),ie(s.y,-i.scroll.offset.y)),t5(i.latestValues)&&is(s,i.latestValues,i.layout?.layoutBox)}return t5(this.latestValues)&&is(s,this.latestValues,this.layout?.layoutBox),s}removeTransform(e){let t=ea();n$(t,e);for(let e=0;e<this.path.length;e++){let i,s=this.path[e];t5(s.latestValues)&&(s.instance&&(t4(s.latestValues)&&s.updateSnapshot(),n$(i=ea(),s.measurePageBox())),n_(t,s.latestValues,s.snapshot?.layoutBox,i))}return t5(this.latestValues)&&n_(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.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!==e$.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
78isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==t;if(!(e||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:n}=this.options;if(!this.layout||!(s||n))return;this.resolvedRelativeTargetAt=e$.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=ea(),this.targetWithTransforms=ea()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,l,h;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,h=this.options.layoutAnchor||void 0,s2(a.x,o.x,l.x,h?.x),s2(a.y,o.y,l.y,h?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):n$(this.target,this.layout.layoutBox),t7(this.target,this.targetDelta)):n$(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||t4(this.parent.latestValues)||t6(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(e,t,i){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ea(),this.relativeTargetOrigin=ea(),s4(this.relativeTargetOrigin,t,i,this.options.layoutAnchor||void 0),n$(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===e$.timestamp&&(i=!1),i)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;n$(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;!function(e,t,i,s=!1){let n,r,a=i.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){r=(n=i[o]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(ie(e.x,-n.scroll.offset.x),ie(e.y,-n.scroll.offset.y)),r&&(t.x*=r.x.scale,t.y*=r.y.scale,t7(e,r)),s&&t5(n.latestValues)&&is(e,n.latestValues,n.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=ea());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nW(this.prevProjectionDelta.x,this.projectionDelta.x),nW(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),s1(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&n1(this.projectionDelta.x,this.prevProjectionDelta.x)&&n1(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=en(),this.projectionDelta=en(),this.projectionDeltaWithTransform=en()}setAnimationOrigin(e,t=!1,i){let s,n=this.snapshot,r=n?n.latestValues:{},a={...this.latestValues},o=en();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=ea(),h=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),d=!c||c.members.length<=1,u=!!(h&&!d&&!0===this.options.crossfade&&!this.path.some(rx));this.animationProgress=0;let m=i?.interpolateProjection(e);this.mixTargetDelta=t=>{let i=t/1e3,n=m?.(i);if(n?(o.x.translate=n.x,o.x.scale=tK(e.x.scale,1,i),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=n.y,o.y.scale=tK(e.y.scale,1,i),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(rp(o.x,e.x,i),rp(o.y,e.y,i)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,p,f,x,y,g;s4(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,x=this.relativeTargetOrigin,y=l,g=i,rf(f.x,x.x,y.x,g),rf(f.y,x.y,y.y,g),s&&(c=this.relativeTarget,p=s,nJ(c.x,p.x)&&nJ(c.y,p.y))&&(this.isProjectionDirty=!1),s||(s=ea()),n$(s,this.relativeTarget)}h&&(this.animationValues=a,function(e,t,i,s,n,r){n?(e.opacity=tK(0,i.opacity??1,nB(s)),e.opacityExit=tK(t.opacity??1,0,nz(s))):r&&(e.opacity=tK(t.opacity??1,i.opacity??1,s));for(let n=0;n<nR;n++){let r=tX[n],a=nF(t,r),o=nF(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||nI(a)===nI(o)?(e[r]=Math.max(tK(nL(a),nL(o),s),0),(R.test(o)||R.test(a))&&(e[r]+="%")):e[r]=o)}(t.rotate||i.rotate)&&(e.rotate=tK(t.rotate||0,i.rotate||0,s))}(a,r,this.latestValues,i,u,d)),n&&void 0!==n.rotate&&(this.animationValues||(this.animationValues=a),this.animationValues.pathRotation=n.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eU(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eO.update(()=>{var t,i,s;let n;nM.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ty(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,i=[0,1e3],s={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}},(n=eo(t)?t:ty(t)).start(sz("",n,i,s)),n.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.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 e=this.getLead(),{targetWithTransforms:t,target:i,layout:s,latestValues:n}=e;if(t&&i&&s){if(this!==e&&this.layout&&s&&rw(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||ea();let t=sQ(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let s=sQ(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+s}n$(t,i),is(t,n),s1(this.projectionDeltaWithTransform,this.layoutCorrected,t,n)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new n2),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;
78return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let s={};i.z&&n9("z",e,s,this.animationValues);for(let t=0;t<n5.length;t++)n9(`rotate${n5[t]}`,e,s,this.animationValues),n9(`skew${n5[t]}`,e,s,this.animationValues);for(let t in e.render(),s)e.setStaticValue(t,s[t]),this.animationValues&&(this.animationValues[t]=s[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=iw(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=iw(t?.pointerEvents)||""),this.hasProjected&&!t5(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1);return}e.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let r=function(e,t,i){let s="",n=e.x.translate/t.x,r=e.y.translate/t.y,a=i?.z||0;if((n||r||a)&&(s=`translate3d(${n}px, ${r}px, ${a}px) `),(1!==t.x||1!==t.y)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,pathRotation:n,rotateX:r,rotateY:a,skewX:o,skewY:l}=i;e&&(s=`perspective(${e}px) ${s}`),t&&(s+=`rotate(${t}deg) `),n&&(s+=`rotate(${n}deg) `),r&&(s+=`rotateX(${r}deg) `),a&&(s+=`rotateY(${a}deg) `),o&&(s+=`skewX(${o}deg) `),l&&(s+=`skewY(${l}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(s+=`scale(${o}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(r=i(n,r)),e.transform=r;let{x:a,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,s.animationValues?e.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:e.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,tJ){if(void 0===n[t])continue;let{correct:i,applyTo:a,isCSSVariable:o}=tJ[t],l="none"===r?n[t]:i(n[t],s);if(a){let t=a.length;for(let i=0;i<t;i++)e[a[i]]=l}else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=s===this?iw(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(rn),this.root.sharedNodes.clear()}}}function n7(e){e.updateLayout()}function re(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=e.layout,{animationType:n}=e.options,r=t.source!==e.layout.source;if("size"===n)sK(e=>{let s=r?t.measuredBox[e]:t.layoutBox[e],n=sQ(s);s.min=i[e].min,s.max=s.min+n});else if("x"===n||"y"===n){let e="x"===n?"y":"x";nU(r?t.measuredBox[e]:t.layoutBox[e],i[e])}else rw(n,t.layoutBox,i)&&sK(s=>{let n=r?t.measuredBox[s]:t.layoutBox[s],a=sQ(i[s]);n.max=n.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[s].max=e.relativeTarget[s].min+a)});let a=en();s1(a,i,t.layoutBox);let o=en();r?s1(o,e.applyTransform(s,!0),t.measuredBox):s1(o,i,t.layoutBox);let l=!nK(a),h=!1;if(!e.resumeFrom){let s=e.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let a=e.options.layoutAnchor||void 0,o=ea();s4(o,t.layoutBox,n.layoutBox,a);let l=ea();s4(l,i,r.layoutBox,a),nQ(o,l)||(h=!0),s.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=o,e.relativeParent=s)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function rt(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ri(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rs(e){e.clearSnapshot()}function rn(e){e.clearMeasurements()}function rr(e){e.isLayoutDirty=!0,e.updateLayout()}function ra(e){e.isLayoutDirty=!1}function ro(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function rl(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rc(e){e.resolveTargetDelta()}function rd(e){e.calcProjection()}
78function ru(e){e.resetSkewAndRotation()}function rm(e){e.removeLeadSnapshot()}function rp(e,t,i){e.translate=tK(t.translate,0,i),e.scale=tK(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function rf(e,t,i,s){e.min=tK(t.min,i.min,s),e.max=tK(t.max,i.max,s)}function rx(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let ry={duration:.45,ease:[.4,0,.1,1]},rg=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),rv=rg("applewebkit/")&&!rg("chrome/")?Math.round:eI;function rb(e){e.min=rv(e.min),e.max=rv(e.max)}function rw(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(n0(t)-n0(i)))}function rj(e){return e!==e.root&&e.scroll?.wasRoot}let rk=n8({attachResizeListener:(e,t)=>sJ(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rS={current:void 0},rN=n8({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rS.current){let e=new rk({});e.mount(window),e.setOptions({layoutScroll:!0}),rS.current=e}return rS.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function rT(e,t){let i=s9(e),s=new AbortController;return[i,{passive:!0,...t,signal:s.signal},()=>s.abort()]}function rP(e,t,i){let{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&eO.postRender(()=>n(t,nh(t)))}function rM(e){return s5(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}let rA=(e,t)=>!!t&&(e===t||rA(e,t.parentElement)),rC=new WeakSet;function rE(e){return t=>{"Enter"===t.key&&e(t)}}function rD(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function rV(e){return nl(e)&&!(sZ.x||sZ.y)}let rR=new WeakSet;function rL(e,t,i){let{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&eO.postRender(()=>n(t,nh(t)))}let rI=new WeakMap,rF=new WeakMap,rB=e=>{let t=rI.get(e.target);t&&t(e)},rz=e=>{e.forEach(rB)},rO={some:0,all:1},rU=function(e,t){if("u"<typeof Proxy)return iL;let i=new Map,s=(i,s)=>iL(i,s,e,t);return new Proxy((e,t)=>s(e,t),{get:(n,r)=>"create"===r?s:(i.has(r)||i.set(r,iL(r,void 0,e,t)),i.get(r))})}({animation:{Feature:class extends iI{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let s;if(e.notify("AnimationStart",t),Array.isArray(t))s=Promise.all(t.map(t=>s$(e,t,i)));else if("string"==typeof t)s=s$(e,t,i);else{let n="function"==typeof t?iF(e,t,i.custom):t;s=Promise.all(sO(e,n,i))}return s.then(()=>{e.notify("AnimationComplete",t)})})(e,t,i))),i=s_(),s=!0,n=!1,r=t=>(i,s)=>{let n=iF(e,s,"exit"===t?e.presenceContext?.custom:void 0);if(n){let{transition:e,transitionEnd:t,...s}=n;i={...i,...s,...t}}return i};function a(a){let{props:o}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;e<sW;e++){let s=tk[e],n=t.props[s];(tw(n)||!1===n)&&(i[s]=n)}return i}(e.parent)||{},h=[],c=new Set,d={},u=1/0;for(let t=0;t<sY;t++){var m,p;let f=sG[t],x=i[f],y=void 0!==o[f]?o[f]:l[f],g=tw(y),v=f===a?x.isActive:null;!1===v&&(u=t);let b=y===l[f]&&y!==o[f]&&g;if(b&&(s||n)&&e.manuallyAnimateOnMount&&(b=!1),x.protectedKeys={...d},!x.isActive&&null===v||!y&&!x.prevProp||tb(y)||"boolean"==typeof y)continue;if("exit"===f&&x.isActive&&!0!==v){x.prevResolvedValues&&(d={...d,...x.prevResolvedValues});continue}let w=(m=x.prevProp,"string"==typeof(p=y)?p!==m:!!Array.isArray(p)&&!sH(p,m)),j=w||f===a&&x.isActive&&!b&&g||t>u&&g,k=!1,S=Array.isArray(y)?y:[y],N=S.reduce(r(f),{});!1===v&&(N={});let{prevResolvedValues:T={}}=x,P={...T,...N},M=t=>{j=!0,c.has(t)&&(k=!0,c.delete(t)),x.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in P){let t=N[e],i=T[e];
78if(!d.hasOwnProperty(e))(iO(t)&&iO(i)?!sH(t,i)||w:t!==i)?null!=t?M(e):c.add(e):void 0!==t&&c.has(e)?M(e):x.protectedKeys[e]=!0}x.prevProp=y,x.prevResolvedValues=N,x.isActive&&(d={...d,...N}),(s||n)&&e.blockInitialAnimation&&(j=!1);let A=b&&w,C=!A||k;j&&C&&h.push(...S.map(t=>{let i={type:f};if("string"==typeof t&&(s||n)&&!A&&e.manuallyAnimateOnMount&&e.parent){let{parent:s}=e,n=iF(s,t);if(s.enteringChildren&&n){let{delayChildren:t}=n.transition||{};i.delay=sU(s.enteringChildren,e,t)}}return{animation:t,options:i}}))}if(c.size){let t={};if("boolean"!=typeof o.initial){let i=iF(e,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(t.transition=i.transition)}c.forEach(i=>{let s=e.getBaseTarget(i),n=e.getValue(i);n&&(n.liveStyle=!0),t[i]=s??null}),h.push({animation:t})}let f=!!h.length;return s&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),s=!1,n=!1,f?t(h):Promise.resolve()}return{animateChanges:a,setActive:function(t,s){if(i[t].isActive===s)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,s)),i[t].isActive=s;let n=a(t);for(let e in i)i[e].protectedKeys={};return n},setAnimateFunction:function(i){t=i(e)},getState:()=>i,reset:()=>{i=s_(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tb(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iI{constructor(){super(...arguments),this.id=sq++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;if(e&&!1===i){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let i=iF(this.node,e,t);if(i){let{transition:e,transitionEnd:t,...s}=i;for(let e in s)this.node.getValue(e)?.jump(s[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let s=this.node.animationState.setActive("exit",!e);t&&!e&&s.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends iI{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:r="some",once:a}=i,o={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:rO[r]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=t?i:s;n&&n(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let i=e||document;rF.has(i)||rF.set(i,{});let s=rF.get(i),n=JSON.stringify(t);return s[n]||(s[n]=new IntersectionObserver(rz,{root:e,...t})),s[n]}(o),rI.set(e,l),t.observe(e),()=>{rI.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iI{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:i}=this.node.props;this.unmount=function(e,t,i={}){let[s,n,r]=rT(e,i),a=e=>{let s=e.currentTarget;if(!rV(e)||rR.has(e))return;rC.add(s),i.stopPropagation&&rR.add(e);let r=t(s,e),a={...n,capture:!0},o=(e,t)=>{window.removeEventListener("pointerup",l,a),window.removeEventListener("pointercancel",h,a),rC.has(s)&&rC.delete(s),rV(e)&&"function"==typeof r&&r(e,{success:t})},l=e=>{o(e,s===window||s===document||i.useGlobalTarget||rA(s,e.target))},h=e=>{o(e,!1)};window.addEventListener("pointerup",l,a),window.addEventListener("pointercancel",h,a)};
78return s.forEach(e=>{((i.useGlobalTarget?window:e).addEventListener("pointerdown",a,n),rM(e))&&(e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let s=rE(()=>{if(rC.has(i))return;rD(i,"down");let e=rE(()=>{rD(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>rD(i,"cancel"),t)});i.addEventListener("keydown",s,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),t)})(e,n)),na.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),r}(e,(e,t)=>(rL(this.node,t,"Start"),(e,{success:t})=>rL(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iI{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&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=i$(sJ(this.node.current,"focus",()=>this.onFocus()),sJ(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iI{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[s,n,r]=rT(e,i);return s.forEach(e=>{let i,s=!1,r=!1,a=t=>{i&&(i(t),i=void 0),e.removeEventListener("pointerleave",l)},o=e=>{s=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),r&&(r=!1,a(e))},l=e=>{if("touch"!==e.pointerType){if(s){r=!0;return}a(e)}};e.addEventListener("pointerenter",s=>{if("touch"===s.pointerType||sZ.x||sZ.y)return;r=!1;let a=t(e,s);"function"==typeof a&&(i=a,e.addEventListener("pointerleave",l,n))},n),e.addEventListener("pointerdown",()=>{s=!0,window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",o,n)},n)}),r}(e,(e,t)=>(rP(this.node,t,"Start"),e=>rP(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends iI{constructor(){super(...arguments),this.removePointerDownListener=eI}onPointerDown(e){this.session=new np(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nd(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:nP(e),onStart:nP(t),onMove:nP(i),onEnd:(e,t)=>{delete this.session,s&&eO.postRender(()=>s(e,t))}}}mount(){this.removePointerDownListener=nc(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iI{constructor(e){super(e),this.removeGroupControls=eI,this.removeListeners=eI,this.controls=new nS(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eI}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:rN,MeasureLayout:nV},layout:{ProjectionNode:rN,MeasureLayout:nV}},(e,t)=>t.isSVG??il(e)?new t1(t):new ia(t,{allowProjection:e!==a.Fragment}));var r$=a;function rW(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class rH extends r$.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(rM(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,i=rM(e)&&e.offsetWidth||0,s=rM(e)&&e.offsetHeight||0,n=getComputedStyle(t),r=this.props.sizeRef.current;r.height=parseFloat(n.height),r.width=parseFloat(n.width),r.top=t.offsetTop,r.left=t.offsetLeft,r.right=i-r.width-r.left,r.bottom=s-r.height-r.top,r.direction=n.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function rG({children:e,isPresent:t,anchorX:i,anchorY:s,root:n,pop:o}){let l=(0,r$.useId)(),h=(0,r$.useRef)(null),c=(0,r$.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:d}=(0,r$.useContext)(id),u=function(...e){return a.useCallback(function(...e){return t=>{let i=!1,s=e.map(e=>{let s=rW(e,t);return i||"function"!=typeof s||(i=!0),s});if(i)return()=>{for(let t=0;t<s.length;t++){let i=s[t];"function"==typeof i?i():rW(e[t],null)}}}}(...e),e)}(h,e.props?.ref??e?.ref);return(0,r$.useInsertionEffect)(()=>{let{width:e,height:r,top:a,left:u,right:m,bottom:p,direction:f}=c.current;if(t||!1===o||!h.current||!e||!r)return;let x="rtl"===f,y="left"===i?x?`right: ${m}`:`left: ${u}`:x?`left: ${u}`:`right: ${m}`,g="bottom"===s?`bottom: ${p}`:`top: ${a}`;h.current.dataset.motionPopId=l;let v=document.createElement("style");
78d&&(v.nonce=d);let b=n??document.head;return b.appendChild(v),v.sheet&&v.sheet.insertRule(`
79          [data-motion-pop-id="${l}"] {
80            position: absolute !important;
81            width: ${e}px !important;
82            height: ${r}px !important;
83            ${y}px !important;
84            ${g}px !important;
85          }
86        `),()=>{h.current?.removeAttribute("data-motion-pop-id"),b.contains(v)&&b.removeChild(v)}},[t]),(0,r.jsx)(rH,{isPresent:t,childRef:h,sizeRef:c,pop:o,children:!1===o?e:r$.cloneElement(e,{ref:u})})}let rY=({children:e,initial:t,isPresent:i,onExitComplete:s,custom:n,presenceAffectsLayout:o,mode:l,anchorX:h,anchorY:c,root:d})=>{let u=ik(rX),m=(0,a.useId)(),p=(0,a.useRef)(i),f=(0,a.useRef)(s);iR(()=>{p.current=i,f.current=s});let x=!0,y=(0,a.useMemo)(()=>(x=!1,{id:m,initial:t,isPresent:i,custom:n,onExitComplete:e=>{for(let t of(u.set(e,!0),u.values()))if(!t)return;s&&s()},register:e=>(u.set(e,!1),()=>{u.delete(e),p.current||u.size||f.current?.()})}),[i,u,s]);return o&&x&&(y={...y}),(0,a.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[i]),a.useEffect(()=>{i||u.size||!s||s()},[i]),e=(0,r.jsx)(rG,{pop:"popLayout"===l,isPresent:i,anchorX:h,anchorY:c,root:d,children:e}),(0,r.jsx)(ij.Provider,{value:y,children:e})};function rX(){return new Map}let r_=e=>e.key||"";function rq(e){let t=[];return a.Children.forEach(e,e=>{(0,a.isValidElement)(e)&&t.push(e)}),t}let rK=({children:e,custom:t,initial:i=!0,onExitComplete:s,presenceAffectsLayout:n=!0,mode:o="sync",propagate:l=!1,anchorX:h="left",anchorY:c="top",root:d})=>{let[u,m]=nC(l),p=(0,a.useMemo)(()=>rq(e),[e]),f=l&&!u?[]:p.map(r_),x=(0,a.useRef)(!0),y=(0,a.useRef)(p),g=ik(()=>new Map),v=(0,a.useRef)(new Set),[b,w]=(0,a.useState)(p),[j,k]=(0,a.useState)(p);iR(()=>{x.current=!1,y.current=p;for(let e=0;e<j.length;e++){let t=r_(j[e]);f.includes(t)?(g.delete(t),v.current.delete(t)):!0!==g.get(t)&&g.set(t,!1)}},[j,f.length,f.join("-")]);let S=[];if(p!==b){let e=[...p];for(let t=0;t<j.length;t++){let i=j[t],s=r_(i);f.includes(s)||(e.splice(t,0,i),S.push(i))}return"wait"===o&&S.length&&(e=S),k(rq(e)),w(p),null}let{forceRender:N}=(0,a.useContext)(ih);return(0,r.jsx)(r.Fragment,{children:j.map(e=>{let a=r_(e),b=(!l||!!u)&&(p===j||f.includes(a));return(0,r.jsx)(rY,{isPresent:b,initial:(!x.current||!!i)&&void 0,custom:t,presenceAffectsLayout:n,mode:o,root:d,onExitComplete:b?void 0:()=>{if(v.current.has(a)||!g.has(a))return;v.current.add(a),g.set(a,!0);let e=!0;g.forEach(t=>{t||(e=!1)}),e&&(N?.(),k(y.current),l&&m?.(),s&&s())},anchorX:h,anchorY:c,children:e},a)})})},rJ=(...e)=>e.filter((e,t,i)=>!!e&&""!==e.trim()&&i.indexOf(e)===t).join(" ").trim(),rZ=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,i)=>i?i.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var rQ={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let r0=(0,a.createContext)({}),r1=(0,a.forwardRef)(({color:e,size:t,strokeWidth:i,absoluteStrokeWidth:s,className:n="",children:r,iconNode:o,...l},h)=>{let{size:c=24,strokeWidth:d=2,absoluteStrokeWidth:u=!1,color:m="currentColor",className:p=""}=(0,a.useContext)(r0)??{},f=s??u?24*Number(i??d)/Number(t??c):i??d;return(0,a.createElement)("svg",{ref:h,...rQ,width:t??c??rQ.width,height:t??c??rQ.height,stroke:e??m,strokeWidth:f,className:rJ("lucide",p,n),...!r&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(l)&&{"aria-hidden":"true"},...l},[...o.map(([e,t])=>(0,a.createElement)(e,t)),...Array.isArray(r)?r:[r]])}),r2=(e,t)=>{let i=(0,a.forwardRef)(({className:i,...s},n)=>(0,a.createElement)(r1,{ref:n,iconNode:t,className:rJ(`lucide-${rZ(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...s}));return i.displayName=rZ(e),i},r3=r2("battery",[["path",{d:"M 22 14 L 22 10",key:"nqc4tb"}],["rect",{x:"2",y:"6",width:"16",height:"12",rx:"2",key:"13zb55"}]]),r4=r2("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]),r5=r2("volume-2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]),r6=r2("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);
86function r9(){let{toggleActivities:e,setActivitiesOpen:t,activitiesOpen:i,soundEnabled:s,setSoundEnabled:n}=y(),[o,l]=(0,a.useState)(new Date);(0,a.useEffect)(()=>{let e=setInterval(()=>l(new Date),1e3);return()=>clearInterval(e)},[]);let h=o.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),c=o.toLocaleDateString([],{weekday:"short",month:"short",day:"numeric"});return(0,r.jsxs)("div",{className:"fixed top-0 left-0 right-0 z-[9999] h-8 glass-panel text-white text-sm flex items-center justify-between px-3 select-none",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)("button",{onClick:e,className:"font-semibold tracking-wide hover:text-white/80 transition-colors",children:"Activities"}),(0,r.jsx)(rK,{children:i&&(0,r.jsx)(rU.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},exit:{opacity:0,x:-10},className:"hidden sm:flex items-center gap-2 text-white/70",children:(0,r.jsx)("span",{className:"text-xs",children:"Desktop"})})})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3 sm:gap-5",children:[(0,r.jsx)("button",{onClick:()=>n(!s),className:"hover:opacity-70 transition-opacity","aria-label":s?"Mute sound":"Unmute sound",children:(0,r.jsx)(r5,{className:"w-4 h-4"})}),(0,r.jsx)(r4,{className:"w-4 h-4"}),(0,r.jsx)(r3,{className:"w-4 h-4"}),(0,r.jsx)(r6,{className:"w-4 h-4"}),(0,r.jsxs)("button",{onClick:()=>t(!0),className:"flex flex-col items-end leading-none hover:opacity-80 transition-opacity",children:[(0,r.jsx)("span",{className:"font-medium",children:h}),(0,r.jsx)("span",{className:"text-[10px] text-white/70 hidden sm:inline",children:c})]})]})]})}let r8=r2("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]),r7=r2("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]),ae=r2("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]),at=r2("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),ai=r2("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]),as=r2("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),an={Activity:r8,Code2:r7,File:ae,FileText:at,FolderOpen:ai,Globe:as,Settings:r2("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),Terminal:r2("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]),Trash2:r2("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])};function ar(e){return an[e]??as}let aa={startup:"https://actions.google.com/sounds/v1/ambient/space.ogg",open:"https://actions.google.com/sounds/v1/cartoon/pop.ogg",close:"https://actions.google.com/sounds/v1/cartoon/wood_plank_flicks.ogg",click:"https://actions.google.com/sounds/v1/foley/click.ogg",type:"https://actions.google.com/sounds/v1/foley/keyboard_typing.ogg",notification:"https://actions.google.com/sounds/v1/notification/simple_notification.ogg",minimize:"https://actions.google.com/sounds/v1/cartoon/wood_plank_flicks.ogg",maximize:"https://actions.google.com/sounds/v1/cartoon/pop.ogg"};function ao(){let{soundEnabled:e}=y(),t=(0,a.useRef)({});return(0,a.useEffect)(()=>
86(Object.keys(aa).forEach(e=>{let i=new Audio(aa[e]);i.preload="auto",i.volume=.3,t.current[e]=i}),()=>{t.current={}}),[]),(0,a.useCallback)(i=>{if(!e)return;let s=t.current[i];s&&(s.currentTime=0,s.play().catch(()=>{}))},[e])}function al(){let{openApp:e,focusWindow:t,restoreWindow:i,runningAppIds:s,activeWindowId:n,windows:l,workspace:c,setWorkspace:d,setActivitiesOpen:u}=y(),[m,p]=(0,a.useState)(null),[f,x]=(0,a.useState)(null),g=ao();return(0,r.jsxs)("div",{className:"fixed bottom-3 left-1/2 -translate-x-1/2 z-[9998]",onPointerDown:e=>e.stopPropagation(),children:[(0,r.jsx)("div",{className:"glass-dock rounded-2xl px-3 py-2 flex items-end gap-2 sm:gap-3",children:h.map((a,d)=>{let f=ar(o[a].icon),y=s.includes(a),v=l.some(e=>e.id===n&&e.appId===a),b=m===a,w=b?1.35:1,j=m&&h[d-1]===m||h[d+1]===m?1.15:1;return(0,r.jsxs)("div",{className:"relative flex flex-col items-center",children:[(0,r.jsx)(rK,{children:b&&(0,r.jsx)(rU.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:6},className:"absolute -top-9 bg-black/80 text-white text-xs px-2 py-1 rounded-md whitespace-nowrap pointer-events-none backdrop-blur-sm",children:a.charAt(0).toUpperCase()+a.slice(1)})}),(0,r.jsxs)(rU.button,{onMouseEnter:()=>p(a),onMouseLeave:()=>p(null),onClick:()=>{let s;return g("click"),u(!1),void((s=l.find(e=>e.appId===a))?s.minimized?i(s.id,{workspace:c}):t(s.id):e(a,{focus:!0}))},onPointerDown:e=>e.stopPropagation(),onContextMenu:e=>{e.preventDefault(),x({appId:a,x:e.clientX,y:e.clientY})},whileTap:{scale:.9},animate:{scale:w*j,y:b?-8:0},transition:{type:"spring",stiffness:300,damping:20},className:`relative p-2 rounded-xl transition-shadow ${v?"shadow-[0_0_20px_rgba(233,84,32,0.5)]":""}`,"aria-label":`Open ${a}`,children:[(0,r.jsx)("div",{className:"w-10 h-10 sm:w-11 sm:h-11 rounded-xl bg-gradient-to-br from-white/20 to-white/5 flex items-center justify-center shadow-lg",children:(0,r.jsx)(f,{className:"w-6 h-6 sm:w-7 sm:h-7 text-white"})}),y&&(0,r.jsx)(rU.div,{layoutId:`indicator-${a}`,className:"absolute -bottom-1 left-1/2 -translate-x-1/2 w-1.5 h-1.5 rounded-full bg-white/90"}),v&&(0,r.jsx)("div",{className:"absolute inset-0 rounded-xl ring-2 ring-white/20 pointer-events-none"})]})]},a)})}),(0,r.jsx)(rK,{children:f&&(0,r.jsxs)(rU.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"fixed bg-[#2c2c2c]/95 text-white text-sm rounded-lg shadow-2xl py-1 min-w-[160px] z-[10000] border border-white/10",style:{left:f.x,top:f.y},onClick:()=>x(null),children:[(0,r.jsx)("button",{className:"w-full text-left px-3 py-1.5 hover:bg-white/10 transition-colors",onClick:()=>{e(f.appId),x(null)},children:"New Window"}),(0,r.jsx)("button",{className:"w-full text-left px-3 py-1.5 hover:bg-white/10 transition-colors",onClick:()=>{d(1),x(null)},children:"Show on Desktop"}),(0,r.jsx)("div",{className:"h-px bg-white/10 my-1"}),(0,r.jsx)("button",{className:"w-full text-left px-3 py-1.5 hover:bg-white/10 transition-colors text-white/60",onClick:()=>x(null),children:"Cancel"})]})})]})}function ah({className:e}){return(0,r.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})}function ac({className:e}){return(0,r.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"})})}
86function ad(){let{openApp:e,setActivitiesOpen:t}=y(),i=ao();return(0,r.jsx)("div",{className:"fixed top-10 left-0 bottom-20 w-28 z-[100]",children:(0,r.jsx)("div",{className:"flex flex-col p-2",children:l.map(s=>{let n=o[s.appId],a="GitHub"===s.label?ah:"LinkedIn"===s.label?ac:ar(n?.icon??"FileText");return(0,r.jsxs)(rU.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>{i("click"),t(!1),s.url?window.open(s.url,"_blank"):e(s.appId)},onPointerDown:e=>e.stopPropagation(),className:"flex flex-col items-center gap-1 group py-2","aria-label":(s.url,`Open ${s.label}`),children:[(0,r.jsx)("div",{className:"w-14 h-14 rounded-lg bg-white/10 backdrop-blur-sm flex items-center justify-center shadow-sm group-hover:bg-white/20 transition-colors",children:(0,r.jsx)(a,{className:"w-7 h-7 text-white"})}),(0,r.jsx)("span",{className:"text-xs text-white text-center drop-shadow-md px-1 rounded group-hover:bg-black/30 transition-colors",children:s.label})]},s.id)})})})}let au=r2("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),am=r2("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function ap(){let{activitiesOpen:e,setActivitiesOpen:t,openApp:i,windows:s,workspace:n,setWorkspace:l,setWindowWorkspace:h,focusWindow:c,appsByCategory:d}=y(),[u,m]=(0,a.useState)(""),p=(0,a.useMemo)(()=>u.trim()?Object.values(o).filter(e=>e.title.toLowerCase().includes(u.toLowerCase())||e.id.toLowerCase().includes(u.toLowerCase())):[],[u]);return e?(0,r.jsxs)(rU.div,{initial:{opacity:0,scale:1.02},animate:{opacity:1,scale:1},exit:{opacity:0,scale:1.02},transition:{duration:.3,ease:[.22,1,.36,1]},className:"fixed inset-0 z-[9000] ubuntu-wallpaper",style:{backgroundBlendMode:"screen, screen, multiply, normal"},onClick:()=>t(!1),children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-xl"}),(0,r.jsxs)("div",{className:"relative z-10 h-full flex flex-col",onClick:e=>e.stopPropagation(),children:[(0,r.jsx)("div",{className:"pt-10 px-8",children:(0,r.jsxs)("div",{className:"max-w-2xl mx-auto relative",children:[(0,r.jsx)(au,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-white/60"}),(0,r.jsx)("input",{autoFocus:!0,value:u,onChange:e=>m(e.target.value),placeholder:"Type to search...",className:"w-full h-12 bg-black/40 text-white rounded-full pl-12 pr-12 text-lg border border-white/10 focus:border-white/30 focus:outline-none placeholder:text-white/40 backdrop-blur-md"}),u&&(0,r.jsx)("button",{onClick:()=>m(""),className:"absolute right-4 top-1/2 -translate-y-1/2 text-white/60 hover:text-white",children:(0,r.jsx)(am,{className:"w-5 h-5"})})]})}),(0,r.jsx)("div",{className:"flex-1 overflow-y-auto p-8",children:u.trim()?(0,r.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,r.jsx)("h3",{className:"text-white/70 text-sm font-medium mb-4 uppercase tracking-wider",children:"Applications"}),(0,r.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-4 md:grid-cols-6 gap-4",children:p.map(e=>{let s=ar(e.icon);return(0,r.jsxs)("button",{onClick:()=>{i(e.id),m(""),t(!1)},className:"flex flex-col items-center gap-2 p-4 rounded-xl bg-white/5 hover:bg-white/15 transition-colors",children:[(0,r.jsx)(s,{className:"w-10 h-10 text-white"}),(0,r.jsx)("span",{className:"text-white text-sm text-center",children:e.title})]},e.id)})})]}):(0,r.jsxs)("div",{className:"max-w-6xl mx-auto h-full flex flex-col",children:[(0,r.jsx)("div",{className:"flex-1 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 items-center",children:[1,2].map(e=>(0,r.jsxs)("div",{onClick:()=>l(e),className:`relative aspect-video rounded-xl border-2 transition-all cursor-pointer overflow-hidden ${n===e?"border-white/60 scale-105":"border-white/10 hover:border-white/30"}`,children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-black/20"}),(0,r.jsx)("div",{className:"absolute inset-0 flex flex-wrap content-start gap-2 p-3",children:s.filter(t=>t.workspace===e).map(i=>{let s=ar(o[i.appId].icon);return(0,r.jsxs)("button",{onClick:s=>{s.stopPropagation(),h(i.id,e),c(i.id),t(!1)},className:"w-full h-12 bg-white/10 rounded-md flex items-center gap-2 px-3 hover:bg-white/20 transition-colors",children:[(0,r.jsx)(s,{className:"w-5 h-5 text-white"}),(0,r.jsx)("span",{className:"text-white text-xs truncate",children:i.title})]},i.id)})}),(0,r.jsxs)("div",{className:"absolute bottom-2 left-2 text-white/80 text-xs font-medium",children:["Workspace ",e]})]},e))}),(0,r.jsxs)("div",{className:"mt-8",children:[(0,r.jsx)("h3",{className:"text-white/70 text-sm font-medium mb-4 uppercase tracking-wider",children:"Application Launcher"}),(0,r.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-4 md:grid-cols-6 lg:grid-cols-8 gap-3",children:Object.values(d).flat().map(e=>{let s=o[e],n=ar(s.icon);return(0,r.jsxs)("button",{onClick:()=>{i(e),t(!1)},className:"flex flex-col items-center gap-2 p-3 rounded-xl bg-white/5 hover:bg-white/15 transition-colors",children:[(0,r.jsx)(n,{className:"w-8 h-8 text-white"}),(0,r.jsx)("span",{className:"text-white text-xs text-center",children:s.title})]},e)})})]})]})})]})]}):null}let af=r2("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),ax=r2("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),ay=r2("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]),ag=[{dir:"n",cursor:"n-resize",class:"top-0 left-1/2 -translate-x-1/2 w-[calc(100%-16px)] h-2"},{dir:"s",cursor:"s-resize",class:"bottom-0 left-1/2 -translate-x-1/2 w-[calc(100%-16px)] h-2"},{dir:"e",cursor:"e-resize",class:"right-0 top-1/2 -translate-y-1/2 w-2 h-[calc(100%-16px)]"},{dir:"w",cursor:"w-resize",class:"left-0 top-1/2 -translate-y-1/2 w-2 h-[calc(100%-16px)]"},{dir:"ne",cursor:"ne-resize",class:"top-0 right-0 w-4 h-4"},{dir:"nw",cursor:"nw-resize",class:"top-0 left-0 w-4 h-4"},{dir:"se",cursor:"se-resize",class:"bottom-0 right-0 w-4 h-4"},{dir:"sw",cursor:"sw-resize",class:"bottom-0 left-0 w-4 h-4"}];function av({window:e,children:t,appId:i}
86){let{focusWindow:s,closeWindow:n,minimizeWindow:o,maximizeWindow:l,restoreWindow:h,moveWindow:c,resizeWindow:d,getAppConfig:u,workspace:m}=y(),p=ao(),f=u(i),x=(0,a.useRef)(null),[g,v]=(0,a.useState)(!1),b=(0,a.useRef)({x:0,y:0,wx:0,wy:0}),w=(0,a.useRef)({x:0,y:0,width:0,height:0,dir:""}),j=()=>s(e.id),k=()=>{p("close"),n(e.id)},S=()=>{p("minimize"),o(e.id)},N=()=>{p(e.maximized?"open":"maximize"),e.maximized?h(e.id):l(e.id)};(0,a.useEffect)(()=>{if(!g)return;let t=t=>{let i=t.clientX-b.current.x,s=t.clientY-b.current.y;c(e.id,Math.max(0,b.current.wx+i),Math.max(28,b.current.wy+s))},i=()=>v(!1);return window.addEventListener("mousemove",t),window.addEventListener("mouseup",i),()=>{window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",i)}},[g,e.id,c]);let T=e.maximized?{x:0,y:28,width:"100vw",height:"calc(100vh - 28px)"}:{x:e.x,y:e.y,width:e.width,height:e.height};return(0,r.jsx)(rK,{children:!e.minimized&&e.workspace===m&&(0,r.jsxs)(rU.div,{ref:x,layout:!0,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1,x:T.x,y:T.y,width:T.width,height:T.height},exit:{opacity:0,scale:.9},transition:{type:"spring",stiffness:400,damping:30,mass:.8},onClick:j,onPointerDown:e=>e.stopPropagation(),className:`fixed z-10 rounded-xl overflow-hidden glass-window flex flex-col ${e.focused?"ring-1 ring-white/20":"ring-1 ring-white/5"}`,style:{zIndex:e.zIndex,maxWidth:e.maximized?void 0:"calc(100vw - 32px)",maxHeight:e.maximized?void 0:"calc(100vh - 96px)"},children:[(0,r.jsxs)("div",{className:`h-9 flex items-center justify-between px-3 cursor-default window-titlebar ${e.focused?"window-titlebar-active":""}`,onMouseDown:t=>{t.target!==t.currentTarget&&!t.currentTarget.contains(t.target)||e.maximized||(t.preventDefault(),t.stopPropagation(),v(!0),b.current={x:t.clientX,y:t.clientY,wx:e.x,wy:e.y},j())},children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsxs)("div",{className:"flex gap-1.5",children:[(0,r.jsx)("button",{onClick:k,className:"w-3 h-3 rounded-full bg-[#ff5f57] hover:bg-[#ff5f57]/80 transition-colors","aria-label":"Close"}),(0,r.jsx)("button",{onClick:S,className:"w-3 h-3 rounded-full bg-[#febc2e] hover:bg-[#febc2e]/80 transition-colors","aria-label":"Minimize"}),(0,r.jsx)("button",{onClick:N,className:"w-3 h-3 rounded-full bg-[#28c840] hover:bg-[#28c840]/80 transition-colors","aria-label":"Maximize"})]}),(0,r.jsx)("span",{className:"text-white/90 text-sm font-medium ml-2 select-none",children:e.title})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)("button",{onClick:S,className:"p-1 rounded hover:bg-white/10 text-white/70","aria-label":"Minimize",children:(0,r.jsx)(af,{className:"w-4 h-4"})}),(0,r.jsx)("button",{onClick:N,className:"p-1 rounded hover:bg-white/10 text-white/70","aria-label":"Maximize",children:e.maximized?(0,r.jsx)(ay,{className:"w-4 h-4"}):(0,r.jsx)(ax,{className:"w-4 h-4"})}),(0,r.jsx)("button",{onClick:k,className:"p-1 rounded hover:bg-[#ff5f57]/80 text-white/70 hover:text-white","aria-label":"Close",children:(0,r.jsx)(am,{className:"w-4 h-4"})})]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden relative",style:{background:f.color},children:t}),f.resizable&&!e.maximized&&ag.map(t=>(0,r.jsx)("div",{className:`absolute ${t.class} z-50`,style:{cursor:t.cursor},onMouseDown:i=>((t,i)=>{if(!f.resizable)return;t.preventDefault(),t.stopPropagation(),w.current={x:t.clientX,y:t.clientY,width:e.width,height:e.height,dir:i};let s=t=>
86{let i=t.clientX-w.current.x,s=t.clientY-w.current.y,n=w.current.width,r=w.current.height,a=e.x,o=e.y;if(w.current.dir.includes("e")&&(n=Math.max(f.minWidth,w.current.width+i)),w.current.dir.includes("s")&&(r=Math.max(f.minHeight,w.current.height+s)),w.current.dir.includes("w")){let t=w.current.width-i;t>=f.minWidth&&(n=t,a=e.x+i)}if(w.current.dir.includes("n")){let t=w.current.height-s;t>=f.minHeight&&(r=t,o=e.y+s)}d(e.id,n,r),(w.current.dir.includes("w")||w.current.dir.includes("n"))&&c(e.id,a,o)},n=()=>{window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",s),window.addEventListener("mouseup",n)})(i,t.dir)},t.dir))]})})}let ab=r2("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]),aw=r2("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]),aj=[{id:"intro",label:"Introduction",icon:r6},{id:"education",label:"Education",icon:r2("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]])},{id:"interests",label:"Interests",icon:ab},{id:"goals",label:"Goals",icon:aw}],ak={intro:`Hi, I'm Ashrit Anshuman Pradhan — a Computer Science student, Web Developer, and Graphic Designer based in Gwalior, Madhya Pradesh, India.
87
88I specialize in building full-stack web applications, AI-powered tools, and graphic design assets. From freelancing with 30+ clients and local schools to leading a 6-member team at Smart India Hackathon 2025, I focus on delivering user-centric digital experiences.
89
90This portfolio is an interactive Ubuntu desktop environment reflecting my passion for software engineering, modern web technologies, and clean design.`,education:`ITM University Gwalior
91Bachelor of Technology in Computer Science (August 2025 – September 2029)
92Location: Gwalior, Madhya Pradesh, India
93
94Technical Focus & Skills:
95• Languages: Python, Java, JavaScript, SQL
96• Developer Tools: Git, GitHub, VS Code, Docker, Linux
97• Frameworks & Libraries: React.js, Tailwind CSS, Express.js, MongoDB, Firebase, NumPy, Pandas, Matplotlib`,interests:`• Full-stack Web Development & AI Tools Integration
98• Peer Collaboration Platforms & Academic Tools
99• Graphic Design, Promotional Campaigns & Branding
100• Hackathons & Technical Team Leadership
101• Open-Source Software & Linux Ecosystems`,goals:`Short-term:
102• Expand Skillora AI and PathGen with broader user capabilities
103• Ship innovative full-stack solutions for client & community needs
104• Contribute actively to open-source developer toolkits
105
106Long-term:
107• Engineer scalable AI-driven platforms that solve complex real-world challenges
108• Lead high-impact engineering teams in fast-paced software environments`};function aS(){let[e,t]=(0,a.useState)("intro");return(0,r.jsxs)("div",{className:"h-full flex flex-col bg-gray-100 text-[#1e1e1e]",children:[(0,r.jsx)("div",{className:"flex border-b border-black/10 bg-white",children:aj.map(i=>{let s=i.icon;return(0,r.jsxs)("button",{onClick:()=>t(i.id),className:`flex items-center gap-1.5 px-4 py-2 text-sm border-r border-black/5 transition-colors ${e===i.id?"bg-[#e95420]/10 text-[#e95420]":"hover:bg-black/5"}`,children:[(0,r.jsx)(s,{className:"w-4 h-4"}),i.label]},i.id)})}),(0,r.jsx)("div",{className:"flex-1 p-6 overflow-auto",children:(0,r.jsx)(rK,{mode:"wait",children:(0,r.jsx)(rU.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},className:"max-w-2xl whitespace-pre-line leading-relaxed text-[15px]",children:ak[e]},e)})}),(0,r.jsxs)("div",{className:"px-4 py-2 text-xs text-black/40 border-t border-black/10 bg-white flex items-center justify-between",children:[(0,r.jsx)("span",{children:"UTF-8"}),(0,r.jsx)("span",{children:aj.find(t=>
108t.id===e)?.label})]})]})}function aN({label:e,value:t,color:i,usage:s}){let[n,o]=(0,a.useState)(0),[l,h]=(0,a.useState)(s);return(0,a.useEffect)(()=>{o(t);let e=setInterval(()=>{h(Math.max(20,Math.min(98,s+Math.floor(21*Math.random())-10)))},1500);return()=>clearInterval(e)},[t,s]),(0,r.jsxs)("div",{className:"mb-5",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-1.5",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:i}}),(0,r.jsx)("span",{className:"text-sm font-medium text-white/90",children:e}),(0,r.jsxs)("span",{className:"text-xs text-white/50",children:["→ ",d[e]]})]}),(0,r.jsxs)("span",{className:"text-sm text-white/70",children:[l,"%"]})]}),(0,r.jsx)("div",{className:"h-3 bg-white/10 rounded-full overflow-hidden",children:(0,r.jsx)(rU.div,{initial:{width:0},animate:{width:`${n}%`},transition:{duration:1,ease:"easeOut"},className:"h-full rounded-full relative",style:{backgroundColor:i},children:(0,r.jsx)("div",{className:"absolute inset-0 bg-white/20 animate-pulse"})})})]})}function aT(){return(0,r.jsxs)("div",{className:"h-full bg-[#1e1e1e] text-white p-6 overflow-auto",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-lg font-semibold",children:"System Monitor"}),(0,r.jsx)("p",{className:"text-xs text-white/50",children:"Skills visualized as live system metrics"})]}),(0,r.jsxs)("div",{className:"flex gap-2 text-xs",children:[(0,r.jsx)("span",{className:"px-2 py-1 rounded bg-white/10",children:"4 cores"}),(0,r.jsx)("span",{className:"px-2 py-1 rounded bg-white/10",children:"16 GB RAM"})]})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,r.jsx)("div",{className:"bg-white/5 rounded-xl p-4 border border-white/10",children:c.map(e=>(0,r.jsx)(aN,{...e},e.label))}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"bg-white/5 rounded-xl p-4 border border-white/10",children:[(0,r.jsx)("h3",{className:"text-sm font-medium mb-3 text-white/90",children:"Core Stack"}),(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:["Python","Java","JavaScript","SQL","React.js","Tailwind CSS","MongoDB","Express.js","Firebase","Docker","Linux","NumPy","Pandas","Matplotlib"].map(e=>(0,r.jsx)("span",{className:"px-2.5 py-1 rounded-md bg-white/10 text-xs text-white/80",children:e},e))})]}),(0,r.jsxs)("div",{className:"bg-white/5 rounded-xl p-4 border border-white/10",children:[(0,r.jsx)("h3",{className:"text-sm font-medium mb-3 text-white/90",children:"Process History"}),(0,r.jsxs)("div",{className:"space-y-2 text-xs text-white/70",children:[(0,r.jsxs)("div",{className:"flex justify-between",children:[(0,r.jsx)("span",{children:"skillora-ai"}),(0,r.jsx)("span",{children:"24.8% GPU"})]}),(0,r.jsxs)("div",{className:"flex justify-between",children:[(0,r.jsx)("span",{children:"skill-roadmap-gen"}),(0,r.jsx)("span",{children:"14.2% CPU"})]}),(0,r.jsxs)("div",{className:"flex justify-between",children:[(0,r.jsx)("span",{children:"study-group-finder"}),(0,r.jsx)("span",{children:"18.5% RAM"})]}),(0,r.jsxs)("div",{className:"flex justify-between",children:[(0,r.jsx)("span",{children:"sih-alumni-platform"}),(0,r.jsx)("span",{children:"12.1% CPU"})]}),(0,r.jsxs)("div",{className:"flex justify-between",children:[(0,r.jsx)("span",{children:"ubuntu-portfolio-os"}),(0,r.jsx)("span",{children:"10.4% RAM"})]})]})]})]})]})]})}let aP=r2("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),aM=r2("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),aA=r2("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),aC=r2("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);function aE({className:e}
108){return(0,r.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})}function aD(){let[e,t]=(0,a.useState)(null),[i,s]=(0,a.useState)(null),n=e?u.filter(t=>t.folder===e):[];return(0,r.jsxs)("div",{className:"h-full flex bg-gray-100 text-[#1e1e1e]",children:[(0,r.jsxs)("div",{className:"w-52 bg-white border-r border-black/10 flex flex-col",children:[(0,r.jsx)("div",{className:"p-3 border-b border-black/10",children:(0,r.jsxs)("div",{className:"flex items-center gap-1 text-sm text-black/60",children:[(0,r.jsx)("span",{children:"Home"}),(0,r.jsx)(aM,{className:"w-4 h-4"}),(0,r.jsx)("span",{children:"Projects"})]})}),(0,r.jsxs)("div",{className:"p-2 flex-1 overflow-auto",children:[(0,r.jsxs)("button",{onClick:()=>{t(null),s(null)},className:`w-full flex items-center gap-2 px-3 py-2 rounded-lg text-sm transition-colors ${null===e?"bg-[#e95420]/10 text-[#e95420]":"hover:bg-black/5"}`,children:[(0,r.jsx)(aP,{className:"w-4 h-4 text-[#e95420]"}),"Projects"]}),(0,r.jsx)("div",{className:"pl-4 mt-1 space-y-0.5",children:m.map(i=>(0,r.jsxs)("button",{onClick:()=>{t(i),s(null)},className:`w-full flex items-center gap-2 px-3 py-1.5 rounded-lg text-sm transition-colors ${e===i?"bg-[#e95420]/10 text-[#e95420]":"hover:bg-black/5"}`,children:[(0,r.jsx)(aP,{className:"w-4 h-4 text-[#e95420]"}),i]},i))})]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-auto p-6",children:(0,r.jsx)(rK,{mode:"wait",children:e?i?(0,r.jsxs)(rU.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"max-w-2xl",children:[(0,r.jsxs)("button",{onClick:()=>s(null),className:"flex items-center gap-1 text-sm text-black/60 hover:text-[#e95420] mb-4",children:[(0,r.jsx)(aC,{className:"w-4 h-4"})," Back to ",e]}),(0,r.jsx)("h2",{className:"text-2xl font-bold mb-2",children:i.name}),(0,r.jsx)("p",{className:"text-black/70 mb-4",children:i.description}),(0,r.jsx)("div",{className:"flex flex-wrap gap-2 mb-6",children:i.tech.map(e=>(0,r.jsx)("span",{className:"px-2.5 py-1 rounded-md bg-[#e95420]/10 text-[#e95420] text-xs font-medium",children:e},e))}),(0,r.jsxs)("div",{className:"flex gap-3",children:[i.github&&(0,r.jsxs)("a",{href:i.github,target:"_blank",rel:"noreferrer",className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-[#1e1e1e] text-white text-sm hover:bg-black/80 transition-colors",children:[(0,r.jsx)(aE,{className:"w-4 h-4"})," View Source"]}),i.link&&(0,r.jsxs)("a",{href:i.link,target:"_blank",rel:"noreferrer",className:"flex items-center gap-2 px-4 py-2 rounded-lg border border-black/20 text-sm hover:bg-black/5 transition-colors",children:[(0,r.jsx)(aA,{className:"w-4 h-4"})," Live Demo"]})]})]},"project"):(0,r.jsxs)(rU.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:[(0,r.jsxs)("button",{onClick:()=>t(null),className:"col-span-full flex items-center gap-1 text-sm text-black/60 hover:text-[#e95420] mb-2",children:[(0,r.jsx)(aC,{className:"w-4 h-4"})," Back"]}),n.map(e=>(0,r.jsxs)("button",{onClick:()=>s(e),className:"p-4 rounded-xl bg-white border border-black/10 hover:border-[#e95420]/40 hover:shadow-md transition-all text-left",children:[(0,r.jsx)("h3",{className:"font-semibold mb-1",children:e.name}),(0,r.jsx)("p",{className:"text-xs text-black/60 line-clamp-2 mb-3",children:e.description}),(0,r.jsx)("div",{className:"flex flex-wrap gap-1",children:e.tech.slice(0,3).map(e=>(0,r.jsx)("span",{className:"px-2 py-0.5 rounded bg-black/5 text-[10px] text-black/70",children:e},e))})]},e.id))]},"folder"):(0,r.jsx)(rU.div,{initial:{opacity:0,y:10}
108,animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4",children:m.map(e=>(0,r.jsxs)("button",{onClick:()=>t(e),className:"flex flex-col items-center gap-2 p-4 rounded-xl hover:bg-black/5 transition-colors group",children:[(0,r.jsx)(aP,{className:"w-16 h-16 text-[#e95420] group-hover:scale-110 transition-transform"}),(0,r.jsx)("span",{className:"text-sm text-center font-medium",children:e})]},e))},"root")})})]})}let aV=r2("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),aR=r2("zoom-in",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),aL=r2("zoom-out",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);function aI(){let[e,t]=(0,a.useState)(1);return(0,r.jsxs)("div",{className:"h-full flex flex-col bg-gray-100 text-[#1e1e1e]",children:[(0,r.jsxs)("div",{className:"h-12 bg-white border-b border-black/10 flex items-center justify-between px-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("button",{className:"p-2 rounded hover:bg-black/5",onClick:()=>t(e=>Math.max(.5,e-.1)),children:(0,r.jsx)(aL,{className:"w-4 h-4"})}),(0,r.jsxs)("span",{className:"text-sm text-black/60 min-w-[3rem] text-center",children:[Math.round(100*e),"%"]}),(0,r.jsx)("button",{className:"p-2 rounded hover:bg-black/5",onClick:()=>t(e=>Math.min(2,e+.1)),children:(0,r.jsx)(aR,{className:"w-4 h-4"})})]}),(0,r.jsx)("div",{className:"flex items-center gap-2",children:(0,r.jsxs)("a",{href:"/resume.pdf",download:"ashrit_anshuman_resume.pdf",className:"flex items-center gap-1.5 px-3 py-1.5 rounded-md bg-[#e95420] text-white text-sm hover:bg-[#d14b1b] transition-colors",children:[(0,r.jsx)(aV,{className:"w-4 h-4"})," Download PDF"]})})]}),(0,r.jsx)("div",{className:"flex-1 overflow-auto p-4 sm:p-8 bg-[#e0e0e0] flex justify-center items-start",children:(0,r.jsxs)("div",{className:"bg-white shadow-2xl p-6 sm:p-10 w-full max-w-[210mm] min-h-[297mm] h-fit shrink-0 my-2 mb-12 origin-top transition-transform text-[#1e1e1e] font-sans rounded-sm",style:{transform:1!==e?`scale(${e})`:void 0},children:[(0,r.jsxs)("div",{className:"text-center border-b pb-4 mb-6",children:[(0,r.jsx)("h1",{className:"text-3xl font-extrabold uppercase tracking-wide text-[#1e1e1e]",children:"ashrit anshuman pradhan"}),(0,r.jsx)("p",{className:"text-sm text-black/70 mt-1",children:"Gwalior, Madhya Pradesh, India"}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2 text-xs text-black/80 mt-2 font-medium",children:[(0,r.jsx)("span",{children:"+91 6370205656"}),(0,r.jsx)("span",{children:"|"}),(0,r.jsx)("a",{href:"mailto:[email protected]",className:"text-[#e95420] hover:underline",children:"[email protected]"}),(0,r.jsx)("span",{children:"|"}),(0,r.jsx)("a",{href:"https://linkedin.com/in/ashritanshuman/",target:"_blank",rel:"noreferrer",className:"text-[#e95420] hover:underline",children:"linkedin.com/in/ashritanshuman"}),(0,r.jsx)("span",{children:"|"}),(0,r.jsx)("a",{href:"https://github.com/ashritanshuman",target:"_blank",rel:"noreferrer",className:"text-[#e95420] hover:underline",children:"github.com/ashritanshuman"}),(0,r.jsx)("span",{children:"|"}),(0,r.jsx)("a",{href:"https://ashritanshuman.vercel.app",target:"_blank",rel:"noreferrer",className:"text-[#e95420] hover:underline",children:"Portfolio"})]})]}),(0,r.jsxs)("div",{className:"space-y-5 text-sm",children:[(0,r.jsxs)("section",{children:[(0,r.jsx)("h2",{className:"text-base font-bold uppercase tracking-wider text-[#1e1e1e] border-b border-black/20 pb-1 mb-2",children:"Education"}),(0,r.jsxs)("div",{className:"flex justify-between items-baseline font-semibold",children:[(0,r.jsx)("span",{children:"ITM University Gwalior"}),(0,r.jsx)("span",{className:"text-xs text-black/60 font-normal",children:"August 2025 -- September 2029"})]}),(0,r.jsxs)("div",{className:"flex justify-between items-baseline text-xs italic text-black/80",children:[(0,r.jsx)("span",{children:"Bachelor of Technology in Computer Science"}),(0,r.jsx)("span",{children:"Gwalior, MP"})]})]}),(0,r.jsxs)("section",{children:[(0,r.jsx)("h2",{className:"text-base font-bold uppercase tracking-wider text-[#1e1e1e] border-b border-black/20 pb-1 mb-2",children:"Technical Skills"}),(0,r.jsxs)("div",{className:"space-y-1 text-xs text-black/80 leading-relaxed",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("strong",{className:"text-black",children:"Languages:"})," Python, Java, JavaScript, SQL"]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("strong",{className:"text-black",children:"Developer Tools:"})," Git, GitHub, VS Code, Docker, Linux"]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("strong",{className:"text-black",children:"Technologies/Frameworks:"})," React.js, Tailwind CSS, MongoDB, Express.js, Firebase, NumPy, Pandas, Matplotlib"]})]})]}),(0,r.jsxs)("section",{children:[(0,r.jsx)("h2",{className:"text-base font-bold uppercase tracking-wider text-[#1e1e1e] border-b border-black/20 pb-1 mb-2",children:"Experience"}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex justify-between items-baseline font-semibold",children:[(0,r.jsx)("span",{children:"Freelancer"}),(0,r.jsx)("span",{className:"text-xs text-black/60 font-normal",children:"May 2025 -- Present"})]}),(0,r.jsx)("div",{className:"text-xs italic text-black/80 mb-2",children:"Web Developer and Graphic Designer | Gwalior, Madhya Pradesh"}),(0,r.jsxs)("ul",{className:"list-disc list-outside ml-4 space-y-1 text-xs text-black/80 leading-relaxed",children:[(0,r.jsx)("li",{children:"Delivered responsive and customized websites for 10+ local business clients, translating business requirements into functional and user-friendly digital experiences."}),(0,r.jsx)("li",{children:"Completed graphic design and promotional projects for 20+ clients, creating posters, marketing creatives, and brand-focused visual content tailored to client requirements."}),(0,r.jsx)("li",{children:"Partnered with 3 schools to design promotional campaigns and event creatives, supporting institutional events, student engagement, and outreach initiatives."})]})]})]}),(0,r.jsxs)("section",{children:[(0,r.jsx)("h2",{className:"text-base font-bold uppercase tracking-wider text-[#1e1e1e] border-b border-black/20 pb-1 mb-2",children:"Projects"}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex justify-between items-baseline",children:[(0,r.jsxs)("span",{className:"font-semibold flex items-center gap-1.5 flex-wrap",children:[(0,r.jsxs)("a",{href:"https://sgfphoneix.vercel.app/",target:"_blank",rel:"noreferrer",className:"text-[#1e1e1e] hover:text-[#e95420] underline flex items-center gap-1 font-bold",children:["Study Group Finder ",(0,r.jsx)(aA,{className:"w-3 h-3 text-[#e95420]"})]}),(0,r.jsx)("span",{className:"text-xs font-normal italic text-black/70",children:"| React.js, Tailwind CSS, Firebase"})]}),(0,r.jsx)("span",{className:"text-xs text-black/60 font-medium",children:"Septempber 2025"})]}),(0,r.jsxs)("ul",{className:"list-disc list-outside ml-4 space-y-1 text-xs text-black/80 mt-1 leading-relaxed",children:[(0,r.jsx)("li",{children:"Developed a full-stack student collaboration platform that enables users to discover and connect with study groups based on shared academic interests and learning goals."}),(0,r.jsx)("li",{children:"Implemented secure user authentication, profile management, group discovery, and group creation workflows to streamline peer-to-peer academic collaboration."}),(0,r.jsx)("li",{children:"Designed a responsive and intuitive user interface with reusable components, ensuring a consistent experience across desktop and mobile devices."}),(0,r.jsx)("li",{children:"Integrated real-time cloud data management and authentication to support dynamic user profiles, group information, and scalable application workflows."})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex justify-between items-baseline",children:[(0,r.jsxs)("span",{className:"font-semibold flex items-center gap-1.5 flex-wrap",children:[(0,r.jsxs)("a",{href:"https://ashritanshuman.github.io/skill-roadmap-generator/",target:"_blank",rel:"noreferrer",className:"text-[#1e1e1e] hover:text-[#e95420] underline flex items-center gap-1 font-bold",children:["PathGen - Skills Roadmap Generator ",(0,r.jsx)(aA,{className:"w-3 h-3 text-[#e95420]"})]}),(0,r.jsx)("span",{className:"text-xs font-normal italic text-black/70",children:"| HTML, Tailwind CSS, JavaScript"})]}),(0,r.jsx)("span",{className:"text-xs text-black/60 font-medium",children:"January 2026"})]}),(0,r.jsxs)("ul",{className:"list-disc list-outside ml-4 space-y-1 text-xs text-black/80 mt-1 leading-relaxed",children:[(0,r.jsx)("li",{children:"Developed an AI-powered learning roadmap platform that generates structured and personalized learning paths based on users target skills and career roles. Structured learning journeys into progressive stages with curated resources and estimated learning timelines, enabling users to follow goal-oriented technical roadmaps."}),(0,r.jsx)("li",{children:"Designed skill-based and role-based roadmap discovery for technologies and career paths including Python, React, Docker, DevOps, AI/ML Engineering, and Data Science."}),(0,r.jsx)("li",{children:"Built a responsive, modern user interface with roadmap exploration, search functionality, dark/light theme support, and intuitive navigation across technical learning paths."})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex justify-between items-baseline",children:[(0,r.jsxs)("span",{className:"font-semibold flex items-center gap-1.5 flex-wrap",children:[(0,r.jsxs)("a",{href:"https://skilloraai.vercel.app/",target:"_blank",rel:"noreferrer",className:"text-[#1e1e1e] hover:text-[#e95420] underline flex items-center gap-1 font-bold",children:["Skillora AI – AI-Powered Resume Builder ",(0,r.jsx)(aA,{className:"w-3 h-3 text-[#e95420]"})]}),(0,r.jsx)("span",{className:"text-xs font-normal italic text-black/70",children:"| React.js, Tailwind CSS, OpenRouter AI API Integration"})]}),(0,r.jsx)("span",{className:"text-xs text-black/60 font-medium",children:"February 2026"})]}),(0,r.jsxs)("ul",{className:"list-disc list-outside ml-4 space-y-1 text-xs text-black/80 mt-1 leading-relaxed",children:[(0,r.jsx)("li",{children:"Developed an AI-powered resume-building platform that enables users to create structured and professional resumes through an intuitive, guided interface."}),(0,r.jsx)("li",{children:"Implemented dynamic resume customization and real-time preview functionality, allowing users to efficie
108ntly edit and visualize resume content."}),(0,r.jsx)("li",{children:"Integrated AI-assisted content generation to help users improve resume sections, refine descriptions, and create impactful, role-specific content."})]})]})]})]}),(0,r.jsxs)("section",{children:[(0,r.jsx)("h2",{className:"text-base font-bold uppercase tracking-wider text-[#1e1e1e] border-b border-black/20 pb-1 mb-2",children:"Leadership / Extracurricular"}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex justify-between items-baseline font-semibold",children:[(0,r.jsx)("span",{children:"Smart India Hackathon"}),(0,r.jsx)("span",{className:"text-xs text-black/60 font-normal",children:"September 2025"})]}),(0,r.jsx)("div",{className:"text-xs italic text-black/80 mb-1",children:"Team Lead | ITM University Gwalior"}),(0,r.jsxs)("ul",{className:"list-disc list-outside ml-4 space-y-1 text-xs text-black/80 leading-relaxed",children:[(0,r.jsx)("li",{children:"Developed and deployed a digital Alumni Data Management and Engagement Platform, enabling centralized alumni records, networking, and institutional engagement."}),(0,r.jsx)("li",{children:"Led a 6-member development team, coordinating task allocation, technical implementation, and project delivery within hackathon timelines."})]})]})]})]})]})})]})}let aF=["help","about","skills","projects","contact","resume","github","linkedin","clear","neofetch","sudo hire-me"],aB=["Available commands:","","  help        Show this help message","  about       Open the About Me window","  skills      Open the Skills window","  projects    Open the Projects window","  contact     Show contact information","  resume      Open the Resume window","  github      Open GitHub profile","  linkedin    Open LinkedIn profile","  clear       Clear the terminal","  neofetch    Display system info","  sudo hire-me  Send a hiring request"],az=["Name:      Ashrit Anshuman Pradhan","Email:     [email protected]","Phone:     +91 6370205656","GitHub:    github.com/ashritanshuman","LinkedIn:  linkedin.com/in/ashritanshuman","Portfolio: ashritanshuman.vercel.app","","Availability: Open for freelance projects and technical opportunities."],aO=["        .-://+oo+/:.          ashrit@portfolio","    .:/osyyyyyyyyyyyyso/-.     ----------------","  :oyyyyyyyyyyyyyyyyyyyyyyo:   OS: Ubuntu Portfolio 24.04 LTS"," :yyyyyyyyyyyyyyyyyyyyyyyyyy:  Kernel: React 19 + Next.js",":yyyyyyyyyyyyyyyyyyyyyyyyyyyy: Uptime: Always coding","yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy Shell: zsh","yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy DE: GNOME / Framer Motion",":yyyyyyyyyyyyyyyyyyyyyyyyyyyy:  WM: Ubuntu Desktop"," :yyyyyyyyyyyyyyyyyyyyyyyyyy:  CPU: B.Tech CS @ ITM Gwalior","  :oyyyyyyyyyyyyyyyyyyyyyyo:   GPU: Skillora AI & PathGen","    .:/osyyyyyyyyyyyyso/-.     Memory: Python, React & Tailwind","        .-://+oo+/:.          "],aU=["[sudo] password for recruiter: *******","Authenticated successfully.","","Hiring request submitted! 🎉","","I will be in touch within 24 hours.","Thanks for considering me for your team!"];function a$(){let{openApp:e}=y(),t=ao(),[i,s]=(0,a.useState)([{type:"output",text:"Welcome to Ubuntu Portfolio 24.04 LTS"},{type:"output",text:"Type 'help' to see available commands."},{type:"output",text:""}]),[n,o]=(0,a.useState)(""),[l,h]=(0,a.useState)([]),[c,d]=(0,a.useState)(-1),u=(0,a.useRef)(null);return(0,a.useEffect)(()=>{u.current?.scrollTo({top:u.current.scrollHeight,behavior:"smooth"})},[i]),(0,r.jsx)("div",{className:"h-full flex flex-col bg-[#300a24] text-white terminal-text",children:(0,r.jsxs)("div",{ref:u,className:"flex-1 overflow-auto p-4 text-sm",children:[i.map((e,t)=>"input"===e.type?(0,r.jsxs)("div",{className:"text-white/90",children:[(0,r.jsx)("span",{className:"text-[#8ae234] font-bold",children:"ashrit@portfolio"}),(0,r.jsx)("span",{className:"text-white/70",children:":"}),(0,r.jsx)("span",{className:"text-[#729fcf]",children:"~"}),(0,r.jsx)("span",{className:"text-white/70",children:"$"})," ",e.text.replace("ashrit@portfolio:~$ ","")]},t):(0,r.jsx)("div",{className:"text-white/80 whitespace-pre-wrap",children:e.text},t)),(0,r.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,r.jsx)("span",{className:"text-[#8ae234] font-bold",children:"ashrit@portfolio"}),(0,r.jsx)("span",{className:"text-white/70",children:":"}),(0,r.jsx)("span",{className:"text-[#729fcf]",children:"~"}),(0,r.jsx)("span",{className:"text-white/70",children:"$"}),(0,r.jsx)("input",{value:n,onChange:e=>o(e.target.value),onKeyDown:i=>{if("Enter"===i.key)t("click"),(t=>{let i=t.trim(),n=[{type:"input",text:`ashrit@portfolio:~$ ${i}`}];if(""===i);else if("clear"===i){s([]),o("");return}else"about"===i?(e("about"),n.push({type:"output",text:"Opening About Me..."})):"skills"===i?(e("skills"),n.push({type:"output",text:"Opening System Monitor..."})):"projects"===i?(e("projects"),n.push({type:"output",text:"Opening Files..."})):"resume"===i?(e("resume"),n.push({type:"output",text:"Opening Document Viewer..."})):"github"===i?(window.open("https://github.com/ashritanshuman","_blank"),n.push({type:"output",text:"Opening GitHub in browser..."})):"linkedin"===i?(window.open("https://linkedin.com/in/ashritanshuman/","_blank"),n.push({type:"output",text:"Opening LinkedIn in browser..."}
108)):"contact"===i?az.forEach(e=>n.push({type:"output",text:e})):"neofetch"===i?aO.forEach(e=>n.push({type:"output",text:e})):"sudo hire-me"===i?aU.forEach(e=>n.push({type:"output",text:e})):"help"===i?aB.forEach(e=>n.push({type:"output",text:e})):n.push({type:"output",text:`bash: ${i}: command not found`});s(e=>[...e,...n,{type:"output",text:""}]),h(e=>[i,...e].slice(0,50)),d(-1),o("")})(n);else if("ArrowUp"===i.key){if(i.preventDefault(),c<l.length-1){let e=c+1;d(e),o(l[e])}}else if("ArrowDown"===i.key)if(i.preventDefault(),c>0){let e=c-1;d(e),o(l[e])}else d(-1),o("");else if("Tab"===i.key){i.preventDefault();let e=aF.find(e=>e.startsWith(n));e&&o(e)}},className:"flex-1 bg-transparent outline-none text-white/90 ml-1 caret-white",autoFocus:!0,spellCheck:!1,"aria-label":"Terminal input"})]})]})})}let aW=r2("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),aH=r2("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]),aG=r2("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]),aY=r2("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);function aX({className:e}){return(0,r.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})}let a_=[{name:"skillora-ai",desc:"Skillora AI – AI-Powered Resume Builder with real-time preview",url:"https://skilloraai.vercel.app/",repoUrl:"https://github.com/ashritanshuman/skillora-ai",stars:28,lang:"JavaScript"},{name:"skill-roadmap-generator",desc:"PathGen – AI-powered personalized learning roadmap platform",url:"https://ashritanshuman.github.io/skill-roadmap-generator/",repoUrl:"https://github.com/ashritanshuman/skill-roadmap-generator",stars:35,lang:"JavaScript"},{name:"study-group-finder",desc:"Study Group Finder – Student peer collaboration platform",url:"https://sgfphoneix.vercel.app/",repoUrl:"https://github.com/ashritanshuman/study-group-finder",stars:19,lang:"JavaScript"},{name:"alumni-platform",desc:"Digital Alumni Data Management & Engagement Platform (SIH 2025)",repoUrl:"https://github.com/ashritanshuman/alumni-platform",stars:14,lang:"JavaScript"},{name:"ubuntu-portfolio",desc:"Ubuntu Desktop OS Portfolio built with Next.js & React",url:"https://ashritanshuman.vercel.app",repoUrl:"https://github.com/ashritanshuman/ubuntu-portfolio",stars:42,lang:"TypeScript"}];function aq(){let[e,t]=(0,a.useState)("https://github.com/ashritanshuman"),[i,s]=(0,a.useState)("github");return(0,r.jsxs)("div",{className:"h-full flex flex-col bg-[#1e1e2e] text-white",children:[(0,r.jsx)("div",{className:"flex items-end bg-[#181825] pt-1 px-1 gap-1",children:["github","projects","resume"].map(e=>(0,r.jsxs)("button",{onClick:()=>s(e),className:`px-4 py-2 rounded-t-lg text-sm flex items-center gap-2 transition-colors ${i===e?"bg-[#1e1e2e] text-white":"text-white/50 hover:bg-white/5"}`,children:[(0,r.jsx)(aX,{className:"w-4 h-4"}),e.charAt(0).toUpperCase()+e.slice(1)]},e))}),(0,r.jsxs)("div",{className:"h-11 bg-[#1e1e2e] border-b border-white/10 flex items-center gap-2 px-3",children:[(0,r.jsx)("button",{className:"p-1.5 rounded hover:bg-white/10 text-white/60",children:(0,r.jsx)(aC,{className:"w-4 h-4"})}),(0,r.jsx)("button",{className:"p-1.5 rounded hover:bg-white/10 text-white/60",children:(0,r.jsx)(aW,{className:"w-4 h-4"})}),(0,r.jsx)("button",{className:"p-1.5 rounded hover:bg-white/10 text-white/60",children:(0,r.jsx)(aH,{className:"w-4 h-4"})}),(0,r.jsx)("button",{className:"p-1.5 rounded hover:bg-white/10 text-white/60",children:(0,r.jsx)(aG,{className:"w-4 h-4"})}),(0,r.jsx)("div",{className:"flex-1 bg-[#181825] rounded-lg h-8 px-3 flex items-center text-sm text-white/80 border border-white/10",children:e}),(0,r.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",className:"p-1.5 rounded hover:bg-white/10 text-white/60",children:(0,r.jsx)(aA,{className:"w-4 h-4"})})]}),(0,r.jsx)("div",{className:"flex-1 overflow-auto p-6",children:(0,r.jsx)(rK,{mode:"wait",children:(0,r.jsxs)(rU.div,{initial:{opacity:0,y:10}
108,animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"max-w-4xl mx-auto",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4 mb-8",children:[(0,r.jsx)("div",{className:"w-20 h-20 rounded-full bg-[#24292f] border border-white/10 flex items-center justify-center",children:(0,r.jsx)(aX,{className:"w-10 h-10 text-white"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-bold",children:"ashritanshuman"}),(0,r.jsx)("p",{className:"text-white/60",children:"Full Stack Developer & Graphic Designer | B.Tech CS @ ITM University Gwalior"}),(0,r.jsxs)("div",{className:"flex gap-4 mt-2 text-sm text-white/60",children:[(0,r.jsx)("span",{children:"5 pinned repositories"}),(0,r.jsx)("span",{children:"Gwalior, India"})]})]})]}),(0,r.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Popular Repositories & Deployments"}),(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:a_.map(e=>(0,r.jsxs)("div",{className:"p-4 rounded-xl bg-[#181825] border border-white/10 hover:border-white/20 transition-colors flex flex-col justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex justify-between items-start",children:[(0,r.jsx)("a",{href:e.repoUrl,target:"_blank",rel:"noreferrer",className:"font-semibold text-[#58a6ff] hover:underline",children:e.name}),(0,r.jsxs)("span",{className:"flex items-center gap-1 text-xs text-white/60",children:[(0,r.jsx)(aY,{className:"w-3 h-3 text-yellow-400"})," ",e.stars]})]}),(0,r.jsx)("p",{className:"text-sm text-white/60 mt-1",children:e.desc})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between mt-4 text-xs",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 text-white/50",children:[(0,r.jsx)("span",{className:"w-2.5 h-2.5 rounded-full bg-[#e95420]"}),e.lang]}),e.url&&(0,r.jsxs)("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1 text-[#e95420] hover:underline font-medium",children:["Live Demo ",(0,r.jsx)(aA,{className:"w-3 h-3"})]})]})]},e.name))})]},i)})})]})}let aK=r2("file-code",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]),aJ=r2("file-braces",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]);function aZ(){let[e,t]=(0,a.useState)("about.js"),i=p[e];return(0,r.jsxs)("div",{className:"h-full flex bg-[#1e1e2e] text-white code-font text-sm",children:[(0,r.jsxs)("div",{className:"w-56 bg-[#181825] border-r border-white/10 flex flex-col",children:[(0,r.jsx)("div",{className:"h-9 flex items-center px-3 text-xs font-semibold text-white/70 uppercase tracking-wider",children:"Explorer"}),(0,r.jsxs)("div",{className:"px-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1 px-2 py-1 text-white/90",children:[(0,r.jsx)(aM,{className:"w-3.5 h-3.5"}),(0,r.jsx)(ai,{className:"w-4 h-4 text-[#e95420]"}),(0,r.jsx)("span",{className:"font-medium",children:"portfolio"})]}),(0,r.jsx)("div",{className:"pl-4",children:Object.keys(p).map(i=>(0,r.jsxs)("button",{onClick:()=>t(i),className:`w-full flex items-center gap-2 px-2 py-1 text-sm transition-colors ${e===i?"bg-white/10 text-white":"text-white/60 hover:text-white"}`,children:[(0,r.jsx)(aK,{className:`w-4 h-4 ${i.endsWith(".js")?"text-[#f9d342]":"text-white/50"}`}),i]},i))})]})]}),(0,r.jsxs)("div",{className:"flex-1 flex flex-col min-w-0",children:[(0,r.jsx)("div",{className:"flex bg-[#181825] h-9 overflow-x-auto no-scrollbar",children:Object.keys(p).map(i=>(0,r.jsxs)("button",{onClick:()=>t(i),className:`flex items-center gap-2 px-3 text-sm border-t-2 min-w-fit ${e===i?"bg-[#1e1e2e] text-white border-[#e95420]":"text-white/50 border-transparent hover:bg-white/5"}`,children:[(0,r.jsx)(aK,{className:`w-3.5 h-3.5 ${i.endsWith(".js")?"text-[#f9d342]":""}`}),i]},i))}),(0,r.jsxs)("div",{className:"h-7 flex items-center px-3 text-xs text-white/50 bg-[#1e1e2e] border-b border-white/5",children:["portfolio ",(0,r.jsx)(aM,{className:"w-3 h-3 mx-1"})," src ",(0,r.jsx)(aM,{className:"w-3 h-3 mx-1"})," ",e]}),(0,r.jsx)("div",{className:"flex-1 overflow-auto p-4",children:(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)("div",{className:"pr-4 text-right text-white/30 select-none min-w-[2rem]",children:i.content.split("\n").map((e,t)=>(0,r.jsx)("div",{children:t+1},t))}),(0,r.jsx)(rU.div,{initial:{opacity:0}
108,animate:{opacity:1},className:"flex-1 whitespace-pre",children:i.content.split("\n").map((e,t)=>(0,r.jsx)("div",{className:"min-h-[1.5em]",children:function(e){let t,i=[],s=0,n=(e,t)=>{e&&i.push((0,r.jsx)("span",{style:t?{color:t}:void 0,children:e},s++))},a=e.indexOf("//");if(-1!==a)return n(e.slice(0,a)),n(e.slice(a),"#6a9955"),i;let o=/("[^"]*"|'[^']*'|`[^`]*`)/g,l=0;for(;null!==(t=o.exec(e));)n(e.slice(l,t.index)),n(t[0],"#ce9178"),l=t.index+t[0].length;return n(e.slice(l)),i}(e)},t))},e)]})}),(0,r.jsxs)("div",{className:"h-6 bg-[#007acc] text-white text-xs flex items-center px-3 justify-between",children:[(0,r.jsxs)("div",{className:"flex gap-3",children:[(0,r.jsx)("span",{children:"master*"}),(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[(0,r.jsx)(aJ,{className:"w-3 h-3"})," ",i.language]})]}),(0,r.jsxs)("div",{className:"flex gap-3",children:[(0,r.jsx)("span",{children:"Ln 1, Col 1"}),(0,r.jsx)("span",{children:"UTF-8"}),(0,r.jsx)("span",{children:"Prettier"})]})]})]})]})}let aQ=[{name:"Documents",type:"folder",icon:aP,color:"#e95420"},{name:"Downloads",type:"folder",icon:aP,color:"#e95420"},{name:"Pictures",type:"folder",icon:aP,color:"#e95420"},{name:"Projects",type:"folder",icon:aP,color:"#e95420"},{name:"about.txt",type:"file",icon:at,color:"#9cdcfe"},{name:"resume.pdf",type:"file",icon:at,color:"#e95420"},{name:"avatar.png",type:"file",icon:r2("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),color:"#5e2750"},{name:"playlist.mp3",type:"file",icon:r2("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]),color:"#f9d342"},{name:"demo.mp4",type:"file",icon:r2("film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]),color:"#19b6ee"}];function a0(){let[e,t]=(0,a.useState)(["Home"]);return(0,r.jsxs)("div",{className:"h-full flex flex-col bg-gray-100 text-[#1e1e1e]",children:[(0,r.jsxs)("div",{className:"h-10 bg-white border-b border-black/10 flex items-center px-3 gap-1",children:[(0,r.jsx)(aG,{className:"w-4 h-4 text-black/50"}),e.map((e,t)=>(0,r.jsxs)("span",{className:"flex items-center text-sm text-black/60",children:[t>0&&(0,r.jsx)(aM,{className:"w-4 h-4 mx-1"}),e]},t))]}),(0,r.jsx)("div",{className:"flex-1 p-4 overflow-auto",children:(0,r.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-3",children:aQ.map(i=>{let s=i.icon;return(0,r.jsxs)("button",{onClick:()=>"folder"===i.type&&t([...e,i.name]),className:"flex flex-col items-center gap-2 p-4 rounded-xl hover:bg-black/5 transition-colors group",children:[(0,r.jsx)(s,{className:"w-12 h-12 group-hover:scale-110 transition-transform",style:{color:i.color}}),(0,r.jsx)("span",{className:"text-sm text-center",children:i.name})]},i.name)})})}),(0,r.jsxs)("div",{className:"h-7 bg-white border-t border-black/10 flex items-center px-3 text-xs text-black/50 justify-between",children:[(0,r.jsxs)("span",{children:[aQ.length," items"]}),(0,r.jsx)("span",{children:"7.2 GB available"})]})]})}function a1(){return(0,r.jsxs)("div",{className:"h-full flex flex-col items-center justify-center bg-gray-100 text-[#1e1e1e]",children:[(0,r.jsx)("div",{className:"text-6xl mb-4",children:"🗑️"}),(0,r.jsx)("h2",{className:"text-xl font-semibold mb-1",children:"Trash is Empty"}),(0,r.jsx)("p",{className:"text-sm text-black/60",children:"Deleted files will appear here."})]})}let a2=r2("volume-x",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]),a3=r2("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),a4=r2("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);function a5(){let{soundEnabled:e,setSoundEnabled:t}=y();return(0,r.jsxs)("div",{className:"h-full flex bg-gray-100 text-[#1e1e1e]",children:[(0,r.jsxs)("div",{className:"w-48 bg-white border-r border-black/10 p-3",children:[(0,r.jsx)("div",{className:"text-sm font-semibold mb-2",children:"Settings"}
108),["Wi-Fi","Bluetooth","Background","Sound","Power","Accessibility"].map(e=>(0,r.jsx)("button",{className:`w-full text-left px-3 py-2 rounded-lg text-sm mb-1 ${"Sound"===e?"bg-[#e95420]/10 text-[#e95420]":"hover:bg-black/5"}`,children:e},e))]}),(0,r.jsxs)("div",{className:"flex-1 p-6 overflow-auto",children:[(0,r.jsx)("h2",{className:"text-xl font-semibold mb-6",children:"Sound"}),(0,r.jsxs)("div",{className:"space-y-4 max-w-md",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between p-3 rounded-xl bg-white border border-black/10",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[e?(0,r.jsx)(r5,{className:"w-5 h-5 text-[#e95420]"}):(0,r.jsx)(a2,{className:"w-5 h-5 text-black/50"}),(0,r.jsx)("span",{className:"text-sm font-medium",children:"System Sounds"})]}),(0,r.jsx)("button",{onClick:()=>t(!e),className:`w-12 h-6 rounded-full transition-colors relative ${e?"bg-[#e95420]":"bg-black/20"}`,children:(0,r.jsx)("span",{className:`absolute top-0.5 w-5 h-5 bg-white rounded-full transition-all ${e?"left-6.5":"left-0.5"}`})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between p-3 rounded-xl bg-white border border-black/10",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(a3,{className:"w-5 h-5 text-[#5e2750]"}),(0,r.jsx)("span",{className:"text-sm font-medium",children:"Dark Mode"})]}),(0,r.jsx)("span",{className:"text-xs text-black/50",children:"Always on"})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between p-3 rounded-xl bg-white border border-black/10",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(a4,{className:"w-5 h-5 text-[#19b6ee]"}),(0,r.jsx)("span",{className:"text-sm font-medium",children:"Resolution"})]}),(0,r.jsx)("span",{className:"text-xs text-black/50",children:"Auto"})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between p-3 rounded-xl bg-white border border-black/10",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(r4,{className:"w-5 h-5 text-[#0e8420]"}),(0,r.jsx)("span",{className:"text-sm font-medium",children:"Wi-Fi"})]}),(0,r.jsx)("span",{className:"text-xs text-[#0e8420]",children:"Connected"})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between p-3 rounded-xl bg-white border border-black/10",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(r3,{className:"w-5 h-5 text-[#f9d342]"}),(0,r.jsx)("span",{className:"text-sm font-medium",children:"Battery"})]}),(0,r.jsx)("span",{className:"text-xs text-black/50",children:"85% — Charging"})]})]})]})]})}function a6({appId:e}){switch(e){case"about":default:return(0,r.jsx)(aS,{});case"skills":return(0,r.jsx)(aT,{});case"projects":case"files":return"projects"===e?(0,r.jsx)(aD,{}):(0,r.jsx)(a0,{});case"resume":return(0,r.jsx)(aI,{});case"contact":case"terminal":return(0,r.jsx)(a$,{});case"browser":return(0,r.jsx)(aq,{});case"vscode":return(0,r.jsx)(aZ,{});case"trash":return(0,r.jsx)(a1,{});case"settings":return(0,r.jsx)(a5,{})}}function a9({onComplete:e}){let[t,i]=(0,a.useState)(!0),[s,n]=(0,a.useState)(0),o=ao();return(0,a.useEffect)(()=>{o("startup");let t=setInterval(()=>{n(e=>e>=100?(clearInterval(t),100):e+12*Math.random())},180),s=setTimeout(()=>{i(!1),setTimeout(e,500)},2200);return()=>{clearInterval(t),clearTimeout(s)}},[e,o]),(0,r.jsx)(rK,{children:t&&(0,r.jsxs)(rU.div,{initial:{opacity:1},exit:{opacity:0},transition:{duration:.5},className:"fixed inset-0 z-[20000] bg-[#1e1e1e] flex flex-col items-center justify-center text-white",children:[(0,r.jsx)("div",{className:"text-6xl mb-6",children:"🐧"}),(0,r.jsx)("div",{className:"text-2xl font-light tracking-widest mb-8",children:"ubuntu"}),(0,r.jsx)("div",{className:"w-64 h-1.5 bg-white/10 rounded-full overflow-hidden",children:(0,r.jsx)(rU.div,{className:"h-full bg-[#e95420]",initial:{width:0},animate:{width:`${Math.min(s,100)}%`},transition:{duration:.2}})}),(0,r.jsxs)("div",{className:"mt-4 text-sm text-white/50 font-mono",children:["Loading portfolio... ",Math.min(s,100).toFixed(0),"%"]})]})})}
108function a8(){let{windows:e,workspace:t,setWorkspace:i,activitiesOpen:s,setActivitiesOpen:n}=y(),[o,l]=(0,a.useState)(!1);return(0,r.jsxs)(r.Fragment,{children:[!o&&(0,r.jsx)(a9,{onComplete:()=>l(!0)}),(0,r.jsxs)("div",{className:"fixed inset-0 ubuntu-wallpaper overflow-hidden",onClick:()=>n(!1),children:[(0,r.jsx)(r9,{}),(0,r.jsxs)(rU.div,{className:"absolute inset-0",animate:{scale:s?.85:1,borderRadius:24*!!s,filter:s?"brightness(0.6) blur(8px)":"brightness(1) blur(0px)"},transition:{type:"spring",stiffness:250,damping:28},style:{overflow:"hidden"},children:[(0,r.jsx)(ad,{}),(0,r.jsx)(rK,{mode:"popLayout",children:e.map(e=>(0,r.jsx)(av,{window:e,appId:e.appId,children:(0,r.jsx)(a6,{appId:e.appId})},e.id))}),(0,r.jsx)("div",{className:"absolute top-10 right-4 flex gap-1.5 z-[150]",children:[1,2].map(e=>(0,r.jsx)("button",{onClick:t=>{t.stopPropagation(),i(e)},onPointerDown:e=>e.stopPropagation(),className:`w-2 h-2 rounded-full transition-all ${t===e?"bg-white w-4":"bg-white/40 hover:bg-white/70"}`,"aria-label":`Workspace ${e}`},e))})]}),(0,r.jsx)(al,{}),(0,r.jsx)(rK,{children:s&&(0,r.jsx)(ap,{})})]})]})}e.s(["default",0,function(){return(0,r.jsx)(x,{children:(0,r.jsx)(a8,{})})}],52683)}]);

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.