{"version":3,"file":"Em.Yu6SWBlM.mjs","names":["React.useState","React.useRef","React.useCallback","React.useMemo","_Fragment","React.useContext"],"sources":["https:/framerusercontent.com/modules/OFaQIEO6XrGqORUy3A9z/NckMUffhrZYxmoqqChdg/Em.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget,useIsStaticRenderer}from\"framer\";import{motion,useInView,useReducedMotion}from\"framer-motion\";/*\n * Em — the chat, in one component.\n *\n * The same component runs on the /em-ai page and inside the side panel. It\n * fills whatever box it's placed in and rearranges itself by that box's width\n * (@container queries). Everything around it is native Framer: the page, and\n * the \"Em Panel\" component with its Closed/Open variants and trigger.\n *\n * Talks to the backend's /api/v2/chat. Chat state is client-side only — no\n * database.\n *//* ============================================================================\n * HOW EM FITS TOGETHER\n * ============================================================================\n * Shared storage: sessionStorage key `em-chat-thread-v1`, an array of\n * { id, role: \"user\" | \"model\", content, at? }. Every copy of Em in the tab\n * reads and writes this one thread, so a conversation follows the visitor\n * between the panel and the page. Change the shape → bump the version suffix.\n *\n * The panel: Layout = Panel gives the smaller type, the header bar with New\n * chat, and the panel's surface colour, matching the old panel. In its Closed\n * variant Em stays mounted (just clipped out of sight), so it can still hear\n * `em:ask`. Per variant, the panel sets Auto Focus (true when Open), and on\n * the phone's Open: Lock Page Scroll and Show Close (wired via On Close).\n *\n * Ask event: other components ask Em a question by firing `em:ask` on window\n * with { text }. AiSummarizeRow.tsx (the blog summarize row) sends it. Em sends\n * the question, cancels the event as a receipt, and fires On Ask — wired in the\n * panel to switch to Open. Only the breakpoint copy actually on screen\n * answers: Framer mounts one per breakpoint and hidden ones still run. Nothing\n * checks the event name, so rename it in every file or the button dies\n * silently.\n * Quote card invite: the homepage's quote card section has a native Framer\n * button linking to its own anchor (CARD_INVITE_HASH). Em catches that click\n * anywhere on the page: instead of scrolling, it opens the panel the same way\n * and writes CARD_INVITE_DRAFT into the message box, cursor at the end, for\n * the visitor to add their name and send. With no Em on the page, the button\n * just scrolls to its section.\n *\n * Welcome: Em opens every conversation with his welcome (no starter chips),\n * drawn as a greeting: a big face, a title and a line of text. It fades in\n * after a beat of thinking, the first time he's shown (Auto Focus turning on:\n * on page load, or when the panel opens), and stays at the top of the thread.\n * Title and text are joined and sent to the server as Em's first message, so\n * he knows what he asked. It's never stored.\n *\n * Link cards: Em writes ordinary links. Each link to Manas's site is drawn as\n * a card right after the paragraph or list it's in, and its words in the\n * sentence turn to plain text. SITE_PAGES gives known pages their wording;\n * articles use Em's link text. Other sites stay inline links.\n * A link to his booking page becomes the meeting card (BOOKING_CARD), which\n * opens in a new tab so the chat stays put.\n * An article card has a Summarize button under it. It sends the visitor's\n * own message with the article's link, the same one the blog's \"Summarize\n * with Em\" row sends: Google's page reader opens links in the visitor's\n * messages reliably, but not ones from Em's earlier replies.\n *\n * Quote cards: when a visitor asks for one, Em ends his reply with a design\n * recipe in a ```card block (the rules are knowledge/cards.md on the server).\n * The block is never shown: it becomes a card drawn on a canvas, with a size\n * control (Post, Square, Story) and Save card, which saves a full-size PNG.\n * The recipe names its quote by number; the words come from the server\n * (/api/quotes, read from cards.md), fetched when the first card shows.\n * Each card keeps its arrangement (seeded by the message id) and its time\n * (the message's own) in every size. The card fonts load the first time a\n * card shows. The recipe stays in the saved thread and goes back to the\n * server with the chat, so Em can make the next card different.\n *\n * Visit: each message also carries two facts about the visit, from the\n * visitor's own browser: their local time (with time zone) and the site that\n * sent them here. The server adds them to Em's instructions, never to the\n * visitor's words. The arrival is noted once per tab (sessionStorage\n * `em-visit-from-v1`), so clicking around the site doesn't overwrite it.\n * `?ref=` or `?utm_source=` on the link wins over the browser's referrer.\n *\n * Never: put the panel on /em-ai (two copies, one thread, one tab); write to\n * storage before hydrating; clear storage outside New chat; add handoff UI,\n * as continuity is ambient by design.\n * ============================================================================\n */// --- EASY TWEAKS -------------------------------------------------------------\n/** Backend base URL. `/api/v2/chat` is appended by the fetch below. */const BACKEND_BASE_URL=\"https://portfolio-chatbot-1050731569228.asia-southeast1.run.app\";/** Matches MAX_MESSAGE_CHARS on the server, so the UI stops you before it does. */const MAX_INPUT_CHARS=2e3;/** Composer grows with your text up to here, then scrolls internally. */const MAX_COMPOSER_HEIGHT=200;/** How close to the bottom (px) still counts as \"following along\". */const STICK_THRESHOLD=64;/**\n * How far up you must scroll before the jump-to-latest button appears.\n * Deliberately larger than STICK_THRESHOLD so it doesn't flicker in on a nudge.\n */const JUMP_THRESHOLD=220;/**\n * How fast Em types a reply out, in characters per second. Gemini sends text\n * in a few big bursts; typing it out at a steady pace makes the reply flow.\n */const TYPE_SPEED=90;/** Extra speed per character still waiting, so Em never trails far behind. */const TYPE_CATCH_UP=2.5;/**\n * The one ongoing conversation for this browser tab, shared by every copy of Em.\n * sessionStorage, not localStorage: tab-scoped and self-clearing, so no chat\n * lingers on a shared machine. See CONSISTENCY CONTRACT → Storage.\n */const STORAGE_KEY=\"em-chat-thread-v1\";/** A beat of \"thinking\" before Em's welcome appears, in ms. */const WELCOME_PAUSE=600;/** The welcome isn't stored, so it gets a fixed id. */const WELCOME_ID=\"welcome\";/** {hello} in the welcome, by the visitor's local hour. */function dayGreeting(hour){if(hour===null)return\"Hi there!\";if(hour>=5&&hour<12)return\"Good morning!\";if(hour>=12&&hour<17)return\"Good afternoon!\";if(hour>=17&&hour<22)return\"Good evening!\";return\"Hey, night owl!\";}/** Links to these hosts become cards. See HOW EM FITS TOGETHER → Link cards. */const SITE_HOSTS=[\"manasmano.com\",\"www.manasmano.com\"];/**\n * Manas's booking page (a Google Calendar appointment schedule). Em's link to\n * it, on this host, is drawn as the meeting card. The link itself lives in\n * knowledge/rules.md on the server.\n */const BOOKING_HOST=\"calendar.app.google\";const BOOKING_CARD={title:\"Talk Design to Manas\",where:\"30-min Google Meet \\xb7 Pick a time that suits you\"};/** At most this many cards per reply; any further links stay inline. */const MAX_CARDS=3;/** Em's quote card recipe starts with this. See HOW EM FITS TOGETHER → Quote cards. */const CARD_FENCE=\"```card\";/** A new card shows its first status line for this long, in ms… */const CARD_PICK_MS=4e3;/** …and stays \"designing\" at least this long, so both lines get seen. */const CARD_MIN_DESIGN_MS=8e3;/** The sizes a card saves in; the first is the default. icon: the little shape, w × h. */const CARD_SIZES=[{id:\"post\",label:\"Post\",W:1080,H:1350,icon:[8,10]},{id:\"square\",label:\"Square\",W:1080,H:1080,icon:[9,9]},{id:\"story\",label:\"Story\",W:1080,H:1920,icon:[7,12]}];/** The card's fonts, from Google Fonts. */const CARD_FONTS_URL=\"https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,700&family=Gloock&family=Host+Grotesk:wght@500&family=Syne:wght@600&display=swap\";/**\n * Card wording for known pages, keyed by path, plus #section on the homepage.\n * Keep the homepage sections in step with knowledge/site.md on the server.\n */const SITE_PAGES={\"/\":{title:\"Homepage\",where:\"manasmano.com\"},\"/#about\":{title:\"About Manas\",where:\"Homepage \\xb7 Who he is, and his toolkit\"},\"/#journey\":{title:\"Road so far\",where:\"Homepage \\xb7 Career timeline\"},\"/#writing\":{title:\"Writing\",where:\"Homepage \\xb7 Latest articles\"},\"/#featured\":{title:\"Featured in\",where:\"Homepage \\xb7 His talk at UX India 2024\"},\"/#building-with-ai\":{title:\"Building with AI\",where:\"Homepage \\xb7 Figma plugins he's built\"},\"/#faq\":{title:\"FAQs\",where:\"Homepage \\xb7 Quick answers\"},\"/#contact\":{title:\"Reach out\",where:\"Homepage \\xb7 Email, LinkedIn, X and Instagram\"},\"/blog\":{title:\"Blog\",where:\"All his articles\"},\"/portfolio\":{title:\"Portfolio\",where:\"Case studies \\xb7 Password-protected\"}};/** How other components ask Em a question. See HOW EM FITS TOGETHER → Ask event. */const ASK_EVENT=\"em:ask\";/** A link to this anchor starts a quote card message. See HOW EM FITS TOGETHER → Quote card invite. */const CARD_INVITE_HASH=\"#quote-card\";/** What the invite writes in the message box; the visitor adds their name. Keep the trailing space. */const CARD_INVITE_DRAFT=\"Design me a quote card. My name is \";/**\n * True only for the breakpoint copy the visitor can actually see. Framer\n * renders one copy per breakpoint and hides the ones that don't match —\n * hidden, but still running. A hidden breakpoint measures zero. (Clipping, as\n * in the panel's Closed variant, still counts as on screen.)\n */function isOnScreen(el){if(!el)return false;const native=el.checkVisibility;if(typeof native===\"function\")return native.call(el);const rect=el.getBoundingClientRect();return rect.width>0||rect.height>0;}/** Where this visit came from. See HOW EM FITS TOGETHER → Visit. */const VISIT_KEY=\"em-visit-from-v1\";/** Notes the site that sent the visitor here. Links within the site are ignored. */function rememberArrival(){try{const params=new URLSearchParams(window.location.search);let from=params.get(\"ref\")||params.get(\"utm_source\")||\"\";if(!from&&document.referrer){const host=new URL(document.referrer).hostname;if(!SITE_HOSTS.includes(host))from=host.replace(/^www\\./,\"\");}from=from.replace(/[^\\w.-]/g,\"\").slice(0,60);if(from)window.sessionStorage.setItem(VISIT_KEY,from);}catch{/* no storage or odd referrer: Em just won't know */}}/** What Em knows about this visit: their local date and time, and where they came from. */function visitInfo(){const visit={localTime:new Date().toLocaleString(\"en-US\",{weekday:\"short\",month:\"short\",day:\"numeric\",year:\"numeric\",hour:\"numeric\",minute:\"2-digit\"})};try{visit.timeZone=Intl.DateTimeFormat().resolvedOptions().timeZone;visit.from=window.sessionStorage.getItem(VISIT_KEY)||undefined;}catch{/* send what we have */}return visit;}// --- Design tokens -----------------------------------------------------------\n// Live Framer color tokens. Each has a fallback so the component still renders\n// correctly outside the site (e.g. an isolated component preview).\nconst T={canvas:\"var(--token-303ecbb5-69bc-4712-9ee8-f347a6e5b661, rgb(247, 242, 234))\",surface:\"var(--token-f7338c0a-d832-42c5-b4e4-1cbad66883ca, rgb(253, 251, 246))\",elevated:\"var(--token-898be6ae-cc6f-4c7f-be46-b844295e598c, rgb(255, 255, 255))\",sunken:\"var(--token-157e6d37-ef08-43a6-8b3a-017dcf860585, rgb(237, 229, 214))\",primary:\"var(--token-f006ec0f-67a5-48a9-a3a1-2ec748d8a3dd, rgb(32, 24, 15))\",secondary:\"var(--token-2f372d1b-784c-41ad-99d8-02a8b821c767, rgb(101, 87, 74))\",tertiary:\"var(--token-0492865d-06f3-48fc-895b-13f4f992dc26, rgb(164, 152, 138))\",accent:\"var(--token-5c4d744f-63e5-47a7-9f2e-d2c5b265c22b, rgb(61, 127, 140))\",accentHover:\"var(--token-714d6b76-1d9e-4c7c-8b45-8117b9335f43, rgb(42, 101, 113))\",accentSoft:\"var(--token-94752b58-7710-4268-82e9-d5f65e1f63dd, rgb(201, 221, 227))\",accentOn:\"var(--token-2d64a198-6824-4a6c-bfa4-dd51b73490a4, rgb(255, 255, 255))\",border:\"var(--token-87807844-4666-43b2-bacc-bfd106b3dd17, rgb(229, 220, 201))\",shadow:\"var(--token-a5a6d5d4-f44d-4d98-8af7-19a2b50094c9, rgba(32, 24, 15, 0.2))\"};// Site typography (text styles aren't exposed as CSS variables by Framer, so the\n// families are bound here to match the project's \"Body M\" / \"Page Hero\" styles).\nconst FONT_BODY=\"'Host Grotesk', sans-serif\";const FONT_HEADING=\"Domine, serif\";const CardContext=/*#__PURE__*/React.createContext({onSummarize:()=>{},busy:false,asked:new Set});/** The page a link points to, for comparing links: path only, no slash at the end. */function pagePath(url){return url.pathname.replace(/\\/+$/,\"\")||\"/\";}/** The same request the blog's \"Summarize with Em\" row sends. */const SUMMARIZE_PROMPT='Summarize this for me: \"{title}\"\\n{url}';const DEFAULT_WELCOME_TITLE=\"{hello} I'm Em.\";const DEFAULT_WELCOME_TEXT=\"Manas's AI sidekick. I know his work, his writing and how he thinks about design, occasionally better than he does. So, who do I have the pleasure of talking to?\";/**\n * Em\n *\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 800\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerDisableUnlink\n */export default function Em(props){const{botName=\"Em\",welcomeTitle=DEFAULT_WELCOME_TITLE,welcomeText=DEFAULT_WELCOME_TEXT,backendUrl=BACKEND_BASE_URL,contentMaxWidth=720,bubbleRadius=12,composerRadius=16,autoFocus=true,lockScroll=false,layout=\"page\",showClose=false}=props;const isPanel=layout===\"panel\";const isStatic=useIsStaticRenderer();const isCanvas=RenderTarget.current()===RenderTarget.canvas;const[messages,setMessages]=React.useState([]);const[input,setInput]=React.useState(\"\");const[isThinking,setIsThinking]=React.useState(false);const[isStreaming,setIsStreaming]=React.useState(false);// The reply being typed out on screen, and how much of it shows.\nconst[typing,setTyping]=React.useState(null);const[error,setError]=React.useState(null);const[copiedId,setCopiedId]=React.useState(null);// The reply whose quote card is still being designed, if any.\nconst[designing,setDesigning]=React.useState(null);const[showJump,setShowJump]=React.useState(false);// Set once mounted in the browser: the visitor's hour for {hello}, and\n// whether storage has been read (so the welcome knows if a chat exists).\nconst[ready,setReady]=React.useState(false);const[hour,setHour]=React.useState(null);// Whether the welcome has shown yet. Until then it waits, hidden.\nconst[greeted,setGreeted]=React.useState(false);const rootRef=React.useRef(null);const scrollRef=React.useRef(null);const composerRef=React.useRef(null);const abortRef=React.useRef(null);// Whether the reader is following the newest message. Starts true, and only\n// flips when they scroll away — so a long streamed reply never yanks the\n// page out from under someone reading further up.\nconst stickToBottomRef=React.useRef(true);const lastAttemptRef=React.useRef(\"\");const didInitialScrollRef=React.useRef(false);// The welcome, then the conversation. What's shown and what's sent.\nconst hello=text=>text.replace(\"{hello}\",dayGreeting(hour));const welcomeMessage={id:WELCOME_ID,role:\"model\",content:`${hello(welcomeTitle)}\n\n${hello(welcomeText)}`};const thread=[welcomeMessage,...messages];// Read by the typing loop, which runs outside React's render cycle.\nconst threadRef=React.useRef(thread);threadRef.current=thread;const streamDoneRef=React.useRef(true);// Replies that arrived in this visit: their cards play the designing beat.\nconst freshRef=React.useRef(new Set);const reduceMotion=useReducedMotion();const reduceMotionRef=React.useRef(reduceMotion);reduceMotionRef.current=reduceMotion;// Blocks storage writes until we've read the existing thread once.\nconst hydratedRef=React.useRef(false);// Nothing said yet by the visitor (the welcome doesn't count).\nconst isEmpty=messages.length===0;const isBusy=isThinking||isStreaming||typing!==null;// Only the newest reply's Em stays animated; older ones hold still.\nconst lastReplyIdx=thread.map(m=>m.role).lastIndexOf(\"model\");// Hidden until it fades in. The canvas shows it straight away.\nconst welcomePending=!greeted&&!isCanvas&&!isStatic;// --- Persistence ---------------------------------------------------------\n// Shared thread — see CONSISTENCY CONTRACT (Storage, and the hydrate/clear\n// hard rules). Every storage call is wrapped because private browsing and\n// blocked site data make sessionStorage throw rather than return null.\nReact.useEffect(()=>{if(isStatic)return;rememberArrival();try{const raw=window.sessionStorage.getItem(STORAGE_KEY);if(raw){const saved=JSON.parse(raw);if(Array.isArray(saved)){const clean=saved.filter(m=>m&&typeof m.id===\"string\"&&typeof m.content===\"string\"&&(m.role===\"user\"||m.role===\"model\"));if(clean.length)setMessages(clean);}}}catch{/* no storage available — start fresh, nothing to report */}finally{// Writes are unblocked only once we've had our look at storage.\nhydratedRef.current=true;setHour(new Date().getHours());setReady(true);}},[isStatic]);// Save after each turn settles. Skipped mid-stream: otherwise this writes on\n// every chunk for no benefit.\nReact.useEffect(()=>{if(isStatic||isStreaming||!hydratedRef.current)return;if(messages.length===0)return;try{window.sessionStorage.setItem(STORAGE_KEY,JSON.stringify(messages));}catch{/* storage full or blocked — the chat still works in memory */}},[messages,isStreaming,isStatic]);// --- Scroll behaviour ----------------------------------------------------\nconst scrollToBottom=React.useCallback(smooth=>{const el=scrollRef.current;if(!el)return;el.scrollTo({top:el.scrollHeight,behavior:smooth?\"smooth\":\"auto\"});},[]);const handleScroll=React.useCallback(()=>{const el=scrollRef.current;if(!el)return;const distance=el.scrollHeight-el.scrollTop-el.clientHeight;stickToBottomRef.current=distance<STICK_THRESHOLD;// Functional update that returns the previous value when nothing changed,\n// so a scroll gesture doesn't re-render on every frame.\nconst away=distance>JUMP_THRESHOLD;setShowJump(prev=>prev===away?prev:away);},[]);const jumpToLatest=React.useCallback(()=>{stickToBottomRef.current=true;setShowJump(false);scrollToBottom(true);},[scrollToBottom]);React.useEffect(()=>{if(isStatic||messages.length===0)return;if(!stickToBottomRef.current)return;// Jump instantly the first time (a restored thread shouldn't animate in)\n// and while streaming, where smooth scrolling can't keep up with the text.\nconst smooth=didInitialScrollRef.current&&!isStreaming&&!typing;didInitialScrollRef.current=true;scrollToBottom(smooth);},[messages,isThinking,isStreaming,isStatic,typing,scrollToBottom]);// Growing content doesn't fire a scroll event, so a reply streaming in while\n// the reader sits just above the fold would never reveal the jump button.\n// Re-measure whenever the thread changes and we're not following the bottom.\nReact.useEffect(()=>{if(isStatic||stickToBottomRef.current)return;handleScroll();},[messages,isStatic,typing,handleScroll]);// --- Typing ----------------------------------------------------------------\n// Type the live reply out at a steady pace instead of dumping each burst on\n// screen. The full text still lands in `messages` (and storage) as it\n// arrives; only what's shown trails behind.\nReact.useEffect(()=>{const id=typing?.id;if(!id)return;let shown=0;let last=performance.now();let frame=requestAnimationFrame(function tick(now){// A card recipe isn't typed out; only the words before it are.\nconst full=splitCard(threadRef.current.find(m=>m.id===id)?.content??\"\").text;const waiting=full.length-shown;shown=reduceMotionRef.current?full.length:Math.min(full.length,shown+(now-last)/1e3*(TYPE_SPEED+waiting*TYPE_CATCH_UP));last=now;if(shown>=full.length&&streamDoneRef.current){setTyping(null);return;}const next=Math.floor(shown);// Leaves it alone if New chat or Stop already cleared it.\nsetTyping(prev=>prev?.id!==id||prev.shown===next?prev:{id,shown:next});frame=requestAnimationFrame(tick);});return()=>cancelAnimationFrame(frame);},[typing?.id]);// The welcome: after a beat of thinking, it fades in the first time Em is\n// shown (Auto Focus turns on). A chat already under way skips the beat.\nReact.useEffect(()=>{if(isStatic||!ready||!autoFocus||greeted)return;if(messages.length){setGreeted(true);return;}const timer=window.setTimeout(()=>setGreeted(true),WELCOME_PAUSE);return()=>window.clearTimeout(timer);},[isStatic,ready,autoFocus,greeted,messages.length]);// Focus the composer so you can just start typing: on load for the page,\n// and each time the panel opens.\nReact.useEffect(()=>{if(isStatic||!autoFocus)return;composerRef.current?.focus();},[isStatic,autoFocus]);// Full-screen on a phone: lock the page behind so it doesn't scroll under\n// your finger. Only the copy on screen may lock it.\nReact.useEffect(()=>{if(isStatic||!lockScroll||!isOnScreen(rootRef.current))return;const previous=document.body.style.overflow;document.body.style.overflow=\"hidden\";return()=>{document.body.style.overflow=previous;};},[isStatic,lockScroll]);// --- Questions asked from elsewhere on the page --------------------------\n// Kept in refs so the listener always calls the current versions.\nconst askRef=React.useRef(()=>{});const onAskRef=React.useRef(props.onAsk);onAskRef.current=props.onAsk;const onCloseRef=React.useRef(props.onClose);onCloseRef.current=props.onClose;// Only the panel closes on a card click (On Close is wired on the phone).\nconst openCard=React.useCallback(()=>onCloseRef.current?.(),[]);const summarize=React.useCallback(card=>{askRef.current(SUMMARIZE_PROMPT.replace(\"{title}\",card.title).replace(\"{url}\",card.href));},[]);// Articles the visitor already sent (e.g. from the blog's Summarize row)\n// lose their Summarize button: there's nothing left to ask.\nconst asked=React.useMemo(()=>{const pages=new Set;for(const m of messages){if(m.role!==\"user\")continue;for(const raw of m.content.match(/https?:\\/\\/[^\\s\"')]+/g)||[]){try{pages.add(pagePath(new URL(raw)));}catch{/* not a usable link */}}}return pages;},[messages]);React.useEffect(()=>{if(isStatic)return;const onAsk=event=>{const text=event.detail?.text?.trim();if(!text)return;// Every breakpoint copy hears this; only the one on screen answers.\n// It claims the event so the others don't run, and cancels it to\n// tell the sender it was handled.\nif(!isOnScreen(rootRef.current))return;event.stopImmediatePropagation();event.preventDefault();askRef.current(text);onAskRef.current?.();};// The quote card invite: its link starts a message in the box for the\n// visitor to finish, instead of scrolling. Caught before Framer's own\n// link handling sees it.\nconst onInvite=event=>{const link=event.target?.closest?.(\"a[href]\");if(!link||!isOnScreen(rootRef.current))return;let hash=\"\";try{hash=new URL(link.href,window.location.href).hash;}catch{return;}if(hash!==CARD_INVITE_HASH)return;event.preventDefault();event.stopImmediatePropagation();setInput(CARD_INVITE_DRAFT);onAskRef.current?.();// Cursor at the end, again once the panel has finished opening.\nconst place=()=>{const el=composerRef.current;if(!el)return;el.focus();el.setSelectionRange(el.value.length,el.value.length);};window.setTimeout(place,0);window.setTimeout(place,400);};window.addEventListener(ASK_EVENT,onAsk);document.addEventListener(\"click\",onInvite,true);return()=>{window.removeEventListener(ASK_EVENT,onAsk);document.removeEventListener(\"click\",onInvite,true);};},[isStatic]);// Cancel any in-flight reply if the page goes away mid-stream.\nReact.useEffect(()=>{return()=>abortRef.current?.abort();},[]);// --- Composer sizing -----------------------------------------------------\nconst resizeComposer=React.useCallback(()=>{const el=composerRef.current;if(!el)return;el.style.height=\"auto\";el.style.height=`${Math.min(el.scrollHeight,MAX_COMPOSER_HEIGHT)}px`;},[]);React.useEffect(()=>{resizeComposer();},[input,resizeComposer]);// --- Sending -------------------------------------------------------------\nconst send=React.useCallback(async raw=>{const text=(raw||\"\").trim();if(!text||isBusy||isCanvas)return;lastAttemptRef.current=text;setError(null);setInput(\"\");// Answering before the welcome appears: show it at once.\nsetGreeted(true);stickToBottomRef.current=true;setShowJump(false);const userMsg={id:`u-${Date.now()}`,role:\"user\",content:text,at:Date.now()};const history=[...messages,userMsg];setMessages(history);setIsThinking(true);const replyId=`m-${Date.now()}`;let streamedAnything=false;const controller=new AbortController;abortRef.current=controller;try{const response=await fetch(`${backendUrl}/api/v2/chat`,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},signal:controller.signal,body:JSON.stringify({messages:[welcomeMessage,...history].map(m=>({role:m.role,content:m.content})),visit:visitInfo(),// Groups this chat's lines in the server logs.\nchatId:history[0].id})});// Errors always arrive as JSON, even from the streaming endpoint.\nif(!response.ok){let message=\"Can't reach my brain right now — try me again in a sec?\";try{const data=await response.json();if(data?.error)message=data.error;}catch{/* keep the friendly default */}throw new Error(message);}const contentType=response.headers.get(\"content-type\")||\"\";// Fallback: server answered as plain JSON rather than a stream.\nif(contentType.includes(\"application/json\")||!response.body){const data=await response.json();if(data?.error)throw new Error(data.error);setIsThinking(false);setMessages(prev=>[...prev,{id:replyId,role:\"model\",content:data?.text??\"\",at:Date.now()}]);return;}// Streaming: one JSON event per line (see chat-v2.ts on the\n// server). Only \"text\" and \"error\" matter here; \"status\" and\n// anything new are ignored, so the server can add events first.\nconst reader=response.body.getReader();const decoder=new TextDecoder;let buffer=\"\";let accumulated=\"\";let failed=false;const addText=piece=>{accumulated+=piece;const current=accumulated;if(!streamedAnything){streamedAnything=true;setIsThinking(false);setIsStreaming(true);streamDoneRef.current=false;freshRef.current.add(replyId);setTyping({id:replyId,shown:0});setMessages(prev=>[...prev,{id:replyId,role:\"model\",content:current,at:Date.now()}]);}else{setMessages(prev=>prev.map(m=>m.id===replyId?{...m,content:current}:m));}};const handleLine=line=>{if(!line.trim())return;let event;try{event=JSON.parse(line);}catch{return;}if(event.type===\"text\"&&typeof event.text===\"string\"){addText(event.text);}else if(event.type===\"error\"){failed=true;}};while(true){const{done,value}=await reader.read();if(done)break;buffer+=decoder.decode(value,{stream:true});const lines=buffer.split(\"\\n\");buffer=lines.pop()??\"\";lines.forEach(handleLine);}handleLine(buffer+decoder.decode());// With part of the reply on screen, the catch below adds a\n// gentle \"cut off\" note instead of an error box.\nif(failed){throw new Error(\"Something glitched on my end. One more try?\");}if(!streamedAnything){throw new Error(\"Huh, I blanked on that one. Give it another go?\");}}catch(err){const aborted=err instanceof Error&&err.name===\"AbortError\";if(aborted){// They pressed stop — keep whatever arrived, no error.\n}else if(streamedAnything){// Part of the reply is already on screen; append a gentle\n// note rather than replacing it with an error box.\nsetMessages(prev=>prev.map(m=>m.id===replyId?{...m,content:`${m.content}\n\n*(Looks like I got cut off there — hit me with that again?)*`}:m));}else{setError(err instanceof Error&&err.message?err.message:\"Something glitched on my end. One more try?\");}}finally{abortRef.current=null;setIsThinking(false);setIsStreaming(false);streamDoneRef.current=true;if(!isStatic)composerRef.current?.focus();}},[messages,isBusy,isCanvas,backendUrl,isStatic,welcomeMessage.content]);askRef.current=send;// Stop also finishes the typing, showing whatever has arrived.\nconst stop=React.useCallback(()=>{abortRef.current?.abort();setTyping(null);},[]);const reset=React.useCallback(()=>{abortRef.current?.abort();setTyping(null);setMessages([]);setGreeted(false)// Em welcomes you again\n;setInput(\"\");setError(null);stickToBottomRef.current=true;setShowJump(false);// Explicit clear — the shared thread is only ever dropped from here.\ntry{window.sessionStorage.removeItem(STORAGE_KEY);}catch{/* nothing to clear */}if(!isStatic)composerRef.current?.focus();},[isStatic]);const retry=React.useCallback(()=>{const text=lastAttemptRef.current;if(!text)return;// Drop the user message that failed, then resend it.\nsetMessages(prev=>{const next=[...prev];if(next.length&&next[next.length-1].role===\"user\")next.pop();return next;});setError(null);window.setTimeout(()=>send(text),0);},[send]);const copy=React.useCallback(async message=>{if(typeof navigator===\"undefined\"||!navigator.clipboard)return;try{await navigator.clipboard.writeText(splitCard(message.content).text);setCopiedId(message.id);window.setTimeout(()=>setCopiedId(null),1600);}catch{/* clipboard blocked — silently skip */}},[]);const handleKeyDown=e=>{if(e.key===\"Enter\"&&!e.shiftKey){e.preventDefault();send(input);}};// --- Render --------------------------------------------------------------\nconst columnStyle={width:\"100%\",maxWidth:`${contentMaxWidth}px`,marginLeft:\"auto\",marginRight:\"auto\"};return /*#__PURE__*/_jsxs(\"div\",{ref:rootRef,className:isPanel?\"emc-root is-panel\":\"emc-root\",style:{...props.style,position:\"relative\",width:\"100%\",height:\"100%\",// A full-height frame is 100vh, which on mobile includes the\n// browser chrome. dvh is the actually-visible height, so this\n// keeps the composer above the address bar instead of behind it.\nmaxHeight:\"100dvh\",minHeight:0,display:\"flex\",flexDirection:\"column\",backgroundColor:isPanel?T.surface:T.canvas,color:T.primary,fontFamily:FONT_BODY,overflow:\"hidden\",// Drives every @container rule in CSS below, so the layout\n// responds to the frame's width — not the browser window.\ncontainerType:\"inline-size\"},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),isPanel&&/*#__PURE__*/_jsxs(\"div\",{className:\"emc-header\",children:[/*#__PURE__*/_jsxs(\"button\",{className:\"emc-newchat\",type:\"button\",onClick:reset,disabled:isEmpty,title:\"Start fresh\",\"aria-label\":\"Start a new chat\",children:[/*#__PURE__*/_jsx(PlusIcon,{}),/*#__PURE__*/_jsx(\"span\",{children:\"New chat\"})]}),showClose&&/*#__PURE__*/_jsx(\"button\",{className:\"emc-iconbtn\",type:\"button\",onClick:()=>props.onClose?.(),title:\"Close\",\"aria-label\":\"Close chat\",children:/*#__PURE__*/_jsx(CloseIcon,{})})]}),/*#__PURE__*/_jsx(CardContext.Provider,{value:{onOpen:isPanel?openCard:undefined,onSummarize:summarize,busy:isBusy,asked},children:/*#__PURE__*/_jsx(\"main\",{className:\"emc-scroll\",ref:scrollRef,onScroll:handleScroll,children:/*#__PURE__*/_jsxs(\"div\",{className:\"emc-column\",style:columnStyle,children:[!isPanel&&/*#__PURE__*/_jsxs(\"h1\",{className:\"emc-sr-only\",children:[\"Chat with \",botName]}),/*#__PURE__*/_jsxs(\"div\",{className:\"emc-thread\",role:\"log\",\"aria-live\":\"polite\",children:[!isEmpty&&/*#__PURE__*/_jsx(\"div\",{className:\"emc-utility\",children:/*#__PURE__*/_jsxs(\"button\",{className:\"emc-newchat\",type:\"button\",onClick:reset,title:\"Start fresh\",\"aria-label\":\"Start a new chat\",children:[/*#__PURE__*/_jsx(PlusIcon,{}),/*#__PURE__*/_jsx(\"span\",{children:\"New chat\"})]})}),thread.map((m,i)=>{// Set only on the reply being typed out.\nconst shown=typing?.id===m.id?typing.shown:null;const isLive=shown!==null;// A quote card shows once the words before it are typed out.\nconst part=splitCard(m.content);const showCard=part.block!==null&&(shown===null||shown>=part.text.length);const isDesigning=designing===m.id;if(m.id===WELCOME_ID){return /*#__PURE__*/_jsxs(\"div\",{className:\"emc-hero\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"emc-hero-face\",children:/*#__PURE__*/_jsx(EmFace,{size:isPanel?32:44,mood:welcomePending?\"thinking\":\"excited\",// Settles once the chat is under way.\nstill:isBusy||lastReplyIdx!==0})}),!welcomePending&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"h2\",{className:\"emc-hero-title\",children:hello(welcomeTitle)}),/*#__PURE__*/_jsx(\"p\",{className:\"emc-hero-sub\",children:hello(welcomeText)})]})]},m.id);}return m.role===\"user\"?/*#__PURE__*/_jsx(\"div\",{className:\"emc-user-row\",children:/*#__PURE__*/_jsx(\"div\",{className:\"emc-user-bubble\",style:{borderRadius:`${bubbleRadius}px`},children:m.content})},m.id):/*#__PURE__*/_jsxs(\"article\",{className:\"emc-reply\",\"aria-busy\":isLive||undefined,children:[/*#__PURE__*/_jsxs(\"div\",{className:\"emc-reply-label\",children:[/*#__PURE__*/_jsx(EmFace,{size:24,mood:isLive||isDesigning?\"writing\":\"idle\",still:!isLive&&(isBusy||i!==lastReplyIdx)}),/*#__PURE__*/_jsx(\"span\",{className:\"emc-sr-only\",children:botName})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"emc-reply-body\",children:[/*#__PURE__*/_jsx(Markdown,{text:shown===null?part.text:settlePartial(hidePartialFence(part.text.slice(0,shown)))}),isLive&&!showCard&&/*#__PURE__*/_jsx(\"span\",{className:\"emc-caret\",\"aria-hidden\":\"true\"}),showCard&&part.block&&/*#__PURE__*/_jsx(QuoteCard,{recipe:part.block.done?part.block.recipe:null,pending:!part.block.done&&isLive,fresh:freshRef.current.has(m.id),seed:seedFrom(m.id),madeAt:m.at,backendUrl:backendUrl,onDesigning:on=>setDesigning(d=>on?m.id:d===m.id?null:d)},`${m.id}-card`)]}),!isLive&&!isDesigning&&/*#__PURE__*/_jsxs(\"div\",{className:\"emc-meta\",children:[m.at&&/*#__PURE__*/_jsx(Time,{at:m.at}),!isBusy&&/*#__PURE__*/_jsx(\"button\",{className:\"emc-copy\",type:\"button\",onClick:()=>copy(m),\"aria-label\":\"Copy reply\",children:copiedId===m.id?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(CheckIcon,{}),\"Copied\"]}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(CopyIcon,{}),\"Copy\"]})})]})]},m.id);}),isThinking&&/*#__PURE__*/_jsxs(\"div\",{className:\"emc-reply emc-thinking-row\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"emc-reply-label is-thinking\",children:[/*#__PURE__*/_jsx(EmFace,{size:24,mood:\"thinking\"}),/*#__PURE__*/_jsx(\"span\",{className:\"emc-sr-only\",children:botName})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"emc-thinking\",role:\"status\",\"aria-label\":`${botName} is thinking`,children:[/*#__PURE__*/_jsx(\"span\",{}),/*#__PURE__*/_jsx(\"span\",{}),/*#__PURE__*/_jsx(\"span\",{})]})]}),error&&/*#__PURE__*/_jsxs(\"div\",{className:\"emc-error\",role:\"alert\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"emc-error-text\",children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Well, that's awkward\"}),/*#__PURE__*/_jsx(\"span\",{children:error})]}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:retry,children:\"Try again\"})]})]})]})})}),/*#__PURE__*/_jsx(\"div\",{className:\"emc-dock\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"emc-dock-inner\",style:columnStyle,children:[showJump&&!isEmpty&&/*#__PURE__*/_jsx(\"button\",{className:\"emc-jump\",type:\"button\",onClick:jumpToLatest,\"aria-label\":\"Scroll to latest message\",children:/*#__PURE__*/_jsx(ArrowDownIcon,{})}),/*#__PURE__*/_jsxs(\"form\",{className:\"emc-composer\",style:{borderRadius:`${composerRadius}px`},onSubmit:e=>{e.preventDefault();send(input);},children:[/*#__PURE__*/_jsxs(\"label\",{className:\"emc-sr-only\",htmlFor:\"emc-input\",children:[\"Message \",botName]}),/*#__PURE__*/_jsx(\"textarea\",{id:\"emc-input\",className:\"emc-input\",ref:composerRef,rows:1,value:input,maxLength:MAX_INPUT_CHARS,placeholder:isEmpty?\"Say hi, or ask anything…\":`Ask ${botName} about Manas…`,onChange:e=>setInput(e.target.value),onKeyDown:handleKeyDown}),isBusy?/*#__PURE__*/_jsx(\"button\",{className:\"emc-send is-stop\",type:\"button\",onClick:stop,\"aria-label\":\"Stop generating\",children:/*#__PURE__*/_jsx(StopIcon,{})}):/*#__PURE__*/_jsx(\"button\",{className:\"emc-send\",type:\"submit\",disabled:!input.trim(),\"aria-label\":\"Send message\",children:/*#__PURE__*/_jsx(ArrowUpIcon,{})})]})]})})]});}// Em's geometry on a 20×20 grid: a rounded hexagon head and two pill eyes.\nconst FACE_HEAD=\"M 9.5 0.289 C 9.809 0.11 10.191 0.11 10.5 0.289 C 12.029 1.171 16.631 3.828 18.16 4.711 C 18.47 4.89 18.66 5.22 18.66 5.577 C 18.66 7.343 18.66 12.657 18.66 14.422 C 18.66 14.78 18.47 15.11 18.16 15.289 C 16.631 16.172 12.029 18.828 10.5 19.711 C 10.191 19.89 9.809 19.89 9.5 19.711 C 7.971 18.828 3.369 16.172 1.84 15.289 C 1.53 15.11 1.34 14.78 1.34 14.423 C 1.34 12.657 1.34 7.343 1.34 5.577 C 1.34 5.22 1.53 4.89 1.84 4.711 C 3.369 3.829 7.971 1.171 9.5 0.289 Z\";const FACE_EYES=[{x:6,lean:1},{x:11,lean:-1}];// Per mood: eye lean (deg, tops toward each other), openness, ms between blinks.\nconst FACE_POSE={idle:{lean:8,open:1,blinkGap:[2e3,4200]},excited:{lean:6,open:1.12,blinkGap:[2400,4500]},thinking:{lean:0,open:.78,blinkGap:[3800,6500]},writing:{lean:0,open:.72,blinkGap:[2400,4200]}};const FACE_CENTER={x:0,y:0,lift:0};const FACE_GLANCES=[{x:-1.7,y:0,lift:0},{x:1.7,y:0,lift:0},{x:-1.3,y:-1.1,lift:0},{x:1.3,y:-1.1,lift:0},{x:0,y:-1.2,lift:0}];// Eyes squashed and leaning hard read as ^ ^, a smile.\nconst FACE_HAPPY={x:0,y:-.5,lift:0,open:.4,lean:26};// The whole face: y lifts it (a hop), tilt cocks it (deg).\nconst FACE_REST={y:0,tilt:0};const faceSpring={type:\"spring\",stiffness:300,damping:24};const faceBounce={type:\"spring\",stiffness:520,damping:14};const rand=(min,max)=>min+Math.random()*(max-min);const pick=items=>items[Math.floor(Math.random()*items.length)];/**\n * Em's face, with moods. Kept in step with EmFace.tsx, the canvas playground\n * for them. `still` holds the idle pose without motion, so only the live Em in\n * a thread moves. `close` swings the eyes into an ✕, for the chat button. The hover perk-up is CSS (.emc-face-perk), so still faces\n * get it too.\n */function EmFace({size=20,mood=\"idle\",still=false,close=false}){const isStatic=useIsStaticRenderer();const reduceMotion=useReducedMotion();const ref=React.useRef(null);const inView=useInView(ref);const alive=!still&&!close&&inView&&!isStatic&&!reduceMotion;const[look,setLook]=React.useState(FACE_CENTER);const[body,setBody]=React.useState(FACE_REST);const[blink,setBlink]=React.useState(false);const[turns,setTurns]=React.useState(0);React.useEffect(()=>{setLook(mood===\"thinking\"?{x:-1.3,y:-1.3,lift:.6}:FACE_CENTER);setBody(FACE_REST);if(!alive)return;const timers=new Set;const later=(fn,ms)=>{const id=window.setTimeout(()=>{timers.delete(id);fn();},ms);timers.add(id);};const hop=(height=1.8)=>{setBody({y:-height,tilt:0});later(()=>setBody(FACE_REST),170);};// Blink now and then; one in five is a double blink.\nconst blinkLoop=()=>later(()=>{setBlink(true);later(()=>setBlink(false),110);if(Math.random()<.2){later(()=>setBlink(true),260);later(()=>setBlink(false),370);}blinkLoop();},rand(...FACE_POSE[mood].blinkGap));blinkLoop();if(mood===\"idle\"){// Glance somewhere and come back, sometimes cocking the head\n// toward it.\nconst glance=()=>later(()=>{const to=pick(FACE_GLANCES);setLook(to);if(to.x!==0&&Math.random()<.4){setBody({y:0,tilt:to.x>0?6:-6});}later(()=>{setLook(FACE_CENTER);setBody(FACE_REST);},rand(600,1100));glance();},rand(2200,4200));glance();}if(mood===\"excited\"){// Something new every few seconds, never the same move twice\n// running: a smile with a double hop (also the hello), a happy\n// wiggle, a peek to the side, a wide-eyed look up.\nconst cheer=()=>{setLook(FACE_HAPPY);hop();later(()=>hop(1.2),360);later(()=>setLook(FACE_CENTER),1e3);};const wiggle=()=>{setLook(FACE_HAPPY);const tilts=[-10,10,-7,7,0];tilts.forEach((tilt,i)=>later(()=>setBody({y:0,tilt}),i*150));later(()=>setLook(FACE_CENTER),800);};const peek=()=>{const to=pick(FACE_GLANCES.filter(g=>g.x!==0));setLook(to);setBody({y:0,tilt:to.x>0?7:-7});later(()=>{setLook(FACE_CENTER);setBody(FACE_REST);},900);};const wonder=()=>{setLook({x:0,y:-1.4,lift:0,open:1.25,lean:0});setBody({y:-.6,tilt:0});later(()=>{setLook(FACE_CENTER);setBody(FACE_REST);},900);};const moves=[cheer,wiggle,peek,wonder];let last=cheer;later(cheer,250);const loop=()=>later(()=>{const next=pick(moves.filter(m=>m!==last));next();last=next;loop();},rand(2200,3600));loop();}if(mood===\"thinking\"){// Look up to one side, then the other, the head clicking round a\n// sixth each time (a hexagon lands back on its own shape).\nlet side=1;const ponder=()=>later(()=>{setLook({x:1.3*side,y:-1.3,lift:side<0?.6:0});setTurns(t=>t+1);side=-side;ponder();},1100);ponder();}if(mood===\"writing\"){// Eyes down in a busy squint, darting along a line; at the end,\n// a little nod down to the next one.\nlet step=0;const write=()=>{const col=step%5;setLook({x:-1.6+col*.8,y:1+rand(-.25,.25),lift:0,open:rand(.6,.8)});if(col===4){later(()=>setBody({y:.6,tilt:0}),300);later(()=>setBody(FACE_REST),480);}step++;later(write,col===4?560:300);};write();}return()=>{timers.forEach(id=>window.clearTimeout(id));// A blink cut off mid-way would leave the eyes shut.\nsetBlink(false);};},[mood,alive]);const pose=FACE_POSE[mood];const busy=close||mood===\"thinking\"||mood===\"writing\";// Idle breathes: a slow, slight rise and fall.\nconst breathing=alive&&mood===\"idle\";return /*#__PURE__*/_jsx(\"svg\",{ref:ref,className:busy?\"emc-face is-busy\":\"emc-face\",width:size,height:size,viewBox:\"0 0 20 20\",fill:\"none\",\"aria-hidden\":\"true\",focusable:\"false\",children:/*#__PURE__*/_jsx(motion.g,{initial:false,animate:{y:breathing?[0,-.45,0]:0},transition:breathing?{duration:2.8,repeat:Infinity,ease:\"easeInOut\"}:faceSpring,children:/*#__PURE__*/_jsxs(motion.g,{initial:false,animate:{y:body.y,rotate:body.tilt},transition:faceBounce,children:[/*#__PURE__*/_jsx(motion.g,{initial:false,animate:{rotate:turns*60},transition:{type:\"spring\",stiffness:180,damping:14},children:/*#__PURE__*/_jsx(\"path\",{d:FACE_HEAD,fill:T.accent})}),/*#__PURE__*/_jsx(motion.g,{initial:false,animate:{x:look.x,y:look.y},transition:faceSpring,children:FACE_EYES.map(eye=>// Lean outside, blink inside, so a blink closes\n    // along the eye rather than skewing it.\n    /*#__PURE__*/_jsx(motion.g,{initial:false,animate:close?{rotate:eye.lean*45,x:eye.lean*2.5,y:-1}:{rotate:eye.lean*(look.lean??pose.lean),x:0,y:eye.lean>0?-look.lift:0},transition:faceSpring,children:/*#__PURE__*/_jsx(\"g\",{className:\"emc-face-perk\",children:/*#__PURE__*/_jsx(motion.rect,{x:eye.x,y:8.5,width:3,height:5,rx:1.5,fill:T.accentSoft,initial:false,animate:close?{scaleX:.75,scaleY:1.44}:{scaleX:1,scaleY:blink?.12:look.open??pose.open},transition:{duration:blink?.06:.14,ease:\"easeOut\"}})})},eye.x))})]})})});}// --- Time --------------------------------------------------------------------\n/**\n * Renders a message's clock time in the reader's own locale. Uses a <time>\n * element with a machine-readable datetime, and the full date/time in the title\n * so hovering tells you the day too.\n */function Time({at}){const date=new Date(at);const label=date.toLocaleTimeString([],{hour:\"2-digit\",minute:\"2-digit\"});return /*#__PURE__*/_jsx(\"time\",{className:\"emc-time\",dateTime:date.toISOString(),title:date.toLocaleString(),children:label});}// --- Icons -------------------------------------------------------------------\nfunction ArrowDownIcon(){return /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 20 20\",width:\"16\",height:\"16\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M10 4v11m0 0 4.5-4.5M10 15l-4.5-4.5\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.8\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});}function ArrowUpIcon(){return /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 20 20\",width:\"18\",height:\"18\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M10 16V5m0 0 4.5 4.5M10 5 5.5 9.5\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.8\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});}function ArrowRightIcon(){return /*#__PURE__*/_jsx(\"svg\",{className:\"emc-card-arrow\",viewBox:\"0 0 20 20\",width:\"18\",height:\"18\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M4 10h11m0 0-4.5-4.5M15 10l-4.5 4.5\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.8\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});}function CalendarIcon(){return /*#__PURE__*/_jsxs(\"svg\",{className:\"emc-card-icon\",viewBox:\"0 0 20 20\",width:\"20\",height:\"20\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"rect\",{x:\"3\",y:\"4.5\",width:\"14\",height:\"12\",rx:\"1.5\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.6\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M3 8.5h14M7 3v3M13 3v3\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.6\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"10\",cy:\"12.5\",r:\"1.4\",fill:\"currentColor\"})]});}function SparkleIcon(){return /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 20 20\",width:\"13\",height:\"13\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M10 3.5c.4 3.4 2.9 5.9 6.3 6.5-3.4.6-5.9 3.1-6.3 6.5-.4-3.4-2.9-5.9-6.3-6.5 3.4-.6 5.9-3.1 6.3-6.5Z\",fill:\"currentColor\"})});}function StopIcon(){return /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 20 20\",width:\"18\",height:\"18\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"rect\",{x:\"6\",y:\"6\",width:\"8\",height:\"8\",rx:\"1.5\",fill:\"currentColor\"})});}function CloseIcon(){return /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 20 20\",width:\"15\",height:\"15\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M6 6l8 8M14 6l-8 8\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.6\",strokeLinecap:\"round\"})});}function PlusIcon(){return /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 20 20\",width:\"15\",height:\"15\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M10 5v10M5 10h10\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.6\",strokeLinecap:\"round\"})});}function CopyIcon(){return /*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 20 20\",width:\"14\",height:\"14\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"rect\",{x:\"7\",y:\"7\",width:\"8.5\",height:\"8.5\",rx:\"2\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.4\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M13 4.5H6.5A2 2 0 0 0 4.5 6.5V13\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.4\",strokeLinecap:\"round\"})]});}function CheckIcon(){return /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 20 20\",width:\"14\",height:\"14\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M4.5 10.5l3.5 3.5 7-7.5\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.7\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});}// --- Markdown ----------------------------------------------------------------\n// Small, dependency-free renderer for what Em actually sends back: headings,\n// bullet and numbered lists, paragraphs, bold, italic, inline code and links.\nfunction Markdown({text}){const blocks=React.useMemo(()=>parseBlocks(text||\"\"),[text]);return /*#__PURE__*/_jsx(_Fragment,{children:blocks});}/**\n * Tidies a reply that's only partly typed out, so half-written markdown never\n * flashes as raw symbols: a link shows as plain text until it's complete, and\n * bold, italic or code still open on the current line gets closed early.\n */function settlePartial(text){let out=text// Never cut an emoji in half.\n.replace(/[\\uD800-\\uDBFF]$/,\"\").replace(/\\[([^\\]\\n]*)(\\](\\([^)\\n]*)?)?$/,\"$1\")// Markers mid-typing: a trailing * or `, or a bare list/heading marker.\n.replace(/[*`]+$/,\"\").replace(/(^|\\n)\\s*(#{1,3}|[-*]|\\d+[.)]?)\\s*$/,\"$1\");const line=out.slice(out.lastIndexOf(\"\\n\")+1).replace(/^\\s*[-*]\\s+/,\"\");const count=(s,re)=>(s.match(re)||[]).length;if(count(line,/`/g)%2)out+=\"`\";if(count(line.replace(/\\*\\*/g,\"\"),/\\*/g)%2)out+=\"*\";if(count(line,/\\*\\*/g)%2)out+=\"**\";return out;}function parseBlocks(source){const lines=source.replace(/\\r\\n/g,\"\\n\").split(\"\\n\");const blocks=[];let i=0;// Link cards: drawn after the block their link is in. `carded` holds the\n// hrefs that got one, so inline() prints their words as plain text.\nconst shown=new Set;const carded=new Set;const cardsFor=text=>{const cards=[];const links=/\\[([^\\]]+)\\]\\(([^)]+)\\)/g;let link;while((link=links.exec(text))!==null){const card=siteCard(link[2],link[1]);if(!card)continue;if(!shown.has(card.href)){if(shown.size>=MAX_CARDS)continue;shown.add(card.href);cards.push(/*#__PURE__*/_jsx(LinkCard,{card:card},`card-${card.href}`));}carded.add(link[2]);}return cards;};while(i<lines.length){const line=lines[i];if(!line.trim()){i++;continue;}const heading=line.match(/^\\s*(#{1,3})\\s+(.+)$/);if(heading){const level=heading[1].length;const cards=cardsFor(heading[2]);blocks.push(/*#__PURE__*/_jsx(\"div\",{className:`emc-md-h emc-md-h${level}`,children:inline(heading[2],`h-${i}`,carded)},`h-${i}`),...cards);i++;continue;}if(/^\\s*[-*]\\s+/.test(line)){const items=[];while(i<lines.length&&/^\\s*[-*]\\s+/.test(lines[i])){items.push(lines[i].replace(/^\\s*[-*]\\s+/,\"\"));i++;}const cards=cardsFor(items.join(\"\\n\"));blocks.push(/*#__PURE__*/_jsx(\"ul\",{className:\"emc-md-list\",children:items.map((item,idx)=>/*#__PURE__*/_jsx(\"li\",{children:inline(item,`ul-${i}-${idx}`,carded)},idx))},`ul-${i}`),...cards);continue;}if(/^\\s*\\d+[.)]\\s+/.test(line)){const items=[];while(i<lines.length&&/^\\s*\\d+[.)]\\s+/.test(lines[i])){items.push(lines[i].replace(/^\\s*\\d+[.)]\\s+/,\"\"));i++;}const cards=cardsFor(items.join(\"\\n\"));blocks.push(/*#__PURE__*/_jsx(\"ol\",{className:\"emc-md-list\",children:items.map((item,idx)=>/*#__PURE__*/_jsx(\"li\",{children:inline(item,`ol-${i}-${idx}`,carded)},idx))},`ol-${i}`),...cards);continue;}// Paragraph: gather until a blank line or the start of another block.\nconst paragraph=[];while(i<lines.length&&lines[i].trim()&&!/^\\s*(#{1,3}\\s|[-*]\\s|\\d+[.)]\\s)/.test(lines[i])){paragraph.push(lines[i].trim());i++;}const text=paragraph.join(\" \");const cards=cardsFor(text);blocks.push(/*#__PURE__*/_jsx(\"p\",{className:\"emc-md-p\",children:inline(text,`p-${i}`,carded)},`p-${i}`),...cards);}return blocks;}/**\n * Bold, italic, inline code and links inside one line of text. Links in\n * `carded` already have a card, so only their words are printed.\n */function inline(text,keyPrefix,carded){const pattern=/(\\[[^\\]]+\\]\\([^)]+\\))|(\\*\\*[^*]+\\*\\*)|(\\*[^*]+\\*)|(`[^`]+`)|(https?:\\/\\/[^\\s)]+)/g;const out=[];let last=0;let match;let n=0;while((match=pattern.exec(text))!==null){if(match.index>last)out.push(text.slice(last,match.index));const token=match[0];const key=`${keyPrefix}-${n++}`;if(token.startsWith(\"[\")){const link=token.match(/^\\[([^\\]]+)\\]\\(([^)]+)\\)$/);if(link&&carded?.has(link[2])){out.push(link[1]);}else if(link){out.push(/*#__PURE__*/_jsx(\"a\",{className:\"emc-md-a\",href:link[2],children:link[1]},key));}else{out.push(token);}}else if(token.startsWith(\"**\")){out.push(/*#__PURE__*/_jsx(\"strong\",{children:token.slice(2,-2)},key));}else if(token.startsWith(\"`\")){out.push(/*#__PURE__*/_jsx(\"code\",{className:\"emc-md-code\",children:token.slice(1,-1)},key));}else if(token.startsWith(\"*\")){out.push(/*#__PURE__*/_jsx(\"em\",{children:token.slice(1,-1)},key));}else{out.push(/*#__PURE__*/_jsx(\"a\",{className:\"emc-md-a\",href:token,children:token.replace(/^https?:\\/\\//,\"\")},key));}last=match.index+token.length;}if(last<text.length)out.push(text.slice(last));return out;}/**\n * The card for a link, or null to leave it as a normal link. Links to Manas's\n * own site get one, worded from SITE_PAGES or, for anything else (articles),\n * from Em's own link text; so does his booking page.\n */function siteCard(href,text){let url;try{url=new URL(href,`https://${SITE_HOSTS[1]}`);}catch{return null;}if(url.protocol!==\"https:\"&&url.protocol!==\"http:\")return null;if(url.hostname===BOOKING_HOST)return{href:url.href,kind:\"booking\",...BOOKING_CARD};if(!SITE_HOSTS.includes(url.hostname))return null;const path=pagePath(url);const known=SITE_PAGES[path+url.hash]||SITE_PAGES[path];if(known)return{href:url.href,kind:\"page\",...known};const words=text.replace(/[*`]/g,\"\").trim();const article=path.startsWith(\"/blog/\");return{href:url.href,title:words.charAt(0).toUpperCase()+words.slice(1),where:article?\"Article\":`${SITE_HOSTS[0]}${path}`,kind:article?\"article\":\"page\"};}function LinkCard({card}){const{onOpen,onSummarize,busy,asked}=React.useContext(CardContext);const canSummarize=card.kind===\"article\"&&!asked.has(pagePath(new URL(card.href)));const booking=card.kind===\"booking\";return /*#__PURE__*/_jsxs(\"div\",{className:\"emc-cardwrap\",children:[/*#__PURE__*/_jsxs(\"a\",{className:booking?\"emc-card is-booking\":\"emc-card\",href:card.href,...booking?{target:\"_blank\",rel:\"noopener noreferrer\"}:{onClick:()=>onOpen?.()},children:[booking&&/*#__PURE__*/_jsx(CalendarIcon,{}),/*#__PURE__*/_jsxs(\"span\",{className:\"emc-card-text\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"emc-card-title\",children:card.title}),/*#__PURE__*/_jsx(\"span\",{className:\"emc-card-where\",children:card.where})]}),/*#__PURE__*/_jsx(ArrowRightIcon,{})]}),canSummarize&&/*#__PURE__*/_jsxs(\"button\",{className:\"emc-card-action\",type:\"button\",disabled:busy,onClick:()=>onSummarize(card),\"aria-label\":`Summarize ${card.title}`,children:[/*#__PURE__*/_jsx(SparkleIcon,{}),\"Summarize\"]})]});}// --- Quote cards -------------------------------------------------------------\n// See HOW EM FITS TOGETHER → Quote cards. The drawing code below was built and\n// tuned in prototypes/cardlab (renderer.js); keep the two in step.\n/** Em's reply split around his card recipe: the words before it, and the card's state. */function splitCard(content){const at=content.indexOf(CARD_FENCE);if(at<0)return{text:content,block:null};const text=content.slice(0,at).trimEnd();const rest=content.slice(at+CARD_FENCE.length);const end=rest.indexOf(\"```\");if(end<0)return{text,block:{done:false}};return{text,block:{done:true,recipe:readRecipe(rest.slice(0,end))}};}/** The recipe, forgiving the small slips a model makes (curly quotes, trailing commas). */function readRecipe(raw){const tidied=raw.replace(/[“”]/g,'\"').replace(/,\\s*([}\\]])/g,\"$1\");for(const attempt of[raw,tidied]){try{const recipe=JSON.parse(attempt);if(recipe&&typeof recipe===\"object\"&&!Array.isArray(recipe))return recipe;}catch{/* try the tidied version */}}return null;}/** Mid-typing, a fence still arriving (\"\\n``\" or \"```ca\") mustn't flash on screen. */function hidePartialFence(text){return text.replace(/\\n*`{1,3}(c(a(r(d)?)?)?)?$/,\"\");}/** A steady number from a message id, so each card keeps its arrangement. */function seedFrom(id){let h=2166136261;for(let i=0;i<id.length;i++)h=Math.imul(h^id.charCodeAt(i),16777619);return h>>>0||1;}let quotesLoad=null;/** The quotes, fetched once when the first card shows. If that fails, the next card tries again. */function loadQuotes(base){if(!quotesLoad){quotesLoad=fetch(`${base}/api/quotes`).then(r=>r.ok?r.json():Promise.reject(new Error(`quotes: ${r.status}`))).then(d=>{const list=(Array.isArray(d?.quotes)?d.quotes:[]).filter(x=>Number.isInteger(x?.n)&&typeof x.q===\"string\"&&typeof x.a===\"string\");if(!list.length)throw new Error(\"quotes: empty\");return list;});quotesLoad.catch(()=>{quotesLoad=null;});}return quotesLoad;}// The quote's faces. track: letter-spacing in em; lh: line height.\nconst QUOTE_FONTS={Gloock:{stack:\"Gloock, Georgia, serif\",weights:[400],track:-.01,lh:1.1},Fraunces:{stack:\"Fraunces, Georgia, serif\",weights:[300,400,700],track:-.02,lh:1.08},\"DM Serif Display\":{stack:'\"DM Serif Display\", Georgia, serif',weights:[400],track:-.01,lh:1.06}};// The author line, always all caps in Syne; everything else in Host Grotesk, 2% tracking.\nconst AUTHOR_FONT={stack:\"Syne, system-ui, sans-serif\",weight:600,track:.1};const META_FONT={stack:\"'Host Grotesk', system-ui, sans-serif\",weight:500,track:.02};const CARD_FACES=[\"400 40px Gloock\",\"300 40px Fraunces\",\"400 40px Fraunces\",\"700 40px Fraunces\",'400 40px \"DM Serif Display\"',\"600 40px Syne\",\"500 40px 'Host Grotesk'\"];const SIZE_CAP={quiet:80,bold:118,huge:172}// px at 1080 wide\n;// Manas's mark: one stroked path in a 240 box; visible area incl. stroke ≈ x 4–236, y 50–200.\nconst LOGO_PATH=\"M12 60L46.4348 123.13M46.4348 123.13L66.4142 159.759C74.3384 174.287 63.8234 192 47.275 192C31.0684 192 20.5277 174.945 27.7755 160.449L46.4348 123.13ZM144 168L120.25 120.5L92.9443 65.8885C89.259 58.5181 78.741 58.518 75.0557 65.8885L46.4348 123.13M228 192L165.006 66.0129C161.31 58.6196 150.749 58.6488 147.093 66.0625L120.25 120.5\";const LOGO_RATIO=150/232;const rgbOf=h=>{const n=parseInt(h.slice(1),16);return[n>>16,n>>8&255,n&255];};const rgba=(h,a)=>`rgba(${rgbOf(h).join(\",\")},${a})`;const toHex=rgb=>\"#\"+rgb.map(v=>Math.round(Math.min(255,Math.max(0,v))).toString(16).padStart(2,\"0\")).join(\"\");const toLinear=v=>{v/=255;return v<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4);};const toSrgb=v=>255*(v<=.0031308?12.92*v:1.055*Math.pow(v,1/2.4)-.055);const relLum=(r,g,b)=>.2126*toLinear(r)+.7152*toLinear(g)+.0722*toLinear(b);const lum=h=>relLum(...rgbOf(h));const ratio=(a,b)=>(Math.max(a,b)+.05)/(Math.min(a,b)+.05);const mix=(h,target,t)=>{const a=rgbOf(h),b=rgbOf(target);return toHex(a.map((v,i)=>v+(b[i]-v)*t));};function toLab(h){const[r,g,b]=rgbOf(h).map(toLinear);const l=Math.cbrt(.4122214708*r+.5363325363*g+.0514459929*b);const m=Math.cbrt(.2119034982*r+.6806995451*g+.1073969566*b);const s=Math.cbrt(.0883024619*r+.2817188376*g+.6299787005*b);return[.2104542553*l+.793617785*m-.0040720468*s,1.9779984951*l-2.428592205*m+.4505937099*s,.0259040371*l+.7827717662*m-.808675766*s];}function fromLab([L,A,B]){const l=(L+.3963377774*A+.2158037573*B)**3;const m=(L-.1055613458*A-.0638541728*B)**3;const s=(L-.0894841775*A-1.291485548*B)**3;return toHex([4.0767416621*l-3.3077115913*m+.2309699292*s,-1.2684380046*l+2.6097574011*m-.3413193965*s,-.0041960863*l-.7034186147*m+1.707614701*s].map(toSrgb));}function labStops(grad,colors){const labs=colors.map(toLab);for(let i=0;i<labs.length-1;i++){for(let k=0;k<=10;k++){const t=k/10;const c=labs[i].map((v,j)=>v+(labs[i+1][j]-v)*t);grad.addColorStop((i+t)/(labs.length-1),fromLab(c));}}}/**\n * Every card needs real colour and a gradient you can see. A palette close to\n * grey, beige or white gets more colour in its most colourful stop (borrowing\n * the accent's hue if it has none); stops too alike get the last one moved\n * lighter or darker.\n */function strengthen(colors,accent){const labs=colors.map(toLab);const chroma=p=>Math.hypot(p[1],p[2]);const dist=(p,q)=>Math.hypot(p[0]-q[0],p[1]-q[1],p[2]-q[2]);let changed=false;const k=labs.reduce((best,p,i)=>chroma(p)>chroma(labs[best])?i:best,0);if(chroma(labs[k])<.08){let src=chroma(labs[k])>.012?labs[k]:toLab(accent);if(chroma(src)<.012)src=[0,.06,.05]// all grey: a warm default\n;const c=chroma(src),boost=.104;labs[k]=[Math.min(labs[k][0],.86),src[1]/c*boost,src[2]/c*boost];changed=true;}let spread=0;for(const p of labs)for(const q of labs)spread=Math.max(spread,dist(p,q));if(spread<.2){const first=labs[0],last=labs[labs.length-1];const dir=first[0]>.55?-1:1;for(let n=0;n<40&&dist(first,last)<.2;n++)last[0]=Math.min(.97,Math.max(.1,last[0]+dir*.012));changed=true;}return changed?labs.map(fromLab):colors;}/**\n * Any recipe in, a complete and safe one out: unknown values fall back to defaults.\n * Null when it names no quote on the list, since there'd be nothing to print.\n */function normalizeRecipe(r,quotes){const quote=quotes.find(x=>x.n===Number(r.quote));if(!quote)return null;const hex=v=>{if(typeof v!==\"string\")return null;const m=v.trim().match(/^#?([0-9a-f]{3}|[0-9a-f]{6})$/i);if(!m)return null;return\"#\"+(m[1].length===3?m[1].split(\"\").map(c=>c+c).join(\"\"):m[1]).toLowerCase();};const oneOf=(v,list,d)=>list.includes(v)?v:d;const num=(v,lo,hi,d)=>{const n=Number(v);return Number.isFinite(n)?Math.min(hi,Math.max(lo,n)):d;};const g=r.gradient||{};let stops=(Array.isArray(g.colors)?g.colors:[]).map(hex).filter(Boolean).slice(0,4);if(stops.length===0)stops=[\"#f1e6dc\",\"#d9c6e8\"];if(stops.length===1)stops.push(mix(stops[0],\"#ffffff\",.35));const avg=stops.reduce((s,c)=>s+lum(c),0)/stops.length;const c=r.colors||{};const ink=hex(c.ink)||(avg>.3?\"#171614\":\"#f6f3ee\");const accent=hex(c.accent)||ink;const t=r.type||{};const font=QUOTE_FONTS[t.font]?t.font:\"Fraunces\";const weights=QUOTE_FONTS[font].weights;const want=Number(t.weight)||weights[Math.min(1,weights.length-1)];const e=r.emphasis;return{quote:{q:quote.q,a:quote.a},for:typeof r.for===\"string\"?r.for.replace(RegExp(\"[^\\\\p{L}\\\\p{M} .'’-]\",\"gu\"),\"\").trim().slice(0,24):\"\",gradient:{style:oneOf(g.style,[\"linear\",\"radial\",\"mesh\"],\"mesh\"),colors:strengthen(stops,accent),angle:num(g.angle,0,360,160),x:num(g.x,-.5,1.5,.3),y:num(g.y,-.5,1.5,.2)},colors:{ink,accent,meta:hex(c.meta)||ink},type:{font,weight:weights.reduce((a,b)=>Math.abs(b-want)<Math.abs(a-want)?b:a),align:oneOf(t.align,[\"left\",\"center\",\"right\"],\"left\"),place:oneOf(t.place,[\"top\",\"middle\",\"bottom\"],\"middle\"),size:oneOf(t.size,[\"quiet\",\"bold\",\"huge\"],\"bold\")},emphasis:e&&typeof e.words===\"string\"?e.words.trim().slice(0,80):\"\",authorColor:oneOf(r.author?.color,[\"ink\",\"accent\"],\"ink\"),grain:num(r.grain,0,1,.35),signature:oneOf(r.signature,[\"left\",\"center\",\"right\"],\"left\")};}function rngFrom(seed){let a=seed>>>0;return()=>{a=a+1831565813|0;let t=Math.imul(a^a>>>15,1|a);t=t+Math.imul(t^t>>>7,61|t)^t;return((t^t>>>14)>>>0)/4294967296;};}let noiseTile=null;function drawGrain(ctx,W,H,u,amount){if(!noiseTile){noiseTile=document.createElement(\"canvas\");noiseTile.width=noiseTile.height=256;const x=noiseTile.getContext(\"2d\");if(!x)return;const img=x.createImageData(256,256),r=rngFrom(7);for(let i=0;i<img.data.length;i+=4){img.data[i]=img.data[i+1]=img.data[i+2]=r()*255;img.data[i+3]=255;}x.putImageData(img,0,0);}const p=ctx.createPattern(noiseTile,\"repeat\");if(!p)return;if(p.setTransform)p.setTransform(new DOMMatrix().scale(Math.max(u,.4)));ctx.save();ctx.globalCompositeOperation=\"overlay\";// A little grain always: it keeps smooth gradients from banding.\nctx.globalAlpha=.06+.3*amount;ctx.fillStyle=p;ctx.fillRect(0,0,W,H);ctx.restore();}function drawGradient(ctx,W,H,rec,r){const g=rec.gradient,cols=g.colors;if(g.style===\"linear\"){const a=g.angle*Math.PI/180;const dx=Math.sin(a),dy=-Math.cos(a)// CSS angles: 0 points up, 90 right\n;const half=(Math.abs(W*dx)+Math.abs(H*dy))/2;const lg=ctx.createLinearGradient(W/2-dx*half,H/2-dy*half,W/2+dx*half,H/2+dy*half);labStops(lg,cols);ctx.fillStyle=lg;ctx.fillRect(0,0,W,H);}else if(g.style===\"radial\"){const cx=g.x*W,cy=g.y*H;const far=Math.max(...[[0,0],[W,0],[0,H],[W,H]].map(([x,y])=>Math.hypot(x-cx,y-cy)));const rg=ctx.createRadialGradient(cx,cy,0,cx,cy,far);labStops(rg,cols);ctx.fillStyle=rg;ctx.fillRect(0,0,W,H);}else{// Mesh: the first colour is the base; each other colour is a large,\n// soft pool of light, placed by the seed.\nctx.fillStyle=cols[0];ctx.fillRect(0,0,W,H);const pools=cols.length===2?[cols[1],cols[1]]:cols.slice(1);const corners=[[.15,.15],[.85,.2],[.2,.85],[.85,.85]].sort(()=>r()-.5);pools.forEach((col,i)=>{const[bx,by]=corners[i%corners.length];const cx=(bx+(r()-.5)*.4)*W,cy=(by+(r()-.5)*.4)*H;const rad=Math.max(W,H)*(.55+r()*.3);const rg=ctx.createRadialGradient(cx,cy,0,cx,cy,rad);for(const[p,al]of[[0,1],[.2,.82],[.4,.55],[.6,.28],[.8,.08],[1,0]])rg.addColorStop(p,rgba(col,al));ctx.fillStyle=rg;ctx.fillRect(0,0,W,H);});}}/**\n * The closest colour to `color` that reads on what's actually behind `area`\n * (one box, or several that share the colour): nudged darker or lighter only\n * as much as needed. If nothing reaches `min`, the most readable option wins.\n */function inkFor(ctx,color,area,min){const cw=ctx.canvas.width,ch=ctx.canvas.height;const L=[];for(const box of Array.isArray(area)?area:[area]){const x=Math.max(0,Math.floor(box.x)),y=Math.max(0,Math.floor(box.y));const w=Math.max(1,Math.min(cw-x,Math.ceil(box.w))),h=Math.max(1,Math.min(ch-y,Math.ceil(box.h)));const data=ctx.getImageData(x,y,w,h).data;const step=Math.max(1,Math.floor(Math.sqrt(w*h/5e3)));for(let yy=0;yy<h;yy+=step)for(let xx=0;xx<w;xx+=step){const i=(yy*w+xx)*4;L.push(relLum(data[i],data[i+1],data[i+2]));}}L.sort((a,b)=>a-b);const lo=L[Math.floor(L.length*.05)],hi=L[Math.floor(L.length*.95)];const worst=c=>Math.min(ratio(lum(c),lo),ratio(lum(c),hi));if(worst(color)>=min)return color;let best=null,bestT=2,top=color,topScore=worst(color);for(const target of[\"#0b0b0b\",\"#ffffff\"]){for(let t=.1;t<=1.001;t+=.1){const c=mix(color,target,t),score=worst(c);if(score>topScore){top=c;topScore=score;}if(score>=min){if(t<bestT){bestT=t;best=c;}break;}}}return best||top;}/** The quote as words, with the emphasised ones marked and curly quotes added. */function quoteTokens(rec){const words=rec.quote.q.replace(/'/g,\"’\").split(/\\s+/);const em=words.map(()=>false);const norm=w=>w.toLowerCase().replace(RegExp(\"[^\\\\p{L}\\\\p{N}]\",\"gu\"),\"\");const target=rec.emphasis.replace(/'/g,\"’\").split(/\\s+/).map(norm).filter(Boolean);for(let i=0;target.length&&i+target.length<=words.length;i++){if(target.every((t,j)=>norm(words[i+j])===t)){for(let j=0;j<target.length;j++)em[i+j]=true;break;}}words[0]=\"“\"+words[0];words[words.length-1]+=\"”\";return words.map((text,i)=>({text,em:em[i],w:0}));}/** Biggest size that fits, then the narrowest measure that keeps the same line count (balanced lines). */function fitQuote(ctx,rec,toks,maxW,maxH,min,max){const F=QUOTE_FONTS[rec.type.font];const set=size=>{ctx.font=`${rec.type.weight} ${size}px ${F.stack}`;ctx.letterSpacing=`${F.track*size}px`;};const measure=size=>{set(size);for(const t of toks)t.w=ctx.measureText(t.text).width;return ctx.measureText(\" \").width;};const wrap=(space,width)=>{const lines=[];let cur=[],w=0;for(const t of toks){const add=cur.length?space+t.w:t.w;if(cur.length&&w+add>width){lines.push({toks:cur,w});cur=[t];w=t.w;}else{cur.push(t);w+=add;}}if(cur.length)lines.push({toks:cur,w});return lines;};let lo=min,hi=max,best=min;for(let i=0;i<16;i++){const s=(lo+hi)/2;const space=measure(s);const fits=toks.every(t=>t.w<=maxW)&&wrap(space,maxW).length*s*F.lh<=maxH;if(fits){best=s;lo=s;}else hi=s;}const size=Math.floor(best);const space=measure(size);let lines=wrap(space,maxW);for(let w=maxW*.97;lines.length>1&&w>maxW*.45;w*=.97){const next=wrap(space,w);if(next.length!==lines.length)break;lines=next;}return{size,lines,space,set,lineH:size*F.lh,height:lines.length*size*F.lh,width:Math.max(...lines.map(l=>l.w))};}/** \"21 Oct 2026, 9:42 PM\" in the visitor's own date style, always 12-hour; \"\" without a valid time. */function cardStamp(ms){if(typeof ms!==\"number\"||!Number.isFinite(ms))return\"\";try{return new Date(ms).toLocaleString(undefined,{day:\"numeric\",month:\"short\",year:\"numeric\",hour:\"numeric\",minute:\"2-digit\",hour12:true}).replace(/\\b([ap])\\.?\\s?m\\.?(?=\\s|$)/gi,(_,x)=>x.toUpperCase()+\"M\");}catch{return\"\";}}/**\n * Draws a card at W×H. `seed` sets the small random details, so a card\n * redraws the same in every size; `madeAt` is shown in the top right, and\n * left out if missing, like a missing name.\n */function drawCard(canvas,rec,W,H,seed,madeAt){canvas.width=W;canvas.height=H;const ctx=canvas.getContext(\"2d\",{willReadFrequently:true});if(!ctx)return;const u=W/1080;const pad=100*u;drawGradient(ctx,W,H,rec,rngFrom(seed));drawGrain(ctx,W,H,u,rec.grain);// The quote and author, inside the safe zone between the top and bottom edges.\nconst toks=quoteTokens(rec);// Clear space: 100px between the quote and the edge details; the quote group\n// fills at most FILL of the zone, so there's always air around it.\nconst zoneTop=192*u,zoneBottom=H-193*u;const FILL={quiet:.55,bold:.7,huge:.85};const room=(zoneBottom-zoneTop)*FILL[rec.type.size];const maxW=(W-pad*2)*(rec.type.size===\"quiet\"?.8:1);const authorSize=22*u;const capMax=SIZE_CAP[rec.type.size]*u;let f=fitQuote(ctx,rec,toks,maxW,room-authorSize-40*u,28*u,capMax);const gap=Math.min(56*u,Math.max(30*u,f.size*.45));f=fitQuote(ctx,rec,toks,maxW,room-authorSize-gap,28*u,capMax);const groupH=f.height+gap+authorSize;const place=rec.type.place,align=rec.type.align;const top=place===\"top\"?zoneTop:place===\"bottom\"?zoneBottom-groupH:zoneTop+(zoneBottom-zoneTop-groupH)/2;const left=align===\"left\"?pad:align===\"right\"?W-pad-f.width:(W-f.width)/2;const textBox={x:left-10*u,y:top,w:f.width+20*u,h:f.height};const ink=inkFor(ctx,rec.colors.ink,textBox,4);const em=rec.emphasis?inkFor(ctx,rec.colors.accent,textBox,3):ink;ctx.textAlign=\"left\";ctx.textBaseline=\"alphabetic\";f.set(f.size);f.lines.forEach((line,i)=>{let x=align===\"left\"?pad:align===\"right\"?W-pad-line.w:(W-line.w)/2;const base=top+i*f.lineH+(f.lineH-f.size)/2+f.size*.8;// Hanging quote marks, so the text edge stays straight.\nif(align===\"left\"&&i===0&&line.toks[0].text.startsWith(\"“\"))x-=ctx.measureText(\"“\").width;if(align===\"right\"&&i===f.lines.length-1&&line.toks[line.toks.length-1].text.endsWith(\"”\"))x+=ctx.measureText(\"”\").width;for(const t of line.toks){ctx.fillStyle=t.em?em:ink;ctx.fillText(t.text,x,base);x+=t.w+f.space;}});// Author: all caps, in Syne.\nctx.font=`${AUTHOR_FONT.weight} ${authorSize}px ${AUTHOR_FONT.stack}`;ctx.letterSpacing=`${AUTHOR_FONT.track*authorSize}px`;const name=\"— \"+rec.quote.a.toUpperCase();const aw=ctx.measureText(name).width;const ax=align===\"left\"?pad:align===\"right\"?W-pad-aw:(W-aw)/2;const ay=top+f.height+gap;ctx.fillStyle=inkFor(ctx,rec.colors[rec.authorColor],{x:ax,y:ay,w:aw,h:authorSize},4.5);ctx.fillText(name,ax,ay+authorSize*.8);// Edge details, in Host Grotesk: \"For {name}\" top left, when it was made top right,\n// the signature (mark | manasmano.com) along the bottom. One meta colour for all\n// three, checked across them at once; 3:1 is enough for these quiet details.\nconst metaBase=92*u,metaSize=20*u;const stamp=cardStamp(madeAt),forTxt=rec.for?`For ${rec.for}`:\"\";ctx.font=`${META_FONT.weight} ${metaSize}px ${META_FONT.stack}`;ctx.letterSpacing=`${META_FONT.track*metaSize}px`;const sw=stamp?ctx.measureText(stamp).width:0,fw=forTxt?ctx.measureText(forTxt).width:0;const size=22*u;ctx.font=`${META_FONT.weight} ${size}px ${META_FONT.stack}`;ctx.letterSpacing=`${META_FONT.track*size}px`;const site=\"manasmano.com\";const tw=ctx.measureText(site).width;const cap=size*.7,lh=size*.98,lw=lh/LOGO_RATIO;const sgap=14*u,rule=Math.max(1,1.5*u),ruleH=size*1.15;const total=lw+sgap+rule+sgap+tw;const sBase=H-78*u,mid=sBase-cap/2;const sx=rec.signature===\"left\"?pad:rec.signature===\"right\"?W-pad-total:(W-total)/2;const spots=[{x:sx-8*u,y:mid-ruleH,w:total+16*u,h:ruleH*2}];if(stamp)spots.push({x:W-pad-sw,y:metaBase-metaSize,w:sw,h:metaSize*1.2});if(forTxt)spots.push({x:pad,y:metaBase-metaSize,w:fw,h:metaSize*1.2});const sColor=inkFor(ctx,rec.colors.meta,spots,3);ctx.fillStyle=sColor;ctx.font=`${META_FONT.weight} ${metaSize}px ${META_FONT.stack}`;ctx.letterSpacing=`${META_FONT.track*metaSize}px`;if(stamp)ctx.fillText(stamp,W-pad-sw,metaBase);if(forTxt)ctx.fillText(forTxt,pad,metaBase);ctx.font=`${META_FONT.weight} ${size}px ${META_FONT.stack}`;ctx.letterSpacing=`${META_FONT.track*size}px`;ctx.save();// The mark's loop sits low, so it's lifted a touch to look centred.\nctx.translate(sx,mid-lh/2-.6*u);ctx.scale(lw/232,lw/232);ctx.translate(-4,-50);ctx.strokeStyle=sColor;ctx.lineWidth=17;ctx.lineCap=\"round\";ctx.lineJoin=\"round\";ctx.stroke(new Path2D(LOGO_PATH));ctx.restore();ctx.fillStyle=sColor;ctx.fillRect(sx+lw+sgap,mid-ruleH/2,rule,ruleH);ctx.fillText(site,sx+lw+sgap+rule+sgap,sBase);}/** The card fonts come from Google Fonts, loaded the first time a card shows. */let cardFonts=null;function loadCardFonts(){if(cardFonts)return cardFonts;cardFonts=new Promise(resolve=>{const ready=()=>Promise.all(CARD_FACES.map(f=>document.fonts.load(f,\"“Aa”\"))).then(()=>resolve(),()=>resolve());let link=document.getElementById(\"emq-fonts\");if(!link){link=document.createElement(\"link\");link.id=\"emq-fonts\";link.rel=\"stylesheet\";link.href=CARD_FONTS_URL;document.head.appendChild(link);}link.addEventListener(\"load\",ready);link.addEventListener(\"error\",()=>resolve());if(link.sheet)ready();// Never hold a card back for slow fonts: it draws with fallbacks.\nwindow.setTimeout(resolve,5e3);});return cardFonts;}/**\n * A quote card in Em's reply: a placeholder while he designs, then the card\n * with its size control and Save card. A card that just arrived stays in\n * \"designing\" for at least CARD_MIN_DESIGN_MS, so both status lines show.\n */function QuoteCard({recipe,pending,fresh,seed,madeAt,backendUrl,onDesigning}){const[held,setHeld]=React.useState(fresh);const[picking,setPicking]=React.useState(fresh);const[fontsReady,setFontsReady]=React.useState(false);const[sizeId,setSizeId]=React.useState(CARD_SIZES[0].id);const canvasRef=React.useRef(null);const size=CARD_SIZES.find(s=>s.id===sizeId)||CARD_SIZES[0];const[quotes,setQuotes]=React.useState(null);const[quotesFailed,setQuotesFailed]=React.useState(false);const rec=React.useMemo(()=>recipe&&quotes?normalizeRecipe(recipe,quotes):null,[recipe,quotes]);// Jammed: the recipe didn't parse, names no quote on the list, or the list wouldn't load.\nconst broken=!pending&&(!recipe||quotesFailed||!!quotes&&!rec);const designing=!broken&&(!rec||held||!fontsReady);React.useEffect(()=>{let live=true;loadCardFonts().then(()=>live&&setFontsReady(true));loadQuotes(backendUrl).then(q=>live&&setQuotes(q),()=>live&&setQuotesFailed(true));if(!fresh)return()=>void(live=false);const a=window.setTimeout(()=>setPicking(false),CARD_PICK_MS);const b=window.setTimeout(()=>setHeld(false),CARD_MIN_DESIGN_MS);return()=>{live=false;window.clearTimeout(a);window.clearTimeout(b);};},[]);const onDesigningRef=React.useRef(onDesigning);onDesigningRef.current=onDesigning;React.useEffect(()=>{onDesigningRef.current(designing);},[designing]);React.useEffect(()=>()=>onDesigningRef.current(false),[]);// The preview is drawn at half the saved size: sharp on retina, light to draw.\nReact.useEffect(()=>{if(!designing&&rec&&canvasRef.current)drawCard(canvasRef.current,rec,size.W/2,size.H/2,seed,madeAt);},[designing,rec,size,seed,madeAt]);const save=()=>{if(!rec)return;const full=document.createElement(\"canvas\");drawCard(full,rec,size.W,size.H,seed,madeAt);full.toBlob(blob=>{if(!blob)return;const a=document.createElement(\"a\");a.href=URL.createObjectURL(blob);// \"for-priya-from-Em.png\", or \"a-post-card-from-Em.png\" without a name.\nconst name=rec.for.toLowerCase().replace(RegExp(\"[^\\\\p{L}\\\\p{N}]+\",\"gu\"),\"-\").replace(/^-+|-+$/g,\"\");a.download=name?`for-${name}-from-Em.png`:`a-${size.id}-card-from-Em.png`;document.body.appendChild(a);a.click();a.remove();window.setTimeout(()=>URL.revokeObjectURL(a.href),2e3);},\"image/png\");};if(broken){return /*#__PURE__*/_jsx(\"p\",{className:\"emq-broken\",children:\"That card jammed in the press. Ask me for another?\"});}if(designing||!rec){// Keyed apart from the finished card, so the card fades in fresh.\nreturn /*#__PURE__*/_jsx(\"div\",{className:\"emq\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"emq-pending\",role:\"status\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"emq-status\",\"data-hidden\":!picking||undefined,children:\"Handpicking one of Manas's favourite quotes…\"}),/*#__PURE__*/_jsx(\"span\",{className:\"emq-status\",\"data-hidden\":picking||undefined,children:\"Crafting your card…\"})]})},\"pending\");}return /*#__PURE__*/_jsxs(\"div\",{className:\"emq\",children:[/*#__PURE__*/_jsx(\"canvas\",{ref:canvasRef,className:\"emq-canvas\",role:\"img\",\"aria-label\":`Quote card: “${rec.quote.q}” — ${rec.quote.a}`}),/*#__PURE__*/_jsxs(\"div\",{className:\"emq-bar\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"emq-sizes\",role:\"group\",\"aria-label\":\"Card size\",children:CARD_SIZES.map(s=>/*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:\"emq-size\",\"aria-pressed\":s.id===size.id,onClick:()=>setSizeId(s.id),children:[/*#__PURE__*/_jsx(\"svg\",{width:\"12\",height:\"14\",viewBox:\"0 0 12 14\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"rect\",{x:(12-s.icon[0])/2,y:(14-s.icon[1])/2,width:s.icon[0],height:s.icon[1],rx:\"1\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.4\"})}),s.label]},s.id))}),/*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:\"emq-save\",onClick:save,children:[/*#__PURE__*/_jsx(SaveIcon,{}),\"Save card\"]})]})]},\"card\");}function SaveIcon(){return /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 16 16\",width:\"13\",height:\"13\",fill:\"none\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M8 2.5v7.5M4.5 6.8 8 10.3l3.5-3.5M3 13h10\",stroke:\"currentColor\",strokeWidth:\"1.6\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});}// --- Styles ------------------------------------------------------------------\n// Everything responsive keys off @container, not @media: media queries measure\n// the browser window, which is wrong inside Framer's canvas and preview frames.\nconst CSS=`\n.emc-sr-only {\n    position: absolute; width: 1px; height: 1px;\n    padding: 0; margin: -1px; overflow: hidden;\n    clip: rect(0 0 0 0); white-space: nowrap; border: 0;\n}\n\n/* ---------- New chat (sticky, top of the thread) ---------- */\n.emc-utility {\n    position: sticky; top: 0; z-index: 3;\n    display: flex; justify-content: flex-end;\n    /* Solid canvas so replies scroll cleanly underneath it. */\n    background: ${T.canvas};\n    padding-bottom: 10px; margin-bottom: -14px;\n}\n.emc-newchat {\n    display: inline-flex; align-items: center; gap: 6px;\n    font-family: ${FONT_BODY}; font-size: 12.5px; line-height: 1.4;\n    color: ${T.tertiary}; background: ${T.surface};\n    border: 1px solid ${T.border}; border-radius: 2px;\n    padding: 5px 10px; cursor: pointer;\n    transition: color .18s ease, background-color .18s ease, border-color .18s ease;\n}\n.emc-newchat:hover { color: ${T.primary}; background: ${T.sunken}; }\n\n/* ---------- Scroll area ---------- */\n.emc-scroll {\n    flex: 1 1 auto; min-height: 0;\n    overflow-y: auto; overflow-x: hidden;\n    display: flex; flex-direction: column;\n    scrollbar-width: thin;\n    scrollbar-color: ${T.border} transparent;\n    overscroll-behavior: contain;\n}\n.emc-scroll::-webkit-scrollbar { width: 10px; }\n.emc-scroll::-webkit-scrollbar-track { background: transparent; }\n.emc-scroll::-webkit-scrollbar-thumb {\n    background: ${T.border}; border-radius: 99px;\n    border: 3px solid transparent; background-clip: content-box;\n}\n.emc-column { padding: 32px 24px 8px; }\n\n/* ---------- Thread ---------- */\n.emc-thread { display: flex; flex-direction: column; gap: 28px; }\n\n/* Em's welcome, drawn as a greeting. Title, then text, fade up in turn. */\n.emc-hero { padding: 8px 0 4px; }\n.emc-hero-face {\n    display: inline-flex; margin-bottom: 20px;\n    /* Hover target is the face itself, not the whole greeting. */\n    width: 44px; height: 44px;\n}\n.emc-hero-title {\n    margin: 0 0 12px;\n    font-family: ${FONT_HEADING}; font-weight: 700;\n    font-size: clamp(30px, 5.2cqi, 48px); line-height: 1.2;\n    letter-spacing: -0.01em; color: ${T.primary};\n    animation: emc-in .35s ease both;\n}\n.emc-hero-sub {\n    margin: 0; max-width: 34em;\n    font-family: ${FONT_BODY}; font-weight: 400;\n    font-size: clamp(15px, 1.9cqi, 18px); line-height: 1.5;\n    color: ${T.secondary};\n    animation: emc-in .35s ease .12s both;\n}\n@keyframes emc-in {\n    from { opacity: 0; transform: translateY(6px); }\n    to   { opacity: 1; transform: none; }\n}\n.emc-user-row { display: flex; justify-content: flex-end; animation: emc-in .22s ease both; }\n.emc-user-bubble {\n    max-width: 84%;\n    padding: 12px 16px;\n    background: ${T.accentSoft}; color: ${T.primary};\n    font-family: ${FONT_BODY}; font-size: 16px; line-height: 1.5;\n    white-space: pre-wrap; word-break: break-word;\n}\n.emc-reply { animation: emc-in .22s ease both; }\n.emc-reply-label {\n    display: flex; align-items: center;\n    height: 24px; margin-bottom: 10px;\n}\n\n/* ---------- Em's face ---------- */\n/* Pointing at an idle Em perks it up: eyes widen and lift a touch. Busy faces\n   (thinking, writing) are already expressive, so they ignore hover. */\n.emc-face { display: block; overflow: visible; }\n.emc-face-perk {\n    transform-box: fill-box; transform-origin: center;\n    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);\n}\n.emc-hero-face:hover .emc-face:not(.is-busy) .emc-face-perk,\n.emc-reply:hover .emc-face:not(.is-busy) .emc-face-perk {\n    transform: translateY(-0.5px) scaleY(1.15);\n}\n.emc-reply-body {\n    font-family: ${FONT_BODY}; font-size: 16px; line-height: 1.62;\n    color: ${T.primary}; word-break: break-word;\n}\n.emc-caret {\n    display: inline-block; width: 2px; height: 1.05em;\n    margin-left: 2px; vertical-align: text-bottom;\n    background: ${T.accent}; animation: emc-blink 1s step-end infinite;\n}\n@keyframes emc-blink { 50% { opacity: 0; } }\n/* While typing, the last paragraph runs inline so the caret follows the text. */\n.emc-reply-body > .emc-md-p:has(+ .emc-caret) { display: inline; }\n\n/* Timestamp row under Em's replies (user questions carry no time).\n   Always visible; the copy button inside it fades in on hover. */\n.emc-meta {\n    display: flex; align-items: center; gap: 10px;\n    margin-top: 8px; min-height: 22px;\n}\n.emc-time {\n    font-family: ${FONT_BODY}; font-size: 11px; line-height: 1;\n    color: ${T.tertiary};\n    /* Equal-width digits so the time doesn't jitter between messages. */\n    font-variant-numeric: tabular-nums;\n}\n.emc-copy { opacity: 0; pointer-events: none; transition: opacity .18s ease, color .18s ease, background-color .18s ease; }\n.emc-reply:hover .emc-copy,\n.emc-reply:focus-within .emc-copy { opacity: 1; pointer-events: auto; }\n/* Touch devices have no hover, so the button would never appear. */\n@media (hover: none) {\n    .emc-copy { opacity: 1; pointer-events: auto; }\n}\n.emc-copy {\n    display: inline-flex; align-items: center; gap: 5px;\n    font-family: ${FONT_BODY}; font-size: 12px;\n    color: ${T.tertiary}; background: transparent;\n    border: 1px solid ${T.border}; border-radius: 2px;\n    padding: 4px 9px; cursor: pointer;\n}\n.emc-copy:hover { color: ${T.primary}; background: ${T.sunken}; }\n\n/* ---------- Thinking ---------- */\n/* Face and dots share one row: the pondering face carries the motion, so the\n   dots only breathe in opacity rather than bouncing against it. */\n.emc-thinking-row {\n    display: flex; align-items: center; gap: 12px;\n}\n.emc-thinking-row .emc-reply-label { margin-bottom: 0; }\n.emc-thinking { display: inline-flex; align-items: center; gap: 5px; height: 24px; }\n.emc-thinking span {\n    width: 5px; height: 5px; border-radius: 50%;\n    background: ${T.tertiary}; animation: emc-breathe 1.5s ease-in-out infinite;\n}\n.emc-thinking span:nth-child(2) { animation-delay: .2s; }\n.emc-thinking span:nth-child(3) { animation-delay: .4s; }\n@keyframes emc-breathe {\n    0%, 100% { opacity: .22; }\n    50% { opacity: .8; }\n}\n\n/* ---------- Error ---------- */\n.emc-error {\n    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;\n    padding: 12px 14px; border-radius: 2px;\n    background: ${T.surface}; border: 1px solid ${T.border};\n    font-family: ${FONT_BODY}; font-size: 14px; line-height: 1.45;\n    color: ${T.secondary};\n}\n.emc-error-text {\n    display: flex; flex-direction: column; gap: 3px;\n    flex: 1 1 auto; min-width: 0;\n}\n.emc-error-text strong { color: ${T.primary}; font-size: 14.5px; }\n.emc-error button {\n    font-family: ${FONT_BODY}; font-size: 13px; font-weight: 600;\n    color: ${T.accentOn}; background: ${T.accent};\n    border: none; border-radius: 2px; padding: 6px 12px; cursor: pointer;\n    transition: background-color .18s ease;\n}\n.emc-error button:hover { background: ${T.accentHover}; }\n\n/* ---------- Dock ---------- */\n.emc-dock {\n    flex: 0 0 auto;\n    background: ${T.canvas};\n    border-top: 1px solid ${T.border};\n    z-index: 2;\n}\n.emc-dock-inner {\n    position: relative;\n    padding: 14px 24px calc(14px + env(safe-area-inset-bottom));\n    display: flex; flex-direction: column; gap: 10px;\n}\n\n/* Floats just above the composer, centred on the reading column. */\n.emc-jump {\n    position: absolute; bottom: 100%; left: 50%;\n    transform: translateX(-50%);\n    margin-bottom: 14px;\n    width: 34px; height: 34px; border-radius: 50%;\n    display: inline-flex; align-items: center; justify-content: center;\n    background: ${T.elevated}; color: ${T.secondary};\n    border: 1px solid ${T.border};\n    box-shadow: 0 3px 10px ${T.shadow};\n    cursor: pointer; z-index: 4;\n    animation: emc-jump-in .2s ease both;\n    transition: color .18s ease, background-color .18s ease;\n}\n.emc-jump:hover { color: ${T.primary}; background: ${T.sunken}; }\n@keyframes emc-jump-in {\n    from { opacity: 0; transform: translateX(-50%) translateY(6px); }\n    to   { opacity: 1; transform: translateX(-50%) translateY(0); }\n}\n.emc-composer {\n    display: flex; align-items: flex-end; gap: 8px;\n    padding: 8px 8px 8px 14px;\n    background: ${T.elevated};\n    border: 1px solid ${T.border};\n    box-shadow: 0 1px 2px ${T.shadow};\n    transition: border-color .18s ease, box-shadow .18s ease;\n}\n.emc-composer:focus-within {\n    border-color: ${T.accent};\n    box-shadow: 0 0 0 3px ${T.accentSoft};\n}\n.emc-input {\n    flex: 1 1 auto; min-width: 0;\n    border: none; outline: none; resize: none; background: transparent;\n    font-family: ${FONT_BODY}; font-size: 16px; line-height: 1.5;\n    color: ${T.primary};\n    padding: 8px 0; max-height: ${MAX_COMPOSER_HEIGHT}px;\n    scrollbar-width: thin;\n}\n.emc-input::placeholder { color: ${T.tertiary}; }\n.emc-send {\n    flex: 0 0 auto;\n    width: 36px; height: 36px; border-radius: 2px;\n    display: inline-flex; align-items: center; justify-content: center;\n    border: none; cursor: pointer;\n    background: ${T.accent}; color: ${T.accentOn};\n    transition: background-color .18s ease, opacity .18s ease, transform .18s ease;\n}\n.emc-send:hover:not(:disabled) { background: ${T.accentHover}; transform: translateY(-1px); }\n.emc-send:disabled {\n    background: ${T.sunken}; color: ${T.tertiary};\n    cursor: default; transform: none;\n}\n.emc-send.is-stop { background: ${T.primary}; color: ${T.canvas}; }\n\n/* ---------- Focus visibility ---------- */\n.emc-newchat:focus-visible, .emc-jump:focus-visible,\n.emc-copy:focus-visible, .emc-send:focus-visible, .emc-error button:focus-visible {\n    outline: 2px solid ${T.accent}; outline-offset: 2px;\n}\n\n/* ---------- Markdown ---------- */\n.emc-md-p { margin: 0 0 .85em; }\n.emc-md-p:last-child { margin-bottom: 0; }\n.emc-md-h {\n    font-family: ${FONT_HEADING}; font-weight: 600;\n    line-height: 1.3; color: ${T.primary};\n    margin: 1.1em 0 .45em;\n}\n.emc-md-h:first-child { margin-top: 0; }\n.emc-md-h1 { font-size: 1.28em; }\n.emc-md-h2 { font-size: 1.16em; }\n.emc-md-h3 { font-size: 1.06em; }\n.emc-md-list { margin: 0 0 .85em; padding-left: 1.3em; }\n.emc-md-list:last-child { margin-bottom: 0; }\n.emc-md-list li { margin: .3em 0; }\n.emc-md-list li::marker { color: ${T.tertiary}; }\n.emc-md-a {\n    color: ${T.accent};\n    text-decoration: underline;\n    text-decoration-thickness: 1px;\n    text-underline-offset: 2px;\n    transition: color .18s ease;\n}\n.emc-md-a:hover { color: ${T.accentHover}; }\n/* ---------- Link cards ---------- */\n.emc-cardwrap { max-width: 460px; margin: 0 0 .85em; }\n.emc-cardwrap:last-child { margin-bottom: 0; }\n.emc-cardwrap:has(+ .emc-cardwrap) { margin-bottom: 8px; }\n.emc-card {\n    display: flex; align-items: center; gap: 14px;\n    padding: 12px 14px;\n    background: ${T.elevated}; color: ${T.primary};\n    border: 1px solid ${T.border}; border-radius: 2px;\n    text-decoration: none;\n    animation: emc-in .3s ease both;\n    transition: border-color .18s ease, background-color .18s ease;\n}\n.emc-card:hover { border-color: ${T.accent}; }\n.emc-card:focus-visible { outline: 2px solid ${T.accent}; outline-offset: 2px; }\n.emc-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.emc-card-title { font-size: 15px; font-weight: 600; line-height: 1.35; }\n.emc-card-where {\n    font-size: 12.5px; line-height: 1.4; color: ${T.secondary};\n    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;\n}\n.emc-card-arrow { flex: none; color: ${T.secondary}; transition: transform .2s ease, color .18s ease; }\n.emc-card:hover .emc-card-arrow { transform: translateX(3px); color: ${T.accent}; }\n/* The meeting card: the one call to action, so it carries the accent. Its\n   arrow points out of the page, since it opens in a new tab. */\n.emc-card.is-booking { border-color: ${T.accent}; }\n.emc-card.is-booking:hover { background: ${T.accentSoft}; }\n.emc-card-icon { flex: none; color: ${T.accent}; }\n.is-booking .emc-card-arrow { transform: rotate(-45deg); }\n.emc-card.is-booking:hover .emc-card-arrow { transform: rotate(-45deg) translateX(3px); }\n/* Summarize, under an article card. Matches the Copy button's quiet style. */\n.emc-card-action {\n    display: inline-flex; align-items: center; gap: 6px;\n    margin-top: 6px; padding: 4px 9px;\n    font-family: ${FONT_BODY}; font-size: 12px; line-height: 1.4;\n    color: ${T.secondary}; background: transparent;\n    border: 1px solid ${T.border}; border-radius: 2px;\n    cursor: pointer;\n    animation: emc-in .3s ease both;\n    transition: color .18s ease, background-color .18s ease, border-color .18s ease;\n}\n.emc-card-action svg { color: ${T.accent}; }\n.emc-card-action:hover:not(:disabled) { color: ${T.primary}; background: ${T.sunken}; }\n.emc-card-action:disabled { opacity: .45; cursor: default; }\n.emc-card-action:focus-visible { outline: 2px solid ${T.accent}; outline-offset: 2px; }\n\n/* ---------- Quote cards ---------- */\n/* A size container, so the card can be as tall as the column is wide (cqi). */\n.emq { container-type: inline-size; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 4px; animation: emc-in .3s ease both; }\n/* One height for every size (440px, 380 in the panel); only the width changes.\n   Square is the widest, so capping the height at the column width keeps it in. */\n.emq-canvas, .emq-pending { height: min(440px, 100cqi); }\n.emq-canvas {\n    display: block; width: auto;\n    border-radius: 2px;\n    box-shadow: 0 1px 2px rgba(32, 24, 15, .08), 0 12px 32px -14px rgba(32, 24, 15, .35);\n}\n/* Size and Save card sit left-aligned, so neither moves when the card changes shape. */\n.emq-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }\n/* Segmented control: a sunken track; the chosen size is a raised segment. */\n.emq-sizes { display: inline-flex; gap: 2px; padding: 2px; background: ${T.sunken}; border-radius: 2px; }\n.emq-size {\n    display: inline-flex; align-items: center; gap: 5px;\n    padding: 3px 9px;\n    font-family: ${FONT_BODY}; font-size: 12px; font-weight: 500; line-height: 1.4;\n    color: ${T.secondary}; background: transparent;\n    border: 1px solid transparent; border-radius: 2px; cursor: pointer;\n    transition: color .18s ease, background-color .18s ease, border-color .18s ease;\n}\n.emq-size:hover { color: ${T.primary}; }\n.emq-size[aria-pressed=\"true\"] { color: ${T.primary}; background: ${T.elevated}; border-color: ${T.border}; }\n.emq-size svg { color: ${T.accent}; }\n/* Save card: the same quiet style as Summarize (.emc-card-action). */\n.emq-save {\n    display: inline-flex; align-items: center; gap: 6px;\n    padding: 4px 9px;\n    font-family: ${FONT_BODY}; font-size: 12px; line-height: 1.4;\n    color: ${T.secondary}; background: transparent;\n    border: 1px solid ${T.border}; border-radius: 2px; cursor: pointer;\n    transition: color .18s ease, background-color .18s ease, border-color .18s ease;\n}\n.emq-save svg { color: ${T.accent}; }\n.emq-save:hover { color: ${T.primary}; background: ${T.sunken}; }\n.emq-size:focus-visible, .emq-save:focus-visible { outline: 2px solid ${T.accent}; outline-offset: 2px; }\n/* While Em designs: a surface-coloured placeholder the shape of a Post, its status in the middle. */\n.emq-pending {\n    position: relative; overflow: hidden;\n    display: grid; place-items: center;\n    box-sizing: border-box; width: auto; aspect-ratio: 4 / 5; padding: 24px;\n    background: ${T.surface}; border-radius: 2px; text-align: center;\n}\n/* The sheen goes from fully off one side to fully off the other, then rests, so the loop never jumps. */\n.emq-pending::before {\n    content: \"\"; position: absolute; top: 0; bottom: 0; left: 0; width: 70%;\n    background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 100%);\n    transform: translateX(-100%);\n    animation: emq-sheen 2.6s cubic-bezier(.45, 0, .55, 1) infinite;\n}\n@keyframes emq-sheen { 0% { transform: translateX(-100%); } 70%, 100% { transform: translateX(145%); } }\n.emq-status {\n    grid-area: 1 / 1; position: relative;\n    font-family: ${FONT_BODY}; font-size: 13px; line-height: 1.4; color: ${T.secondary};\n    transition: opacity .35s ease;\n}\n.emq-status[data-hidden] { opacity: 0; }\n.emq-broken { margin: 4px 0 0; font-size: 13px; color: ${T.secondary}; font-style: italic; }\n\n.emc-md-code {\n    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n    font-size: .88em;\n    background: ${T.sunken}; color: ${T.primary};\n    padding: .12em .4em; border-radius: 2px;\n}\n\n/* ---------- Responsive: keyed off the frame width, not the window ---------- */\n@container (max-width: 760px) {\n    .emc-column { padding: 24px 16px 8px; }\n    .emc-dock-inner { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }\n    .emc-user-bubble { max-width: 90%; }\n    .emc-thread { gap: 24px; }\n}\n@container (max-width: 560px) {\n    /* Note: .emc-input stays at 16px — iOS zooms the page on focus below that. */\n    .emc-user-bubble, .emc-reply-body { font-size: 15px; }\n}\n/* ---------- Panel layout ----------\n   Matches the old side panel: smaller type for a ~400px card, a header bar,\n   the surface colour. The extra .is-panel class outranks the @container rules\n   above, so the panel keeps these sizes at any width. */\n.is-panel .emc-header {\n    flex: 0 0 auto;\n    display: flex; align-items: center; justify-content: flex-end; gap: 6px;\n    padding: 10px 12px;\n    /* Clears the notch when the panel is full-screen on a phone. */\n    padding-top: calc(10px + env(safe-area-inset-top));\n    background: ${T.elevated};\n    border-bottom: 1px solid ${T.border};\n}\n.is-panel .emc-newchat, .is-panel .emc-iconbtn {\n    display: inline-flex; align-items: center; gap: 5px;\n    font-family: ${FONT_BODY}; font-size: 11px; line-height: 1.4;\n    color: ${T.tertiary}; background: ${T.surface};\n    border: 1px solid ${T.border}; border-radius: 2px;\n    padding: 4px 8px; cursor: pointer;\n    transition: color .18s ease, background-color .18s ease, opacity .18s ease;\n}\n.is-panel .emc-iconbtn { padding: 5px; }\n.is-panel .emc-newchat:hover:not(:disabled), .is-panel .emc-iconbtn:hover {\n    color: ${T.primary}; background: ${T.sunken};\n}\n.is-panel .emc-newchat:disabled { opacity: .4; cursor: default; pointer-events: none; }\n.is-panel .emc-iconbtn:focus-visible { outline: 2px solid ${T.accent}; outline-offset: 2px; }\n/* New chat lives in the header, so the in-thread one steps aside. */\n.is-panel .emc-utility { display: none; }\n\n.is-panel .emc-column { padding: 20px; }\n.is-panel .emc-hero { padding: 4px 0; }\n.is-panel .emc-hero-face { width: 32px; height: 32px; margin-bottom: 14px; }\n.is-panel .emc-hero-title { font-size: 22px; line-height: 1.25; margin-bottom: 8px; }\n.is-panel .emc-hero-sub { font-size: 13.5px; }\n.is-panel .emc-thread { gap: 22px; }\n.is-panel .emc-user-bubble {\n    max-width: 88%; padding: 10px 13px;\n    font-size: 13.5px; line-height: 1.5;\n}\n.is-panel .emc-reply-label { height: 20px; margin-bottom: 8px; }\n.is-panel .emc-reply-label .emc-face { width: 20px; height: 20px; }\n.is-panel .emc-reply-body { font-size: 13.5px; }\n.is-panel .emc-cardwrap { max-width: none; }\n.is-panel .emc-card { gap: 12px; padding: 10px 12px; }\n.is-panel .emc-card-action { font-size: 11px; padding: 3px 7px; gap: 5px; }\n.is-panel .emc-card-title { font-size: 13.5px; }\n.is-panel .emc-card-where { font-size: 11.5px; }\n.is-panel .emc-meta { gap: 9px; margin-top: 7px; min-height: 20px; }\n.is-panel .emc-time { font-size: 10px; }\n.is-panel .emq-canvas, .is-panel .emq-pending { height: min(380px, 100cqi); }\n/* The panel is already surface-coloured, so the placeholder steps up to elevated. */\n.is-panel .emq-pending { background: ${T.elevated}; }\n.is-panel .emq-size { font-size: 11px; padding: 2px 7px; gap: 4px; }\n.is-panel .emq-save { font-size: 11px; padding: 3px 7px; gap: 5px; }\n.is-panel .emq-status { font-size: 12px; }\n.is-panel .emc-copy { gap: 4px; font-size: 11px; padding: 3px 7px; }\n.is-panel .emc-thinking-row { gap: 10px; }\n.is-panel .emc-thinking { gap: 4px; height: 20px; }\n.is-panel .emc-thinking span { width: 4.5px; height: 4.5px; }\n.is-panel .emc-error { gap: 10px; padding: 10px 12px; border-radius: 2px; font-size: 12px; }\n.is-panel .emc-error-text strong { font-size: 12.5px; }\n.is-panel .emc-error button { font-size: 11.5px; padding: 5px 10px; }\n\n.is-panel .emc-dock { background: ${T.surface}; }\n.is-panel .emc-dock-inner { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }\n.is-panel .emc-jump { width: 30px; height: 30px; margin-bottom: 10px; }\n.is-panel .emc-composer { gap: 6px; padding: 6px 6px 6px 12px; box-shadow: none; }\n.is-panel .emc-composer:focus-within { box-shadow: 0 0 0 3px ${T.accentSoft}; }\n.is-panel .emc-input { font-size: 13.5px; line-height: 1.45; min-height: 30px; padding: 5px 0; }\n.is-panel .emc-send { width: 30px; height: 30px; border-radius: 2px; }\n.is-panel .emc-send:hover:not(:disabled) { transform: none; }\n/* 16px on phones: iOS zooms the page on focus for any smaller field. */\n@media (max-width: 600px) {\n    .is-panel .emc-input { font-size: 16px; }\n}\n\n/* ---------- Reduced motion ---------- */\n@media (prefers-reduced-motion: reduce) {\n    .emc-user-row, .emc-reply, .emc-hero-title, .emc-hero-sub { animation: none; }\n    .emc-caret { animation: none; }\n    .emc-thinking span { animation: none; opacity: .5; }\n    .emc-send:hover:not(:disabled) { transform: none; }\n    .emc-jump { animation: none; }\n    .emc-card, .emc-card-action { animation: none; }\n    .emq { animation: none; }\n    .emq-pending::before { animation: none; opacity: 0; }\n    .emc-card:hover .emc-card-arrow { transform: none; }\n    .is-booking .emc-card-arrow, .emc-card.is-booking:hover .emc-card-arrow { transform: rotate(-45deg); }\n    .emc-face-perk { transition: none; transform: none !important; }\n}\n`;// --- Property controls -------------------------------------------------------\naddPropertyControls(Em,{botName:{type:ControlType.String,title:\"Bot Name\",defaultValue:\"Em\"},welcomeTitle:{type:ControlType.String,title:\"Welcome Title\",defaultValue:DEFAULT_WELCOME_TITLE,description:\"{hello} becomes Good morning/afternoon/evening for the visitor.\"},welcomeText:{type:ControlType.String,title:\"Welcome Text\",displayTextArea:true,defaultValue:DEFAULT_WELCOME_TEXT,description:\"Under the title. Both are sent to Em as his opening message.\"},contentMaxWidth:{type:ControlType.Number,title:\"Column\",unit:\"px\",min:520,max:1e3,step:10,defaultValue:720},bubbleRadius:{type:ControlType.Number,title:\"Bubble Radius\",unit:\"px\",min:0,max:28,step:1,defaultValue:12},composerRadius:{type:ControlType.Number,title:\"Composer Radius\",unit:\"px\",min:0,max:32,step:1,defaultValue:16},backendUrl:{type:ControlType.String,title:\"Backend URL\",defaultValue:BACKEND_BASE_URL,description:\"Chat API base URL. `/api/v2/chat` is appended automatically.\"},layout:{type:ControlType.Enum,title:\"Layout\",options:[\"page\",\"panel\"],optionTitles:[\"Page\",\"Panel\"],defaultValue:\"page\",displaySegmentedControl:true,description:\"Panel: smaller type, a header bar with New chat, and the panel's colours.\"},showClose:{type:ControlType.Boolean,title:\"Show Close\",defaultValue:false,hidden:props=>props.layout!==\"panel\",description:\"A close button in the header. For the panel's full-screen phone variant.\"},onClose:{type:ControlType.EventHandler,title:\"On Close\"},autoFocus:{type:ControlType.Boolean,title:\"Auto Focus\",defaultValue:true,description:\"Focus the message box, and greet, when this turns on. In the panel: on in Open, off in Closed.\"},lockScroll:{type:ControlType.Boolean,title:\"Lock Page Scroll\",defaultValue:false,description:\"Stops the page behind from scrolling. Turn on for the panel's full-screen phone variant.\"},onAsk:{type:ControlType.EventHandler,title:\"On Ask\"}});Em.displayName=\"Em\";\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Em\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerDisableUnlink\":\"\",\"framerIntrinsicWidth\":\"1200\",\"framerIntrinsicHeight\":\"800\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Em.map"],"mappings":"mUAyF6Q,SAAS,GAAY,EAAK,CAAoK,OAAhK,IAAO,KAAW,YAAe,GAAM,GAAG,EAAK,GAAS,gBAAmB,GAAM,IAAI,EAAK,GAAS,kBAAqB,GAAM,IAAI,EAAK,GAAS,gBAAsB,iBAAkB,CAYhe,SAAS,EAAW,EAAG,CAAC,GAAG,CAAC,EAAG,MAAO,GAAM,IAAM,EAAO,EAAG,gBAAgB,GAAG,OAAO,GAAS,WAAW,OAAO,EAAO,KAAK,CAAE,EAAE,IAAM,EAAK,EAAG,sBAAsB,EAAE,OAAO,EAAK,MAAM,GAAG,EAAK,OAAO,CAAE,CAA4L,SAAS,IAAiB,CAAC,GAAG,CAAC,IAAM,EAAO,IAAI,gBAAgB,EAAO,SAAS,MAAM,EAAM,EAAK,EAAO,IAAI,KAAK,GAAG,EAAO,IAAI,YAAY,GAAG,GAAG,GAAG,CAAC,GAAM,SAAS,SAAS,CAAC,IAAM,EAAK,IAAI,IAAI,SAAS,QAAQ,CAAC,CAAC,SAAa,EAAW,SAAS,CAAI,IAAE,EAAK,EAAK,QAAQ,SAAS,EAAE,EAAE,CAAC,EAAK,EAAK,QAAQ,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,EAAK,GAAK,EAAO,eAAe,QAAQ,GAAU,CAAI,CAAE,MAAM,CAAqD,CAAC,CAA4F,SAAS,GAAW,CAAC,IAAM,EAAM,CAAC,UAAU,IAAI,KAAK,CAAA,CAAE,eAAe,QAAQ,CAAC,QAAQ,QAAQ,MAAM,QAAQ,IAAI,UAAU,KAAK,UAAU,KAAK,UAAU,OA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