!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0879f-7df8-7950-aad6-dff511aa72aa")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,624329,e=>{"use strict";let t=(0,e.i(202913).default)("columns-2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);e.s(["Columns2",0,t],624329)},960562,e=>{"use strict";var t=e.i(222666),n=e.i(505962),i=e.i(553215),a=e.i(528164),s=e.i(252358),r=e.i(579852),l=e.i(189360);e.i(406201);var o=e.i(806024),c=e.i(238440);e.s(["ModelHeaderMediaBenchmarksButton",0,function(e){let u,d,m,p,h,x=(0,n.c)(13),{modality:g,source:f,className:v}=e,b=void 0===f?"model_page_header_desktop":f,_=void 0===v?c.MODEL_PAGE_ACTION_BUTTON_CLASS_NAME:v,y=(0,s.usePosthogClient)();return x[0]!==g||x[1]!==y||x[2]!==b?(u=()=>{y.capture(i.PostHogEvent.ClickModelPageMediaBenchmarks,{source:b,modality:g})},x[0]=g,x[1]=y,x[2]=b,x[3]=u):u=x[3],x[4]!==g?(d=(0,l.mediaBenchmarkBasePath)(g),x[4]=g,x[5]=d):d=x[5],x[6]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(r.BarChart3,{className:"size-4 shrink-0"}),x[6]=m):m=x[6],x[7]!==d?(p=(0,t.jsxs)(o.Link,{href:d,children:[m,"Benchmarks"]}),x[7]=d,x[8]=p):p=x[8],x[9]!==_||x[10]!==u||x[11]!==p?(h=(0,t.jsx)(a.Button,{size:"sm",variant:"outline",className:_,onClick:u,render:p}),x[9]=_,x[10]=u,x[11]=p,x[12]=h):h=x[12],h}])},451764,e=>{"use strict";var t=e.i(222666),n=e.i(505962),i=e.i(850658),a=e.i(553215),s=e.i(452473),r=e.i(562580),l=e.i(691038),o=e.i(252358),c=e.i(131827),u=e.i(270401);e.i(406201);var d=e.i(806024),m=e.i(916333);e.s(["ModelPageCtaButton",0,function(e){let p,h,x,g,f,v,b=(0,n.c)(27),{modelSlug:_,source:y,className:j,iconClassName:N,shouldCaptureImpression:C}=e,k=void 0!==C&&C,P=(0,o.usePosthogClient)(),{isSignedIn:A,isLoaded:w}=(0,i.useAuth)(),S=(0,l.useMediaMd)(),T=A??!1;if(b[0]!==w||b[1]!==S||b[2]!==_||b[3]!==k||b[4]!==y||b[5]!==T?(p={shouldCaptureImpression:k,isMdUp:S,modelSlug:_,source:y,isLoaded:w,isSignedIn:T},b[0]=w,b[1]=S,b[2]=_,b[3]=k,b[4]=y,b[5]=T,b[6]=p):p=b[6],function(e){let t,i,s=(0,n.c)(9),{shouldCaptureImpression:r,isMdUp:l,modelSlug:c,source:d,isLoaded:m,isSignedIn:p}=e,h=(0,o.usePosthogClient)(),x=(0,u.useRef)(null);s[0]!==m||s[1]!==l||s[2]!==p||s[3]!==c||s[4]!==h||s[5]!==r||s[6]!==d?(t=()=>{r&&m&&l&&x.current!==c&&(x.current=c,h.capture(a.PostHogEvent.ViewModelPageCta,{source:d,model_slug:c,is_signed_in:p}))},i=[r,m,l,h,d,c,p],s[0]=m,s[1]=l,s[2]=p,s[3]=c,s[4]=h,s[5]=r,s[6]=d,s[7]=t,s[8]=i):(t=s[7],i=s[8]),(0,u.useEffect)(t,i)}(p),!w||!S||A){let e;return b[7]!==j||b[8]!==N||b[9]!==_||b[10]!==y?(e=(0,t.jsx)(m.QuickStartButton,{modelSlug:_,source:y,className:j,iconClassName:N}),b[7]=j,b[8]=N,b[9]=_,b[10]=y,b[11]=e):e=b[11],e}return b[12]!==j?(h=(0,s.cn)((0,r.buttonVariants)({variant:"default",size:"sm"}),"cursor-pointer gap-2 no-underline hover:no-underline",j),b[12]=j,b[13]=h):h=b[13],b[14]!==A||b[15]!==_||b[16]!==P||b[17]!==y?(x=()=>{P.capture(a.PostHogEvent.ClickModelPageCta,{source:y,model_slug:_,cta_label:"Get API Key",is_signed_in:A??!1})},b[14]=A,b[15]=_,b[16]=P,b[17]=y,b[18]=x):x=b[18],b[19]!==N?(g=(0,s.cn)("size-4 shrink-0",N),b[19]=N,b[20]=g):g=b[20],b[21]!==g?(f=(0,t.jsx)(c.KeyRound,{className:g}),b[21]=g,b[22]=f):f=b[22],b[23]!==h||b[24]!==x||b[25]!==f?(v=(0,t.jsxs)(d.Link,{href:"/sign-up?ref=model-page-cta",className:h,onClick:x,children:[f,"Get API Key"]}),b[23]=h,b[24]=x,b[25]=f,b[26]=v):v=b[26],v}])},712980,e=>{"use strict";var t=e.i(222666),n=e.i(505962),i=e.i(963),a=e.i(553215),s=e.i(452473),r=e.i(763392),l=e.i(883992),o=e.i(528164),c=e.i(379684),u=e.i(648156),d=e.i(252358),m=e.i(779100),p=e.i(230953),h=e.i(370066),x=e.i(61291),g=e.i(678915),f=e.i(99074),v=e.i(477986),b=e.i(624329);let _=(0,e.i(202913).default)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]);var y=e.i(270401);e.i(810810);var j=e.i(702378);function N(e){let i,s,r=(0,n.c)(6),{modelSlug:l}=e,o=(0,d.usePosthogClient)();return r[0]!==l||r[1]!==o?(i=()=>{o.capture(a.PostHogEvent.CopyModelSlug,{model_slug:l,source:"model_page_header"})},r[0]=l,r[1]=o,r[2]=i):i=r[2],r[3]!==l||r[4]!==i?(s=(0,t.jsx)(j.CopyToClipboardButton,{text:l,hideCopyText:!0,onClick:i}),r[3]=l,r[4]=i,r[5]=s):s=r[5],s}var C=e.i(960562),k=e.i(373855),P=e.i(712621),A=e.i(117738);e.i(172794);var w=e.i(781656);function S(e){let i,a,s,r=(0,n.c)(4),{permaslug:l}=e,{entity:c}=(0,A.useEntity)();if(!c.data?.is_internal_admin)return null;r[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,w.getMissionControlUrl)(),r[0]=i):i=r[0];let u=i,d=`${u}/model/edit/${l}`;return r[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(k.PencilIcon,{className:"size-3"}),r[1]=a):a=r[1],r[2]!==d?(s=(0,t.jsx)(o.Button,{className:"text-warning hover:text-warning/80",variant:"outline",size:"icon-sm",render:(0,t.jsx)(P.ExternalLink,{href:d,className:"no-underline",children:a})}),r[2]=d,r[3]=s):s=r[3],s}var T=e.i(545354),E=e.i(551001);e.i(406201);var M=e.i(806024);function O(e){let i,r,l,o,c,m,p,h=(0,n.c)(19),{aliasSlug:x,targetSlug:g,targetName:f,className:v}=e,b=(0,d.usePosthogClient)();h[0]!==g?(i=(0,t.jsxs)("span",{children:["This alias currently resolves to ",(0,t.jsx)("span",{children:g}),". The target updates automatically as new versions ship."]}),h[0]=g,h[1]=i):i=h[1];let _=`/${g}`;return h[2]!==x||h[3]!==b||h[4]!==g?(r=()=>{b.capture(a.PostHogEvent.ClickLatestAliasTarget,{alias_slug:x,target_slug:g})},h[2]=x,h[3]=b,h[4]=g,h[5]=r):r=h[5],h[6]!==v?(l=(0,s.cn)("inline-flex max-w-fit items-center gap-1.5 rounded-md border px-2 py-0.5 text-xs font-medium","border-border bg-muted text-muted-foreground","transition-colors hover:bg-card-hover hover:text-foreground",v),h[6]=v,h[7]=l):l=h[7],h[8]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(E.ArrowRightIcon,{"aria-hidden":"true",className:"size-3 shrink-0"}),h[8]=o):o=h[8],h[9]!==f?(c=(0,t.jsx)("span",{className:"truncate",children:f}),h[9]=f,h[10]=c):c=h[10],h[11]!==_||h[12]!==r||h[13]!==l||h[14]!==c?(m=(0,t.jsxs)(M.Link,{href:_,onClick:r,className:l,"data-testid":"latest-alias-target",children:[o,c]}),h[11]=_,h[12]=r,h[13]=l,h[14]=c,h[15]=m):m=h[15],h[16]!==i||h[17]!==m?(p=(0,t.jsx)(u.Tooltip,{side:"top",content:i,children:m}),h[16]=i,h[17]=m,h[18]=p):p=h[18],p}var L=e.i(943926),I=e.i(761512),B=e.i(465370),R=e.i(918662),D=e.i(690387),U=e.i(700050),V=e.i(238440);let z="w-full min-w-0 rounded-lg border border-border bg-card px-3 py-2.5",G={p:e=>(0,t.jsx)(l.MarkdownP,{...e,className:(0,s.cn)("leading-prose",e.className)})};function F(e){let i,a,s,r,l,o,c=(0,n.c)(15),{label:u,labelAdornment:d,value:m,suffix:p}=e;return c[0]!==u?(i=(0,t.jsx)("p",{className:"text-2xs font-medium uppercase tracking-wide text-muted-foreground",children:u}),c[0]=u,c[1]=i):i=c[1],c[2]!==d?(a=d&&(0,t.jsx)("div",{className:"flex items-center gap-1.5",children:d}),c[2]=d,c[3]=a):a=c[3],c[4]!==i||c[5]!==a?(s=(0,t.jsxs)("div",{className:"flex items-center justify-between min-h-[20px]",children:[i,a]}),c[4]=i,c[5]=a,c[6]=s):s=c[6],c[7]!==p?(r=p&&(0,t.jsx)("span",{className:"text-xs font-normal text-muted-foreground ml-1",children:p}),c[7]=p,c[8]=r):r=c[8],c[9]!==r||c[10]!==m?(l=(0,t.jsxs)("p",{className:"mt-1 truncate text-base font-medium",children:[m,r]}),c[9]=r,c[10]=m,c[11]=l):l=c[11],c[12]!==s||c[13]!==l?(o=(0,t.jsxs)("div",{className:z,children:[s,l]}),c[12]=s,c[13]=l,c[14]=o):o=c[14],o}function H(e){let i,a,r,l=(0,n.c)(8),{icon:o,backgroundClassName:c,tooltipLabel:d}=e;return l[0]!==c?(i=(0,s.cn)("inline-flex items-center justify-center rounded-md size-5",c),l[0]=c,l[1]=i):i=l[1],l[2]!==o||l[3]!==i?(a=(0,t.jsx)("span",{className:i,children:o}),l[2]=o,l[3]=i,l[4]=a):a=l[4],l[5]!==a||l[6]!==d?(r=(0,t.jsx)(u.Tooltip,{content:d,children:a}),l[5]=a,l[6]=d,l[7]=r):r=l[7],r}function W(e){let a,r,l,o=(0,n.c)(9),{modality:c}=e,u=I.MODALITY_BG[c],d=i.OUTPUT_MODALITY_LABELS[c]??c,m=I.MODALITY_ICON_COLOR[c];return o[0]!==m?(a=(0,s.cn)("size-3",m),o[0]=m,o[1]=a):a=o[1],o[2]!==c||o[3]!==a?(r=(0,t.jsx)(L.ModalityIcon,{modality:c,className:a,strokeWidth:2.5}),o[2]=c,o[3]=a,o[4]=r):r=o[4],o[5]!==u||o[6]!==d||o[7]!==r?(l=(0,t.jsx)(H,{backgroundClassName:u,tooltipLabel:d,icon:r}),o[5]=u,o[6]=d,o[7]=r,o[8]=l):l=o[8],l}let K={[i.InputModality.Text]:i.OutputModality.Text,[i.InputModality.Image]:i.OutputModality.Image,[i.InputModality.Audio]:i.OutputModality.Audio,[i.InputModality.Video]:i.OutputModality.Video},Q={[i.InputModality.Text]:"Text",[i.InputModality.Image]:"Image",[i.InputModality.File]:"File",[i.InputModality.Audio]:"Audio",[i.InputModality.Video]:"Video"};function $(e){let a,r,l,o=(0,n.c)(19),{modality:c}=e,u=Q[c]??c;if(c===i.InputModality.File){let e,n;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(_,{className:"size-3 text-modality-file",strokeWidth:2.5}),o[0]=e):e=o[0],o[1]!==u?(n=(0,t.jsx)(H,{backgroundClassName:"bg-modality-file/12",tooltipLabel:u,icon:e}),o[1]=u,o[2]=n):n=o[2],n}let d=K[c];if(!d){let e,n,i;return o[3]!==u?(e=u.charAt(0),o[3]=u,o[4]=e):e=o[4],o[5]!==e?(n=(0,t.jsx)("span",{className:"text-2xs font-medium text-muted-foreground",children:e}),o[5]=e,o[6]=n):n=o[6],o[7]!==u||o[8]!==n?(i=(0,t.jsx)(H,{backgroundClassName:"bg-muted",tooltipLabel:u,icon:n}),o[7]=u,o[8]=n,o[9]=i):i=o[9],i}let m=I.MODALITY_BG[d],p=I.MODALITY_ICON_COLOR[d];return o[10]!==p?(a=(0,s.cn)("size-3",p),o[10]=p,o[11]=a):a=o[11],o[12]!==d||o[13]!==a?(r=(0,t.jsx)(L.ModalityIcon,{modality:d,className:a,strokeWidth:2.5}),o[12]=d,o[13]=a,o[14]=r):r=o[14],o[15]!==u||o[16]!==m||o[17]!==r?(l=(0,t.jsx)(H,{backgroundClassName:m,tooltipLabel:u,icon:r}),o[15]=u,o[16]=m,o[17]=r,o[18]=l):l=o[18],l}function Y(e){let i,a,s,r,l,o,c,u=(0,n.c)(13),{inputModalities:d,outputModalities:m}=e;return u[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("p",{className:"text-2xs font-medium text-muted-foreground uppercase tracking-wide",children:"Modalities"}),u[0]=i):i=u[0],u[1]!==d?(a=d.map(Z),u[1]=d,u[2]=a):a=u[2],u[3]!==a?(s=(0,t.jsx)("div",{className:"flex items-center gap-1",children:a}),u[3]=a,u[4]=s):s=u[4],u[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)(g.ArrowRight,{className:"h-3 w-3 shrink-0 text-faint"}),u[5]=r):r=u[5],u[6]!==m?(l=m.map(q),u[6]=m,u[7]=l):l=u[7],u[8]!==l?(o=(0,t.jsx)("div",{className:"flex items-center gap-1",children:l}),u[8]=l,u[9]=o):o=u[9],u[10]!==s||u[11]!==o?(c=(0,t.jsxs)("div",{className:z,children:[i,(0,t.jsxs)("div",{className:"flex items-center gap-2 mt-2.5",children:[s,r,o]})]}),u[10]=s,u[11]=o,u[12]=c):c=u[12],c}function q(e){return(0,t.jsx)(W,{modality:e},e)}function Z(e){return(0,t.jsx)($,{modality:e},e)}function X(e,t){return(0,h.formatNumber)(t,{locale:e,preset:"header-context"})??"—"}function J(e){switch(e){case"/M tokens":return"per 1M";case"/K tokens":return"per 1K";default:return e}}function ee(e,t){if(!t||0===t.length)return null;let n=(0,D.deriveInlinePricing)(e,t);if(!n)return null;switch(n.kind){case"standard-tokens":if((0,D.isDisplayPricingFree)(t))return{kind:"free"};return{kind:"standard-tokens",inputPrice:n.inputPrice,inputUnit:n.inputUnit,outputPrice:n.outputPrice,outputUnit:n.outputUnit};case"custom":return{kind:"custom",label:"Price",value:n.priceOnly,suffix:n.unit};default:return null}}function et({releaseDate:e}){return e?{label:"Released",date:e}:null}function en(e){let i,a=(0,n.c)(18),{priceDisplay:s,discount:r}=e,l=(0,m.useLocale)(),o=void 0!==r&&r>0;a[0]!==r||a[1]!==o||a[2]!==l?(i=o?(0,t.jsxs)("span",{className:"shrink-0 text-2xs font-medium text-positive-text",children:[(0,x.formatPercentPoints)(Math.round(100*r),{locale:l,preset:"fee"})??"—"," off"]}):null,a[0]=r,a[1]=o,a[2]=l,a[3]=i):i=a[3];let c=i;switch(s.kind){case"free":{let e;return a[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(F,{label:"Price",value:"Free"}),a[4]=e):e=a[4],e}case"standard-tokens":{let e,n,i=s.inputUnit===s.outputUnit;a[5]!==s.inputUnit||a[6]!==s.outputUnit||a[7]!==i?(e=i?J(s.inputUnit):`${J(s.inputUnit)} / ${J(s.outputUnit)}`,a[5]=s.inputUnit,a[6]=s.outputUnit,a[7]=i,a[8]=e):e=a[8];let r=e,l=`${s.inputPrice} / ${s.outputPrice}`;return a[9]!==c||a[10]!==r||a[11]!==l?(n=(0,t.jsx)(F,{label:"In / Out Price",labelAdornment:c,value:l,suffix:r}),a[9]=c,a[10]=r,a[11]=l,a[12]=n):n=a[12],n}case"custom":{let e;return a[13]!==c||a[14]!==s.label||a[15]!==s.suffix||a[16]!==s.value?(e=(0,t.jsx)(F,{label:s.label,labelAdornment:c,value:s.value,suffix:s.suffix}),a[13]=c,a[14]=s.label,a[15]=s.suffix,a[16]=s.value,a[17]=e):e=a[17],e}default:return null}}function ei(e){return!e}function ea(e){let i,a,s,r=(0,n.c)(9),{href:l,label:c,icon:u,onClick:d}=e;return r[0]!==u?(i=(0,t.jsx)(u,{className:"size-4 shrink-0"}),r[0]=u,r[1]=i):i=r[1],r[2]!==l||r[3]!==c||r[4]!==i?(a=(0,t.jsxs)(M.Link,{href:l,children:[i,c]}),r[2]=l,r[3]=c,r[4]=i,r[5]=a):a=r[5],r[6]!==d||r[7]!==a?(s=(0,t.jsx)(o.Button,{size:"sm",variant:"outline",className:V.MODEL_PAGE_ACTION_BUTTON_CLASS_NAME,onClick:d,render:a}),r[6]=d,r[7]=a,r[8]=s):s=r[8],s}e.s(["ModelPageHeader",0,function(e){let i,l,o,h,x,g,_,j,k,P=(0,n.c)(115),{displayName:A,author:w,authorIconUri:E,isLatestAlias:M,tildeLatestSlug:L,aliasTarget:I,description:D,inputModalities:V,outputModalities:z,contextLength:H,displayPricing:W,compareHref:K,mediaBenchmarksModality:Q,modelSlug:$,canonicalModelSlug:q,permaslug:Z,playgroundButton:J,quickStartButton:es,hfWeightsLink:er,isRouter:el,releaseDate:eo,knowledgeCutoff:ec,discount:eu,deprecationDate:ed}=e,em=(0,m.useLocale)(),[ep,eh]=(0,y.useState)(!1),[ex,eg]=(0,y.useState)(!1),[ef,ev]=(0,y.useState)(!1),eb=(0,y.useRef)(null),e_=(0,d.usePosthogClient)();P[0]!==ex?(i=()=>{let e=eb.current;if(!e||ex)return;let t=()=>ev(e.scrollHeight>e.clientHeight);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},P[0]=ex,P[1]=i):i=P[1],P[2]!==D||P[3]!==ex?(l=[D,ex],P[2]=D,P[3]=ex,P[4]=l):l=P[4],(0,y.useEffect)(i,l),P[5]!==e_||P[6]!==L?(o=()=>{L&&(navigator.clipboard.writeText(L),eh(!0),e_.capture(a.PostHogEvent.ClickModelPageLatestBadgeCopy,{slug:L}),setTimeout(()=>eh(!1),2e3))},P[5]=e_,P[6]=L,P[7]=o):o=P[7];let ey=o;P[8]!==W||P[9]!==em?(h=ee(em,W),P[8]=W,P[9]=em,P[10]=h):h=P[10];let ej=h;if(P[11]!==I||P[12]!==w||P[13]!==E||P[14]!==q||P[15]!==K||P[16]!==H||P[17]!==ed||P[18]!==D||P[19]!==eu||P[20]!==A||P[21]!==ey||P[22]!==er||P[23]!==V||P[24]!==ep||P[25]!==ex||P[26]!==M||P[27]!==ef||P[28]!==el||P[29]!==ec||P[30]!==em||P[31]!==Q||P[32]!==$||P[33]!==z||P[34]!==Z||P[35]!==J||P[36]!==e_||P[37]!==ej||P[38]!==es||P[39]!==eo||P[40]!==L){let e,n,i,l,o,d,m,h,y,j,k,W,ee,eh,ev,eN,eC,ek,eP,eA,ew=et({releaseDate:eo});P[44]!==$?(e=$.split("/"),P[44]=$,P[45]=e):e=P[45],P[46]!==e?([n,...i]=e,P[46]=e,P[47]=n,P[48]=i):(n=P[47],i=P[48]);let eS=i.join("/");P[49]!==w||P[50]!==E||P[51]!==M||P[52]!==Z?(l=(0,t.jsx)(R.ModelAuthorIcon,{author:w,permaslug:Z,iconUri:E,isLatestAlias:M,className:"w-6 h-6 sm:w-7 sm:h-7 shrink-0"}),P[49]=w,P[50]=E,P[51]=M,P[52]=Z,P[53]=l):l=P[53],P[54]!==A?(o=(0,t.jsx)("h1",{children:A}),P[54]=A,P[55]=o):o=P[55],P[56]!==ey||P[57]!==ep||P[58]!==M||P[59]!==L?(d=M&&L&&(0,t.jsx)(u.Tooltip,{content:(0,t.jsxs)("div",{className:"text-xs leading-snug",children:[(0,t.jsx)("p",{className:"mb-1",children:"Always points to the newest version. Click to copy."}),(0,t.jsx)("span",{className:"font-medium",children:L})]}),children:(0,t.jsx)("button",{onClick:ey,className:"cursor-pointer rounded-full border border-border px-2 py-1 text-2xs font-medium uppercase tracking-wide text-muted-foreground transition-colors hover:bg-card-hover hover:text-accent-foreground",type:"button",children:ep?"Copied!":"Latest"})}),P[56]=ey,P[57]=ep,P[58]=M,P[59]=L,P[60]=d):d=P[60],P[61]!==I?(m=I&&(0,t.jsx)(O,{aliasSlug:I.aliasSlug,targetSlug:I.targetSlug,targetName:I.targetName}),P[61]=I,P[62]=m):m=P[62],P[63]!==ed?(h=(0,t.jsx)(T.DeprecationBadge,{deprecationDate:ed}),P[63]=ed,P[64]=h):h=P[64],P[65]!==o||P[66]!==d||P[67]!==m||P[68]!==h||P[69]!==l?(y=(0,t.jsxs)("div",{className:"flex items-center gap-2.5 flex-wrap",children:[l,o,d,m,h]}),P[65]=o,P[66]=d,P[67]=m,P[68]=h,P[69]=l,P[70]=y):y=P[70];let eT=`/${n}`;P[71]!==n||P[72]!==eT?(j=(0,t.jsx)(c.TextLink,{href:eT,className:"text-xs",children:n}),P[71]=n,P[72]=eT,P[73]=j):j=P[73],P[74]!==eS||P[75]!==j?(k=(0,t.jsxs)("h3",{title:"Model identifier for use in the API",className:"text-xs text-muted-foreground",children:[j,"/",eS]}),P[74]=eS,P[75]=j,P[76]=k):k=P[76],P[77]!==$?(W=(0,t.jsx)(N,{modelSlug:$}),P[77]=$,P[78]=W):W=P[78],P[79]!==q?(ee=(0,t.jsx)(B.ModelPinButton,{modelSlug:q,origin:U.ModelPinOrigin.ModelPage}),P[79]=q,P[80]=ee):ee=P[80],P[81]!==Z?(eh=(0,t.jsx)(S,{permaslug:Z}),P[81]=Z,P[82]=eh):eh=P[82],P[83]!==er||P[84]!==k||P[85]!==W||P[86]!==ee||P[87]!==eh?(ev=(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[k,W,ee,er,eh]}),P[83]=er,P[84]=k,P[85]=W,P[86]=ee,P[87]=eh,P[88]=ev):ev=P[88],P[89]!==y||P[90]!==ev?(eN=(0,t.jsxs)("div",{className:"flex flex-col gap-2 min-w-0",children:[y,ev]}),P[89]=y,P[90]=ev,P[91]=eN):eN=P[91],P[92]!==Q?(eC=Q&&(0,t.jsx)(C.ModelHeaderMediaBenchmarksButton,{modality:Q}),P[92]=Q,P[93]=eC):eC=P[93],P[94]!==K||P[95]!==$||P[96]!==e_?(ek=K&&(0,t.jsx)(ea,{href:K,label:"Compare",icon:b.Columns2,onClick:()=>e_.capture(a.PostHogEvent.ClickCompareButton,{source:"model_page_header_desktop",model_slug:$})}),P[94]=K,P[95]=$,P[96]=e_,P[97]=ek):ek=P[97],P[98]!==J||P[99]!==es||P[100]!==eC||P[101]!==ek?(eP=(0,t.jsxs)("div",{className:"hidden md:flex md:flex-col md:items-stretch lg:flex-row lg:items-center justify-end gap-2",children:[eC,ek,J,es]}),P[98]=J,P[99]=es,P[100]=eC,P[101]=ek,P[102]=eP):eP=P[102],P[103]!==eN||P[104]!==eP?(x=(0,t.jsxs)("div",{id:"model-title-row",className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",children:[eN,eP]}),P[103]=eN,P[104]=eP,P[105]=x):x=P[105],P[106]!==D||P[107]!==ex||P[108]!==ef?(g=D&&(0,t.jsxs)("div",{className:"mt-5",children:[(0,t.jsx)("div",{ref:eb,className:(0,s.cn)("text-prose leading-prose text-prose-body",!ex&&"line-clamp-2"),children:(0,t.jsx)(r.MarkdownContainer,{components:G,children:D})}),ef&&(0,t.jsx)("div",{className:"flex items-center gap-3 mt-1",children:(0,t.jsx)("button",{type:"button",onClick:()=>eg(ei),className:"inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors cursor-pointer",children:ex?(0,t.jsxs)(t.Fragment,{children:["Show less ",(0,t.jsx)(v.ChevronUp,{className:"w-3 h-3"})]}):(0,t.jsxs)(t.Fragment,{children:["Show more ",(0,t.jsx)(f.ChevronDown,{className:"w-3 h-3"})]})})})]}),P[106]=D,P[107]=ex,P[108]=ef,P[109]=g):g=P[109],_=!el&&(0,t.jsxs)("div",{className:"mt-7 grid grid-cols-2 gap-2 sm:grid-cols-3 lg:grid-cols-5",children:[(0,t.jsx)(Y,{inputModalities:V,outputModalities:z}),ej&&(0,t.jsx)(en,{priceDisplay:ej,discount:eu}),H>0&&(0,t.jsx)(F,{label:"Context",value:X(em,H)}),ew&&(0,t.jsx)(F,{label:ew.label,value:(0,p.formatDate)(new Date(ew.date),{locale:em,timeZone:"UTC",preset:"medium"})??"—"}),ec&&(0,t.jsx)(F,{label:"Knowledge Cutoff",value:Number.isNaN((eA=new Date(ec)).getTime())?ec:(0,p.formatDate)(eA,{locale:em,timeZone:"UTC",preset:"month-year-short"})??"—"})]}),P[11]=I,P[12]=w,P[13]=E,P[14]=q,P[15]=K,P[16]=H,P[17]=ed,P[18]=D,P[19]=eu,P[20]=A,P[21]=ey,P[22]=er,P[23]=V,P[24]=ep,P[25]=ex,P[26]=M,P[27]=ef,P[28]=el,P[29]=ec,P[30]=em,P[31]=Q,P[32]=$,P[33]=z,P[34]=Z,P[35]=J,P[36]=e_,P[37]=ej,P[38]=es,P[39]=eo,P[40]=L,P[41]=x,P[42]=g,P[43]=_}else x=P[41],g=P[42],_=P[43];return P[110]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsx)("div",{className:"mt-8 hidden border-b border-border lg:block"}),P[110]=j):j=P[110],P[111]!==x||P[112]!==g||P[113]!==_?(k=(0,t.jsxs)("div",{children:[x,g,_,j]}),P[111]=x,P[112]=g,P[113]=_,P[114]=k):k=P[114],k},"deriveModelDateDisplay",0,et,"derivePriceDisplay",0,ee,"formatContext",0,X],712980)},171525,e=>{"use strict";var t=e.i(222666),n=e.i(505962),i=e.i(850658),a=e.i(189511),s=e.i(553215),r=e.i(452473),l=e.i(528164),o=e.i(648156),c=e.i(252358),u=e.i(579852),d=e.i(624329),m=e.i(155325),p=e.i(270401),h=e.i(189360),x=e.i(918662),g=e.i(398449);e.i(406201);var f=e.i(806024),v=e.i(583801),b=e.i(985024),_=e.i(121850),y=e.i(109460),j=e.i(451764);let N=()=>!1,C="model-playground-toggle",k="data-model-playground-panel-open";function P(e){let i,a,s=(0,n.c)(7),{href:r,icon:l,label:o,onClick:c}=e;return s[0]!==l?(i=(0,t.jsx)(l,{className:"w-3 h-3"}),s[0]=l,s[1]=i):i=s[1],s[2]!==r||s[3]!==o||s[4]!==c||s[5]!==i?(a=(0,t.jsxs)(f.Link,{href:r,className:"inline-flex items-center gap-1.5 h-7 px-3 rounded-md border border-border bg-background text-xs font-medium text-foreground no-underline hover:no-underline hover:bg-muted hover:text-accent-foreground transition-colors cursor-pointer",onClick:c,children:[i,o]}),s[2]=r,s[3]=o,s[4]=c,s[5]=i,s[6]=a):a=s[6],a}function A(){return document.documentElement.hasAttribute(k)}function w(e){let t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:[k]}),()=>t.disconnect()}e.s(["ModelScrolledNav",0,function(e){let f,k,S,T,E,M,O,L,I,B=(0,n.c)(38),{displayName:R,author:D,permaslug:U,authorIconUri:V,isLatestAlias:z,compareHref:G,mediaBenchmarksModality:F,modelSlug:H,hasPlayground:W,hasQuickStart:K,canSectionReplaceSidebar:Q}=e,$=(0,p.useSyncExternalStore)(w,A,N),Y=(0,c.usePosthogClient)(),q=(0,v.useNavbarTopOffset)(),Z=W&&!Q,X=(0,b.useWorkspaceCapabilityGate)(a.WorkspaceCapability.Chatroom),{isSignedIn:J}=(0,i.useAuth)(),ee=X===_.WorkspaceCapabilityGateState.Blocked,et=X===_.WorkspaceCapabilityGateState.Loading&&!0===J;B[0]!==H||B[1]!==Y?(f=()=>{window.dispatchEvent(new CustomEvent(C)),Y.capture(s.PostHogEvent.ClickPlaygroundSidePanel,{source:"model_page_scrolled_nav",model:H})},B[0]=H,B[1]=Y,B[2]=f):f=B[2];let en=f,ei=Math.round(.8*y.NAVBAR_HEIGHT_PX)+q;return B[3]!==D||B[4]!==V||B[5]!==z||B[6]!==U?(k=(0,t.jsx)(x.ModelAuthorIcon,{author:D,permaslug:U,iconUri:V,isLatestAlias:z,className:"w-5 h-5 shrink-0"}),B[3]=D,B[4]=V,B[5]=z,B[6]=U,B[7]=k):k=B[7],B[8]!==F||B[9]!==Y?(S=F&&(0,t.jsx)(P,{href:(0,h.mediaBenchmarkBasePath)(F),icon:u.BarChart3,label:"Benchmarks",onClick:()=>{Y.capture(s.PostHogEvent.ClickModelPageMediaBenchmarks,{source:"model_page_scrolled_nav",modality:F})}}),B[8]=F,B[9]=Y,B[10]=S):S=B[10],B[11]!==G||B[12]!==H||B[13]!==Y?(T=G&&(0,t.jsx)(P,{href:G,icon:d.Columns2,label:"Compare",onClick:()=>{Y.capture(s.PostHogEvent.ClickCompareButton,{source:"model_page_scrolled_nav",model_slug:H})}}),B[11]=G,B[12]=H,B[13]=Y,B[14]=T):T=B[14],B[15]!==et||B[16]!==Z?(E=Z&&et&&(0,t.jsxs)(l.Button,{size:"sm",variant:"outline","aria-disabled":"true",tabIndex:-1,className:"h-7 gap-1.5 text-xs shadow-none pointer-events-none opacity-50",children:[(0,t.jsx)(m.FlaskConical,{className:"w-3 h-3"}),"Playground"]}),B[15]=et,B[16]=Z,B[17]=E):E=B[17],B[18]!==en||B[19]!==ee||B[20]!==$||B[21]!==et||B[22]!==Z?(M=Z&&!et&&(ee?(0,t.jsx)(o.Tooltip,{content:"Not available in this workspace",children:(0,t.jsxs)(o.TooltipNonInteractiveTrigger,{children:[(0,t.jsxs)(l.Button,{size:"sm",variant:"outline","aria-disabled":"true",tabIndex:-1,className:"h-7 gap-1.5 text-xs shadow-none pointer-events-none opacity-50",children:[(0,t.jsx)(m.FlaskConical,{className:"w-3 h-3"}),"Playground"]}),(0,t.jsx)("span",{className:"sr-only",children:"Not available in this workspace"})]})}):(0,t.jsxs)(l.Button,{size:"sm",variant:"outline",className:(0,r.cn)("h-7 gap-1.5 cursor-pointer text-xs shadow-none hover:shadow-none",$&&"bg-muted border-border"),onClick:en,children:[(0,t.jsx)(m.FlaskConical,{className:"w-3 h-3"}),"Playground"]})),B[18]=en,B[19]=ee,B[20]=$,B[21]=et,B[22]=Z,B[23]=M):M=B[23],B[24]!==K||B[25]!==H?(O=K&&(0,t.jsx)(j.ModelPageCtaButton,{modelSlug:H,source:"model_page_scrolled_nav",className:"h-7 gap-1.5 px-3 text-xs",iconClassName:"size-3"}),B[24]=K,B[25]=H,B[26]=O):O=B[26],B[27]!==S||B[28]!==T||B[29]!==E||B[30]!==M||B[31]!==O?(L=(0,t.jsxs)(t.Fragment,{children:[S,T,E,M,O]}),B[27]=S,B[28]=T,B[29]=E,B[30]=M,B[31]=O,B[32]=L):L=B[32],B[33]!==R||B[34]!==ei||B[35]!==k||B[36]!==L?(I=(0,t.jsx)(g.ScrolledNavBar,{titleRowId:"model-title-row",topClass:y.SCROLLED_NAV_TOP_CLASS,dataAttribute:"data-model-scrolled-nav",revealOffsetPx:ei,containerClassName:"mx-auto max-w-7xl px-4",titleIcon:k,title:R,actionsClassName:"hidden sm:flex items-center gap-1.5 shrink-0",actions:L}),B[33]=R,B[34]=ei,B[35]=k,B[36]=L,B[37]=I):I=B[37],I},"SCROLLED_NAV_PLAYGROUND_TOGGLE_EVENT",0,C])},131106,e=>{"use strict";var t=e.i(222666),n=e.i(505962),i=e.i(850658),a=e.i(189511),s=e.i(553215),r=e.i(452473),l=e.i(528164),o=e.i(648156),c=e.i(252358),u=e.i(944343),d=e.i(635528),m=e.i(706527),p=e.i(79247),h=e.i(155325),x=e.i(821369),g=e.i(270401),f=e.i(214857),v=e.i(369677),b=e.i(803979),_=e.i(985024),y=e.i(121850),j=e.i(238440),N=e.i(171525),C=e.i(599662);let k=(0,x.default)(()=>e.A(724597).then(e=>({default:e.ModelPlayground})),{loadableGenerated:{modules:[727902]},ssr:!1}),P="data-model-playground-panel-open",A="data-model-playground-panel-transition",w="--model-playground-page-scrollbar-width",S="model-playground-page-shift",T={duration:300,easing:"cubic-bezier(0.16, 1, 0.3, 1)"};function E(e){var i;let a,o,x,v,_,y,C,k,S,T,E,R,D,U,V,z,G,F,H,W,K,Q,$,Y,q=(0,n.c)(66),{model:Z,variantGroups:X,activeVariant:J,staticVariant:ee,basePath:et,hasBenchmarksPromise:en,actionButtonClassName:ei,isPrivateView:ea,listenForExternalToggle:es,shouldAutoOpenSeed:er}=e,el=void 0!==ea&&ea,eo=void 0!==es&&es,ec=void 0!==er&&er,eu=(0,c.usePosthogClient)(),[ed,em]=(0,g.useState)(!1),ep=(0,b.usePortalTarget)();q[0]!==Z?(_=(0,m.getModelVariantSlug)(Z),q[0]=Z,q[1]=_):_=q[1];let eh=_;if(q[2]!==el||q[3]!==Z){let e=(0,u.getPlaygroundSeedModality)(Z,el);y=null!==e,C=p.useQuery,k=(0,d.modelExamplesOptions)({permaslug:Z.permaslug,modality:e}),q[2]=el,q[3]=Z,q[4]=y,q[5]=C,q[6]=k}else y=q[4],C=q[5],k=q[6];let{data:ex}=C(k);q[7]!==ex||q[8]!==y?(S=y?(0,u.getPlaygroundSeedVariants)(ex):[],q[7]=ex,q[8]=y,q[9]=S):S=q[9];let eg=S,[ef,ev]=(0,g.useState)(null);q[10]!==eg||q[11]!==ef?(T=eg.find(e=>e.index===ef)?.index??eg[0]?.index??0,q[10]=eg,q[11]=ef,q[12]=T):T=q[12];let eb=T;q[13]!==eb||q[14]!==ex||q[15]!==y?(E=y?(0,u.getPlaygroundSeed)(ex,eb):null,q[13]=eb,q[14]=ex,q[15]=y,q[16]=E):E=q[16];let e_=E;q[17]!==Z.permaslug||q[18]!==y?(R=()=>{y&&(0,u.markAutoOpenDismissed)(Z.permaslug),em(!1)},q[17]=Z.permaslug,q[18]=y,q[19]=R):R=q[19];let ey=R;i=ed,x=(0,n.c)(3),v=(0,g.useRef)(null),x[0]!==i?(a=()=>{if(!i)return;let e=document.documentElement,t=document.querySelector("#page-content"),n=window.scrollY,a=e.getAttribute(P),s=e.getAttribute(A),r=e.style.getPropertyValue(w),l=O(t),o=()=>{var t;let n;t=e,n=Math.max(0,window.innerWidth-t.clientWidth),t.style.setProperty(w,`${n}px`)};return I(v),o(),e.setAttribute(A,"true"),e.setAttribute(P,"true"),t?.scrollTo(0,n),window.scrollTo(0,0),L(l),window.addEventListener("resize",o),()=>{let n=t?.scrollTop??window.scrollY,i=O(t);window.removeEventListener("resize",o),e.setAttribute(A,"true"),B({element:e,name:P,value:a}),function({element:e,name:t,value:n}){""===n?e.style.removeProperty(t):e.style.setProperty(t,n)}({element:e,name:w,value:r}),window.scrollTo(0,n),L(i),function({element:e,previousValue:t,timeoutRef:n}){I(n),n.current=window.setTimeout(()=>{B({element:e,name:A,value:t}),n.current=null},300)}({element:e,previousValue:s,timeoutRef:v})}},o=[i],x[0]=i,x[1]=a,x[2]=o):(a=x[1],o=x[2]),(0,g.useLayoutEffect)(a,o);let ej=(0,g.useRef)(!1);q[20]!==Z.permaslug||q[21]!==eh||q[22]!==eu||q[23]!==e_||q[24]!==ec?(D=()=>{ec&&e_&&!ej.current&&(0,u.canViewportFitPlaygroundPanel)(window.innerWidth)&&((0,u.isAutoOpenDismissed)(Z.permaslug)||(ej.current=!0,em(!0),eu.capture(s.PostHogEvent.ModelPlaygroundAutoOpen,{model:eh,has_seed:!0})))},U=[ec,e_,Z.permaslug,eh,eu],q[20]=Z.permaslug,q[21]=eh,q[22]=eu,q[23]=e_,q[24]=ec,q[25]=D,q[26]=U):(D=q[25],U=q[26]),(0,g.useEffect)(D,U),q[27]!==ey||q[28]!==ed||q[29]!==eo?(V=()=>{if(!eo)return;let e=()=>{ed?ey():em(!0)};return window.addEventListener(N.SCROLLED_NAV_PLAYGROUND_TOGGLE_EVENT,e),()=>window.removeEventListener(N.SCROLLED_NAV_PLAYGROUND_TOGGLE_EVENT,e)},z=[eo,ed,ey],q[27]=ey,q[28]=ed,q[29]=eo,q[30]=V,q[31]=z):(V=q[30],z=q[31]),(0,g.useEffect)(V,z),q[32]!==ey||q[33]!==ed?(G=()=>{if(!ed)return;let e=e=>{"Escape"!==e.key||e.defaultPrevented||ey()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},F=[ed,ey],q[32]=ey,q[33]=ed,q[34]=G,q[35]=F):(G=q[34],F=q[35]),(0,g.useEffect)(G,F),q[36]!==eb||q[37]!==J||q[38]!==et||q[39]!==ey||q[40]!==en||q[41]!==ed||q[42]!==el||q[43]!==Z||q[44]!==ep||q[45]!==e_||q[46]!==eg||q[47]!==ee||q[48]!==X?(H=ep?(0,f.createPortal)((0,t.jsx)("aside",{"aria-label":"Playground",style:{right:`var(${w}, 0px)`,transitionDuration:"var(--model-playground-panel-transition-duration)",transitionTimingFunction:"var(--model-playground-panel-transition-easing)",viewTransitionName:"app-playground-panel"},className:(0,r.cn)("fixed inset-x-0 bottom-0 z-overlay h-[calc(100dvh-3.5rem-var(--navbar-top,0px))] w-full max-w-none","border-t border-border/60 bg-background shadow-none sm:border-t-0 sm:border-l","transition-transform","sm:inset-x-auto sm:top-[calc(3.5rem+var(--navbar-top,0px))] sm:bottom-auto sm:w-[380px] sm:max-w-none",!ed&&"pointer-events-none translate-y-full sm:translate-y-0 sm:translate-x-[calc(100%+var(--model-playground-page-scrollbar-width,0px))]"),...!ed?{inert:!0}:{},children:(0,t.jsx)(g.Suspense,{fallback:null,children:(0,t.jsx)(M,{model:Z,variantGroups:X,activeVariant:J,staticVariant:ee,basePath:et,hasBenchmarksPromise:en,onClose:ey,isPrivateView:el,seed:e_,seedVariants:eg,selectedSeedIndex:eb,onSeedVariantSelect:ev})})}),ep):null,q[36]=eb,q[37]=J,q[38]=et,q[39]=ey,q[40]=en,q[41]=ed,q[42]=el,q[43]=Z,q[44]=ep,q[45]=e_,q[46]=eg,q[47]=ee,q[48]=X,q[49]=H):H=q[49];let eN=H,eC=ed&&"border-primary/40 bg-accent text-accent-foreground hover:bg-accent";return q[50]!==ei||q[51]!==eC?(W=(0,r.cn)(j.MODEL_PAGE_ACTION_BUTTON_CLASS_NAME,ei,eC),q[50]=ei,q[51]=eC,q[52]=W):W=q[52],q[53]!==ey||q[54]!==ed||q[55]!==eh||q[56]!==eu?(K=()=>{eu.capture(s.PostHogEvent.ClickPlaygroundSidePanel,{source:"model_page_header",model:eh}),ed?ey():em(!0)},q[53]=ey,q[54]=ed,q[55]=eh,q[56]=eu,q[57]=K):K=q[57],q[58]===Symbol.for("react.memo_cache_sentinel")?(Q=(0,t.jsx)(h.FlaskConical,{className:"size-4 shrink-0"}),q[58]=Q):Q=q[58],q[59]!==ed||q[60]!==W||q[61]!==K?($=(0,t.jsxs)(l.Button,{size:"sm",variant:"outline","aria-pressed":ed,className:W,onClick:K,children:[Q,"Playground"]}),q[59]=ed,q[60]=W,q[61]=K,q[62]=$):$=q[62],q[63]!==eN||q[64]!==$?(Y=(0,t.jsxs)(t.Fragment,{children:[$,eN]}),q[63]=eN,q[64]=$,q[65]=Y):Y=q[65],Y}function M(e){let i,a,s=(0,n.c)(15),{model:r,variantGroups:l,activeVariant:o,staticVariant:c,basePath:u,hasBenchmarksPromise:d,onClose:m,isPrivateView:p,seed:h,seedVariants:x,selectedSeedIndex:f,onSeedVariantSelect:b}=e,_=(0,g.use)(d);return s[0]!==m||s[1]!==b||s[2]!==h||s[3]!==x||s[4]!==f?(i=(0,t.jsx)(k,{onClose:m,seed:h,seedVariants:x,selectedSeedIndex:f,onSeedVariantSelect:b}),s[0]=m,s[1]=b,s[2]=h,s[3]=x,s[4]=f,s[5]=i):i=s[5],s[6]!==o||s[7]!==u||s[8]!==_||s[9]!==p||s[10]!==r||s[11]!==c||s[12]!==i||s[13]!==l?(a=(0,t.jsx)(v.ModelPageProvider,{model:r,variantGroups:l,activeVariant:o,staticVariant:c,basePath:u,hasBenchmarks:_,hasFaqs:!1,skipPageViewTracking:!0,isPrivateView:p,children:i}),s[6]=o,s[7]=u,s[8]=_,s[9]=p,s[10]=r,s[11]=c,s[12]=i,s[13]=l,s[14]=a):a=s[14],a}function O(e){return e?Array.from(e.querySelectorAll('[data-slot="container"] > :not(.fixed)')).map(e=>({element:e,left:e.getBoundingClientRect().left})):[]}function L(e){0===e.length||window.matchMedia("(prefers-reduced-motion: reduce)").matches||e.forEach(({element:e,left:t})=>{let n=t-e.getBoundingClientRect().left;.5>Math.abs(n)||(e.getAnimations().filter(e=>e.id===S).forEach(e=>{e.cancel()}),e.animate([{transform:`translate3d(${n}px, 0, 0)`},{transform:"translate3d(0, 0, 0)"}],T).id=S)})}function I(e){null!==e.current&&(window.clearTimeout(e.current),e.current=null)}function B({element:e,name:t,value:n}){null===n?e.removeAttribute(t):e.setAttribute(t,n)}e.s(["PlaygroundSidePanelButton",0,function(e){let s,c,d=(0,n.c)(27),{model:m,variantGroups:p,activeVariant:x,staticVariant:g,basePath:f,hasBenchmarksPromise:v,actionButtonClassName:b,isPrivateView:N,listenForExternalToggle:k,shouldAutoOpenSeed:P}=e,A=void 0!==N&&N,w=void 0!==k&&k,S=(0,_.useWorkspaceCapabilityGate)(a.WorkspaceCapability.Chatroom),{isSignedIn:T}=(0,i.useAuth)(),M=S===y.WorkspaceCapabilityGateState.Blocked,O=S===y.WorkspaceCapabilityGateState.Loading&&!0===T,L=(0,u.canAnySectionReplaceSidebarPlayground)({model:m,isPrivateView:A});d[0]!==A||d[1]!==m?(s=(0,C.isPlaygroundSectionActiveForModel)({model:m,isPrivateView:A}),d[0]=A,d[1]=m,d[2]=s):s=d[2];let I=s;if(L)return null;if(O){let e,n,i;return d[3]!==b?(e=(0,r.cn)(j.MODEL_PAGE_ACTION_BUTTON_CLASS_NAME,b,"pointer-events-none opacity-50"),d[3]=b,d[4]=e):e=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(h.FlaskConical,{className:"size-4 shrink-0"}),d[5]=n):n=d[5],d[6]!==e?(i=(0,t.jsxs)(l.Button,{size:"sm",variant:"outline","aria-disabled":"true",tabIndex:-1,className:e,children:[n,"Playground"]}),d[6]=e,d[7]=i):i=d[7],i}if(M){let e,n,i,a,s;return d[8]!==b?(e=(0,r.cn)(j.MODEL_PAGE_ACTION_BUTTON_CLASS_NAME,b,"pointer-events-none opacity-50"),d[8]=b,d[9]=e):e=d[9],d[10]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(h.FlaskConical,{className:"size-4 shrink-0"}),d[10]=n):n=d[10],d[11]!==e?(i=(0,t.jsxs)(l.Button,{size:"sm",variant:"outline","aria-disabled":"true",tabIndex:-1,className:e,children:[n,"Playground"]}),d[11]=e,d[12]=i):i=d[12],d[13]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("span",{className:"sr-only",children:"Not available in this workspace"}),d[13]=a):a=d[13],d[14]!==i?(s=(0,t.jsx)(o.Tooltip,{content:"Not available in this workspace",children:(0,t.jsxs)(o.TooltipNonInteractiveTrigger,{children:[i,a]})}),d[14]=i,d[15]=s):s=d[15],s}let B=void 0!==P&&P&&!I;return d[16]!==b||d[17]!==x||d[18]!==f||d[19]!==v||d[20]!==A||d[21]!==w||d[22]!==m||d[23]!==g||d[24]!==B||d[25]!==p?(c=(0,t.jsx)(E,{model:m,variantGroups:p,activeVariant:x,staticVariant:g,basePath:f,hasBenchmarksPromise:v,actionButtonClassName:b,isPrivateView:A,listenForExternalToggle:w,shouldAutoOpenSeed:B}),d[16]=b,d[17]=x,d[18]=f,d[19]=v,d[20]=A,d[21]=w,d[22]=m,d[23]=g,d[24]=B,d[25]=p,d[26]=c):c=d[26],c}])},916333,e=>{"use strict";var t=e.i(222666),n=e.i(505962),i=e.i(553215),a=e.i(452473),s=e.i(528164),r=e.i(252358),l=e.i(311594),o=e.i(621364);e.i(270401);var c=e.i(579394);e.s(["QuickStartButton",0,function(e){let u,d,m,p,h,x=(0,n.c)(16),{modelSlug:g,source:f,className:v,iconClassName:b}=e,_=(0,r.usePosthogClient)(),{isQuickStartOpen:y,toggleQuickStart:j}=function(){let e,t,i,a=(0,n.c)(7);a[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.parseAsString.withOptions({history:"replace",scroll:!1}),a[0]=e):e=a[0];let[s,r]=(0,o.useQueryState)(c.QUICK_START_DRAWER_PARAM,e),l=s===c.QUICK_START_DRAWER_VALUE;a[1]!==l||a[2]!==r?(t=()=>{r(l?null:c.QUICK_START_DRAWER_VALUE)},a[1]=l,a[2]=r,a[3]=t):t=a[3];let u=t;return a[4]!==l||a[5]!==u?(i={isQuickStartOpen:l,toggleQuickStart:u},a[4]=l,a[5]=u,a[6]=i):i=a[6],i}();return x[0]!==v?(u=(0,a.cn)("cursor-pointer gap-2",v),x[0]=v,x[1]=u):u=x[1],x[2]!==g||x[3]!==_||x[4]!==f||x[5]!==j?(d=()=>{_.capture(i.PostHogEvent.ClickQuickStartButton,{source:f,model_slug:g}),j()},x[2]=g,x[3]=_,x[4]=f,x[5]=j,x[6]=d):d=x[6],x[7]!==b?(m=(0,a.cn)("size-4 shrink-0",b),x[7]=b,x[8]=m):m=x[8],x[9]!==m?(p=(0,t.jsx)(l.TerminalSquare,{className:m}),x[9]=m,x[10]=p):p=x[10],x[11]!==y||x[12]!==u||x[13]!==d||x[14]!==p?(h=(0,t.jsxs)(s.Button,{size:"sm",variant:"default","aria-pressed":y,className:u,onClick:d,children:[p,"Try this model"]}),x[11]=y,x[12]=u,x[13]=d,x[14]=p,x[15]=h):h=x[15],h}],916333)},813303,e=>{"use strict";var t=e.i(222666),n=e.i(505962),i=e.i(821369),a=e.i(270401),s=e.i(153206),r=e.i(727086),l=e.i(369677),o=e.i(579394);let c=(0,i.default)(()=>e.A(429796).then(e=>e.ModelAPI),{loadableGenerated:{modules:[279704]},ssr:!1});function u(e){let i,s,r=(0,n.c)(8),{model:o,variantGroups:u,activeVariant:d,staticVariant:m,basePath:p,hasBenchmarksPromise:h}=e,x=(0,a.use)(h);return r[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(c,{}),r[0]=i):i=r[0],r[1]!==d||r[2]!==p||r[3]!==x||r[4]!==o||r[5]!==m||r[6]!==u?(s=(0,t.jsx)(l.ModelPageProvider,{model:o,variantGroups:u,activeVariant:d,staticVariant:m,basePath:p,hasBenchmarks:x,hasFaqs:!1,skipPageViewTracking:!0,children:i}),r[1]=d,r[2]=p,r[3]=x,r[4]=o,r[5]=m,r[6]=u,r[7]=s):s=r[7],s}e.s(["QuickStartDrawer",0,function(e){let i,l,c,d=(0,n.c)(8);d[0]===Symbol.for("react.memo_cache_sentinel")?(i={paramName:o.QUICK_START_DRAWER_PARAM,pinUrlHash:!0},d[0]=i):i=d[0];let{selectedId:m,setIsOpen:p}=(0,r.useDetailPaneDeeplink)(i),h=m===o.QUICK_START_DRAWER_VALUE;return d[1]!==h||d[2]!==e?(l=h?(0,t.jsx)(a.Suspense,{fallback:null,children:(0,t.jsx)(u,{...e})}):null,d[1]=h,d[2]=e,d[3]=l):l=d[3],d[4]!==h||d[5]!==p||d[6]!==l?(c=(0,t.jsx)(s.DetailSheet,{isOpen:h,setIsOpen:p,title:"Quick Start",subtitle:"Drop-in code to call this model with OpenRouter's OpenAI-compatible API.",children:l}),d[4]=h,d[5]=p,d[6]=l,d[7]=c):c=d[7],c}])},238440,e=>{"use strict";e.s(["MODEL_PAGE_ACTION_BUTTON_CLASS_NAME",0,"gap-2 px-4 bg-background shadow-none cursor-pointer text-foreground no-underline hover:no-underline"])},579394,e=>{"use strict";e.s(["QUICK_START_DRAWER_PARAM",0,"view","QUICK_START_DRAWER_VALUE",0,"api"])},79489,e=>{"use strict";var t=e.i(222666),n=e.i(505962),i=e.i(476809),a=e.i(553215),s=e.i(320347),r=e.i(528164),l=e.i(117738),o=e.i(389313),c=e.i(839669),u=e.i(270401),d=e.i(756847),m=e.i(331995),p=e.i(790445);let h="model_page";function x(e){return i.ATTESTATION_DEFINITIONS[e].label}e.s(["AttestationModelBanner",0,function(e){let i,g,f,v,b,_,y,j=(0,n.c)(18),{requiredTypes:N,modelName:C}=e,{isSignedIn:k}=(0,l.useEntity)(),P=(0,c.usePostHog)(),{isGated:A,isLoading:w,error:S,missingTypes:T,isSatisfied:E,confirmTypes:M}=function(e){let t,i,a=(0,n.c)(10),s=e.length>0,{heldTypes:r,isLoading:l,error:o,confirmTypes:c}=(0,p.useEffectiveHeldAttestations)(s);a[0]!==r||a[1]!==e?(t=(0,m.findMissingAttestations)(e,r),a[0]=r,a[1]=e,a[2]=t):t=a[2];let u=t,d=s&&!l&&0===u.length;return a[3]!==c||a[4]!==o||a[5]!==s||a[6]!==l||a[7]!==u||a[8]!==d?(i={isGated:s,isLoading:l,error:o,missingTypes:u,isSatisfied:d,confirmTypes:c},a[3]=c,a[4]=o,a[5]=s,a[6]=l,a[7]=u,a[8]=d,a[9]=i):i=a[9],i}(N),[O,L]=(0,u.useState)(!1);if(!(k&&A&&!w&&null===S&&!E&&T.length>0))return null;j[0]!==P?(i=()=>{P.capture(a.PostHogEvent.OpenAttestationDialog,{source:h,signed_in:!0}),L(!0)},j[0]=P,j[1]=i):i=j[1];let I=i;j[2]===Symbol.for("react.memo_cache_sentinel")?(g=(0,t.jsx)(o.ShieldAlert,{}),j[2]=g):g=j[2],j[3]!==I?(f=(0,t.jsx)(r.Button,{size:"sm",variant:"outline",onClick:I,children:"Confirm"}),j[3]=I,j[4]=f):f=j[4],j[5]!==T?(v=T.map(x).join(", "),j[5]=T,j[6]=v):v=j[6];let B=`Confirm the following before using ${C??"this model"}: ${v}.`;return j[7]!==f||j[8]!==B?(b=(0,t.jsx)(s.Banner,{variant:"warning",icon:g,className:"z-10 max-w-full items-center",action:f,children:B}),j[7]=f,j[8]=B,j[9]=b):b=j[9],j[10]!==M||j[11]!==O||j[12]!==T||j[13]!==C?(_=(0,t.jsx)(d.AttestationDialog,{open:O,onOpenChange:L,missingTypes:T,onConfirmed:M,source:h,modelName:C}),j[10]=M,j[11]=O,j[12]=T,j[13]=C,j[14]=_):_=j[14],j[15]!==b||j[16]!==_?(y=(0,t.jsxs)(t.Fragment,{children:[b,_]}),j[15]=b,j[16]=_,j[17]=y):y=j[17],y}],79489)}]); //# sourceMappingURL=0wx8a3cma4g0f.js.map //# chunkId=01a0879f-7df8-7950-aad6-dff511aa72aa