import{s as et,a as at,n as st,o as lt}from"../chunks/scheduler.3a17fb72.js";import{S as it,i as nt,e as p,s as l,c as x,h as mt,a as f,d as a,b as i,f as Y,g as _,j as U,k as E,l as pt,m as s,n as k,t as C,o as M,p as T}from"../chunks/index.093f8863.js";import{C as ft,H as tt,E as rt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.2dd90fed.js";import{C as Z}from"../chunks/CodeBlock.0275dc85.js";function $t(D){let m,G,P,I,r,J,$,y,o,O="Browse and inspect tasks available in LightEval.",z,n,Q,N,u,X="List all tasks:",j,c,H,g,B,h,K="Inspect a task to view its config, metrics, and requirements:",L,d,R,v,V="Example:",S,b,W,w,q,F,A;return r=new ft({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),$=new tt({props:{title:"Available tasks",local:"available-tasks",headingTag:"h1"}}),c=new Z({props:{code:"bGlnaHRldmFsJTIwdGFza3MlMjBsaXN0",highlighted:"lighteval tasks list",wrap:!1}}),g=new tt({props:{title:"Inspect specific tasks",local:"inspect-specific-tasks",headingTag:"h3"}}),d=new Z({props:{code:"bGlnaHRldmFsJTIwdGFza3MlMjBpbnNwZWN0JTIwJTNDdGFza19uYW1lJTNF",highlighted:"lighteval tasks inspect &lt;task_name&gt;",wrap:!1}}),b=new Z({props:{code:"bGlnaHRldmFsJTIwdGFza3MlMjBpbnNwZWN0JTIwdHJ1dGhmdWxxYSUzQW1j",highlighted:"lighteval tasks inspect truthfulqa:mc",wrap:!1}}),w=new rt({props:{source:"https://github.com/huggingface/lighteval/blob/main/docs/source/available-tasks.mdx"}}),{c(){m=p("meta"),G=l(),P=p("p"),I=l(),x(r.$$.fragment),J=l(),x($.$$.fragment),y=l(),o=p("p"),o.textContent=O,z=l(),n=p("iframe"),N=l(),u=p("p"),u.textContent=X,j=l(),x(c.$$.fragment),H=l(),x(g.$$.fragment),B=l(),h=p("p"),h.textContent=K,L=l(),x(d.$$.fragment),R=l(),v=p("p"),v.textContent=V,S=l(),x(b.$$.fragment),W=l(),x(w.$$.fragment),q=l(),F=p("p"),this.h()},l(t){const e=mt("svelte-u9bgzb",document.head);m=f(e,"META",{name:!0,content:!0}),e.forEach(a),G=i(t),P=f(t,"P",{}),Y(P).forEach(a),I=i(t),_(r.$$.fragment,t),J=i(t),_($.$$.fragment,t),y=i(t),o=f(t,"P",{"data-svelte-h":!0}),U(o)!=="svelte-hgljgt"&&(o.textContent=O),z=i(t),n=f(t,"IFRAME",{src:!0,frameborder:!0,width:!0,height:!0}),Y(n).forEach(a),N=i(t),u=f(t,"P",{"data-svelte-h":!0}),U(u)!=="svelte-1fpv4x5"&&(u.textContent=X),j=i(t),_(c.$$.fragment,t),H=i(t),_(g.$$.fragment,t),B=i(t),h=f(t,"P",{"data-svelte-h":!0}),U(h)!=="svelte-1pg5996"&&(h.textContent=K),L=i(t),_(d.$$.fragment,t),R=i(t),v=f(t,"P",{"data-svelte-h":!0}),U(v)!=="svelte-11lpom8"&&(v.textContent=V),S=i(t),_(b.$$.fragment,t),W=i(t),_(w.$$.fragment,t),q=i(t),F=f(t,"P",{}),Y(F).forEach(a),this.h()},h(){E(m,"name","hf:doc:metadata"),E(m,"content",ot),at(n.src,Q="https://openevals-benchmark-finder.hf.space")||E(n,"src",Q),E(n,"frameborder","0"),E(n,"width","850"),E(n,"height","450")},m(t,e){pt(document.head,m),s(t,G,e),s(t,P,e),s(t,I,e),k(r,t,e),s(t,J,e),k($,t,e),s(t,y,e),s(t,o,e),s(t,z,e),s(t,n,e),s(t,N,e),s(t,u,e),s(t,j,e),k(c,t,e),s(t,H,e),k(g,t,e),s(t,B,e),s(t,h,e),s(t,L,e),k(d,t,e),s(t,R,e),s(t,v,e),s(t,S,e),k(b,t,e),s(t,W,e),k(w,t,e),s(t,q,e),s(t,F,e),A=!0},p:st,i(t){A||(C(r.$$.fragment,t),C($.$$.fragment,t),C(c.$$.fragment,t),C(g.$$.fragment,t),C(d.$$.fragment,t),C(b.$$.fragment,t),C(w.$$.fragment,t),A=!0)},o(t){M(r.$$.fragment,t),M($.$$.fragment,t),M(c.$$.fragment,t),M(g.$$.fragment,t),M(d.$$.fragment,t),M(b.$$.fragment,t),M(w.$$.fragment,t),A=!1},d(t){t&&(a(G),a(P),a(I),a(J),a(y),a(o),a(z),a(n),a(N),a(u),a(j),a(H),a(B),a(h),a(L),a(R),a(v),a(S),a(W),a(q),a(F)),a(m),T(r,t),T($,t),T(c,t),T(g,t),T(d,t),T(b,t),T(w,t)}}}const ot='{"title":"Available tasks","local":"available-tasks","sections":[{"title":"Inspect specific tasks","local":"inspect-specific-tasks","sections":[],"depth":3}],"depth":1}';function ut(D){return lt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class vt extends it{constructor(m){super(),nt(this,m,ut,$t,et,{})}}export{vt as component};
