1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8199],{9036:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var r=a(95155),n=a(12115),i=a(57249),l=a(26497),o=a(4874);function s(e){let{accept:t,multiple:a=!1,label:s,hint:d,onFiles:c,disabled:u=!1,enablePaste:p=!1}=e,[h,m]=(0,n.useState)(!1),f=(0,n.useRef)(0),g=(0,n.useRef)(null),x=(0,n.useId)(),b=(0,o.b)(),y=(0,n.useRef)(c);y.current=c,(0,n.useEffect)(()=>{if(!p||u)return;let e=e=>{var r;let n=e.target;if(n&&("INPUT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable))return;let i=null==(r=e.clipboardData)?void 0:r.items;if(!(null==i?void 0:i.length))return;let l=[];for(let e of Array.from(i)){if("file"!==e.kind)continue;let r=e.getAsFile();if(r){if(t&&"*/*"!==t&&!t.split(",").some(e=>{let t=e.trim();return t.endsWith("/*")?r.type.startsWith(t.slice(0,-1)):r.type===t||r.name.toLowerCase().endsWith(t.replace(/^\./,"."))}))continue;if(l.push(r),!a)break}}if(0===l.length)return;e.preventDefault();let o=new DataTransfer;for(let e of l)o.items.add(e);y.current(o.files)};return window.addEventListener("paste",e),()=>window.removeEventListener("paste",e)},[p,u,t,a]);let w=()=>{f.current=0,m(!1)},v=(0,n.useCallback)(e=>{var t;if(e.preventDefault(),w(),u)return;let a=null==(t=e.dataTransfer)?void 0:t.files;a&&a.length>0&&c(a)},[u,c]);return(0,r.jsxs)(i.P.div,{onDragEnter:e=>{e.preventDefault(),f.current+=1,u||m(!0)},onDragOver:e=>e.preventDefault(),onDragLeave:e=>{e.preventDefault(),f.current-=1,f.current<=0&&w()},onDrop:v,animate:b?{scale:h?1.015:1}:void 0,transition:{duration:.28,ease:o.GA},className:"group relative overflow-hidden rounded-2xl border-2 border-dashed transition-colors duration-300 ".concat(h?"border-primary bg-primary/5 shadow-[0_0_0_1px_hsl(262_80%_55%/0.15),0_20px_50px_-24px_hsl(262_80%_55%/0.45)]":"border-border/80 hover:border-primary/45 hover:bg-muted/25"," ").concat(u?"pointer-events-none opacity-50":""),children:[b&&!h&&(0,r.jsx)(i.P.span,{"aria-hidden":!0,className:"pointer-events-none absolute -left-1/4 top-0 h-full w-1/2 bg-gradient-to-r from-transparent via-primary/[0.06] to-transparent",animate:{x:["0%","200%"]},transition:{duration:5.5,repeat:1/0,ease:"linear",repeatDelay:1.2}}),(0,r.jsx)(l.N,{children:h&&b&&(0,r.jsx)(i.P.span,{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 rounded-2xl bg-gradient-to-br from-primary/15 via-violet-500/10 to-transparent",initial:{opacity:0}
1,animate:{opacity:[.4,.7,.4]},exit:{opacity:0},transition:{duration:1.4,repeat:1/0,ease:"easeInOut"}})}),(0,r.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-primary/25 to-transparent opacity-0 transition-opacity duration-300 group-hover:opacity-100"}),(0,r.jsxs)("label",{htmlFor:x,className:"relative flex cursor-pointer flex-col items-center justify-center gap-3 px-6 py-12 text-center md:py-14",children:[(0,r.jsx)(i.P.span,{"aria-hidden":"true",animate:b?{scale:h?1.12:1,y:h?-2:0}:void 0,transition:{type:"spring",stiffness:380,damping:22},className:"flex h-14 w-14 items-center justify-center rounded-2xl transition-shadow ".concat(h?"gradient-primary text-white shadow-lg shadow-primary/30":"bg-muted/80 text-muted-foreground ring-1 ring-border/70 group-hover:ring-primary/30"),children:(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",className:"h-6 w-6",stroke:"currentColor",strokeWidth:"1.8",children:[(0,r.jsx)("path",{d:"M12 16V4m0 0L7.5 8.5M12 4l4.5 4.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3",strokeLinecap:"round"})]})}),(0,r.jsx)("span",{className:"font-heading text-base font-semibold tracking-tight",children:h?"Drop it":s}),(0,r.jsx)("span",{className:"text-sm text-muted-foreground",children:h?"Release to load":p?"Drag and drop, click to browse, or paste (â/Ctrl+V)":"Drag and drop, or click to browse"}),d&&!h&&(0,r.jsx)("span",{className:"max-w-md text-xs leading-relaxed text-muted-foreground/80",children:d}),(0,r.jsx)("input",{ref:g,id:x,type:"file",accept:t,multiple:a,disabled:u,className:"sr-only",onChange:e=>{var t;(null==(t=e.target.files)?void 0:t.length)&&c(e.target.files),e.target.value=""}})]})]})}},15373:(e,t,a)=>{"use strict";e.exports=a.p+"static/media/pdf.worker.min.d35b48ba.mjs"},15740:(e,t,a)=>{"use strict";a.d(t,{Al:()=>f,Fl:()=>h,Hv:()=>u,PG:()=>s,QX:()=>g,UD:()=>m,WN:()=>o,fq:()=>l,le:()=>d,m$:()=>p,oy:()=>n,th:()=>c,w5:()=>i,yK:()=>x});var r=a(34416);let n=e=>new Blob([e.slice().buffer],{type:"application/pdf"});async function i(){let e=await Promise.all([a.e(2084),a.e(5376)]).then(a.bind(a,98045));return e.GlobalWorkerOptions.workerSrc=new a.U(a(15373)).toString(),e}async function l(e){let t=(0,r.vH)(e,"pdf");if(!t.ok)return{ok:!1,error:t.error};let n=await e.arrayBuffer();try{let{PDFDocument:i}=await a.e(7814).then(a.bind(a,57814)),l=(await i.load(n,{ignoreEncryption:!0})).getPageCount(),o=(0,r.wG)(l,"pdf");if(!o.ok)return{ok:!1,error:o.error};return{ok:!0,warning:t.warning,file:e,bytes:n,pages:l}}catch(t){return{ok:!1,error:"".concat(e.name," could not be opened as a PDF. If it is password-protected, remove the password first â the protection is enforced by the format, not by this tool.")}}}function o(e,t){let a=URL.createObjectURL(e),r=document.createElement("a");r.href=a,r.download=t,r.click(),URL.revokeObjectURL(a)}function s(e,t,a){return new Promise(r=>e.toBlob(r,t,a))}function d(e,t){let a="";for(let r of t)try{e.encodeText(r),a+=r}catch(e){"â"===r||"â"===r?a+="'":"â"===r||"â"===r?a+='"':"â"===r||"â"===r?a+="-":"â¦"===r?a+="...":a+="?"}return a}async function c(e,t,a){var r;let n=e.getViewport({scale:t}),i=document.createElement("canvas");i.width=Math.max(1,Math.floor(n.width)),i.height=Math.max(1,Math.floor(n.height));let l=i.getContext("2d",{willReadFrequently:!0});if(!l)return i;if(l.fillStyle=null!=(r=null==a?void 0:a.fill)?r:"#ffffff",l.fillRect(0,0,i.width,i.height),await e.render({canvas:i,canvasContext:l,viewport:n}).promise,null==a?void 0:a.invert){let e=l.getImageData(0,0,i.width,i.height),t=e.data;for(let e=0;e<t.length;e+=4)t[e]=255-t[e],t[e+1]=255-t[e+1],t[e+2]=255-t[e+2];l.putImageData(e,0,0)}return i}async function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.85,a=await s(e,"image/jpeg",t);if(!a)throw Error("The page could not be encoded as JPEG.");return new Uint8Array(await a.arrayBuffer())}async function p(e){let t=await s(e,"image/png");if(!t)throw Error("The page could not be encoded as PNG.");return new Uint8Array(await t.arrayBuffer())}function h(e){return e.replace(/\.[^.]+$/,"")||"file"}async function m(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,r=await i(),n=await r.getDocument({data:e.slice(0)}).promise,l=Math.min(n.numPages,a);for(let e=1;e<=l;e++){let a=await n.getPage(e),r=await c(a,.4),i=await s(r,"image/jpeg",.7);r.width=0,r.height=0,i&&t(e,URL.createObjectURL(i))}await n.cleanup()}function f(e){if(0===e.length)return[];let t=[...e].sort((e,t)=>
1t.y-e.y||e.x-t.x),a=[];for(let e of t){let t=e.str;if(!t)continue;let r=a[a.length-1];r&&4.5>=Math.abs(r.y-e.y)?r.parts.push({x:e.x,str:t,width:e.width}):a.push({y:e.y,parts:[{x:e.x,str:t,width:e.width}]})}let r=e=>"number"==typeof e.width&&Number.isFinite(e.width)&&e.width>0?e.x+e.width:e.x+4.5*Math.max(1,e.str.length),n=e=>{if(0===e.length)return[];let t=[...e].sort((e,t)=>e.x-t.x),a=[];for(let e=1;e<t.length;e++){let n=t[e].x-r(t[e-1]);n>.5&&n<28&&a.push(n)}a.sort((e,t)=>e-t);let n=Math.max(48,2.5*(a.length?a[Math.floor(a.length/2)]:4)),i=[],l=t[0].str;for(let e=1;e<t.length;e++){if(t[e].x-r(t[e-1])>n){let a=l.replace(/\s+/g," ").trim();a&&i.push(a),l=t[e].str;continue}let a=!/\s$/.test(l)&&!/^\s/.test(t[e].str);l+=(a?" ":"")+t[e].str}let o=l.replace(/\s+/g," ").trim();return o&&i.push(o),i},i=[],l=[];for(let e=1;e<a.length;e++){let t=a[e-1].y-a[e].y;t>0&&l.push(t)}l.sort((e,t)=>e-t);let o=Math.max(13.5,1.75*(l.length?l[Math.floor(l.length/2)]:9));for(let e=0;e<a.length;e++)e>0&&a[e-1].y-a[e].y>o&&i.push(""),i.push(...n(a[e].parts));return i}function g(e,t){let{keepOrder:a=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[];for(let n of e.split(",")){let e=n.trim();if(!e)continue;let i=e.match(/^(\d+)\s*-\s*(\d+)$/);if(i){let e=Number(i[1]),n=Number(i[2]),l=a&&e>n?-1:1,[o,s]=1===l?[Math.min(e,n),Math.max(e,n)]:[e,n];for(let e=o;1===l?e<=s:e>=s;e+=l)e>=1&&e<=t&&r.push(e-1)}else if(/^\d+$/.test(e)){let a=Number(e);a>=1&&a<=t&&r.push(a-1)}}return a?r:[...new Set(r)].sort((e,t)=>e-t)}function x(e){if(0===e.length)return"";let t=[],a=e[0],r=e[0];for(let n of e.slice(1)){if(n===r+1){r=n;continue}t.push(a===r?"".concat(a):"".concat(a,"-").concat(r)),a=r=n}return t.push(a===r?"".concat(a):"".concat(a,"-").concat(r)),t.join(", ")}},34416:(e,t,a)=>{"use strict";a.d(t,{Vz:()=>r,te:()=>o,vH:()=>i,wG:()=>l,zi:()=>n});let r={image:{maxBytes:0x2800000,warnBytes:0xc00000,summary:"Images up to 40 MB. Canvas holds the decoded bitmap, so a 40 MP photo needs roughly 160 MB of memory regardless of how small the file is."},video:{maxBytes:0x80000000,warnBytes:524288e3,summary:"Video up to 2 GB. Only the frame you are on is ever decoded, so large files are fine; the browser streams the rest."},audio:{maxBytes:0x5000000,warnBytes:0x1400000,maxUnits:1200,unitName:"seconds",summary:"Audio up to 80 MB and 20 minutes once decoded. Compressed files expand into PCM in memory, so a long podcast is heavy even when the mp3 looks small."},pdf:{maxBytes:0x9600000,warnBytes:0x2800000,maxUnits:500,unitName:"pages",summary:"PDFs up to 150 MB and 500 pages. Rendering allocates about 25 MB per page at export resolution, which is what the page cap protects."},pptx:{maxBytes:0xc800000,warnBytes:0x3200000,maxUnits:300,unitName:"slides",summary:"PowerPoint files up to 200 MB and 300 slides. A .pptx is a ZIP archive, so it is unpacked in memory before anything is read."},text:{maxBytes:0x1400000,warnBytes:4194304,summary:"Subtitle files up to 20 MB â far beyond any real caption track, which is measured in kilobytes."},office:{maxBytes:0x5000000,warnBytes:0x1400000,summary:"Office files up to 80 MB. A .docx or .xlsx is a ZIP of XML parts, unpacked in memory before anything is read."},hash:{maxBytes:0x19000000,warnBytes:0x5000000,summary:"Files up to 400 MB. The whole file is hashed in memory, so a larger one would freeze this tab rather than fail cleanly."}},n=e=>e<1024?"".concat(e," B"):e<1048576?"".concat((e/1024).toFixed(1)," KB"):e<0x40000000?"".concat((e/1048576).toFixed(1)," MB"):"".concat((e/0x40000000).toFixed(2)," GB");function i(e,t){let a=r[t];return e.size>a.maxBytes?{ok:!1,error:"That file is ".concat(n(e.size),", over the ").concat(n(a.maxBytes)," limit. The cap exists because processing happens in your browser's memory â a larger file would crash this tab rather than fail gracefully.")}:e.size>a.warnBytes?{ok:!0,warning:"".concat(n(e.size)," is large for in-browser processing. It should work, but expect it to be slow and avoid switching tabs while it runs.")}:{ok:!0}}function l(e,t){let a=r[t];return a.maxUnits&&e>a.maxUnits?{ok:!1,error:"That file has ".concat(e," ").concat(a.unitName,", over the ").concat(a.maxUnits," limit. Split it first â this cap is what stops the tab running out of memory partway through and losing the work.")}:{ok:!0}}let o=()=>new Promise(e=>setTimeout(e,0))},45347:e=>{e.exports={style:{fontFamily:"'Caveat', 'Caveat Fallback'",fontStyle:"normal"},className:"__className_34a9ff"}},48574:e=>{e.exports={style:{fontFamily:"'Indie Flower', 'Indie Flower Fallback'",fontWeight:400,fontStyle:"normal"},className:"__className_ce2ec7"}},54e3:e=>{e.exports={style:{fontFamily:"'Patrick Hand', 'Patrick Hand Fallback'",fontWeight:400,fontStyle:"normal"},className:"__className_baba7c"}},68849:(e,t,a)=>{"use strict";a.d(t,{$4:()=>_,Ip:()=>D,JU:()=>U,Ju:()=>C,Kn:()=>B,O2:()=>O,OL:()=>F,T4:()=>j,TI:()=>S,XD:()=>w,_n:()=>I,ax:()=>E,bp:()=>b,d7:()=>A,iw:()=>x,j4:()=>T,lO:()=>z,ny:()=>P,rR:()=>y});var r=a(95155),n=a(12115),i=a(45347),l=a.n(i),o=a(54e3),s=a.n(o),d=a(48574),c=a.n(d),u=a(77716),p=a(15740),h=a(34416);let m={blue:{label:"Blue ink",color:"#1e4b8c",swatch:"#1e4b8c"},black:{label:"Black ink",color:"#1a1a1a",swatch:"#1a1a1a"},pencil:{label:"Pencil",color:"#6b6b6b",swatch:"#9ca3af"}},f=[{id:"college",label:"College ruled",hint:"Blue lines + margin"},{id:"grid",label:"Grid",hint:"Notebook squares"},{id:"blank",label:"Blank",hint:"Cream + margin only"}],g=[{id:"caveat",label:"Caveat",className:l().className},{id:"patrick",label:"Patrick Hand",className:s().className},{id:"indie",label:"Indie Flower",className:c().className}],x=1224,b=1584,y=40,w=48,v=["Lecture notes \xb7 sample page","","Paste or drop content to restyle it as handwriting on lined paper.","Tweaks to ink, paper, font and neat or messy update this preview live.","","Key ideas","1. Photosynthesis stores light as chemical energy in sugar.","2. Chlorophyll absorbs mostly blue and red wavelengths.","3. The Calvin cycle fixes carbon dioxide into glucose.","","This is a webfont restyle, not AI handwriting and not OCR.","Everything runs on your device. Nothing uploads."];function k(e){let t=e>>>0;return()=>{let e=Math.imul((t+=0x6d2b79f5)^t>>>15,1|t);return(((e^=e+Math.imul(e^e>>>7,61|e))^e>>>14)>>>0)/0x100000000}}
1function N(e,t,a){let r=t.split(/\s+/).filter(Boolean),n=[],i="";for(let t of r){let r=i?"".concat(i," ").concat(t):t;if(e.measureText(r).width<=a)i=r;else if(i&&n.push(i),e.measureText(t).width<=a)i=t;else{let r="";for(let i of t){let t=r+i;e.measureText(t).width<=a?r=t:(r&&n.push(r),r=i)}i=r}}return i&&n.push(i),n}function j(e,t,a,r,n){e.fillStyle="#f7f1e3",e.fillRect(0,0,x,b);let i=k(42);e.fillStyle="rgba(120,100,70,0.035)";for(let t=0;t<900;t++){let t=i()*x,a=i()*b;e.fillRect(t,a,1.2,1.2)}if("blank"===t){e.strokeStyle="rgba(200,80,80,0.25)",e.lineWidth=1.5,e.beginPath(),e.moveTo(n-18,0),e.lineTo(n-18,b),e.stroke();return}if("college"===t){e.strokeStyle="rgba(120,160,200,0.45)",e.lineWidth=1;for(let t=r;t<b-36;t+=a)e.beginPath(),e.moveTo(36,t),e.lineTo(x-36,t),e.stroke();e.strokeStyle="rgba(210,70,70,0.55)",e.lineWidth=2,e.beginPath(),e.moveTo(n-18,0),e.lineTo(n-18,b),e.stroke();return}e.strokeStyle="rgba(120,160,200,0.35)",e.lineWidth=1;for(let t=r;t<b-36;t+=a)e.beginPath(),e.moveTo(36,t),e.lineTo(x-36,t),e.stroke();for(let t=n-18;t<x-36;t+=a)e.beginPath(),e.moveTo(t,r-a),e.lineTo(t,b-36),e.stroke()}async function _(){if("undefined"!=typeof document){await document.fonts.ready;try{await Promise.all([document.fonts.load("400 28px ".concat(l().style.fontFamily)),document.fonts.load("700 28px ".concat(l().style.fontFamily)),document.fonts.load("400 28px ".concat(s().style.fontFamily)),document.fonts.load("400 28px ".concat(c().style.fontFamily))])}catch(e){}}}function P(e,t){var a;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y,n=Math.max(1,Math.min(y,r)),i="grid"===t.paper?Math.max(22,Math.round(1.35*t.fontSize)):Math.max(28,Math.round(1.55*t.fontSize)),o=x-96-64,d=k("messy"===t.style?97:3),u=[],p=document.createElement("canvas");p.width=x,p.height=b;let h=p.getContext("2d");j(h,t.paper,i,110,96);let f=m[t.ink].color,g="patrick"===(a=t.handFont)?"".concat(s().style.fontFamily,', "Comic Sans MS", cursive'):"indie"===a?"".concat(c().style.fontFamily,', "Segoe Print", cursive'):"".concat(l().style.fontFamily,', "Segoe Print", cursive');h.fillStyle=f,h.font="".concat(t.fontSize,"px ").concat(g),h.textBaseline="alphabetic";let w=104,v=!1,_=()=>{if(u.push(p),u.length>=n){v=!0;return}(p=document.createElement("canvas")).width=x,p.height=b,j(h=p.getContext("2d"),t.paper,i,110,96),h.fillStyle=f,h.font="".concat(t.fontSize,"px ").concat(g),h.textBaseline="alphabetic",w=104};if(t.showDate){let e=new Date().toLocaleDateString(void 0,{weekday:"short",year:"numeric",month:"short",day:"numeric"});h.font="700 ".concat(Math.max(18,t.fontSize-4),"px ").concat(g),h.globalAlpha="pencil"===t.ink?.75:.9,h.fillText(e,96,w),h.globalAlpha=1,w+=i,h.strokeStyle=f,h.globalAlpha=.35,h.lineWidth=1.5,h.beginPath(),h.moveTo(96,w-i+8),h.lineTo(96+h.measureText(e).width+8,w-i+10),h.stroke(),h.globalAlpha=1}if(t.title){for(let e of(h.font="700 ".concat(t.fontSize+4,"px ").concat(g),h.fillStyle=f,N(h,t.title,o))){if(w>b-64&&(_(),v)||v)break;h.fillText(e,96,w),w+=i}w+=Math.round(.25*i)}for(let a of(h.font="".concat(t.fontSize,"px ").concat(g),h.fillStyle=f,e)){if(v||u.length>=n)break;if(!a.trim()){(w+=Math.round(.65*i))>b-64&&_();continue}for(let e of N(h,a,o)){if(v||u.length>=n||w>b-64&&(_(),v))break;let a="messy"===t.style,r=a?(d()-.5)*2.8:(d()-.5)*.6,l=96+(a?(d()-.5)*6:0);if(a){let a=e.split(" "),n=l;for(let e=0;e<a.length;e++){let i=a[e],l=(d()-.5)*Math.max(1.5,.06*t.fontSize);h.save(),h.translate(n,w+r),h.rotate((d()-.5)*1.6*Math.PI/180),h.globalAlpha="pencil"===t.ink?.7+.25*d():.88+.12*d(),h.fillText(i,0,0),h.restore(),n+=h.measureText(i).width+h.measureText(" ").width+l}}else h.globalAlpha="pencil"===t.ink?.82:1,h.fillText(e,l,w+r),h.globalAlpha=1;w+=i}}return v||u.push(p),u.slice(0,n)}function M(e){let{id:t,active:a}=e;return(0,r.jsx)("span",{"aria-hidden":!0,className:"relative block h-14 w-11 overflow-hidden rounded-md border shadow-sm ".concat(a?"border-primary/50 ring-2 ring-primary/25":"border-border/70"),style:{backgroundColor:"#f7f1e3",backgroundImage:"blank"===t?"none":"grid"===t?"repeating-linear-gradient(0deg, transparent, transparent 5px, rgba(120,160,200,0.45) 5px, rgba(120,160,200,0.45) 6px), repeating-linear-gradient(90deg, transparent, transparent 5px, rgba(120,160,200,0.35) 5px, rgba(120,160,200,0.35) 6px)":"repeating-linear-gradient(0deg, transparent, transparent 6px, rgba(120,160,200,0.5) 6px, rgba(120,160,200,0.5) 7px)"},children:(0,r.jsx)("span",{className:"absolute inset-y-0 left-[7px] w-[1.5px] bg-[rgba(210,70,70,0.55)]"})})}
1function S(){return(0,r.jsx)("span",{"aria-hidden":!0,className:"".concat(l().className," ").concat(s().className," ").concat(c().className," pointer-events-none absolute h-0 w-0 overflow-hidden opacity-0"),children:"handwritten fonts"})}function B(e){var t,a,r,i,l,o,s;let[d,c]=(0,n.useState)(null!=(t=null==e?void 0:e.ink)?t:"blue"),[u,p]=(0,n.useState)(null!=(a=null==e?void 0:e.paper)?a:"college"),[h,m]=(0,n.useState)(null!=(r=null==e?void 0:e.style)?r:"neat"),[f,g]=(0,n.useState)(null!=(i=null==e?void 0:e.handFont)?i:"caveat"),[x,b]=(0,n.useState)(null!=(l=null==e?void 0:e.fontSize)?l:28),[y,w]=(0,n.useState)(null==(o=null==e?void 0:e.showDate)||o),[v,k]=(0,n.useState)(null!=(s=null==e?void 0:e.outFormat)?s:"pdf");return{ink:d,paper:u,style:h,handFont:f,fontSize:x,showDate:y,outFormat:v,setInk:c,setPaper:p,setStyle:m,setHandFont:g,setFontSize:b,setShowDate:w,setOutFormat:k,renderOpts:{ink:d,paper:u,style:h,handFont:f,fontSize:x,showDate:y}}}function T(){let e=(0,n.useRef)([]);return(0,n.useEffect)(()=>()=>{e.current.forEach(e=>URL.revokeObjectURL(e))},[]),{track:t=>(e.current.push(t),t),revokeAll:()=>{e.current.forEach(e=>URL.revokeObjectURL(e)),e.current=[]},urlsRef:e}}function C(e){let{previewLines:t,title:a,ink:r,paper:i,style:l,handFont:o,fontSize:s,showDate:d,previewRef:c}=e,[u,p]=(0,n.useState)(!1),h=(0,n.useRef)(0),m=(0,n.useCallback)(async()=>{let e=++h.current,n=c.current;if(n)try{if(await _(),e!==h.current)return;let c=!!(t&&t.some(e=>e.trim())),u=c?t:v,m=P(u,{ink:r,paper:i,style:l,handFont:o,fontSize:s,showDate:d,title:c?a:void 0},1);if(e!==h.current)return void m.forEach(e=>{e.width=0,e.height=0});let f=m[0];if(!f)return;n.width=f.width,n.height=f.height;let g=n.getContext("2d");g&&(g.clearRect(0,0,n.width,n.height),g.drawImage(f,0,0)),f.width=0,f.height=0,p(!0)}catch(e){}},[t,a,r,i,l,o,s,d,c]);return(0,n.useEffect)(()=>{let e=window.setTimeout(()=>{m()},160);return()=>window.clearTimeout(e)},[m]),{previewReady:u}}function F(e){let{busy:t,ink:a,setInk:n,paper:i,setPaper:l,style:o,setStyle:s,handFont:d,setHandFont:c,fontSize:p,setFontSize:h,showDate:x,setShowDate:b,outFormat:y,setOutFormat:w,extras:v}=e;return(0,r.jsxs)("div",{className:"space-y-5",children:[(0,r.jsx)(u.Nk,{label:"Ink",hint:"Pen colour on the page",children:(0,r.jsx)("div",{role:"group","aria-label":"Ink colour",className:"flex flex-wrap gap-2",children:Object.keys(m).map(e=>{let i=a===e;return(0,r.jsxs)("button",{type:"button","aria-pressed":i,disabled:t,onClick:()=>n(e),className:"inline-flex min-h-11 items-center gap-2.5 rounded-full border px-3.5 py-2 text-xs font-semibold transition ".concat(i?"border-transparent bg-gradient-to-br from-primary to-[hsl(230_75%_58%)] text-primary-foreground shadow-md shadow-primary/25":"border-border/80 bg-background/60 text-muted-foreground hover:border-primary/35 hover:text-foreground"),children:[(0,r.jsx)("span",{className:"h-4 w-4 shrink-0 rounded-full shadow-inner ring-2 ring-white/40 dark:ring-black/30",style:{background:"radial-gradient(circle at 35% 30%, #fff8, transparent 45%), ".concat(m[e].swatch)}}),m[e].label]},e)})})}),(0,r.jsx)(u.Nk,{label:"Paper",hint:"Notebook texture",children:(0,r.jsx)("div",{role:"group","aria-label":"Paper style",className:"grid gap-2 sm:grid-cols-3",children:f.map(e=>{let a=i===e.id;return(0,r.jsxs)("button",{type:"button","aria-pressed":a,disabled:t,onClick:()=>l(e.id),className:"flex min-h-14 items-center gap-3 rounded-xl border px-3 py-2.5 text-left transition ".concat(a?"border-primary/40 bg-primary/10 shadow-sm":"border-border/70 bg-background/50 hover:border-primary/30"),children:[(0,r.jsx)(M,{id:e.id,active:a}),(0,r.jsxs)("span",{children:[(0,r.jsx)("span",{className:"block text-xs font-semibold text-foreground",children:e.label}),(0,r.jsx)("span",{className:"block text-[11px] text-muted-foreground",children:e.hint})]})]},e.id)})})}),(0,r.jsxs)(u.Nk,{label:"Handwriting",hint:"Webfont look, not AI strokes",children:[(0,r.jsx)("div",{role:"group","aria-label":"Handwriting font",className:"flex flex-wrap gap-2",children:g.map(e=>{let a=d===e.id;return(0,r.jsx)("button",{type:"button","aria-pressed":a,disabled:t,onClick:()=>c(e.id),className:"min-h-11 rounded-full border px-4 py-2 text-base transition ".concat(e.className," ").concat(a?"border-transparent bg-gradient-to-br from-primary to-[hsl(230_75%_58%)] text-primary-foreground shadow-md shadow-primary/25":"border-border/80 bg-background/60 text-foreground hover:border-primary/35"),children:e.label},e.id)})}),(0,r.jsx)("div",{className:"mt-3",children:(0,r.jsx)(u.Iz,{"aria-label":"Neat or messy",value:o,onChange:s,options:[{value:"neat",label:"Neat"},{value:"messy",label:"Messy"}]})})]}),(0,r.jsx)(u.k1,{label:"Font size",value:p,min:20,max:40,step:1,onChange:h,format:e=>"".concat(e,"px")}),v,(0,r.jsx)(u.Nk,{label:"Extras",children:(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-4",children:[(0,r.jsxs)("label",{className:"inline-flex min-h-11 items-center gap-2 text-sm",children:[(0,r.jsx)("input",{type:"checkbox",checked:x,onChange:e=>
1b(e.target.checked),disabled:t,className:"h-4 w-4 rounded border-border"}),"Date header"]}),(0,r.jsx)(u.Iz,{"aria-label":"Output format",value:y,onChange:w,options:[{value:"pdf",label:"PDF"},{value:"png-zip",label:"PNG zip"}]})]})})]})}function I(e){let{previewRef:t,previewReady:a,statusChip:n,subtitle:i}=e;return(0,r.jsx)("aside",{className:"order-1 lg:order-2 lg:sticky lg:top-24",children:(0,r.jsxs)("div",{className:"relative overflow-hidden rounded-2xl border border-border/60 bg-gradient-to-br from-[#3d3428]/40 via-[#2a241c]/50 to-[#1a1612]/60 p-4 shadow-[0_20px_50px_-20px_rgba(0,0,0,0.55),inset_0_1px_0_rgba(255,255,255,0.06)] backdrop-blur-sm md:p-5",children:[(0,r.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 opacity-[0.07]",style:{backgroundImage:"radial-gradient(circle at 20% 20%, #fff 0.6px, transparent 0.7px), radial-gradient(circle at 70% 60%, #fff 0.5px, transparent 0.6px)",backgroundSize:"18px 18px, 22px 22px"}}),(0,r.jsxs)("div",{className:"relative mb-3 flex flex-wrap items-center justify-between gap-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-semibold tracking-tight text-[#f3e8d4]",children:"Live notebook"}),(0,r.jsx)("p",{className:"text-[11px] text-[#d4c4a8]/80",children:i})]}),n]}),(0,r.jsxs)("div",{className:"relative mx-auto max-w-[340px]",children:[(0,r.jsx)("div",{"aria-hidden":!0,className:"absolute -inset-3 -z-10 rounded-xl bg-black/25 blur-xl"}),(0,r.jsxs)("div",{className:"relative overflow-hidden rounded-lg border border-[#c9b896]/40 bg-[#f7f1e3] shadow-[0_12px_40px_-12px_rgba(0,0,0,0.65)] ring-1 ring-black/10",children:[(0,r.jsx)("canvas",{ref:t,className:"mx-auto block h-auto w-full max-w-full transition-opacity duration-300 ".concat(a?"opacity-100":"opacity-0"),style:{imageRendering:"auto",aspectRatio:"".concat(x," / ").concat(b)}}),!a&&(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-[#f7f1e3] p-6 text-center text-sm text-[#6b5c45]",children:"Preparing notebookâ¦"})]})]}),(0,r.jsx)("p",{className:"relative mt-3 text-center text-[11px] text-[#d4c4a8]/70",children:"Preview paints one page only. Convert exports the full note set."})]})})}async function A(e){let{canvases:t,stem:r,outFormat:n,onProgressLabel:i}=e;if("png-zip"===n){let e=new(await Promise.all([a.e(5376),a.e(7496)]).then(a.t.bind(a,7496,23))).default;for(let a=0;a<t.length;a++){let n=await (0,p.m$)(t[a]);e.file("".concat(r,"-p").concat(String(a+1).padStart(2,"0"),".png"),n),t[a].width=0,t[a].height=0,await (0,h.te)()}return{blob:await e.generateAsync({type:"blob"}),name:"".concat(r,".zip")}}let{PDFDocument:l}=await a.e(7814).then(a.bind(a,57814)),o=await l.create();for(let e=0;e<t.length;e++){null==i||i("Packing page ".concat(e+1," of ").concat(t.length));let a=await (0,p.m$)(t[e]),r=await o.embedPng(a);o.addPage([612,792]).drawImage(r,{x:0,y:0,width:612,height:792}),t[e].width=0,t[e].height=0,await (0,h.te)()}return{blob:(0,p.oy)(await o.save({useObjectStreams:!1})),name:"".concat(r,".pdf")}}let R=e=>e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&");async function z(e){let t=(await Promise.all([a.e(5376),a.e(7496)]).then(a.t.bind(a,7496,23))).default,r=(await t.loadAsync(e)).file("word/document.xml");if(!r)throw Error("No word/document.xml inside that file. A .doc (the older binary format) is not a ZIP and cannot be read this way. Re-save as .docx from Word, Pages or LibreOffice.");return function(e){let t=e.split(/<w:p[\s>]/).slice(1),a=[];for(let e of t){let t,r=e.split(/<\/w:p>/)[0]||e,n="",i=/<w:tab\b[^/]*\/>|<w:br\b[^/]*\/>|<w:t\b[^>]*>([\s\S]*?)<\/w:t>/g;for(;t=i.exec(r);)t[0].startsWith("<w:tab")?n+=" ":t[0].startsWith("<w:br")?n+="\n":n+=R(t[1]||"");a.push(n.replace(/\s+$/g,""))}return a.join("\n").replace(/\n{3,}/g,"\n\n")}(await r.async("string"))}function D(e){let t=e.replace(/\r\n/g,"\n").split("\n"),a=[],r=0;for(;r<t.length;){let e=t[r];if(/^```/.test(e)){let e=[];for(r++;r<t.length&&!/^```/.test(t[r]);)e.push(t[r]),r++;for(let n of(r<t.length&&r++,a.length&&""!==a[a.length-1]&&a.push(""),e))a.push(n);a.push("");continue}if(/^(-{3,}|\*{3,}|_{3,})\s*$/.test(e)){a.push(""),r++;continue}let n=e.match(/^(#{1,6})\s+(.+)$/);if(n){a.length&&""!==a[a.length-1]&&a.push(""),a.push(L(n[2])),a.push(""),r++;continue}if(/^\s*[-*+]\s+/.test(e)){for(;r<t.length&&/^\s*[-*+]\s+/.test(t[r]);)a.push("⢠".concat(L(t[r].replace(/^\s*[-*+]\s+/,"")))),r++;continue}if(/^\s*\d+[.)]\s+/.test(e)){let e=1;for(;r<t.length&&/^\s*\d+[.)]\s+/.test(t[r]);)a.push("".concat(e,". ").concat(L(t[r].replace(/^\s*\d+[.)]\s+/,"")))),e++,r++;continue}if(!e.trim()){a.length&&""!==a[a.length-1]&&a.push(""),r++;continue}let i=[e];for(r++;r<t.length&&t[r].trim()&&!/^(#{1,6}\s|```|[-*+]\s|\d+[.)]\s)/.test(t[r])&&!/^(-{3,}|\*{3,}|_{3,})\s*$/.test(t[r]);)i.push(t[r]),r++;a.push(L(i.join(" ")))}for(;a.length&&""===a[0];)a.shift();for(;a.length&&""===a[a.length-1];)a.pop();return a}function L(e){return e.replace(/!\[([^\]]*)\]\([^)]*\)/g,"[image: $1]").replace(/\[([^\]]+)\]\(([^)]+)\)/g,"$1").replace(/\*\*([^*]+)\*\*/g,"$1").replace(/\*([^*]+)\*/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/\s+/g," ").trim()}function E(e){return e.replace(/\r\n/g,"\n").split("\n").map(e=>e.replace(/\s+$/g,""))}function U(){return(0,r.jsx)("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-primary/25 bg-primary/10 px-2.5 py-1 text-[11px] font-semibold text-primary",children:"Live sample"})}function O(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Ready to convert";return(0,r.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-emerald-500/30 bg-emerald-500/10 px-2.5 py-1 text-[11px] font-semibold text-emerald-700 dark:text-emerald-300",children:[(0,r.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500"}),e]})}},77716:(e,t,a)=>{"use strict";a.d(t,{qM:()=>m,iq:()=>f,Nk:()=>c,JA:()=>p,Iz:()=>u,k1:()=>h,r_:()=>g});var r=a(95155),n=a(12115),i=a(57249),l=a(80891),o=a(64269);let s=n.forwardRef((e,t)=>
1{let{className:a,...n}=e;return(0,r.jsxs)(l.bL,{ref:t,className:(0,o.cn)("relative flex w-full touch-none select-none items-center",a),...n,children:[(0,r.jsx)(l.CC,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:(0,r.jsx)(l.Q6,{className:"absolute h-full bg-primary"})}),(0,r.jsx)(l.zi,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background 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"})]})});s.displayName=l.bL.displayName;var d=a(4874);function c(e){let{label:t,hint:a,children:n,className:i}=e;return(0,r.jsxs)("div",{className:(0,o.cn)("space-y-2.5",i),children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[(0,r.jsx)("span",{className:"text-sm font-semibold tracking-tight text-foreground",children:t}),a?(0,r.jsx)("span",{className:"text-xs text-muted-foreground",children:a}):null]}),n]})}function u(e){let{value:t,onChange:a,options:n,"aria-label":l,className:s,size:c="md"}=e,u=(0,d.b)(),p=Math.max(0,n.findIndex(e=>e.value===t)),h=Math.max(1,n.length),m="sm"===c?"h-8 px-2.5 text-[11px]":"h-9 px-3 text-xs sm:px-3.5 sm:text-[13px]";return(0,r.jsxs)("div",{role:"group","aria-label":l,className:(0,o.cn)("relative inline-flex max-w-full flex-wrap gap-1 rounded-full border border-border/70 bg-muted/30 shadow-[inset_0_1px_0_rgba(255,255,255,0.04)] backdrop-blur-sm","sm"===c?"p-0.5":"p-1",s),children:[n.length<=6&&(0,r.jsx)(i.P.span,{"aria-hidden":!0,className:"pointer-events-none absolute inset-y-1 left-1 hidden rounded-full gradient-primary shadow-md shadow-primary/25 sm:block",style:{width:"calc((100% - 0.5rem) / ".concat(h,")")},animate:{x:"calc(".concat(p," * 100%)")},transition:{duration:.28*!!u,ease:d.GA}}),n.map(e=>{let n=e.value===t;return(0,r.jsxs)("button",{type:"button","aria-pressed":n,onClick:()=>a(e.value),className:(0,o.cn)("relative z-10 inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-full font-semibold transition-colors duration-200 motion-reduce:transition-none",m,n?"bg-foreground text-background sm:bg-transparent sm:text-primary-foreground":"text-muted-foreground hover:text-foreground"),children:[e.swatch?(0,r.jsx)("span",{className:"h-2.5 w-2.5 shrink-0 rounded-full ring-1 ring-black/10 dark:ring-white/15",style:{background:e.swatch}}):null,e.label]},e.value)})]})}function p(e){let{value:t,onChange:a,options:n,"aria-label":l,className:s}=e,c=(0,d.b)();return(0,r.jsx)("div",{role:"group","aria-label":l,className:(0,o.cn)("flex flex-wrap gap-2",s),children:n.map(e=>{let n=e.value===t;return(0,r.jsxs)(i.P.button,{type:"button","aria-pressed":n,onClick:()=>a(e.value),whileTap:c?{scale:.97}:void 0,className:(0,o.cn)("inline-flex items-center gap-1.5 rounded-full border px-3 py-1.5 text-xs font-semibold transition-all duration-200",n?"border-transparent bg-gradient-to-br from-primary to-[hsl(230_75%_58%)] text-primary-foreground shadow-md shadow-primary/25":"border-border/80 bg-background/60 text-muted-foreground hover:border-primary/35 hover:text-foreground"),children:[e.swatch?(0,r.jsx)("span",{className:"h-2.5 w-2.5 shrink-0 rounded-full ring-1 ring-black/10 dark:ring-white/20",style:{background:e.swatch}}):null,e.label]},e.value)})})}function h(e){let{id:t,label:a,value:i,min:l,max:d,step:c=1,onChange:u,format:p,className:h}=e,m=(0,n.useId)(),f=null!=t?t:m,g=p?p(i):String(i);return(0,r.jsxs)("div",{className:(0,o.cn)("space-y-2",h),children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,r.jsx)("label",{htmlFor:f,className:"text-sm font-medium text-foreground",children:a}),(0,r.jsx)("span",{className:"rounded-full border border-primary/20 bg-primary/10 px-2.5 py-0.5 text-[11px] font-semibold tabular-nums text-primary shadow-[inset_0_1px_0_rgba(255,255,255,0.06)]",children:g})]}),(0,r.jsx)(s,{id:f,min:l,max:d,step:c,value:[i],onValueChange:e=>{let t=e[0];"number"==typeof t&&u(t)},className:"py-1 [&_[role=slider]]:h-4 [&_[role=slider]]:w-4 [&_[role=slider]]:border-primary/80 [&_[role=slider]]:sha
1dow-md [&_[role=slider]]:shadow-primary/20 [&_span.absolute]:gradient-primary"})]})}function m(e){let{id:t,label:a,value:i,onChange:l,className:s}=e,d=(0,n.useId)(),c=null!=t?t:d;return(0,r.jsxs)("div",{className:(0,o.cn)("inline-flex flex-col gap-1.5",s),children:[a?(0,r.jsx)("label",{htmlFor:c,className:"text-sm font-medium text-foreground",children:a}):null,(0,r.jsxs)("label",{htmlFor:c,className:"group relative inline-flex h-10 w-14 cursor-pointer items-center justify-center overflow-hidden rounded-xl border border-border/70 bg-muted/30 shadow-[inset_0_1px_0_rgba(255,255,255,0.05)] transition hover:border-primary/40",children:[(0,r.jsx)("span",{"aria-hidden":!0,className:"absolute inset-1 rounded-lg ring-1 ring-black/10 dark:ring-white/10",style:{background:i}}),(0,r.jsx)("input",{id:c,type:"color",value:i,onChange:e=>l(e.target.value),className:"absolute inset-0 cursor-pointer opacity-0"})]}),(0,r.jsx)("span",{className:"font-mono text-[10px] uppercase tracking-wide text-muted-foreground",children:i})]})}function f(e){let{items:t,className:a}=e;return(0,r.jsx)("div",{className:(0,o.cn)("flex flex-wrap items-end gap-4",a),children:t.map(e=>{var t;return(0,r.jsx)(m,{...e},e.label+(null!=(t=e.id)?t:""))})})}function g(e){let{children:t,className:a,...n}=e;return(0,r.jsx)("button",{type:"button",className:(0,o.cn)("inline-flex items-center justify-center rounded-xl bg-gradient-to-br from-primary to-[hsl(230_75%_58%)] px-4 py-2.5 text-sm font-semibold text-primary-foreground shadow-md shadow-primary/25 transition hover:opacity-95 disabled:cursor-not-allowed disabled:opacity-50",a),...n,children:t})}},87444:(e,t,a)=>{"use strict";a.d(t,{I8:()=>s,uM:()=>o,xP:()=>d});var r=a(95155),n=a(57249),i=a(26497),l=a(4874);function o(e){let{value:t,label:a}=e,i=(0,l.b)(),o=null==t?null:Math.max(0,Math.min(1,t));return(0,r.jsxs)("div",{className:"space-y-2.5",role:"status","aria-live":"polite",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[a?(0,r.jsx)("p",{className:"text-sm font-medium text-muted-foreground",children:a}):(0,r.jsx)("span",{}),null!=o&&(0,r.jsxs)("span",{className:"tabular-nums text-xs font-semibold text-primary",children:[Math.round(100*o),"%"]})]}),(0,r.jsxs)("div",{className:"relative h-2.5 overflow-hidden rounded-full bg-muted/80 ring-1 ring-border/60",children:[(0,r.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 bg-gradient-to-r from-transparent via-primary/5 to-transparent"}),null==o?(0,r.jsx)(n.P.div,{className:"absolute inset-y-0 w-2/5 rounded-full gradient-primary shadow-[0_0_16px_hsl(262_80%_55%/0.45)]",animate:i?{x:["-40%","280%"]}:void 0,transition:i?{duration:1.25,repeat:1/0,ease:"easeInOut"}:void 0}):(0,r.jsx)(n.P.div,{className:"relative h-full rounded-full gradient-primary shadow-[0_0_14px_hsl(262_80%_55%/0.35)]",initial:!1,animate:{width:"".concat(100*o,"%")},transition:{duration:.4*!!i,ease:l.GA},children:i&&(0,r.jsx)(n.P.span,{"aria-hidden":!0,className:"absolute inset-y-0 right-0 w-8 bg-gradient-to-r from-transparent to-white/35",animate:{opacity:[.2,.65,.2]},transition:{duration:1.6,repeat:1/0,ease:"easeInOut"}})})]})]})}function s(e){let{show:t,children:a,className:o}=e,s=(0,l.b)();return(0,r.jsx)(i.N,{mode:"wait",children:t&&(0,r.jsxs)(n.P.div,{initial:!!s&&{opacity:0,y:14,scale:.975},animate:{opacity:1,y:0,scale:1},exit:s?{opacity:0,y:8,scale:.99}:void 0,transition:{duration:.45,ease:l.GA},className:"relative ".concat(null!=o?o:""),children:[(0,r.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute -inset-2 -z-10 rounded-[1.35rem] bg-gradient-to-br from-primary/20 via-violet-500/10 to-transparent opacity-80 blur-xl"}),a]},"tool-result")})}function d(e){let{children:t,className:a}=e,i=(0,l.b)();return(0,r.jsxs)(n.P.div,{initial:!!i&&{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.4,ease:l.GA},className:"relative overflow-hidden rounded-2xl border border-border/60 bg-gradient-to-br from-muted/40 via-background/80 to-muted/20 p-4 shadow-[inset_0_1px_0_rgba(255,255,255,0.04)] backdrop-blur-sm md:p-5 ".concat(null!=a?a:""),children:[(0,r.jsx)("div",{"aria-hidden":!0,
1className:"pointer-events-none absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-primary/35 to-transparent"}),(0,r.jsx)("div",{className:"relative",children:t})]})}}}]);
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.