1import{s as e,t}from"./react-CtTwWkI9.js";import{t as n}from"./jsx-runtime-Deq3KfO3.js";import{t as r}from"./compiler-runtime-Bx0QOiZF.js";import{t as i}from"./proxy-DjGprnBa.js";import{t as a}from"./AnimatePresence-Bmsw9nSV.js";import{t as o}from"./use-motion-value-event-OjlydELi.js";import{t as s}from"./use-time-DVf4ydd3.js";import{c,n as l}from"./view-models-CY8FO9VV.js";import{t as u}from"./tailwind-utils-CcHpOg2S.js";import{a as d,d as f,s as p}from"./icons-kHoFoCCm.js";import{o as m}from"./stage-chrome-C-RvBIJL.js";import{t as h}from"./check-BDacwJ7Q.js";import{t as g}from"./chevron-down-CFbmn6LY.js";import{a as _,b as v,d as y,i as b,n as x,v as S,y as C,z as w}from"./option-picker-DAUnEBCj.js";import{t as T}from"./file-text-BTeO7v15.js";import{t as E}from"./layout-freeform-BM_xlOy5.js";import{t as D}from"./map-PZzS08Ni.js";import{t as O}from"./plus-CFY2eEzv.js";import{t as k}from"./scan-box-C3n7q3dh.js";import{t as A}from"./slash-B5W5kc-q.js";import{i as j,n as M,t as N}from"./popover-m5LeAEnG.js";import{n as P}from"./use-media-query-Gwh38Mqb.js";import{t as F}from"./view-switch-DzraKHdi.js";import{t as I}from"./custom-type-icon-DN4VrypD.js";import{t as ee}from"./object-entry-Cgy-KVZb.js";import{a as L,l as R,n as z,s as B}from"./inline-model-B-TEuqUG.js";import{n as V}from"./object-picker-panel-W-U27cKX.js";import{t as te}from"./read-only-a8xskMf_.js";import{n as ne}from"./island-T6hr_WUl.js";import{g as H,t as U,u as re}from"./edge-scene-paint-CdTqNroL.js";import{a as W,n as ie,r as G,t as ae}from"./demo-section-link-DK5P4Hu9.js";var K=e(t()),q=r(),oe=`Lisbon trip`,J=e=>e,Y=(e,t)=>
1({id:e,type:`paragraph`,content:R(t)}),X=(e,t)=>({id:e,type:`container`,children:t}),se=[{node:Y(`b-intro`,`Three days in Lisbon â the plan so far.`),objectType:`BLOCK_BASIC`,canvas:{x:96,y:200,width:270}},{node:X(`b-day-1`,[Y(`b-day-1-title`,`Day 1 · Alfama`),Y(`b-day-1-a`,`Tram 28 up to the castle before the crowds.`),Y(`b-day-1-b`,`Fado in the evening â book a table ahead.`)]),objectType:`CONTAINER`,canvas:{x:474,y:104,width:330}},{node:X(`b-day-2`,[Y(`b-day-2-title`,`Day 2 · Belém`),Y(`b-day-2-a`,`Pastéis de nata at the source, then the monastery.`)]),objectType:`CONTAINER`,canvas:{x:474,y:420,width:330}},{node:{id:`b-market`,type:`paragraph`,content:z(B(`Lunch at `),L(`Time Out Market`,{userObjectId:J(`url-market`),mentionType:`URL`}),B(` â go early.`))},objectType:`BLOCK_BASIC`,canvas:{x:890,y:236,width:240}},{node:Y(`b-pack`,`Pack shoes that grip â the hills are steep.`),objectType:`BLOCK_BASIC`,canvas:{x:110,y:470,width:250}}],ce=[{id:`e-1`,source:{nodeId:`b-intro`,side:`right`},target:{nodeId:`b-day-1`,side:`left`},style:`smooth`,label:``},{id:`e-2`,source:{nodeId:`b-intro`,side:`right`},target:{nodeId:`b-day-2`,side:`left`},style:`smooth`,label:``},{id:`e-3`,source:{nodeId:`b-day-1`,side:`right`},target:{nodeId:`b-market`,side:`left`},style:`smooth`,label:``},{id:`e-4`,source:{nodeId:`b-intro`,side:`bottom`},target:{nodeId:`b-pack`,side:`top`},style:`smooth`,label:``}],le=(e,t)=>({optionName:e,color:t}),ue=le(`Day 1`,`blue`),de=le(`Day 2`,`green`),fe=le(`Any day`,`gray`),pe=[{id:`day`,name:`Day`,type:`SELECT`},{id:`note`,name:`Note`,type:`TEXT`}],me=Date.now(),he=36e5,ge=(e,t,n,r)=>({objectType:`URL`,key:e,docs:{},userObjectId:J(e),userObjectUrlId:e,url:n,urlTitle:t,domainUrl:r,savedAt:me-3*he}),_e={"b-intro":{day:null,note:``},"b-day-1":{day:ue,note:`Castle opens at 9`},"b-day-2":{day:de,note:``},"b-market":{day:ue,note:``},"b-pack":{day:fe,note:``}},ve=[...se.map(({node:e,objectType:t})=>({id:e.id,kind:`blocks`,objectType:t,block:e,..._e[e.id]})),{id:`url-market`,kind:`objects`,objectType:`URL`,object:ge(`url-market`,`Time Out Market Lisboa`,`www.timeoutmarket.com/lisboa`,`timeoutmarket.com`),day:ue,note:`Closes at midnight`},{id:`pdf-guide`,kind:`objects`,objectType:`PDF`,object:{objectType:`PDF`,key:`pdf-guide`,docs:{},userObjectId:J(`pdf-guide`),pdf:{title:`Lisbon walking guide`,authors:[`Visit Lisboa`],numberOfPages:24,status:`READY`},savedAt:me-20*he},day:de,note:`Belém route, p. 14`}],ye=({key:e,title:t,url:n,domain:r,hoursAgo:i})=>({userObject:{_id:J(e),_creationTime:me-i*he,objectType:`URL`},userObjectUrl:{_id:e},globalUrl:{strippedUrl:n,urlTitle:t},globalDomain:{domainUrl:r}}),be=(e,t,n)=>({userObject:{_id:J(e),_creationTime:me-n*he,objectType:`MEMORY_MAP`,isObjectUserConfirmed:!0},userObjectMemoryMap:{_id:e,memoryMapName:t}}),xe=ye({key:`url-castle`,title:`Castelo de São Jorge â tickets and opening hours`,url:`castelodesaojorge.pt/en/visit`,domain:`castelodesaojorge.pt`,hoursAgo:1}),Se=[xe,ye({key:`url-fado`,title:`The best fado houses in Alfama`,url:`www.timeout.com/lisbon/music/best-fado-houses`,domain:`timeout.com`,hoursAgo:2}),be(`map-portugal`,`Portugal, someday`,5),ye({key:`url-sintra`,title:`Sintra day trip from Lisbon â trains and tickets`,url:`www.visitsintra.travel/day-trip`,domain:`visitsintra.travel`,hoursAgo:9}),ye({key:`url-belem`,title:`Jerónimos Monastery â plan your visit`,url:`www.patrimoniocultural.gov.pt/jeronimos`,domain:`patrimoniocultural.gov.pt`,hoursAgo:26})].map(e=>({key:e.userObject._id,kind:`object`,superObject:e,disabled:!1})),Ce={id:`url-castle`,kind:`objects`,objectType:`URL`,object:l(xe)??void 0,day:ue,note:``},we=`Book tickets online`,Z=e(n()),Te=1200,Ee=290,De=6,Oe=[.32,.72,0,1],ke={view:`doc`,kind:`all`,menuOpen:!1,hover:null,pickerOpen:!1,linked:!1,editingNote:!1,noteTyped:0,cursor:null,pressed:!1},Q=(e,t)=>[{at:e,pressed:!0},{at:e+.15,pressed:!1,...t}],Ae=(e,t)=>[{at:e,cursor:`kind`},...Q(e+.9,{menuOpen:!0}),{at:e+1.4,cursor:`kind-${t}`},{at:e+2,hover:t},...Q(e+2.4,{kind:t,menuOpen:!1,hover:null})],je=[{at:.9,cursor:`canvas`},...Q(1.8,{view:`canvas`}),{at:2.6,cursor:null},{at:6.1,cursor:`doc`},...Q(7,{view:`doc`}),{at:7.8,cursor:null}],Me=9.6,Ne=[{at:.8,cursor:`table`},...Q(1.7,{view:`table`}),...Ae(2.8,`objects`),...Ae(6.2,`blocks`),...Ae(9.6,`all`),{at:12.7,cursor:null}],Pe=14,Fe=.065,Ie=e=>Array.from({length:we.length},(t,n)=>({at:e+n*Fe,noteTyped:n+1})),Le=[{at:0,view:`table`,kind:`objects`},{at:1.4,cursor:`add`},...Q(2.3,{pickerOpen:!0}),{at:3.3,cursor:`pick`},...Q(4.4,{pickerOpen:!1,linked:!0}),{at:5.3,cursor:`note`},...Q(6.2,{editingNote:!0}),...Ie(6.6),{at:6.6+we.length*Fe+.5,editingNote:!1},{at:6.6+we.length*Fe+.9,cursor:null}],Re=6.6+we.length*Fe+2.6;function ze(e,t){let n=ke;for(let{at:r,...i}of e){if(r>t)break;n={...n,...i}}return n}var Be=e=>`${e.view}|${e.kind}|${e.menuOpen}|${e.hover}|${e.pickerOpen}|${e.linked}|${e.editingNote}|${e.noteTyped}|${e.cursor}|${e.pressed}`,Ve=[{id:`blocks`,label:`Blocks`,icon:d,hint:`Write it as a document, lay it out on a canvas. The same blocks, moved rather than copied.`,script:je,seconds:Me},{id:`objects`,label:`Objects`,icon:k,hint:`Every block and every page linked to the map is a row, with the columns you give it.`,script:Ne,seconds:Pe},{id:`link`,label:`Link object`,icon:O,hint:`Anything you have saved can be linked to the map, and it lands in the table with the rest.`,script:Le,seconds:Re}];function He(e,t){let n=(0,q.c)(4),[r,i]=(0,K.useState)(null),a,o;return n[0]!==t||n[1]!==e?(a=()=>{let n=!1,r=()=>{n||i({doc:e.current.map(We),canvas:t.current.map(Ue)})};return r(),document.fonts?.ready.then(r),()=>{n=!0}},o=[e,t],n[0]=t,n[1]=e,n[2]=a,n[3]=o):(a=n[2],o=n[3]),(0,K.useLayoutEffect)(a,o),r}function Ue(e){return e?.offsetHeight??0}function We(e){return e?.offsetHeight??0}function Ge(e){if(e.kind===`smooth`){let{a:t,c1:n,c2:r,b:i}=e;return`M ${t.x} ${t.y} C ${n.x} ${n.y}, ${r.x} ${r.y}, ${i.x} ${i.y}`}return e.points.map((e,t)=>`${t===0?`M`:`L`} ${e.x} ${e.y}`).join(` `)}function Ke(e){let t=(0,q.c)(88),{script:n}=e,r=s(),[a,c]=(0,K.useState)(ke),l;t[0]===n?l=t[1]:(l=e=>{let t=ze(n,e/1e3);c(e=>Be(e)===Be(t)?e:t)},t[0]=n,t[1]=l),o(r,`change`,l);let d=(0,K.useRef)(null),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f={},t[2]=f):f=t[2];let p=(0,K.useRef)(f),h;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(h=[],t[3]=h):h=t[3];let g=(0,K.useRef)(h),_;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(_=[],t[4]=_):_=t[4];let v=(0,K.useRef)(_),y=He(g,v),b;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(b={},t[5]=b):b=t[5];let[x,S]=(0,K.useState)(b),C;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(C=()=>{let e=d.current;if(!e)return;let t={},n={...p.current,pick:e.querySelector(`[role="listbox"][aria-label="Objects"] [role="option"]`)};for(let[r,i]of Object.entries(n)){if(!i)continue;let n=i.offsetWidth/2,a=i.offsetHeight/2,o=i;for(;o&&o!==e;)n+=o.offsetLeft,a+=o.offsetTop,o=o.offsetParent;t[r]={x:n,y:a}}S(t)},t[6]=C):C=t[6];let w;t[7]!==a.cursor||t[8]!==a.pickerOpen||t[9]!==a.view?(w=[a.view,a.pickerOpen,a.cursor],t[7]=a.cursor,t[8]=a.pickerOpen,t[9]=a.view,t[10]=w):w=t[10],(0,K.useLayoutEffect)(C,w);let T=a.view===`canvas`,E=a.view===`table`,D,O,k,A,j,M,N,P;if(t[11]!==y||t[12]!==T||t[13]!==E||t[14]!==a.cursor||t[15]!==x){let e=[];
1if(y){let t=96;for(let n of y.doc)e.push(t),t+=n+De}if(t[24]!==y||t[25]!==T||t[26]!==a.cursor||t[27]!==x){let e;t[35]===y?.canvas?e=t[36]:(e=(e,t)=>{let n=y?.canvas[t]??0;return[e.node.id,{left:e.canvas.x,top:e.canvas.y,right:e.canvas.x+e.canvas.width,bottom:e.canvas.y+n,width:e.canvas.width,height:n}]},t[35]=y?.canvas,t[36]=e);let n=new Map(se.map(e));D=a.cursor?x[a.cursor]:void 0,N=d,P=`relative overflow-hidden bg-background text-foreground`,t[37]===Symbol.for(`react.memo_cache_sentinel`)?(O={width:Te,height:790},t[37]=O):O=t[37];let r;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(r={backgroundImage:`radial-gradient(circle, rgba(128, 128, 128, 0.35) 1px, transparent 1px)`,backgroundSize:`24px 24px`},t[38]=r):r=t[38];let o=+!!T,s;t[39]===o?s=t[40]:(s={opacity:o},t[39]=o,t[40]=s);let c;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(c={duration:.6,ease:`easeOut`},t[41]=c):c=t[41],t[42]===s?k=t[43]:(k=(0,Z.jsx)(i.div,{"aria-hidden":!0,className:`absolute inset-0 bg-neutral-50`,style:r,initial:!1,animate:s,transition:c}),t[42]=s,t[43]=k),t[44]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,Z.jsxs)(`div`,{"aria-hidden":!0,className:`invisible absolute left-0 top-0`,children:[se.map((e,t)=>(0,Z.jsx)(`div`,{ref:e=>{g.current[t]=e},className:qe(e.node.type),style:{width:620},children:(0,Z.jsx)(te,{nodes:[e.node]})},`doc-${e.node.id}`)),se.map((e,t)=>(0,Z.jsx)(`div`,{ref:e=>{v.current[t]=e},className:qe(e.node.type),style:{width:e.canvas.width},children:(0,Z.jsx)(te,{nodes:[e.node]})},`canvas-${e.node.id}`))]}),t[44]=A):A=t[44],j=y&&(0,Z.jsxs)(`svg`,{"aria-hidden":!0,className:`pointer-events-none absolute inset-0`,width:1200,height:790,fill:`none`,children:[(0,Z.jsx)(`defs`,{children:(0,Z.jsx)(`marker`,{id:`memory-map-arrow`,viewBox:`0 0 10 9`,refX:`9`,refY:`4.5`,markerWidth:`10`,markerHeight:`9`,markerUnits:`userSpaceOnUse`,orient:`auto`,children:(0,Z.jsx)(`path`,{d:`M 0 0 L 10 4.5 L 0 9 Z`,fill:U.light.stroke})})}),ce.map((e,t)=>{let r=n.get(e.source.nodeId),a=n.get(e.target.nodeId);if(!r||!a)return null;let o=re(H(r,e.source.side),e.source.side,H(a,e.target.side),e.target.side,e.style);return(0,Z.jsx)(i.path,{d:Ge(o),stroke:U.light.stroke,strokeWidth:2,strokeLinecap:`round`,markerEnd:`url(#memory-map-arrow)`,initial:!1,animate:T?{pathLength:1,opacity:1}:{pathLength:0,opacity:0},transition:T?{duration:.5,delay:.75+t*.08,ease:`easeOut`}:{duration:.2}},e.id)})]}),t[24]=y,t[25]=T,t[26]=a.cursor,t[27]=x,t[28]=D,t[29]=O,t[30]=k,t[31]=A,t[32]=j,t[33]=N,t[34]=P}else D=t[28],O=t[29],k=t[30],A=t[31],j=t[32],N=t[33],P=t[34];M=y&&se.map((t,n)=>{let r=T?t.canvas.x:Ee,a=T?t.canvas.y:e[n],o=T?t.canvas.width:620;return(0,Z.jsxs)(i.div,{className:`absolute left-0 top-0`,initial:!1,animate:{x:r,y:E?a-12:a,width:o,opacity:+!E},transition:{duration:E?.3:.8,delay:E?0:n*.05,ease:Oe},children:[t.node.type!==`container`&&(0,Z.jsx)(i.div,{"aria-hidden":!0,className:u(`absolute inset-0`,ne(t.node.type)),initial:!1,animate:{opacity:+!!T},transition:{duration:.5,delay:T?.2:0}}),(0,Z.jsx)(`div`,{className:u(`relative`,qe(t.node.type)),children:(0,Z.jsx)(te,{nodes:[t.node]})})]},t.node.id)}),t[11]=y,t[12]=T,t[13]=E,t[14]=a.cursor,t[15]=x,t[16]=D,t[17]=O,t[18]=k,t[19]=A,t[20]=j,t[21]=M,t[22]=N,t[23]=P}else D=t[16],O=t[17],k=t[18],A=t[19],j=t[20],M=t[21],N=t[22],P=t[23];let F=+!!E,I;t[45]===F?I=t[46]:(I={opacity:F},t[45]=F,t[46]=I);let ee=E?.15:0,L;t[47]===ee?L=t[48]:(L={duration:.45,delay:ee,ease:Oe},t[47]=ee,t[48]=L);let R;t[49]!==E||t[50]!==a.editingNote||t[51]!==a.hover||t[52]!==a.kind||t[53]!==a.linked||t[54]!==a.menuOpen||t[55]!==a.noteTyped?(R=E&&(0,Z.jsx)($e,{kind:a.kind,menuOpen:a.menuOpen,hover:a.hover,linked:a.linked,editingNote:a.editingNote,noteText:`Book tickets online`.slice(0,a.noteTyped),targetRef:(e,t)=>{p.current[e]=t}}),t[49]=E,t[50]=a.editingNote,t[51]=a.hover,t[52]=a.kind,t[53]=a.linked,t[54]=a.menuOpen,t[55]=a.noteTyped,t[56]=R):R=t[56];let z;t[57]!==I||t[58]!==L||t[59]!==R?(z=(0,Z.jsx)(i.div,{className:`absolute inset-x-0 bottom-0 top-14`,initial:!1,animate:I,transition:L,children:R}),t[57]=I,t[58]=L,t[59]=R,t[60]=z):z=t[60];let B;t[61]===Symbol.for(`react.memo_cache_sentinel`)?(B=(e,t)=>{p.current[e]=t},t[61]=B):B=t[61];let V;t[62]!==a.pickerOpen||t[63]!==a.view?(V=(0,Z.jsx)(Je,{view:a.view,pickerOpen:a.pickerOpen,buttonRef:B}),t[62]=a.pickerOpen,t[63]=a.view,t[64]=V):V=t[64];let W;t[65]===a.pickerOpen?W=t[66]:(W=(0,Z.jsx)(st,{open:a.pickerOpen}),t[65]=a.pickerOpen,t[66]=W);let ie;t[67]===Symbol.for(`react.memo_cache_sentinel`)?(ie={x:Te*.62,y:553,opacity:0}
1,t[67]=ie):ie=t[67];let G;t[68]===D?G=t[69]:(G=D?{x:D.x-3,y:D.y-2,opacity:1}:{opacity:0},t[68]=D,t[69]=G);let ae;t[70]===Symbol.for(`react.memo_cache_sentinel`)?(ae={duration:.8,ease:Oe},t[70]=ae):ae=t[70];let oe=+!!a.pressed,J;t[71]===oe?J=t[72]:(J=(0,Z.jsx)(m,{x:0,y:0,opacity:1,pressed:oe}),t[71]=oe,t[72]=J);let Y;t[73]!==G||t[74]!==J?(Y=(0,Z.jsx)(i.div,{"aria-hidden":!0,className:`absolute left-0 top-0 z-50`,initial:ie,animate:G,transition:ae,children:J}),t[73]=G,t[74]=J,t[75]=Y):Y=t[75];let X;return t[76]!==O||t[77]!==k||t[78]!==A||t[79]!==j||t[80]!==M||t[81]!==z||t[82]!==V||t[83]!==W||t[84]!==Y||t[85]!==N||t[86]!==P?(X=(0,Z.jsxs)(`div`,{ref:N,className:P,style:O,children:[k,A,j,M,z,V,W,Y]}),t[76]=O,t[77]=k,t[78]=A,t[79]=j,t[80]=M,t[81]=z,t[82]=V,t[83]=W,t[84]=Y,t[85]=N,t[86]=P,t[87]=X):X=t[87],X}function qe(e){return e===`paragraph`||e===`list`?`px-2 py-1`:void 0}function Je(e){let t=(0,q.c)(24),{view:n,pickerOpen:r,buttonRef:i,onViewChange:a,onAdd:o}=e,s=a?`button`:`span`,c=P(Ye,!0),l=a!==void 0&&!c,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=[{value:`doc`,Icon:T},{value:`canvas`,Icon:E},{value:`linkedObjects`,Icon:f},{value:`table`,Icon:p}],t[0]=d):d=t[0];let m=d,h;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Z.jsxs)(`div`,{className:`flex h-8 min-w-0 items-center gap-2 rounded-xl border border-foreground
1/10 bg-background/75 px-2.5 text-sm font-medium shadow-sm shadow-black/10 backdrop-blur-xl`,children:[(0,Z.jsx)(I,{objectType:`MEMORY_MAP`,size:14,className:`shrink-0`}),(0,Z.jsx)(`span`,{className:`truncate`,children:oe})]}),t[1]=h):h=t[1];let g;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Z.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[h,(0,Z.jsx)(`span`,{className:`flex size-8 shrink-0 items-center justify-center rounded-xl border border-foreground/10 bg-background/75 text-muted-foreground shadow-sm shadow-black/10 ring-1 ring-inset ring-background/60 backdrop-blur-xl [&>svg]:size-4`,children:(0,Z.jsx)(A,{})})]}),t[2]=g):g=t[2];let _;t[3]===i?_=t[4]:(_=e=>i(`add`,e),t[3]=i,t[4]=_);let v;t[5]===o?v=t[6]:(v=o&&{type:`button`,onClick:o,"aria-label":`Link object`},t[5]=o,t[6]=v);let y=r&&`text-foreground`,b;t[7]===y?b=t[8]:(b=u(`flex size-8 shrink-0 items-center justify-center rounded-xl border border-foreground/10 bg-background/75 text-muted-foreground shadow-sm shadow-black/10 ring-1 ring-inset ring-background/60 backdrop-blur-xl transition-colors [&>svg]:size-4`,y),t[7]=y,t[8]=b);let x;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,Z.jsx)(O,{}),t[9]=x):x=t[9];let S;t[10]!==s||t[11]!==_||t[12]!==v||t[13]!==b?(S=(0,Z.jsx)(s,{ref:_,...v,className:b,children:x}),t[10]=s,t[11]=_,t[12]=v,t[13]=b,t[14]=S):S=t[14];let C;t[15]!==s||t[16]!==i||t[17]!==l||t[18]!==a||t[19]!==n?(C=l?(0,Z.jsx)(Xe,{view:n,views:m,onViewChange:a}):(0,Z.jsx)(`div`,{className:`flex h-8 items-center gap-0.5 rounded-xl border border-foreground
1/10 bg-background/75 p-0.5 shadow-sm shadow-black/10 ring-1 ring-inset ring-background/60 backdrop-blur-xl`,children:m.map(e=>{let{value:t,Icon:r}=e;return(0,Z.jsxs)(`span`,{className:`flex items-center`,children:[t===`linkedObjects`&&(0,Z.jsx)(`span`,{"aria-hidden":!0,className:`mx-0.5 h-4 w-px bg-foreground/10`}),(0,Z.jsx)(s,{ref:t===`linkedObjects`?void 0:e=>i(t,e),...a&&{type:`button`,onClick:()=>a(t),"aria-label":Ze[t],"aria-pressed":n===t},className:u(`flex size-7 items-center justify-center rounded-[0.625rem] text-muted-foreground transition-[background-color,color,box-shadow] duration-150 ease-out [&>svg]:size-4`,n===t&&`bg-foreground/[0.08] text-foreground shadow-[inset_0_1px_0_rgb(255_255_255_/_0.08),0_1px_2px_rgb(0_0_0_/_0.08)] ring-1 ring-inset ring-foreground/[0.06]`),children:(0,Z.jsx)(r,{})})]},t)})}),t[15]=s,t[16]=i,t[17]=l,t[18]=a,t[19]=n,t[20]=C):C=t[20];let w;return t[21]!==C||t[22]!==S?(w=(0,Z.jsxs)(`div`,{className:`pointer-events-none absolute inset-x-0 top-0 z-20 flex items-center justify-between gap-2 px-4 pt-3 [&>*]:pointer-events-auto`,children:[g,(0,Z.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[S,C]})]}),t[21]=C,t[22]=S,t[23]=w):w=t[23],w}var Ye=`(min-width: 40rem)`;function Xe(e){let t=(0,q.c)(24),{view:n,views:r,onViewChange:i}=e,[a,o]=(0,K.useState)(!1),s;if(t[0]!==n||t[1]!==r){let e;t[3]===n?e=t[4]:(e=e=>e.value===n,t[3]=n,t[4]=e),s=r.find(e),t[0]=n,t[1]=r,t[2]=s}else s=t[2];let c=s,l=`View: ${Ze[n]}`,d;t[5]===c?d=t[6]:(d=c&&(0,Z.jsx)(`span`,{className:`grid size-5 place-items-center [&>svg]:size-4`,children:(0,Z.jsx)(c.Icon,{})}),t[5]=c,t[6]=d);let f;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Z.jsx)(g,{className:`size-3 text-muted-foreground`}),t[7]=f):f=t[7];let p;t[8]!==l||t[9]!==d?(p=(0,Z.jsx)(j,{render:(0,Z.jsxs)(`button`,{type:`button`,"aria-label":l,className:`flex h-8 shrink-0 items-center gap-0.5 rounded-xl border border-foreground
1/10 bg-background/75 pl-1.5 pr-1 text-foreground shadow-sm shadow-black/10 ring-1 ring-inset ring-background/60 backdrop-blur-xl transition-transform duration-150 ease-out active:scale-[0.97] motion-reduce:transition-none`,children:[d,f]})}),t[8]=l,t[9]=d,t[10]=p):p=t[10];let m;if(t[11]!==i||t[12]!==n||t[13]!==r){let e;t[15]!==i||t[16]!==n?(e=e=>{let{value:t,Icon:r}=e,a=t===n;return(0,Z.jsxs)(`button`,{type:`button`,"aria-current":a,onClick:()=>{i(t),o(!1)},className:u(F,a&&`text-foreground`),children:[(0,Z.jsx)(`span`,{className:`text-muted-foreground`,children:(0,Z.jsx)(r,{})}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:Ze[t]}),a&&(0,Z.jsx)(h,{className:`size-3.5 shrink-0 text-black/45`})]},t)},t[15]=i,t[16]=n,t[17]=e):e=t[17],m=r.map(e),t[11]=i,t[12]=n,t[13]=r,t[14]=m}else m=t[14];let _;t[18]===m?_=t[19]:(_=(0,Z.jsx)(M,{align:`end`,className:`w-48 gap-0 p-1`,children:m}),t[18]=m,t[19]=_);let v;return t[20]!==a||t[21]!==p||t[22]!==_?(v=(0,Z.jsxs)(N,{open:a,onOpenChange:o,children:[p,_]}),t[20]=a,t[21]=p,t[22]=_,t[23]=v):v=t[23],v}var Ze={doc:`Document`,canvas:`Canvas`,linkedObjects:`Linked objects`,table:`Table`},Qe={SELECT:w,TEXT:d};function $e(e){let t=(0,q.c)(47),{kind:n,menuOpen:r,hover:a,linked:o,editingNote:s,noteText:l,targetRef:d,onKindChange:f}=e,p=f===void 0?tt:f,m=o?[...ve,Ce]:ve,[h,g]=(0,K.useState)(!1),b,w;t[0]===o?(b=t[1],w=t[2]):(b=()=>{if(!o)return;g(!0);let e=setTimeout(()=>g(!1),1600);return()=>clearTimeout(e)},w=[o],t[0]=o,t[1]=b,t[2]=w),(0,K.useEffect)(b,w);let T;t[3]===n?T=t[4]:(T=e=>n===`all`||e.kind===n,t[3]=n,t[4]=T);let E=m.filter(T),D;t[5]===d?D=t[6]:(D=e=>d(`kind`,e),t[5]=d,t[6]=D);
1let O=r&&`bg-foreground/[0.06]`,k;t[7]===O?k=t[8]:(k=u(`inline-flex rounded-md transition-colors`,O),t[7]=O,t[8]=k);let A;t[9]!==n||t[10]!==p?(A=(0,Z.jsx)(_,{kind:n,onKindChange:p}),t[9]=n,t[10]=p,t[11]=A):A=t[11];let j;t[12]!==D||t[13]!==k||t[14]!==A?(j=(0,Z.jsx)(`span`,{ref:D,className:k,children:A}),t[12]=D,t[13]=k,t[14]=A,t[15]=j):j=t[15];let M;t[16]!==a||t[17]!==n||t[18]!==r||t[19]!==d?(M=(0,Z.jsx)(nt,{kind:n,open:r,hover:a,targetRef:d}),t[16]=a,t[17]=n,t[18]=r,t[19]=d,t[20]=M):M=t[20];let N;t[21]!==j||t[22]!==M?(N=(0,Z.jsxs)(`span`,{className:`relative inline-flex`,children:[j,M]}),t[21]=j,t[22]=M,t[23]=N):N=t[23];let P=`${E.length} ${E.length===1?`row`:`rows`} · ${pe.length} properties`,F;t[24]===P?F=t[25]:(F=(0,Z.jsx)(`p`,{className:`ml-auto text-sm text-muted-foreground`,children:P}),t[24]=P,t[25]=F);let I;t[26]!==N||t[27]!==F?(I=(0,Z.jsxs)(`div`,{className:`flex items-center gap-3 px-1`,children:[N,F]}),t[26]=N,t[27]=F,t[28]=I):I=t[28];let L;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,Z.jsx)(C,{className:`flex items-center`,style:$(400),children:(0,Z.jsx)(ct,{label:`Object`})}),t[29]=L):L=t[29];let R,z;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,Z.jsx)(C,{className:`flex items-center`,style:$(160),children:(0,Z.jsx)(ct,{label:`Type`})}),z=pe.map(et),t[30]=R,t[31]=z):(R=t[30],z=t[31]);let B;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,Z.jsx)(`thead`,{className:`grid bg-background/95`,children:(0,Z.jsxs)(v,{className:`hover:bg-transparent`,children:[L,R,z,(0,Z.jsx)(C,{style:{flex:`1 0 48px`}})]})}),t[32]=B):B=t[32];let V;t[33]!==s||t[34]!==n||t[35]!==h||t[36]!==l||t[37]!==d?(V=(e,t)=>{let r=n===`all`||e.kind===n,a=e===Ce;return(0,Z.jsxs)(i.tr,{className:u(`flex w-full items-stretch overflow-hidden border-b`,a&&`transition-colors duration-1000 ease-out`,a&&h&&`bg-blue-500/10`),initial:a?{opacity:0,height:0}:{opacity:0,y:8},animate:{opacity:+!!r,y:0,height:r?`auto`:0,borderBottomWidth:+!!r},transition:{duration:.45,ease:Oe,delay:a?.25:n===`all`?.2+t*.05:0},children:[(0,Z.jsx)(S,{className:`p-0`,style:$(400),children:e.block?(0,Z.jsx)(c,{children:(0,Z.jsx)(`div`,{className:`min-w-0 flex-1 whitespace-normal text-sm text-foreground/80`,children:(0,Z.jsx)(te,{nodes:[e.block]})})}):e.object?(0,Z.jsx)(ee,{object:e.object,variant:`table`,disableNavigate:!0}):null}),(0,Z.jsx)(S,{className:`flex items-center px-3 py-2`,style:$(160),children:(0,Z.jsx)(y,{objectType:e.objectType})}),(0,Z.jsx)(S,{className:`flex items-center px-3 py-2`,style:$(224),children:e.day?(0,Z.jsx)(x,{option:e.day}):(0,Z.jsx)(`span`,{className:`text-muted-foreground/60`,children:`Empty`})}),a?(0,Z.jsxs)(S,{ref:e=>d(`note`,e),className:u(`flex items-center whitespace-normal px-3 py-2`,s&&`bg-background ring-2 ring-inset ring-ring/50`),style:$(224),children:[l,s&&(0,Z.jsx)(i.span,{"aria-hidden":!0,className:`ml-px inline-block h-4 w-px bg-foreground`,animate:{opacity:[1,1,0,0]},transition:{duration:1,times:[0,.5,.5,1],repeat:1/0}})]}):(0,Z.jsx)(S,{className:`flex items-center whitespace-normal px-3 py-2`,style:$(224),children:e.note}),(0,Z.jsx)(S,{style:{flex:`1 0 48px`}})]},e.id)},t[33]=s,t[34]=n,t[35]=h,t[36]=l,t[37]=d,t[38]=V):V=t[38];let ne=m.map(V),H;t[39]===ne?H=t[40]:(H=(0,Z.jsx)(`tbody`,{className:`grid`,children:ne}),t[39]=ne,t[40]=H);let U;t[41]!==B||t[42]!==H?(U=(0,Z.jsx)(`div`,{className:`min-h-0 flex-1 overflow-hidden rounded-xl border border-border/60 bg-background/60`,children:(0,Z.jsxs)(`table`,{className:`grid w-full text-sm`,children:[B,H]})}),t[41]=B,t[42]=H,t[43]=U):U=t[43];let re;return t[44]!==I||t[45]!==U?(re=(0,Z.jsxs)(`div`,{className:`flex h-full flex-col gap-4 px-8 py-5`,children:[I,U]}),t[44]=I,t[45]=U,t[46]=re):re=t[46],re}function et(e){return(0,Z.jsx)(C,{className:`flex items-center`,style:$(224),children:(0,Z.jsx)(ct,{label:e.name,icon:Qe[e.type]})},e.id)}function tt(){}function nt(e){let t=(0,q.c)(10),{kind:n,open:r,hover:a,targetRef
1:o}=e,s;t[0]===r?s=t[1]:(s=r?{opacity:1,scale:1}:{opacity:0,scale:.95},t[0]=r,t[1]=s);let c;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c={duration:.1,ease:`easeOut`},t[2]=c):c=t[2];let l;t[3]!==a||t[4]!==n||t[5]!==o?(l=b.map(e=>{let{value:t,label:r,Icon:i}=e;return(0,Z.jsxs)(`span`,{ref:e=>o(`kind-${t}`,e),className:u(`relative flex items-center gap-1.5 rounded-md px-1.5 py-1 text-sm [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-4`,a===t&&`bg-accent text-accent-foreground`),children:[(0,Z.jsx)(i,{}),r,t===n&&(0,Z.jsx)(h,{className:`ml-auto size-4`})]},t)}),t[3]=a,t[4]=n,t[5]=o,t[6]=l):l=t[6];let d;return t[7]!==s||t[8]!==l?(d=(0,Z.jsx)(i.div,{className:`absolute left-0 top-full z-40 mt-1 min-w-36 origin-top-left rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10`,initial:!1,animate:s,transition:c,children:l}),t[7]=s,t[8]=l,t[9]=d):d=t[9],d}function rt(){let e=(0,q.c)(1),t=(0,K.useRef)(null),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={entries:Se,isResolved:!0,vlistRef:t,onScroll:it},e[0]=n):n=e[0],n}function it(){}var at={selectObject:()=>{},createAndSelectMemoryMap:()=>{},importUrl:()=>Promise.reject(Error(`Nothing is imported from a preview`))},ot=()=>at;function st({open:e,onClose:t,useSelect:n=ot}){return(0,Z.jsx)(a,{children:e&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(i.div,{"aria-hidden":!0,onClick:t,className:`absolute inset-0 z-40 bg-black/30 backdrop-blur-sm`,initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.45,ease:[.32,.72,0,1]}},`backdrop`),(0,Z.jsxs)(i.div,{className:`font-geist absolute inset-x-2 bottom-2 z-40 mx-auto flex max-w-4xl flex-col rounded-[24px] border border-popover bg-popover text-sm text-popover-foreground shadow-xl`,style:{height:616},initial:{y:`105%`},animate:{y:0},exit:{y:`105%`},transition:{duration:.45,ease:[.22,1,.36,1]},children:[(0,Z.jsx)(`div`,{className:`flex h-3 w-full shrink-0 items-end justify-center after:block after:h-1.5 after:w-[100px] after:shrink-0 after:rounded-full after:bg-muted`}),(0,Z.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col overflow-hidden rounded-[inherit]`,children:[(0,Z.jsxs)(`div`,{className:`flex shrink-0 flex-col px-4 pt-4 text-left`,children:[(0,Z.jsx)(`p`,{className:`text-base font-medium text-foreground`,children:`Link Object`}),(0,Z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Select an object to link`})]}),(0,Z.jsx)(V,{objectTypeFilter:`RECENTS`,useEntries:rt,useSelect:n})]})]},`drawer`)]})})}var $=e=>({width:e,flex:`0 0 ${e}px`});function ct(e){let t=(0,q.c)(7),{label:n,icon:r}=e,i;t[0]===r?i=t[1]:(i=r&&(0,Z.jsx)(r,{className:`size-3.5 shrink-0 text-muted-foreground/70`,"aria-hidden":!0}),t[0]=r,t[1]=i);let a;t[2]===n?a=t[3]:(a=(0,Z.jsx)(`span`,{className:`min-w-0 truncate`,children:n}),t[2]=n,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=(0,Z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5`,children:[i,a]}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}var lt=e=>{let t=(0,q.c)(11),{seconds:n,playing:r}=e,[i,a]=(0,K.useState)(!1),o,s;t[0]===r?(o=t[1],s=t[2]):(o=()=>{if(!r)return;let e=requestAnimationFrame(()=>a(!0));return()=>cancelAnimationFrame(e)},s=[r],t[0]=r,t[1]=o,t[2]=s),(0,K.useEffect)(o,s);let c=r?`bg-blue-500`:`bg-transparent`,l;t[3]===c?l=t[4]:(l=u(`block h-full origin-left rounded-full ease-linear`,c),t[3]=c,t[4]=l);let d=`scaleX(${+!!i})`,f=r?`${n}s`:`0s`,p;t[5]!==d||t[6]!==f?(p={transform:d,transitionProperty:`transform`,transitionDuration:f},t[5]=d,t[6]=f,t[7]=p):p=t[7];let m;return t[8]!==l||t[9]!==p?(m=(0,Z.jsx)(`span`,{"aria-hidden":!0,className:`mt-3 block h-px w-full overflow-hidden rounded-full bg-slate-900/10`,children:(0,Z.jsx)(`span`,{className:l,style:p})}),t[8]=l,t[9]=p,t[10]=m):m=t[10],m},ut=e=>{let t=(0,q.c)(29),{index:n,onAdvance:r,runToken:i,onRestart:a}=e,o=(0,K.useRef)(null),[s,c]=(0,K.useState)(0),[l,u]=(0,K.useState)(!1),d=Ve[n],f,p;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>{let e=o.current;if(!e)return;let t=new ResizeObserver(e=>{let[t]=e;return c(Math.min(1,t.contentRect.width/Te))});return t.observe(e),()=>t.disconnect()},p=[],t[0]=f,t[1]=p):(f=t[0],p=t[1]),(0,K.useEffect)(f,p);let m,h;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=()=>{let e=o.current;if(!e)return;let t=new IntersectionObserver(e=>{let[t]=e;return u(t.isIntersecting)},{rootMargin:`120px`});return t.observe(e),()=>t.disconnect()},h=[],t[2]=m,t[3]=h):(m=t[2],h=t[3]),(0,K.useEffect)(m,h);let g,_;t[4]!==l||t[5]!==a?(g=()=>{l&&a()},_=[l,a],t[4]=l,t[5]=a,t[6]=g,t[7]=_):(g=t[6],_=t[7]),(0,K.useEffect)(g,_);let v,y;t[8]===a?(v=t[9],y=t[10]):(v=()=>{let e=()=>{document.hidden||a()};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},y=[a],t[8]=a,t[9]=v,t[10]=y),(0,K.useEffect)(v,y);let b;t[11]!==l||t[12]!==r||t[13]!==d.seconds?(b=()=>{if(!l)return;let e=setTimeout(r,d.seconds*1e3);return()=>clearTimeout(e)},t[11]=l,t[12]=r,t[13]=d.seconds,t[14]=b):b=t[14];let x;t[15]!==l||t[16]!==r||t[17]!==i||t[18]!==d.seconds?(x=[l,i,d.seconds,r],t[15]=l,t[16]=r,t[17]=i,t[18]=d.seconds,t[19]=x):x=t[19],(0,K.useEffect)(b,x);let S;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(S={aspectRatio:`${Te} / 790`},t[20]=S):S=t[20];let C;t[21]!==l||t[22]!==i||t[23]!==s||t[24]!==d.id||t[25]!==d.script?(C=s>0&&l&&(0,Z.jsx)(`div`,{className:`absolute left-0 top-0 origin-top-left`,style:{transform:`scale(${s})`},children:(0,Z.jsx)(Ke,{script:d.script},`${d.id}-${i}`)}),t[21]=l,t[22]=i,t[23]=s,t[24]=d.id,t[25]=d.script,t[26]=C):C=t[26];let w;return t[27]===C?w=t[28]:(w=(0,Z.jsx)(`div`,{ref:o,inert:!0,className:`pointer-events-none relative w-full overflow-hidden rounded-[6px] border border-white/70 bg-white/60 shadow-[inset_0_1px_0_rgba(255,255,255,0.9),0_2px_8px_rgba(15,23,42,0.05),0_24px_60px_-30px_rgba(15,23,42,0.35)] backdrop-blur-xl`,style:S,children:C}),t[27]=C,t[28]=w),w},dt=()=>{let e=(0,q.c)(21),[t,n]=(0,K.useState)(0),[r,i]=(0,K.useState)(0),a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=()=>{n(pt),i(mt)},e[0]=a):a=e[0];let o=a,s;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>i(ht),e[1]=s):s=e[1];let c=s,l;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=e=>{n(e),i(gt)},e[2]=l):l=e[2];let d=l,f;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Z.jsx)(D,{className:`size-3.5`,strokeWidth:2}),e[3]=f):f=e[3];let p;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,Z.jsxs)(`div`,{className:`max-w-2xl`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-2 text-[11px] font-medium uppercase tracking-[0.16em] text-blue-600`,children:[f,`MemoryMap`,(0,Z.jsx)(W,{id:G.memoryMap,label:`MemoryMap`})]}),(0,Z.jsx)(`h2`,{className:`mt-4 text-balance text-[34px] font-semibold leading-[1.05] tracking-[-0.025em] text-slate-900 sm:text-[48px]`,children:`One container, every representation`}),(0,Z.jsx)(`p`,{className:`mt-4 text-[15px] leading-relaxed text-slate-600 sm:text-[17px]`,children:`A document, canvas and table merged into one`}),(0,Z.jsx)(ie,{to:`/demo/memory-map`})]}),e[4]=p):p=e[4];let m;e[5]!==t||e[6]!==r?(m=Ve.map((e,n)=>{let i=n===t;return(0,Z.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":i,onClick:()=>d(n),className:u(`w-full rounded-xl px-3 py-2.5 text-left transition-colors`,i?`bg-white/70 shadow-[inset_0_1px_0_rgba(255,255,255,0.9),0_1px_2px_rgba(15,23,42,0.05)]`:`hover:bg-white/50`),children:[(0,Z.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,Z.jsx)(e.icon,{className:u(`size-3.5 shrink-0 transition-colors`,i?`text-blue-600`:`text-slate-400`),strokeWidth:2}),(0,Z.jsx)(`span`,{className:u(`truncate text-[13px] font-medium transition-colors`,i?`text-slate-900`
1:`text-slate-600`),children:e.label})]}),(0,Z.jsx)(lt,{seconds:e.seconds,playing:i},`${e.id}-${r}`)]},e.id)}),e[5]=t,e[6]=r,e[7]=m):m=e[7];let h;e[8]===m?h=e[9]:(h=(0,Z.jsx)(`div`,{role:`tablist`,"aria-label":`MemoryMap view`,className:`grid grid-cols-3 gap-1`,children:m}),e[8]=m,e[9]=h);let g=Ve[t],_;e[10]===g.hint?_=e[11]:(_=(0,Z.jsx)(`p`,{className:`mt-4 min-h-[2.75rem] px-3 text-[13px] leading-relaxed text-slate-600`,children:g.hint}),e[10]=g.hint,e[11]=_);let v;e[12]!==h||e[13]!==_?(v=(0,Z.jsxs)(`div`,{className:`grid items-end gap-8 lg:grid-cols-[minmax(0,1fr)_minmax(0,420px)] lg:gap-14`,children:[p,(0,Z.jsxs)(`div`,{children:[h,_]})]}),e[12]=h,e[13]=_,e[14]=v):v=e[14];let y;e[15]!==t||e[16]!==r?(y=(0,Z.jsx)(`div`,{className:`mt-6`,children:(0,Z.jsx)(ut,{index:t,onAdvance:o,runToken:r,onRestart:c})}),e[15]=t,e[16]=r,e[17]=y):y=e[17];let b;return e[18]!==y||e[19]!==v?(b=(0,Z.jsx)(ae,{id:G.memoryMap,to:`/demo/memory-map`,className:`px-6 pt-16 sm:pt-24`,children:(0,Z.jsxs)(`div`,{className:`mx-auto max-w-6xl`,children:[v,y]})}),e[18]=y,e[19]=v,e[20]=b):b=e[20],b},ft=e=>{let t=(0,q.c)(4),{kind:n,onKindChange:r,linked:i}=e,a;return t[0]!==n||t[1]!==i||t[2]!==r?(a=(0,Z.jsx)($e,{kind:n,menuOpen:!1,hover:null,linked:i,editingNote:!1,noteText:``,targetRef:_t,onKindChange:r}),t[0]=n,t[1]=i,t[2]=r,t[3]=a):a=t[3],a};function pt(e){return(e+1)%Ve.length}function mt(e){return e+1}function ht(e){return e+1}function gt(e){return e+1}function _t(){}export{at as a,ce as c,ft as i,Je as n,Te as o,dt as r,se as s,st as 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.