{"version":3,"file":"ChatAI.468dsTHA.mjs","names":["React.useState","React.useRef","React.useMemo","p"],"sources":["https:/framerusercontent.com/modules/zdNn1a6Yfcw4TQehqlSk/6DqFd7yPEWjJNSm08vQY/ChatAI.js"],"sourcesContent":["// CHAT.tsx\n// Framer Code Component – Gemini-powered chat modal\n// SDK-free version (pure REST via fetch)\n// API Key is provided via Property Controls\n// \"Knowledge File\" in Properties (txt/md/json/csv). The file is fetched at runtime and used as context.\n// NEW: Button & AI avatar can use image FILES from Framer properties (no URLs needed)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function ChatBot(props){const{apiKey=\"AIzaSyAdAGdVulyhR67kGRfjnICB5qaJTruF_6g\",modelName=\"gemini-2.0-flash\",systemPrompt=\"You are a helpful portfolio assistant. Answer concisely and reference the user's projects based on the provided context. If something isn't in the context, say so and ask a clarifying question.\",knowledgeMode=\"auto\",knowledgeText=\"\",kbFileUrl=\"\",maxContextChars=16e3,title=\"Ask me anything\",subtitle=\"About my work, projects, or experience.\",placeholder=\"Type your question…\",ctaLabel=\"Chat with AI\",theme=\"light\",quick1=\"My Work\",quick2=\"Experience\",quick3=\"Skills\",quick4=\"Contact\",radius=28,buttonPadding=14,fontFamily=\"Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif\",fontSize=16,uiFontFamily=\"Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif\",uiFontSize=14,// Images (files)\nbuttonImageFile=\"\",aiAvatarFile=\"\",// Colors (optional)\noverlayColor=\"\",buttonBg=\"\",buttonText=\"\",headerBg=\"\",headerText=\"\",modalBg=\"\",borderColor=\"\",bodyText=\"\",userMsgBg=\"\",userMsgBorder=\"\",aiMsgBg=\"\",aiMsgBorder=\"\",inputBg=\"\",inputBorder=\"\",sendBg=\"\",sendText=\"\"}=props;const[open,setOpen]=React.useState(false);const[messages,setMessages]=React.useState([]);const[input,setInput]=React.useState(\"\");const[loading,setLoading]=React.useState(false);const[error,setError]=React.useState(null);const[kbText,setKbText]=React.useState(\"\");const dialogRef=React.useRef(null);const inputRef=React.useRef(null);const lastMsgRef=React.useRef(null);// Portfolio projects for card display\nconst projects=[{title:\"Kroger – Communication System\",description:\"Designed a streamlined warehouse–food bank communication system.\",image:\"https://framerusercontent.com/images/6OcYoop0B7iASsOjlXg6dSI261c.png?scale-down-to=2048\",link:\"/portfolio/Kroger\"},{title:\"BoAt Crest App Redesign\",description:\"Improved user journeys and boosted feature adoption with a 4.4+ app rating.\",image:\"https://framerusercontent.com/images/sHAQNlcTWSLIoxutqJrgKh1MU.png\",link:\"/portfolio/boat\"},{title:\"Aerflo\",description:\"Led redesign of student platforms, increasing engagement by 54%.\",image:\"https://framerusercontent.com/images/hbkJx47ZbxW1rjxtkSiGfYsPi40.png?scale-down-to=4096\",link:\"/portfolio/aerflo\"}];// Load Knowledge File when URL changes\nReact.useEffect(()=>{let cancelled=false;async function load(){if(!kbFileUrl){setKbText(\"\");return;}try{const res=await fetch(kbFileUrl);if(!res.ok)throw new Error(`Failed to fetch knowledge file (${res.status})`);const contentType=res.headers.get(\"content-type\")||\"\";const text=contentType.includes(\"application/json\")?JSON.stringify(await res.json(),null,2):await res.text();if(!cancelled)setKbText(text.slice(0,maxContextChars));}catch(e){if(!cancelled){setKbText(\"\");setError(e?.message??\"Unable to load the knowledge file.\");}}}load();return()=>{cancelled=true;};},[kbFileUrl,maxContextChars]);const prefersDark=typeof window!==\"undefined\"&&window.matchMedia&&window.matchMedia(\"(prefers-color-scheme: dark)\").matches;const isDark=theme===\"system\"?prefersDark:theme===\"dark\";const colors={overlay:overlayColor||(isDark?\"rgba(0,0,0,0.55)\":\"rgba(0,0,0,0.3)\"),buttonBg:buttonBg||(isDark?\"linear-gradient(180deg,#2b2e34,#1f2227)\":\"linear-gradient(180deg,#f2edf7,#e6ddf2)\"),buttonText:buttonText||(isDark?\"#f6f7f9\":\"#253043\"),headerBg:headerBg||(isDark?\"#0c1014\":\"#fafafa\"),headerText:headerText||(isDark?\"#e6e8eb\":\"#1c2b3a\"),modalBg:modalBg||(isDark?\"#0f1317\":\"#ffffff\"),border:borderColor||(isDark?\"rgba(255,255,255,0.09)\":\"rgba(0,0,0,0.08)\"),bodyText:bodyText||(isDark?\"#ecf0f3\":\"#1c2b3a\"),userMsgBg:userMsgBg||(isDark?\"rgba(99,138,255,0.18)\":\"rgba(99,138,255,0.12)\"),userMsgBorder:userMsgBorder||(isDark?\"rgba(120,160,255,0.25)\":\"rgba(99,138,255,0.24)\"),aiMsgBg:aiMsgBg||(isDark?\"rgba(255,255,255,0.06)\":\"rgba(0,0,0,0.04)\"),aiMsgBorder:aiMsgBorder||(isDark?\"rgba(255,255,255,0.08)\":\"rgba(0,0,0,0.06)\"),inputBg:inputBg||(isDark?\"#0c0f13\":\"#fff\"),inputBorder:inputBorder||(isDark?\"rgba(255,255,255,0.1)\":\"rgba(0,0,0,0.12)\"),sendBg:sendBg||(isDark?\"linear-gradient(180deg,#2b2e34,#1f2227)\":\"linear-gradient(180deg,#f2edf7,#e6ddf2)\"),sendText:sendText||(isDark?\"#f6f7f9\":\"#253043\")};React.useEffect(()=>{if(open)setTimeout(()=>inputRef.current?.focus(),0);},[open]);React.useEffect(()=>{lastMsgRef.current?.scrollIntoView({behavior:\"smooth\",block:\"end\"});},[messages,loading]);function getAutoPageText(){if(typeof window!==\"undefined\"){try{const clone=document.body.cloneNode(true);clone.querySelectorAll(\"script, style, nav, footer, svg, img, video, audio\").forEach(n=>n.remove());const text=clone.innerText.replace(/\\s+\\n/g,\"\\n\").replace(/\\n{3,}/g,\"\\n\\n\");return text.slice(0,maxContextChars);}catch{}}return\"\";}const contextText=React.useMemo(()=>{const parts=[];if(knowledgeMode===\"manual\"||knowledgeMode===\"both\"){if(knowledgeText)parts.push(knowledgeText);if(kbText)parts.push(kbText);}if(knowledgeMode===\"auto\"||knowledgeMode===\"both\"){const auto=getAutoPageText();if(auto)parts.push(auto);}return parts.join(\"\\n\\n\").trim().slice(0,maxContextChars);},[knowledgeMode,knowledgeText,kbText,maxContextChars,open]);function buildContents(history,latestUser,ctx){const contents=[];if(ctx){contents.push({role:\"user\",parts:[{text:`Context:\n${ctx}\n\nOnly use this if relevant.`}]});}for(const m of history){contents.push({role:m.role===\"user\"?\"user\":\"model\",parts:[{text:m.content}]});}contents.push({role:\"user\",parts:[{text:latestUser}]});return contents;}async function callGeminiREST({apiKey,model,systemInstruction,contents}){const url=`https://generativelanguage.googleapis.com/v1beta/models/${model}:generateContent?key=${encodeURIComponent(apiKey)}`;const body={contents};if(systemInstruction&&systemInstruction.trim()){body.systemInstruction={role:\"system\",parts:[{text:systemInstruction}]};}body.generationConfig={temperature:.7,topK:40,topP:.95,maxOutputTokens:1024};const res=await fetch(url,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(body)});if(!res.ok){const errText=await res.text().catch(()=>\"\");throw new Error(`Gemini error ${res.status}: ${errText}`);}const data=await res.json();const text=data?.candidates?.[0]?.content?.parts?.map(p=>p?.text)?.filter(Boolean)?.join(\"\")??\"\";return text;}async function send(userText){const text=(userText??input).trim();if(!text)return;if(!apiKey){setError(\"Missing Gemini API key: set it in the component properties.\");return;}setError(null);setLoading(true);const nextMsgs=[...messages,{role:\"user\",content:text}];setMessages(nextMsgs);setInput(\"\");try{const contents=buildContents(messages,text,contextText);const aiText=await callGeminiREST({apiKey,model:modelName,systemInstruction:systemPrompt,contents});// Simple trigger: if user asked for \"my work\", show cards instead of text\nif(/my work|projects|portfolio/i.test(text)){setMessages(prev=>[...prev,{role:\"ai\",type:\"projects\",content:\"\"}]);}else{setMessages(prev=>[...prev,{role:\"ai\",content:aiText||\"(No content)\"}]);}}catch(e){console.error(e);setError(e?.message??\"Something went wrong.\");setMessages(prev=>[...prev,{role:\"ai\",content:\"Sorry, I hit an error answering that.\"}]);}finally{setLoading(false);}}function onKeyDown(e){if(e.key===\"Enter\"&&!e.shiftKey){e.preventDefault();send();}}const chipLabels=[quick1,quick2,quick3,quick4].filter(Boolean);return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"inline-block\",fontFamily},children:[/*#__PURE__*/_jsx(\"button\",{onClick:()=>setOpen(true),\"aria-haspopup\":\"dialog\",style:{fontFamily,fontSize,padding:`${buttonPadding}px ${buttonPadding*2}px`,borderRadius:radius,border:`1px solid ${colors.border}`,cursor:\"pointer\",display:\"inline-flex\",alignItems:\"center\",gap:10,boxShadow:isDark?\"inset 0 1px 0 rgba(255,255,255,0.06), 0 1px 2px rgba(0,0,0,0.25)\":\"inset 0 1px 0 rgba(255,255,255,0.7), 0 1px 2px rgba(0,0,0,0.05)\",background:colors.buttonBg,color:colors.buttonText},children:ctaLabel}),open&&/*#__PURE__*/_jsx(\"div\",{role:\"dialog\",\"aria-modal\":\"true\",\"aria-label\":\"AI Chat\",onMouseDown:e=>{if(e.target===e.currentTarget)setOpen(false);},style:{position:\"fixed\",inset:0,background:colors.overlay,backdropFilter:\"blur(4px)\",display:\"flex\",alignItems:\"flex-end\",justifyContent:\"center\",zIndex:9999,padding:16},children:/*#__PURE__*/_jsxs(\"div\",{ref:dialogRef,style:{width:\"min(920px, 100%)\",height:\"min(70vh, 720px)\",borderRadius:18,overflow:\"hidden\",border:`1px solid ${colors.border}`,boxShadow:isDark?\"0 10px 30px rgba(0,0,0,0.45)\":\"0 18px 40px rgba(0,0,0,0.16)\",display:\"flex\",flexDirection:\"column\",background:colors.modalBg,color:colors.bodyText},children:[/*#__PURE__*/_jsxs(\"div\",{style:{padding:\"14px 16px\",borderBottom:`1px solid ${isDark?\"rgba(255,255,255,0.06)\":\"rgba(0,0,0,0.06)\"}`,display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",background:colors.headerBg,color:colors.headerText,gap:8},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\"},children:[/*#__PURE__*/_jsx(\"strong\",{style:{fontFamily:uiFontFamily,fontSize:uiFontSize+2},children:title}),/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:uiFontFamily,fontSize:uiFontSize,opacity:.85},children:subtitle})]}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>setOpen(false),\"aria-label\":\"Close chat\",style:{width:36,height:36,borderRadius:999,background:isDark?\"rgba(255,255,255,0.06)\":\"rgba(0,0,0,0.04)\",border:`1px solid ${isDark?\"rgba(255,255,255,0.12)\":\"rgba(0,0,0,0.08)\"}`,boxShadow:isDark?\"0 2px 6px rgba(0,0,0,0.35)\":\"0 2px 6px rgba(0,0,0,0.08)\",color:colors.headerText,display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",cursor:\"pointer\",transition:\"transform 120ms ease, background 120ms ease, box-shadow 120ms ease\",outline:\"none\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M18 6L6 18M6 6l12 12\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})})]}),/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,overflowY:\"auto\",padding:\"16px 20px\",display:\"flex\",flexDirection:\"column\",gap:14},children:[messages.map((m,i)=>{// --- PROJECT CARDS ---\nif(m.role===\"ai\"&&m.type===\"projects\"){return /*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gap:16,maxWidth:\"50%\"},children:projects.map((p,j)=>/*#__PURE__*/_jsxs(\"a\",{href:p.link,style:{display:\"flex\",flexDirection:\"column\",border:`1px solid ${colors.aiMsgBorder}`,borderRadius:14,overflow:\"hidden\",textDecoration:\"none\",color:\"inherit\",background:colors.modalBg},children:[/*#__PURE__*/_jsx(\"img\",{src:p.image,alt:p.title,style:{width:\"100%\",height:140,objectFit:\"cover\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{padding:12},children:[/*#__PURE__*/_jsx(\"h4\",{style:{margin:\"0 0 4px\"},children:p.title}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontSize:14},children:p.description})]})]},j))},i);}// --- AI normal text ---\nif(m.role===\"ai\"){return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"flex-start\",gap:10,maxWidth:\"85%\"},children:[/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{width:32,height:32,borderRadius:\"50%\",overflow:\"hidden\",border:`1px solid ${colors.aiMsgBorder}`,background:colors.aiMsgBg,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0},children:aiAvatarFile?/*#__PURE__*/_jsx(\"img\",{src:aiAvatarFile,alt:\"AI\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\",display:\"block\"}}):/*#__PURE__*/_jsx(\"span\",{style:{fontSize:16},children:\"🤖\"})}),/*#__PURE__*/_jsx(\"div\",{style:{borderRadius:14,padding:\"10px 12px\",whiteSpace:\"pre-wrap\",fontFamily,fontSize,background:colors.aiMsgBg,border:`1px solid ${colors.aiMsgBorder}`},children:m.content})]},i);}// --- User message ---\nreturn /*#__PURE__*/_jsx(\"div\",{style:{alignSelf:\"flex-end\",maxWidth:\"80%\",borderRadius:14,padding:\"10px 12px\",whiteSpace:\"pre-wrap\",fontFamily,fontSize,background:colors.userMsgBg,border:`1px solid ${colors.userMsgBorder}`},children:m.content},i);}),loading&&/*#__PURE__*/_jsx(\"div\",{style:{opacity:.6,fontSize:fontSize-1,fontFamily},children:\"…\"}),error&&/*#__PURE__*/_jsx(\"div\",{style:{color:\"red\",fontSize:fontSize-1},children:error}),/*#__PURE__*/_jsx(\"div\",{ref:lastMsgRef})]}),/*#__PURE__*/_jsxs(\"div\",{style:{borderTop:`1px solid ${colors.border}`,padding:\"10px 14px\",display:\"flex\",flexDirection:\"column\",gap:8},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexWrap:\"wrap\",gap:8,marginBottom:6},children:chipLabels.map((label,i)=>/*#__PURE__*/_jsx(\"button\",{onClick:()=>send(label),style:{fontFamily:uiFontFamily,fontSize:uiFontSize,padding:\"4px 10px\",borderRadius:999,border:`1px solid ${colors.border}`,background:isDark?\"rgba(255,255,255,0.06)\":\"rgba(0,0,0,0.04)\",cursor:\"pointer\",color:\"#C7C7C7\"},children:label},i))}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"flex-end\",gap:8},children:[/*#__PURE__*/_jsx(\"textarea\",{ref:inputRef,value:input,onChange:e=>setInput(e.target.value),onKeyDown:onKeyDown,placeholder:placeholder,rows:1,style:{flex:1,resize:\"none\",borderRadius:12,padding:\"10px 12px\",fontFamily,fontSize,lineHeight:1.4,background:colors.inputBg,border:`1px solid ${colors.inputBorder}`,color:colors.bodyText,minHeight:40,maxHeight:120,overflowY:\"auto\"}}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>send(),disabled:loading,style:{padding:\"8px 14px\",borderRadius:12,border:\"none\",background:colors.sendBg,color:colors.sendText,cursor:\"pointer\",fontFamily:uiFontFamily,fontSize:uiFontSize},children:\"Send\"})]})]})]})})]});}// Property Controls for Framer UI\naddPropertyControls(ChatBot,{apiKey:{type:ControlType.String,title:\"Gemini API Key\"},modelName:{type:ControlType.String,title:\"Model Name\",defaultValue:\"gemini-2.0-flash\"},systemPrompt:{type:ControlType.String,title:\"System Prompt\",defaultValue:\"You are a helpful portfolio assistant.\"},knowledgeMode:{type:ControlType.Enum,options:[\"auto\",\"manual\",\"both\"],optionTitles:[\"Auto\",\"Manual\",\"Both\"],title:\"Knowledge Mode\",defaultValue:\"auto\"},knowledgeText:{type:ControlType.String,title:\"Knowledge Text\",displayTextArea:true},kbFileUrl:{type:ControlType.String,title:\"Knowledge File URL\"},maxContextChars:{type:ControlType.Number,title:\"Max Context Chars\",defaultValue:16e3},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Ask me anything\"},subtitle:{type:ControlType.String,title:\"Subtitle\",defaultValue:\"About my work, projects, or experience.\"},placeholder:{type:ControlType.String,title:\"Input Placeholder\",defaultValue:\"Type your question…\"},ctaLabel:{type:ControlType.String,title:\"CTA Label\",defaultValue:\"Chat with AI\"},theme:{type:ControlType.Enum,options:[\"system\",\"light\",\"dark\"],optionTitles:[\"System\",\"Light\",\"Dark\"],title:\"Theme\",defaultValue:\"light\"},quick1:{type:ControlType.String,title:\"Quick 1\",defaultValue:\"My Work\"},quick2:{type:ControlType.String,title:\"Quick 2\",defaultValue:\"Experience\"},quick3:{type:ControlType.String,title:\"Quick 3\",defaultValue:\"Skills\"},quick4:{type:ControlType.String,title:\"Quick 4\",defaultValue:\"Contact\"},radius:{type:ControlType.Number,title:\"Button Radius\",defaultValue:28},buttonPadding:{type:ControlType.Number,title:\"Button Padding\",defaultValue:14},fontFamily:{type:ControlType.String,title:\"Font Family\",defaultValue:\"Inter, system-ui\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:16},uiFontFamily:{type:ControlType.String,title:\"UI Font Family\",defaultValue:\"Inter, system-ui\"},uiFontSize:{type:ControlType.Number,title:\"UI Font Size\",defaultValue:14},buttonImageFile:{type:ControlType.File,title:\"Button Image\",allowedFileTypes:[\"png\",\"jpg\",\"jpeg\",\"svg\"]},aiAvatarFile:{type:ControlType.File,title:\"AI Avatar\",allowedFileTypes:[\"png\",\"jpg\",\"jpeg\",\"svg\"]},overlayColor:{type:ControlType.Color,title:\"Overlay Color\"},buttonBg:{type:ControlType.Color,title:\"Button BG\"},buttonText:{type:ControlType.Color,title:\"Button Text\"},headerBg:{type:ControlType.Color,title:\"Header BG\"},headerText:{type:ControlType.Color,title:\"Header Text\"},modalBg:{type:ControlType.Color,title:\"Modal BG\"},borderColor:{type:ControlType.Color,title:\"Border Color\"},bodyText:{type:ControlType.Color,title:\"Body Text\"},userMsgBg:{type:ControlType.Color,title:\"User Msg BG\"},userMsgBorder:{type:ControlType.Color,title:\"User Msg Border\"},aiMsgBg:{type:ControlType.Color,title:\"AI Msg BG\"},aiMsgBorder:{type:ControlType.Color,title:\"AI Msg Border\"},inputBg:{type:ControlType.Color,title:\"Input BG\"},inputBorder:{type:ControlType.Color,title:\"Input Border\"},sendBg:{type:ControlType.Color,title:\"Send BG\"},sendText:{type:ControlType.Color,title:\"Send Text\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ChatBot\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ChatAI.map"],"mappings":"qNAMyI,SAAwB,EAAQ,EAAM,CAAC,GAAK,CAAC,SAAO,0CAA0C,YAAU,mBAAmB,eAAa,oMAAoM,gBAAc,OAAO,gBAAc,GAAG,YAAU,GAAG,kBAAgB,KAAK,QAAM,kBAAkB,WAAS,0CAA0C,cAAY,sBAAsB,WAAS,eAAe,QAAM,QAAQ,UAAO,UAAU,UAAO,aAAa,SAAO,SAAS,SAAO,UAAU,SAAO,GAAG,gBAAc,GAAG,aAAW,kFAAkF,WAAS,GAAG,eAAa,kFAAkF,aAAW,GACp+B,mBAAgB,GAAG,eAAa,GAChC,gBAAa,GAAG,YAAS,GAAG,cAAW,GAAG,YAAS,GAAG,cAAW,GAAG,WAAQ,GAAG,eAAY,GAAG,YAAS,GAAG,aAAU,GAAG,gBAAc,GAAG,UAAQ,GAAG,cAAY,GAAG,UAAQ,GAAG,cAAY,GAAG,SAAO,GAAG,WAAS,IAAI,EAAW,CAAC,EAAK,GAASA,EAAe,EAAK,EAAO,CAAC,EAAS,GAAaA,EAAe,CAAC,CAAC,EAAO,CAAC,EAAM,GAAUA,EAAe,EAAE,EAAO,CAAC,EAAQ,GAAYA,EAAe,EAAK,EAAO,CAAC,EAAM,GAAUA,EAAe,IAAI,EAAO,CAAC,EAAO,GAAWA,EAAe,EAAE,EAAQ,GAAUC,EAAa,IAAI,EAAQ,EAASA,EAAa,IAAI,EAAQ,EAAWA,EAAa,IAAI,EAClkB,GAAS,CAAC,CAA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