(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69814,e=>{"use strict";var s=e.i(43476),r=e.i(98118),l=e.i(62368);function t({className:e=""}){return(0,s.jsx)("div",{className:`animate-pulse rounded ${e}`,style:{background:"var(--border)"}})}function a(){return(0,s.jsxs)("div",{className:"py-2.5",children:[(0,s.jsx)(t,{className:"h-4 w-3/4 mb-2"}),(0,s.jsx)(t,{className:"h-3 w-1/2"})]})}function d(){return(0,s.jsxs)("div",{className:"border rounded-[10px] p-5",style:{borderColor:"var(--border)",background:"var(--surface)"},children:[(0,s.jsx)(t,{className:"h-4 w-40 mb-4"}),(0,s.jsx)(a,{}),(0,s.jsx)(a,{}),(0,s.jsx)(a,{})]})}function i({sections:e=4}){return(0,s.jsxs)("div",{children:[(0,s.jsx)(t,{className:"h-7 w-48 mb-2"}),(0,s.jsx)(t,{className:"h-4 w-72 mb-6"}),(0,s.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:Array.from({length:e},(e,r)=>(0,s.jsx)(d,{},r))})]})}e.s(["HomeView",0,function(){let e=(0,r.useWikiData)(),{refreshing:t}=(0,r.useWikiDataSources)(),{emergence:a}=e,d=e.nodes.filter(e=>"seed"===e.status||"growing"===e.status),n=[{title:"🕒 最近更新",nodes:a.recentUpdates,sub:e=>`更新于 ${e.updated}`},{title:"🌱 正在生长",nodes:d.slice(0,6),sub:e=>"seed"===e.status?"种子":"成长中"},{title:"🪐 入口 hub（最多被引用）",nodes:a.hubs,sub:e=>`← ${e.metrics.in_degree} 入链`},{title:"🌐 跨领域节点",nodes:a.crossDomainHubs,sub:e=>e.domains.join(" · ")},{title:"❓ 开放问题",nodes:a.openQuestions,sub:e=>e.body_raw.slice(0,60).replace(/\n/g,"")}];return 0===e.nodes.length&&t?(0,s.jsx)(i,{}):(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-[22px] font-semibold mt-0 mb-2",children:"欢迎回来"}),(0,s.jsxs)("p",{className:"text-[13px] mb-6",style:{color:"var(--muted)"},children:["共 ",e.nodes.length," 个节点。这里展示当前你脑中的形状——hub、跨域连接、悬而未决的问题。"]}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2 text-[12px] mb-8",style:{color:"var(--muted)"},children:Object.entries(l.META_TYPE_CONFIG).map(([e,r])=>(0,s.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,s.jsx)("span",{className:"w-[9px] h-[9px] rounded-full inline-block",style:{background:r.color}}),r.icon," ",r.label]},e))}),(0,s.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:n.map(e=>e.nodes.length>0&&(0,s.jsxs)("div",{className:"border rounded-[10px] p-5",style:{borderColor:"var(--border)",background:"var(--surface)"},children:[(0,s.jsx)("h3",{className:"text-[13px] font-semibold mb-3",style:{color:"var(--text)"},children:e.title}),(0,s.jsx)("div",{children:e.nodes.map(r=>(0,s.jsx)(l.NodeCard,{...r,subtitle:e.sub(r)},r.id))})]},e.title))})]})}],69814)}]);