(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,238819,e=>{"use strict";var t=e.i(56222),r=e.i(586415),n=e.i(537338),i=e.i(750907),s=e.i(377441),l=e.i(16043),a=e.i(613497),o=e.i(493696),c=e.i(571269),u=e.i(763576);function d(e,t){let r=new Set(t);return e.filter(e=>!r.has(e))}var f=class extends o.f{#e;#t;#r;#n;#i;#s;#l;#a;#o;#c=[];constructor(e,t,r){super(),this.#e=e,this.#n=r,this.#r=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#i.forEach(e=>{e.subscribe(t=>{this.#u(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#r=e,this.#n=t,c.f.batch(()=>{let e=this.#i,t=this.#d(this.#r);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let r=t.map(e=>e.observer),n=r.map(e=>e.getCurrentResult()),i=e.length!==r.length,s=r.some((t,r)=>t!==e[r]),l=i||s,o=!!l||n.some((e,t)=>{let r=this.#t[t];return!r||!(0,a.U)(e,r)});(l||o)&&(l&&(this.#c=t,this.#i=r),this.#t=n,this.hasListeners()&&(l&&(d(e,r).forEach(e=>{e.destroy()}),d(r,e).forEach(e=>{e.subscribe(t=>{this.#u(e,t)})})),this.#f()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let r=this.#d(e),n=r.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=r.map(e=>e.defaultedQueryOptions.queryHash);return[n,e=>this.#h(e??n,t,i),()=>this.#m(n,r)]}#m(e,t){let r=new Set;return t.map((n,i)=>{let s=e[i];return n.defaultedQueryOptions.notifyOnChangeProps?s:n.observer.trackResult(s,e=>{r.has(e)||(r.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#h(e,t,r){if(t){let n=this.#o,i=void 0!==r&&void 0!==n&&(n.length!==r.length||r.some((e,t)=>e!==n[t]));return(this.#t!==this.#a||i||t!==this.#l)&&(this.#l=t,this.#a=this.#t,void 0!==r&&(this.#o=r),this.#s=(0,a.B)(this.#s,t(e))),this.#s}return e}#p(){return!this.#n?.combine||this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#d(e){let t=new Map;this.#i.forEach(e=>{let r=e.options.queryHash;if(!r)return;let n=t.get(r);n?n.push(e):t.set(r,[e])});let r=[];return e.forEach(e=>{let n=this.#e.defaultQueryOptions(e),i=t.get(n.queryHash)?.shift()??new u.f(this.#e,n);r.push({defaultedQueryOptions:n,observer:i})}),r}#u(e,t){let r=this.#i.indexOf(e);-1!==r&&(this.#t=this.#t.slice(),this.#t[r]=t,this.#f())}#f(){if(this.hasListeners()){let e=this.#p(),t=this.#s,r=e?t:this.#h(this.#m(this.#t,this.#c),this.#n?.combine);(e||t!==r)&&c.f.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}};e.s(["f",0,function({queries:e,...o},d){let h=(0,t.d)(d),m=(0,r.f)(),p=(0,n.f)(),g=!1!==o.subscribed,b=l.useMemo(()=>e.map(e=>{let t=h.defaultQueryOptions(e);return t._optimisticResults=m?"isRestoring":g?"optimistic":void 0,t}),[e,h,m,g]);b.forEach(e=>{(0,s.p)(e);let t=h.getQueryCache().get(e.queryHash);(0,i.l)(e,p,t)}),(0,i.E)(p);let[v]=l.useState(()=>new f(h,b,o)),[x,w,y]=v.getOptimisticResult(b,o.combine),k=!m&&g;l.useSyncExternalStore(l.useCallback(e=>k?v.subscribe(c.f.batchCalls(e)):a.z,[v,k]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),l.useEffect(()=>{v.setQueries(b,o)},[b,o,v]);let j=x.some((e,t)=>(0,s.Q)(b[t],e))?x.flatMap((e,t)=>{let r=b[t];if(r&&(0,s.Q)(r,e)){let e=new u.f(h,r);return(0,s.X)(r,e,p)}return[]}):[];if(j.length>0)throw Promise.all(j);let N=x.find((e,t)=>{let r=b[t];return r&&(0,i.P)({result:e,errorResetBoundary:p,throwOnError:r.throwOnError,query:h.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(N)throw N.error;return w(y())}],238819)},859986,e=>{"use strict";var t=e.i(651681);let r={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],859986)},917258,e=>{"use strict";var t=e.i(651681);let r={name:"list-checks",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],917258)},658045,e=>{"use strict";var t=e.i(651681);let r={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],658045)},750636,e=>{"use strict";var t=e.i(651681);let r={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],750636)},74303,e=>{"use strict";var t=e.i(651681);let r={name:"table-2",size:24,node:[["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n])},150080,e=>{"use strict";var t=e.i(651681);let r={name:"trophy",size:24,node:[["path",{d:"M10 14.66V17a1 1 0 0 1-1 1 2 2 0 0 0-2 2v2",key:"pwuv1l"}],["path",{d:"M14 14.66V17a1 1 0 0 0 1 1 2 2 0 0 1 2 2v2",key:"1y54w1"}],["path",{d:"M17.916 10H19.5A2.5 2.5 0 0 0 22 7.5V5a1 1 0 0 0-1-1h-3",key:"e30mpu"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6.084 10H4.5A2.5 2.5 0 0 1 2 7.5V5a1 1 0 0 1 1-1h3",key:"i0yafy"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],150080)},790608,e=>{"use strict";e.s(["f",0,function(e){if(0===e.length)return{ids:new Set,path:[]};let t=[...e].sort((e,t)=>e.price!==t.price?e.price-t.price:t.score-e.score),r=[],n=-1/0;for(let e of t)e.score>n&&(r.push(e),n=e.score);return{ids:new Set(r.map(e=>e.id)),path:r}}])},770292,e=>{"use strict";let t=new Set(["gpt-oss-120b","gpt-oss-20b","gpt-oss-safeguard-20b"]);function r(e){return 0===e.length?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}e.s(["x",0,function(e){let t=e.split(":")[0];return t.includes("/")?t.split("/")[0]:"unknown"},"b",0,function(e){let n=e.split(":"),i=n[0],s=n[1],l=i.includes("/")?i.split("/")[1]:i;if(t.has(l))return s?`${l} (${s})`:l;let a=l.replace(/-\d{8}$/,"").replace(/-\d{4}-\d{2}-\d{2}$/,"").replace(/-\d{2}-\d{2}$/,""),o=a.match(/^(.+)-preview-(\d{2}-\d{4})$/),c=null;o&&(a=`${o[1]}-preview`,c=o[2]);let u=(a=a.replace(/-0{1,2}\d$/,"")).split("-").map((e,t)=>{let n=e.toLowerCase();return"gpt"===n&&0===t?"GPT":"glm"===n&&0===t?"GLM":/^\d+[bB]$/i.test(e)?e.toUpperCase():/^\d/.test(e)?e:/^[a-z]\d+[a-z]$/i.test(e)||e.length<=2&&/^[a-z]+$/i.test(e)?e.toUpperCase():r(e)}).join(" ");return u=function(e){let t=e.match(/^Claude (\d+(?:\.\d+)?) (\w+)$/i);if(t)return`Claude ${r(t[2])} ${t[1]}`;if(e.startsWith("GPT ")){let t=e.split(" ");if(t.length>=2)return t.join("-")}return e}(u),c&&(u=`${u} ${c}`),s&&(u=`${u} (${s})`),u}])},678628,e=>{"use strict";e.s(["f",0,"(width < 40rem), (height <= 30rem)"])},46766,e=>{"use strict";var t=e.i(16043),r=e.i(678628);function n(e){let t=window.matchMedia(r.f);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}}function i(){return window.matchMedia(r.f).matches?48:56}function s(){return 56}e.s(["f",0,function(){return(0,t.useSyncExternalStore)(n,i,s)}])},998154,893945,e=>{"use strict";var t=e.i(663456),r=e.i(16043),n=e.i(687186);function i(e){return e()}function s(){}function l(){return 0}e.s(["f",0,function(){let e,a,o=(0,t.c)(3),c=(0,r.useRef)(null);if(null===c.current){let e;o[0]===Symbol.for("react.memo_cache_sentinel")?(e={value:0,listeners:new Set},o[0]=e):e=o[0],c.current=e}o[1]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{let t=c.current;if(!t)return s;t.listeners.add(e);let r=(0,n.b)();if(0===r.length)return()=>t.listeners.delete(e);let l=()=>{let e=Number.parseFloat(getComputedStyle(document.documentElement).getPropertyValue(n.H)),r=Number.isFinite(e)?e:0;r!==t.value&&(t.value=r,t.listeners.forEach(i))};l();let a="u"a?.observe(e)),()=>{a?.disconnect(),t.listeners.delete(e)}},o[1]=e):e=o[1];let u=e;o[2]===Symbol.for("react.memo_cache_sentinel")?(a=()=>c.current?.value??0,o[2]=a):a=o[2];let d=a;return(0,r.useSyncExternalStore)(u,d,l)}],998154);var a=e.i(659350),o=e.i(136562),c=e.i(848984);e.s(["f",0,function(e){let n,i,s,l,u,d,f,h,m=(0,t.c)(27),{titleRowId:p,topClass:g,dataAttribute:b,revealOffsetPx:v,containerClassName:x,leading:w,titleIcon:y,title:k,actions:j,contentClassName:N,titleGroupClassName:C,actionsClassName:S}=e,M=void 0===N?"flex items-center justify-between gap-3 h-11":N,R=void 0===C?"flex items-center gap-3 min-w-0":C,E=void 0===S?"flex items-center gap-2 shrink-0":S,L=function(e,n){let i,s,l=(0,t.c)(4),[a,o]=(0,r.useState)(!1);return l[0]!==n||l[1]!==e?(i=()=>{let t=document.getElementById(e);if(!t)return;let r=new IntersectionObserver(e=>{let[t]=e;t&&o(!t.isIntersecting)},{rootMargin:`-${n}px 0px 0px 0px`,threshold:0});return r.observe(t),()=>r.disconnect()},s=[e,n],l[0]=n,l[1]=e,l[2]=i,l[3]=s):(i=l[2],s=l[3]),(0,r.useEffect)(i,s),a}(p,v);m[0]!==b?(n={[b]:"true"},m[0]=b,m[1]=n):n=m[1];let O=L?"opacity-100 translate-y-0":"opacity-0 pointer-events-none -translate-y-(--distance-micro) motion-reduce:translate-y-0";m[2]!==O||m[3]!==g?(i=(0,o.f)("fixed inset-x-0 z-40 bg-background/95 backdrop-blur-sm border-b border-border","transition-[opacity,translate] duration-quick ease-smooth-out motion-reduce:transition-opacity",g,O),m[2]=O,m[3]=g,m[4]=i):i=m[4];let T=!L;return m[5]!==k||m[6]!==y?(s=void 0!==k&&(0,a.jsxs)("button",{type:"button",onClick:c.Z,className:"flex items-center gap-2 min-w-0 cursor-pointer text-left",children:[y,(0,a.jsx)("span",{className:"text-sm font-medium truncate",children:k})]}),m[5]=k,m[6]=y,m[7]=s):s=m[7],m[8]!==w||m[9]!==s||m[10]!==R?(l=(0,a.jsxs)("div",{className:R,children:[w,s]}),m[8]=w,m[9]=s,m[10]=R,m[11]=l):l=m[11],m[12]!==j||m[13]!==E?(u=(0,a.jsx)("div",{className:E,children:j}),m[12]=j,m[13]=E,m[14]=u):u=m[14],m[15]!==M||m[16]!==u||m[17]!==l?(d=(0,a.jsxs)("div",{className:M,children:[l,u]}),m[15]=M,m[16]=u,m[17]=l,m[18]=d):d=m[18],m[19]!==x||m[20]!==d?(f=(0,a.jsx)("div",{className:x,children:d}),m[19]=x,m[20]=d,m[21]=f):f=m[21],m[22]!==f||m[23]!==n||m[24]!==i||m[25]!==T?(h=(0,a.jsx)("div",{...n,className:i,"aria-hidden":T,children:f}),m[22]=f,m[23]=n,m[24]=i,m[25]=T,m[26]=h):h=m[26],h}],893945)},312679,e=>{"use strict";var t=e.i(663456),r=e.i(16043),n=e.i(687186);function i(e){return e()}function s(){}function l(){return 0}e.s(["f",0,function(){let e,a,o=(0,t.c)(3),c=(0,r.useRef)(null);if(null===c.current){let e;o[0]===Symbol.for("react.memo_cache_sentinel")?(e={value:0,listeners:new Set},o[0]=e):e=o[0],c.current=e}o[1]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{let t=c.current;if(!t)return s;t.listeners.add(e);let r=(0,n.b)(),l=document.querySelector("#page-content");if(0===r.length||!l)return()=>t.listeners.delete(e);let a=()=>{let e=Number.parseFloat(getComputedStyle(l).getPropertyValue("--sticky-banner-top")),r=Number.isFinite(e)?e:0;r!==t.value&&(t.value=r,t.listeners.forEach(i))};a();let o="u"o?.observe(e));let u="u"{o?.disconnect(),u?.disconnect(),t.listeners.delete(e)}},o[1]=e):e=o[1];let u=e;o[2]===Symbol.for("react.memo_cache_sentinel")?(a=()=>c.current?.value??0,o[2]=a):a=o[2];let d=a;return(0,r.useSyncExternalStore)(u,d,l)}])},832850,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(354896),i=e.i(750636),s=e.i(16043),l=e.i(136562),a=e.i(512688),o=e.i(233452),c=e.i(139697),u=e.i(359544),d=e.i(848984),f=e.i(232458);let h=new Set(["ArrowDown","ArrowUp","End","Home","PageDown","PageUp"," ","Spacebar"]);function m({id:e,target:t,precedingElements:r,behavior:n,settleMs:i}){(0,f.m)(e);let s=(0,d.$)(),l="auto"===n||!p(t,s),a="auto"===n||!l,o="onscrollend"in window,c=null,u=null,b=a?"settled":"pending",v=!1,x=0,w=e=>{b=function(e,t){if("released"===e)return e;switch(t.type){case"scroll_started":return"pending"===e?"scrolling":e;case"target_landed":return"settled";case"released":return"released";default:return t}}(b,e)},y=()=>{w({type:"target_landed"}),"settled"===b&&(x=g(t,s))},k=(0,d.j)(),j=new Map,N=new ResizeObserver(()=>{if("released"===b)return;let e=!1;for(let t of r){let r=j.get(t),n=t.getBoundingClientRect().height;j.set(t,n),void 0!==r&&r!==n&&(e=!0)}e&&(v=!0,t.scrollIntoView({behavior:"auto",block:"start"}),window.requestAnimationFrame(()=>{v=!1,x=g(t,s)}))}),C=()=>{"released"!==b&&(w({type:"released"}),null!==c&&(window.clearTimeout(c),c=null),null!==u&&(window.clearTimeout(u),u=null),window.removeEventListener("scroll",M),window.removeEventListener("scrollend",R),window.removeEventListener("wheel",E),window.removeEventListener("touchmove",E),window.removeEventListener("keydown",L),document.removeEventListener("scrollend",R),s?.removeEventListener("scroll",M),s?.removeEventListener("scrollend",R),N.disconnect(),(0,f.l)(e))},S=()=>{null===c&&(c=window.setTimeout(C,i))},M=()=>{if("released"===b)return;if(!o){if("pending"===b){if((0,d.j)()===k)return;w({type:"scroll_started"}),S()}"scrolling"===b&&p(t,s)&&y()}let e=g(t,s),r=Math.abs(e-x)>24&&Math.abs(e)>Math.abs(x);"settled"===b&&!v&&r&&C()},R=()=>{"released"!==b&&(y(),S())},E=()=>{C()},L=e=>{h.has(e.key)&&C()};for(let e of r)j.set(e,e.getBoundingClientRect().height),N.observe(e);return window.addEventListener("scroll",M,{passive:!0}),o&&(window.addEventListener("scrollend",R),document.addEventListener("scrollend",R),s?.addEventListener("scrollend",R)),window.addEventListener("wheel",E,{passive:!0}),window.addEventListener("touchmove",E,{passive:!0}),window.addEventListener("keydown",L),s?.addEventListener("scroll",M,{passive:!0}),a&&S(),l?("smooth"===n&&(u=window.setTimeout(C,7500)),t.scrollIntoView({behavior:n,block:"start"}),"auto"===n&&y()):y(),"pending"===b&&window.requestAnimationFrame(()=>{"released"!==b&&p(t,s)&&(y(),S())}),C}function p(e,t){return 1>=Math.abs(g(e,t))}function g(e,t){let r=e.getBoundingClientRect(),n=t?.isConnected&&(0,d.b)(t)?t.getBoundingClientRect().top:0,i=r.top-n,s=Number.parseFloat(getComputedStyle(e).scrollMarginTop);return i-(Number.isNaN(s)?0:s)}var b=e.i(214530);let v={viewport:{desktopOnly:"lg:block",mobileOnly:"lg:hidden"},container:{desktopOnly:"@3xl:block",mobileOnly:"@3xl:hidden"}};function x(e){return{value:e.id,label:(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)(e.icon,{"aria-hidden":!0,className:(0,l.f)("size-4 shrink-0",e.iconClassName)}),(0,t.jsx)("span",{className:"truncate",children:e.label}),(0,t.jsx)(N,{section:e})]})}}function w(e){return!e.mobileOnly}function y(e){return e.el}function k(e){let n,i,a,o,c,u,d,f,h=(0,r.c)(19),{sections:m,activeAnchor:p,onClick:g}=e,b=(0,s.useRef)(null);h[0]===Symbol.for("react.memo_cache_sentinel")?(n=new Map,h[0]=n):n=h[0];let v=(0,s.useRef)(n),[x,w]=(0,s.useState)(null);h[1]!==p?(i=()=>{let e=v.current.get(p);if(!e)return;let t=()=>{w({top:e.offsetTop,height:e.offsetHeight})};t();let r=new ResizeObserver(t);return r.observe(e),b.current&&r.observe(b.current),()=>r.disconnect()},a=[p],h[1]=p,h[2]=i,h[3]=a):(i=h[2],a=h[3]),(0,s.useEffect)(i,a),h[4]===Symbol.for("react.memo_cache_sentinel")?(o=e=>t=>{t?v.current.set(e,t):v.current.delete(e)},h[4]=o):o=h[4];let y=o;if(h[5]!==x?(c=x&&(0,t.jsx)("div",{"aria-hidden":!0,"data-allow-inline-style":!0,className:(0,l.f)("absolute inset-x-0 rounded-md bg-accent pointer-events-none","h-(--pill-height) translate-y-(--pill-top)","transition-[translate] duration-fast ease-in-out-strong motion-reduce:transition-none"),style:{"--pill-height":`${x.height}px`,"--pill-top":`${x.top}px`}}),h[5]=x,h[6]=c):c=h[6],h[7]!==p||h[8]!==g||h[9]!==m){let e;h[11]!==p||h[12]!==g?(e=e=>(0,t.jsx)(j,{section:e,isActive:p===e.id,onClick:g,registerRef:y(e.id)},e.id),h[11]=p,h[12]=g,h[13]=e):e=h[13],u=m.map(e),h[7]=p,h[8]=g,h[9]=m,h[10]=u}else u=h[10];return h[14]!==u?(d=(0,t.jsx)("div",{className:"relative flex flex-col gap-y-px",children:u}),h[14]=u,h[15]=d):d=h[15],h[16]!==c||h[17]!==d?(f=(0,t.jsxs)("div",{ref:b,className:"relative",children:[c,d]}),h[16]=c,h[17]=d,h[18]=f):f=h[18],f}function j(e){let n,i,s,a,o,c,u=(0,r.c)(21),{section:d,isActive:f,onClick:h,registerRef:m}=e,p=d.icon,g=`#${d.id}`;u[0]!==h||u[1]!==d.id?(n=e=>h(e,d.id),u[0]=h,u[1]=d.id,u[2]=n):n=u[2];let b=f?"page":void 0,v=f?"text-accent-foreground":"text-muted-foreground hover:text-accent-foreground hover:bg-card-hover";u[3]!==v?(i=(0,l.f)("relative flex items-center gap-2 px-2 py-1.5 rounded-md text-body font-medium cursor-pointer transition-colors no-underline",v),u[3]=v,u[4]=i):i=u[4];let x=!f&&d.iconClassName;return u[5]!==x?(s=(0,l.f)("size-4",x),u[5]=x,u[6]=s):s=u[6],u[7]!==p||u[8]!==s?(a=(0,t.jsx)(p,{className:s}),u[7]=p,u[8]=s,u[9]=a):a=u[9],u[10]!==d?(o=(0,t.jsx)(N,{section:d}),u[10]=d,u[11]=o):o=u[11],u[12]!==m||u[13]!==d.label||u[14]!==g||u[15]!==n||u[16]!==b||u[17]!==i||u[18]!==a||u[19]!==o?(c=(0,t.jsxs)("a",{ref:m,href:g,onClick:n,"aria-current":b,className:i,children:[a,d.label,o]}),u[12]=m,u[13]=d.label,u[14]=g,u[15]=n,u[16]=b,u[17]=i,u[18]=a,u[19]=o,u[20]=c):c=u[20],c}function N(e){let n,s,l,a=(0,r.c)(7),{section:c}=e;return a[0]!==c.badge?(n=void 0!==c.badge&&(0,t.jsx)(o.Badge,{variant:"secondary",size:"sm",className:"shrink-0",children:c.badge}),a[0]=c.badge,a[1]=n):n=a[1],a[2]!==c.newLabel?(s=void 0!==c.newLabel&&(0,t.jsx)(i.f,{role:"img","aria-label":c.newLabel,className:"size-3.5 shrink-0 text-primary"}),a[2]=c.newLabel,a[3]=s):s=a[3],a[4]!==n||a[5]!==s?(l=(0,t.jsxs)(t.Fragment,{children:[n,s]}),a[4]=n,a[5]=s,a[6]=l):l=a[6],l}function C(e){let t=[];for(let r of e){let e=document.getElementById(r.id);e&&e.getClientRects().length>0&&t.push({id:r.id,el:e})}return t}function S(e){let t=null,r=(0,d.$)(),n=()=>{null===t&&(t=window.requestAnimationFrame(()=>{t=null,e()}))};return window.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n,{passive:!0}),r?.addEventListener("scroll",n,{passive:!0}),()=>{window.removeEventListener("scroll",n),window.removeEventListener("resize",n),r?.removeEventListener("scroll",n),null!==t&&window.cancelAnimationFrame(t)}}e.s(["f",0,function(e){let i,o,h,p,g,j,M,R,E,L,O,T,$,_,P,z,A,q,I,H,B,F,U=(0,r.c)(65),{sections:V,ariaLabel:D,desktopNavTopClass:G,desktopBreakpoint:Q,mobileTocTopClass:K,activationLinePx:Z,onSectionView:Y,onSectionSelect:W,desktopNavFooter:X,mobileNavHeader:J,children:ee}=e,et=void 0===Q?"viewport":Q,[er,en]=(0,s.useState)(V[0]?.id??""),ei=(0,s.useRef)(V[0]?.id??""),es=(0,s.useRef)(null),el=(0,s.useRef)(!1),ea=(0,a.f)(Y),eo=(0,a.f)(Z),ec=(0,s.useRef)(Z);U[0]!==eo||U[1]!==ea||U[2]!==V?(i=e=>{let{shouldUpdateHash:t}=e;if(null!==(0,f.k)())return;let r=C(V);if(0===r.length)return;let n=function(e,t){var r;let n,i=(r=t,n=(0,d.$)(),(0,d.b)(n)?n.getBoundingClientRect().top+r:r),s=function(e,t){let r,n,i=(r=(0,d.$)(),(n=(0,d.b)(r)?{scrollTop:r.scrollTop,scrollHeight:r.scrollHeight,clientHeight:r.clientHeight}:{scrollTop:window.scrollY,scrollHeight:document.documentElement.scrollHeight,clientHeight:window.innerHeight}).scrollHeight<=n.clientHeight?null:n);if(null===i)return null;let s=Math.max(0,i.scrollHeight-i.scrollTop-i.clientHeight),l=e.filter(({el:e})=>e.getBoundingClientRect().top-s>t).length;if(0===l||l>=e.length)return null;if(s<=2)return e.at(-1).id;if(s>=96*l)return null;let a=Math.ceil(s/96);return e[e.length-a].id}(e,i);if(null!==s)return s;let l=e[0].id;for(let{id:t,el:r}of e)if(r.getBoundingClientRect().top-i<=0)l=t;else break;return l}(r,eo.current),i=ei.current!==n;if(t&&(i||el.current)&&(el.current=!0,(0,b.Z)(n)),i){if(t&&!(0,f.P)()){let e=V.findIndex(e=>e.id===n),t=V[e];t&&ea.current?.(t,e)}ei.current=n,en(n)}},U[0]=eo,U[1]=ea,U[2]=V,U[3]=i):i=U[3];let eu=i;U[4]!==Z||U[5]!==eu?(o=()=>{ec.current!==Z&&(ec.current=Z,eu({shouldUpdateHash:!1}))},h=[Z,eu],U[4]=Z,U[5]=eu,U[6]=o,U[7]=h):(o=U[6],h=U[7]),(0,s.useEffect)(o,h),U[8]!==eu||U[9]!==V?(p=()=>{var e;let t,r,n,i=C(V);if(i.length>0&&!el.current){let e=window.location.hash.slice(1);(""===e||i.some(t=>t.id===e))&&(el.current=!0,es.current=function({elements:e,activeAnchorRef:t,setActiveAnchor:r}){let n=window.location.hash.slice(1);if(!n)return;let i=e.find(e=>e.id===n);if(!i)return;t.current=i.id,r(i.id);let s=e.findIndex(e=>e.id===i.id);return m({id:i.id,target:i.el,precedingElements:e.slice(0,s).map(e=>e.el),behavior:"auto",settleMs:3e3})}({elements:i,activeAnchorRef:ei,setActiveAnchor:en})??null)}eu({shouldUpdateHash:!1});let s=()=>eu({shouldUpdateHash:!0}),l=S(s),a=(0,f.X)(s),o=(e=b.z,t=null,r=(0,d.$)(),n=()=>{null!==t&&window.clearTimeout(t),t=window.setTimeout(()=>{t=null,e()},120)},window.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n,{passive:!0}),r?.addEventListener("scroll",n,{passive:!0}),()=>{null!==t&&window.clearTimeout(t),window.removeEventListener("scroll",n),window.removeEventListener("resize",n),r?.removeEventListener("scroll",n)});return()=>{es.current?.(),es.current=null,l(),a(),o()}},U[8]=eu,U[9]=V,U[10]=p):p=U[10],U[11]!==V?(g=[V],U[11]=V,U[12]=g):g=U[12],(0,s.useLayoutEffect)(p,g),U[13]!==V?(j=(e,t)=>{es.current?.();let r=C(V),n=r.findIndex(t=>t.id===e);es.current=m({id:e,target:t,precedingElements:-1===n?[]:r.slice(0,n).map(y),behavior:"smooth",settleMs:2500})},U[13]=V,U[14]=j):j=U[14];let ed=j;U[15]!==W||U[16]!==ed?(M=e=>{let t=document.querySelector(`#${e}`);t&&(es.current?.(),es.current=null,(0,f.m)(e),el.current=!0,ei.current=e,en(e),(0,b.e)(e),W?.(e),ed(e,t))},U[15]=W,U[16]=ed,U[17]=M):M=U[17];let ef=M;U[18]!==ef?(R=(e,t)=>{e.preventDefault(),ef(t)},U[18]=ef,U[19]=R):R=U[19];let eh=R;U[20]!==er||U[21]!==V?(E=V.find(e=>e.id===er)??V[0],U[20]=er,U[21]=V,U[22]=E):E=U[22];let em=E;U[23]!==V?(L=V.filter(w),U[23]=V,U[24]=L):L=U[24];let ep=L,eg=void 0!==em,eb=(0,s.useRef)(null),ev=(0,s.useRef)(null);U[25]!==eg?(O=()=>{let e=eb.current,t=ev.current;if(!eg||null===e||null===t)return;let r=()=>{e.toggleAttribute("data-stuck",function({markerBottom:e,barTop:t}){return e{"use strict";function t(){return document.querySelector("#page-content")}function r(e){return null!==e&&"auto"===getComputedStyle(e).overflowY}e.s(["$",0,t,"j",0,function(){let e=t();return r(e)?e.scrollTop:window.scrollY},"Z",0,function(){let e=t();r(e)?e.scrollTo({top:0,behavior:"smooth"}):window.scrollTo({top:0,behavior:"smooth"})},"b",0,r])},232458,e=>{"use strict";var t=e.i(427150);function r(){let e=globalThis.__openrouterSectionNavScrollLock;if((0,t.f)(e))return e.hashPinCount??=0,e.recalcListeners??=new Set,e;let r={anchor:null,hashPinCount:0,recalcListeners:new Set};return globalThis.__openrouterSectionNavScrollLock=r,r}e.s(["k",0,function(){return r().anchor},"P",0,function(){return r().hashPinCount>0},"I",0,function(){r().hashPinCount+=1},"l",0,function(e){let t=r();t.anchor===e&&(t.anchor=null)},"E",0,function(){for(let e of r().recalcListeners)e()},"m",0,function(e){r().anchor=e},"X",0,function(e){let t=r().recalcListeners;return t.add(e),()=>{t.delete(e)}},"e",0,function(){let e=r();e.hashPinCount=Math.max(0,e.hashPinCount-1)}])},214530,e=>{"use strict";var t=e.i(848984),r=e.i(232458);function n(e){let t=`#${e}`;if(window.location.hash===t)return;let r=new URL(window.location.href);r.hash=e,window.history.replaceState(null,"",r)}e.s(["z",0,function(){(0,r.P)()||(0,t.j)()>2||function(){if(""===window.location.hash)return;let{pathname:e,search:t}=window.location;window.history.replaceState(null,"",`${e}${t}`)}()},"Z",0,function(e){(0,r.P)()||2>=(0,t.j)()||n(e)},"e",0,n])},359544,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(16043),i=e.i(547322),s=e.i(193461),l=e.i(217411),a=e.i(378318);e.s(["f",0,function(e){let o,c,u,d,f,h,m,p=(0,r.c)(28),{title:g,trigger:b,options:v,value:x,onValueChange:w,shouldApplyCurrentValue:y}=e,k=void 0!==y&&y,[j,N]=(0,n.useState)(!1),[C,S]=(0,n.useState)(x),M=(0,n.useRef)(null),R=(0,n.useRef)(!1),E=(0,n.useId)(),L=(0,n.useRef)(null);p[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>L.current?.querySelector('[role="radio"][data-checked]')??null,p[0]=o):o=p[0];let O=o,T=()=>{let e=M.current;return M.current=null,null!==e&&w(e),e},$=e=>{e&&S(T()??x),N(e)},_=e=>{M.current=e!==x||k?e:null,N(!1)},P=e=>{e||T()},z=l.j;p[1]!==b?(c=(0,t.jsx)(l.V,{render:b}),p[1]=b,p[2]=c):c=p[2];let A=l.U;p[3]!==g||p[4]!==E?(u=(0,t.jsx)(a.f,{title:g,titleId:E}),p[3]=g,p[4]=E,p[5]=u):u=p[5];let q=s.x,I=e=>{"string"==typeof e&&(S(e),R.current||_(e))},H=()=>{R.current=!1},B=e=>{R.current=e.key.startsWith("Arrow"),("Enter"===e.key||" "===e.key)&&(e.preventDefault(),_(C))},F=v.map((e,r)=>(0,t.jsx)(i.f,{value:e.value,label:e.label,accessibleLabel:e.accessibleLabel,labelId:`${E}-option-${r}`,isSelected:e.value===C,onSelect:()=>{S(e.value),_(e.value)}},e.value));return p[6]!==q||p[7]!==C||p[8]!==I||p[9]!==H||p[10]!==B||p[11]!==F||p[12]!==E?(d=(0,t.jsx)(q,{ref:L,"aria-labelledby":E,value:C,onValueChange:I,onKeyUpCapture:H,onKeyDownCapture:B,className:"gap-0 px-2",children:F}),p[6]=q,p[7]=C,p[8]=I,p[9]=H,p[10]=B,p[11]=F,p[12]=E,p[13]=d):d=p[13],p[14]!==u||p[15]!==d?(f=(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[u,d]}),p[14]=u,p[15]=d,p[16]=f):f=p[16],p[17]!==A||p[18]!==O||p[19]!==f?(h=(0,t.jsx)(A,{side:"bottom",showCloseButton:!1,keepMounted:!1,initialFocus:O,className:"px-0 pt-3",children:f}),p[17]=A,p[18]=O,p[19]=f,p[20]=h):h=p[20],p[21]!==z||p[22]!==$||p[23]!==P||p[24]!==j||p[25]!==h||p[26]!==c?(m=(0,t.jsxs)(z,{swipeDirection:"down",open:j,onOpenChange:$,onOpenChangeComplete:P,children:[c,h]}),p[21]=z,p[22]=$,p[23]=P,p[24]=j,p[25]=h,p[26]=c,p[27]=m):m=p[27],m}])},547322,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(872635),i=e.i(136562),s=e.i(193461);e.s(["f",0,function(e){let l,a,o,c,u,d,f=(0,r.c)(20),{value:h,label:m,accessibleLabel:p,labelId:g,isSelected:b,onSelect:v}=e,x=b&&"bg-selected-bg";f[0]!==x?(l=(0,i.f)("flex min-h-11 cursor-pointer items-center gap-3 rounded-xl px-2 text-body select-none","transition-colors duration-quick active:bg-card-hover has-focus-visible:shadow-focus",x),f[0]=x,f[1]=l):l=f[1];let w=void 0===p?g:void 0;return f[2]!==p||f[3]!==w||f[4]!==h?(a=(0,t.jsx)("span",{className:"sr-only",children:(0,t.jsx)(s.a,{value:h,"aria-label":p,"aria-labelledby":w})}),f[2]=p,f[3]=w,f[4]=h,f[5]=a):a=f[5],f[6]!==m||f[7]!==g?(o=(0,t.jsx)("span",{id:g,className:"min-w-0 flex-1 text-foreground",children:m}),f[6]=m,f[7]=g,f[8]=o):o=f[8],f[9]!==b?(c=b&&(0,t.jsx)(n.f,{"aria-hidden":!0}),f[9]=b,f[10]=c):c=f[10],f[11]!==c?(u=(0,t.jsx)("span",{className:"flex h-4 w-7 shrink-0 items-center justify-center text-primary",children:c}),f[11]=c,f[12]=u):u=f[12],f[13]!==v||f[14]!==l||f[15]!==a||f[16]!==o||f[17]!==u||f[18]!==h?(d=(0,t.jsxs)("div",{role:"presentation","data-option-value":h,onClick:v,className:l,children:[a,o,u]}),f[13]=v,f[14]=l,f[15]=a,f[16]=o,f[17]=u,f[18]=h,f[19]=d):d=f[19],d}])},193461,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(16043),i=e.i(82153),s=e.i(533124),l=e.i(367898),a=e.i(115370),o=e.i(132887),c=e.i(111407),u=e.i(240070),d=e.i(825086);let f={checked:e=>e?{"data-checked":""}:{"data-unchecked":""},...u.f,...d.s};var h=e.i(729253),m=e.i(811673),p=e.i(93836),g=e.i(225421),b=e.i(509208),v=e.i(604672),x=e.i(141436),w=e.i(176322),y=e.i(446443),k=e.i(76129),j=e.i(599096),N=e.i(461430);let C=n.createContext(void 0);var S=e.i(442291),M=e.i(107397);let R=n.createContext(void 0),E=n.forwardRef(function(e,r){let{render:u,className:d,disabled:M=!1,readOnly:E=!1,required:L=!1,"aria-labelledby":O,value:T,inputRef:$,nativeButton:_=!1,id:P,style:z,...A}=e,q=n.useContext(C),{disabled:I,readOnly:H,required:B,form:F,checkedValue:U,touched:V=!1,validation:D,name:G,setCheckedValue:Q=a.x,setTouched:K=a.x,registerInputRef:Z=a.x}=q??{},{setTouched:Y,setFilled:W,state:X,disabled:J}=(0,x.f)(),ee=(0,y.f)(),{labelId:et,getDescriptionProps:er}=(0,k.f)(),en=J||ee.disabled||I||M,ei=H||E,es=B||L,el=q?U===T:""===T,ea=n.useRef(null),eo=(0,w.f)(en,ea),ec=n.useRef(null),eu=D?.registerInput,ed=n.useCallback(e=>eu?.(e,{controlRef:ea,value:void 0}),[eu]),ef=(0,i.A)($,ec,Z,ed);(0,s.f)(()=>{ec.current?.checked&&W(!0)},[W]),(0,s.f)(()=>{if(ec.current){if(en&&el)return void Z(null);Z(ec.current)}},[el,en,Z]);let eh=(0,m.f)(),em=(0,N.f)({id:P}),ep=_?void 0:em,eg={role:"radio","aria-checked":el,"aria-labelledby":(0,j.f)(O,et,ec,!_,ep,A["aria-label"]),[b.f]:el?"":void 0,id:_?em:eh,onKeyDown(e){"Enter"===e.key&&e.preventDefault()},onClick(e){if(e.defaultPrevented||en||ei)return;e.preventDefault();let t=ec.current;t&&(0,h.f)(t,e)},onFocus(e){eo(!0),e.defaultPrevented||en||ei||!V||(ec.current?.click(),K(!1))},onBlur(){q||eo(!1)}},{getButtonProps:eb,buttonRef:ev}=(0,g.f)({disabled:en,native:_,composite:!1}),ex={type:"radio",ref:ef,form:F,id:ep,name:G,tabIndex:-1,style:G?l.L:l.p,"aria-hidden":!0,...void 0!==T?{value:(0,S.f)(T)}:a.w,disabled:en,checked:el,required:es,readOnly:ei,onChange(e){if(e.nativeEvent.defaultPrevented||en||ei||void 0===T)return;let t=(0,o.j)(c.f.none,e.nativeEvent);Q(T,t),t.isCanceled||Y(!0)},onClick(e){e.stopPropagation()},onFocus(){ea.current?.focus()}},ew=n.useMemo(()=>({...X,required:es,disabled:en,readOnly:ei,checked:el}),[X,en,ei,el,es]),ey=void 0!==q,ek=[r,ea,ev],ej=[eg,A,eb,er,D?e=>D.getValidationProps(en,e):a.w],eN=(0,p.a)("span",e,{enabled:!ey,state:ew,ref:ek,props:ej,stateAttributesMapping:f});return(0,t.jsxs)(R.Provider,{value:ew,children:[ey?(0,t.jsx)(v.f,{tag:"span",render:u,className:d,style:z,state:ew,refs:ek,props:ej,stateAttributesMapping:f}):eN,(0,t.jsx)("input",{...ex,suppressHydrationWarning:!0})]})});var L=e.i(692933),O=e.i(288646);let T=n.forwardRef(function(e,t){let{render:r,className:i,style:s,keepMounted:l=!1,...a}=e,o=function(){let e=n.useContext(R);if(void 0===e)throw Error((0,M.f)(52));return e}(),c=o.checked,{mounted:u,transitionStatus:d,setMounted:h}=(0,O.f)(c),m={...o,transitionStatus:d},g=n.useRef(null),b=(0,p.a)("span",e,{ref:[t,g],state:m,props:a,stateAttributesMapping:f});return((0,L.f)({batch:!0,enabled:!c,open:c,ref:g,onComplete(){c||h(!1)}}),l||u)?b:null});e.s(["Indicator",0,T,"Root",0,E],401506);var $=e.i(401506),$=$,_=$,P=e.i(389475),z=e.i(815922),A=e.i(393298),q=e.i(597233),I=e.i(587135),H=e.i(967090);Object.keys(d.t);let B=n.createContext(void 0);var F=e.i(621441),U=e.i(957854);let V=[q.B],D=n.forwardRef(function(e,r){let{render:l,className:a,disabled:o,readOnly:c,required:u,onValueChange:f,value:h,defaultValue:p,form:g,name:b,inputRef:v,id:w,style:y,...j}=e,{setTouched:N,setFocused:S,validationMode:R,name:E,disabled:L,state:O,validation:T,setDirty:$,setFilled:_,validityData:q}=(0,x.f)(),{labelId:D}=(0,k.f)(),{clearErrors:G,elementRef:Q}=(0,F.f)(),K=function(e=!1){let t=n.useContext(B);if(!t&&!e)throw Error((0,M.f)(86));return t}(!0),Z=L||o,Y=E??b,W=(0,m.f)(w),[X,J]=(0,P.f)({controlled:h,default:p,name:"RadioGroup",state:"value"}),[ee,et]=n.useState(!1),er=(0,z.f)((e,t)=>{f?.(e,t),t.isCanceled||J(e)}),en=T.getInputControl,ei=n.useMemo(()=>({get current(){return en()}}),[en]),es=n.useRef(null),el=n.useRef(null),ea=(0,i.A)(es,v),eo=n.useRef(ea),ec=(0,z.f)(e=>{(es.current!==e||eo.current!==ea)&&(eo.current=ea,ea?.(e))});(0,s.f)(()=>{ec(es.current)},[ea,ec]);let eu=(0,z.f)(e=>{if(e){if(!e.disabled){el.current||(el.current=e);let t=es.current;(e.checked||null==t||t.disabled)&&ec(e)}return()=>{el.current===e&&(el.current=null),es.current===e&&ec(null)}}}),ed=(0,z.f)(()=>{let e=Q.current;if(!e)return X??null;for(let t of T.registeredInputs.keys())if(t.checked&&!t.matches(":disabled")&&(!e||t.form===e||null===t.form&&!t.hasAttribute("form")))return X??null;return null});(0,H.f)(ei,W,X??null,ed,!Z,b),(0,U.f)(X,()=>{G(Y),$(X!==q.initialValue),_(null!=X),T.change(X);let e=el.current;null==X&&e&&!e.disabled&&ec(e)});let ef=D??K?.legendId,eh={...O,disabled:Z??!1,required:u??!1,readOnly:c??!1},em=n.useMemo(()=>({checkedValue:X,disabled:Z,form:g,validation:T,name:Y,readOnly:c,registerInputRef:eu,required:u,setCheckedValue:er,setTouched:et,touched:ee}),[X,Z,g,T,Y,c,eu,u,er,et,ee]);return(0,t.jsx)(C.Provider,{value:em,children:(0,t.jsx)(I.f,{render:l,className:a,style:y,state:eh,props:[{id:w,role:"radiogroup","aria-required":u||void 0,"aria-disabled":Z||void 0,"aria-readonly":c||void 0,"aria-labelledby":ef,onBlur(e){(0,A.I)(e.currentTarget,e.relatedTarget)||(et(!1),N(!0),S(!1),"onBlur"===R&&T.commit(X))},onKeyDownCapture(e){e.key.startsWith("Arrow")&&et(!0)}},j,e=>T.getValidationProps(Z??!1,e)],refs:[r],stateAttributesMapping:d.s,enableHomeAndEndKeys:!1,modifierKeys:V})})});var G=e.i(136562);e.s(["x",0,function(e){let n,i,s,l,a,o=(0,r.c)(10);return o[0]!==e?({className:n,ref:s,...i}=e,o[0]=e,o[1]=n,o[2]=i,o[3]=s):(n=o[1],i=o[2],s=o[3]),o[4]!==n?(l=(0,G.f)("grid gap-2",n),o[4]=n,o[5]=l):l=o[5],o[6]!==i||o[7]!==s||o[8]!==l?(a=(0,t.jsx)(D,{className:l,...i,ref:s}),o[6]=i,o[7]=s,o[8]=l,o[9]=a):a=o[9],a},"a",0,function(e){let n,i,s,l,a,o,c=(0,r.c)(11);return c[0]!==e?({className:n,ref:s,...i}=e,c[0]=e,c[1]=n,c[2]=i,c[3]=s):(n=c[1],i=c[2],s=c[3]),c[4]!==n?(l=(0,G.f)("flex shrink-0 items-center justify-center aspect-square h-4 w-4 rounded-full border border-foreground/30 bg-muted text-primary cursor-pointer hover:border-foreground/50 data-[checked]:border-primary ring-offset-background focus:outline-none focus-visible:border-focus-border focus-visible:shadow-focus data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",n),c[4]=n,c[5]=l):l=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)($.Indicator,{keepMounted:!0,className:"flex items-center justify-center transition-[scale,opacity] duration-quick ease-smooth-out motion-reduce:transition-opacity motion-reduce:data-[unchecked]:scale-100 data-[unchecked]:scale-(--scale-large) data-[unchecked]:opacity-0",children:(0,t.jsx)("span",{"aria-hidden":!0,className:"size-2 rounded-full bg-current forced-colors:bg-[CanvasText]"})}),c[6]=a):a=c[6],c[7]!==i||c[8]!==s||c[9]!==l?(o=(0,t.jsx)(_.Root,{ref:s,className:l,...i,children:a}),c[7]=i,c[8]=s,c[9]=l,c[10]=o):o=c[10],o}],193461)},378318,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(612927),i=e.i(199168),s=e.i(139697),l=e.i(217411);e.s(["f",0,function(e){let a,o,c,u,d,f,h=(0,r.c)(12),{title:m,titleId:p}=e,g=(0,i.o)();return h[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("div",{"aria-hidden":!0,className:"mx-auto h-1 w-10 rounded-full bg-foreground/20"}),h[0]=a):a=h[0],h[1]!==m||h[2]!==p?(o=(0,t.jsx)(l.L,{id:p,children:m}),h[1]=m,h[2]=p,h[3]=o):o=h[3],h[4]!==g?(c=g("Close"),h[4]=g,h[5]=c):c=h[5],h[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(n.X,{"aria-hidden":!0}),h[6]=u):u=h[6],h[7]!==c?(d=(0,t.jsx)(l.O,{render:(0,t.jsx)(s.Button,{variant:"ghost",size:"icon",shape:"pill",touchTarget:"below-sm","aria-label":c,children:u})}),h[7]=c,h[8]=d):d=h[8],h[9]!==o||h[10]!==d?(f=(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[a,(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4 pr-2 pl-4",children:[o,d]})]}),h[9]=o,h[10]=d,h[11]=f):f=h[11],f}])},336810,e=>{"use strict";var t=e.i(497214),r=e.i(315368);let n={Blue:"var(--chart-1)",Mint:"var(--chart-2)",YellowOrange:"var(--chart-3)",Orange:"var(--chart-4)",Tomato:"var(--chart-5)",SteelBlue:"var(--chart-6)",YellowGreen:"var(--chart-7)",Orchid:"var(--chart-8)",Turquoise:"var(--chart-9)",HotPink:"var(--chart-10)",Goldenrod:"var(--chart-11)",MediumSlateBlue:"var(--chart-12)",LightCoral:"var(--chart-13)",OliveDrab:"var(--chart-14)",PaleVioletRed:"var(--chart-15)",MediumSeaGreen:"var(--chart-16)",DarkKhaki:"var(--chart-17)",Purple:"var(--chart-18)",OrangeRed:"var(--chart-19)",SeaGreen:"var(--chart-20)",Slate400:"#94a3b8"},i=[n.Blue,n.Mint,n.YellowOrange,n.Orange,n.Tomato,n.SteelBlue,n.YellowGreen,n.Orchid,n.Turquoise,n.HotPink,n.Goldenrod,n.MediumSlateBlue,n.LightCoral,n.OliveDrab,n.PaleVioletRed,n.MediumSeaGreen,n.DarkKhaki,n.Purple,n.OrangeRed,n.SeaGreen],s=e=>!(e.length<3)&&new Set(e.map(e=>new Date(e)).map(e=>e.toISOString().slice(0,10))).sizeMath.round(e+i*r)))}let s=Math.ceil(e/i)*i,l=Math.floor(r/i)*i,a=Math.floor((l-s)/i)+1;if(a<2)return[];let o=Math.max(1,Math.round((a-1)/(n-1))),c=Math.floor((a-1)/o)+1;return Array.from({length:c},(e,t)=>l-(c-1-t)*o*i)},"D",0,(e,n)=>{let i=(0,t.H)(e.map(e=>(0,r.I)(String(e[l])).getUTCFullYear())),a=(0,t.H)(e.map(e=>(0,r.I)(String(e[l])).toISOString().slice(0,10)));return{containsMultipleYears:i.length>1,containsMultipleDays:a.length>1,isHighRes:s(n)}},"I",0,function(e){return void 0===e||e?"opacity-100":"opacity-50"}])},511667,e=>{"use strict";var t=e.i(336810);let r="Other",n=t.F.Slate400;function i(e){return e===r||"Others"===e}function s(e){let t=0x811c9dc5;for(let r=0;r>>0;return t}e.s(["w",0,n,"d",0,r,"C",0,"__other__","z",0,function(e,r){let l=new Map,a=new Set;for(let o of[...new Set(e)].toSorted()){if(i(o)){l.set(o,n);continue}if(0===r.length){l.set(o,t.a);continue}let e=s(o)%r.length,c=function({preferredSlot:e,paletteLength:t,claimedSlots:r}){for(let n=0;n{"use strict";var t=e.i(663456),r=e.i(16043);e.s(["f",0,function(e){let n,i,s,l,a,o,c,u=(0,t.c)(25);u[0]!==e?(n=void 0===e?{}:e,u[0]=e,u[1]=n):n=u[1];let{threshold:d,root:f,rootMargin:h,freezeOnceVisible:m,initialIsIntersecting:p,onChange:g}=n,b=void 0===d?0:d,v=void 0===f?null:f,x=void 0===h?"0%":h,w=void 0!==m&&m,[y,k]=(0,r.useState)(null),[j,N]=(0,r.useState)(void 0!==p&&p),[C,S]=(0,r.useState)(void 0);u[2]!==g?(i=(e,t)=>{g?.(e,t)},u[2]=g,u[3]=i):i=u[3];let M=(0,r.useEffectEvent)(i),R=!!C&&j&&w;u[4]!==y||u[5]!==w||u[6]!==R||u[7]!==M||u[8]!==v||u[9]!==x||u[10]!==b?(s=()=>{if(!y||!("IntersectionObserver"in window)||R)return;let e=new IntersectionObserver(t=>{for(let r of t)N(r.isIntersecting),S(r),M(r.isIntersecting,r),r.isIntersecting&&w&&e.disconnect()},{threshold:b,root:v,rootMargin:x});return e.observe(y),()=>{e.disconnect()}},u[4]=y,u[5]=w,u[6]=R,u[7]=M,u[8]=v,u[9]=x,u[10]=b,u[11]=s):s=u[11],u[12]!==b?(l=JSON.stringify(b),u[12]=b,u[13]=l):l=u[13],u[14]!==y||u[15]!==w||u[16]!==R||u[17]!==v||u[18]!==x||u[19]!==l?(a=[y,l,v,x,R,w],u[14]=y,u[15]=w,u[16]=R,u[17]=v,u[18]=x,u[19]=l,u[20]=a):a=u[20],(0,r.useEffect)(s,a),u[21]===Symbol.for("react.memo_cache_sentinel")?(o=e=>{k(e??null)},u[21]=o):o=u[21];let E=o;return u[22]!==C||u[23]!==j?(c={ref:E,isIntersecting:j,entry:C},u[22]=C,u[23]=j,u[24]=c):c=u[24],c}])},315368,e=>{"use strict";var t=e.i(30368),r=e.i(272114),n=e.i(647204);let i=e=>{let t=(0,r.z)(e);return new Date((0,n.V)(t)?0/0:t.data)};e.s(["$",0,function(e,r,n=!1){return(0,t.f)(e).date(i(r),{timeZone:"UTC",preset:n?"medium":"day-month"})??"—"},"M",0,function(e,{value:r,shouldIncludeDay:n=!1,timeZone:s}){let l=(0,t.f)(e),a=i(r);return(n?l.dateTime(a,{timeZone:s,preset:"chart-numeric-hour"}):l.time(a,{timeZone:s,preset:"numeric"}))??"—"},"I",0,i,"n",0,function(e,t){return"utc"===e||"UTC"===t?void 0:t}])},430022,e=>{"use strict";e.s(["v",0,function(e){if(!/^\d{4}-\d{2}-\d{2}$/u.test(e))return!1;let t=new Date(`${e}T00:00:00.000Z`);return!Number.isNaN(t.getTime())&&t.toISOString().slice(0,10)===e},"o",0,function(e){return!Number.isNaN(e.getTime())},"N",0,864e5,"V",0,3600,"X",0,6e4,"O",0,2592e6,"R",0,1e3,"b",0,6048e5,"y",0,function(e){if(!e)return new Date(0/0);let t=e.replace(" ","T");return new Date(/[zZ]$|[+-]\d{2}:\d{2}$/.test(t)?t:`${t}Z`)},"P",0,function(e,t){if(!e)return t;if(e instanceof Date)return Number.isNaN(e.getTime())?t:e;if("string"==typeof e||"number"==typeof e){let t=new Date(e);if(!Number.isNaN(t.getTime()))return t}return t},"S",0,function(e,t=0){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+t,1))},"Q",0,e=>e.toISOString().split("T")[0]])},487980,e=>{"use strict";var t=e.i(659350),r=e.i(663456);e.i(707060);var n=e.i(196991),i=e.i(859986);e.i(406201);var s=e.i(967605);e.s(["f",0,function(){let e,l=(0,r.c)(1);return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)(s.Link,{href:"/benchmarks",className:"text-body text-muted-foreground hover:text-accent-foreground inline-flex min-h-10 items-center gap-1.5 self-start md:min-h-0",children:[(0,t.jsx)(i.f,{className:"size-4 shrink-0"}),(0,t.jsx)(n.T,{children:"All benchmarks"})]}),l[0]=e):e=l[0],e}])},74177,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(46766),i=e.i(998154),s=e.i(893945),l=e.i(645364);e.s(["BenchmarkScrolledNav",0,function(e){let a,o=(0,r.c)(3),{title:c}=e,u=Math.round(.8*(0,n.f)())+(0,i.f)();return o[0]!==u||o[1]!==c?(a=(0,t.jsx)(s.f,{titleRowId:l.i,topClass:l.R,dataAttribute:"data-benchmark-scrolled-nav",revealOffsetPx:u,containerClassName:"mx-auto max-w-7xl px-6",title:c,actions:null}),o[0]=u,o[1]=c,o[2]=a):a=o[2],a}])},983330,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(46766),i=e.i(312679),s=e.i(832850);e.i(707060);var l=e.i(288265);e.i(16043);var a=e.i(645364);e.s(["f",0,function(e){let o,c,u,d=(0,r.c)(11),{dataSections:f,staticSections:h,hasData:m,children:p}=e;d[0]!==f||d[1]!==m||d[2]!==h?(o=m?[...f,...h]:h,d[0]=f,d[1]=m,d[2]=h,d[3]=o):o=d[3];let g=o,b=(0,i.f)(),v=(0,n.f)(),x=(0,l.f)();d[4]!==x?(c=x("Benchmark page sections"),d[4]=x,d[5]=c):c=d[5];let w=v+a.V+b;return d[6]!==p||d[7]!==g||d[8]!==c||d[9]!==w?(u=(0,t.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-[200px_1fr] gap-6",children:(0,t.jsx)(s.f,{sections:g,ariaLabel:c,desktopNavTopClass:a.W,mobileTocTopClass:a.v,activationLinePx:w,children:p})}),d[6]=p,d[7]=g,d[8]=c,d[9]=w,d[10]=u):u=d[10],u}])},460867,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562);e.s(["J",0,function(e){let i,s,l,a,o,c=(0,r.c)(13),{bodyClassName:u,children:d,className:f,label:h}=e;return c[0]!==f?(i=(0,n.f)("rounded-md border border-border bg-popover px-3 py-2 text-xs shadow-md",f),c[0]=f,c[1]=i):i=c[1],c[2]!==h?(s=(0,t.jsx)("div",{className:"font-medium text-foreground",children:h}),c[2]=h,c[3]=s):s=c[3],c[4]!==u?(l=(0,n.f)("mt-1 text-muted-foreground",u),c[4]=u,c[5]=l):l=c[5],c[6]!==d||c[7]!==l?(a=(0,t.jsx)("div",{className:l,children:d}),c[6]=d,c[7]=l,c[8]=a):a=c[8],c[9]!==i||c[10]!==s||c[11]!==a?(o=(0,t.jsxs)("div",{className:i,children:[s,a]}),c[9]=i,c[10]=s,c[11]=a,c[12]=o):o=c[12],o},"S",0,function(e){let n,i,s,l=(0,r.c)(7),{children:a,label:o}=e;return l[0]!==o?(n=(0,t.jsx)("dt",{className:"text-muted-foreground",children:o}),l[0]=o,l[1]=n):n=l[1],l[2]!==a?(i=(0,t.jsx)("dd",{className:"text-right text-foreground",children:a}),l[2]=a,l[3]=i):i=l[3],l[4]!==n||l[5]!==i?(s=(0,t.jsxs)(t.Fragment,{children:[n,i]}),l[4]=n,l[5]=i,l[6]=s):s=l[6],s},"P",0,function(e){let i,s,l=(0,r.c)(5),{children:a,className:o}=e;return l[0]!==o?(i=(0,n.f)("mt-2 grid grid-cols-[auto_1fr] gap-x-4 gap-y-1 tabular-nums",o),l[0]=o,l[1]=i):i=l[1],l[2]!==a||l[3]!==i?(s=(0,t.jsx)("dl",{className:i,children:a}),l[2]=a,l[3]=i,l[4]=s):s=l[4],s}])},32959,e=>{"use strict";e.i(707060);var t=e.i(387086),r=e.i(189360);let n={Artifacts:"artifacts",Media:"media",Reasoning:"reasoning",Search:"search",Tools:"tools",Routers:"routers"},i=[{id:"routers",label:(0,t.b)("Routers"),description:(0,t.b)("Compare how model routers balance quality, cost and speed on each benchmark."),icon:n.Routers},{id:"media",label:(0,t.b)("Media"),description:(0,t.b)("Generated images, clips and speech, graded against the request and priced per output."),icon:n.Media},{id:"artifacts",label:(0,t.b)("Artifact generation"),pillLabel:(0,t.b)("Artifacts"),description:(0,t.b)("Text models take on unconventional tasks like creating drawings and playable games."),icon:n.Artifacts},{id:"reasoning",label:(0,t.b)("Reasoning"),icon:n.Reasoning},{id:"search",label:(0,t.b)("Search"),icon:n.Search},{id:"agents",label:(0,t.b)("Agents & tools"),pillLabel:(0,t.b)("Agents"),icon:n.Tools}],s=[{slug:"image",name:"Image",category:"media",blurb:(0,t.b)("Image prompts built to fail: depth, direction, counting, and text in the frame."),source:{kind:"arena",tab:"image"}},{slug:"video",name:"Video",category:"media",blurb:(0,t.b)("Six seconds of video, held to one duration and resolution across every model."),source:{kind:"arena",tab:"video"}},{slug:"speech",name:"Speech",category:"media",blurb:(0,t.b)("One sentence, every voice: did the words come back, and was direction performed?"),source:{kind:"arena",tab:"speech"}},{slug:"memes",name:"Memes",category:"media",blurb:(0,t.b)("Edit a meme as an image or animate it as a clip, graded on whether the brief landed."),source:{kind:"arena",tab:"memes"}},{slug:"sketch",name:"Sketch",category:"artifacts",blurb:(0,t.b)("Text models create drawings from prompts. The results are graded as images."),source:{kind:"arena",tab:"sketch"}},{slug:"games",name:"Games",category:"artifacts",blurb:(0,t.b)("Text models create playable games from a single brief in one attempt."),source:{kind:"arena",tab:"game"}},{slug:"gpqa-diamond",name:"GPQA Diamond",category:"reasoning",blurb:(0,t.b)("Graduate-level science questions that resist retrieval and reward careful reasoning."),source:{kind:"gpqa"}},{slug:"vgi-bench",name:"VGI-Bench",category:"reasoning",blurb:(0,t.b)("Multiple-choice questions about long videos: what was shown, said, or never happened."),source:{kind:"vgi"}},{slug:"browsecomp",name:"BrowseComp",category:"search",blurb:(0,t.b)("Hard-to-locate facts on the live web, scored on persistent multi-step research."),source:{kind:"search",suite:"search_browsecomp"}},{slug:"deepsearchqa",name:"DeepSearchQA",category:"search",blurb:(0,t.b)("Questions whose answers are lists, scored for exhaustive retrieval with no padding."),source:{kind:"search",suite:"search_dsqa"}},{slug:"hle",name:"HLE",category:"search",blurb:(0,t.b)("Humanity's Last Exam as a search benchmark: expert questions answered with live search."),source:{kind:"search",suite:"search_hle"}},{slug:"widesearch",name:"WideSearch",category:"search",blurb:(0,t.b)("Fill an entire table; answer-item accuracy scores partial matches."),source:{kind:"search",suite:"search_widesearch"}},{slug:"tau2-bench-airline",name:"τ²-Bench Airline",category:"agents",blurb:(0,t.b)("Multi-turn service agents making tool calls under strict policy constraints."),source:{kind:"tau2"}}];e.s(["n",0,n,"M",0,function(e){return"href"in e?e.href:"arena"===e.source.kind?(0,r.y)(e.source.tab):`/benchmarks/${e.slug}`},"r",0,function(){return i.flatMap(e=>s.filter(t=>t.category===e.id))}])},645364,e=>{"use strict";e.s(["W",0,"top-[calc(var(--navbar-height)+70px+var(--sticky-banner-top,0px))]","v",0,"top-[calc(var(--navbar-height)+44px+var(--sticky-banner-top,0px))]","R",0,"top-[calc(var(--navbar-height)+var(--navbar-top,0px))]","V",0,125,"w",0,"scroll-mt-[calc(var(--navbar-height)+125px+var(--sticky-banner-top,0px))] lg:scroll-mt-[calc(var(--navbar-height)+70px+var(--sticky-banner-top,0px))]","i",0,"benchmark-title-row"])},220535,465775,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562),i=e.i(119488);e.i(707060);var s=e.i(288265);let l=(0,e.i(429332).default)(()=>e.A(249124).then(e=>e.BenchmarkEfficiencyPlot),{loadableGenerated:{modules:[136642]},ssr:!1});function a(e){let r=e.seriesKey;return(0,t.jsxs)("li",{className:"flex min-w-0 max-w-full items-center gap-1.5",children:[(0,t.jsx)("svg",{"aria-hidden":!0,className:"size-2.5 shrink-0",viewBox:"0 0 10 10",children:(0,t.jsx)("circle",{cx:"5",cy:"5",fill:e.isReference?"none":e.color,stroke:e.isReference?e.color:"none",strokeWidth:1.5*!!e.isReference,r:"4"})}),(0,t.jsx)("span",{className:"truncate",title:e.label,children:e.label})]},r)}function o(e){return e.chartLabel}function c(e){return[e.seriesKey,e]}e.s(["f",0,function(e){let u,d,f,h,m,p,g,b,v,x,w,y,k=(0,r.c)(43),{kind:j,points:N,controls:C,headerControls:S,description:M,frontierSegments:R,legendLabel:E,yAxisName:L,tooltipContent:O,emptyText:T,chartAriaLabel:$,accessibleFallback:_,title:P,titleAddon:z,yScale:A}=e,q=(0,s.f)();k[0]===Symbol.for("react.memo_cache_sentinel")?(u={rootMargin:"400px 0px",freezeOnceVisible:!0},k[0]=u):u=k[0];let{ref:I,isIntersecting:H}=(0,i.f)(u);k[1]!==q||k[2]!==j||k[3]!==P?(d=P??q("cost"===j?"Price versus quality":"Mean generation time versus quality"),k[1]=q,k[2]=j,k[3]=P,k[4]=d):d=k[4];let B=d;k[5]!==N?(f=[...new Map(N.map(c)).values()],k[5]=N,k[6]=f):f=k[6];let F=f;k[7]!==N?(h=N.filter(o),k[7]=N,k[8]=h):h=k[8];let U=h.length;return k[9]!==B?(m=(0,t.jsx)("h3",{className:"min-w-0 text-sm font-semibold text-foreground",children:B}),k[9]=B,k[10]=m):m=k[10],k[11]!==m||k[12]!==z?(p=(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-1.5",children:[m,z]}),k[11]=m,k[12]=z,k[13]=p):p=k[13],k[14]!==S?(g=S&&(0,t.jsx)("div",{className:"max-w-full shrink-0",children:S}),k[14]=S,k[15]=g):g=k[15],k[16]!==p||k[17]!==g?(b=(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-x-4 gap-y-2",children:[p,g]}),k[16]=p,k[17]=g,k[18]=b):b=k[18],k[19]!==M?(v=(0,t.jsx)("p",{className:"mt-1 min-h-10 text-xs leading-relaxed text-muted-foreground",children:M}),k[19]=M,k[20]=v):v=k[20],k[21]!==C?(x=C&&(0,t.jsx)("div",{className:"mt-3",children:C}),k[21]=C,k[22]=x):x=k[22],k[23]!==_||k[24]!==$||k[25]!==T||k[26]!==R||k[27]!==H||k[28]!==j||k[29]!==U||k[30]!==E||k[31]!==F||k[32]!==I||k[33]!==N||k[34]!==O||k[35]!==L||k[36]!==A?(w=0===N.length?(0,t.jsx)("div",{className:"mt-4 flex h-72 items-center justify-center border-y border-dashed border-border text-sm text-muted-foreground",children:T}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,n.f)("relative mt-3 w-full",U>0?"h-96 md:h-[30rem]":"h-72"),children:(0,t.jsx)("div",{ref:I,className:"size-full",role:"img","aria-label":$,children:H&&(0,t.jsx)(l,{kind:j,points:N,frontierSegments:R,yAxisName:L,tooltipContent:O,yScale:A,shouldShowPointLabels:U>0})})}),E&&(0,t.jsx)("ul",{"aria-label":E,className:"mt-2 flex flex-wrap gap-x-4 gap-y-2 text-xs text-muted-foreground",children:F.map(a)}),_]}),k[23]=_,k[24]=$,k[25]=T,k[26]=R,k[27]=H,k[28]=j,k[29]=U,k[30]=E,k[31]=F,k[32]=I,k[33]=N,k[34]=O,k[35]=L,k[36]=A,k[37]=w):w=k[37],k[38]!==x||k[39]!==w||k[40]!==b||k[41]!==v?(y=(0,t.jsxs)("div",{className:"min-w-0 rounded-xl border border-border bg-card p-4",children:[b,v,x,w]}),k[38]=x,k[39]=w,k[40]=b,k[41]=v,k[42]=y):y=k[42],y}],220535),e.s(["f",0,function(e){let t=[...new Map(e.filter(e=>e.isPareto).map(e=>[`${e.metricValue}:${e.scorePercent}`,e])).values()].toSorted((e,t)=>e.metricValue-t.metricValue||e.scorePercent-t.scorePercent);return t.slice(1).flatMap((e,r)=>{let n=t[r];return void 0===n?[]:[[{x:n.metricValue,y:n.scorePercent},{x:e.metricValue,y:e.scorePercent}]]})}],465775)},189360,e=>{"use strict";let t={image:"/benchmarks/media/images",video:"/benchmarks/media/videos",speech:"/benchmarks/media/speech",game:"/benchmarks/media/games",memes:"/benchmarks/media/memes",sketch:"/benchmarks/media/sketch"};function r(e){return t[e]}e.s(["y",0,r,"x",0,function(e,t){return`${r(e)}/${t}`}])},714170,897550,e=>{"use strict";var t=e.i(340800),r=e.i(219037),n=e.i(782143),i=e.i(297510),s=e.i(293747);let l=/^(?\d{4}-\d{2}-\d{2})(?:[T ](?