!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]="01a09f3e-7ae6-7892-9c6d-2aeb941b607c")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,646013,e=>{"use strict";var t=e.i(270401);let o=t.forwardRef(function({title:e,titleId:o,...i},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":o},i),e?t.createElement("title",{id:o},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"}))});e.s(["ArrowUpIcon",0,o],646013)},477248,e=>{"use strict";var t=e.i(270401);let o=t.forwardRef(function({title:e,titleId:o,...i},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":o},i),e?t.createElement("title",{id:o},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"}))});e.s(["BoltIcon",0,o],477248)},902866,e=>{"use strict";var t=e.i(270401);let o=t.forwardRef(function({title:e,titleId:o,...i},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":o},i),e?t.createElement("title",{id:o},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5m-9-6h.008v.008H12v-.008ZM12 15h.008v.008H12V15Zm0 2.25h.008v.008H12v-.008ZM9.75 15h.008v.008H9.75V15Zm0 2.25h.008v.008H9.75v-.008ZM7.5 15h.008v.008H7.5V15Zm0 2.25h.008v.008H7.5v-.008Zm6.75-4.5h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V15Zm0 2.25h.008v.008h-.008v-.008Zm2.25-4.5h.008v.008H16.5v-.008Zm0 2.25h.008v.008H16.5V15Z"}))});e.s(["CalendarDaysIcon",0,o],902866)},849566,e=>{"use strict";var t=e.i(270401);let o=t.forwardRef(function({title:e,titleId:o,...i},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":o},i),e?t.createElement("title",{id:o},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m-3-2.818.879.659c1.171.879 3.07.879 4.242 0 1.172-.879 1.172-2.303 0-3.182C13.536 12.219 12.768 12 12 12c-.725 0-1.45-.22-2.003-.659-1.106-.879-1.106-2.303 0-3.182s2.9-.879 4.006 0l.415.33M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});e.s(["CurrencyDollarIcon",0,o],849566)},191898,e=>{"use strict";var t=e.i(270401);let o=t.forwardRef(function({title:e,titleId:o,...i},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":o},i),e?t.createElement("title",{id:o},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 11.25v8.25a1.5 1.5 0 0 1-1.5 1.5H5.25a1.5 1.5 0 0 1-1.5-1.5v-8.25M12 4.875A2.625 2.625 0 1 0 9.375 7.5H12m0-2.625V7.5m0-2.625A2.625 2.625 0 1 1 14.625 7.5H12m0 0V21m-8.625-9.75h18c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125h-18c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z"}))});e.s(["GiftIcon",0,o],191898)},133256,e=>{"use strict";var t=e.i(270401);let o=t.forwardRef(function({title:e,titleId:o,...i},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":o},i),e?t.createElement("title",{id:o},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18v-5.25m0 0a6.01 6.01 0 0 0 1.5-.189m-1.5.189a6.01 6.01 0 0 1-1.5-.189m3.75 7.478a12.06 12.06 0 0 1-4.5 0m3.75 2.383a14.406 14.406 0 0 1-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 1 0-7.517 0c.85.493 1.509 1.333 1.509 2.316V18"}))});e.s(["LightBulbIcon",0,o],133256)},869215,e=>{"use strict";var t=e.i(270401);let o=t.forwardRef(function({title:e,titleId:o,...i},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":o},i),e?t.createElement("title",{id:o},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3"}))});e.s(["Square3Stack3DIcon",0,o],869215)},618665,e=>{"use strict";let t=(0,e.i(202913).default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["default",0,t])},939152,e=>{"use strict";var t=e.i(618665);e.s(["ShieldCheck",()=>t.default])},476809,849114,e=>{"use strict";let t={Age18Plus:"age_18plus"};e.s(["AttestationScope",0,{User:"user",Org:"org"},"AttestationType",0,t],849114);var o=e.i(185473),i=e.i(217631);let a={[t.Age18Plus]:{label:"18+ age confirmation",statement:"I confirm that I am 18 years of age or older.",organizationStatement:"Confirm that all users in this organization meet the 18+ age requirement."}};e.s(["ATTESTATION_DEFINITIONS",0,a,"partitionAttestationTypes",0,function(e){let{true:a,false:r}=(0,o.partition)([...e],e=>(0,i.isMember)(e,t));return{known:a,unknown:r}}],476809)},535316,e=>{"use strict";var t,o=e.i(217631),i=e.i(112272),a=((t={}).Programming="programming",t.Roleplay="roleplay",t.Marketing="marketing",t.MarketingSeo="marketing/seo",t.Technology="technology",t.Science="science",t.Translation="translation",t.Legal="legal",t.Finance="finance",t.Health="health",t.Trivia="trivia",t.Academia="academia",t);let r=Object.values(a).reduce((e,t)=>(e[t]="marketing/seo"===t?"SEO":(0,i.sentenceCase)(t),e),{});e.s(["UseCaseCategory",()=>a,"getUseCaseCategoryDisplayName",0,e=>"all"===e?"All":(0,o.isMember)(e,a)?r[e]:"Other"])},130206,e=>{"use strict";let t={models:{label:"Models Arena",description:"Head-to-head comparison of AI model outputs across modalities",categories:{codecategories:{label:"Code Categories",description:"Aggregated stats across all code generation categories"},"3d":{label:"3D",description:"3D content generation"},dataviz:{label:"Data Visualization",description:"Data visualization generation"},gamedev:{label:"Game Development",description:"Game development code generation"},uicomponent:{label:"UI Component",description:"UI component generation quality"},logo:{label:"Logo",description:"Logo design generation"},image:{label:"Image",description:"Image generation quality"},video:{label:"Video",description:"Video generation quality"},slides:{label:"Slides",description:"Slide/presentation generation"},videotovideo:{label:"Video to Video",description:"Video-to-video transformation quality"},graphicdesign:{label:"Graphic Design",description:"Graphic design generation quality"},imagetoimage:{label:"Image to Image",description:"Image-to-image transformation quality"},svg:{label:"SVG",description:"SVG generation quality"}}},builders:{label:"Builders Arena",description:"Comparison of AI-powered app builders and coding agents",categories:{mobile:{label:"Mobile",description:"AI builder mobile app generation"},"native-android":{label:"Native Android",description:"AI builder native Android app generation"}}},agents:{label:"Agents Arena",description:"Agentic coding workflows evaluated end-to-end",categories:{agon_webapps:{label:"Agon Web Apps",description:"Agon web application development"},mobileapps:{label:"Mobile Apps",description:"Agentic mobile application development"},nativeapps:{label:"Native Apps",description:"Agentic native application development"},fullstack:{label:"Full Stack",description:"Full stack development workflows"}}}},o=["codecategories","uicomponent","gamedev","dataviz","3d","image","video","svg"],i=t.models,a=i?o.map(e=>({type:`da-${e}`,label:`${i.categories[e]?.label??e} ELO`,daKey:`models-${e}`})):[];({...Object.fromEntries(Object.values(t).flatMap(e=>Object.entries(e.categories).map(([e,t])=>[t.label,e]))),"3D Design":"3d","Game Dev":"gamedev"}),e.s(["DA_RANKINGS_CATEGORY_TABS",0,a,"RANKINGS_CATEGORY_KEYS",0,o,"getArenaLabel",0,function(e){return t[e]?.label??e},"getCategoryLabel",0,function(e,o){return t[e]?.categories[o]?.label??o.replaceAll(/\b([a-z])/g,e=>e.toUpperCase())}])},340965,29042,e=>{"use strict";var t,o=e.i(535316);function i(e){return`min_da_elo_${e}`}function a(e){return`max_da_elo_${e}`}let r=e.i(130206).RANKINGS_CATEGORY_KEYS.flatMap(e=>[i(e),a(e)]);function n(e){return Object.fromEntries(r.map(t=>[t,e(t)]))}e.s(["buildDaEloParamRecord",0,n,"daCategoryLookupKey",0,function(e){return`models-${e}`},"daEloMaxKey",0,a,"daEloMinKey",0,i],29042);var l=e.i(839539),s=e.i(358390),d=e.i(963),c=e.i(421773),u=e.i(687421),m=e.i(179273),g=e.i(217631),p=e.i(693697),h=e.i(204067),v=e.i(796805),b=((t={}).MostPopular="most-popular",t.Newest="newest",t.Oldest="oldest",t.TopWeekly="top-weekly",t.WeeklyTokensLowToHigh="weekly-tokens-low-to-high",t.DiscountHighToLow="discount-high-to-low",t.PricingLowToHigh="pricing-low-to-high",t.PricingHighToLow="pricing-high-to-low",t.ContextHighToLow="context-high-to-low",t.ContextLowToHigh="context-low-to-high",t.ThroughputHighToLow="throughput-high-to-low",t.ThroughputLowToHigh="throughput-low-to-high",t.LatencyLowToHigh="latency-low-to-high",t.LatencyHighToLow="latency-high-to-low",t.IntelligenceHighToLow="intelligence-high-to-low",t.IntelligenceLowToHigh="intelligence-low-to-high",t.CodingHighToLow="coding-high-to-low",t.CodingLowToHigh="coding-low-to-high",t.AgenticHighToLow="agentic-high-to-low",t.AgenticLowToHigh="agentic-low-to-high",t.DAEloHighToLow="da-elo-high-to-low",t.DAEloLowToHigh="da-elo-low-to-high",t);let f=v.z.string().optional().transform(e=>e?.split(",").map(e=>e.trim())),w=f.transform(e=>e?.filter(e=>(0,g.isMember)(e,c.Parameter))),y=f.transform(e=>e?.map(e=>(0,g.findMemberCaseInsensitive)(e,d.InputModality)).filter(e=>void 0!==e)),x=f.transform(e=>e?.map(e=>(0,g.findMemberCaseInsensitive)(e,d.OutputModality)).filter(e=>void 0!==e)),M=f.transform(e=>e?.map(e=>(0,g.findMemberCaseInsensitive)(e,u.ProviderName)).filter(e=>void 0!==e)),k=f.transform(e=>e?.filter(e=>(0,g.isMember)(e,o.UseCaseCategory))),L=f.transform(e=>e?.filter(e=>(0,g.isMember)(e,s.ModelGroup))),O=v.z.object({q:v.z.string().optional(),fmt:v.z.enum(l.ModelDisplayFormat).optional().default(l.ModelDisplayFormat.Cards),arch:L,categories:k,input_modalities:y,output_modalities:x,variant:v.z.enum(m.StaticVariant).optional(),providers:M,model_authors:f,context:v.z.union([v.z.number(),v.z.string()]).optional().transform(e=>void 0!==e?Number.parseInt(e.toString(),10):void 0),pricing:v.z.union([v.z.number(),v.z.string()]).optional().transform(e=>void 0!==e?Number.parseFloat(e.toString()):void 0),min_price:v.z.union([v.z.number(),v.z.string()]).optional().transform(e=>void 0!==e?Number.parseFloat(e.toString()):void 0),max_price:v.z.union([v.z.number(),v.z.string()]).optional().transform(e=>void 0!==e?Number.parseFloat(e.toString()):void 0),supported_parameters:w,distillable:v.z.enum(["true","false"]).optional(),zdr:v.z.literal("true").optional(),hipaa:v.z.literal("true").optional(),discount:v.z.literal("true").optional(),region:v.z.enum(["eu","us"]).optional(),order:v.z.enum(b).optional(),active:v.z.literal("true").optional(),private:v.z.literal("true").optional(),min_output_price:v.z.union([v.z.number(),v.z.string()]).optional().transform(e=>void 0!==e?Number.parseFloat(e.toString()):void 0),max_output_price:v.z.union([v.z.number(),v.z.string()]).optional().transform(e=>void 0!==e?Number.parseFloat(e.toString()):void 0),min_age_days:v.z.union([v.z.number(),v.z.string()]).optional().transform(e=>void 0!==e?Number.parseInt(e.toString(),10):void 0),max_age_days:v.z.union([v.z.number(),v.z.string()]).optional().transform(e=>void 0!==e?Number.parseInt(e.toString(),10):void 0),min_intelligence_index:v.z.union([v.z.number(),v.z.string()]).optional().transform(e=>void 0!==e?Number.parseFloat(e.toString()):void 0),max_intelligence_index:v.z.union([v.z.number(),v.z.string()]).optional().transform(e=>void 0!==e?Number.parseFloat(e.toString()):void 0),min_coding_index:v.z.union([v.z.number(),v.z.string()]).optional().transform(e=>void 0!==e?Number.parseFloat(e.toString()):void 0),max_coding_index:v.z.union([v.z.number(),v.z.string()]).optional().transform(e=>void 0!==e?Number.parseFloat(e.toString()):void 0),min_agentic_index:v.z.union([v.z.number(),v.z.string()]).optional().transform(e=>void 0!==e?Number.parseFloat(e.toString()):void 0),max_agentic_index:v.z.union([v.z.number(),v.z.string()]).optional().transform(e=>void 0!==e?Number.parseFloat(e.toString()):void 0),...n(()=>v.z.union([v.z.number(),v.z.string()]).optional().transform(e=>void 0!==e?Number.parseFloat(e.toString()):void 0)),min_tool_success_rate:v.z.union([v.z.number(),v.z.string()]).optional().transform(e=>void 0!==e?Number.parseFloat(e.toString()):void 0),max_tool_success_rate:v.z.union([v.z.number(),v.z.string()]).optional().transform(e=>void 0!==e?Number.parseFloat(e.toString()):void 0)}),T=(0,p.unwrap)((0,h.parseSchema)(O,{active:"true"}));e.s(["DEFAULT_FIND_MODELS_SEARCH_PARAMS",0,T,"OrderType",()=>b,"orderTypeLabelMap",0,{"most-popular":"Most Popular",newest:"Newest",oldest:"Oldest","top-weekly":"Top Weekly","weekly-tokens-low-to-high":"Weekly Tokens: Low to High","discount-high-to-low":"Discount: High to Low","pricing-low-to-high":"Pricing: Low to High","pricing-high-to-low":"Pricing: High to Low","context-high-to-low":"Context: High to Low","context-low-to-high":"Context: Low to High","throughput-high-to-low":"Throughput: High to Low","throughput-low-to-high":"Throughput: Low to High","latency-low-to-high":"Latency: Low to High","latency-high-to-low":"Latency: High to Low","intelligence-high-to-low":"Intelligence: High to Low","intelligence-low-to-high":"Intelligence: Low to High","coding-high-to-low":"Coding: High to Low","coding-low-to-high":"Coding: Low to High","agentic-high-to-low":"Agentic: High to Low","agentic-low-to-high":"Agentic: Low to High","da-elo-high-to-low":"Design Arena ELO: High to Low","da-elo-low-to-high":"Design Arena ELO: Low to High"}],340965)},545354,e=>{"use strict";var t=e.i(222666),o=e.i(505962),i=e.i(902866),a=e.i(452473),r=e.i(970654),n=e.i(648156),l=e.i(779100),s=e.i(230953),d=e.i(660869);e.i(270401),e.s(["DeprecationBadge",0,function(e){let c,u,m,g,p,h,v,b,f=(0,o.c)(25),{deprecationDate:w,className:y}=e,x=(0,l.useLocale)();if(f[0]!==w){let e=w?.split("T")[0]??null;c=e?d.DateTime.fromISO(e,{zone:"utc"}):null;let t=d.DateTime.utc().startOf("day"),o=c?.isValid?c.startOf("day"):null;u=o?Math.floor(o.diff(t,"days").days):null,f[0]=w,f[1]=c,f[2]=u}else c=f[1],u=f[2];let M=u;e:{let e,t,o;if(!c||null===M){let e;f[3]===Symbol.for("react.memo_cache_sentinel")?(e={badgeVariant:"warning",badgeText:"",formattedDate:""},f[3]=e):e=f[3],m=e;break e}f[4]!==c||f[5]!==x?(e=(0,s.formatDate)(c.toJSDate(),{locale:x,timeZone:"UTC",preset:"long"})??"—",f[4]=c,f[5]=x,f[6]=e):e=f[6];let i=e;f[7]!==M?(t=M<=3?"negative":"warning",f[7]=M,f[8]=t):t=f[8];let a=t,r=M<0?"Deprecated":`Going away ${i}`;f[9]!==i||f[10]!==r||f[11]!==a?(o={badgeVariant:a,badgeText:r,formattedDate:i},f[9]=i,f[10]=r,f[11]=a,f[12]=o):o=f[12],m=o}let{badgeVariant:k,badgeText:L,formattedDate:O}=m;if(!w||!c||!c.isValid||null===M||M>90)return null;let T=null!==M&&O?`${M<0?"Deprecated":"Going away"} on ${O}`:"";return f[13]!==y?(g=(0,a.cn)("h-5 gap-1.5",y),f[13]=y,f[14]=g):g=f[14],f[15]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsx)(i.CalendarDaysIcon,{className:"size-3.5"}),f[15]=p):p=f[15],f[16]!==L?(h=(0,t.jsx)("span",{children:L}),f[16]=L,f[17]=h):h=f[17],f[18]!==k||f[19]!==g||f[20]!==h?(v=(0,t.jsxs)(r.Badge,{variant:k,size:"sm",className:g,children:[p,h]}),f[18]=k,f[19]=g,f[20]=h,f[21]=v):v=f[21],f[22]!==v||f[23]!==T?(b=(0,t.jsx)(n.Tooltip,{content:T,children:v}),f[22]=v,f[23]=T,f[24]=b):b=f[24],b}])},761512,e=>{"use strict";var t=e.i(963);let o={[t.OutputModality.Text]:"bg-modality-text/12",[t.OutputModality.Image]:"bg-modality-image/12",[t.OutputModality.Audio]:"bg-modality-audio/12",[t.OutputModality.Video]:"bg-modality-video/12",[t.OutputModality.Embeddings]:"bg-modality-embeddings/12",[t.OutputModality.Rerank]:"bg-modality-rerank/12",[t.OutputModality.TTS]:"bg-modality-tts/12",[t.OutputModality.Transcription]:"bg-modality-transcription/12"},i={[t.OutputModality.Text]:"text-modality-text",[t.OutputModality.Image]:"text-modality-image",[t.OutputModality.Audio]:"text-modality-audio",[t.OutputModality.Video]:"text-modality-video",[t.OutputModality.Embeddings]:"text-modality-embeddings",[t.OutputModality.Rerank]:"text-modality-rerank",[t.OutputModality.TTS]:"text-modality-tts",[t.OutputModality.Transcription]:"text-modality-transcription"},a={[t.OutputModality.Text]:"border-modality-text",[t.OutputModality.Image]:"border-modality-image",[t.OutputModality.Audio]:"border-modality-audio",[t.OutputModality.Video]:"border-modality-video",[t.OutputModality.Embeddings]:"border-modality-embeddings",[t.OutputModality.Rerank]:"border-modality-rerank",[t.OutputModality.TTS]:"border-modality-tts",[t.OutputModality.Transcription]:"border-modality-transcription"},r={[t.OutputModality.Text]:"group-hover:text-modality-text",[t.OutputModality.Image]:"group-hover:text-modality-image",[t.OutputModality.Audio]:"group-hover:text-modality-audio",[t.OutputModality.Video]:"group-hover:text-modality-video",[t.OutputModality.Embeddings]:"group-hover:text-modality-embeddings",[t.OutputModality.Rerank]:"group-hover:text-modality-rerank",[t.OutputModality.TTS]:"group-hover:text-modality-tts",[t.OutputModality.Transcription]:"group-hover:text-modality-transcription"};e.s(["MODALITY_BG",0,o,"MODALITY_ICON_BORDER",0,a,"MODALITY_ICON_COLOR",0,i,"MODALITY_ICON_GROUP_HOVER",0,r])},918662,e=>{"use strict";var t=e.i(222666),o=e.i(505962),i=e.i(452473),a=e.i(557225),r=e.i(648156),n=e.i(376294);e.s(["ModelAuthorIcon",0,function(e){let l,s,d,c,u,m,g=(0,o.c)(21),{author:p,permaslug:h,iconUri:v,isLatestAlias:b,className:f,tooltipSide:w,frame:y}=e,x=void 0===w?"top":w,M=void 0!==y&&y;if(!b){let e;return g[0]!==p||g[1]!==f||g[2]!==M||g[3]!==v||g[4]!==h?(e=(0,t.jsx)(a.AuthorIcon,{author:p,permaslug:h,iconUri:v,frame:M,className:f}),g[0]=p,g[1]=f,g[2]=M,g[3]=v,g[4]=h,g[5]=e):e=g[5],e}return g[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("span",{children:"OpenRouter latest alias — automatically resolves to the newest model in this version group."}),g[6]=l):l=g[6],g[7]!==f?(s=(0,i.cn)("relative inline-flex shrink-0",f),g[7]=f,g[8]=s):s=g[8],g[9]!==p||g[10]!==M||g[11]!==v||g[12]!==h?(d=(0,t.jsx)(a.AuthorIcon,{author:p,permaslug:h,iconUri:v,frame:M,className:"shrink-0"}),g[9]=p,g[10]=M,g[11]=v,g[12]=h,g[13]=d):d=g[13],g[14]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)("span",{role:"img","aria-label":"OpenRouter latest alias",className:(0,i.cn)("absolute -bottom-0.5 -right-0.5","flex items-center justify-center","size-3 rounded-full","bg-foreground text-background","ring-1 ring-background"),children:(0,t.jsx)(n.OpenRouterIcon,{className:"size-2"})}),g[14]=c):c=g[14],g[15]!==s||g[16]!==d?(u=(0,t.jsxs)("span",{className:s,"data-testid":"model-author-icon-latest-alias",children:[d,c]}),g[15]=s,g[16]=d,g[17]=u):u=g[17],g[18]!==u||g[19]!==x?(m=(0,t.jsx)(r.Tooltip,{side:x,content:l,children:u}),g[18]=u,g[19]=x,g[20]=m):m=g[20],m}])},251142,e=>{"use strict";var t=e.i(222666),o=e.i(505962),i=e.i(477248),a=e.i(270401);let r=a.forwardRef(function({title:e,titleId:t,...o},i){return a.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:i,"aria-labelledby":t},o),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 0 1-1.043 3.296 3.745 3.745 0 0 1-3.296 1.043A3.745 3.745 0 0 1 12 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 0 1-3.296-1.043 3.745 3.745 0 0 1-1.043-3.296A3.745 3.745 0 0 1 3 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 0 1 1.043-3.296 3.746 3.746 0 0 1 3.296-1.043A3.746 3.746 0 0 1 12 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 0 1 3.296 1.043 3.746 3.746 0 0 1 1.043 3.296A3.745 3.745 0 0 1 21 12Z"}))}),n=a.forwardRef(function({title:e,titleId:t,...o},i){return a.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:i,"aria-labelledby":t},o),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 7.5-2.25-1.313M21 7.5v2.25m0-2.25-2.25 1.313M3 7.5l2.25-1.313M3 7.5l2.25 1.313M3 7.5v2.25m9 3 2.25-1.313M12 12.75l-2.25-1.313M12 12.75V15m0 6.75 2.25-1.313M12 21.75V19.5m0 2.25-2.25-1.313m0-16.875L12 2.25l2.25 1.313M21 14.25v2.25l-2.25 1.313m-13.5 0L3 16.5v-2.25"}))});var l=e.i(849566),s=e.i(191898),d=e.i(948992),c=e.i(133256);let u=a.forwardRef(function({title:e,titleId:t,...o},i){return a.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:i,"aria-labelledby":t},o),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 10.5V6.75a4.5 4.5 0 1 1 9 0v3.75M3.75 21.75h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H3.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"}))});var m=e.i(869215),g=e.i(179273);e.s(["VariantIcon",0,function(e){let a,p=(0,o.c)(29),{className:h,variant:v}=e,b=void 0===h?"w-4 h-4":h;p[0]!==v?(a=(0,g.variantLabel)(v),p[0]=v,p[1]=a):a=p[1];let f=`${a} variant`;switch(v){case g.Variant.Nitro:{let e;return p[2]!==b||p[3]!==f?(e=(0,t.jsx)(i.BoltIcon,{title:f,className:b}),p[2]=b,p[3]=f,p[4]=e):e=p[4],e}case g.Variant.Floor:{let e;return p[5]!==b||p[6]!==f?(e=(0,t.jsx)(l.CurrencyDollarIcon,{title:f,className:b}),p[5]=b,p[6]=f,p[7]=e):e=p[7],e}case g.Variant.Online:{let e;return p[8]!==b||p[9]!==f?(e=(0,t.jsx)(d.GlobeAltIcon,{title:f,className:b}),p[8]=b,p[9]=f,p[10]=e):e=p[10],e}case g.Variant.Free:{let e;return p[11]!==b||p[12]!==f?(e=(0,t.jsx)(s.GiftIcon,{title:f,className:b}),p[11]=b,p[12]=f,p[13]=e):e=p[13],e}case g.Variant.Extended:{let e;return p[14]!==b||p[15]!==f?(e=(0,t.jsx)(n,{title:f,className:b}),p[14]=b,p[15]=f,p[16]=e):e=p[16],e}case g.Variant.Exacto:{let e;return p[17]!==b||p[18]!==f?(e=(0,t.jsx)(r,{title:f,className:b}),p[17]=b,p[18]=f,p[19]=e):e=p[19],e}case g.Variant.SelfMod:{let e;return p[20]!==b||p[21]!==f?(e=(0,t.jsx)(u,{title:f,className:b}),p[20]=b,p[21]=f,p[22]=e):e=p[22],e}case g.Variant.Thinking:{let e;return p[23]!==b||p[24]!==f?(e=(0,t.jsx)(c.LightBulbIcon,{title:f,className:b}),p[23]=b,p[24]=f,p[25]=e):e=p[25],e}case g.Variant.Batch:{let e;return p[26]!==b||p[27]!==f?(e=(0,t.jsx)(m.Square3Stack3DIcon,{title:f,className:b}),p[26]=b,p[27]=f,p[28]=e):e=p[28],e}case g.Variant.Standard:case g.Variant.All:default:return null}}],251142)},465370,e=>{"use strict";var t=e.i(222666),o=e.i(505962),i=e.i(193181),a=e.i(368884),r=e.i(452473),n=e.i(980351),l=e.i(864160),s=e.i(700050);function d(e){return e.toggleModelPin}e.s(["ModelPinButton",0,function(e){let c,u,m,g,p,h=(0,o.c)(19),{modelSlug:v,origin:b,className:f,hoverOnly:w}=e,y=(0,n.useHydrated)();h[0]!==v?(c=e=>e.pinnedModelSlugs.includes(v),h[0]=v,h[1]=c):c=h[1];let x=(0,l.useUserStore)(c),M=y&&x,k=(0,l.useUserStore)(d);h[2]!==M||h[3]!==v||h[4]!==b||h[5]!==k?(u=e=>{e.preventDefault(),e.stopPropagation(),M?(0,s.trackModelUnpin)({model:v,origin:b}):(0,s.trackModelPin)({model:v,origin:b}),k(v)},h[2]=M,h[3]=v,h[4]=b,h[5]=k,h[6]=u):u=h[6];let L=u,O=M?"Unpin model":"Pin model",T=M?"Unpin model":"Pin model",z=void 0!==w&&w&&"opacity-0 group-hover:opacity-100 focus-visible:opacity-100";return h[7]!==f||h[8]!==z?(m=(0,r.cn)("transition-opacity","text-muted-foreground hover:text-foreground","shrink-0",z,f),h[7]=f,h[8]=z,h[9]=m):m=h[9],h[10]!==M?(g=M?(0,t.jsx)(a.StarIcon,{className:"size-3.5"}):(0,t.jsx)(i.StarIcon,{className:"size-3.5"}),h[10]=M,h[11]=g):g=h[11],h[12]!==L||h[13]!==M||h[14]!==O||h[15]!==T||h[16]!==m||h[17]!==g?(p=(0,t.jsx)("button",{type:"button",onClick:L,title:O,"aria-label":T,"aria-pressed":M,className:m,children:g}),h[12]=L,h[13]=M,h[14]=O,h[15]=T,h[16]=m,h[17]=g,h[18]=p):p=h[18],p}])},779060,e=>{"use strict";var t=e.i(222666),o=e.i(505962),i=e.i(452473),a=e.i(214857),r=e.i(803979);e.s(["MobileActionBar",0,function(e){let n,l,s,d,c,u,m=(0,o.c)(15),{children:g,hiddenFrom:p}=e,h=(0,r.usePortalTarget)(),v="sm"===(void 0===p?"md":p)?"sm:hidden":"md:hidden";return h?(m[0]!==v?(n=(0,i.cn)("peer fixed inset-x-0 bottom-0 z-overlay mx-auto flex w-full gap-3 border-border/50 border-t bg-background/50 p-4 pb-[calc(1rem+env(safe-area-inset-bottom))] backdrop-blur-sm empty:hidden",v),m[0]=v,m[1]=n):n=m[1],m[2]!==g||m[3]!==n?(l=(0,t.jsx)("div",{className:n,children:g}),m[2]=g,m[3]=n,m[4]=l):l=m[4],m[5]!==v?(s=(0,i.cn)("h-[calc(4.5rem+env(safe-area-inset-bottom))] peer-empty:hidden",v),m[5]=v,m[6]=s):s=m[6],m[7]!==s?(d=(0,t.jsx)("div",{"aria-hidden":!0,className:s}),m[7]=s,m[8]=d):d=m[8],m[9]!==l||m[10]!==d?(c=(0,t.jsxs)(t.Fragment,{children:[l,d]}),m[9]=l,m[10]=d,m[11]=c):c=m[11],m[12]!==h||m[13]!==c?(u=(0,a.createPortal)(c,h),m[12]=h,m[13]=c,m[14]=u):u=m[14],u):null}])},668883,e=>{"use strict";var t=e.i(222666),o=e.i(505962),i=e.i(646013),a=e.i(452473),r=e.i(528164);e.i(742593);var n=e.i(571236),l=e.i(270401);function s(){globalThis.scrollTo({top:0,behavior:"smooth"})}e.s(["ScrollToTopButton",0,function(e){let d,c,u,m,g=(0,o.c)(8),{threshold:p,className:h}=e,v=!function(e){let t,i,a,r,n,s=(0,o.c)(8),[d,c]=(0,l.useState)(!1);s[0]!==e?(t=()=>{c(globalThis.scrollY>e)},s[0]=e,s[1]=t):t=s[1];let u=t;return s[2]!==u?(i=()=>(globalThis.addEventListener("scroll",u),()=>globalThis.removeEventListener("scroll",u)),a=[u],s[2]=u,s[3]=i,s[4]=a):(i=s[3],a=s[4]),(0,l.useEffect)(i,a),s[5]!==u?(r=()=>{u()},n=[u],s[5]=u,s[6]=r,s[7]=n):(r=s[6],n=s[7]),(0,l.useEffect)(r,n),d}(void 0===p?400:p);return g[0]!==h?(d=(0,a.cn)("hidden items-center justify-center md:flex","rounded-full",h),g[0]=h,g[1]=d):d=g[1],g[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(i.ArrowUpIcon,{className:"size-5"}),g[2]=c):c=g[2],g[3]!==d?(u=(0,t.jsx)(r.Button,{variant:"outline",className:d,size:"icon",onClick:s,children:c}),g[3]=d,g[4]=u):u=g[4],g[5]!==v||g[6]!==u?(m=(0,t.jsx)(n.Fade,{className:"fixed bottom-16 right-16",hidden:v,children:u}),g[5]=v,g[6]=u,g[7]=m):m=g[7],m}],668883)},803979,e=>{"use strict";var t=e.i(505962),o=e.i(980351);e.s(["usePortalTarget",0,function(){let e,i=(0,t.c)(2),a=(0,o.useHydrated)();return i[0]!==a?(e=a?document.querySelector("#portal-container")??document.body:null,i[0]=a,i[1]=e):e=i[1],e}])}]); //# sourceMappingURL=3t632zvm4ypde.js.map //# chunkId=01a09f3e-7ae6-7892-9c6d-2aeb941b607c