1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,446767,e=>{"use strict";var t=e.i(565566);let a={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};a.node;let r=(0,t.default)(a);e.s(["default",0,r])},514776,e=>{"use strict";var t=e.i(565566);let a={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};a.node;let r=(0,t.default)(a);e.s(["FolderOpen",0,r],514776)},313377,e=>{"use strict";var t=e.i(565566);let a={name:"package",size:24,node:[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]};a.node;let r=(0,t.default)(a);e.s(["Package",0,r],313377)},909701,e=>{"use strict";var t=e.i(565566);let a={name:"star",size:24,node:[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]};a.node;let r=(0,t.default)(a);e.s(["default",0,r])},426210,e=>{"use strict";var t=e.i(909701);e.s(["Star",()=>t.default])},220131,e=>{e.v(t=>Promise.all(["static/immutable/chunks/38n1gy8fl4rm6.js"].map(t=>e.l(t))).then(()=>t(539249)))},926402,e=>{"use strict";var t=e.i(862833),a=e.i(487486),r=e.i(901666),s=e.i(60649),o=e.i(968582),i=e.i(80479),n=e.i(992182),l=e.i(426210),d=e.i(736051),c=e.i(898261);e.s(["FavoriteBadge",0,function({benchmarkId:e,favoriteCount:u,interactive:m=!1,onFavoriteRemoved:v}){let h=(0,d.useTranslations)("Favorites"),p=(0,d.useTranslations)("Benchmarks"),f=(0,s.useIsMobile)(),[y,k]=(0,c.useState)(!1),[b,g]=(0,c.useState)(!1),[x,w]=(0,c.useState)(!1),[j,C]=(0,c.useState)(u),T=(0,c.useCallback)(async()=>{m&&g(await (0,o.isFavorited)(e))},[e,m]);(0,c.useEffect)(()=>{queueMicrotask(()=>{k(!0)}),m&&queueMicrotask(()=>{T()})},[T,m]);let S=async t=>{if(t.preventDefault(),t.stopPropagation(),m&&y&&!x){if(w(!0),b){g(!1),C(e=>Math.max(0,e-1));let{success:t,error:a}=await (0,o.removeFavorite)(e);t?((0,i.showSuccess)(h("messages.removed"),h("messages.removedDescription")),v?.()):(g(!0),C(e=>e+1),(0,i.showError)(h("errors.title"),a?.message||h("messages.removeFailed")))}else{g(!0),C(e=>e+1);let{data:t,error:a}=await (0,o.addFavorite)(e);t?(0,i.showSuccess)(h("messages.added"),h("messages.addedDescription")):(g(!1),C(e=>Math.max(0,e-1)),(0,i.showError)(h("errors.title"),a?.message||h("messages.addFailed")))}w(!1)}},E=y&&b,F=m&&y,M=F?E?h("button.favorited"):h("button.favorite"):p("card.favorites"),P=(0,t.jsxs)(a.Badge,{variant:"secondary",className:"h-6 bg-transparent",children:[(0,t.jsx)(l.Star,{className:`h-3 w-3 ${E?"text-yellow-500":"text-foreground"}`,fill:E?"currentcolor":"none"}),(0,t.jsx)("span",{className:"ml-1",children:(0,n.formatCompactNumber)(j)})]});return F?(0,t.jsxs)(r.ResponsiveTooltip,{disabled:f,children:[(0,t.jsx)(r.ResponsiveTooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",className:"appearance-none cursor-pointer",onClick:S,disabled:x,"aria-label":E?"Remove favorite":"Add favorite",children:P})}),(0,t.jsx)(r.ResponsiveTooltipContent,{side:"top",children:(0,t.jsx)("p",{children:M})})]}):(0,t.jsxs)(r.ResponsiveTooltip,{disabled:f,children:[(0,t.jsx)(r.ResponsiveTooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",className:"appearance-none p-1","aria-label":p("card.favorites"),children:P})}),(0,t.jsx)(r.ResponsiveTooltipContent,{side:"top",children:(0,t.jsx)("p",{children:M})})]})}])},770337,e=>{"use strict";var t=e.i(862833),a=e.i(898261);let r=(0,a.createContext)(void 0);e.s(["PremiumGateProvider",0,function({children:e}){let[s,o]=(0,a.useState)(!1),[i,n]=(0,a.useState)(null),[l,d]=(0,a.useState)(null),c=(0,a.useCallback)((e,t)=>{n(e),d(t??null),o(!0)},[]),u=(0,a.useCallback)(()=>{o(!1),n(null),d(null)},[]);return(0,t.jsx)(r.Provider,{value:{isModalOpen:s,featureKey:i,customMessage:l,openGateModal:c,closeGateModal:u},children:e})},"usePremiumGateContext",0,function(){let e=(0,a.useContext)(r);if(void 0===e)throw Error("usePremiumGateContext must be used within a PremiumGateProvider");return e}])},968582,992182,188742,e=>{"use strict";async function t(e){try{let t=await fetch("/api/favorites",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({benchmark_id:e})}),a=await t.json();if(!t.ok)return{data:null,error:Error(a.error||"Failed to add favorite")};return{data:a.data,error:null}}catch(e){return{data:null,error:e instanceof Error?e:Error("Unknown error")}}}async function a(e){try{let t=await fetch(`/api/favorites?benchmark_id=${e}`,{method:"DELETE"}),a=await t.json();if(!t.ok)return{success:!1,error:Error(a.error||"Failed to remove favorite")};return{success:!0,error:null}}catch(e){return{success:!1,error:e instanceof Error?e:Error("Unknown error")}}}async function r(e){try{let t=await fetch(`/api/favorites/check?benchmark_id=${e}`);if(!t.ok)return!1;return(await t.json()).isFavorited||!1}catch{return!1}}e.s(["addFavorite",0,t,"isFavorited",0,r,"removeFavorite",0,a],968582),e.s(["formatCompactNumber",0,function(e){return e<1e3?e.toString():e<1e6?`${Math.round(e/1e3)}K`:e<1e9?`${Math.round(e/1e6)}
1M`:`${Math.round(e/1e9)}B`}],992182);var s=e.i(446767);e.s(["EyeIcon",()=>s.default],188742)}]);
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.