1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="129d6be8-73fc-4d5d-b14e-41c30dc8b6d7",e._sentryDebugIdIdentifier="sentry-dbid-129d6be8-73fc-4d5d-b14e-41c30dc8b6d7")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8193],{55309:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,a=/^\s+|\s+$/g;function c(e){return e?e.replace(a,""):""}e.exports=function(e,a){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];a=a||{};var d=1,u=1;function p(e){var t=e.match(r);t&&(d+=t.length);var n=e.lastIndexOf("\n");u=~n?e.length-n:u+e.length}function m(){var e={line:d,column:u};return function(t){return t.position=new f(e),g(n),t}}function f(e){this.start=e,this.end={line:d,column:u},this.source=a.source}f.prototype.content=e;var x=[];function h(t){var r=Error(a.source+":"+d+":"+u+": "+t);if(r.reason=t,r.filename=a.source,r.line=d,r.column=u,r.source=e,a.silent)x.push(r);else throw r}function g(t){var r=t.exec(e);if(r){var n=r[0];return p(n),e=e.slice(n.length),r}}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;""!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return h("End of comment missing");var n=e.slice(2,r-2);return u+=2,p(n),e=e.slice(r),u+=2,t({type:"comment",comment:n})}}return g(n),function(){var e,r=[];for(y(r);e=function(){var e=m(),r=g(o);if(r){if(v(),!g(s))return h("property missing ':'");var n=g(l),a=e({type:"declaration",property:c(r[0].replace(t,"")),value:n?c(n[0].replace(t,"")):""});return g(i),a}}();)!1!==e&&(r.push(e),y(r));return r}()}},58193:function(e,t,r){"use strict";r.r(t),r.d(t,{AiChat:function(){return es},ChatAssistantMessage:function(){return em}});var n=r(11527),o=r(4814),s=r(72277),l=r(15338);let i=(0,l.Z)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),a=(0,l.Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);var c=r(72811),d=r(50959),u=r(91653),p=r(62107),m=r(30249),f=r(63898);let x=(0,d.forwardRef)((e,t)=>{let{value:r,...o}=e,s=(0,d.useRef)(null),l=(0,m.e)(t,s);return(0,d.useEffect)(()=>{let e=s.current;e&&(e.style.height="auto",e.style.height="".concat(e.scrollHeight,"px"))},[r]),(0,n.jsx)(f.g,{...o,value:r,ref:l})});x.displayName="AutoGrowingTextarea";var h=r(4729),g=r(61691),y=r(58735),v=r(10322),w=r(2464);let b={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var k=r(82977),j=r(60081),N=r(42740),C=r(24351);let S={}.hasOwnProperty,E=new Map,A=/[A-Z]/g,I=/-([a-z])/g,P=new Set(["table","tbody","thead","tfoot","tr"]),T=new Set(["td","th"]);function F(e,t){return t.toUpperCase()}function D(e){return"-"+e.toLowerCase()}let L={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var R=r(70905),O=r(67099),z=r(4601),M=r(78835),V=r(25709),_=r(14198);let H={}.hasOwnProperty,Z=[],U={allowDangerousHtml:!0},K=/^(https?|ircs?|mailto|xmpp)$/i,$=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function q(e){return(0,R.K)(e,K)}let B=(0,d.memo)(function(e){let t=e.allowedElements,r=e.allowElement,o=e.children||"",s=e.className,l=e.components,i=e.disallowedElements,a=e.rehypePlugins||Z,c=e.remarkPlugins||Z,d=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...U}:U,u=e.skipHtml,p=e.unwrapDisallowed,m=e.urlTransform||q,f=(0,M.l)().use(O.Z).use(c).use(z.Z,d).use(a),x=new _.k;for(let r of("string"==typeof o?x.value=o:(0,h.t1)("Unexpected value `"+o+"` for `children` prop, expected `string`"),t&&i&&(0,h.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),$))Object.hasOwn(e,r.from)&&(0,h.t1)("Unexpected `"+r.from+"` prop, "+(r.to?"use `"+r.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+r.id+"> for more info)");let R=f.parse(x),K=f.runSync(R,x);return s&&(K={type:"element",tagName:"div",properties:{className:s},children:"root"===K.type?K.children:[K]}),(0,V.Vn)(K,function(e,n,o){if("raw"===e.type&&o&&"number"==typeof n)return u?o.children.splice(n,1):o.children[n]={type:"text",value:e.value},n;if("element"===e.type){let t;for(t in L)if(H.call(L,t)&&H.call(e.properties,t)){let r=e.properties[t],n=L[t];(null===n||n.includes(e.tagName))&&(e.properties[t]=m(String(r||""),t,e))}}if("element"===e.type){let s=t?!t.includes(e.tagName):!!i&&i.includes(e.tagName);if(!s&&r&&"number"==typeof n&&(s=!r(e,n,o)),s&&o&&"number"==typeof n)return p&&e.children?o.children.splice(n,1,...e.children):o.children.splice(n,1),n}}),function(e,t){var r,n,o;let s;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let l=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=t.jsxDEV,s=function(e,t,n,o){let s=Array.isArray(n.children),i=(0,N.Pk)(e);return r(t,n,o,s,{columnNumber:i?i.column-1:void 0,fileName:l,lineNumber:i?i.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
1if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");n=t.jsx,o=t.jsxs,s=function(e,t,r,s){let l=Array.isArray(r.children)?o:n;return s?l(t,r,s):l(t,r)}}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:s,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:l,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?v.YP:v.dy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},a=function e(t,r,n){if("element"===r.type||"root"===r.type){let o=t.schema,s=o;"element"===r.type&&"svg"===r.tagName.toLowerCase()&&"html"===o.space&&(s=v.YP,t.schema=s),t.ancestors.push(r);let l=function(t,r){let n=[],o=-1,s=t.passKeys?new Map:E;for(;++o<r.children.length;){let l;let i=r.children[o];if(t.passKeys&&"element"===i.type){let e=s.get(i.tagName)||0;l=i.tagName+"-"+e,s.set(i.tagName,e+1)}let a=e(t,i,l);void 0!==a&&n.push(a)}return n}(t,r),i=function(e,t){let r;let n=t[t.length-1],o={};if("properties"in n&&n.properties){let s;for(r in n.properties)if("children"!==r&&S.call(n.properties,r)){let l=function(e,t,r,n){let o=(0,w.s)(e.schema,r);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=o.commaSeparated?(0,g.P)(n):(0,k.P)(n)),"style"===o.property){let r="object"==typeof n?n:function(e,t,r){let n={};try{j(r,function(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(I,F)),n[r]=t})}catch(r){if(!e.ignoreInvalidStyle){let n=new C.$("Cannot parse `style` attribute",{ancestors:t,cause:r,source:"hast-util-to-jsx-runtime",ruleId:"style"});throw n.file=e.filePath||void 0,n.url="https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-parse-style-attribute",n}}return n}(e,t,String(n));return"css"===e.stylePropertyNameCase&&(r=function(e){let t;let r={};for(t in e)S.call(e,t)&&(r[function(e){let t=e.replace(A,D);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return r}(r)),["style",r]}return["react"===e.elementAttributeNameCase&&o.space?b[o.property]||o.property:o.attribute,n]}}(e,t,r,n.properties[r]);if(l){let[t,r]=l;e.tableCellAlignToStyle&&"align"===t&&"string"==typeof r&&T.has(n.tagName)?s=r:o[t]=r}}s&&((o.style||(o.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=s)}return o}(t,t.ancestors),a=t.Fragment;if(t.ancestors.pop(),"element"===r.type){if(l&&P.has(r.tagName)&&(l=l.filter(function(e){return"string"!=typeof e||!(0,y.Q)(e)})),S.call(t.components,r.tagName)){let e=r.tagName;"string"!=typeof(a=t.components[e])&&a!==t.Fragment&&t.passNode&&(i.node=r)}else a=r.tagName}if(l.length>0){let e=l.length>1?l:l[0];e&&(i.children=e)}return t.schema=o,t.create(r,a,i,n)}if("text"===r.type)return r.value}(i,e,void 0);return a&&"string"!=typeof a?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}(K,{Fragment:n.Fragment,components:l,ignoreInvalidStyle:!0,jsx:n.jsx,jsxs:n.jsxs,passKeys:!0,passNode:!0})},(e,t)=>e.children===t.children&&e.className===t.className);var G=r(55621),W=r(25558);function X(e){let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,W.cn)("animate-pulse rounded-md bg-muted",t),...r})}var Y=r(60386),J=r(31007),Q=Object.defineProperty,ee=new Map,et=new WeakMap,er=0,en=void 0;function eo(e){let{trackVisibility:t}=e,{ref:r,entry:o,inView:s}=function({threshold:e,delay:t,trackVisibility:r,rootMargin:n,root:o,triggerOnce:s,skip:l,initialInView:i,fallbackInView:a,onChange:c}={}){var u;let[p,m]=d.useState(null),f=d.useRef(),[x,h]=d.useState({inView:!!i,entry:void 0});f.current=c,d.useEffect(()=>{let i;if(!l&&p)return i=function(e,t,r={},n=en){if(void 0===window.IntersectionObserver&&void 0!==n){let o=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}let{id:o,observer:s,elements:l}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var r;return`${t}_${"root"===t?(r=e.root)?(et.has(r)||(er+=1,et.set(r,er.toString())),et.get(r)):"0":e[t]}`}).toString(),r=ee.get(t);if(!r){let n;let o=new Map,s=new IntersectionObserver(t=>{t.forEach(t=>{var r;let s=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=s),null==(r=o.get(t.target))||r.forEach(e
1=>{e(s,t)})})},e);n=s.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:s,elements:o},ee.set(t,r)}return r}(r),i=l.get(e)||[];return l.has(e)||l.set(e,i),i.push(t),s.observe(e),function(){i.splice(i.indexOf(t),1),0===i.length&&(l.delete(e),s.unobserve(e)),0===l.size&&(s.disconnect(),ee.delete(o))}}(p,(e,t)=>{h({inView:e,entry:t}),f.current&&f.current(e,t),t.isIntersecting&&s&&i&&(i(),i=void 0)},{root:o,rootMargin:n,threshold:e,trackVisibility:r,delay:t},a),()=>{i&&i()}},[Array.isArray(e)?e.toString():e,p,o,n,s,l,r,a,t]);let g=null==(u=x.entry)?void 0:u.target,y=d.useRef();p||!g||s||l||y.current===g||(y.current=g,h({inView:!!i,entry:void 0}));let v=[m,x.inView,x.entry];return v.ref=v[0],v.inView=v[1],v.entry=v[2],v}({trackVisibility:t,delay:100});return(0,d.useEffect)(()=>{t&&!s&&(null==o||o.target.scrollIntoView({block:"start"}))},[s,o,t]),(0,n.jsx)("div",{ref:r,className:"h-px w-full"})}d.Component;let es=(0,c.Pi)(e=>{let{query:t,onBackToSearch:r,view:o}=e,[s,l]=(0,d.useState)(""),i=(0,d.useRef)(null),a=t.trim();function c(){s&&o.canSendMessage&&(o.sendMessage(s),l(""))}function u(e){o.sendMessage(e)}return(0,d.useEffect)(()=>{i.current&&o.scrollHeight>0&&(i.current.scrollTop=o.scrollHeight)},[o]),(0,Y.y)(["Enter","mod+Enter"],e=>{e.preventDefault(),c()}),(0,n.jsxs)("div",{className:"flex flex-1 select-text flex-col overflow-hidden",children:[(0,n.jsx)("div",{className:"flex-none px-2 pt-3",children:(0,n.jsx)(ei,{onClick:r})}),(0,n.jsxs)("div",{ref:i,className:"flex flex-1 flex-col gap-8 overflow-y-auto overflow-x-hidden p-10",onScroll:function(e){o.scrollHeight=e.currentTarget.scrollTop},children:[(0,n.jsx)("div",{className:"max-w-[400px] self-center rounded-lg border px-3 py-2 text-center text-sm text-muted-foreground",children:"Chat with the AI using your search results as context. Note, this will send search results to Google Gemini."}),o.messages.map(e=>(0,n.jsx)(ea,{message:e},e.id)),(0,n.jsx)(eo,{trackVisibility:o.isLoading})]}),0===o.messages.length?(0,n.jsxs)("div",{className:"flex max-w-full flex-col items-end justify-end gap-3 self-end px-5 py-2",children:[(0,n.jsx)(eu,{onSubmit:u,text:"Summarize all the notes"}),(0,n.jsx)(eu,{onSubmit:u,text:"Explore key themes"}),a?(0,n.jsx)(eu,{onSubmit:u,text:'Summarize all the notes related to the query "'.concat(a,'"')}):null]}):null,(0,n.jsxs)("form",{className:"flex flex-none gap-4 p-5",onSubmit:function(e){e.preventDefault(),c()},children:[(0,n.jsx)(x,{value:s,onChange:e=>l(e.target.value),placeholder:"Chat to your search results...",className:"max-h-[300px] min-h-[40px] resize-none text-sm",rows:1,autoFocus:!0}),(0,n.jsx)(G.z,{type:"submit",disabled:o.isLoading,children:"Send"})]})]})});function el(e){let{text:t}=e,[r,o]=(0,d.useState)(!1),l=async()=>{try{await navigator.clipboard.writeText(t),o(!0)}catch(e){alert("Failed to copy to clipboard")}};return(0,d.useEffect)(()=>{let e;return r&&(e=window.setTimeout(()=>o(!1),2e3)),()=>{e&&clearTimeout(e)}},[r]),(0,n.jsx)("button",{onClick:l,className:"mt-2 flex items-center gap-1.5 self-end rounded-md px-1 py-0.5 text-[0.7rem] text-secondary-foreground/50 transition-colors hover:bg-secondary hover:text-secondary-foreground/90",title:"Copy message","aria-label":"Copy message",children:r?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Z,{className:"h-2.5 w-2.5 text-green-500"}),(0,n.jsx)("span",{children:"Copied"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i,{className:"h-2.5 w-2.5"}),(0,n.jsx)("span",{children:"Copy"})]})})}function ei(e){let{onClick:t}=e;return(0,n.jsxs)(G.z,{variant:"link",className:"gap-2 transition hover:no-underline active:-translate-x-1",onClick:t,children:[(0,n.jsx)(a,{className:"h-5 w-5"}),(0,n.jsx)("span",{children:"Search results"})]})}let ea=(0,c.Pi)(e=>{let{message:t}=e;if("user"===t.role)return(0,n.jsx)(ed,{text:t.content});if("error"===t.state)return(0,n.jsx)(eg,{error:t.content});if("loading"===t.state)return(0,n.jsx)(ex,{onCancel:()=>t.cancelStream()});if("answer"===t.state)return(0,n.jsx)(ec,{message:t});if("stream"===t.state)return(0,n.jsx)(ef,{message:t});throw Error("Unknown message state")}),ec=(0,c.Pi)(e=>{var t,r;let{message:o}=e;return(0,n.jsx)(em,{messageId:o.id,text:null!==(t=o.contentWithFootnotes)&&void 0!==t?t:o.content,copyText:null!==(r=o.contentForClipboard)&&void 0!==r?r:o.content})});function ed(e){let{text:t}=e;return(0,n.jsx)("div",{className:"flex max-w-full flex-col gap-5 self-end break-words rounded-3xl rounded-tr-md bg-purple-200 p-5 px-6 dar
1k:bg-purple-800 sm:max-w-prose",children:(0,n.jsx)("p",{children:t})})}function eu(e){let{disabled:t,text:r,onSubmit:o}=e;return(0,n.jsx)(G.z,{disabled:t,onClick:()=>o(r),size:"sm",variant:"outline",className:"h-auto max-w-full overflow-hidden rounded-3xl rounded-tr-md py-2 font-normal text-secondary-foreground/70 transition hover:border-purple-300 hover:bg-purple-200 hover:text-secondary-foreground active:translate-x-1 active:opacity-80 hover:dark:border-purple-900 hover:dark:bg-purple-800",children:r})}function ep(e){let{text:t,messageId:r,copyText:o}=e;return(0,n.jsxs)("div",{className:"group flex flex-col",children:[(0,n.jsx)("div",{className:"flex max-w-full flex-col gap-5 break-words rounded-3xl rounded-tl-md bg-blue-50 p-5 px-6 dark:bg-blue-900 sm:max-w-prose",children:(0,n.jsx)(B,{className:"prose break-words dark:prose-invert prose-p:leading-relaxed prose-pre:p-0",remarkPlugins:[u.Z],remarkRehypeOptions:{clobberPrefix:"chat-message-".concat(r,"-")},components:{section:ev,sup:ew,li:eb,a:ek},children:t})}),o&&(0,n.jsx)("div",{className:"max-w-full flex-none opacity-0 transition-opacity group-hover:opacity-100",children:(0,n.jsx)(el,{text:o})})]})}let em=(0,d.memo)(ep),ef=(0,c.Pi)(e=>{let{message:t}=e;return(0,n.jsxs)(n.Fragment,{children:[t.content?(0,n.jsx)(ep,{messageId:t.id,text:t.content}):(0,n.jsx)(eh,{}),(0,n.jsx)(ey,{onClick:()=>t.cancelStream()})]})}),ex=e=>{let{onCancel:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eh,{}),(0,n.jsx)(ey,{onClick:t})]})},eh=()=>(0,n.jsx)("div",{className:"flex w-[600px] max-w-full flex-col gap-4 roun
1ded-3xl rounded-tl-md bg-blue-50 p-5 px-6 dark:bg-blue-900",children:(0,n.jsx)(X,{className:"h-8 w-[150px] max-w-full bg-blue-100 dark:bg-blue-800"})}),eg=e=>{let{error:t}=e;return(0,n.jsx)("div",{className:"flex max-w-full flex-col gap-5 break-words rounded-3xl rounded-tl-md bg-red-200 p-5 px-6 dark:bg-red-900 sm:max-w-prose",children:(0,n.jsxs)("div",{className:"prose break-words dark:prose-invert prose-p:leading-relaxed prose-pre:p-0",children:[(0,n.jsx)("strong",{children:"Something went wrong. Please try again later."}),(0,n.jsxs)("details",{children:[(0,n.jsx)("summary",{children:"Details"}),(0,n.jsx)("div",{children:t})]})]})})},ey=e=>{let{onClick:t}=e;return(0,n.jsx)(G.z,{variant:"link",size:"sm",className:"min-h-9 self-center border border-secondary bg-popover text-secondary-foreground/50 hover:border-secondary hover:text-secondary-foreground/90 hover:no-underline",onClick:t,children:"Stop"})},ev=e=>{var t;let{node:r,...s}=e,l=null==r?void 0:null===(t=r.properties)||void 0===t?void 0:t.dataFootnotes,i=(0,o.Z)(s.className,l?"not-prose text-sm ml-4 [&_ol]:list-decimal [&_#footnote-label]:hidden":null);return(0,n.jsx)("section",{...s,className:i})},ew=e=>{let{node:t,...r}=e;return(0,n.jsx)("span",{...r})},eb=e=>{let{node:t,...r}=e,s=(0,o.Z)(r.className,"target:animate-highlight-fade-out");return(0,n.jsx)("li",{...r,className:s})},ek=e=>{var t,r;let{node:o,...s}=e,l=s.href||"",i=l.startsWith(J._)?l.slice(J._.length):null;return i?(0,n.jsx)(ej,{noteId:i,...s}):(null==o?void 0:null===(t=o.properties)||void 0===t?void 0:t.dataFootnoteRef)?(0,n.jsx)("a",{...s,className:"font-normal text-indigo-600 no-underline before:content-['['] after:content-[']'] dark:text-white"}):(null==o?void 0:null===(r=o.properties)||void 0===r?void 0:r.dataFootnoteBackref)!=null?null:(0,n.jsx)("a",{...s})},ej=e=>{let{noteId:t,...r}=e,o=(0,p.Pw)();return(0,n.jsx)("a",{...r,onClick:()=>{o.editNoteId(t),o.closeSearchModal()},className:"text-indigo-600 dark:text-white"})}},63898:function(e,t,r){"use strict";r.d(t,{g:function(){return l}});var n=r(11527),o=r(50959),s=r(25558);let l=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("textarea",{className:(0,s.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...o})});l.displayName="Textarea"},60081:function(e,t,r){var n=r(55309);function o(e,t){var r,o,s,l=null;if(!e||"string"!=typeof e)return l;for(var i=n(e),a="function"==typeof t,c=0,d=i.length;c<d;c++)o=(r=i[c]).property,s=r.value,a?t(o,s,r):s&&(l||(l={}),l[o]=s);return l}e.exports=o,e.exports.default=o}}]);
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.