PageSourceSearch

https://www.volumn.ai/_next/static/chunks/9422-c26b8c578f4df43d.js

js volumn.ai collected 2026-10-01 16:17:40 UTC 11,513 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9422],{4271:(e,t,r)=>{r.d(t,{$:()=>d});var n=r(53757),a=r(24361),s=r(1763),i=r(85606),l=r(37975);let o=(0,i.F)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:r,variant:a,size:i,asChild:d=!1,...c}=e,u=d?s.DX:"button";return(0,n.jsx)(u,{className:(0,l.cn)(o({variant:a,size:i,className:r})),ref:t,...c})});d.displayName="Button"},9422:(e,t,r)=>{r.d(t,{$R:()=>c,$w:()=>x,JC:()=>m,Ke:()=>p,OH:()=>b,TI:()=>u,Vg:()=>y,_Q:()=>f,ok:()=>g,y5:()=>h});var n=r(53757),a=r(4271),s=r(33039),i=r(27861),l=r(23255),o=r(37975),d=r(24361);let c=e=>{let{className:t,...r}=e;return(0,n.jsx)("form",{className:(0,o.cn)("w-full divide-y divide-zinc-100 overflow-hidden rounded-xl border border-zinc-200 bg-background shadow-sm dark:border-zinc-800 dark:divide-zinc-800",t),...r})},u=e=>{let{onChange:t,onKeyDown:r,onPaste:a,onImagePaste:s,className:c,placeholder:u="What would you like to know?",minHeight:f=48,maxHeight:p=164,...m}=e,{textareaRef:g,adjustHeight:h}=(e=>{let{minHeight:t,maxHeight:r}=e,n=(0,d.useRef)(null),a=(0,d.useCallback)(e=>{let a=n.current;if(!a)return;if(e){a.style.height=`${t}px`;return}a.style.height=`${t}px`;let s=Math.max(t,Math.min(a.scrollHeight,r??1/0));a.style.height=`${s}px`},[t,r]);return(0,d.useEffect)(()=>{let e=n.current;e&&(e.style.height=`${t}px`)},[t]),(0,d.useEffect)(()=>{let e=()=>a();return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[a]),{textareaRef:n,adjustHeight:a}})({minHeight:f,maxHeight:p});return(0,n.jsx)(i.T,{name:"message",placeholder:u,ref:g,className:(0,o.cn)("w-full resize-none rounded-none border-none p-3 shadow-none outline-none ring-0 focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 focus:ring-offset-0",c),onChange:e=>{h(),t?.(e)},onKeyDown:e=>{if((r?.(e),!e.defaultPrevented)&&!e.nativeEvent.isComposing&&"Enter"===e.key&&!e.shiftKey){e.preventDefault();let t=e.currentTarget.form;t&&t.requestSubmit()}},onPaste:e=>{if(a?.(e),e.defaultPrevented||!s)return;let t=(0,l.n)(e.clipboardData);0!==t.length&&(e.preventDefault(),s(t))},...m})},f=e=>{let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,o.cn)("flex items-center justify-between p-1",t),...r})},p=e=>{let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,o.cn)("flex items-center gap-1",t),...r})},m=e=>{let{variant:t="ghost",className:r,size:s,type:i="button",...l}=e,c=s??d.Children.count(l.children)>1?"default":"icon";return(0,n.jsx)(a.$,{type:i,variant:t,size:c,className:(0,o.cn)("shrink-0 gap-1.5 text-muted-foreground","default"===c&&"px-3",r),...l})},g=e=>{let{onFileSelect:t,onFilesSelect:r,onClick:a,...s}=e,i=(0,d.useRef)(null);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{type:"file",ref:i,className:"hidden",onChange:e=>{let n=Array.from(e.target.files??[]);r?r(n):n.forEach(e=>t?.(e)),e.target.value=""},multiple:!0}),(0,n.jsx)(m,{onClick:e=>{a?.(e),i.current?.click()},...s})]})},h=e=>(0,n.jsx)(s.l6,{...e}),b=e=>{let{className:t,...r}=e;return(0,n.jsx)(s.bq,{className:(0,o.cn)("border-none bg-transparent font-medium text-muted-foreground shadow-none transition-colors",'hover:bg-accent hover:text-foreground [&[aria-expanded="true"]]:bg-accent [&[aria-expanded="true"]]:text-foreground',"focus:ring-0 focus:ring-offset-0 focus-visible:ring-0 focus-visible:ring-offset-0",t),...r})},x=e=>{let{className:t,...r}=e;return(0,n.jsx)(s.gC,{className:(0,o.cn)(t),...r})},y=e=>{let{className:t,...r}=e;return(0,n.jsx)(s.eb,{className:(0,o.cn)(t),...r})}},27861:(e,t,r)=>{r.d(t,{T:()=>i});var n=r(53757),a=r(24361),s=r(37975);let i=a.forwardRef((e,t)=>
1{let{className:r,...a}=e;return(0,n.jsx)("textarea",{className:(0,s.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-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,...a})});i.displayName="Textarea"},33039:(e,t,r)=>{r.d(t,{TR:()=>b,bq:()=>p,eb:()=>x,gC:()=>h,l6:()=>c,s3:()=>u,yv:()=>f});var n=r(53757),a=r(24361),s=r(67658),i=r(33004),l=r(38925),o=r(10062),d=r(37975);let c=s.bL,u=s.YJ,f=s.WT,p=a.forwardRef((e,t)=>{let{className:r,children:a,...l}=e;return(0,n.jsxs)(s.l9,{ref:t,className:(0,d.cn)("flex h-10 w-full items-center justify-between rounded-md border border-zinc-200 bg-white px-3 py-2 text-sm placeholder:text-zinc-500 focus:outline-none focus:ring-2 focus:ring-black focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-zinc-800 dark:bg-zinc-950 dark:focus:ring-white [&>span]:line-clamp-1",r),...l,children:[a,(0,n.jsx)(s.In,{asChild:!0,children:(0,n.jsx)(i.A,{className:"h-4 w-4 opacity-50"})})]})});p.displayName=s.l9.displayName;let m=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.PP,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",r),...a,children:(0,n.jsx)(l.A,{className:"h-4 w-4"})})});m.displayName=s.PP.displayName;let g=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.wn,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",r),...a,children:(0,n.jsx)(i.A,{className:"h-4 w-4"})})});g.displayName=s.wn.displayName;let h=a.forwardRef((e,t)=>{let{className:r,children:a,position:i="popper",...l}=e;return(0,n.jsx)(s.ZL,{children:(0,n.jsxs)(s.UC,{ref:t,className:(0,d.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 bg-white text-zinc-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50","popper"===i&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:i,...l,children:[(0,n.jsx)(m,{}),(0,n.jsx)(s.LM,{className:(0,d.cn)("p-1","popper"===i&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,n.jsx)(g,{})]})})});h.displayName=s.UC.displayName;let b=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.JU,{ref:t,className:(0,d.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",r),...a})});b.displayName=s.JU.displayName;let x=a.forwardRef((e,t)=>{let{className:r,children:a,...i}=e;return(0,n.jsxs)(s.q7,{ref:t,className:(0,d.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm text-zinc-900 outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[state=checked]:bg-zinc-900 data-[state=checked]:text-white data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:text-zinc-50 dark:focus:bg-zinc-800 dark:focus:text-zinc-50 dark:data-[state=checked]:bg-zinc-100 dark:data-[state=checked]:text-zinc-900",r),...i,children:[(0,n.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,n.jsx)(s.VF,{children:(0,n.jsx)(o.A,{className:"h-4 w-4"})})}),(0,n.jsx)(s.p4,{children:a})]})});x.displayName=s.q7.displayName,a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.wv,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",r),...a})}).displayName=s.wv.displayName},37975:(e,t,r)=>{r.d(t,{$e:()=>f,Xy:()=>o,cn:()=>s,f$:()=>u,kU:()=>l,yp:()=>i});var n=r(12388),a=r(62323);function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.QP)((0,n.$)(t))}
1function i(e){let t=("string"==typeof e?e:String(e??"")).split(/[;:#|]/)[0];return"persona"===t||"albums"===t||"posts"===t?t:"photos"===t||"videos"===t?"albums":"persona"}function l(e,t){return`${e}-${t}`}function o(e,t){return t.startsWith(`${e}-`)?t.slice(e.length+1):t}function d(e){return(e??"").toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function c(e){let t=d(e),r=[],n=t.replace(/`([^`]+)`/g,(e,t)=>{let n=r.length;return r.push(t),`\u0000CODE${n}\u0000`});return(n=(n=(n=(n=n.replace(/\[([^\]]+)\]\(([^)\s]+)\)/g,(e,t,r)=>{let n=(r??"").toString().trim();if(!/^(https?:\/\/|mailto:)/i.test(n))return e;let a=d(n);return`<a href="${a}" target="_blank" rel="noreferrer noopener">${t}</a>`})).replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>")).replace(/~~([^~]+)~~/g,"<s>$1</s>")).replace(/(?<!\*)\*([^*\n]+)\*(?!\*)/g,"<em>$1</em>")).replace(/\u0000CODE(\d+)\u0000/g,(e,t)=>{let n=Number(t);return`<code>${r[n]??""}</code>`})}function u(e,t,r,n){if(null==e||"string"==typeof e&&""===e.trim())return t;let a="number"==typeof e?e:Number(e);return Number.isFinite(a)?Math.max(r,Math.min(n,Math.trunc(a))):t}function f(e){let t,r=("string"==typeof e?e:String(e??"")).replace(/\r\n/g,"\n").replace(/\r/g,"\n").replace(/\\n1\.\s*/g,"\n").replace(/\\n
1/g,"\n");return r.trim()?(t=(r??"").toString()).trim()&&/<\/?(p|h[1-6]|ul|ol|li|blockquote|pre|code|img|video|audio|br)\b/i.test(t)?r:function(e){let t=(e??"").toString().replace(/\r\n/g,"\n").replace(/\r/g,"\n"),r=t.split("\n"),n=[],a=[],s=null,i=[],l=[],o=!1,u="",f=[],p=()=>{0!==a.length&&(n.push(`<p>${a.map(c).join("<br />")}</p>`),a=[])},m=()=>{if(!s)return;let e=s.type,t=s.items.map(e=>`<li>${c(e)}</li>`).join("");n.push(`<${e}>${t}</${e}>`),s=null},g=()=>{0!==l.length&&(i.push(`<p>${l.map(c).join("<br />")}</p>`),l=[])},h=()=>{g(),0!==i.length&&(n.push(`<blockquote>${i.join("")}</blockquote>`),i=[])},b=()=>{if(!o)return;let e=(u??"").toString().replace(/[^a-z0-9_-]/gi,""),t=e?` class="language-${e}"`:"";n.push(`<pre><code${t}>${d(f.join("\n"))}</code></pre>`),o=!1,u="",f=[]};for(let e of r){let t=(e??"").toString().replace(/\s+$/g,""),r=t.trim();if(o){if(/^```/.test(r)){b();continue}f.push(t);continue}let i=r.match(/^```(\S*)\s*$/);if(i){p(),m(),h(),o=!0,u=i[1]??"";continue}let d=/^\s*>/.test(t);if(!d&&r&&h(),!r){p(),m(),g();continue}if(d){p(),m();let e=t.replace(/^\s*>\s?/,"");l.push(e);continue}let x=r.match(/^(#{1,6})\s+(.+)$/);if(x){p(),m(),h();let e=Math.min(6,Math.max(1,x[1].length));n.push(`<h${e}>${c(x[2]??"")}</h${e}>`);continue}let y=r.match(/^[-*+]\s+(.+)$/);if(y){p(),h(),s&&"ul"!==s.type&&m(),s||(s={type:"ul",items:[]}),s.items.push(y[1]??"");continue}let v=r.match(/^\d+\.\s+(.+)$/);if(v){p(),h(),s&&"ol"!==s.type&&m(),s||(s={type:"ol",items:[]}),s.items.push(v[1]??"");continue}s&&m(),a.push(t)}b(),p(),m(),h();let x=n.join("");return x.trim()?x:`<p>${c(t)}</p>`}(r):""}}}]);

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.