PageSourceSearch

https://smry.ai/_next/static/chunks/00--01u4huhj_.js?dpl=5cb6504fd3cb

js smry.ai collected 2026-09-24 10:06:30 UTC 29,131 bytes, 7 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||"01a0d2c8-6b7d-0000-f70a-d8c4c3e4bcf2";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="09f94ab2-2367-56dc-950e-106fa28bec97")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,422488,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(174080),i=e.i(269999);let s=()=>()=>{};e.s(["ConfigureHandoffCover",0,function({label:e}){return(0,n.useSyncExternalStore)(s,()=>"u">typeof document,()=>!1)?(0,r.createPortal)((0,t.jsx)("div",{className:"fixed inset-0 z-[1000] flex items-center justify-center bg-background text-foreground",role:"status","aria-live":"polite",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 text-sm text-muted-foreground",children:[(0,t.jsx)(i.Ring,{"aria-hidden":"true",className:"size-4"}),(0,t.jsx)("span",{children:e})]})}),document.body):null}])},685904,110031,407294,e=>{"use strict";var t=e.i(843476);let n=(0,e.i(475254).default)("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);e.s(["SquarePen",0,n],110031);var r=e.i(613176),i=e.i(792855),s=e.i(371532),a=e.i(155146),l=e.i(523478),o=e.i(200093);function c(){return(0,t.jsx)("section",{"aria-busy":"true","aria-label":"Preparing Remy",className:"flex min-h-0 flex-1 flex-col overflow-x-clip overflow-y-auto px-4 py-8","data-local-chat-entry-surface":!0,"data-local-chat-loading-surface":!0,children:(0,t.jsxs)("div",{className:"mx-auto my-auto w-full max-w-[42.5rem] [--duration:2.2s]",children:[(0,t.jsxs)("div",{"aria-hidden":"true",className:"mb-5 px-3 text-center",children:[(0,t.jsx)("div",{className:"mx-auto mb-3 grid size-10 place-items-center rounded-xl bg-card shadow-hairline",children:(0,t.jsx)(o.RemyIcon,{className:"size-5 text-foreground"})}),(0,t.jsx)(l.LoadingSkeleton,{className:"mx-auto h-8 w-full max-w-[21rem] bg-muted/45"}),(0,t.jsx)(l.LoadingSkeleton,{className:"mx-auto mt-2 h-5 w-full max-w-[24rem] bg-muted/35",delay:90})]}),(0,t.jsxs)("div",{"aria-hidden":"true",className:"h-[7.5rem] rounded-[14px] bg-card p-3 shadow-hairline",children:[(0,t.jsx)(l.LoadingSkeleton,{className:"h-5 w-28 bg-muted/40",delay:160}),(0,t.jsxs)("div",{className:"mt-10 flex items-center justify-between",children:[(0,t.jsx)(l.LoadingSkeleton,{className:"h-5 w-20 bg-muted/35",delay:230}),(0,t.jsx)(l.LoadingSkeleton,{className:"size-9 rounded-[10px] bg-muted/45",delay:300})]})]}),(0,t.jsx)("div",{"aria-hidden":"true",className:"mt-5 grid gap-2 sm:grid-cols-2",children:["first","second","third","fourth"].map((e,n)=>(0,t.jsx)(l.LoadingSkeleton,{className:"h-10 rounded-[10px] bg-muted/35",delay:370+70*n},e))})]})})}e.s(["LocalArticleChatLoadingContent",0,function(){return(0,t.jsxs)("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col bg-transparent text-foreground max-md:max-w-[100dvw] max-md:overflow-x-clip max-md:[-webkit-tap-highlight-color:transparent] max-md:[touch-action:pan-y_pinch-zoom]",children:[(0,t.jsxs)("header",{className:"flex h-11 shrink-0 items-center gap-1.5 overflow-x-clip bg-background/95 px-3 backdrop-blur-sm max-md:h-14 max-md:gap-0 max-md:px-2 md:px-4",children:[(0,t.jsxs)("div",{className:"flex w-full min-w-0 items-center gap-0.5 md:hidden",children:[(0,t.jsx)(i.MobileCloseButton,{fallbackHref:"/home"}),(0,t.jsx)("div",{className:"min-w-0 flex-1"}),(0,t.jsx)("span",{"aria-hidden":"true",className:i.MOBILE_HEADER_ICON_BUTTON_CLASS,children:(0,t.jsx)(n,{className:"size-[21px]",strokeWidth:1.85})}),(0,t.jsx)("span",{"aria-hidden":"true",className:i.MOBILE_HEADER_ICON_BUTTON_CLASS,children:(0,t.jsx)("span",{className:"flex size-8 items-center justify-center rounded-full bg-muted/70",children:(0,t.jsx)(s.MoreHorizontal,{className:"size-[18px]",strokeWidth:2})})})]}),(0,t.jsx)("div",{className:"hidden items-center gap-1.5 md:flex",children:(0,t.jsx)(r.AppMenuButton,{surface:"chat"})})]}),(0,t.jsx)("main",{className:"relative flex min-h-0 min-w-0 flex-1 flex-col overflow-x-clip max-md:[touch-action:pan-y_pinch-zoom]",id:"main-content",tabIndex:-1,
1children:(0,t.jsx)(c,{})})]})},"LocalArticleChatShell",0,function({children:e}){return(0,t.jsx)(a.AppWorkbenchShell,{className:"max-md:overflow-x-clip max-md:[touch-action:pan-y_pinch-zoom]",contentProps:{"data-local-article-chat-shell":!0,className:"max-md:overflow-x-clip"},surface:"chat",workbenchProps:{"data-local-article-chat-workbench":!0,className:"max-md:overflow-x-clip"},children:e})}],685904);var u=e.i(271645),d=e.i(269999),m=e.i(647163),f=e.i(267732),h=e.i(728231);function p(e){return"query"in e}function g(e){return"url"in e}function x(e){return"dynamic-tool"===e.type?e.toolName??"":e.type.startsWith("tool-")?e.type.slice(5):""}function b(e){return e.output?.structuredContent??e.output}function y(e){return{url:e.url,title:e.title,domain:e.domain,snippet:e.description??"",publishedAt:e.publishedAt}}function v(e){return Array.from(new Map(e.map(e=>[e.url,e])).values())}function w(e){let t=b(e);return[...t?.webSources??[],...t?.searches?.flatMap(e=>e.sources)??[],...t?.pages?.map(y)??[],...t?.webPage?[y(t.webPage)]:[]]}function N(e){return"output-available"!==e.state&&"output-error"!==e.state}function j({className:e}){return(0,t.jsx)("span",{"aria-hidden":"true",className:(0,m.cn)("grid shrink-0 grid-cols-3 gap-[2px]",e),children:Array.from({length:9},(e,n)=>(0,t.jsx)("span",{className:"size-[3px] rounded-[1px] bg-current opacity-25 motion-safe:animate-pulse motion-reduce:opacity-40",style:{animationDelay:`${n%5*120}ms`}},n))})}function k({step:e,isLast:n,showAllResults:r,getSaveState:i,onSaveSource:a,saveLabels:l}){let[o,c]=(0,u.useState)(!0),d=r?e.sources:e.sources.slice(0,5),f=e.detail?.trim(),h=f?`${e.label} “${f}”`:e.label,p="search"===e.kind&&e.sources.length>0;return(0,t.jsxs)("div",{className:"group/research-step flex items-stretch",children:[(0,t.jsxs)("div",{className:"me-1.5 flex w-4 shrink-0 flex-col items-center",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"flex size-6 shrink-0 items-center justify-center text-muted-foreground/75 transition-colors group-hover/research-step:text-muted-foreground",children:e.failed?(0,t.jsx)(s.CircleAlert,{className:"size-3.5"}):e.icon}),n?null:(0,t.jsx)("span",{"aria-hidden":"true",className:"w-px flex-1 bg-border/60"})]}),(0,t.jsxs)("div",{className:(0,m.cn)("min-w-0 flex-1",!n&&"pb-2"),children:[p?(0,t.jsx)("button",{type:"button",onClick:()=>c(e=>!e),"aria-expanded":o,className:"-mx-1 flex min-h-6 w-[calc(100%+0.25rem)] min-w-0 items-center gap-2 rounded px-1 text-start text-[0.8125rem] leading-6 text-muted-foreground outline-none transition-colors duration-150 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring pointer-coarse:min-h-11",style:{touchAction:"manipulation"},children:(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",title:h,children:h})}):(0,t.jsxs)("div",{role:e.pending?"status":void 0,"aria-live":e.pending?"polite":void 0,"aria-atomic":e.pending?"true":void 0,className:"flex min-h-6 min-w-0 items-center gap-2 text-[0.8125rem] leading-6 text-muted-foreground",children:[(0,t.jsx)("span",{className:(0,m.cn)("min-w-0 flex-1 truncate",e.pending&&"shimmer"),title:h,children:h}),e.meta?(0,t.jsx)("span",{className:"shrink-0 pe-1 text-xs tabular-nums text-muted-foreground/75",children:e.meta}):null]}),p&&o?(0,t.jsxs)("div",{className:"max-w-[38.75rem] py-1",children:[(0,t.jsxs)("div",{className:"flex min-h-5 min-w-0 items-center gap-2 text-xs leading-5 text-muted-foreground/80",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",title:f,children:f??e.label}),(0,t.jsx)("span",{className:"shrink-0 pe-1 tabular-nums",children:e.meta})]}),(0,t.jsx)("div",{className:"my-1 overflow-hidden rounded-lg bg-background/40 shadow-hairline",children:d.map(e=>(0,t.jsx)(_,{source:e,getSaveState:i,onSaveSource:a,saveLabels:l},e.url))})]}):null]})]})}function S({label:e}){return(0,t.jsxs)("div",{className:"flex min-h-6 items-center gap-1.5 text-[0.8125rem] leading-6 text-muted-foreground",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"flex size-4 shrink-0 items-center justify-center",children:(0,t.jsx)(s.Check,{className:"size-3.5"})}),(0,t.jsx)("span",{children:e})]})}function C(e){try{return new URL(e).hostname.replace(/^www\d*\./,"")}catch{return e}}function R({domain:e}){let[n,r]=(0,u.useState)(!1);return n?(0,t.jsx)("span",{"aria-hidden":"true",className:"flex size-3 items-center justify-center rounded bg-muted text-[7px] font-medium uppercase text-muted-foreground",children:e.slice(0,1)}):(0,t.jsx)("img",{src:(0,f.getFaviconUrl)(e),alt:"","aria-hidden":"true",width:12,height:12,loading:"lazy",onError:()=>r(!0),className:"size-3 shrink-0 rounded bg-background object-contain"})}function _({source:e,getSaveState:n,onSaveSource:r,saveLabels:i}){let a=n?.(e),l=!!(a&&r&&i),o="saved"===a,c="saving"===a;return(0,t.jsxs)("div",{className:"group/source flex min-h-8 items-center gap-0.5 px-1 transition-colors duration-150 hover:bg-muted/45 focus-within:bg-muted/45 pointer-coarse:min-h-11",children:[(0,t.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"flex min-h-8 min-w-0 flex-1 items-center gap-2 rounded-md px-1.5 text-start focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring pointer-coarse:min-h-11",children:[(0,t.jsx)(R,{domain:e.domain}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-[0.8125rem] font-[425] leading-5 text-foreground
1/80",children:e.title}),(0,t.jsx)("bdi",{className:"hidden shrink-0 text-xs leading-5 text-muted-foreground/75 sm:inline",children:e.domain})]}),l?(0,t.jsxs)(h.Tooltip,{children:[(0,t.jsxs)(h.TooltipTrigger,{render:(0,t.jsx)("button",{type:"button",onClick:()=>void r?.(e),disabled:"idle"!==a,"aria-label":o?`${i?.savedInLibrary}: ${e.title}`:`${i?.saveToLibrary}: ${e.title}`,className:(0,m.cn)("inline-flex size-7 shrink-0 items-center justify-center rounded-md text-xs font-medium outline-none transition-[color,opacity,background-color] duration-150 focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-default pointer-coarse:size-11",o?"text-foreground/75":"text-muted-foreground enabled:hover:bg-background/80 enabled:hover:text-foreground",c?"opacity-100":"opacity-0 group-hover/source:opacity-100 group-focus-within/source:opacity-100","loading"===a&&"opacity-45")}),children:[c?(0,t.jsx)(d.Ring,{className:"size-3.5","aria-hidden":"true"}):o?(0,t.jsx)(s.Check,{className:"size-3.5","aria-hidden":"true"}):(0,t.jsx)(s.Bookmark,{className:"size-3.5","aria-hidden":"true"}),(0,t.jsx)("span",{className:"sr-only","aria-live":"polite",children:c?i?.saving:o?i?.saved:i?.save})]}),(0,t.jsx)(h.TooltipContent,{children:o?i?.savedInLibrary:i?.saveToLibrary})]}):null]})}e.s(["ChatLoader",0,function({label:e}){return(0,t.jsx)("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"flex min-h-8 items-center py-1",children:(0,t.jsx)("span",{className:"shimmer select-none text-sm font-medium leading-5",children:e})})},"ResearchActivity",0,function({parts:e,labels:n,sources:r,getSaveState:i,onSaveSource:a,saveLabels:l}){let o,c,d,[f,h]=(0,u.useState)(!1),[y,R]=(0,u.useState)(!1),_=(o=[],c=e.filter(e=>"search_web"===x(e)),(d=e.filter(e=>"open_web_pages"===x(e))).push(...e.filter(e=>"read_web_page"===x(e))),c.forEach((e,r)=>{let i=N(e),a=(e.input?.queries??(e.input?.query?[{query:e.input.query}]:[])).map(e=>e?.query?.trim()).filter(e=>!!e),l=b(e),c=l?.searches??(l?.webSources&&!l.error?[{query:l.query??e.input?.query??"",sources:l.webSources}]:[]),u=(l?.failures??[]).filter(p);if(i&&a.length>0)return void a.forEach((e,i)=>{o.push({key:`search-${r}-${i}`,kind:"search",icon:(0,t.jsx)(s.Globe,{className:"size-3.5"}),label:n.searching,detail:e,sources:[],pending:!0,failed:!1})});if(c.forEach((e,i)=>{let a=e.sources.length;o.push({key:`search-${r}-${i}`,kind:"search",icon:(0,t.jsx)(s.Globe,{className:"size-3.5"}),label:n.searched,detail:e.query.trim()||null,meta:`${a} ${1===a?n.result:n.results}`,sources:e.sources,pending:!1,failed:!1})}),u.forEach((e,i)=>{o.push({key:`search-${r}-failure-${i}`,kind:"search",icon:(0,t.jsx)(s.Globe,{className:"size-3.5"}),label:n.searchFailed,detail:e.query.trim(),sources:[],pending:!1,failed:!0})}),0===c.length&&0===u.length){let a=!!l?.error||"output-error"===e.state;o.push({key:`search-${r}`,kind:"search",icon:(0,t.jsx)(s.Globe,{className:"size-3.5"}),label:a?n.searchFailed:i?n.searching:n.searched,detail:e.input?.query?.trim()||l?.query?.trim()||null,sources:l?.webSources??[],pending:i,failed:a})}}),d.forEach((e,r)=>{let i=N(e),a=(e.input?.pages??(e.input?.url?[{url:e.input.url}]:[])).map(e=>e?.url?.trim()).filter(e=>!!e),l=b(e),c=l?.pages??(l?.webPage?[l.webPage]:[]),u=(l?.failures??[]).filter(g);if(i&&a.length>0)return void a.forEach((e,i)=>{o.push({key:`read-${r}-${i}`,kind:"page",icon:(0,t.jsx)(s.BookOpen,{className:"size-3.5"}),label:n.reading,detail:C(e),sources:[],pending:!0,failed:!1})});if(c.forEach((e,i)=>{o.push({key:`read-${r}-${i}`,kind:"page",icon:(0,t.jsx)(s.BookOpen,{className:"size-3.5"}),label:n.read,detail:e.title||e.domain,sources:[],pending:!1,failed:!1})}),u.forEach((e,i)=>{o.push({key:`read-${r}-failure-${i}`,kind:"page",icon:(0,t.jsx)(s.BookOpen,{className:"size-3.5"}),label:n.readFailed,detail:C(e.url),sources:[],pending:!1,failed:!0})}),0===c.length&&0===u.length){let a="output-available"===e.state&&!l?.error;o.push({key:`read-${r}`,kind:"page",icon:(0,t.jsx)(s.BookOpen,{className:"size-3.5"}),label:i?n.reading:a?n.read:n.readFailed,detail:null,sources:[],pending:i,failed:!i&&!a})}}),o);if(0===_.length)return null;let E=_.some(e=>e.pending),A=!E&&_.every(e=>e.failed),I=v(r??e.flatMap(w)),O=[..._].reverse().find(e=>e.pending),L=E?O?.label??n.searching:A?_.find(e=>e.failed)?.label??n.searchFailed:n.researched,P=new Set(_.flatMap(e=>e.sources.map(e=>e.url))),$=I.filter(e=>!P.has(e.url)),z=$.length>0?_.findIndex(e=>"search"===e.kind):-1,T=_.map((e,t)=>{let n=t===z?[...e.sources,...$]:e.sources;return{...e,sources:v(n)}}),U=T.reduce((e,t)=>
1e+Math.max(0,t.sources.length-5),0),M=!E&&!A;return(0,t.jsxs)("div",{className:"my-1 w-full",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>h(e=>!e),"aria-expanded":f,"aria-label":f?n.hideSteps:n.showSteps,className:(0,m.cn)("-mx-1 flex min-h-8 w-fit max-w-full min-w-0 items-center gap-2 rounded-md px-1 text-start text-sm leading-5 text-muted-foreground transition-colors duration-150 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring pointer-coarse:min-h-11",f&&"text-muted-foreground"),style:{touchAction:"manipulation"},children:[E?(0,t.jsx)(j,{className:"text-muted-foreground/50"}):A?(0,t.jsx)("span",{className:"flex size-[13px] shrink-0 items-center justify-center","aria-hidden":"true",children:(0,t.jsx)(s.CircleAlert,{className:"size-3.5"})}):null,(0,t.jsx)("span",{role:E?"status":void 0,"aria-live":E?"polite":void 0,className:(0,m.cn)("min-w-0 truncate",E&&"shimmer"),children:L})]}),f?(0,t.jsxs)("div",{className:"mt-1 max-w-[40rem]",children:[(0,t.jsx)("div",{children:T.map((e,n)=>(0,t.jsx)(k,{step:e,isLast:n===T.length-1&&!M&&0===U,showAllResults:y,getSaveState:i,onSaveSource:a,saveLabels:l},e.key))}),U>0?(0,t.jsx)("button",{type:"button",onClick:()=>R(e=>!e),"aria-expanded":y,className:"ms-[1.375rem] flex min-h-8 items-center rounded-md px-1 text-xs font-medium text-muted-foreground outline-none transition-colors duration-150 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring pointer-coarse:min-h-11",children:y?n.showFewerResults:`${n.showMoreResults} \xb7 +${U}`}):null,M?(0,t.jsx)(S,{label:"Done"}):null]}):null]})},"getResearchPartOpenedWebSources",0,function(e){let t=b(e);return[...t?.pages?.map(y)??[],...t?.webPage?[y(t.webPage)]:[]]},"getResearchPartWebSources",0,w,"isResearchToolPart",0,function(e){let t=x(e);return"search_web"===t||"open_web_pages"===t||"read_web_page"===t}],407294)},523526,e=>{"use strict";var t=e.i(21139),n=e.i(624017),r=e.i(32949);let i=/^article-[a-f0-9-]{36}$/i,s=new Map;function a(e){return`smry:article-chat-entry:${e}`}function l(){try{return window.sessionStorage}catch{return null}}function o(e){return"string"==typeof e&&e.startsWith("/")&&!e.startsWith("//")}function c(e){if("submit"===e.kind){let t=e.prompt.trim();return t?{...e,prompt:t}:null}let t=e.text.trim();return t?{...e,text:t}:null}async function u(e){let u;if(!i.test(e))return null;let d=s.get(e);if(d&&d.ownerKey===t.libraryOwnerSession.current())return d;let m=function(e,n){if(!e)return null;try{let r=JSON.parse(e);if(2!==r.version||r.id!==n||"string"!=typeof r.articleUrl||!r.articleUrl.trim()||r.ownerKey!==t.libraryOwnerSession.current()||!o(r.returnHref)||!r.action||!Array.isArray(r.articleReferences))return null;let i=c(r.action);if(!i)return null;return{version:2,id:n,action:i,articleReferences:r.articleReferences,articleUrl:r.articleUrl,returnHref:r.returnHref,ownerKey:t.libraryOwnerSession.current()}}catch{return null}}(function(e){try{return l()?.getItem(a(e))??null}catch{return null}}(e),e);if(!m)return null;let f=!0,h=t.libraryOwnerSession.subscribe(()=>{f=!1});try{u=await (0,n.getCachedArticle)(m.articleUrl)}finally{h()}if(!f||m.ownerKey!==t.libraryOwnerSession.current()||!u||!(0,n.isRenderableArticleCacheHit)(u)||!u.response)return null;let p=(0,r.buildReaderContentItem)({response:u.response,url:m.articleUrl});if(!p)return null;let g={...m,contentItem:p};return s.set(e,g),g}t.libraryOwnerSession.subscribe(()=>s.clear()),e.s(["requestArticleChatEntry",0,function({action:e,articleReferences:n,contentItem:r,returnHref:i}){if(!o(i))return null;let u=c(e);if(!u)return null;let d=`article-${crypto.randomUUID()}`,m={version:2,id:d,action:u,articleReferences:n,articleUrl:r.metadata.url,returnHref:i,ownerKey:t.libraryOwnerSession.current()},f={...m,contentItem:r};s.set(d,f);try{l()?.setItem(a(d),JSON.stringify(m))}catch{}return d},"restoreArticleChatEntry",0,u])},249755,e=>{"use strict";var t=e.i(826534);let n=/^(?:read|learn|see|find|view|click|continue|more|source|here)(?:\s+(?:more|this|article|story|source|here))?[.!…]?$/i;function r(e){return(e??"").replace(/\s+/g," ").trim()}function i(e,t){try{let n=new URL(e,t);if("http:"!==n.protocol&&"https:"!==n.protocol)return null;return n.hash="",n.toString()}catch{return null}}function s({url:e,title:n,excerpt:a,author:l,publishedAt:o,wordCount:c}){var u;let d=i(e,"https://smry.ai"),m=r(n);if(!d||!m)return null;let f=new URL(d).hostname.replace(/^www\d*\./i,"");return{url:d,href:(0,t.getArticlePath)(d,{from:"recommendations"}),title:m,domain:f,excerpt:a?(u=r(a)).length<=240?u:`${u.slice(0,240).replace(/\s+\S*$/,"")}…`:null,author:r(l)||null,publishedAt:o??null,wordCount:c??null}}e.s(["createChatArticleReference",0,s,"extractChatArticleReferences",0,function(e,t){let a;if(!e||"u"<typeof DOMParser)return[];try{let e=new URL(t);e.hash="",a=e.toString()}catch{return[]}let l=new DOMParser().parseFromString(e,"text/html"),o=new Set,c=[];for(let e of l.querySelectorAll("a[href]")){if(c.length>=24)break;let t=i(e.getAttribute("href")??"",a);if(!t||t===a||o.has(t))continue;let l=r(e.textContent);if(l.length<8||l.length>180||n.test(l))continue;let u=e.closest("p, li, blockquote, figcaption"),d=r(u?.textContent),m=s({url:t,title:l,excerpt:d&&d!==l?d:null});m&&(o.add(t),c.push(m))}return c},"findChatArticleReference",0,function(e,t){return t?e.find(e=>e.href===t||e.url===t)??null:null},"getChatArticleMentionLabels",0,function(e){let t=[r(e)],n=e.search(/\s(?:[-–—|])\s/);return n>0&&t.push(r(e.slice(0,n))),[...new Set(t)].filter(e=>e.length>=8)},"resolveInlineChatArticleRecommendations",0,function(e,t){let n=[],r=[];for(let e of t){let t=s({url:e.url,title:e.title,excerpt:e.snippet,publishedAt:e.publishedAt});t?n.push(t):r.push(e)}return{articleReferences:function(...e){let t=new Map;for(let n of e)for(let e of n)t.has(e.url)||t.set(e.url,e);return[...t.values()]}(e,n),fallbackSources:r}}])},831123,e=>{"use strict";let t="I want to securely connect my context",n="Find me a few articles or news stories to read today, based on what you know about me. Open with one short, friendly sentence that names two or three specific things from my profile — my work, interests, or preferences — that you're picking for, then go look. Pick from my work, interests, and reading preferences only; never bring up my relationships, family, or personal life. Lean on my profile first; my library and feeds only add to that. Don't say my library is empty or that nothing is saved; if it is, just work from my profile. Never mention how you got my context — no sign-in, OAuth, tokens, connecting, or 'context'. Keep it fast: one search, don't open individual pages, and no narration between tool calls. Finish with three to five picks, each with a link and one line on why it fits me.";function r(e){return e.trim()===n}let i="https://api.configure.dev",s=new Set([i,"https://configure-backend-staging.fly.dev"]),a="guest";e.s(["CONFIGURE_CONNECT_TOOL_NAMES",0,["request_connect_configure","configure_connect"],"CONFIGURE_DEFAULT_HOST_ORIGIN",0,i,"CONFIGURE_GUEST_PARAM",0,a,"CONFIGURE_RETURN_PARAM",0,"configure","CONFIGURE_RETURN_PENDING_LIMIT_MS",0,12e3,"CONFIGURE_RETURN_VALUE",0,"returned","CONFIGURE_SIGNIN_TICKET_PATH",0,"/auth/configure-signin/ticket","CONNECT_CHIP_PROMPT",0,t,"P
1ENDING_THREAD_ID",0,"thread-pending","RETURN_READING_PROMPT",0,n,"configureHostOrigin",0,function(e){if("string"!=typeof e)return i;try{let t=new URL(e).origin;return s.has(t)?t:i}catch{return i}},"configureMintedUrl",0,function(e){if(!e)return null;try{let t=new URL(e);if("https:"!==t.protocol)return null;return"configure.dev"===t.hostname||t.hostname.endsWith(".configure.dev")?t.toString():null}catch{return null}},"configureSignInPath",0,function(e,t){var n;return n=`/auth/configure-signin/start?return=${encodeURIComponent(e)}`,t?.guest?`${n}&${a}=1`:n},"connectReturnPathForThread",0,function(e,t){return e?.addressable&&e.chatId?`/chat/${encodeURIComponent(e.chatId)}`:t},"endsWithReturnReadingTurn",0,function(e){let t=e.findLast(e=>"user"===e.role);return!!t&&r((t.parts??[]).filter(e=>"text"===e.type).map(e=>e.text??"").join(""))},"isReturnReadingPrompt",0,r,"isSyntheticPrompt",0,function(e){let r=e.trim();return r===t||r===n}])},702278,e=>{"use strict";let t="smry:document-citation-open",n="#smry-pdf-page-",r="#smry-book-section-";e.s(["DOCUMENT_CITATION_OPEN_EVENT",0,t,"buildBookGroundingMarkdown",0,function(e,t){return[`# ${e}`,...t.map((e,t)=>{let n=t+1,i=e.title.trim()||`Section ${n}`;return`## [${i}](${r}${Math.max(1,Math.floor(n))})
2
3${e.text.trim()}`})].join("\n\n")},"buildPdfGroundingMarkdown",0,function(e,t){return[`# ${e}`,...t.map((e,t)=>{let r=t+1;return`## [Page ${r}](${n}${Math.max(1,Math.floor(r))})
4
5${e.trim()}`})].join("\n\n")},"dispatchDocumentCitationOpen",0,function(e){window.dispatchEvent(new CustomEvent(t,{detail:e}))},"parseDocumentCitationHref",0,function(e){if(!e)return null;let t=e.startsWith(n)?Number(e.slice(n.length)):NaN;if(Number.isInteger(t)&&t>0)return{kind:"pdf",page:t};let i=e.startsWith(r)?Number(e.slice(r.length)):NaN;return Number.isInteger(i)&&i>0?{kind:"book",section:i}:null}])},521976,908665,578352,e=>{"use strict";var t=e.i(271645),n=e.i(831123),r=e.i(802822);e.s(["useConfigureSignIn",0,function(){let{track:e}=(0,r.useAnalytics)(),[i,s]=(0,t.useState)(!1);return{start:(0,t.useCallback)((t,r)=>{let i=r?.signedIn===!1;s(!0),e("configure_authorize_started",{provider:"configure",guest:i}),window.location.assign((0,n.configureSignInPath)(t,{guest:i}))},[e]),leaving:i}}],521976);var i=e.i(843476),s=e.i(657688),a=e.i(174080),l=e.i(671428),o=e.i(916107),c=e.i(647163);let u=[{src:"/configure-icons/claude.svg?v=2",alt:"Claude",bg:"#faf0e8"},{src:"/configure-icons/chatgpt.svg?v=2",alt:"ChatGPT",bg:"#ffffff"},{src:"/configure-icons/gemini.svg?v=2",alt:"Gemini",bg:"#ffffff"},{src:"/configure-icons/grok.svg?v=1",alt:"Grok",bg:"#000000"}],d="smry:configure-availability",m=!1;function f(e){let n=e?.justLinked===!0,i=e?.reader,{track:s}=(0,r.useAnalytics)(),[a,l]=(0,t.useState)(n?{enabled:!0,linked:!0}:{enabled:null,linked:!1});return(0,o.useExternalLayoutSync)(()=>{if(n)return;let e=function(){try{let e=window.localStorage.getItem(d);if(!e)return null;let t=JSON.parse(e);if("object"!=typeof t||null===t)return null;let{enabled:n,linked:r}=t;if("boolean"!=typeof n||"boolean"!=typeof r)return null;return{enabled:n,linked:r}}catch{return null}}();e&&l(e)},[n]),(0,o.useExternalSync)(()=>{if(n&&void 0===i)return;let e=!1,t=0,r=()=>{t=Date.now(),fetch("/api/configure/linked",{cache:"no-store"}).then(e=>e.ok?e.json():null).then(t=>{if(e)return;let n={enabled:null===t||!1!==t.enabled,linked:t?.linked===!0};n.linked&&!m&&(m=!0,s("configure_connected")),l(n),function(e){try{if(null===e.enabled)return;window.localStorage.setItem(d,JSON.stringify(e))}catch{}}(n)}).catch(()=>{e||l(e=>({enabled:e.enabled??!0,linked:e.linked}))})},a=()=>{"visible"!==document.visibilityState||Date.now()-t<2e3||r()};r();let o="u">typeof document;return o&&(document.addEventListener("visibilitychange",a),window.addEventListener("focus",a)),()=>{e=!0,o&&(document.removeEventListener("visibilitychange",a),window.removeEventListener("focus",a))}},[i,s]),a}function h(){return(0,i.jsxs)("span",{"aria-hidden":"true",className:"ml-2 inline-flex shrink-0 items-center",children:[(0,i.jsx)("span",{className:"flex -space-x-1.5",children:u.map((e,t)=>(0,i.jsx)("span",{className:"relative flex size-5 items-center justify-center rounded-full ring-2 ring-background shadow-hairline",style:{backgroundColor:e.bg,zIndex:t},children:(0,i.jsx)(s.default,{src:e.src,alt:"",width:13,height:13})},e.src))}),(0,i.jsx)("span",{className:"ml-2 text-[0.6875rem] text-muted-foreground",children:"& more"})]})}function p({className:e}){return(0,i.jsxs)("div",{"data-configure-chip":"pending","aria-busy":"true",className:(0,
5c.cn)("flex min-h-9 w-full items-center gap-2 rounded-lg px-2 py-1.5",e),children:[(0,i.jsx)(l.Skeleton,{className:"h-3 w-56 max-w-[60%] rounded-md"}),(0,i.jsxs)("span",{"aria-hidden":"true",className:"ml-auto inline-flex shrink-0 items-center",children:[(0,i.jsx)("span",{className:"flex -space-x-1.5",children:u.map((e,t)=>(0,i.jsx)(l.Skeleton,{className:"size-5 rounded-full ring-2 ring-background",style:{zIndex:t}},e.src))}),(0,i.jsx)(l.Skeleton,{className:"ml-2 h-3 w-10 rounded-md"})]})]})}e.s(["ConfigureConnectChip",0,function({onPress:e,className:s,availability:l,icon:u,surface:d}){let m=f(),{track:g}=(0,r.useAnalytics)(),{enabled:x,linked:b}=l??m,y=!0===x&&!b,v=(0,t.useRef)(!1);return((0,o.useExternalSync)(()=>{y&&!v.current&&(v.current=!0,function(e=a.preconnect){e(n.CONFIGURE_DEFAULT_HOST_ORIGIN),e("https://accounts.configure.dev")}(),g("configure_chip_viewed",{surface:d}))},[y,d,g]),!1===x||b)?null:null===x?(0,i.jsx)(p,{className:s}):(0,i.jsxs)("button",{type:"button","data-configure-chip":"connect",onClick:()=>{g("configure_chip_clicked",{surface:d}),e()},className:(0,c.cn)("group flex min-h-9 w-full items-center gap-2 rounded-lg px-2 py-1.5 text-start text-[0.8125rem] text-muted-foreground transition-colors hover:bg-muted/45 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none pointer-coarse:min-h-11",s),style:{touchAction:"manipulation"},children:[u,(0,i.jsx)("span",{className:"flex min-w-0 flex-1 items-center gap-1 text-pretty leading-4",children:"Personalize by connecting ChatGPT, Claude, or Gemini"}),(0,i.jsx)(h,{})]})},"useConfigureAvailability",0,f],908665),e.s(["useResizeHandle",0,function({width:e,onWidthChange:n,minWidth:r,maxWidth:i,side:s}){let a=(0,t.useRef)(0),l=(0,t.useRef)(!1);return{onPointerDown:(0,t.useCallback)(t=>{t.preventDefault(),t.stopPropagation();let o=t.currentTarget;o.setPointerCapture(t.pointerId);let c=t.clientX;l.current=!0,document.body.style.cursor="col-resize",document.body.style.userSelect="none";let u=e,d=t=>{l.current&&(u=Math.min(i,Math.max(r,e+("right"===s?c-t.clientX:t.clientX-c))),cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{n(u)}))},m=()=>{l.current=!1,cancelAnimationFrame(a.current),document.body.style.cursor="",document.body.style.userSelect="",o.releasePointerCapture(t.pointerId),document.removeEventListener("pointermove",d),document.removeEventListener("pointerup",m),n(u)};document.addEventListener("pointermove",d),document.addEventListener("pointerup",m)},[e,n,r,i,s])}}],578352)},772328,e=>{"use strict";var t=e.i(571164),n=e.i(138544),r=e.i(271645);e.s(["useReducedMotion",0,function(){t.hasReducedMotionListener.current||(0,n.initPrefersReducedMotion)();let[e]=(0,r.useState)(t.prefersReducedMotion.current);return e}])}]);
6
7//# chunkId=09f94ab2-2367-56dc-950e-106fa28bec97

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.