(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,531397,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))});e.s(["f",0,r],531397)},279496,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))});e.s(["f",0,r],279496)},61885,45924,e=>{"use strict";var t=e.i(651681);let r={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],45924),e.s(["f",0,n],61885)},773151,e=>{"use strict";var t=e.i(651681);let r={name:"arrow-up-down",size:24,node:[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],773151)},49505,e=>{"use strict";var t=e.i(651681);let r={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],49505)},1971,e=>{"use strict";var t=e.i(651681);let r={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n])},88084,e=>{"use strict";var t=e.i(1971);e.s(["f",()=>t.f])},283884,e=>{"use strict";var t=e.i(651681);let r={name:"pause",size:24,node:[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],283884)},502704,e=>{"use strict";var t=e.i(651681);let r={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],502704)},371821,e=>{"use strict";var t=e.i(651681);let r={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],371821)},579841,e=>{"use strict";var t=e.i(667417);let r=new Set([t.j.Embeddings,t.j.Rerank,t.j.Decisions,t.j.TTS,t.j.Transcription]);t.j.Embeddings,t.j.Rerank,t.j.Decisions;let n=new Set([t.j.Text,t.j.Image]);function a(e){return 0===e.length||e.some(e=>n.has(e))&&!e.some(e=>r.has(e))}function i(e){return e.includes(t.j.Video)&&!a(e)}e.s(["l",0,function(e){return 0===e.output_modalities.length?e.has_text_output:e.output_modalities.includes(t.j.Text)},"L",0,function(e){return a(e)||i(e)},"a",0,a,"W",0,i])},195759,e=>{"use strict";var t=e.i(988590),r=e.i(572201),n=e.i(983739);function a(e,t){switch(t){case r.e.SelfMod:return`${e.name} (self-moderated)`;case r.e.Standard:case r.e.All:return e.name;case r.e.Free:case r.e.Nitro:case r.e.Floor:case r.e.Extended:case r.e.Exacto:case r.e.Online:case r.e.Thinking:case r.e.Batch:return`${e.name} (${t})`;default:return""}}let i=(e,n)=>{let a=e.split(r.q).slice(1),i=[];for(let e of a)(0,t.q)(e,n)&&i.push(e);return i},o={Nitro:r.B.Nitro,Floor:r.B.Floor,Exacto:r.B.Exacto},l={[o.Nitro]:n.f.Throughput,[o.Floor]:n.f.Price,[o.Exacto]:n.f.Exacto};e.s(["P",0,l,"K",0,o,"s",0,function(e,t){let r=a({name:""},t);return""===r?{name:e.name,short_name:e.short_name}:{name:e.name.endsWith(r)?e.name.slice(0,-r.length):e.name,short_name:e.short_name.endsWith(r)?e.short_name.slice(0,-r.length):e.short_name}},"_",0,e=>{let n;return((n=i(e,r.B)).length>0?n:[r.e.All]).findLast(e=>(0,t.q)(e,o))},"z",0,e=>i(e,r.d)[0]??r.e.Standard,"I",0,function(e,t){return e.short_name.includes(`(${t})`)?e.short_name:a(e,t).split(":")[1]?.trim()??e.short_name},"x",0,function(e){switch(e){case r.e.Free:return"Free";case r.e.Nitro:return"Nitro";case r.e.Floor:return"Floor";case r.e.Extended:return"Extended";case r.e.Exacto:return"Exacto";case r.e.Standard:return"Standard";case r.e.Online:return"Online";case r.e.All:return"All";case r.e.Thinking:return"Thinking";case r.e.Batch:return"Batch";case r.e.SelfMod:return"Self-Moderated";default:return""}}])},706792,e=>{"use strict";var t=e.i(140691);let r={Token:"token",Unit:"unit",Schedule:"schedule"};r.Token,r.Token,r.Unit,r.Token,r.Token,r.Token,r.Token,r.Token,r.Token,r.Token,r.Token,r.Token,r.Unit;let n=["Image Input","Input Image"],a=["Image Output","Output Image"];e.s(["H",0,r,"T",0,function(e){let t=e.filter(e=>e.kind===r.Token),i=t.find(e=>"Input Price"===e.sku_label),o=t.find(e=>"Output Price"===e.sku_label),l=t.find(e=>{var t;return t=e.sku_label,a.includes(t)}),s=t.find(e=>{var t;return t=e.sku_label,n.includes(t)})??i;return s&&l?{media:"image",inputItem:s,outputItem:l}:i&&o?{media:"text",inputItem:i,outputItem:o}:void 0},"U",0,function(e){let n=e.filter(e=>e.kind===r.Unit&&!0!==e.isServerTool),a=n[0];if(!a)return;let i=void 0!==a.tiers&&a.tiers.length>1,o=i||n.length>1;if(i){let e=(0,t.I)(1/0),r=a.price;for(let n of a.tiers){let a=(0,t.I)(n.price);a.gt(0)&&a.lt(e)&&(e=a,r=n.price)}return{price:r,displayMultiplier:a.displayMultiplier,unitLabel:a.unitLabel,hasDetails:o}}return{price:a.price,displayMultiplier:a.displayMultiplier,unitLabel:a.unitLabel,hasDetails:o}}])},354090,e=>{"use strict";e.s(["f",0,"https://www.vals.ai"])},40255,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(288265),a=e.i(202058),i=e.i(283884),o=e.i(502704),l=e.i(16043),s=e.i(136562),u=e.i(139697);let d=(0,l.createContext)(null),c=(0,l.createContext)(null);function p(){return(0,l.useContext)(d)}function m(){return(0,l.useContext)(c)}function f({audioProps:e,children:r,src:n}){let a=(0,l.useRef)(null),i=(0,l.useRef)(null),[o,s]=(0,l.useState)(),[u,p]=(0,l.useState)(null),[m,g]=(0,l.useState)(0),[h,A]=(0,l.useState)(!0),[v,b]=(0,l.useState)(0),[x,y]=(0,l.useState)(0),S=(0,l.useCallback)(async()=>{let e=a.current;if(!e)return;if(i.current)try{await i.current}catch{}finally{i.current=null}let t=e.play();i.current=t;try{await t}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return;throw e}finally{i.current=null}},[]),I=(0,l.useCallback)(()=>{a.current?.pause()},[]),k=(0,l.useCallback)(e=>{let t=a.current;if(!t||void 0===o||!Number.isFinite(o))return;let r=Math.max(0,Math.min(e,o));t.currentTime=r,y(r)},[o]);(0,l.useEffect)(()=>{let e=a.current;e&&(s(void 0),p(null),g(e.networkState),A(!0),b(e.readyState),y(0),e.load())},[n]),(0,l.useEffect)(()=>{let e=a.current;if(!e)return;let t=()=>{g(e.networkState),b(e.readyState)},r=()=>{s(e.duration)},n=()=>{p(e.error)},i=()=>{A(!0)},o=()=>{A(!1)},l=()=>{y(e.currentTime)};return e.addEventListener("canplay",t),e.addEventListener("durationchange",r),e.addEventListener("ended",i),e.addEventListener("error",n),e.addEventListener("loadedmetadata",r),e.addEventListener("loadstart",t),e.addEventListener("pause",i),e.addEventListener("play",o),e.addEventListener("playing",t),e.addEventListener("timeupdate",l),e.addEventListener("waiting",t),()=>{e.removeEventListener("canplay",t),e.removeEventListener("durationchange",r),e.removeEventListener("ended",i),e.removeEventListener("error",n),e.removeEventListener("loadedmetadata",r),e.removeEventListener("loadstart",t),e.removeEventListener("pause",i),e.removeEventListener("play",o),e.removeEventListener("playing",t),e.removeEventListener("timeupdate",l),e.removeEventListener("waiting",t)}},[]);let R=!h,T=v<3&&2===m,z=(0,l.useMemo)(()=>({duration:o,error:u,isBuffering:T,isPlaying:R,pause:I,play:S,ref:a,seek:k}),[o,u,T,R,I,S,k]);return(0,t.jsx)(d.Provider,{value:z,children:(0,t.jsxs)(c.Provider,{value:x,children:[(0,t.jsx)("audio",{ref:a,src:n,className:"hidden",preload:"metadata",...e}),r]})})}function g(e){let l,d,c,m,f,g,h,A,v,b,x,y,S,I=(0,r.c)(33);I[0]!==e?({children:l,className:d,isLoading:c,size:f,type:g,variant:h,...m}=e,I[0]=e,I[1]=l,I[2]=d,I[3]=c,I[4]=m,I[5]=f,I[6]=g,I[7]=h):(l=I[1],d=I[2],c=I[3],m=I[4],f=I[5],g=I[6],h=I[7]);let k=void 0===f?"icon":f,R=void 0===g?"button":g,T=void 0===h?"outline":h,z=(0,n.f)(),_=p();if(!_)return null;let w=c??_.isBuffering;I[8]!==_.isPlaying?(A=_.isPlaying?(0,t.jsx)(i.f,{}):(0,t.jsx)(o.f,{}),I[8]=_.isPlaying,I[9]=A):A=I[9];let E=A,C=w||void 0;I[10]!==z||I[11]!==_.isPlaying?(v=z(_.isPlaying?"Pause audio":"Play audio"),I[10]=z,I[11]=_.isPlaying,I[12]=v):v=I[12],I[13]!==d?(b=(0,s.f)("shrink-0",d),I[13]=d,I[14]=b):b=I[14];let D=!0===c;return I[15]!==_?(x=()=>{_.isPlaying?_.pause():_.play()},I[15]=_,I[16]=x):x=I[16],I[17]!==l||I[18]!==E||I[19]!==w||I[20]!==c?(y=w&&!0!==c?(0,t.jsx)(a.f,{className:"animate-spin"}):l??E,I[17]=l,I[18]=E,I[19]=w,I[20]=c,I[21]=y):y=I[21],I[22]!==m||I[23]!==k||I[24]!==y||I[25]!==C||I[26]!==v||I[27]!==b||I[28]!==D||I[29]!==x||I[30]!==R||I[31]!==T?(S=(0,t.jsx)(u.Button,{"aria-busy":C,"aria-label":v,className:b,shape:"pill",isLoading:D,onClick:x,size:k,type:R,variant:T,...m,children:y}),I[22]=m,I[23]=k,I[24]=y,I[25]=C,I[26]=v,I[27]=b,I[28]=D,I[29]=x,I[30]=R,I[31]=T,I[32]=S):S=I[32],S}function h(e){let n,a,i,o,u,d,c,f,g,h,v,b,x,y,S,I,k,R,T,z,_,w,E,C=(0,r.c)(55);C[0]!==e?({"aria-label":f,className:n,disabled:a,onPointerCancel:i,onPointerDown:o,onPointerUp:u,onValueChange:d,step:g,...c}=e,C[0]=e,C[1]=n,C[2]=a,C[3]=i,C[4]=o,C[5]=u,C[6]=d,C[7]=c,C[8]=f,C[9]=g):(n=C[1],a=C[2],i=C[3],o=C[4],u=C[5],d=C[6],c=C[7],f=C[8],g=C[9]);let D=void 0===f?"Seek audio":f,j=void 0===g?.25:g,N=p(),M=m(),P=(0,l.useRef)(!1),[L,O]=(0,l.useState)(!1),[B,q]=(0,l.useState)(null);if(!N||null===M)return null;let{duration:V}=N;C[10]!==V?(h=void 0!==V&&Number.isFinite(V)&&V>0,C[10]=V,C[11]=h):h=C[11];let G=h,K=L&&null!==B?B:M,F=G?Math.min(100,Math.max(0,K/V*100)):0,$=a||!G;C[12]!==N?(v=()=>{O(!1),q(null),P.current&&N.play().catch(A)},C[12]=N,C[13]=v):v=C[13];let H=v;C[14]!==H||C[15]!==u?(b=e=>{H(),u?.(e)},C[14]=H,C[15]=u,C[16]=b):b=C[16];let U=b;C[17]!==H||C[18]!==i?(x=e=>{H(),i?.(e)},C[17]=H,C[18]=i,C[19]=x):x=C[19];let W=x;C[20]!==n?(y=(0,s.f)("group/audio-progress relative flex h-4 min-w-20 flex-1 items-center",n),C[20]=n,C[21]=y):y=C[21],C[22]===Symbol.for("react.memo_cache_sentinel")?(S=(0,t.jsx)("div",{className:"pointer-events-none absolute inset-x-0 h-1 rounded-full bg-secondary"}),C[22]=S):S=C[22];let Y=`${F}%`;C[23]!==Y?(I=(0,t.jsx)("div",{className:"pointer-events-none absolute left-0 h-1 w-(--progress-width) rounded-full bg-primary","data-allow-inline-style":!0,style:{"--progress-width":Y}}),C[23]=Y,C[24]=I):I=C[24];let X=!$&&"group-hover/audio-progress:opacity-100",Z=!$&&L&&"opacity-100";C[25]!==X||C[26]!==Z?(k=(0,s.f)("pointer-events-none absolute left-(--thumb-left) size-3 rounded-full bg-foreground opacity-0 shadow-sm transition-opacity",X,Z),C[25]=X,C[26]=Z,C[27]=k):k=C[27];let J=`calc(${F}% - 0.375rem)`;C[28]!==J?(R={"--thumb-left":J},C[28]=J,C[29]=R):R=C[29],C[30]!==k||C[31]!==R?(T=(0,t.jsx)("span",{className:k,"data-allow-inline-style":!0,style:R}),C[30]=k,C[31]=R,C[32]=T):T=C[32];let Q=G?V:0;return C[33]!==d||C[34]!==N?(z=e=>{let t=e.currentTarget.valueAsNumber;q(t),N.seek(t),d?.(t)},C[33]=d,C[34]=N,C[35]=z):z=C[35],C[36]!==o||C[37]!==N?(_=e=>{P.current=N.isPlaying,O(!0),N.pause(),o?.(e)},C[36]=o,C[37]=N,C[38]=_):_=C[38],C[39]!==D||C[40]!==K||C[41]!==W||C[42]!==U||C[43]!==$||C[44]!==c||C[45]!==j||C[46]!==Q||C[47]!==z||C[48]!==_?(w=(0,t.jsx)("input",{"aria-label":D,className:"absolute inset-0 h-full w-full cursor-pointer appearance-none bg-transparent opacity-0 disabled:cursor-not-allowed",disabled:$,max:Q,min:0,onChange:z,onPointerDown:_,onPointerUp:U,onPointerCancel:W,step:j,type:"range",value:K,...c}),C[39]=D,C[40]=K,C[41]=W,C[42]=U,C[43]=$,C[44]=c,C[45]=j,C[46]=Q,C[47]=z,C[48]=_,C[49]=w):w=C[49],C[50]!==I||C[51]!==T||C[52]!==w||C[53]!==y?(E=(0,t.jsxs)("div",{className:y,children:[S,I,T,w]}),C[50]=I,C[51]=T,C[52]=w,C[53]=y,C[54]=E):E=C[54],E}function A(){}function v(e){let n,a,i,o,l,u=(0,r.c)(11);u[0]!==e?({className:n,...a}=e,u[0]=e,u[1]=n,u[2]=a):(n=u[1],a=u[2]);let d=m();return null===d?null:(u[3]!==n?(i=(0,s.f)("w-10 text-overline tabular-nums text-muted-foreground",n),u[3]=n,u[4]=i):i=u[4],u[5]!==d?(o=y(d),u[5]=d,u[6]=o):o=u[6],u[7]!==a||u[8]!==i||u[9]!==o?(l=(0,t.jsx)("span",{className:i,...a,children:o}),u[7]=a,u[8]=i,u[9]=o,u[10]=l):l=u[10],l)}function b(e){let n,a,i,o,l,u=(0,r.c)(11);u[0]!==e?({className:n,...a}=e,u[0]=e,u[1]=n,u[2]=a):(n=u[1],a=u[2]);let d=p();if(!d)return null;let{duration:c}=d;return u[3]!==n?(i=(0,s.f)("w-10 text-right text-overline tabular-nums text-muted-foreground",n),u[3]=n,u[4]=i):i=u[4],u[5]!==c?(o=void 0!==c&&Number.isFinite(c)?y(c):"--:--",u[5]=c,u[6]=o):o=u[6],u[7]!==a||u[8]!==i||u[9]!==o?(l=(0,t.jsx)("span",{className:i,...a,children:o}),u[7]=a,u[8]=i,u[9]=o,u[10]=l):l=u[10],l}function x(e){let a,i,o,l,u,d,c=(0,r.c)(13);c[0]!==e?({className:i,children:a,...o}=e,c[0]=e,c[1]=a,c[2]=i,c[3]=o):(a=c[1],i=c[2],o=c[3]);let m=(0,n.f)(),f=p();return f?.error?(c[4]!==i?(l=(0,s.f)("text-caption text-negative-text",i),c[4]=i,c[5]=l):l=c[5],c[6]!==a||c[7]!==m?(u=a??m("Audio could not be loaded."),c[6]=a,c[7]=m,c[8]=u):u=c[8],c[9]!==o||c[10]!==l||c[11]!==u?(d=(0,t.jsx)("div",{className:l,role:"status",...o,children:u}),c[9]=o,c[10]=l,c[11]=u,c[12]=d):d=c[12],d):null}function y(e){let t=Number.isFinite(e)?Math.max(0,e):0,r=Math.floor(t/3600),n=Math.floor(t%3600/60),a=Math.floor(t%60),i=r>0?n.toString().padStart(2,"0"):n.toString(),o=a.toString().padStart(2,"0");return r>0?`${r}:${i}:${o}`:`${i}:${o}`}e.s(["d",0,function(e){let a,i,o,l,u,d,c,p,m,A,y,S,I,k=(0,r.c)(27);k[0]!==e?({audioProps:a,children:i,className:o,description:l,metadata:u,src:c,title:p,...d}=e,k[0]=e,k[1]=a,k[2]=i,k[3]=o,k[4]=l,k[5]=u,k[6]=d,k[7]=c,k[8]=p):(a=k[1],i=k[2],o=k[3],l=k[4],u=k[5],d=k[6],c=k[7],p=k[8]);let R=(0,n.f)();k[9]!==R||k[10]!==p?(m=p??R("Audio preview"),k[9]=R,k[10]=p,k[11]=m):m=k[11];let T=m;return k[12]!==o?(A=(0,s.f)("flex w-full items-center gap-3 rounded-lg border border-border bg-card p-3 text-card-foreground shadow-sm",o),k[12]=o,k[13]=A):A=k[13],k[14]!==i||k[15]!==l||k[16]!==u||k[17]!==T?(y=i??(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g,{}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 flex flex-col gap-y-2",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0 flex flex-col gap-y-0.5",children:[(0,t.jsx)("div",{className:"truncate text-body font-medium",children:T}),l&&(0,t.jsx)("div",{className:"truncate text-caption text-muted-foreground",children:l})]}),u&&(0,t.jsx)("div",{className:"shrink-0 text-overline text-muted-foreground",children:u})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(v,{}),(0,t.jsx)(h,{}),(0,t.jsx)(b,{})]}),(0,t.jsx)(x,{})]})]}),k[14]=i,k[15]=l,k[16]=u,k[17]=T,k[18]=y):y=k[18],k[19]!==d||k[20]!==A||k[21]!==y?(S=(0,t.jsx)("div",{className:A,...d,children:y}),k[19]=d,k[20]=A,k[21]=y,k[22]=S):S=k[22],k[23]!==a||k[24]!==c||k[25]!==S?(I=(0,t.jsx)(f,{src:c,audioProps:a,children:S}),k[23]=a,k[24]=c,k[25]=S,k[26]=I):I=k[26],I},"l",0,g,"p",0,b,"V",0,h,"h",0,f,"H",0,v,"C",0,y,"G",0,p,"m",0,m])},264176,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(16179),a=e.i(288265),i=e.i(88084),o=e.i(136562);e.s(["Breadcrumb",0,function(e){let n,i,o,l,s=(0,r.c)(9);s[0]!==e?({className:n,...i}=e,s[0]=e,s[1]=n,s[2]=i):(n=s[1],i=s[2]);let u=(0,a.f)();return s[3]!==u?(o=u("breadcrumb"),s[3]=u,s[4]=o):o=s[4],s[5]!==n||s[6]!==i||s[7]!==o?(l=(0,t.jsx)("nav",{"aria-label":o,className:n,...i}),s[5]=n,s[6]=i,s[7]=o,s[8]=l):l=s[8],l},"BreadcrumbItem",0,function(e){let n,a,i,l,s=(0,r.c)(8);return s[0]!==e?({className:n,...a}=e,s[0]=e,s[1]=n,s[2]=a):(n=s[1],a=s[2]),s[3]!==n?(i=(0,o.f)("inline-flex items-center gap-1.5",n),s[3]=n,s[4]=i):i=s[4],s[5]!==a||s[6]!==i?(l=(0,t.jsx)("li",{className:i,...a}),s[5]=a,s[6]=i,s[7]=l):l=s[7],l},"BreadcrumbLink",0,function(e){let t,a,i,l,s,u,d,c=(0,r.c)(14);c[0]!==e?({render:l,children:t,className:a,...i}=e,c[0]=e,c[1]=t,c[2]=a,c[3]=i,c[4]=l):(t=c[1],a=c[2],i=c[3],l=c[4]),c[5]!==a?(s=(0,o.f)("text-muted-foreground underline underline-offset-2 decoration-muted-foreground/40 transition-colors hover:text-accent-foreground hover:decoration-current",a),c[5]=a,c[6]=s):s=c[6];let p=l?void 0:t;return c[7]!==i||c[8]!==s||c[9]!==p?(u={className:s,children:p,...i},c[7]=i,c[8]=s,c[9]=p,c[10]=u):u=c[10],c[11]!==l||c[12]!==u?(d={render:l,defaultTagName:"a",props:u},c[11]=l,c[12]=u,c[13]=d):d=c[13],(0,n.f)(d)},"BreadcrumbList",0,function(e){let n,a,i,l,s=(0,r.c)(8);return s[0]!==e?({className:n,...a}=e,s[0]=e,s[1]=n,s[2]=a):(n=s[1],a=s[2]),s[3]!==n?(i=(0,o.f)("flex flex-wrap items-center gap-1.5 text-xs",n),s[3]=n,s[4]=i):i=s[4],s[5]!==a||s[6]!==i?(l=(0,t.jsx)("ol",{className:i,...a}),s[5]=a,s[6]=i,s[7]=l):l=s[7],l},"BreadcrumbPage",0,function(e){let n,a,i,l,s=(0,r.c)(8);return s[0]!==e?({className:n,...a}=e,s[0]=e,s[1]=n,s[2]=a):(n=s[1],a=s[2]),s[3]!==n?(i=(0,o.f)("font-normal text-foreground",n),s[3]=n,s[4]=i):i=s[4],s[5]!==a||s[6]!==i?(l=(0,t.jsx)("span",{"aria-current":"page",className:i,...a}),s[5]=a,s[6]=i,s[7]=l):l=s[7],l},"BreadcrumbSeparator",0,function(e){let n,a,l,s,u,d,c=(0,r.c)(12);return c[0]!==e?({children:n,className:a,...l}=e,c[0]=e,c[1]=n,c[2]=a,c[3]=l):(n=c[1],a=c[2],l=c[3]),c[4]!==a?(s=(0,o.f)("text-faint [&>svg]:size-3",a),c[4]=a,c[5]=s):s=c[5],c[6]!==n?(u=n??(0,t.jsx)(i.f,{}),c[6]=n,c[7]=u):u=c[7],c[8]!==l||c[9]!==s||c[10]!==u?(d=(0,t.jsx)("li",{"aria-hidden":"true",className:s,role:"presentation",...l,children:u}),c[8]=l,c[9]=s,c[10]=u,c[11]=d):d=c[11],d}])},548204,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(16043),a=e.i(815922),i=e.i(93836),o=e.i(741780),l=e.i(3758),s=e.i(420304),u=e.i(240070);let d={...s.l,...u.f},c=n.forwardRef(function(e,r){let{render:s,className:u,defaultOpen:c=!1,disabled:p=!1,onOpenChange:m,open:f,style:g,...h}=e,A=(0,a.f)(m),v=(0,o.f)({open:f,defaultOpen:c,onOpenChange:A,disabled:p}),b=n.useMemo(()=>({open:v.open,disabled:v.disabled,transitionStatus:v.transitionStatus}),[v.open,v.disabled,v.transitionStatus]),x=n.useMemo(()=>({...v,onOpenChange:A,state:b}),[v,A,b]),y=(0,i.a)("div",e,{state:b,ref:r,props:h,stateAttributesMapping:d});return(0,t.jsx)(l.p.Provider,{value:x,children:y})});var p=e.i(225421);let m={...s.J,...u.f},f=n.forwardRef(function(e,t){let{panelId:r,open:n,handleTrigger:a,state:o,disabled:s}=(0,l.$)(),{className:u,disabled:d=s,render:c,nativeButton:f=!0,style:g,...h}=e,{getButtonProps:A,buttonRef:v}=(0,p.f)({disabled:d,native:f});return(0,i.a)("button",e,{state:o,ref:[t,v],props:[{"aria-controls":n?r:void 0,"aria-expanded":n,onClick:a},h,A],stateAttributesMapping:m})});var g=e.i(533124),h=e.i(612308),A=e.i(22525);let v=n.forwardRef(function(e,t){let{className:r,hiddenUntilFound:n,keepMounted:a,render:o,id:s,style:u,...c}=e,{defaultPanelId:p,mounted:m,onOpenChange:f,open:v,setMounted:b,setPanelIdState:x,setOpen:y,state:S,transitionStatus:I}=(0,l.$)(),k=s||void 0,R=k??p;(0,g.f)(()=>(x(e=>k??(null===e?void 0:e)),()=>{x(e=>e===k?null:e)}),[k,x]);let{height:T,props:z,ref:_,shouldPreventOpenAnimation:w,shouldRender:E,transitionStatus:C,width:D}=(0,A.f)({externalRef:t,hiddenUntilFound:n??!1,id:R,keepMounted:a??!1,mounted:m,onOpenChange:f,open:v,setMounted:b,setOpen:y,transitionStatus:I}),j={...S,transitionStatus:C},N=(0,h.f)(u,j),M=(0,i.a)("div",{...e,style:void 0},{state:j,ref:_,props:[z,{style:{"--collapsible-panel-height":void 0===T?"auto":`${T}px`,"--collapsible-panel-width":void 0===D?"auto":`${D}px`}},c,N?{style:N}:void 0,w?{style:{animationName:"none"}}:void 0],stateAttributesMapping:d});return E?M:null});e.s(["Panel",0,v,"Root",0,c,"Trigger",0,f],772956);var b=e.i(772956),b=b,x=b,y=b,S=e.i(136562),I=e.i(159125);e.s(["Collapsible",0,function(e){let n,a,i=(0,r.c)(4);return i[0]!==e?({...n}=e,i[0]=e,i[1]=n):n=i[1],i[2]!==n?(a=(0,t.jsx)(b.Root,{"data-slot":"collapsible",...n}),i[2]=n,i[3]=a):a=i[3],a},"CollapsibleContent",0,function(e){let n,a,i,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...a}=e,l[0]=e,l[1]=n,l[2]=a):(n=l[1],a=l[2]),l[3]!==n?(i=e=>(0,S.f)("h-(--collapsible-panel-height)",I.f,"function"==typeof n?n(e):n),l[3]=n,l[4]=i):i=l[4],l[5]!==a||l[6]!==i?(o=(0,t.jsx)(y.Panel,{"data-slot":"collapsible-content",className:i,...a}),l[5]=a,l[6]=i,l[7]=o):o=l[7],o},"CollapsibleTrigger",0,function(e){let n,a,i=(0,r.c)(4);return i[0]!==e?({...n}=e,i[0]=e,i[1]=n):n=i[1],i[2]!==n?(a=(0,t.jsx)(x.Trigger,{"data-slot":"collapsible-trigger",...n}),i[2]=n,i[3]=a):a=i[3],a}],548204)},939025,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(16043),a=e.i(721287),i=e.i(533124),o=e.i(646125),l=e.i(779766),s=e.i(107397);let u=n.createContext(void 0);function d(e){let t=n.useContext(u);if(void 0===t&&!e)throw Error((0,s.f)(50));return t}var c=e.i(132887),p=e.i(567894),m=e.i(326855),f=e.i(369714),g=e.i(871812),h=e.i(62335),A=e.i(807257);function v(e,t,r,n){return{left:e,top:t,right:r,bottom:n,x:e,y:t,width:r-e,height:n-t}}function b(e){let t,r=[],n=1/0,a=1/0,i=-1/0,o=-1/0;for(let l of Array.from(e).sort((e,t)=>e.top-t.top)){if(n=Math.min(n,l.left),a=Math.min(a,l.top),i=Math.max(i,l.right),o=Math.max(o,l.bottom),!t||l.top-t.top>t.height/2)r.push({left:l.left,top:l.top,right:l.right,bottom:l.bottom,width:l.width,height:l.height});else{let e=r[r.length-1];e.left=Math.min(e.left,l.left),e.right=Math.max(e.right,l.right),e.bottom=Math.max(e.bottom,l.bottom),e.width=e.right-e.left,e.height=e.bottom-e.top}t=l}return{lines:r,fallback:v(n,a,i,o)}}function x(e,t,r){return e.findIndex(e=>t>e.left-2&&te.top-2&&re.instantType,adaptiveOrigin:e=>e.adaptiveOrigin,closeDelay:e=>e.closeDelay};class R extends m.f{constructor(e,t,r){var a;let i=new h.f;super(function(e,t,r,n=!1){return{...(0,g.i)(t,r,n),instantType:void 0,adaptiveOrigin:void 0,closeDelay:300,...e}}(e,i,t,r),(a=i,{popupRef:n.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:a,inlineRectCoordsRef:{current:void 0}}),k)}setOpen=(e,t)=>{let{inlineRectCoordsRef:r}=this.context;(0,f.c)(this,e,t,{onBeforeDispatch(){let n=t.event;e&&t.reason===I.f.triggerHover&&t.trigger&&"clientX"in n&&"clientY"in n&&r.current?.element!==t.trigger&&S(r,t.trigger,n.clientX,n.clientY)}})}}function T(e){let{open:r,defaultOpen:a=!1,onOpenChange:o,onOpenChangeComplete:l,actionsRef:s,handle:d,triggerId:m,defaultTriggerId:g=null,children:h}=e,A=(0,f.$)((e,t)=>new R({open:a,openProp:r,activeTriggerId:g,triggerIdProp:m},e,t));A.useControlledProp("openProp",r),A.useControlledProp("triggerIdProp",m),A.useContextCallback("onOpenChange",o),A.useContextCallback("onOpenChangeComplete",l);let v=A.useState("open"),b=A.useState("activeTriggerId"),x=A.useState("mounted"),y=A.useState("payload");(0,f._)(A,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:S}=(0,f.L)(v,A,()=>{A.context.inlineRectCoordsRef.current=void 0});(0,i.f)(()=>{v&&null==b&&A.set("payload",void 0)},[A,b,v]),n.useImperativeHandle(s,()=>({unmount:S,close:()=>A.setOpen(!1,(0,c.j)(p.f.imperativeAction))}),[S,A]);let I=v||x||null!=d;return(0,t.jsxs)(u.Provider,{value:A,children:[d&&(0,t.jsx)(f.d,{handle:d,store:A}),I&&(0,t.jsx)(z,{store:A}),"function"==typeof h?h({payload:y}):h]})}function z({store:e}){let t=e.useState("floatingRootContext"),r=(0,o.f)(t);return(0,f.y)(e,{activeTriggerProps:r.reference,inactiveTriggerProps:r.trigger,popupProps:r.floating}),null}let _=(0,a.U)(function(e){return d(!0)?(0,t.jsx)(T,{...e}):(0,t.jsx)(l.V,{children:(0,t.jsx)(T,{...e})})}),w=n.createContext(void 0);var E=e.i(344791);let C=n.forwardRef(function(e,r){let{keepMounted:n=!1,...a}=e;return d().useState("mounted")||n?(0,t.jsx)(w.Provider,{value:n,children:(0,t.jsx)(E.f,{ref:r,...a})}):null});var D=e.i(664591),j=e.i(93836),N=e.i(811673),M=e.i(710955),P=e.i(745576),L=e.i(205453),O=e.i(35292);let B=(0,a.u)(function(e,t){let{render:r,className:a,delay:i,closeDelay:o,id:l,payload:u,handle:c,style:p,...m}=e,g=d(!0),h=(0,M.f)(c)??g;if(!h)throw Error((0,s.f)(89));let A=(0,N.f)(l),v=h.useState("isTriggerActive",A),b=h.useState("isOpenedByTrigger",A),x=h.useState("floatingRootContext"),y=h.context.inlineRectCoordsRef,I=n.useRef(null),k=i??600,R=o??300,{registerTrigger:T,isMountedByThisTrigger:z}=(0,f.F)(A,I,h,{payload:u,closeDelay:R}),_=(0,O.f)(x,{mouseOnly:!0,move:!1,handleClose:(0,P.f)(),delay:()=>({open:k,close:R}),triggerElementRef:I,isActiveTrigger:v,isClosing:()=>"ending"===h.select("transitionStatus")}),w=(0,L.f)(x,{delay:k}),E=h.useState("triggerProps",z),C=function(e,t){function r(r){t||S(e,r.currentTarget,r.clientX,r.clientY)}return{onFocus(){e.current=void 0},onMouseEnter:r,onMouseMove:r}}(y,b);return(0,j.a)("a",e,{state:{open:b},ref:[t,T,I],props:[_,w.reference,E,C,{id:A},m],stateAttributesMapping:D.J})}),q=n.createContext(void 0);var V=e.i(702643),G=e.i(510043),K=e.i(226983);let F=n.forwardRef(function(e,r){let{render:a,className:o,anchor:u,positionMethod:c="absolute",side:p="bottom",align:m="center",sideOffset:f=0,alignOffset:g=0,collisionBoundary:h="clipping-ancestors",collisionPadding:S=5,arrowPadding:I=5,sticky:k=!1,disableAnchorTracking:R=!1,collisionAvoidance:T=G.n,style:z,..._}=e,E=d(),C=function(){let e=n.useContext(w);if(void 0===e)throw Error((0,s.f)(48));return e}(),D=(0,l.T)(),j=E.useState("open"),N=E.useState("mounted"),M=E.useState("floatingRootContext"),P=E.useState("instantType"),L=E.useState("transitionStatus"),O=E.useState("adaptiveOrigin"),B=E.context.inlineRectCoordsRef,F=(0,V.k)({anchor:u,floatingRootContext:M,positionMethod:c,mounted:N,side:p,sideOffset:f,align:m,alignOffset:g,arrowPadding:I,collisionBoundary:h,collisionPadding:S,sticky:k,disableAnchorTracking:R,keepMounted:C,nodeId:D,collisionAvoidance:T,adaptiveOrigin:O,inline:{name:"inline",async fn(e){let t=e.elements.reference;if("function"!=typeof t?.getClientRects)return{};let r="contextElement"in t&&t.contextElement?t.contextElement:(0,A.m)(t)?t:void 0,n=B.current,a=n?.element===t||n?.element===r?n:void 0,i=function(e,t,r){let{lines:n,fallback:a}=b(e.getClientRects());if(n.length<2)return null;let i=r?.x,o=r?.y,l=t[0];if(r?.lineIndex!=null&&n[r.lineIndex])return y(n[r.lineIndex]);if(null!=i&&null!=o){let e=x(n,i,o);if(-1!==e)return y(n[e])}if(2===n.length&&n[0].left>n[1].right&&null!=i&&null!=o)return a;if("t"===l||"b"===l){let e=n[0],t=n[n.length-1],r="t"===l?e:t;return v(r.left,e.top,r.right,t.bottom)}let s="l"===l,u=n[0].left,d=n[0].right,c=s?1/0:-1/0,p=n[0],m=n[0];for(let e of n){u=Math.min(u,e.left),d=Math.max(d,e.right);let t=s?e.left:e.right;s&&tc?(c=t,p=e,m=e):t===c&&(m=e)}return v(u,p.top,d,m.bottom)}(t,e.placement,a);if(!i||"function"!=typeof e.platform.getElementRects)return{};let o=await e.platform.getElementRects({reference:{contextElement:r,getBoundingClientRect:()=>i},floating:e.elements.floating,strategy:e.strategy});return e.rects.reference.x===o.reference.x&&e.rects.reference.y===o.reference.y&&e.rects.reference.width===o.reference.width&&e.rects.reference.height===o.reference.height?{}:{reset:{rects:o}}}}}),$=F.update;(0,i.f)(()=>{j&&N&&$()},[j,N,$]);let H={open:j,side:F.side,align:F.align,anchorHidden:F.anchorHidden,instant:P},U=(0,K.f)(e,H,{styles:F.positionerStyles,transitionStatus:L,props:_,refs:[r,E.useStateSetter("positionerElement")],hidden:!N,inert:!j});return(0,t.jsx)(q.Provider,{value:F,children:(0,t.jsx)(l.s,{id:D,children:U})})});var $=e.i(692933),H=e.i(182578),U=e.i(417965);let W=n.forwardRef(function(e,t){let{className:r,render:a,style:i,...o}=e,l=d(),{side:u,align:c}=function(){let e=n.useContext(q);if(void 0===e)throw Error((0,s.f)(49));return e}(),p=l.useState("open"),m=l.useState("instantType"),g=l.useState("transitionStatus"),h=l.useState("popupProps"),A=l.useState("floatingRootContext"),v=l.useState("closeDelay");return(0,$.f)({open:p,ref:l.context.popupRef,onComplete(){p&&l.context.onOpenChangeComplete?.(!0)}}),(0,U.f)(A,{closeDelay:v}),(0,j.a)("div",e,{state:{open:p,side:u,align:c,instant:m,transitionStatus:g},ref:[t,l.context.popupRef,l.useStateSetter("popupElement")],props:[f.X,h,(0,H.f)(g),o],stateAttributesMapping:D.M})});e.s(["Popup",0,W,"Portal",0,C,"Positioner",0,F,"Root",0,_,"Trigger",0,B],906373);var Y=e.i(906373),Y=Y,X=Y,Z=Y,J=Y,Q=Y,ee=e.i(136562),et=e.i(535072),er=e.i(857162),en=e.i(374696),ea=e.i(261499);let ei=0,eo=0,el=new Set;function es(e){if(!(e.target instanceof Element&&e.target.closest('[data-slot="hover-card-content"]')))for(let e of(ei=Date.now(),el))e()}let eu=(0,n.createContext)(null);function ed(){return 1===(eo+=1)&&document.addEventListener("scroll",es,{capture:!0,passive:!0}),()=>{0==(eo-=1)&&document.removeEventListener("scroll",es,!0)}}e.s(["c",0,e=>{let a,i,o,l,s,u,d,c,p,m=(0,r.c)(17);m[0]!==e?({children:a,...i}=e,m[0]=e,m[1]=a,m[2]=i):(a=m[1],i=m[2]);let[f,g]=(0,n.useState)(!1),h=(0,et.o)("(hover: hover) and (pointer: fine)",!0);m[3]===Symbol.for("react.memo_cache_sentinel")?(o=[],m[3]=o):o=m[3],(0,n.useEffect)(ed,o),m[4]!==f?(l=()=>{if(!f)return;let e=()=>g(!1);return el.add(e),()=>{el.delete(e)}},s=[f],m[4]=f,m[5]=l,m[6]=s):(l=m[5],s=m[6]),(0,n.useEffect)(l,s),m[7]!==h?(u={isHoverCapable:h,setOpen:g},m[7]=h,m[8]=u):u=m[8];let A=u;m[9]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{e&&Date.now()-ei<200||g(e)},m[9]=d):d=m[9];let v=d;return m[10]!==a||m[11]!==f||m[12]!==i?(c=(0,t.jsx)(Y.Root,{open:f,onOpenChange:v,...i,children:a}),m[10]=a,m[11]=f,m[12]=i,m[13]=c):c=m[13],m[14]!==A||m[15]!==c?(p=(0,t.jsx)(eu.Provider,{value:A,children:c}),m[14]=A,m[15]=c,m[16]=p):p=m[16],p},"P",0,e=>{let n,a,i,o,l,s,u,d,c,p,m,f,g,h,A,v,b,x=(0,r.c)(35);x[0]!==e?({className:o,anchor:a,align:f,alignOffset:n,arrowPadding:i,collisionAvoidance:l,collisionBoundary:s,collisionPadding:u,positionMethod:d,ref:p,side:g,sideOffset:h,sticky:m,...c}=e,x[0]=e,x[1]=n,x[2]=a,x[3]=i,x[4]=o,x[5]=l,x[6]=s,x[7]=u,x[8]=d,x[9]=c,x[10]=p,x[11]=m,x[12]=f,x[13]=g,x[14]=h):(n=x[1],a=x[2],i=x[3],o=x[4],l=x[5],s=x[6],u=x[7],d=x[8],c=x[9],p=x[10],m=x[11],f=x[12],g=x[13],h=x[14]);let y=void 0===f?"center":f,S=void 0===g?"top":g,I=void 0===h?6:h,k=(0,en.r)();return x[15]!==o?(A=(0,ee.f)("w-72 origin-(--transform-origin) rounded-lg border border-border bg-popover p-4 text-popover-foreground shadow-md outline-hidden",ea.X,o),x[15]=o,x[16]=A):A=x[16],x[17]!==c||x[18]!==p||x[19]!==A?(v=(0,t.jsx)(Z.Popup,{"data-slot":"hover-card-content",ref:p,className:A,...c}),x[17]=c,x[18]=p,x[19]=A,x[20]=v):v=x[20],x[21]!==y||x[22]!==n||x[23]!==a||x[24]!==i||x[25]!==l||x[26]!==s||x[27]!==u||x[28]!==d||x[29]!==S||x[30]!==I||x[31]!==m||x[32]!==v||x[33]!==k?(b=(0,t.jsx)(J.Portal,{children:(0,t.jsx)(er.ContainedContextProvider,{value:!1,children:(0,t.jsx)(Q.Positioner,{anchor:a,align:y,alignOffset:n,arrowPadding:i,collisionAvoidance:l,collisionBoundary:s,collisionPadding:u,positionMethod:d,side:S,sideOffset:I,sticky:m,className:k,children:v})})}),x[21]=y,x[22]=n,x[23]=a,x[24]=i,x[25]=l,x[26]=s,x[27]=u,x[28]=d,x[29]=S,x[30]=I,x[31]=m,x[32]=v,x[33]=k,x[34]=b):b=x[34],b},"b",0,e=>{let a,i,o,l,s,u,d,c=(0,r.c)(16);c[0]!==e?({className:a,onClick:i,delay:l,closeDelay:s,...o}=e,c[0]=e,c[1]=a,c[2]=i,c[3]=o,c[4]=l,c[5]=s):(a=c[1],i=c[2],o=c[3],l=c[4],s=c[5]);let p=void 0===l?120:l,m=void 0===s?120:s,{isHoverCapable:f,setOpen:g}=function(){let e=(0,n.useContext)(eu);if(!e)throw Error("HoverCard subcomponents must be rendered inside ");return e}();return c[6]!==f||c[7]!==i||c[8]!==g?(u=e=>{if(!f){e.stopPropagation();let t=e.currentTarget;t instanceof Element&&(t.matches("a[href]")||t.querySelector("a[href]"))||(e.preventDefault(),g(!0))}i?.(e)},c[6]=f,c[7]=i,c[8]=g,c[9]=u):u=c[9],c[10]!==a||c[11]!==m||c[12]!==p||c[13]!==o||c[14]!==u?(d=(0,t.jsx)(X.Trigger,{delay:p,closeDelay:m,className:a,onClick:u,...o}),c[10]=a,c[11]=m,c[12]=p,c[13]=o,c[14]=u,c[15]=d):d=c[15],d}],939025)},640947,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562),a=e.i(829622),i=e.i(987457);e.s(["f",0,e=>{let o,l,s,u,d=(0,r.c)(26),{providerName:c,providerIcon:p,className:m,frame:f}=e;d[0]!==p.url.length||d[1]!==c?(o=0===p.url.length?(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-full items-center justify-center rounded-sm bg-muted text-sm font-medium text-muted-foreground",children:c.trim().charAt(0).toUpperCase()}):null,d[0]=p.url.length,d[1]=c,d[2]=o):o=d[2];let g=o;if(void 0!==f&&f){let e,r,o;return d[3]!==m?(e=(0,n.f)("size-8",m),d[3]=m,d[4]=e):e=d[4],d[5]!==g||d[6]!==p.className||d[7]!==p.darkUrl||d[8]!==p.url||d[9]!==c?(r=g??(0,t.jsx)(a.RemoteFavicon,{className:(0,n.f)("size-full",p.className),faviconFor:c,imgSrc:p.url,imgSrcDark:p.darkUrl,size:256}),d[5]=g,d[6]=p.className,d[7]=p.darkUrl,d[8]=p.url,d[9]=c,d[10]=r):r=d[10],d[11]!==e||d[12]!==r?(o=(0,t.jsx)(i.f,{className:e,children:r}),d[11]=e,d[12]=r,d[13]=o):o=d[13],o}let h=null===g&&"bg-muted/40 p-1 shadow-inner";return d[14]!==m||d[15]!==h?(l=(0,n.f)("flex items-center justify-center","h-8 w-8 rounded-lg",h,m),d[14]=m,d[15]=h,d[16]=l):l=d[16],d[17]!==g||d[18]!==p.className||d[19]!==p.darkUrl||d[20]!==p.url||d[21]!==c?(s=g??(0,t.jsx)(a.RemoteFavicon,{className:(0,n.f)("overflow-hidden rounded-sm",p.className),faviconFor:c,imgSrc:p.url,imgSrcDark:p.darkUrl,size:256}),d[17]=g,d[18]=p.className,d[19]=p.darkUrl,d[20]=p.url,d[21]=c,d[22]=s):s=d[22],d[23]!==l||d[24]!==s?(u=(0,t.jsx)("div",{className:l,children:s}),d[23]=l,d[24]=s,d[25]=u):u=d[25],u}])},121979,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(207298),a=e.i(136562),i=e.i(199168);let o=(0,n.f)("rounded-full bg-current",{variants:{size:{default:"size-2",sm:"size-1",xs:"size-0.75"}},defaultVariants:{size:"default"}}),l=(0,n.f)("inline-flex items-center",{variants:{size:{default:"gap-2 leading-7",sm:"gap-1 leading-5",xs:"gap-0.75 leading-3"}},defaultVariants:{size:"default"}}),s=e=>{let n,i,l=(0,r.c)(5),{className:s,size:u}=e,d=void 0===s?"":s;return l[0]!==d||l[1]!==u?(n=(0,a.f)(o({size:u}),d),l[0]=d,l[1]=u,l[2]=n):n=l[2],l[3]!==n?(i=(0,t.jsx)("span",{className:n}),l[3]=n,l[4]=i):i=l[4],i};e.s(["f",0,e=>{let n,o,u,d,c,p,m,f,g,h,A=(0,r.c)(28);A[0]!==e?(n=void 0===e?{}:e,A[0]=e,A[1]=n):n=A[1];let{className:v,size:b,hasNoAnimation:x}=n,y=void 0===v?"":v,S=void 0===b?"default":b,I=void 0!==x&&x,k=(0,i.o)();A[2]!==k?(o=k("Loading"),A[2]=k,A[3]=o):o=A[3],A[4]!==y||A[5]!==S?(u=(0,a.f)(l({size:S}),y),A[4]=y,A[5]=S,A[6]=u):u=A[6];let R=I?"animate-none":"animate-scale-pulse";A[7]!==R?(d=(0,a.f)(R),A[7]=R,A[8]=d):d=A[8],A[9]!==S||A[10]!==d?(c=(0,t.jsx)(s,{size:S,className:d}),A[9]=S,A[10]=d,A[11]=c):c=A[11];let T=I?"animate-none":"animate-scale-pulse";A[12]!==T?(p=(0,a.f)(T,"delay-150"),A[12]=T,A[13]=p):p=A[13],A[14]!==S||A[15]!==p?(m=(0,t.jsx)(s,{size:S,className:p}),A[14]=S,A[15]=p,A[16]=m):m=A[16];let z=I?"animate-none":"animate-scale-pulse";return A[17]!==z?(f=(0,a.f)(z,"delay-300"),A[17]=z,A[18]=f):f=A[18],A[19]!==S||A[20]!==f?(g=(0,t.jsx)(s,{size:S,className:f}),A[19]=S,A[20]=f,A[21]=g):g=A[21],A[22]!==m||A[23]!==g||A[24]!==o||A[25]!==u||A[26]!==c?(h=(0,t.jsxs)("span",{role:"status","aria-label":o,className:u,children:[c,m,g]}),A[22]=m,A[23]=g,A[24]=o,A[25]=u,A[26]=c,A[27]=h):h=A[27],h}])},530798,338960,755483,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(427150),a=e.i(16043),i=e.i(136562);let o="or-table__sticky-end or-table__sticky-end--scroll-cue";function l(e){let t,n,i=(0,r.c)(6),{elementRef:o,className:l,stickyEnd:s}=e;i[0]!==o?(t=()=>{let e=o.current;if(!e?.classList.contains("or-table__sticky-end"))return;let t=e.closest(".or-table-wrapper");if(t)return t.dataset.tableHasStickyEnd="true",()=>{t.querySelectorAll(".or-table__sticky-end").length<=1&&delete t.dataset.tableHasStickyEnd}},i[0]=o,i[1]=t):t=i[1],i[2]!==l||i[3]!==o||i[4]!==s?(n=[o,l,s],i[2]=l,i[3]=o,i[4]=s,i[5]=n):n=i[5],(0,a.useLayoutEffect)(t,n)}e.s(["t",0,o,"K",0,l],338960);let s={muted:"or-table__row--muted","muted-50":"bg-muted/50","muted-40":"bg-muted/40"},u={overline:"text-overline"},d={hidden:"overflow-hidden"},c={background:"bg-background shadow-header-inset"},p={none:"overscroll-none"},m="border-r";var f=e.i(656521),g=e.i(751155),h=e.i(512688),A=e.i(143253);let v=new Map;function b(e){let t=v.get(e);return void 0===t?null:(v.delete(e),v.set(e,t),t)}function x(e){let t,n,i,o,l,s,u,d,c,p,m,f,g,x=(0,r.c)(63),{tableRef:R,enabled:T,rowSelector:z,observeContent:_,persistCache:w,columnKeys:E,signatureParts:C,hasRows:D,scope:j}=e,N=void 0===T||T,M=void 0===z?"tbody > tr[data-table-data-row]":z,P=void 0!==_&&_,L=void 0===w||w;x[0]!==C?(t=void 0===C?[]:C,x[0]=C,x[1]=t):t=x[1];let O=t,[B,q]=(0,a.useState)(null),V=(0,a.useRef)(0),G=null===B?"unmeasured":String(B);x[2]!==E||x[3]!==j||x[4]!==O||x[5]!==G?(n=[j,G,...O,...E],x[2]=E,x[3]=j,x[4]=O,x[5]=G,x[6]=n):n=x[6];let K=n.join("|"),F=(0,h.f)(E);x[7]!==K||x[8]!==B||x[9]!==L?(i=()=>null!==B&&L?b(K):null,x[7]=K,x[8]=B,x[9]=L,x[10]=i):i=x[10];let[$,H]=(0,a.useState)(i),U=(0,h.f)($),[W,Y]=(0,a.useState)(!1),[X,Z]=(0,a.useState)(0),J=(0,a.useRef)("");return x[11]!==F||x[12]!==K||x[13]!==B||x[14]!==N||x[15]!==U||x[16]!==L?(o=()=>{if(!N)return;if(null===B)return void Y(!1);let e=L?b(K):null;H(e??function(e,t){if(null===e)return null;let r=new Map(e.map(({key:e,widthPx:t})=>[e,t])),n=e.reduce((e,{widthPx:t})=>e+t,0)/e.length||120;return t.map(e=>({key:e,widthPx:r.get(e)??n}))}(U.current,F.current)),Y(null===e),Z(0),J.current=""},x[11]=F,x[12]=K,x[13]=B,x[14]=N,x[15]=U,x[16]=L,x[17]=o):o=x[17],x[18]!==F||x[19]!==K||x[20]!==N||x[21]!==U||x[22]!==L?(l=[K,N,L,F,U],x[18]=F,x[19]=K,x[20]=N,x[21]=U,x[22]=L,x[23]=l):l=x[23],(0,A.f)(o,l),x[24]!==N||x[25]!==D||x[26]!==L?(s=()=>{N&&!L&&D&&(Y(!0),Z(0),J.current="")},u=[N,L,D],x[24]=N,x[25]=D,x[26]=L,x[27]=s,x[28]=u):(s=x[27],u=x[28]),(0,A.f)(s,u),x[29]!==N||x[30]!==R?(d=()=>{if(!N)return;let e=R.current,t=e?.parentElement??e?.offsetParent;if(null==t||"u"{let t=e[0],r=t?.contentRect.width;void 0!==r&&Number.isFinite(r)&&!(r<=0)&&(V.current=r,q(4*Math.round(r/4)))});return r.observe(t),()=>r.disconnect()},x[29]=N,x[30]=R,x[31]=d):d=x[31],x[32]!==N||x[33]!==D||x[34]!==R?(c=[R,D,N],x[32]=N,x[33]=D,x[34]=R,x[35]=c):c=x[35],(0,A.f)(d,c),x[36]!==N||x[37]!==P||x[38]!==R?(p=()=>{if(!N||!P||"u"{J.current="",Z(0),Y(!0)});return r.observe(t,{characterData:!0,childList:!0,subtree:!0}),()=>r.disconnect()},m=[R,N,P],x[36]=N,x[37]=P,x[38]=R,x[39]=p,x[40]=m):(p=x[39],m=x[40]),(0,A.f)(p,m),x[41]!==F||x[42]!==K||x[43]!==B||x[44]!==N||x[45]!==U||x[46]!==D||x[47]!==X||x[48]!==W||x[49]!==L||x[50]!==M||x[51]!==R?(f=()=>{if(!N||!W||!D)return;let e=R.current;if(!e||null===e.offsetParent)return;let t=F.current;if(0===t.length)return;if(null===e.querySelector(`tbody [role="row"], ${M}`)){if(X<20){let e=window.requestAnimationFrame(()=>Z(k));return()=>window.cancelAnimationFrame(e)}return}if(null===B)return;let r=function({table:e,columnKeys:t,containerWidthPx:r,rowSelector:n}){let a=e.parentElement;if(null===a)return null;let i=document.createElement("table");for(let t of e.attributes)i.setAttribute(t.name,t.value);i.append(...Array.from(e.childNodes,e=>e.cloneNode(!0))),i.removeAttribute("id"),i.querySelector("colgroup")?.remove();let o=e.closest(".or-table-page-scroll")?.querySelector(".or-table-page-scroll__header thead");o&&(i.querySelector("thead")?.remove(),i.prepend(o.cloneNode(!0))),i.classList.remove("table-fixed"),i.style.position="absolute",i.style.visibility="hidden",i.style.pointerEvents="none",i.style.tableLayout="auto",i.setAttribute("aria-hidden","true"),i.dataset.widthMeasurement="true",i.style.width=`${r}px`;let l=i.querySelector("tbody");if(null===l)return null;let s=Array.from(e.querySelectorAll('tbody [role="row"]')).slice(0,20);if(s.length>0)for(let e of(l.replaceChildren(),s)){let t=i.ownerDocument.createElement("tr");for(let r of e.querySelectorAll('[role="cell"]')){let e=i.ownerDocument.createElement("td");e.className=r.className,e.classList.remove("or-table__cell--grid"),e.style.cssText=r.style.cssText,e.innerHTML=r.innerHTML,void 0!==r.dataset.colspan&&(e.colSpan=Number(r.dataset.colspan)),t.append(e)}l.append(t)}else{let t=Array.from(e.querySelectorAll(n)).slice(0,20);if(0===t.length)return null;l.replaceChildren(...t.map(e=>e.cloneNode(!0)))}a.append(i);let u=i.querySelectorAll("thead th");if(u.length!==t.length)return i.remove(),null;let d=Array.from(u,(e,r)=>({key:t[r],widthPx:e.getBoundingClientRect().width}));return i.remove(),d}({table:e,columnKeys:t,containerWidthPx:V.current,rowSelector:M});if(null===r)return;let n=r.map(I).join(","),a=r.some(S),i=!a&&n===J.current;if(J.current=n,!i){if(X<20){var o;!a&&(o=U.current,null!==o&&(o.length!==r.length||o.some((e,t)=>{let n=r[t];return void 0===n||e.key!==n.key||Math.round(e.widthPx)!==Math.round(n.widthPx)})))&&H(r);let e=window.requestAnimationFrame(()=>Z(y));return()=>window.cancelAnimationFrame(e)}if(a)return}L&&function(e,t){if(v.delete(e),v.set(e,t.map(({key:e,widthPx:t})=>({key:e,widthPx:t}))),v.size<=20)return;let r=v.keys().next().value;void 0!==r&&v.delete(r)}(K,r),H(r),Y(!1)},x[41]=F,x[42]=K,x[43]=B,x[44]=N,x[45]=U,x[46]=D,x[47]=X,x[48]=W,x[49]=L,x[50]=M,x[51]=R,x[52]=f):f=x[52],x[53]!==F||x[54]!==K||x[55]!==N||x[56]!==D||x[57]!==X||x[58]!==W||x[59]!==L||x[60]!==M||x[61]!==R?(g=[W,K,X,D,R,N,M,L,F],x[53]=F,x[54]=K,x[55]=N,x[56]=D,x[57]=X,x[58]=W,x[59]=L,x[60]=M,x[61]=R,x[62]=g):g=x[62],(0,A.f)(f,g),$}function y(e){return e+1}function S(e){let{widthPx:t}=e;return 0===t}function I(e){let{widthPx:t}=e;return Math.round(t)}function k(e){return e+1}e.s(["f",0,x],755483);let R={asc:"ascending",desc:"descending"},T={ascending:"asc",descending:"desc"},z=(0,a.createContext)(void 0),_="underline decoration-current/40 decoration-dotted underline-offset-2 hover:decoration-current",w={compact:"or-table--density-compact",regular:"or-table--density-regular",expanded:"or-table--density-expanded"};function E(e){return e.getBoundingClientRect().width}function C(e){return e.getBoundingClientRect().width}function D(e){let{widthPx:t}=e;return t}function j(e,t){return String(t)}function N(e){let n,o,l,s,u,d,p,m,f,g,h=(0,r.c)(19);h[0]!==e?({className:n,ref:l,sticky:u,surface:s,...o}=e,h[0]=e,h[1]=n,h[2]=o,h[3]=l,h[4]=s,h[5]=u):(n=h[1],o=h[2],l=h[3],s=h[4],u=h[5]);let A=void 0!==u&&u,v=(0,a.useRef)(null);h[6]!==A?(d=()=>{if(!A)return;let e=v.current,t=e?.closest(".or-table"),r=t?.closest(".or-table-wrapper");if(!t||!r)return;let n=void 0!==t.dataset.tableHasStickyHeader,a=void 0!==r.dataset.tableHasStickyHeader;return t.dataset.tableHasStickyHeader="true",r.dataset.tableHasStickyHeader="true",()=>{n||delete t.dataset.tableHasStickyHeader,a||delete r.dataset.tableHasStickyHeader}},p=[A],h[6]=A,h[7]=d,h[8]=p):(d=h[7],p=h[8]),(0,a.useLayoutEffect)(d,p),h[9]!==l?(m=e=>{v.current=e,"function"==typeof l?l(e):l&&(l.current=e)},h[9]=l,h[10]=m):m=h[10];let b=A&&"or-table__header--sticky",x=void 0!==s&&c[s];return h[11]!==n||h[12]!==b||h[13]!==x?(f=(0,i.f)(b,x,n),h[11]=n,h[12]=b,h[13]=x,h[14]=f):f=h[14],h[15]!==o||h[16]!==m||h[17]!==f?(g=(0,t.jsx)("thead",{ref:m,className:f,...o}),h[15]=o,h[16]=m,h[17]=f,h[18]=g):g=h[18],g}function M({handler:e,sortContext:t,sortDirection:r,sortId:n}){e?.(),t?.setActiveSort({direction:r,id:n})}function P(e){return O(e)||B(e)}function L(e){return!O(e)}function O(e){return(0,a.isValidElement)(e)&&e.type===N}function B(e){return(0,a.isValidElement)(e)&&"colgroup"===e.type}function q(e){let t;return{schedule(){void 0===t&&(t=requestAnimationFrame(()=>{t=void 0,e()}))},cancel(){void 0!==t&&cancelAnimationFrame(t)}}}function V({element:e,key:t,enabled:r}){r?"true"!==e.dataset[t]&&(e.dataset[t]="true"):void 0!==e.dataset[t]&&delete e.dataset[t]}e.s(["TOOLTIP_HINT_CLASSES",0,_,"Table",0,function(e){var n,o,l,s;let u,d,c,m,f,g,h,A,v,b,y,S,I,k,R,T,_,N,M,G,K,F,$,H,U,W,Y,X,Z,J,Q,ee,et,er,en,ea,ei,eo,el,es,eu,ed,ec,ep,em,ef,eg,eh,eA,ev,eb,ex,ey=(0,r.c)(94);ey[0]!==e?({className:R,columnPinning:T,sort:Y,onSortChange:F,compact:X,containerClassName:_,containerProps:N,density:M,footer:G,framed:Z,flush:J,headerPinning:Q,intrinsicColumns:ee,intrinsicColumnsHasRows:et,intrinsicColumnsFlexColumn:K,overflow:er,overscroll:$,pageScroll:en,scrollHeader:W,children:k,ref:U,...H}=e,ey[0]=e,ey[1]=k,ey[2]=R,ey[3]=T,ey[4]=_,ey[5]=N,ey[6]=M,ey[7]=G,ey[8]=K,ey[9]=F,ey[10]=$,ey[11]=H,ey[12]=U,ey[13]=W,ey[14]=Y,ey[15]=X,ey[16]=Z,ey[17]=J,ey[18]=Q,ey[19]=ee,ey[20]=et,ey[21]=er,ey[22]=en):(k=ey[1],R=ey[2],T=ey[3],_=ey[4],N=ey[5],M=ey[6],G=ey[7],K=ey[8],F=ey[9],$=ey[10],H=ey[11],U=ey[12],W=ey[13],Y=ey[14],X=ey[15],Z=ey[16],J=ey[17],Q=ey[18],ee=ey[19],et=ey[20],er=ey[21],en=ey[22]);let eS=void 0!==X&&X,eI=void 0!==Z&&Z,ek=void 0!==J&&J,eR=void 0===Q?"sticky":Q,eT=void 0!==ee&&ee,ez=void 0!==et&&et,e_=void 0===er?"auto":er,ew=void 0!==en&&en;ey[23]!==N?(ea=N??{},ey[23]=N,ey[24]=ea):ea=ey[24],ey[25]!==ea?({className:ei,...eo}=ea,ey[25]=ea,ey[26]=ei,ey[27]=eo):(ei=ey[26],eo=ey[27]);let eE="static"===eR?eR:void 0,[eC,eD]=(0,a.useState)(),{bodyChildren:ej,headerChildren:eN,pageHeaderRef:eM,shouldSplitPageScroll:eP,wrapperRef:eL}=(n=k,o=ew,h=(0,r.c)(8),A=(0,a.useRef)(null),b=(v=o?a.Children.toArray(n):[]).some(O)&&v.some(B),y=(l=A,s=b,c=(0,r.c)(5),m=(0,a.useRef)(null),c[0]!==l?(u=()=>{let e=m.current;if(!e)return;let t=0/0,r=()=>{let r=e.scrollLeft;t=r;let n=r>2,a=r+e.clientWidth{e.scrollLeft!==t&&r()});r(),e.addEventListener("scroll",n.schedule,{passive:!0});let a=new ResizeObserver(r);return a.observe(e),()=>{e.removeEventListener("scroll",n.schedule),a.disconnect(),n.cancel()}},c[0]=l,c[1]=u):u=c[1],c[2]!==l||c[3]!==s?(d=[l,s],c[2]=l,c[3]=s,c[4]=d):d=c[4],(0,a.useLayoutEffect)(u,d),m),h[0]!==b||h[1]!==y?(f=[b,y],h[0]=b,h[1]=y,h[2]=f):f=h[2],(0,a.useEffect)(()=>{let e=y.current,t=A.current;if(!b||!e||!t)return;let r=0,n=()=>{let n=e.scrollLeft;t.scrollLeft=n;let a=n-t.scrollLeft;if(a!==r){r=a;let e=t.querySelector("table");e?.style.setProperty("transform",0===a?"":`translateX(${-a}px)`)}},a=q(n);return a.schedule(),e.addEventListener("scroll",a.schedule,{passive:!0}),e.addEventListener("scrollend",n,{passive:!0}),()=>{e.removeEventListener("scroll",a.schedule),e.removeEventListener("scrollend",n),a.cancel()}},f),S=b?v.filter(L):n,I=v.filter(P),h[3]!==b||h[4]!==S||h[5]!==I||h[6]!==y?(g={bodyChildren:S,headerChildren:I,pageHeaderRef:A,shouldSplitPageScroll:b,wrapperRef:y},h[3]=b,h[4]=S,h[5]=I,h[6]=y,h[7]=g):g=h[7],g),eO=(0,a.useRef)(null);if(ey[28]!==k){let e=a.Children.toArray(k).find(B);el=void 0===e?0:a.Children.count(e.props.children),ey[28]=k,ey[29]=el}else el=ey[29];let eB=el,eq=eT&&eP;ey[30]!==eB?(es=Array.from({length:eB},j),ey[30]=eB,ey[31]=es):es=ey[31];let eV=es,eG=eq?"tbody > tr":void 0,eK=!eq,eF=eq?String(eB):"disabled";ey[32]!==eF?(eu=[eF],ey[32]=eF,ey[33]=eu):eu=ey[33];let e$=eq&&ez;ey[34]!==eV||ey[35]!==eq||ey[36]!==eG||ey[37]!==eK||ey[38]!==eu||ey[39]!==e$?(ed={enabled:eq,tableRef:eO,rowSelector:eG,columnKeys:eV,observeContent:eq,persistCache:eK,signatureParts:eu,hasRows:e$,scope:"table-intrinsic-columns"},ey[34]=eV,ey[35]=eq,ey[36]=eG,ey[37]=eK,ey[38]=eu,ey[39]=e$,ey[40]=ed):ed=ey[40];let eH=x(ed),eU=(0,a.useRef)(null),eW=(0,a.useRef)(0);ey[41]!==eq||ey[42]!==eH||ey[43]!==eM||ey[44]!==eL?(ec=()=>{if(!eq||null===eH){eU.current=null,eW.current=0;return}let e=eH.map(D);eU.current=e,eW.current=0;let t=e=>{let t=eL.current?.querySelectorAll("colgroup > col")??[],r=eM.current?.querySelectorAll("colgroup > col")??[];e.forEach((e,n)=>{t[n]?.style.setProperty("width",`${e}px`),r[n]?.style.setProperty("width",`${e}px`)})};t(e);let r=()=>{if(eW.current>=2)return;let e=eL.current?.querySelector(".or-table-page-scroll__table"),r=eM.current?.querySelector("table"),n=e?.querySelectorAll("tbody > tr:first-child > td, tbody > tr:first-child > th"),a=r?.querySelectorAll("thead > tr:first-child > th"),i=eU.current;if(!e||!r||!n||!a||null===i||n.length!==i.length||a.length!==i.length)return;let o=function({appliedWidths:e,bodyWidths:t,headerWidths:r}){if(e.length!==r.length||e.length!==t.length)return null;let n=e.map((e,n)=>{let a=Math.max(r[n],t[n]);return a>e+.5?a:e});return n.some((t,r)=>t!==e[r])?n:null}({appliedWidths:i,bodyWidths:Array.from(n,C),headerWidths:Array.from(a,E)});null!==o&&(t(o),eU.current=o,eW.current=eW.current+1)};r();let n=q(r),a=eL.current?.querySelector(".or-table-page-scroll__table");if(!a||"u"{i.disconnect(),n.cancel()}},ep=[eq,eH,eM,eL],ey[41]=eq,ey[42]=eH,ey[43]=eM,ey[44]=eL,ey[45]=ec,ey[46]=ep):(ec=ey[45],ep=ey[46]),(0,a.useLayoutEffect)(ec,ep);let eY=(0,a.useRef)(null),eX=(0,a.useRef)(null),eZ=eP&&"sticky"===eR;ey[47]!==eZ?(em={frameRef:eY,sentinelRef:eX,enabled:eZ},ey[47]=eZ,ey[48]=em):em=ey[48],function(e){let t,n,i=(0,r.c)(5),{frameRef:o,sentinelRef:l,enabled:s}=e;i[0]!==s||i[1]!==o||i[2]!==l?(t=()=>{let e,t,r;if(!s||"u"{let o,l=Number.isFinite(o=Number.parseFloat(getComputedStyle(i).top))?o:0,s=n.querySelector(".or-table-page-scroll__scroll-header")?.offsetHeight??0,d=Math.max(1,a.offsetHeight),c=function(e){for(let t=e.parentElement;t;t=t.parentElement){let{overflowY:e}=getComputedStyle(t);if(("auto"===e||"scroll"===e)&&t.scrollHeight>t.clientHeight)return t}return null}(n),p=`${l}:${s}:${d}`;p===t&&c===r&&e||(e?.disconnect(),t=p,r=c,(e=new IntersectionObserver(e=>{let[t]=e;t&&(t.isIntersecting?delete n.dataset.tableHeaderStuck:n.dataset.tableHeaderStuck="true",u())},{root:c,rootMargin:`${-(l-s+d)}px 0px 0px 0px`})).observe(a))};u();let d=new ResizeObserver(u);return d.observe(i),d.observe(n),window.addEventListener("resize",u,{passive:!0}),()=>{e?.disconnect(),d.disconnect(),window.removeEventListener("resize",u),delete n.dataset.tableHeaderStuck}},n=[s,o,l],i[0]=s,i[1]=o,i[2]=l,i[3]=t,i[4]=n):(t=i[3],n=i[4]),(0,a.useLayoutEffect)(t,n)}(em);let{pinScopeId:eJ,pinningCss:eQ}=function(e,t){let n,i,o,l,s,u,d=(0,r.c)(17),c=(0,a.useId)();d[0]!==t?(n=void 0===t?[]:function({columnIds:e,pinnedIds:t}){let r=new Set(t);return e.flatMap((e,t)=>r.has(e)?[t+1]:[])}(t),d[0]=t,d[1]=n):n=d[1];let p=n;d[2]!==p?(i=p.join(","),d[2]=p,d[3]=i):i=d[3];let m=i;d[4]!==p||d[5]!==c?(o=function(e,t){if(0===t.length)return"";let r=`[data-or-pin-scope="${e}"]:not([data-or-pin-disabled='true'])`,n=e=>`.or-table__row > :nth-child(${e} of td, th, [role='cell']):not([colspan]):not([data-colspan])`,a=[];for(let e of t)a.push(`${r} ${n(e)} { --or-table-sticky-wash: transparent; position: sticky; left: var(--or-pin-left-${e}, 0px); z-index: var(--z-index-sticky, 49); background-color: var(--or-table-surface); background-image: linear-gradient(var(--or-table-sticky-wash), var(--or-table-sticky-wash)); transition: --or-table-sticky-wash 0.15s; }`,`${r} .or-table__header--sticky ${n(e)}, ${r} .or-table-page-scroll__header ${n(e)} { z-index: calc(var(--z-index-sticky, 49) + 1); }`,`${r}[data-table-header-pinning='static'] .or-table-page-scroll__header ${n(e)}, ${r}[data-table-header-pinning='static'] .or-table__header--sticky ${n(e)} { top: auto; z-index: 1; }`,`${r} .or-table__body .or-table__row:hover > :nth-child(${e} of td, th, [role='cell']) { --or-table-sticky-wash: var(--or-table-row-hover); }`,`${r} .or-table__body .or-table__row[data-state='selected'] > :nth-child(${e} of td, th, [role='cell']) { --or-table-sticky-wash: var(--or-table-row-selected); }`);let i=t.at(-1);return void 0!==i&&a.push(`${r} ${n(i)} { border-right: 1px solid hsl(var(--border)); }`),a.join("\n")}(c,p),d[4]=p,d[5]=c,d[6]=o):o=d[6];let f=o;if(d[7]!==p||d[8]!==e?(l=()=>{let t=e.current;if(!t||0===p.length)return;let r=t.classList.contains("or-table-wrapper")?t:t.querySelector(":scope > .or-table-wrapper"),n=function({scope:e,wrapper:t,measure:r}){let n=new ResizeObserver(r),a=()=>{for(let r of(n.disconnect(),t&&n.observe(t),e.querySelectorAll(".or-table__header-cell")))n.observe(r);r()};a();let i=new MutationObserver(a);return i.observe(e,{childList:!0}),()=>{n.disconnect(),i.disconnect()}}({scope:t,wrapper:r,measure:()=>(function({scope:e,wrapper:t,nthPositions:r}){let n=e.querySelectorAll(".or-table__header-cell");if(0===n.length)return;let a=e.querySelector("colgroup")?.children,i=e=>{let t=a?.item(e);if(t instanceof HTMLElement&&t.style.width.endsWith("px")){let e=Number.parseFloat(t.style.width);if(Number.isFinite(e))return e}return n[e]?.getBoundingClientRect().width??0},o=0,l=0;for(let t of r)e.style.setProperty(`--or-pin-left-${t}`,`${o}px`),o+=i(t-1),l+=n[t-1]?.getBoundingClientRect().width??0;let s=t?.clientWidth??0;if(s>0&&s-l<200){e.dataset.orPinDisabled="true",t&&delete t.dataset.tableHasStickyStart;return}delete e.dataset.orPinDisabled,t&&(t.dataset.tableHasStickyStart="true")})({scope:t,wrapper:r,nthPositions:p})});return()=>{for(let e of(n(),p))t.style.removeProperty(`--or-pin-left-${e}`);delete t.dataset.orPinDisabled,r&&delete r.dataset.tableHasStickyStart}},d[7]=p,d[8]=e,d[9]=l):l=d[9],d[10]!==m||d[11]!==e?(s=[e,m],d[10]=m,d[11]=e,d[12]=s):s=d[12],(0,a.useLayoutEffect)(l,s),0===p.length){let e;return d[13]===Symbol.for("react.memo_cache_sentinel")?(e={pinScopeId:void 0,pinningCss:""},d[13]=e):e=d[13],e}return d[14]!==f||d[15]!==c?(u={pinScopeId:c,pinningCss:f},d[14]=f,d[15]=c,d[16]=u):u=d[16],u}(ew?eY:eL,T);ey[49]!==eQ?(ef=eQ?(0,t.jsx)("style",{children:eQ}):null,ey[49]=eQ,ey[50]=ef):ef=ey[50];let e0=ef,e1=eP&&"or-table-page-scroll__table",e2=eS&&"or-table--compact",e6=ek&&!eI&&!ew&&"or-table--flush-x",e4=void 0!==M&&w[M],e3=eT&&"or-table--intrinsic-columns",e5=null!==eH&&"or-table--intrinsic-columns-measured",e8="first"===K&&"or-table--intrinsic-columns-flex-first",e7="second"===K&&"or-table--intrinsic-columns-flex-second";ey[51]!==R||ey[52]!==e1||ey[53]!==e2||ey[54]!==e6||ey[55]!==e4||ey[56]!==e3||ey[57]!==e5||ey[58]!==e8||ey[59]!==e7?(eg=(0,i.f)("or-table",e1,e2,e6,e4,e3,e5,e8,e7,R),ey[51]=R,ey[52]=e1,ey[53]=e2,ey[54]=e6,ey[55]=e4,ey[56]=e3,ey[57]=e5,ey[58]=e8,ey[59]=e7,ey[60]=eg):eg=ey[60];let e9=eg;ey[61]!==U?(eh=e=>{eO.current=e,"function"==typeof U?U(e):U&&(U.current=e)},ey[61]=U,ey[62]=eh):eh=ey[62],ey[63]!==ej||ey[64]!==H||ey[65]!==eh||ey[66]!==e9?(eA=(0,t.jsx)("table",{ref:eh,className:e9,...H,children:ej}),ey[63]=ej,ey[64]=H,ey[65]=eh,ey[66]=e9,ey[67]=eA):eA=ey[67];let te=eA;ey[68]!==eC||ey[69]!==F||ey[70]!==Y?(ev={activeSort:eC,setActiveSort:eD,controlledSort:Y,onSortChange:F},ey[68]=eC,ey[69]=F,ey[70]=Y,ey[71]=ev):ev=ey[71];let tt=ev;return ey[72]!==_||ey[73]!==ei||ey[74]!==G||ey[75]!==eI||ey[76]!==eN||ey[77]!==eE||ey[78]!==e_||ey[79]!==$||ey[80]!==eM||ey[81]!==ew||ey[82]!==eJ||ey[83]!==e0||ey[84]!==eo||ey[85]!==W||ey[86]!==eP||ey[87]!==e9||ey[88]!==te||ey[89]!==eL?(eb=ew?(0,t.jsxs)("div",{ref:eY,...eo,className:(0,i.f)("or-table-page-scroll",void 0!==$&&p[$],_,ei),"data-table-header-pinning":eE,"data-or-pin-scope":eJ,children:[W&&(0,t.jsx)("div",{className:"or-table-page-scroll__scroll-header",children:W}),eP&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{"aria-hidden":"true",className:"or-table-page-scroll__corner-cap"}),(0,t.jsx)("div",{ref:eM,className:"or-table-page-scroll__header",children:(0,t.jsx)("table",{className:e9,"data-table-has-sticky-header":"true",children:eN})})]}),(0,t.jsxs)("div",{ref:eL,className:"or-table-wrapper or-table-wrapper--page-scroll","data-table-has-sticky-header":"true",children:[te,G&&(0,t.jsx)("div",{className:"or-table__scroll-footer",children:G})]}),eP&&(0,t.jsx)("div",{ref:eX,"aria-hidden":"true",className:"or-table-page-scroll__stuck-sentinel"}),e0]}):(0,t.jsxs)("div",{...eo,ref:eL,className:(0,i.f)("or-table-wrapper",eI&&"or-table-wrapper--framed","visible"===e_&&"or-table-wrapper--overflow-visible",void 0!==$&&p[$],_,ei),"data-table-header-pinning":eE,"data-or-pin-scope":eJ,children:[W&&(0,t.jsx)("div",{className:"or-table__scroll-header",children:W}),te,G&&(0,t.jsx)("div",{className:"or-table__scroll-footer",children:G}),e0]}),ey[72]=_,ey[73]=ei,ey[74]=G,ey[75]=eI,ey[76]=eN,ey[77]=eE,ey[78]=e_,ey[79]=$,ey[80]=eM,ey[81]=ew,ey[82]=eJ,ey[83]=e0,ey[84]=eo,ey[85]=W,ey[86]=eP,ey[87]=e9,ey[88]=te,ey[89]=eL,ey[90]=eb):eb=ey[90],ey[91]!==tt||ey[92]!==eb?(ex=(0,t.jsx)(z.Provider,{value:tt,children:eb}),ey[91]=tt,ey[92]=eb,ey[93]=ex):ex=ey[93],ex},"TableBody",0,function(e){let n,a,o,l,s,u=(0,r.c)(10);return u[0]!==e?({className:n,ref:o,...a}=e,u[0]=e,u[1]=n,u[2]=a,u[3]=o):(n=u[1],a=u[2],o=u[3]),u[4]!==n?(l=(0,i.f)("or-table__body",n),u[4]=n,u[5]=l):l=u[5],u[6]!==a||u[7]!==o||u[8]!==l?(s=(0,t.jsx)("tbody",{ref:o,className:l,...a}),u[6]=a,u[7]=o,u[8]=l,u[9]=s):s=u[9],s},"TableCaption",0,function(e){let n,a,o,l,s,u=(0,r.c)(10);return u[0]!==e?({className:n,ref:o,...a}=e,u[0]=e,u[1]=n,u[2]=a,u[3]=o):(n=u[1],a=u[2],o=u[3]),u[4]!==n?(l=(0,i.f)("or-table__caption",n),u[4]=n,u[5]=l):l=u[5],u[6]!==a||u[7]!==o||u[8]!==l?(s=(0,t.jsx)("caption",{ref:o,className:l,...a}),u[6]=a,u[7]=o,u[8]=l,u[9]=s):s=u[9],s},"TableCell",0,function(e){let n,s,c,p,f,g,h,A,v,b,x,y,S,I=(0,r.c)(27);I[0]!==e?({className:n,divider:g,mono:h,overflow:s,ref:p,size:f,stickyEnd:A,strong:v,...c}=e,I[0]=e,I[1]=n,I[2]=s,I[3]=c,I[4]=p,I[5]=f,I[6]=g,I[7]=h,I[8]=A,I[9]=v):(n=I[1],s=I[2],c=I[3],p=I[4],f=I[5],g=I[6],h=I[7],A=I[8],v=I[9]);let k=void 0!==g&&g,R=void 0!==h&&h,T=void 0!==A&&A,z=void 0!==v&&v,_=(0,a.useRef)(null);I[10]!==n||I[11]!==T?(b={elementRef:_,className:n,stickyEnd:T},I[10]=n,I[11]=T,I[12]=b):b=I[12],l(b),I[13]!==p?(x=e=>{_.current=e,"function"==typeof p?p(e):p&&(p.current=e)},I[13]=p,I[14]=x):x=I[14];let w=R&&"font-mono",E=z&&"font-medium",C=void 0!==f&&u[f],D=void 0!==s&&d[s],j=k&&m,N=T&&o;return I[15]!==n||I[16]!==D||I[17]!==j||I[18]!==N||I[19]!==w||I[20]!==E||I[21]!==C?(y=(0,i.f)("or-table__cell",w,E,C,D,j,N,n),I[15]=n,I[16]=D,I[17]=j,I[18]=N,I[19]=w,I[20]=E,I[21]=C,I[22]=y):y=I[22],I[23]!==c||I[24]!==y||I[25]!==x?(S=(0,t.jsx)("td",{ref:x,className:y,...c}),I[23]=c,I[24]=y,I[25]=x,I[26]=S):S=I[26],S},"TableHead",0,function(e){let{children:r,className:s,colSpan:u,scope:d=void 0!==u&&u>1?"colgroup":"col",sortKey:c,onClearSort:p,onSortAscending:h,onSortDescending:A,sortFirstDirection:v="ascending",sortDirection:b,divider:x=!1,stickyEnd:y=!1,tooltip:S,sortAccessory:I,ref:k,...w}=e,E=(0,a.useRef)(null);l({elementRef:E,className:s,stickyEnd:y});let C=(0,a.useId)(),D=(0,a.useContext)(z),j=D?.onSortChange,N=void 0!==c&&void 0!==j,P=N||void 0!==h||void 0!==A,L=function({contextSortDirection:e,controlledSort:t,controlledSortDirection:r,isKeyed:a,isSortControlled:i,sortKey:o}){return a?(0,n.f)(t)&&t.key===o?R[t.direction]:void 0:i?r:e}({contextSortDirection:D?.activeSort?.id===C?D.activeSort.direction:void 0,controlledSort:D?.controlledSort,controlledSortDirection:b,isKeyed:N,isSortControlled:"sortDirection"in e,sortKey:c}),O=P?(0,t.jsxs)("button",{type:"button",className:"or-table__sort-button group/sort",onClick:()=>{var e;let t=function({firstDirection:e,hasAscendingSort:t,hasDescendingSort:r,sortDirection:n}){let a=("descending"===e?r:t)?e:"descending"===e?"ascending":"descending",i="ascending"===a?"descending":"ascending";return void 0===n?a:n===a&&("descending"===i?r:t)?i:void 0}({firstDirection:v,hasAscendingSort:N||void 0!==h,hasDescendingSort:N||void 0!==A,sortDirection:L});N?j(void 0===t?null:{key:c,direction:"ascending"===t?"asc":"desc"}):"ascending"===t?M({handler:h,sortContext:D,sortDirection:t,sortId:C}):"descending"===t?M({handler:A,sortContext:D,sortDirection:t,sortId:C}):(e=D,e?.setActiveSort(void 0),p?.())},children:[(0,t.jsx)("span",{className:(0,i.f)("min-w-0",S&&_),children:r}),(0,t.jsx)(f.z,{direction:void 0!==L&&T[L],firstDirection:T[v]})]}):r,B=S?(0,t.jsx)(g.Tooltip,{content:S,children:P?O:(0,t.jsx)(g.TooltipNonInteractiveTrigger,{className:(0,i.f)("inline-flex",_,"cursor-help"),children:O})}):O;return(0,t.jsxs)("th",{ref:e=>{E.current=e,"function"==typeof k?k(e):k&&(k.current=e)},className:(0,i.f)("or-table__header-cell text-left",x&&m,y&&o,s),colSpan:u,scope:d,"aria-sort":P?L??"none":void 0,...w,children:[B,P?I:null]})},"TableHeader",0,N,"TableRow",0,function(e){let n,a,o,l,u,d,c,p,m,f=(0,r.c)(18);f[0]!==e?({className:n,disabled:l,interactive:u,ref:o,selected:d,tone:c,...a}=e,f[0]=e,f[1]=n,f[2]=a,f[3]=o,f[4]=l,f[5]=u,f[6]=d,f[7]=c):(n=f[1],a=f[2],o=f[3],l=f[4],u=f[5],d=f[6],c=f[7]);let g=void 0!==l&&l,h=void 0!==d&&d,A=!(void 0===u||u)&&"or-table__row--static",v=void 0!==c&&s[c],b=g&&"opacity-50";f[8]!==n||f[9]!==A||f[10]!==v||f[11]!==b?(p=(0,i.f)("or-table__row",A,v,b,n),f[8]=n,f[9]=A,f[10]=v,f[11]=b,f[12]=p):p=f[12];let x=h?"selected":void 0;return f[13]!==a||f[14]!==o||f[15]!==p||f[16]!==x?(m=(0,t.jsx)("tr",{ref:o,className:p,"data-state":x,...a}),f[13]=a,f[14]=o,f[15]=p,f[16]=x,f[17]=m):m=f[17],m},"TableRowHead",0,function(e){let n,s,u,d,c,p,m,f,g,h=(0,r.c)(19);h[0]!==e?({className:n,muted:d,ref:u,stickyEnd:c,...s}=e,h[0]=e,h[1]=n,h[2]=s,h[3]=u,h[4]=d,h[5]=c):(n=h[1],s=h[2],u=h[3],d=h[4],c=h[5]);let A=void 0!==d&&d,v=void 0!==c&&c,b=(0,a.useRef)(null);h[6]!==n||h[7]!==v?(p={elementRef:b,className:n,stickyEnd:v},h[6]=n,h[7]=v,h[8]=p):p=h[8],l(p),h[9]!==u?(m=e=>{b.current=e,"function"==typeof u?u(e):u&&(u.current=e)},h[9]=u,h[10]=m):m=h[10];let x=A&&"or-table__row-head--muted",y=v&&o;return h[11]!==n||h[12]!==x||h[13]!==y?(f=(0,i.f)("or-table__cell or-table__row-head text-left",x,y,n),h[11]=n,h[12]=x,h[13]=y,h[14]=f):f=h[14],h[15]!==s||h[16]!==m||h[17]!==f?(g=(0,t.jsx)("th",{ref:m,className:f,...s,scope:"row"}),h[15]=s,h[16]=m,h[17]=f,h[18]=g):g=h[18],g},"requireTableSort",0,function(e,t){return r=>{null!==r?t(r):null!==e&&t({key:e.key,direction:"asc"===e.direction?"desc":"asc"})}}],530798)},656521,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(207298),a=e.i(61885),i=e.i(773151),o=e.i(136562),l=e.i(609623),s=e.i(261499);(0,n.f)("",{variants:{variant:{default:"px-4 py-2.5",action:"w-10 px-3 py-2.5"},align:{left:"text-left",right:"text-right"}},defaultVariants:{variant:"default"}}),(0,n.f)((0,o.f)("group/sort inline-flex max-w-full select-none items-center gap-1","text-inherit transition-colors hover:text-slate-12"),{variants:{align:{left:"",right:"flex-row-reverse"}},defaultVariants:{align:"left"}});let u=28/24;e.s(["z",0,function(e){let n,d,c,p,m,f=(0,r.c)(10),{direction:g,firstDirection:h}=e,A=!1!==g;f[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(i.f,{"aria-hidden":"true",className:(0,o.f)("or-table__sort-icon or-table__sort-icon--muted","opacity-0 transition-opacity duration-fast ease-smooth-out motion-reduce:transition-none","group-hover/sort:opacity-100 group-focus-visible/sort:opacity-100")}),f[0]=n):n=f[0];let v=!1===g&&"delay-(--duration-fast) motion-reduce:transition-transform motion-reduce:duration-0",b="asc"===(!1===g?void 0===h?"asc":h:g)&&"-scale-y-100";return f[1]!==v||f[2]!==b?(d=(0,o.f)("flex",s.a,v,b),f[1]=v,f[2]=b,f[3]=d):d=f[3],f[4]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(a.f,{"aria-hidden":"true",className:"or-table__sort-icon",strokeWidth:u}),f[4]=c):c=f[4],f[5]!==d?(p=(0,t.jsx)("span",{className:d,children:c}),f[5]=d,f[6]=p):p=f[6],f[7]!==A||f[8]!==p?(m=(0,t.jsx)(l.f,{active:A,from:n,to:p}),f[7]=A,f[8]=p,f[9]=m):m=f[9],m},"w",0,function(e,t="asc"){return!1===e?t:e===t&&("asc"===t?"desc":"asc")}])},512688,e=>{"use strict";var t=e.i(663456),r=e.i(16043),n=e.i(143253);e.s(["f",0,function(e){let a,i,o=(0,t.c)(3),l=(0,r.useRef)(e);return o[0]!==e?(a=()=>{l.current=e},i=[e],o[0]=e,o[1]=a,o[2]=i):(a=o[1],i=o[2]),(0,n.f)(a,i),l}])},119488,e=>{"use strict";var t=e.i(663456),r=e.i(16043);e.s(["f",0,function(e){let n,a,i,o,l,s,u,d=(0,t.c)(25);d[0]!==e?(n=void 0===e?{}:e,d[0]=e,d[1]=n):n=d[1];let{threshold:c,root:p,rootMargin:m,freezeOnceVisible:f,initialIsIntersecting:g,onChange:h}=n,A=void 0===c?0:c,v=void 0===p?null:p,b=void 0===m?"0%":m,x=void 0!==f&&f,[y,S]=(0,r.useState)(null),[I,k]=(0,r.useState)(void 0!==g&&g),[R,T]=(0,r.useState)(void 0);d[2]!==h?(a=(e,t)=>{h?.(e,t)},d[2]=h,d[3]=a):a=d[3];let z=(0,r.useEffectEvent)(a),_=!!R&&I&&x;d[4]!==y||d[5]!==x||d[6]!==_||d[7]!==z||d[8]!==v||d[9]!==b||d[10]!==A?(i=()=>{if(!y||!("IntersectionObserver"in window)||_)return;let e=new IntersectionObserver(t=>{for(let r of t)k(r.isIntersecting),T(r),z(r.isIntersecting,r),r.isIntersecting&&x&&e.disconnect()},{threshold:A,root:v,rootMargin:b});return e.observe(y),()=>{e.disconnect()}},d[4]=y,d[5]=x,d[6]=_,d[7]=z,d[8]=v,d[9]=b,d[10]=A,d[11]=i):i=d[11],d[12]!==A?(o=JSON.stringify(A),d[12]=A,d[13]=o):o=d[13],d[14]!==y||d[15]!==x||d[16]!==_||d[17]!==v||d[18]!==b||d[19]!==o?(l=[y,o,v,b,_,x],d[14]=y,d[15]=x,d[16]=_,d[17]=v,d[18]=b,d[19]=o,d[20]=l):l=d[20],(0,r.useEffect)(i,l),d[21]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{S(e??null)},d[21]=s):s=d[21];let w=s;return d[22]!==R||d[23]!==I?(u={ref:w,isIntersecting:I,entry:R},d[22]=R,d[23]=I,d[24]=u):u=d[24],u}])},866969,e=>{"use strict";var t=e.i(663456),r=e.i(16043),n=e.i(143253);e.s(["f",0,function(e,a){let i,o,l,s,u=(0,t.c)(6),d=(0,r.useRef)(e);u[0]!==e?(i=()=>{d.current=e},o=[e],u[0]=e,u[1]=i,u[2]=o):(i=u[1],o=u[2]),(0,n.f)(i,o),u[3]!==a?(l=()=>{if(null===a)return;let e=setInterval(()=>{d.current()},a);return()=>{clearInterval(e)}},s=[a],u[3]=a,u[4]=l,u[5]=s):(l=u[4],s=u[5]),(0,r.useEffect)(l,s)}])},634618,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(297272),a=e.i(782143),i=e.i(293747),o=e.i(288265),l=e.i(16043),s=e.i(866969),u=e.i(138257);function d({gt:e,locale:t},r){let a=r/1e3;return e("{seconds}s",a<60?{seconds:(0,n.B)(a,{locale:t,fractionDigits:1})??"—"}:{seconds:(0,n._)(Math.round(a),{locale:t})??"—"})}function c(e,t){return(0,i.f)(t,{locale:e,preset:"model-price-fixed"})??"—"}e.s(["E",0,function(){let e,n,a,i,c=(0,r.c)(8),p=(0,o.f)(),m=(0,u.useLocale)();c[0]===Symbol.for("react.memo_cache_sentinel")?(e=Date.now(),c[0]=e):e=c[0];let f=(0,l.useRef)(e),[g,h]=(0,l.useState)(0);return c[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{h(Date.now()-f.current)},c[1]=n):n=c[1],(0,s.f)(n,100),c[2]!==g||c[3]!==p||c[4]!==m?(a=d({gt:p,locale:m},g),c[2]=g,c[3]=p,c[4]=m,c[5]=a):a=c[5],c[6]!==a?(i=(0,t.jsx)("p",{className:"text-muted-foreground text-xs",children:a}),c[6]=a,c[7]=i):i=c[7],i},"$",0,function(e){let i,l,s=(0,r.c)(24),{usage:p}=e,m=(0,o.f)(),f=(0,u.useLocale)();if(s[0]!==m||s[1]!==f||s[2]!==p.cost||s[3]!==p.durationMs||s[4]!==p.outputTokens||s[5]!==p.tokensPerSecond){if(i=[],void 0!==p.durationMs){let e;s[7]!==m||s[8]!==f||s[9]!==p.durationMs?(e=d({gt:m,locale:f},p.durationMs),s[7]=m,s[8]=f,s[9]=p.durationMs,s[10]=e):e=s[10],i.push(e)}if(void 0!==p.outputTokens){let e;if(s[11]!==m||s[12]!==f||s[13]!==p.outputTokens){var g;e=m("{count, plural, one {{formatted} token} other {{formatted} tokens}}",{count:p.outputTokens,formatted:(g=p.outputTokens,(0,a.f)(g,{locale:f,preset:"compact-integer-lowercase"})??"—")}),s[11]=m,s[12]=f,s[13]=p.outputTokens,s[14]=e}else e=s[14];i.push(e)}if(void 0!==p.tokensPerSecond){let e;s[15]!==m||s[16]!==f||s[17]!==p.tokensPerSecond?(e=m("{value} tok/s",{value:(0,n.B)(p.tokensPerSecond,{locale:f,fractionDigits:1})??"—"}),s[15]=m,s[16]=f,s[17]=p.tokensPerSecond,s[18]=e):e=s[18],i.push(e)}if(void 0!==p.cost){let e;s[19]!==f||s[20]!==p.cost?(e=c(f,p.cost),s[19]=f,s[20]=p.cost,s[21]=e):e=s[21],i.push(e)}s[0]=m,s[1]=f,s[2]=p.cost,s[3]=p.durationMs,s[4]=p.outputTokens,s[5]=p.tokensPerSecond,s[6]=i}else i=s[6];if(0===i.length)return null;let h=i.join(" · ");return s[22]!==h?(l=(0,t.jsx)("p",{className:"text-muted-foreground text-xs tabular-nums",children:h}),s[22]=h,s[23]=l):l=s[23],l},"J",0,c,"M",0,d])},656921,e=>{"use strict";var t=e.i(663456),r=e.i(16043);e.s(["f",0,function(e,n){let a,i,o,l=(0,t.c)(6);l[0]!==e||l[1]!==n?(a=t=>{if(null===e||!t.key)return;let r=t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement;("function"==typeof e?!e(t):t.key!==e||r||t.ctrlKey||t.metaKey)||(t.preventDefault(),n(t))},l[0]=e,l[1]=n,l[2]=a):a=l[2];let s=(0,r.useEffectEvent)(a);l[3]!==s?(i=()=>{let e=e=>s(e);return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},l[3]=s,l[4]=i):i=l[4],l[5]===Symbol.for("react.memo_cache_sentinel")?(o=[],l[5]=o):o=l[5],(0,r.useEffect)(i,o)}])},380773,e=>{"use strict";var t=e.i(173465),r=e.i(613497),n=e.i(819750);let a=(0,e.i(524287).f)("model-examples",{list:(e,t)=>[{permaslug:e,modality:t}]});e.s(["f",0,function({permaslug:e,modality:i}){return(0,t.f)({queryKey:a.list(e,i),queryFn:null===e||null===i?r.V:({signal:t})=>(0,n.f)("/api/frontend/v1/model-examples",{searchParams:{permaslug:e,modality:i},signal:t})})}])},74680,209656,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(288265),a=e.i(49505),i=e.i(88084),o=e.i(16043),l=e.i(136562),s=e.i(139697),u=e.i(80676),d=e.i(656921);let c="absolute inset-0 m-auto max-h-full max-w-full select-none object-contain";e.s(["f",0,c],209656);let p="absolute top-1/2 z-30 flex -translate-y-1/2 pointer-events-none opacity-0 transition-opacity duration-200 group-hover:opacity-100";function m(e){let n,a,i,o,s,u,d=(0,r.c)(12);d[0]!==e?({side:o,onClick:a,className:n,...i}=e,d[0]=e,d[1]=n,d[2]=a,d[3]=i,d[4]=o):(n=d[1],a=d[2],i=d[3],o=d[4]);let c="left"===o?"left-0":"right-0";return d[5]!==n||d[6]!==c?(s=(0,l.f)("absolute top-0 z-20 h-full w-1/3 cursor-pointer transition-colors active:bg-accent-subtle/80","focus-visible:border-focus-border focus-visible:shadow-focus focus-visible:outline-none",c,n),d[5]=n,d[6]=c,d[7]=s):s=d[7],d[8]!==a||d[9]!==i||d[10]!==s?(u=(0,t.jsx)("button",{type:"button",onClick:a,className:s,...i}),d[8]=a,d[9]=i,d[10]=s,d[11]=u):u=d[11],u}let f=/^data:image\/svg\+xml[;,]/i,g=/^data:/i,h=/\.([a-z0-9]+)$/i;e.s(["f",0,function(e){let A,v,b,x,y,S,I,k,R,T,z,_,w,E,C,D,j,N,M,P,L,O,B,q,V=(0,r.c)(67),{images:G,initialIndex:K,children:F}=e,$=void 0===K?0:K,H=(0,n.f)(),[U,W]=(0,o.useState)(!1),[Y,X]=(0,o.useState)($),Z=G.length,J=G[Y];if(V[0]!==$||V[1]!==U?(A=()=>{U&&X($)},v=[U,$],V[0]=$,V[1]=U,V[2]=A,V[3]=v):(A=V[2],v=V[3]),(0,o.useEffect)(A,v),V[4]!==U?(b=e=>U&&"ArrowRight"===e.key,V[4]=U,V[5]=b):b=V[5],V[6]!==Z?(x=()=>X(e=>(e+1)%Z),V[6]=Z,V[7]=x):x=V[7],(0,d.f)(b,x),V[8]!==U?(y=e=>U&&"ArrowLeft"===e.key,V[8]=U,V[9]=y):y=V[9],V[10]!==Z?(S=()=>X(e=>(e-1+Z)%Z),V[10]=Z,V[11]=S):S=V[11],(0,d.f)(y,S),!J)return null;V[12]!==J?(I=function(e){let t=e.url??"";if(g.test(t))return f.test(t);let r=(t.split(/[?#]/)[0]??"").split("/").at(-1)??"",n=h.exec(r)?.[1]??h.exec(e.name)?.[1];return n?.toLowerCase()==="svg"}(J),V[12]=J,V[13]=I):I=V[13];let Q=!I;V[14]!==H||V[15]!==J.name?(k=H("Open image preview: {name}",{name:J.name}),V[14]=H,V[15]=J.name,V[16]=k):k=V[16],V[17]===Symbol.for("react.memo_cache_sentinel")?(R=()=>W(!0),V[17]=R):R=V[17],V[18]!==F||V[19]!==k?(T=(0,t.jsx)(s.Button,{variant:"ghost",className:"h-auto p-0 contents w-auto hover:bg-transparent","aria-label":k,onClick:R,children:F}),V[18]=F,V[19]=k,V[20]=T):T=V[20],V[21]!==Q?(z=Q?(0,l.f)("fixed inset-0 block h-dvh w-full max-w-none p-0","rounded-none border-0 bg-(--or-ink)/95 shadow-none"):"w-full max-w-4xl flex flex-col items-center",V[21]=Q,V[22]=z):z=V[22];let ee=Q?"right-3 top-3 z-40 h-auto rounded-md bg-(--or-ink)/70 p-2 text-(--or-cloud) opacity-100 backdrop-blur-sm hover:bg-(--or-ink)/85":void 0,et=Q?"sr-only":void 0;V[23]!==J.name?(_=(0,t.jsx)(u.F,{children:J.name}),V[23]=J.name,V[24]=_):_=V[24],V[25]!==et||V[26]!==_?(w=(0,t.jsx)(u.s,{className:et,children:_}),V[25]=et,V[26]=_,V[27]=w):w=V[27];let er=Q?"absolute inset-0":"relative flex items-center justify-center w-full max-h-[70vh] min-h-80";return V[28]!==er?(E=(0,l.f)("group ph-no-capture",er),V[28]=er,V[29]=E):E=V[29],V[30]!==H||V[31]!==Z?(C=Z>1&&(0,t.jsx)(m,{"aria-label":H("Previous image"),side:"left",onClick:()=>X(e=>(e-1+Z)%Z)}),V[30]=H,V[31]=Z,V[32]=C):C=V[32],V[33]!==H||V[34]!==Z?(D=Z>1&&(0,t.jsx)(m,{"aria-label":H("Next image"),side:"right",onClick:()=>X(e=>(e+1)%Z)}),V[33]=H,V[34]=Z,V[35]=D):D=V[35],V[36]!==Q||V[37]!==Z?(j=Z>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,l.f)(p,Q?"left-3":"left-0"),children:(0,t.jsx)(s.Button,{variant:"outline",size:"icon-sm",tabIndex:-1,children:(0,t.jsx)(a.f,{className:"size-4"})})}),(0,t.jsx)("div",{className:(0,l.f)(p,Q?"right-3":"right-0"),children:(0,t.jsx)(s.Button,{variant:"outline",size:"icon-sm",tabIndex:-1,children:(0,t.jsx)(i.f,{className:"size-4"})})})]}),V[36]=Q,V[37]=Z,V[38]=j):j=V[38],V[39]!==Q?(N=Q?(0,l.f)(c,"z-0"):"relative z-0 object-contain max-h-[65vh] w-auto max-w-full select-none mx-auto rounded-sm",V[39]=Q,V[40]=N):N=V[40],V[41]!==J.name||V[42]!==J.url||V[43]!==N?(M=(0,t.jsx)("img",{src:J.url,alt:J.name,className:N,draggable:!1},J.url),V[41]=J.name,V[42]=J.url,V[43]=N,V[44]=M):M=V[44],V[45]!==E||V[46]!==C||V[47]!==D||V[48]!==j||V[49]!==M?(P=(0,t.jsxs)("div",{className:E,"data-dd-privacy":"hidden",children:[C,D,j,M]}),V[45]=E,V[46]=C,V[47]=D,V[48]=j,V[49]=M,V[50]=P):P=V[50],V[51]!==Y||V[52]!==Q||V[53]!==Z?(L=Z>1||!Q?(0,t.jsx)("div",{className:(0,l.f)("text-xs py-2 text-center w-full",Q?"pointer-events-none absolute inset-x-0 bottom-2 z-30 text-(--or-cloud)":"text-muted-foreground"),children:Z>1?`${Y+1} / ${Z}`:""}):null,V[51]=Y,V[52]=Q,V[53]=Z,V[54]=L):L=V[54],V[55]!==z||V[56]!==ee||V[57]!==w||V[58]!==P||V[59]!==L?(O=(0,t.jsxs)(u.d,{keepMounted:!1,className:z,closeButtonClassName:ee,children:[w,P,L]}),V[55]=z,V[56]=ee,V[57]=w,V[58]=P,V[59]=L,V[60]=O):O=V[60],V[61]!==U||V[62]!==O?(B=(0,t.jsx)(u.N,{open:U,onOpenChange:W,children:O}),V[61]=U,V[62]=O,V[63]=B):B=V[63],V[64]!==T||V[65]!==B?(q=(0,t.jsxs)(t.Fragment,{children:[T,B]}),V[64]=T,V[65]=B,V[66]=q):q=V[66],q}],74680)},674690,e=>{"use strict";e.i(882844);var t=e.i(684434),r=e.i(51214),n=e.i(519004);r.i,e.s(["f",0,function(e){let r;return e?(r={},e.resolutions?.length&&(r.resolution={type:t.k.Enum,values:[...e.resolutions]}),e.aspect_ratios?.length&&(r.aspect_ratio={type:t.k.Enum,values:[...e.aspect_ratios]}),e.output_formats?.length&&(r.output_format={type:t.k.Enum,values:[...e.output_formats]}),e.qualities?.length&&(r.quality={type:t.k.Enum,values:[...e.qualities]}),e.backgrounds?.length&&(r.background={type:t.k.Enum,values:[...e.backgrounds]}),(0,n.f)(e.n)&&(r.n={type:t.k.Range,min:e.n.min,max:e.n.max}),(0,n.f)(e.input_references)&&(r.input_references={type:t.k.Range,min:e.input_references.min,max:e.input_references.max}),(0,n.f)(e.output_compression)&&(r.output_compression={type:t.k.Range,min:e.output_compression.min,max:e.output_compression.max}),e.seed&&(r.seed={type:t.k.Boolean}),e.size&&(r.size={type:t.k.Boolean}),r):null}],674690)},519004,e=>{"use strict";e.s(["f",0,function(e){return"number"==typeof e?.min&&"number"==typeof e.max}])},381462,e=>{"use strict";e.i(882844);var t=e.i(635157),r=e.i(297900);e.i(806);let n={TextGeneration:"text_generation",ImageGeneration:"image_generation",VideoGeneration:"video_generation",Embeddings:"embeddings",Rerank:"rerank",TTS:"tts",STT:"stt",Decisions:"decisions",Extractions:"extractions",Unknown:"unknown"};t.z.enum(n),Object.values(r.f),e.s(["f",0,n])},837808,e=>{"use strict";e.i(882844);var t=e.i(635157);let r=t.z.object({url:t.z.string().url(),thumbnailUrl:t.z.string().url().nullable(),frameThumbnailUrls:t.z.array(t.z.string().url()).optional(),mediaType:t.z.string(),width:t.z.number().int().positive(),height:t.z.number().int().positive()}),n=t.z.object({url:t.z.string().url(),mediaType:t.z.string()}),a=t.z.object({permaslug:t.z.string(),name:t.z.string(),author:t.z.string()}),i=t.z.object({label:t.z.string(),pass:t.z.boolean(),spoken:t.z.literal(!0).optional()}),o=t.z.object({checks:t.z.array(i).min(1),judges:t.z.array(a).min(1).optional()}),l=t.z.object({label:t.z.string(),score:t.z.number(),reason:t.z.string().optional()}),s=a.extend({ratings:t.z.array(l).min(1)}),u=t.z.object({judges:t.z.array(s).min(1)}),d=t.z.object({model:a,provider:t.z.string().nullable(),asset:r,costUsd:t.z.number().nullable(),durationMs:t.z.number().nullable(),score:o.optional(),quality:u.optional(),source:n.optional(),reasoningEffort:t.z.string().optional()}),c=t.z.object({slug:t.z.string(),name:t.z.string(),prompt:t.z.string(),inputAssets:t.z.array(r),cells:t.z.array(d)}),p=t.z.object({kind:t.z.enum(["challenge","style"]).optional(),modality:t.z.enum(["image","video"]).optional(),slug:t.z.string(),name:t.z.string(),navLabel:t.z.string(),description:t.z.string().nullable(),variantAxisName:t.z.string().nullable(),variants:t.z.array(c)}),m=t.z.object({slug:t.z.string(),name:t.z.string(),description:t.z.string().nullable(),kind:t.z.enum(["challenges","styles"]).optional(),challenges:t.z.array(p)});t.z.object({sections:t.z.array(m)}),t.z.string().min(1).max(64).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/,"lowercase letters, digits and single hyphens only");let f=t.z.object({kind:t.z.enum(["challenge","style"]),slug:t.z.string(),name:t.z.string(),navLabel:t.z.string()}),g=t.z.object({slug:t.z.string(),name:t.z.string(),challenges:t.z.array(f)});t.z.object({sections:t.z.array(g)});let h=t.z.object({challenge:p});t.z.string().min(3).max(256).regex(/^[a-z0-9._-]+\/[a-z0-9._-]+$/i,"author/slug with letters, digits, dots, hyphens and underscores");let A=["image","video"],v=t.z.object({url:t.z.string().url(),mediaType:t.z.string().startsWith("audio/"),durationMs:t.z.number().int().nonnegative().nullable(),voice:t.z.string().nullable(),transcript:t.z.string().nullable(),peaks:t.z.array(t.z.number().min(0).max(1)).optional()}),b=t.z.object({model:a,provider:t.z.string().nullable(),asset:v,costUsd:t.z.number().nullable(),durationMs:t.z.number().nullable(),score:o.optional(),heard:t.z.object({text:t.z.string(),judge:a}).nullish()}),x=t.z.object({slug:t.z.string(),name:t.z.string(),prompt:t.z.string(),cells:t.z.array(b)}),y=t.z.object({kind:t.z.enum(["challenge","style"]),slug:t.z.string(),name:t.z.string(),navLabel:t.z.string(),description:t.z.string().nullable(),variantAxisName:t.z.string().nullable(),variants:t.z.array(x)}),S=t.z.object({challenge:y}),I="speech",k=t.z.object({url:t.z.string().url(),mediaType:t.z.literal("text/html"),threeVersion:t.z.string().nullable(),thumbnailUrl:t.z.string().url().nullish()}),R=t.z.object({model:a,provider:t.z.string().nullable(),asset:k,costUsd:t.z.number().nullable(),durationMs:t.z.number().nullable(),score:o.optional()}),T=t.z.object({slug:t.z.string(),name:t.z.string(),prompt:t.z.string(),cells:t.z.array(R)}),z=t.z.object({kind:t.z.enum(["challenge","style"]),slug:t.z.string(),name:t.z.string(),navLabel:t.z.string(),description:t.z.string().nullable(),variantAxisName:t.z.string().nullable(),variants:t.z.array(T)}),_=t.z.object({challenge:z}),w=t.z.object({position:t.z.number().int().positive(),of:t.z.number().int().positive(),tied:t.z.boolean().optional()}),E=t.z.object({rosterCount:t.z.number().int().nonnegative(),evalsRun:t.z.number().int().nonnegative(),gradedRun:t.z.number().int().nonnegative(),scoredRun:t.z.number().int().nonnegative().optional(),checksPassed:t.z.number().int().nonnegative(),checksTotal:t.z.number().int().nonnegative(),meanFidelity:t.z.number().min(0).max(1).nullable(),rankOnChecks:w.nullable(),rankOnCost:w.nullable(),rankOnSpeed:w.nullable(),challenges:t.z.record(t.z.string(),w.nullable())});t.z.object({pages:t.z.array(t.z.union([h,S,_])),standing:E.optional()});let C=[...A,I,"game"];[...A],[...C];let D=[...A,I];t.z.enum(D);let j=t.z.object({kind:t.z.enum(["challenge","style"]),slug:t.z.string(),navLabel:t.z.string(),variantSlug:t.z.string(),variantCount:t.z.number().int().positive(),prompt:t.z.string(),costUsd:t.z.number().nullable(),durationMs:t.z.number().nullable(),score:o.optional()}),N=j.extend({modality:t.z.enum(A),asset:r.pick({url:!0,thumbnailUrl:!0,frameThumbnailUrls:!0,width:!0,height:!0})}),M=j.extend({modality:t.z.literal(I),asset:v.pick({url:!0,voice:!0,transcript:!0,peaks:!0}),heard:b.shape.heard}),P=t.z.union([N,M]);t.z.object({tiles:t.z.array(P),standing:E.optional()}),e.s(["U",0,"strip","Z",0,I])},733476,e=>{"use strict";e.i(988590);var t,r,n,a,i=((t={}).AzureOpenAIEmbeddingsAdapter="AzureOpenAIEmbeddingsAdapter",t.OpenAIEmbeddingsAdapter="OpenAIEmbeddingsAdapter",t.DeepInfraEmbeddingsAdapter="DeepInfraEmbeddingsAdapter",t.NvidiaEmbeddingsAdapter="NvidiaEmbeddingsAdapter",t.VoyageEmbeddingsAdapter="VoyageEmbeddingsAdapter",t.VoyageMultimodalEmbeddingsAdapter="VoyageMultimodalEmbeddingsAdapter",t.CohereEmbeddingsAdapter="CohereEmbeddingsAdapter",t.PerplexityEmbeddingsAdapter="PerplexityEmbeddingsAdapter",t.GoogleAIStudioEmbeddingsAdapter="GoogleAIStudioEmbeddingsAdapter",t.GoogleVertexEmbeddingsAdapter="GoogleVertexEmbeddingsAdapter",t.AmazonBedrockEmbeddingsAdapter="AmazonBedrockEmbeddingsAdapter",t),o=((r={}).AlibabaImageAdapter="AlibabaImageAdapter",r.SeedreamImageAdapter="SeedreamImageAdapter",r.XaiImageAdapter="XaiImageAdapter",r.RecraftImageAdapter="RecraftImageAdapter",r.BlackForestLabsImageAdapter="BlackForestLabsImageAdapter",r.BlackForestLabsFlux3ImageAdapter="BlackForestLabsFlux3ImageAdapter",r.SourcefulImageAdapter="SourcefulImageAdapter",r.SourcefulV2ImageAdapter="SourcefulV2ImageAdapter",r.SourcefulV25ImageAdapter="SourcefulV25ImageAdapter",r.SourcefulV26ImageAdapter="SourcefulV26ImageAdapter",r.OpenAIImageAdapter="OpenAIImageAdapter",r.MetaImageAdapter="MetaImageAdapter",r.GoogleAIStudioGeminiImageAdapter="GoogleAIStudioGeminiImageAdapter",r.GoogleVertexGeminiImageAdapter="GoogleVertexGeminiImageAdapter",r.AzureMAIImageAdapter="AzureMAIImageAdapter",r.AzureOpenAIImageAdapter="AzureOpenAIImageAdapter",r.QuiverImageAdapter="QuiverImageAdapter",r.KreaImageAdapter="KreaImageAdapter",r.NovitaImageAdapter="NovitaImageAdapter",r.TencentImageAdapter="TencentImageAdapter",r.TencentPanoramaImageAdapter="TencentPanoramaImageAdapter",r.MinimaxImageAdapter="MinimaxImageAdapter",r),l=((n={}).AzureDecisionsAdapter="AzureDecisionsAdapter",n.AzureOpenAIDecisionsAdapter="AzureOpenAIDecisionsAdapter",n.BasetenDecisionsAdapter="BasetenDecisionsAdapter",n.CloudflareDecisionsAdapter="CloudflareDecisionsAdapter",n.DeepInfraSystemOneDecisionsAdapter="DeepInfraSystemOneDecisionsAdapter",n.GoogleAIStudioDecisionsAdapter="GoogleAIStudioDecisionsAdapter",n.GoogleVertexDecisionsAdapter="GoogleVertexDecisionsAdapter",n.HeyGenDecisionsAdapter="HeyGenDecisionsAdapter",n.InceptionDecisionsAdapter="InceptionDecisionsAdapter",n.LiquidDecisionsAdapter="LiquidDecisionsAdapter",n.MakoraDecisionsAdapter="MakoraDecisionsAdapter",n.MorphDecisionsAdapter="MorphDecisionsAdapter",n.OpenAIDecisionsAdapter="OpenAIDecisionsAdapter",n.ParallelDecisionsAdapter="ParallelDecisionsAdapter",n.PerplexityDecisionsAdapter="PerplexityDecisionsAdapter",n.PrimeIntellectDecisionsAdapter="PrimeIntellectDecisionsAdapter",n.RespanDecisionsAdapter="RespanDecisionsAdapter",n.RespanSystemOneDecisionsAdapter="RespanSystemOneDecisionsAdapter",n.ScaleDownDecisionsAdapter="ScaleDownDecisionsAdapter",n.TogetherTevDecisionsAdapter="TogetherTevDecisionsAdapter",n.TypeSafeDecisionsAdapter="TypeSafeDecisionsAdapter",n.TypeSafeFirstPartyDecisionsAdapter="TypeSafeFirstPartyDecisionsAdapter",n),s=((a={}).AI21Adapter="AI21Adapter",a.AionLabsAdapter="AionLabsAdapter",a.AkashAdapter="AkashAdapter",a.ArceeAdapter="ArceeAdapter",a.AmazonBedrockConverseAdapter="AmazonBedrockConverseAdapter",a.AmazonBedrockConverseNovaReasoningAdapter="AmazonBedrockConverseNovaReasoningAdapter",a.AmazonBedrockInvokeAnthropicAdapter="AmazonBedrockInvokeAnthropicAdapter",a.AmazonBedrockOSSAdapter="AmazonBedrockOSSAdapter",a.AmazonBedrockRuntimeChatCompletionsAdapter="AmazonBedrockRuntimeChatCompletionsAdapter",a.AmazonNovaAdapter="AmazonNovaAdapter",a.AnthropicMessageAdapter="AnthropicMessageAdapter",a.ClaudeOnAwsAdapter="ClaudeOnAwsAdapter",a.AlibabaAdapter="AlibabaAdapter",a.AmbientAdapter="AmbientAdapter",a.BlackForestLabsAdapter="BlackForestLabsAdapter",a.BaiduAdapter="BaiduAdapter",a.AvianAdapter="AvianAdapter",a.AzureAnthropicAdapter="AzureAnthropicAdapter",a.AzureMistralAdapter="AzureMistralAdapter",a.AzureOpenAIAdapter="AzureOpenAIAdapter",a.AzureOpenAIResponsesAdapter="AzureOpenAIResponsesAdapter",a.AzureMAIImageAdapter="AzureMAIImageAdapter",a.AzureOSSAdapter="AzureOSSAdapter",a.BasetenAdapter="BasetenAdapter",a.BytePlusAdapter="BytePlusAdapter",a.ChutesAdapter="ChutesAdapter",a.CloudflareAdapter="CloudflareAdapter",a.CohereCompatAdapter="CohereCompatAdapter",a.CohereV2Adapter="CohereV2Adapter",a.InternalStreamCohereV2Adapter="InternalStreamCohereV2Adapter",a.CerebrasAdapter="CerebrasAdapter",a.ClarifaiAdapter="ClarifaiAdapter",a.CosineAdapter="CosineAdapter",a.CrucibleAdapter="CrucibleAdapter",a.CrucibleResponsesAdapter="CrucibleResponsesAdapter",a.CrusoeAdapter="CrusoeAdapter",a.DarkbloomAdapter="DarkbloomAdapter",a.DatabricksAnthropicAdapter="DatabricksAnthropicAdapter",a.DatabricksOpenResponsesAdapter="DatabricksOpenResponsesAdapter",a.DeepInfraAdapter="DeepInfraAdapter",a.DeepSeekAdapter="DeepSeekAdapter",a.DigitalOceanAdapter="DigitalOceanAdapter",a.EncodedImageOpenAIAdapter="EncodedImageOpenAIAdapter",a.FakeAdapter="FakeAdapter",a.FireworksAdapter="FireworksAdapter",a.FireworksAnthropicAdapter="FireworksAnthropicAdapter",a.FriendliAdapter="FriendliAdapter",a.GoogleAIStudioGeminiAdapter="GoogleAIStudioGeminiAdapter",a.GoogleVertexAnthropicAdapter="GoogleVertexAnthropicAdapter",a.GoogleVertexGeminiAdapter="GoogleVertexGeminiAdapter",a.GroqAdapter="GroqAdapter",a.InceptionAdapter="InceptionAdapter",a.InceptronAdapter="InceptronAdapter",a.InferactVLLMAdapter="InferactVLLMAdapter",a.InferenceNetAdapter="InferenceNetAdapter",a.InfermaticAdapter="InfermaticAdapter",a.InflectionAdapter="InflectionAdapter",a.InflectionLegacyAdapter="InflectionLegacyAdapter",a.InternalStreamAmazonBedrockInvokeAnthropicAdapter="InternalStreamAmazonBedrockInvokeAnthropicAdapter",a.InternalStreamAmazonBedrockOpenAIResponsesAdapter="InternalStreamAmazonBedrockOpenAIResponsesAdapter",a.InternalStreamAmazonBedrockRuntimeOpenAIResponsesAdapter="InternalStreamAmazonBedrockRuntimeOpenAIResponsesAdapter",a.InternalStreamAnthropicMessageAdapter="InternalStreamAnthropicMessageAdapter",a.InternalStreamAzureAnthropicAdapter="InternalStreamAzureAnthropicAdapter",a.InternalStreamAzureMAIImageAdapter="InternalStreamAzureMAIImageAdapter",a.InternalStreamAzureOpenAIResponsesAdapter="InternalStreamAzureOpenAIResponsesAdapter",a.InternalStreamClaudeOnAwsAdapter="InternalStreamClaudeOnAwsAdapter",a.InternalStreamGoogleAIStudioInteractionsAdapter="InternalStreamGoogleAIStudioInteractionsAdapter",a.InternalStreamGoogleVertexAnthropicAdapter="InternalStreamGoogleVertexAnthropicAdapter",a.InternalStreamGoogleVertexInteractionsAdapter="InternalStreamGoogleVertexInteractionsAdapter",a.InternalStreamGoogleVertexResponsesAdapter="InternalStreamGoogleVertexResponsesAdapter",a.InternalStreamOpenAIResponsesAdapter="InternalStreamOpenAIResponsesAdapter",a.InternalStreamRecraftAdapter="InternalStreamRecraftAdapter",a.InternalStreamXAIImageAdapter="InternalStreamXAIImageAdapter",a.InternalStreamXAIResponsesAdapter="InternalStreamXAIResponsesAdapter",a.IonetAdapter="IonetAdapter",a.IonstreamAdapter="IonstreamAdapter",a.MakoraAdapter="MakoraAdapter",a.MancerAdapter="MancerAdapter",a.InternalStreamMetaResponsesAdapter="InternalStreamMetaResponsesAdapter",a.MistralAdapter="MistralAdapter",a.MinimaxAdapter="MinimaxAdapter",a.ModelRunAdapter="ModelRunAdapter",a.MinimaxChatCompletionV2Adapter="MinimaxChatCompletionV2Adapter",a.MoonshotAdapter="MoonshotAdapter",a.MorphAdapter="MorphAdapter",a.MorphFastApplyAdapter="MorphFastApplyAdapter",a.NearAIAdapter="NearAIAdapter",a.NebiusAdapter="NebiusAdapter",a.NexAGIAdapter="NexAGIAdapter",a.NextBitAdapter="NextBitAdapter",a.NovitaAdapter="NovitaAdapter",a.NvidiaAdapter="NvidiaAdapter",a.OllamaAdapter="OllamaAdapter",a.OpenAIAdapter="OpenAIAdapter",a.AtlasCloudAdapter="AtlasCloudAdapter",a.GMICloudAdapter="GMICloudAdapter",a.OpenInferenceAdapter="OpenInferenceAdapter",a.ParasailAdapter="ParasailAdapter",a.PhalaAdapter="PhalaAdapter",a.PearlResearchAdapter="PearlResearchAdapter",a.PrimeIntellectAdapter="PrimeIntellectAdapter",a.OpenAIResponsesAdapter="OpenAIResponsesAdapter",a.PerceptronAdapter="PerceptronAdapter",a.PerplexityAdapter="PerplexityAdapter",a.RecraftAdapter="RecraftAdapter",a.RelaceAdapter="RelaceAdapter",a.StealthAdapter="StealthAdapter",a.StealthAdapter2="StealthAdapter2",a.InternalStreamStealthAdapter2="InternalStreamStealthAdapter2",a.StepFunAdapter="StepFunAdapter",a.StreamLakeAdapter="StreamLakeAdapter",a.TogetherAdapter="TogetherAdapter",a.UnbiasedAdapter="UnbiasedAdapter",a.UpstageAdapter="UpstageAdapter",a.XAIImageAdapter="XAIImageAdapter",a.XAIResponsesAdapter="XAIResponsesAdapter",a.XiaomiAdapter="XiaomiAdapter",a.ZAIAdapter="ZAIAdapter",a.SiliconFlowAdapter="SiliconFlowAdapter",a.SailResearchAdapter="SailResearchAdapter",a.SakanaAIAdapter="SakanaAIAdapter",a.SambaNovaAdapter="SambaNovaAdapter",a.ScaleDownAdapter="ScaleDownAdapter",a.TenstorrentAdapter="TenstorrentAdapter",a.ThinkingMachinesAdapter="ThinkingMachinesAdapter",a.SeedreamAdapter="SeedreamAdapter",a.InternalStreamSeedreamAdapter="InternalStreamSeedreamAdapter",a.SourcefulAdapter="SourcefulAdapter",a.SourcefulV2Adapter="SourcefulV2Adapter",a.SourcefulV25Adapter="SourcefulV25Adapter",a.SourcefulV26Adapter="SourcefulV26Adapter",a.InternalStreamBlackForestLabsAdapter="InternalStreamBlackForestLabsAdapter",a.InternalStreamSourcefulAdapter="InternalStreamSourcefulAdapter",a.InternalStreamSourcefulV2Adapter="InternalStreamSourcefulV2Adapter",a.InternalStreamSourcefulV25Adapter="InternalStreamSourcefulV25Adapter",a.InternalStreamSourcefulV26Adapter="InternalStreamSourcefulV26Adapter",a.VeniceAdapter="VeniceAdapter",a.VertexOpenAIAdapter="VertexOpenAIAdapter",a.VLLMChatCompletionsAdapter="VLLMChatCompletionsAdapter",a.VLLMOpenAIAdapter="VLLMOpenAIAdapter",a.WaferAdapter="WaferAdapter",a.WandbAdapter="WandbAdapter",a);e.s(["n",()=>s,"o",0,{Stub:"stub",OpenAIBatchAdapter:"OpenAIBatchAdapter",AnthropicBatchAdapter:"AnthropicBatchAdapter",GoogleAIStudioGeminiBatchAdapter:"GoogleAIStudioGeminiBatchAdapter",VertexGeminiBatchAdapter:"VertexGeminiBatchAdapter",VertexDeferredInteractionsBatchAdapter:"VertexDeferredInteractionsBatchAdapter",TogetherBatchAdapter:"TogetherBatchAdapter",ParasailBatchAdapter:"ParasailBatchAdapter",DeepInfraBatchAdapter:"DeepInfraBatchAdapter",AlibabaBatchAdapter:"AlibabaBatchAdapter",FireworksBatchAdapter:"FireworksBatchAdapter",MistralBatchAdapter:"MistralBatchAdapter",XAIBatchAdapter:"XAIBatchAdapter",SailResearchBatchAdapter:"SailResearchBatchAdapter",MorphBatchAdapter:"MorphBatchAdapter"},"G",()=>l,"R",()=>i,"W",0,{CloudflareClairicExtractionsAdapter:"CloudflareClairicExtractionsAdapter",InceptionExtractionsAdapter:"InceptionExtractionsAdapter",InferenceNetSchematronExtractionsAdapter:"InferenceNetSchematronExtractionsAdapter",PerplexityExtractionsAdapter:"PerplexityExtractionsAdapter",SageExtractionsAdapter:"SageExtractionsAdapter",ScaleDownExtractionsAdapter:"ScaleDownExtractionsAdapter"},"O",()=>o,"u",0,{AlibabaTTSAdapter:"AlibabaTTSAdapter",AssemblyAITTSAdapter:"AssemblyAITTSAdapter",AzureTTSAdapter:"AzureTTSAdapter",OpenAITTSAdapter:"OpenAITTSAdapter",OpenAISSETTSAdapter:"OpenAISSETTSAdapter",DeepInfraTTSAdapter:"DeepInfraTTSAdapter",GoogleVertexTTSAdapter:"GoogleVertexTTSAdapter",GoogleAIStudioTTSAdapter:"GoogleAIStudioTTSAdapter",MistralTTSAdapter:"MistralTTSAdapter",XAITTSAdapter:"XAITTSAdapter",DeepgramTTSAdapter:"DeepgramTTSAdapter",MinimaxTTSAdapter:"MinimaxTTSAdapter",FishAudioTTSAdapter:"FishAudioTTSAdapter",TogetherTTSAdapter:"TogetherTTSAdapter",SeedAudioTTSAdapter:"SeedAudioTTSAdapter",ElevenLabsTTSAdapter:"ElevenLabsTTSAdapter",HeyGenTTSAdapter:"HeyGenTTSAdapter",SpeechifyTTSAdapter:"SpeechifyTTSAdapter"}])},297900,e=>{"use strict";e.s(["f",0,{Completions:{apiType:"completions",scriptName:"api",perfWorkload:"text_generation",lifecycleSurface:null,requestPaths:["/api/v1/chat/completions","/api/v1/completions","/api/v1/messages","/api/v1/responses"],aliasRequestPaths:[]},Embeddings:{apiType:"embeddings",scriptName:"embeddings-api",perfWorkload:"embeddings",lifecycleSurface:"embeddings",requestPaths:["/api/v1/embeddings"],aliasRequestPaths:[]},Rerank:{apiType:"rerank",scriptName:"rerank-api",perfWorkload:"rerank",lifecycleSurface:"rerank",requestPaths:["/api/v1/rerank"],aliasRequestPaths:[]},Decisions:{apiType:"decisions",scriptName:"decisions-api",perfWorkload:"decisions",lifecycleSurface:"decisions",requestPaths:["/api/alpha/decisions"],aliasRequestPaths:[]},Extractions:{apiType:"extractions",scriptName:"decisions-api",perfWorkload:"extractions",lifecycleSurface:"extractions",requestPaths:["/api/alpha/extractions"],aliasRequestPaths:[]},Video:{apiType:"video",scriptName:"video-api",perfWorkload:"video_generation",lifecycleSurface:"videoGeneration",requestPaths:["/api/v1/videos"],aliasRequestPaths:[]},TTS:{apiType:"tts",scriptName:"tts-api",perfWorkload:"tts",lifecycleSurface:"tts",requestPaths:["/api/v1/audio/speech"],aliasRequestPaths:[]},STT:{apiType:"stt",scriptName:"stt-api",perfWorkload:"stt",lifecycleSurface:"stt",requestPaths:["/api/v1/audio/transcriptions"],aliasRequestPaths:[]},Image:{apiType:"image",scriptName:"image-api",perfWorkload:"image_generation",lifecycleSurface:"imageGeneration",requestPaths:["/api/v1/images"],aliasRequestPaths:["/api/v1/images/generations"]},Tools:{apiType:"tools_invoke",scriptName:"api",perfWorkload:"unknown",lifecycleSurface:null,requestPaths:[],aliasRequestPaths:[]}}])},806,e=>{"use strict";let t=Object.fromEntries(Object.entries(e.i(297900).f).map(([e,t])=>[e,t.apiType]));e.s(["f",0,t],806)},684434,e=>{"use strict";var t=e.i(882844),r=e.i(635157);let n={Enum:"enum",Range:"range",Boolean:"boolean"},a=r.z.object({type:r.z.literal(n.Enum),values:r.z.array(r.z.string())}).openapi("EnumCapability",{description:"A parameter that accepts one of a discrete set of string values.",example:{type:"enum",values:["1K","2K","4K"]}}),i=r.z.object({type:r.z.literal(n.Range),min:(0,t.$)(),max:(0,t.$)()}).openapi("RangeCapability",{description:"A parameter that accepts any value within an inclusive numeric range.",example:{type:"range",min:0,max:100}}),o=r.z.object({type:r.z.literal(n.Boolean)}).openapi("BooleanCapability",{description:"A supported-or-not flag. Present means the parameter is accepted.",example:{type:"boolean"}}),l=r.z.discriminatedUnion("type",[a,i,o]).openapi("CapabilityDescriptor",{description:"A typed descriptor for one supported request parameter.",example:{type:"enum",values:["1K","2K","4K"]},discriminator:{propertyName:"type",mapping:{enum:"#/components/schemas/EnumCapability",range:"#/components/schemas/RangeCapability",boolean:"#/components/schemas/BooleanCapability"}}}),s=r.z.record(r.z.string(),l).openapi("SupportedParameters",{description:"Supported request parameters, keyed by request field name. An absent key means the parameter is not supported.",example:{resolution:{type:"enum",values:["1K","2K","4K"]},output_compression:{type:"range",min:0,max:100},seed:{type:"boolean"}}});e.s(["k",0,n,"_",0,s])},667417,e=>{"use strict";var t,r,n=e.i(988590),a=((t={}).Text="text",t.Image="image",t.Embeddings="embeddings",t.Audio="audio",t.Video="video",t.Rerank="rerank",t.Decisions="decisions",t.TTS="speech",t.Transcription="transcription",t),i=((r={}).Text="text",r.Image="image",r.File="file",r.Audio="audio",r.Video="video",r);let o=(0,n.v)(i),l=(0,n.v)(a);e.s(["v",0,o,"D",()=>i,"Z",0,l,"j",()=>a,"f",0,["text","image","video","speech","transcription","embeddings","rerank","decisions","audio"],"K",0,function(e){return 1===e.length&&e.includes("text")}])},346802,e=>{"use strict";e.s(["f",0,{Text:"text",ComputerUseTool:"computer_use_tool",AudioTool:"audio_tool",AudioOutput:"audio_output",FastApply:"fast_apply",Embeddings:"embeddings",ImageInputEmbeddings:"image_input_embeddings",Reasoning:"reasoning",ImageGeneration:"image_generation",ImageGenerationWithoutText:"image_generation_without_text",VideoGeneration:"video_generation",Rerank:"rerank",TTS:"tts",TTSMaiVoice:"tts_mai_voice",STT:"stt",STTMaiTranscribe:"stt_mai_transcribe",OCR:"ocr",Decisions:"decisions",Extractions:"extractions"}])},51214,e=>{"use strict";e.i(882844);var t=e.i(635157);let r=t.z.object({type:t.z.literal("text"),text:t.z.string()}).openapi("PredictionContentText",{description:"Text content part for a predicted output.",example:{type:"text",text:"Expected response"}}),n=t.z.object({type:t.z.literal("image_url"),image_url:t.z.object({url:t.z.string()})}).openapi("ContentPartImage",{example:{type:"image_url",image_url:{url:"https://example.com/image.png"}}});e.s(["i",0,n,"d",0,r])},983739,e=>{"use strict";var t,r=((t={}).Price="price",t.Throughput="throughput",t.Latency="latency",t.Exacto="exacto",t);e.s(["f",()=>r])},983335,e=>{"use strict";var t=e.i(988590),r=e.i(771271);function n(e){var t;let{envKey:r,...n}=e;return{...n,envKey:void 0===r?(t=e.slug,`${t.toUpperCase().replaceAll("-","_")}_API_KEY`):r}}let a={[r.R.AnyScale]:n({slug:"anyscale",isDead:!0}),[r.R.Atoma]:n({slug:"atoma",isDead:!0}),[r.R.CentML]:n({slug:"centml",isDead:!0}),[r.R.CrofAI]:n({slug:"crofai",isDead:!0}),[r.R.Enfer]:n({slug:"enfer",isDead:!0}),[r.R.GoPomelo]:n({slug:"gopomelo",isDead:!0}),[r.R.HuggingFace]:n({slug:"huggingface",isDead:!0}),[r.R.Hyperbolic]:n({slug:"hyperbolic",isDead:!0}),[r.R.HyperbolicQuantized]:n({slug:"hyperbolic-quantized",isDead:!0}),[r.R.InoCloud]:n({slug:"inocloud",isDead:!0}),[r.R.Kluster]:n({slug:"klusterai",isDead:!0}),[r.R.Lambda]:n({slug:"lambda",isDead:!0}),[r.R.Lepton]:n({slug:"lepton",isDead:!0}),[r.R.Lynn]:n({slug:"lynn",isDead:!0}),[r.R.LynnPrivate]:n({slug:"lynn-private",isDead:!0}),[r.R.Mancer]:n({slug:"mancer-old",isDead:!0}),[r.R.Modal]:n({slug:"modal"}),[r.R.NCompass]:n({slug:"ncompass",isDead:!0}),[r.R.Nineteen]:n({slug:"nineteen",isDead:!0}),[r.R.OctoAI]:n({slug:"octoai",isDead:!0}),[r.R.Recursal]:n({slug:"recursal",isDead:!0}),[r.R.Reflection]:n({slug:"reflection",isDead:!0}),[r.R.Replicate]:n({slug:"replicate",isDead:!0,iconInvertTheme:"dark"}),[r.R.SambaNovaCloaked]:n({slug:"sambanova-cloaked",isDead:!0}),[r.R.SFCompute]:n({slug:"sf-compute",isDead:!0,iconInvertTheme:"dark"}),[r.R.Targon]:n({slug:"targon",isDead:!0}),[r.R.TogetherLite]:n({slug:"together-lite",isDead:!0}),[r.R.Ubicloud]:n({slug:"ubicloud",isDead:!0}),[r.R.ZeroOneAI]:n({slug:"01ai",isDead:!0}),[r.R.AkashML]:n({slug:"akashml",envKey:"AKASH_API_KEY"}),[r.R.AI21]:n({slug:"ai21"}),[r.R.AionLabs]:n({slug:"aion-labs"}),[r.R.Alibaba]:n({slug:"alibaba",envKey:null}),[r.R.Ambient]:n({slug:"ambient",envKey:null}),[r.R.AntDigital]:n({slug:"antdigital",envKey:"ANT_DIGITAL_API_KEY"}),[r.R.Baidu]:n({slug:"baidu"}),[r.R.AmazonBedrock]:n({slug:"amazon-bedrock"}),[r.R.AmazonNova]:n({slug:"amazon-nova"}),[r.R.Anthropic]:n({slug:"anthropic",envKey:null}),[r.R.ArceeAI]:n({slug:"arcee-ai",envKey:null}),[r.R.AssemblyAI]:n({slug:"assemblyai"}),[r.R.AtlasCloud]:n({slug:"atlas-cloud"}),[r.R.Avian]:n({slug:"avian"}),[r.R.Azure]:n({slug:"azure",envKey:null}),[r.R.Baseten]:n({slug:"baseten",envKey:null}),[r.R.BytePlus]:n({slug:"byteplus"}),[r.R.BlackForestLabs]:n({slug:"black-forest-labs"}),[r.R.Cerebras]:n({slug:"cerebras"}),[r.R.Chutes]:n({slug:"chutes",envKey:null}),[r.R.Cirrascale]:n({slug:"cirrascale"}),[r.R.ClaudeOnAws]:n({slug:"claude-on-aws"}),[r.R.Clarifai]:n({slug:"clarifai"}),[r.R.Cloudflare]:n({slug:"cloudflare",envKey:"CLOUDFLARE_AI_JSON_API_KEY"}),[r.R.Cohere]:n({slug:"cohere",envKey:null}),[r.R.CoreWeave]:n({slug:"coreweave",envKey:"WANDB_API_KEY"}),[r.R.Cosine]:n({slug:"cosine"}),[r.R.Crucible]:n({slug:"crucible",isManagedOnly:!0}),[r.R.Crusoe]:n({slug:"crusoe"}),[r.R.Darkbloom]:n({slug:"darkbloom"}),[r.R.Databricks]:n({slug:"databricks"}),[r.R.Decart]:n({slug:"decart"}),[r.R.Deepgram]:n({slug:"deepgram"}),[r.R.DeepInfra]:n({slug:"deepinfra"}),[r.R.DeepSeek]:n({slug:"deepseek",envKey:null}),[r.R.DekaLLM]:n({slug:"dekallm"}),[r.R.DigitalOcean]:n({slug:"digitalocean",envKey:"DIGITAL_OCEAN_API_KEY"}),[r.R.Doubleword]:n({slug:"doubleword"}),[r.R.ElevenLabs]:n({slug:"elevenlabs"}),[r.R.Featherless]:n({slug:"featherless"}),[r.R.Fireworks]:n({slug:"fireworks"}),[r.R.FishAudio]:n({slug:"fish-audio"}),[r.R.Friendli]:n({slug:"friendli"}),[r.R.GMICloud]:n({slug:"gmicloud",envKey:"GMI_CLOUD_API_KEY",iconInvertTheme:"dark"}),[r.R.Google]:n({slug:"google-vertex",envKey:null}),[r.R.GoogleAIStudio]:n({slug:"google-ai-studio"}),[r.R.Groq]:n({slug:"groq"}),[r.R.HeyGen]:n({slug:"heygen"}),[r.R.Inception]:n({slug:"inception",envKey:null,iconInvertTheme:"dark"}),[r.R.Inceptron]:n({slug:"inceptron"}),[r.R.InferenceNet]:n({slug:"inference-net",iconInvertTheme:"dark"}),[r.R.Ionstream]:n({slug:"ionstream"}),[r.R.Infermatic]:n({slug:"infermatic"}),[r.R.IONet]:n({slug:"io-net"}),[r.R.InferactVLLM]:n({slug:"inferact-vllm",envKey:"INFERACT_API_KEY"}),[r.R.Inflection]:n({slug:"inflection"}),[r.R.KT]:n({slug:"kt"}),[r.R.Liquid]:n({slug:"liquid",iconInvertTheme:"dark"}),[r.R.Makora]:n({slug:"makora"}),[r.R.Mara]:n({slug:"mara"}),[r.R.MancerPrivate]:n({slug:"mancer"}),[r.R.Meta]:n({slug:"meta"}),[r.R.Minimax]:n({slug:"minimax"}),[r.R.ModelRun]:n({slug:"modelrun",envKey:"MODEL_RUN_API_KEY"}),[r.R.Mistral]:n({slug:"mistral",envKey:null}),[r.R.Modular]:n({slug:"modular"}),[r.R.MoonshotAI]:n({slug:"moonshotai"}),[r.R.Morph]:n({slug:"morph",envKey:"MORPH_LLM_API_KEY"}),[r.R.VoyageAI]:n({slug:"voyageai"}),[r.R.TypeSafe]:n({slug:"typesafe",envKey:"TYPESAFE_AI_API_KEY"}),[r.R.NearAI]:n({slug:"near-ai"}),[r.R.Nebius]:n({slug:"nebius",iconInvertTheme:"dark"}),[r.R.NexAGI]:n({slug:"nex-agi"}),[r.R.NextBit]:n({slug:"nextbit"}),[r.R.Novita]:n({slug:"novita"}),[r.R.Nvidia]:n({slug:"nvidia"}),[r.R.Ollama]:n({slug:"ollama"}),[r.R.OpenAI]:n({slug:"openai",iconInvertTheme:"dark"}),[r.R.OpenInference]:n({slug:"open-inference",envKey:"OPENINFERENCE_API_KEY",iconInvertTheme:"light"}),[r.R.Parallel]:n({slug:"parallel",envKey:"PARALLEL_DECISIONS_API_KEY"}),[r.R.Parasail]:n({slug:"parasail"}),[r.R.ParetoAlpha]:n({slug:"pareto-alpha"}),[r.R.ParticleAI]:n({slug:"particle-ai",envKey:"PARTICLE_API_KEY",iconInvertTheme:"dark"}),[r.R.PearlResearch]:n({slug:"pearl-research"}),[r.R.Poolside]:n({slug:"poolside"}),[r.R.PrimaLabs]:n({slug:"primalabs",iconInvertTheme:"dark"}),[r.R.PrimeIntellect]:n({slug:"primeintellect",envKey:"PRIME_INTELLECT_API_KEY"}),[r.R.Perceptron]:n({slug:"perceptron"}),[r.R.Perplexity]:n({slug:"perplexity"}),[r.R.Phala]:n({slug:"phala"}),[r.R.Recraft]:n({slug:"recraft",iconInvertTheme:"dark"}),[r.R.Recursive]:n({slug:"recursive",envKey:"RECURSIVE_SGLANG_API_KEY",iconInvertTheme:"dark"}),[r.R.Reka]:n({slug:"reka"}),[r.R.Relace]:n({slug:"relace"}),[r.R.Respan]:n({slug:"respan"}),[r.R.River]:n({slug:"river",envKey:"RIVER_AI_API_KEY"}),[r.R.SailResearch]:n({slug:"sail-research",envKey:"SAIL_PARTNER_API_KEY"}),[r.R.SakanaAI]:n({slug:"sakana"}),[r.R.SambaNova]:n({slug:"sambanova"}),[r.R.ScaleDown]:n({slug:"scaledown"}),[r.R.Seed]:n({slug:"seed",envKey:null}),[r.R.SiliconFlow]:n({slug:"siliconflow",envKey:"SILICON_FLOW_API_KEY"}),[r.R.Sourceful]:n({slug:"sourceful",envKey:null}),[r.R.Speechify]:n({slug:"speechify"}),[r.R.StepFun]:n({slug:"stepfun",envKey:"STEP_FUN_API_KEY"}),[r.R.Stealth]:n({slug:"stealth",iconInvertTheme:"dark",isManagedOnly:!0}),[r.R.StreamLake]:n({slug:"streamlake"}),[r.R.Switchpoint]:n({slug:"switchpoint"}),[r.R.Tencent]:n({slug:"tencent"}),[r.R.Tenstorrent]:n({slug:"tenstorrent"}),[r.R.ThinkingMachines]:n({slug:"thinkingmachines",envKey:null}),[r.R.Together]:n({slug:"together"}),[r.R.Unbiased]:n({slug:"unbiased",envKey:"UNBIASED_AI_API_KEY"}),[r.R.Upstage]:n({slug:"upstage",envKey:null}),[r.R.Venice]:n({slug:"venice",envKey:null}),[r.R.Wafer]:n({slug:"wafer"}),[r.R.WandB]:n({slug:"wandb-legacy",envKey:"WANDB_API_KEY"}),[r.R.Quiver]:n({slug:"quiver"}),[r.R.Krea]:n({slug:"krea"}),[r.R.Runway]:n({slug:"runway"}),[r.R.Xiaomi]:n({slug:"xiaomi"}),[r.R.XAI]:n({slug:"xai",envKey:null}),[r.R.ZAI]:n({slug:"z-ai",iconInvertTheme:"dark"}),[r.R.FakeProvider]:n({slug:"fake-provider",isInternal:!0})};Object.values(r.R).flatMap(e=>{let t=a[e];return t.isDead||null===t.envKey?[]:[t.envKey]});let i=Object.fromEntries(Object.entries(r.R).filter(e=>!p(e[1]))),o=(0,t.x)(i),l=Object.values(i).filter(e=>!0!==a[e].isInternal),s=Object.fromEntries(Object.values(r.R).map(e=>[e,a[e].slug])),u=Object.entries(s).filter(e=>c(e[0])),d=Object.fromEntries(u);function c(e){return o.has(e)}function p(e){return(0,r.Z)(e)&&!0===a[e].isDead}function m(e){if(!(0,r.Z)(e))return!1;let{isManagedOnly:t,isInternal:n}=a[e];return!0===t||!0===n}new Set(Object.values(i).filter(e=>!m(e)));let f=Object.fromEntries(u.map(([e,t])=>[t,e])),g={"amazon-bedrock/claude-on-aws":r.R.ClaudeOnAws,"anthropic/2":r.R.ClaudeOnAws,"sakana-ai":r.R.SakanaAI,wandb:r.R.CoreWeave},h=Object.entries(g).filter(([,e])=>c(e)).map(([e])=>e),A={[r.R.WandB]:r.R.CoreWeave};function v(e){let t=e.toLowerCase();return Object.hasOwn(f,t)?f[t]:Object.hasOwn(g,t)?g[t]:void 0}e.s(["H",0,i,"u",0,h,"A",0,function(e){let t=v(e);return t?s[t]:void 0},"c",0,v,"T",0,p,"M",0,m,"I",0,c,"k",0,function(e){return!(0,r.Z)(e)},"U",0,A,"G",0,s,"Q",0,d,"Y",0,f,"h",0,function(e){return void 0!==e&&(0,r.Z)(e)?e:void 0},"d",0,l],983335)},947708,e=>{"use strict";e.s(["e",0,-1,"W",0,{"16:9":"16:9","9:16":"9:16","1:1":"1:1","4:3":"4:3","3:4":"3:4","3:2":"3:2","2:3":"2:3","21:9":"21:9","9:21":"9:21"},"I",0,{first_frame:"first_frame",last_frame:"last_frame"},"H",0,{"360p":"360p","480p":"480p","720p":"720p","768p":"768p","1080p":"1080p","1K":"1K","2K":"2K","4K":"4K"},"N",0,{edit:"edit",reference:"reference"},"J",0,{"360x360":"360x360","360x480":"360x480","360x540":"360x540","360x640":"360x640","360x840":"360x840","480x360":"480x360","480x480":"480x480","480x640":"480x640","480x720":"480x720","480x854":"480x854","480x1120":"480x1120","496x864":"496x864","540x360":"540x360","560x752":"560x752","640x360":"640x360","640x480":"640x480","640x640":"640x640","720x480":"720x480","720x720":"720x720","720x960":"720x960","720x1080":"720x1080","720x1280":"720x1280","720x1680":"720x1680","752x560":"752x560","768x768":"768x768","768x1024":"768x1024","768x1152":"768x1152","768x1366":"768x1366","768x1792":"768x1792","834x1112":"834x1112","840x360":"840x360","854x480":"854x480","864x496":"864x496","960x720":"960x720","960x960":"960x960","992x432":"992x432","1024x768":"1024x768","1080x720":"1080x720","1080x1080":"1080x1080","1080x1440":"1080x1440","1080x1620":"1080x1620","1080x1920":"1080x1920","1080x2520":"1080x2520","1112x834":"1112x834","1120x480":"1120x480","1152x768":"1152x768","1280x720":"1280x720","1366x768":"1366x768","1440x1080":"1440x1080","1440x1440":"1440x1440","1440x1920":"1440x1920","1440x2160":"1440x2160","1440x2560":"1440x2560","1440x3360":"1440x3360","1470x630":"1470x630","1620x1080":"1620x1080","1680x720":"1680x720","1792x768":"1792x768","1920x1080":"1920x1080","1920x1440":"1920x1440","2160x1440":"2160x1440","2160x2160":"2160x2160","2160x2880":"2160x2880","2160x3240":"2160x3240","2160x3840":"2160x3840","2160x5040":"2160x5040","2520x1080":"2520x1080","2560x1440":"2560x1440","2880x2160":"2880x2160","3240x2160":"3240x2160","3360x1440":"3360x1440","3840x2160":"3840x2160","5040x2160":"5040x2160"}])},919873,e=>{"use strict";var t=e.i(882844),r=e.i(635157);let n={Image:"image",Video:"video",Speech:"speech",Transcription:"transcription",Game:"game"};r.z.union([r.z.nativeEnum(n),r.z.literal("text_image")]);let a=r.z.object({url:r.z.string().url(),media_type:r.z.string(),size_bytes:(0,t.D)().nonnegative()}),i=a.extend({thumbnail_url:r.z.string().url().optional(),width:(0,t.D)().positive(),height:(0,t.D)().positive(),source:a.optional()}),o=a.extend({media_type:r.z.string().startsWith("video/"),thumbnail_url:r.z.string().url().optional(),width:(0,t.D)().positive(),height:(0,t.D)().positive(),duration_ms:(0,t.D)().nonnegative().optional()});r.z.union([o,i]);let l=a.extend({duration_ms:(0,t.D)().nonnegative().optional(),sample_rate_hz:(0,t.D)().positive().optional(),peaks:r.z.array(r.z.number().min(0).max(1)).optional()});l.extend({transcript:r.z.string(),voice:r.z.string()}),l.extend({transcript:r.z.string()});let s=a.extend({thumbnail_url:r.z.string().url().optional(),frame_thumbnail_urls:r.z.array(r.z.string().url()).optional(),width:(0,t.D)().positive().optional(),height:(0,t.D)().positive().optional(),duration_ms:(0,t.D)().nonnegative().optional(),sample_rate_hz:(0,t.D)().positive().optional(),transcript:r.z.string().optional(),voice:r.z.string().optional(),peaks:r.z.array(r.z.number().min(0).max(1)).optional(),source:a.optional(),three_version:r.z.string().optional()});r.z.array(s),e.s(["f",0,n])},437692,e=>{"use strict";var t=e.i(659350),r=e.i(663456);let n=(0,e.i(207298).f)(["pointer-events-none absolute inset-y-0 z-overlay w-16","from-background to-transparent transition-opacity duration-150"],{variants:{side:{left:"left-0 bg-gradient-to-r",right:"right-0 bg-gradient-to-l"},isVisible:{true:"opacity-100",false:"opacity-0"},isDesktopOnly:{true:"hidden md:block",false:""}},defaultVariants:{isDesktopOnly:!1}});e.s(["f",0,function(e){let a,i,o=(0,r.c)(6),{side:l,isVisible:s,isDesktopOnly:u}=e;return o[0]!==u||o[1]!==s||o[2]!==l?(a=n({side:l,isVisible:s,isDesktopOnly:u}),o[0]=u,o[1]=s,o[2]=l,o[3]=a):a=o[3],o[4]!==a?(i=(0,t.jsx)("div",{"aria-hidden":"true",className:a}),o[4]=a,o[5]=i):i=o[5],i}])},616384,32799,e=>{"use strict";var t=e.i(381462),r=e.i(387086);let n={LATENCY:(0,r.b)("Median time to first token, measured from when the request is sent. Data from the last 30 minutes."),THROUGHPUT:(0,r.b)("Output tokens/sec at the selected percentile, measured from when the request is sent to the end of the response, so time to first token is included. Includes reasoning tokens. Only responses with more than 50 output tokens count. Data from the last 30 minutes, or the last 24 hours for providers with fewer than 50 such responses."),THROUGHPUT_FALLBACK_WINDOW:(0,r.b)("Fewer than 50 responses with more than 50 output tokens in the last 30 minutes, so this uses the last 24 hours."),E2E_LATENCY:(0,r.b)("Median time to end of response, measured from when the request is sent. Data from the last 30 minutes."),LATENCY_CHART:(0,r.b)("Median time to first token, measured from when the request is sent. Data aggregated over one full day."),STT_SPEED:(0,r.b)("Seconds of audio transcribed per second of waiting, at the selected percentile (higher is better). 10× means a 10-minute file takes one minute. Data from the last 30 minutes, or the last 24 hours for providers with fewer than 10 requests."),VIDEO_SPEED:(0,r.b)("Seconds of video generated per minute of generation time, at the selected percentile (higher is better). Data from the last 30 minutes, or the last 24 hours for providers with fewer than 10 requests."),SPEED_FALLBACK_WINDOW:(0,r.b)("Fewer than 10 requests in the last 30 minutes, so this uses the last 24 hours."),TTS_LATENCY_CHART:(0,r.b)("Median time to first audio, measured from when the request is sent. Data aggregated over one full day."),RESPONSE_LATENCY_CHART:(0,r.b)("Median time to the full response, measured from when the request is sent. Data aggregated over one full day."),THROUGHPUT_CHART:(0,r.b)("Avg. output tokens/sec, measured from request start to completion. Includes reasoning tokens. Data aggregated over one full day."),E2E_LATENCY_CHART:(0,r.b)("Median time to end of response, measured from when the request is sent. Data aggregated over one full day."),CACHE_HIT_RATE_CHART:(0,r.b)("Percentage of prompt tokens served from cache. Higher values mean more cache reuse and lower costs. Data aggregated over one full day.")},a={[t.f.TextGeneration]:(0,r.b)("Time to first token, measured from when the request is sent. Data from the last 30 minutes."),[t.f.ImageGeneration]:(0,r.b)("Time to generate the image, measured from when the request is sent until the image is returned. Data from the last 30 minutes."),[t.f.VideoGeneration]:(0,r.b)("Time to generate the video, measured from when the job is submitted until the video is ready. Data from the last 30 minutes."),[t.f.Embeddings]:(0,r.b)("Time to return the embeddings, measured from when the request is sent until the full response arrives. Data from the last 30 minutes."),[t.f.Rerank]:(0,r.b)("Time to return the ranked results, measured from when the request is sent until the full response arrives. Data from the last 30 minutes."),[t.f.TTS]:(0,r.b)("Time to first audio, measured from when the request is sent until the first audio arrives, which is when playback can start. Data from the last 30 minutes."),[t.f.STT]:(0,r.b)("Time to return the transcript, measured from when the request is sent until the full response arrives. Data from the last 30 minutes."),[t.f.Decisions]:(0,r.b)("Time to return the decision, measured from when the request is sent until the full response arrives. Data from the last 30 minutes."),[t.f.Extractions]:(0,r.b)("Time to return the extracted fields, measured from when the request is sent until the full response arrives. Data from the last 30 minutes."),[t.f.Unknown]:(0,r.b)("Time to complete the request, measured from when the request is sent. Data from the last 30 minutes.")},i={LATENCY:(0,r.b)("Time to First Token"),TTS_LATENCY:(0,r.b)("Time to first audio"),RESPONSE_LATENCY:(0,r.b)("Time to full response"),E2E_LATENCY:(0,r.b)("Time to Last Token")};e.s(["L",0,i,"W",0,n,"e",0,a],32799);var o=e.i(667417),l=e.i(346802);e.i(707060);let s="Latency",u="End-to-end latency",d={[s]:(0,r.b)("Latency"),[u]:(0,r.b)("End-to-end latency")},c=(0,r.b)("Speed"),p={[t.f.STT]:{tooltip:n.STT_SPEED,unit:"×",fractionDigits:1},[t.f.VideoGeneration]:{tooltip:n.VIDEO_SPEED,unit:" s/min",fractionDigits:1}},m=new Set([t.f.Embeddings,t.f.Rerank,t.f.STT,t.f.Decisions,t.f.Extractions,t.f.TTS]),f={[l.f.Text]:t.f.TextGeneration,[l.f.ComputerUseTool]:t.f.TextGeneration,[l.f.AudioTool]:t.f.TextGeneration,[l.f.AudioOutput]:t.f.TextGeneration,[l.f.FastApply]:t.f.TextGeneration,[l.f.Embeddings]:t.f.Embeddings,[l.f.ImageInputEmbeddings]:t.f.Embeddings,[l.f.Reasoning]:t.f.TextGeneration,[l.f.ImageGeneration]:t.f.ImageGeneration,[l.f.ImageGenerationWithoutText]:t.f.ImageGeneration,[l.f.VideoGeneration]:t.f.VideoGeneration,[l.f.Rerank]:t.f.Rerank,[l.f.TTS]:t.f.TTS,[l.f.TTSMaiVoice]:t.f.TTS,[l.f.STT]:t.f.STT,[l.f.STTMaiTranscribe]:t.f.STT,[l.f.OCR]:t.f.TextGeneration,[l.f.Decisions]:t.f.Decisions,[l.f.Extractions]:t.f.Unknown},g=[[o.j.Embeddings,t.f.Embeddings],[o.j.Video,t.f.VideoGeneration],[o.j.Image,t.f.ImageGeneration],[o.j.TTS,t.f.TTS],[o.j.Transcription,t.f.STT],[o.j.Rerank,t.f.Rerank],[o.j.Decisions,t.f.Decisions]];e.s(["V",0,function(e,r){var n;let i;return{latencyLabel:e(d["latency_e2e"===r.latencyMetric?u:s]),latencyTooltip:e(a[r.perfWorkload]),shouldShowThroughputColumn:r.perfWorkload===t.f.TextGeneration,speed:(n=e,void 0===(i=p[r.perfWorkload])?null:{label:n(c),tooltip:n(i.tooltip),unit:i.unit,fractionDigits:i.fractionDigits})}},"N",0,function(e){var r;let n=(r=e).quick_start_example_type?f[r.quick_start_example_type]:function(e){for(let[t,r]of g)if(e.includes(t))return r;return t.f.TextGeneration}(r.output_modalities);return{perfWorkload:n,latencyMetric:n===t.f.ImageGeneration||n===t.f.VideoGeneration?"latency_e2e":"latency"}},"S",0,function(e){return e===t.f.TextGeneration},"n",0,function(e){return!m.has(e)}],616384)},811959,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(139697),a=e.i(612927);function i(e){return e.stopPropagation()}e.s(["f",0,function(e){let o,l,s,u=(0,r.c)(6),{label:d,onRemove:c}=e;return u[0]!==c?(o=e=>{e.stopPropagation(),c()},u[0]=c,u[1]=o):o=u[1],u[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(a.X,{}),u[2]=l):l=u[2],u[3]!==d||u[4]!==o?(s=(0,t.jsx)(n.Button,{variant:"ghost",size:"icon-xs",tone:"subdued",glyph:"sm",onClick:o,onPointerDown:i,"aria-label":d,className:"shrink-0",children:l}),u[3]=d,u[4]=o,u[5]=s):s=u[5],s}])},493022,35276,45008,e=>{"use strict";var t=e.i(339814),r=e.i(134611);function n(e){return void 0===e?void 0:decodeURIComponent(e)}let a=[["[maker-id]","[slug]"],["[compare-maker-id]","[compare-slug]"],["[compare-maker-id-2]","[compare-slug-2]"],["[compare-maker-id-3]","[compare-slug-3]"],["[compare-maker-id-4]","[compare-slug-4]"]];function i(e){return[e.makerId,e.slug,e.compareMakerId,e.compareSlug,e.compareMakerId2,e.compareSlug2,e.compareMakerId3,e.compareSlug3,e.compareMakerId4,e.compareSlug4].map(e=>e??"").join("|")}let o=a.length;function l(e){return Array.from({length:o},(t,r)=>e[r]).flatMap(s).join("|")}function s(e){if(void 0===e)return["",""];let t=e.indexOf("/");return -1===t?[e,""]:[e.slice(0,t),e.slice(t+1)]}e.s(["E",0,o,"$",0,function(...e){let[t,...n]=e;if(!t)return"/compare";let a=`/compare/${(0,r.i)(t)}`;for(let e of n)e&&(a+=`/${(0,r.i)(e)}`);return a},"J",0,i,"z",0,function(e){return l(e.filter(e=>void 0!==e).map(r.i))},"K",0,l,"P",0,function(e,t){let r=i(t);return null!==e&&r===e?{action:"skip",key:r}:{action:"sync",key:r}},"h",0,function(e){return{makerId:n(e.makerId),slug:n(e.slug),compareMakerId:n(e.compareMakerId),compareSlug:n(e.compareSlug),compareMakerId2:n(e.compareMakerId2),compareSlug2:n(e.compareSlug2),compareMakerId3:n(e.compareMakerId3),compareSlug3:n(e.compareSlug3),compareMakerId4:n(e.compareMakerId4),compareSlug4:n(e.compareSlug4)}},"H",0,function(e,t,n){if(!t||!n)return;let a=`${decodeURIComponent(t)}/${decodeURIComponent(n)}`;return e.find(e=>(0,r.i)(e)===a)},"l",0,function(e){let[,...t]=e.split("/").filter(e=>e.length>0);return["/compare",...a.slice(0,Math.floor(t.length/2)).flat()].join("/")}],35276),e.s(["L",0,function(e,{modelSlugs:r,models:n}){return{routeKey:l(r),title:function(e,t){let[r]=t;return r?1===t.length?e("{name} compared to other AI models",{name:r.name}):t.map(e=>e.name).join(e(" vs ")):e("AI Model Comparison")}(e.gt,n),description:function({gt:e,locale:r},n){let[a]=n;if(!a)return e("Compare AI models by key metrics including benchmarks, price, context length, and other model features.");if(1===n.length)return e("Compare {name} from {author} to other AI models on key metrics including benchmarks, price, context length, and other model features.",{name:a.name,author:a.authorName});let i=n.map(t=>e("{name} from {author}",{name:t.name,author:t.authorName}));return e("Compare {models} on key metrics including benchmarks, price, context length, and other model features.",{models:(0,t.g)(i,{locale:r})})}(e,n),apiAccessModelRef:function(e,t){let[r]=t;return r?1===t.length?r.name:2===t.length?e("both models"):e("all {count} models",{count:t.length}):e("hundreds of AI models")}(e.gt,n),modelCount:n.length}},"O",0,function(e,t){return null!==e&&e.routeKey===t.routeKey&&!t.isSelectionStale}],493022);var u=e.i(16043);let d=(0,u.createContext)(null);e.s(["D",0,d,"W",0,function(){let e=(0,u.useContext)(d);if(!e)throw Error("CompareServerHeadline must be rendered inside ModelCompare");return e}],45008)},36419,416363,e=>{"use strict";var t=e.i(663456),r=e.i(687186),n=e.i(16043);e.s(["f",0,function(){let e,a,i,o,l=(0,t.c)(6),s=(0,n.useRef)(null),u=(0,n.useRef)(null);l[0]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{if(u.current&&(u.current(),u.current=null),!e)return;let t=()=>{let t=document.querySelector("#page-content"),r=t?Number.parseFloat(getComputedStyle(t).getPropertyValue("--sticky-banner-top")):0,n=Number.isFinite(r)?r:0,a=Math.ceil((document.querySelector("#main-nav")?.getBoundingClientRect().height??0)+n+e.getBoundingClientRect().height)-8;document.documentElement.style.setProperty("--cards-sticky-bottom-px",`${a}px`)};t();let n="u"n?.observe(e));let a=document.querySelector("#main-nav");a&&n?.observe(a);let i="u"{n?.disconnect(),i?.disconnect()}},l[0]=e):e=l[0];let d=e,[c,p]=(0,n.useState)(!1),[m,f]=(0,n.useState)(!1),g=(0,n.useRef)(null);l[1]===Symbol.for("react.memo_cache_sentinel")?(a=e=>{if(g.current?.(),g.current=null,!e)return;let t=t=>{if(1>Math.abs(t.deltaX)||t.target instanceof Element&&t.target.closest("[data-synced-scroll-wrapper]"))return;let r=e.querySelector("[data-synced-scroll-wrapper]");if(!r)return;let n=r.scrollWidth-r.clientWidth,a=r.scrollLeft<=0,i=r.scrollLeft>=n;t.deltaX<0&&a||t.deltaX>0&&i||(r.scrollLeft=r.scrollLeft+t.deltaX,t.preventDefault())};e.addEventListener("wheel",t,{passive:!1}),g.current=()=>{e.removeEventListener("wheel",t)}},l[1]=a):a=l[1];let h=a;l[2]===Symbol.for("react.memo_cache_sentinel")?(i=(e,t)=>{let r=e>0?`translate3d(${-e}px, 0, 0)`:"",n=s.current;for(let e of(n&&(n.style.transform=r),document.querySelectorAll("[data-synced-translate-target]")))e.style.transform=r;p(e>4),f(e+4{(0,a.flushSync)(e)});t&&r.finished.then(t,t)}],416363)},470573,e=>{"use strict";var t=e.i(684434);function r(e,{min:t,max:n}){return`${e.nativeNumber(t)??"—"}–${e.nativeNumber(n)??"—"}`}function n(e,n){switch(e.type){case t.k.Enum:return n.list(e.values,{style:"comma"});case t.k.Range:return r(n,e);case t.k.Boolean:return"Supported";default:return"—"}}e.s(["G",0,function(e){if(!e)return 0;switch(e.type){case t.k.Enum:return e.values.length;case t.k.Range:return e.max;case t.k.Boolean:return 1;default:return 0}},"K",0,function(e){switch(e.type){case t.k.Enum:return"enum";case t.k.Range:return"range";case t.k.Boolean:return"boolean";default:return"unknown"}},"j",0,n,"k",0,function(e,{gt:a,formatters:i}){if(e.type!==t.k.Range)return n(e,i);let o=i.nativeNumber(e.max)??"—";return e.min===e.max?o:e.min<=1?a("Up to {max}",{max:o}):r(i,e)},"_",0,function(e){return new Set(e.filter(e=>void 0!==e).map(e=>e.type)).size<=1}])},483526,e=>{"use strict";let t,r;var n=e.i(659350),a=e.i(647204),i=e.i(622561),o=e.i(427150),l=e.i(67089),s=e.i(16043);function u({shouldRestoreFocus:e,triggerRef:t}){return(0,s.useLayoutEffect)(()=>{let r,n=e.current;e.current=!1,n&&(null===(r=document.activeElement)||r===document.body)&&t.current?.focus()},[e,t]),null}e.s(["f",0,function({children:d,...c}){let[p,m]=(0,s.useState)(!1),[f,g]=(0,s.useState)(null),[h,A]=(0,s.useState)(!1),v=(0,s.useRef)(!1),b=(0,s.useRef)(null),x=(0,s.useRef)(null),y=(0,s.useRef)(!1),S=(0,s.useRef)(null),I=d.props.ref,k=(0,s.useCallback)(e=>(b.current=e,function(e,t){if("function"==typeof e)return e(t);(0,o.f)(e)&&(e.current=t)}(I,e)),[I]),R=e=>{S.current=null,v.current=document.activeElement===b.current,null!==x.current&&x.current!==r&&A(!1),g(()=>e)},T=()=>{y.current=!1,null!==S.current&&R(S.current)};return((0,s.useEffect)(()=>{if(!p)return;let r=!0;return(t??=(0,a.$)(()=>e.A(836624)).then(e=>(0,a.V)(e)?(t=void 0,(0,l.L)("lazy_model_select_load_failed",{error_message:(0,i.A)(e.error)}),e):(0,a.N)(e.data.ModelSelect))).then(e=>{if(r){if((0,a.V)(e)){m(!1),A(!1);return}if(y.current){S.current=e.data;return}R(e.data)}}),()=>{r=!1}},[p]),null===f)?(0,s.cloneElement)(d,{ref:k,onPointerEnter:e=>{d.props.onPointerEnter?.(e),m(!0)},onFocus:e=>{d.props.onFocus?.(e),m(!0)},onBlur:e=>{d.props.onBlur?.(e),T()},onPointerDown:e=>{d.props.onPointerDown?.(e),y.current=!0,m(!0)},onPointerCancel:e=>{d.props.onPointerCancel?.(e),T()},onPointerLeave:e=>{d.props.onPointerLeave?.(e),T()},onKeyDown:e=>{d.props.onKeyDown?.(e)," "===e.key&&(y.current=!0)},onClick:e=>{d.props.onClick?.(e);let t=Symbol("lazy-model-select-open");r=t,x.current=t,m(!0),A(!0),T()}}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f,{...c,isOpenInitially:h,children:(0,s.cloneElement)(d,{ref:k})}),(0,n.jsx)(u,{shouldRestoreFocus:v,triggerRef:b})]})}])},690387,e=>{"use strict";var t=e.i(293747),r=e.i(706792),n=e.i(140691);let a="/M tokens",i=["prompt","completion","request","image","image_token","image_output","audio","audio_output","input_audio_cache","input_cache_read","input_cache_write","input_cache_write_1h","web_search","internal_reasoning"];function o(e){return e.length>0&&!e.some(e=>!(0,n.I)(e.price).isZero()||e.tiers?.some(e=>!(0,n.I)(e.price).isZero())===!0)}function l(e,a,i){if(0===a.length)return;let o=i?.keepTrailingZeroes?"model-price-fixed":"model-price",l=a.filter(e=>"token"===e.kind),d=(0,r.T)(a);if(d)return function({locale:e,preset:r},{media:a,inputItem:i,outputItem:o}){return{kind:"standard-tokens",media:a,inputPrice:(0,t.f)((0,n.I)(i.price).times(i.displayMultiplier),{locale:e,preset:r})??"—",inputUnit:u(i),outputPrice:(0,t.f)((0,n.I)(o.price).times(o.displayMultiplier),{locale:e,preset:r})??"—",outputUnit:u(o)}}({locale:e,preset:o},d);let c=(0,r.U)(a);if(!c){if(l[0]){let r=l[0],o=`${(0,t.f)((0,n.I)(r.price).times(r.displayMultiplier),{locale:e,preset:i?.keepTrailingZeroes?"model-price-fixed":"model-price"})??"—"}`,d=u(r);return{kind:"custom",label:s(o,d),priceOnly:o,unit:d,hasDetails:a.length>1}}return}let p=`${(0,t.f)((0,n.I)(c.price).times(c.displayMultiplier),{locale:e,preset:i?.keepTrailingZeroes?"model-price-fixed":"model-price"})??"—"}`,m=c.unitLabel;return{kind:"custom",label:c.hasDetails?`from ${s(p,m)}`:s(p,m),priceOnly:c.hasDetails?`from ${p}`:p,unit:m,hasDetails:c.hasDetails}}function s(e,t){var r;return`${e}${(r=t)?r.startsWith("/")?r:` ${r}`:""}`}function u(e){if("token"===e.kind){if(1e6===e.displayMultiplier)return a;if(1e3===e.displayMultiplier)return"/K tokens"}return e.unitLabel}e.s(["z",0,1e6,"u",0,function(e,r,i){return l(e,i)??function(e,r){if(r&&(0,n.I)(r.prompt).isFinite()&&(0,n.I)(r.completion).isFinite()&&!((0,n.I)(r.prompt).isZero()&&(0,n.I)(r.completion).isZero()))return{kind:"standard-tokens",media:"text",inputPrice:(0,t.f)((0,n.I)(r.prompt).times(1e6),{locale:e,preset:"model-price"})??"—",inputUnit:a,outputPrice:(0,t.f)((0,n.I)(r.completion).times(1e6),{locale:e,preset:"model-price"})??"—",outputUnit:a}}(e,r?.pricing)},"J",0,l,"w",0,u,"C",0,o,"h",0,function(e,t){var r;return e?.is_free===!0||(t.length>0?o(t):!!(r=e?.pricing)&&i.every(e=>{let t=r[e];return void 0===t||(0,n.I)(t).isZero()}))},"i",0,s])},353524,e=>{"use strict";var t=e.i(134611),r=e.i(819750),n=e.i(524287),a=e.i(173465),i=e.i(613497);let o=(0,n.f)("author-models",{detail:e=>[null===e?null:{authorSlug:e}]});function l(e){return(0,a.f)({queryKey:o.detail(e),queryFn:null===e?i.V:({signal:t})=>(0,r.f)("/api/frontend/v1/author-models",{searchParams:{authorSlug:e},signal:t})})}e.s(["k",0,l,"a",0,function(e,r){let n=l(e);return null===r?(0,a.f)({...n,queryFn:i.V}):(0,a.f)({...n,select:e=>{var n,a;return n=e,a=r,{...n,models:n.models.filter(e=>(0,t.i)(e)!==a).toSorted((e,t)=>new Date(t.created_at).getTime()-new Date(e.created_at).getTime())}}})}])},984953,e=>{"use strict";var t=e.i(663456),r=e.i(356713),n=e.i(199168);e.i(707060);var a=e.i(387086);let i={index:(0,a.b)("Vals Index"),coding:(0,a.b)("Coding"),math:(0,a.b)("Math"),academic:(0,a.b)("Academic"),finance:(0,a.b)("Finance"),legal:(0,a.b)("Legal"),healthcare:(0,a.b)("Healthcare"),education:(0,a.b)("Education"),cyber:(0,a.b)("Cybersecurity")};e.s(["f",0,function(){let e,a=(0,t.c)(3),o=(0,n.M)(),l=(0,n.o)();return a[0]!==l||a[1]!==o?(e=e=>{if(null===e)return l("Other");let t=i[e];return t?o(t):(0,r.z)(e)},a[0]=l,a[1]=o,a[2]=e):e=a[2],e}])},447131,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562),a=e.i(139697),i=e.i(751155),o=e.i(126324),l=e.i(231171),s=e.i(199168);e.s(["f",0,function(e){let u,d,c=(0,r.c)(30),{gate:p,blockedTriggerClassName:m,variant:f,size:g,density:h,className:A,render:v,onClick:b,"aria-label":x,children:y}=e,S=(0,s.M)();c[0]!==A?(u=(0,n.f)(A,"pointer-events-none opacity-50"),c[0]=A,c[1]=u):u=c[1],c[2]!==y||c[3]!==h||c[4]!==g||c[5]!==u||c[6]!==f?(d=(0,t.jsx)(a.Button,{variant:f,size:g,density:h,className:u,"aria-disabled":"true",tabIndex:-1,children:y}),c[2]=y,c[3]=h,c[4]=g,c[5]=u,c[6]=f,c[7]=d):d=c[7];let I=d;switch(p){case l.L.Allowed:{let e;return c[8]!==x||c[9]!==y||c[10]!==A||c[11]!==h||c[12]!==b||c[13]!==v||c[14]!==g||c[15]!==f?(e=(0,t.jsx)(a.Button,{variant:f,size:g,density:h,className:A,render:v,onClick:b,"aria-label":x,children:y}),c[8]=x,c[9]=y,c[10]=A,c[11]=h,c[12]=b,c[13]=v,c[14]=g,c[15]=f,c[16]=e):e=c[16],e}case l.L.Loading:return I;case l.L.Blocked:{let e,r,n,a,l;return c[17]!==S?(e=S(o.f),c[17]=S,c[18]=e):e=c[18],c[19]!==S?(r=S(o.f),c[19]=S,c[20]=r):r=c[20],c[21]!==r?(n=(0,t.jsx)("span",{className:"sr-only",children:r}),c[21]=r,c[22]=n):n=c[22],c[23]!==m||c[24]!==I||c[25]!==n?(a=(0,t.jsxs)(i.TooltipNonInteractiveTrigger,{className:m,children:[I,n]}),c[23]=m,c[24]=I,c[25]=n,c[26]=a):a=c[26],c[27]!==e||c[28]!==a?(l=(0,t.jsx)(i.Tooltip,{content:e,children:a}),c[27]=e,c[28]=a,c[29]=l):l=c[29],l}default:return p}}])},155771,e=>{"use strict";var t=e.i(663456),r=e.i(376885),n=e.i(128564),a=e.i(674896);e.s(["f",0,function(){let e,i,o=(0,t.c)(6),{isSignedIn:l}=(0,r.f)(),s=!0===l;o[0]!==s?(e={isEnabled:s},o[0]=s,o[1]=e):e=o[1];let{workspaces:u,activeWorkspaceId:d}=(0,n.Z)(e);if(o[2]!==d||o[3]!==l||o[4]!==u){let e=!0===l?u?.find(e=>e.id===d):void 0;i=void 0===e?`/${a.L.Chat}`:(0,a.$)(e.slug,a.L.Chat),o[2]=d,o[3]=l,o[4]=u,o[5]=i}else i=o[5];return i}])}]); //# sourceMappingURL=0xvqt19kjsba6.js.map