PageSourceSearch

https://www.termcn.dev/_next/static/chunks/90.2be5a7770c9da9d8.js

js termcn.dev collected 2026-10-04 00:10:51 UTC 1,632 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90],{80090:(e,l,n)=>{n.r(l),n.d(l,{default:()=>i});var r=n(70906),t=n(93481),a=n(79097),d=n(70450),o=n(56904);let s=(e,l,n=0)=>{let r=[];for(let t of e){let e=!!(t.children&&t.children.length>0);if(r.push({depth:n,hasChildren:e,node:t}),e&&l.has(t.key)){let e=s(t.children??[],l,n+1);r.push(...e)}}return r},h=({nodes:e,onSelect:l,defaultExpanded:n=[],expandedIcon:r="▼",collapsedIcon:h="▶",leafIcon:i="•"})=>{let c=(0,o.DP)(),[u,k]=(0,d.useState)(new Set(n)),[m,f]=(0,d.useState)(0),p=(0,d.useMemo)(()=>s(e,u),[e,u]);return(0,a.de)(e=>{let n=p[m];"up"===e.name?f(e=>Math.max(0,e-1)):"down"===e.name?f(e=>Math.min(p.length-1,e+1)):"right"===e.name||"space"===e.name?n?.hasChildren&&!u.has(n.node.key)&&k(e=>new Set([...e,n.node.key])):"left"===e.name?n?.hasChildren&&u.has(n.node.key)&&k(e=>{let l=new Set(e);return l.delete(n.node.key),l}):"return"===e.name&&n&&l?.(n.node)}),(0,t.Y)("box",{flexDirection:"column",children:p.map(({node:e,depth:l,hasChildren:n},a)=>{let d,o=a===m,s=u.has(e.key),k="  ".repeat(l);return d=n?s?r:h:e.icon??i,(0,t.FD)("box",{flexDirection:"row",children:[(0,t.Y)("text",{children:k}),(0,t.Y)("text",{fg:o?c.colors.primary:c.colors.mutedForeground,children:`${d} `}),(0,t.Y)("text",{fg:o?c.colors.primary:c.colors.foreground,children:o?(0,t.Y)("b",{children:e.label}):e.label})]},e.key)})})};function i(){return(0,r.jsx)(h,{defaultExpanded:["src"],nodes:[{children:[{key:"index",label:"index.ts"},{key:"utils",label:"utils.ts"}],key:"src",label:"src"},{key:"pkg",label:"package.json"},{key:"readme",label:"README.md"}]})}}}]);

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.