{"version":3,"file":"ChatAI.DNGo53s7.mjs","names":["React.useState","React.useRef","React.useMemo","apiKey","p"],"sources":["https:/framerusercontent.com/modules/zdNn1a6Yfcw4TQehqlSk/t26xUUganoDDOTOkiYUE/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__*/_jsxs(\"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:[buttonImageFile?/*#__PURE__*/_jsx(\"img\",{src:buttonImageFile,alt:\"\",style:{width:24,height:24,objectFit:\"contain\",display:\"block\"}}):/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",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":"yUAMyI,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,SAAO,UAAU,SAAO,aAAa,UAAO,SAAS,UAAO,UAAU,SAAO,GAAG,gBAAc,GAAG,aAAW,kFAAkF,WAAS,GAAG,eAAa,kFAAkF,aAAW,GACp+B,kBAAgB,GAAG,eAAa,GAChC,gBAAa,GAAG,YAAS,GAAG,cAAW,GAAG,YAAS,GAAG,cAAW,GAAG,WAAQ,GAAG,eAAY,GAAG,YAAS,GAAG,aAAU,GAAG,iBAAc,GAAG,UAAQ,GAAG,cAAY,GAAG,UAAQ,GAAG,cAAY,GAAG,SAAO,GAAG,WAAS,IAAI,EAAW,CAAC,EAAK,GAASA,EAAe,GAAM,CAAM,CAAC,EAAS,GAAaA,EAAe,EAAE,CAAC,CAAM,CAAC,EAAM,GAAUA,EAAe,GAAG,CAAM,CAAC,EAAQ,GAAYA,EAAe,GAAM,CAAM,CAAC,EAAM,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