(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,9848,e=>{"use strict";var t=e.i(651681);let r={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};r.node;let n=(0,t.f)(r);e.s(["f",0,n])},62210,e=>{"use strict";var t=e.i(9848);e.s(["f",()=>t.f])},288337,e=>{"use strict";e.s(["Y",0,function(e){return e?"string"==typeof e?e:e.by??null:null},"y",0,function(e){return e&&"string"!=typeof e?e.partition??null:null}])},984569,e=>{"use strict";var t=e.i(988590),r=e.i(983739),n=e.i(647204),i=e.i(882844),o=e.i(635157);let a=o.z.object({banned:o.z.boolean().optional(),blocked:o.z.boolean().optional(),allowed:o.z.boolean().optional()}),l=o.z.record(o.z.string(),a);function s(e,t){var r,o;let a=(0,i.C)(l,e??{});return(0,n.C)(a)?(r=a.data,o=t,Object.entries(r).filter(([e,t])=>!0===t[o]).map(([e])=>e)):[]}function u(e,t){return Object.entries(e).filter(([e,r])=>!0===r[t]).map(([e])=>e)}e.s(["f",0,(e,n)=>{var i,o,a,l,d,c,f,p;let m;if(!e)return{shouldDisablePaidModelTraining:!0,shouldDisableLogging:!0,shouldDisableFreeModelTraining:!1,shouldDisableFreeModelPublication:!1,shouldEnforceZDR:!1,shouldEnforceZdrAnthropic:!1,shouldEnforceZdrOpenAI:!1,shouldEnforceZdrGoogle:!1,shouldEnforceZdrXai:!1,shouldEnforceZdrOther:!1,shouldAllowSafetyRetentionGoogle:!0,shouldAllowSafetyRetentionOther:!0,isEnterprise:!1,ignoredProviders:[],allowedProviders:[],blockedModelAuthors:[],allowedModelAuthors:[],defaultProviderSort:null,shouldLockPrivacySettings:!1};let g=e.provider_settings||{},h=u(g,"ignored"),b=u(g,"allowed"),{enable_training:v,enforce_zdr:x,enforce_zdr_anthropic:y,enforce_zdr_openai:_,enforce_zdr_google:w,enforce_zdr_xai:k,enforce_zdr_other:T,default_provider_sort:A,enable_free_model_training:j,enable_free_model_publication:S,lock_privacy_settings:N}=e,M=void 0!==n?n.default_provider_sort:A,E=(d=e,c=n,!(d.is_workspace_data_discount_logging_allowed&&c?.is_data_discount_logging_enabled)||(f=c,p=d.key?.id,!!((m=f.data_discount_logging_excluded_api_key_ids)&&void 0!==p&&m.some(e=>Number(e)===p))));return{shouldDisablePaidModelTraining:!1===v||null===v&&E,shouldDisableLogging:E,shouldDisableFreeModelTraining:!1===j,shouldDisableFreeModelPublication:!1===S,shouldEnforceZDR:x,shouldEnforceZdrAnthropic:y,shouldEnforceZdrOpenAI:_,shouldEnforceZdrGoogle:w,shouldEnforceZdrXai:k,shouldEnforceZdrOther:T,shouldAllowSafetyRetentionGoogle:(i=e.allow_safety_retention_google,o=e.is_enterprise,i??!o),shouldAllowSafetyRetentionOther:(a=e.allow_safety_retention_other,l=e.is_enterprise,a??!l),isEnterprise:e.is_enterprise,ignoredProviders:h,allowedProviders:b,blockedModelAuthors:s(e.author_settings,"blocked"),allowedModelAuthors:s(e.author_settings,"allowed"),defaultProviderSort:(0,t.q)(M,r.f)?M:null,shouldLockPrivacySettings:N}}],984569)},489323,871709,882088,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(149423),i=e.i(16043),o=e.i(199168),a=e.i(139697),l=e.i(217411),s=e.i(378318),u=e.i(112252);function d(e){let i,o=(0,r.c)(2),{isOn:a}=e;if(!a){let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(n.f,{"aria-hidden":!0}),o[0]=e):e=o[0],e}return o[1]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsxs)("span",{className:"relative inline-flex",children:[(0,t.jsx)(n.f,{"aria-hidden":!0,className:"mask-circle mask-radial-at-top-right mask-radial-from-transparent mask-radial-from-1.5 mask-radial-to-black mask-radial-to-1.5"}),(0,t.jsx)("span",{"aria-hidden":!0,"data-filters-on-dot":"",className:"absolute -right-1 -top-1 size-2 rounded-full bg-primary"})]}),o[1]=i):i=o[1],i}e.s(["f",0,function(e){let n,c,f,p,m,g,h,b,v,x,y,_,w,k,T,A,j=(0,r.c)(40),{activeCount:S,onReset:N,children:M}=e,E=(0,o.o)(),P=(0,i.useRef)(null);j[0]!==S||j[1]!==E?(n=E(S>0?"Filters, on":"Filters"),j[0]=S,j[1]=E,j[2]=n):n=j[2];let C=S>0;j[3]!==C?(c=(0,t.jsx)(d,{isOn:C}),j[3]=C,j[4]=c):c=j[4],j[5]!==E?(f=E("Filters"),j[5]=E,j[6]=f):f=j[6],j[7]!==f?(p=(0,t.jsx)("span",{className:"min-w-0 truncate",children:f}),j[7]=f,j[8]=p):p=j[8],j[9]!==n||j[10]!==c||j[11]!==p?(m=(0,t.jsx)(l.V,{render:(0,t.jsxs)(u.f,{hasChevron:!1,"aria-label":n,children:[c,p]})}),j[9]=n,j[10]=c,j[11]=p,j[12]=m):m=j[12],j[13]===Symbol.for("react.memo_cache_sentinel")?(g=()=>P.current?.querySelector('[role="radio"][data-checked]')??null,j[13]=g):g=j[13],j[14]!==E?(h=E("Filters"),j[14]=E,j[15]=h):h=j[15],j[16]!==h?(b=(0,t.jsx)(s.f,{title:h}),j[16]=h,j[17]=b):b=j[17],j[18]!==M?(v=(0,t.jsx)("div",{ref:P,className:"flex flex-col gap-7 pt-2",children:M}),j[18]=M,j[19]=v):v=j[19];let z=0===S;return j[20]!==E?(x=E("Reset"),j[20]=E,j[21]=x):x=j[21],j[22]!==N||j[23]!==z||j[24]!==x?(y=(0,t.jsx)(a.Button,{variant:"outline",size:"lg",disabled:z,onClick:N,children:x}),j[22]=N,j[23]=z,j[24]=x,j[25]=y):y=j[25],j[26]!==E?(_=E("Done"),j[26]=E,j[27]=_):_=j[27],j[28]!==_?(w=(0,t.jsx)(l.O,{render:(0,t.jsx)(a.Button,{size:"lg",children:_})}),j[28]=_,j[29]=w):w=j[29],j[30]!==y||j[31]!==w?(k=(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3 px-4 pt-5",children:[y,w]}),j[30]=y,j[31]=w,j[32]=k):k=j[32],j[33]!==v||j[34]!==k||j[35]!==b?(T=(0,t.jsx)(l.U,{side:"bottom",showCloseButton:!1,keepMounted:!1,initialFocus:g,className:"px-0 pt-3",children:(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[b,v,k]})}),j[33]=v,j[34]=k,j[35]=b,j[36]=T):T=j[36],j[37]!==T||j[38]!==m?(A=(0,t.jsxs)(l.j,{swipeDirection:"down",children:[m,T]}),j[37]=T,j[38]=m,j[39]=A):A=j[39],A}],489323);var c=e.i(136562),f=e.i(193461);e.s(["f",0,function(e){let n,o,a,l,s=(0,r.c)(17),{label:u,options:d,value:p,onValueChange:m}=e,[g,h]=(0,i.useState)(null),b=g??p;s[0]!==m||s[1]!==b?(n=e=>{e!==b&&(h(e),requestAnimationFrame(()=>{setTimeout(()=>{m(e),h(null)},0)}))},s[0]=m,s[1]=b,s[2]=n):n=s[2];let v=n;if(s[3]!==v?(o=e=>{"string"==typeof e&&v(e)},s[3]=v,s[4]=o):o=s[4],s[5]!==d||s[6]!==v||s[7]!==b){let e;s[9]!==v||s[10]!==b?(e=e=>{let r=e.value===b;return(0,t.jsxs)("div",{role:"presentation",onClick:()=>v(e.value),className:(0,c.f)("flex min-h-11 flex-1 cursor-pointer items-center justify-center rounded-md border px-3","text-button select-none transition-colors duration-quick active:bg-card-hover has-focus-visible:shadow-focus",r?"border-foreground bg-background text-foreground ring-1 ring-inset ring-foreground":"border-input bg-background text-muted-foreground"),children:[(0,t.jsx)("span",{className:"sr-only",children:(0,t.jsx)(f.a,{value:e.value,"aria-label":e.label})}),e.label]},e.value)},s[9]=v,s[10]=b,s[11]=e):e=s[11],a=d.map(e),s[5]=d,s[6]=v,s[7]=b,s[8]=a}else a=s[8];return s[12]!==u||s[13]!==b||s[14]!==o||s[15]!==a?(l=(0,t.jsx)(f.x,{"aria-label":u,value:b,onValueChange:o,className:"flex flex-wrap gap-2",children:a}),s[12]=u,s[13]=b,s[14]=o,s[15]=a,s[16]=l):l=s[16],l}],871709),e.s(["f",0,function(e){let n,i,o,a,l=(0,r.c)(10),{title:s,description:u,children:d}=e;return l[0]!==s?(n=(0,t.jsx)("h3",{className:"text-body font-medium text-foreground",children:s}),l[0]=s,l[1]=n):n=l[1],l[2]!==u?(i=void 0!==u&&(0,t.jsx)("p",{className:"text-caption text-muted-foreground",children:u}),l[2]=u,l[3]=i):i=l[3],l[4]!==n||l[5]!==i?(o=(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[n,i]}),l[4]=n,l[5]=i,l[6]=o):o=l[6],l[7]!==d||l[8]!==o?(a=(0,t.jsxs)("section",{className:"flex flex-col gap-3 px-4",children:[o,d]}),l[7]=d,l[8]=o,l[9]=a):a=l[9],a}],882088)},839352,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(288265),i=e.i(354896),o=e.i(498449),a=e.i(612927),l=e.i(16043),s=e.i(136562),u=e.i(536397),d=e.i(261499),c=e.i(624112);function f(e){let l,u,f,p,m,g,h,b,v,x,y,_=(0,r.c)(47),{label:w,selected:k,isOpen:T,onClear:A,shouldShowLabelWhenActive:j}=e,S=(0,n.f)();if(_[0]!==S||_[1]!==T||_[2]!==w||_[3]!==k||_[4]!==j){m=Symbol.for("react.early_return_sentinel");e:{let e,r,n,a,g,h,b,v=w.toLowerCase();if(!k){let e,r,n,i=S("Filter by {filterName}",{filterName:v});_[10]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.f)("inline-flex h-8 shrink-0 items-center gap-1.5 rounded-md px-2.5 text-body","border border-dashed border-border bg-transparent","text-muted-foreground hover:border-solid hover:bg-accent hover:text-foreground","outline-none focus-visible:ring-1 focus-visible:ring-ring","cursor-pointer transition-colors"),r=(0,t.jsx)(o.f,{className:"size-3.5 shrink-0"}),_[10]=e,_[11]=r):(e=_[10],r=_[11]),_[12]!==w?(n=(0,t.jsx)("span",{children:w}),_[12]=w,_[13]=n):n=_[13],m=(0,t.jsx)(c.J,{render:(0,t.jsxs)("button",{type:"button","aria-label":i,"aria-expanded":T,className:e,children:[r,n]})});break e}_[14]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.f)("inline-flex h-8 max-w-full shrink-0 items-stretch overflow-hidden rounded-md","bg-accent text-accent-foreground shadow-border","transition-colors"),_[14]=f):f=_[14];let x=S("Edit {filterName} filter",{filterName:v});_[15]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.f)("flex flex-1 items-center gap-2 px-2.5 text-body","min-w-28","outline-none focus-visible:ring-1 focus-visible:ring-ring","cursor-pointer hover:bg-accent/80"),_[15]=e):e=_[15],_[16]!==k.dotClass?(r=k.dotClass&&(0,t.jsx)("span",{"aria-hidden":"true",className:(0,s.f)("inline-block size-2 shrink-0 rounded-full",k.dotClass)}),_[16]=k.dotClass,_[17]=r):r=_[17],_[18]!==S||_[19]!==w||_[20]!==k.label||_[21]!==j?(n=j?S("{filterName}: {value}",{filterName:w,value:k.label}):k.label,_[18]=S,_[19]=w,_[20]=k.label,_[21]=j,_[22]=n):n=_[22],_[23]!==n?(a=(0,t.jsx)("span",{className:"truncate font-medium",children:n}),_[23]=n,_[24]=a):a=_[24],_[25]!==a||_[26]!==r?(g=(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 items-center gap-2",children:[r,a]}),_[25]=a,_[26]=r,_[27]=g):g=_[27];let y=T&&"-scale-y-100";_[28]!==y?(h=(0,s.f)("size-3.5 shrink-0 text-muted-foreground",d.a,y),_[28]=y,_[29]=h):h=_[29],_[30]!==h?(b=(0,t.jsx)(i.f,{className:h}),_[30]=h,_[31]=b):b=_[31],p=(0,t.jsx)(c.J,{render:(0,t.jsxs)("button",{type:"button","aria-label":x,"aria-expanded":T,className:e,children:[g,b]})}),l="button",u=S("Clear {filterName} filter",{filterName:v})}_[0]=S,_[1]=T,_[2]=w,_[3]=k,_[4]=j,_[5]=l,_[6]=u,_[7]=f,_[8]=p,_[9]=m}else l=_[5],u=_[6],f=_[7],p=_[8],m=_[9];return m!==Symbol.for("react.early_return_sentinel")?m:(_[32]!==S?(g=S("Clear filter"),_[32]=S,_[33]=g):g=_[33],_[34]!==A?(h=e=>{e.stopPropagation(),A()},_[34]=A,_[35]=h):h=_[35],_[36]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.f)("flex items-center justify-center px-2","border-l border-border/60","text-muted-foreground hover:bg-accent/80 hover:text-foreground","outline-none focus-visible:ring-1 focus-visible:ring-ring","cursor-pointer"),v=(0,t.jsx)(a.X,{className:"size-3.5"}),_[36]=b,_[37]=v):(b=_[36],v=_[37]),_[38]!==l||_[39]!==u||_[40]!==g||_[41]!==h?(x=(0,t.jsx)("button",{type:l,"aria-label":u,title:g,onClick:h,className:b,children:v}),_[38]=l,_[39]=u,_[40]=g,_[41]=h,_[42]=x):x=_[42],_[43]!==x||_[44]!==f||_[45]!==p?(y=(0,t.jsxs)("div",{className:f,children:[p,x]}),_[43]=x,_[44]=f,_[45]=p,_[46]=y):y=_[46],y)}e.s(["f",0,function(e){let n,i,o,a,d,p,m,g=(0,r.c)(24),[h,b]=(0,l.useState)(!1);g[0]!==e.options||g[1]!==e.value?(n=e.options.find(t=>t.value===e.value)??null,g[0]=e.options,g[1]=e.value,g[2]=n):n=g[2];let v=n;g[3]!==e?(i=t=>{e.onValueChange(t===e.value?null:t),b(!1)},g[3]=e,g[4]=i):i=g[4];let x=i;g[5]!==e?(o=()=>{e.onValueChange(null),b(!1)},g[5]=e,g[6]=o):o=g[6];let y=o,_=e.shouldShowLabelWhenActive??!1;if(g[7]!==y||g[8]!==h||g[9]!==e.label||g[10]!==v||g[11]!==_?(a=(0,t.jsx)(f,{label:e.label,selected:v,isOpen:h,onClear:y,shouldShowLabelWhenActive:_}),g[7]=y,g[8]=h,g[9]=e.label,g[10]=v,g[11]=_,g[12]=a):a=g[12],g[13]!==x||g[14]!==e.options){let r;g[16]!==x?(r=e=>(0,t.jsxs)(u.J,{value:e.value,onSelect:()=>x(e.value),layout:"slots",children:[e.dotClass&&(0,t.jsx)("span",{"aria-hidden":"true",className:(0,s.f)("inline-block size-2 shrink-0 rounded-full",e.dotClass)}),(0,t.jsx)("span",{className:"truncate",children:e.label})]},e.value),g[16]=x,g[17]=r):r=g[17],d=e.options.map(r),g[13]=x,g[14]=e.options,g[15]=d}else d=g[15];return g[18]!==d?(p=(0,t.jsx)(c.T,{align:"start",sideOffset:6,disableAnchorTracking:!0,className:"w-44 p-0",children:(0,t.jsx)(u.s,{children:(0,t.jsx)(u.X,{children:(0,t.jsx)(u.W,{children:d})})})}),g[18]=d,g[19]=p):p=g[19],g[20]!==h||g[21]!==a||g[22]!==p?(m=(0,t.jsxs)(c.V,{open:h,onOpenChange:b,children:[a,p]}),g[20]=h,g[21]=a,g[22]=p,g[23]=m):m=g[23],m}])},369646,e=>{"use strict";var t=e.i(782143),r=e.i(297510);e.s(["k",0,function(e,r){return(0,t.f)(r,{locale:e,preset:"provider-tokens"})??"—"},"g",0,function(e,t){let n=Number((100*t).toPrecision(12));return(0,r.I)(Math.floor(n)/100,{locale:e,preset:"native-fixed-2"})??"—"}])},142559,e=>{"use strict";e.s(["u",0,{good:"bg-positive",ok:"bg-warning",bad:"bg-negative",noData:"bg-border"},"q",0,{good:"fill-positive",ok:"fill-warning",bad:"fill-negative",noData:"fill-muted-foreground"},"x",0,{good:"text-positive-text",ok:"text-warning-text",bad:"text-negative-text",noData:"text-muted-foreground"},"B",0,function(e){return null===e||Number.isNaN(e)?"noData":e>=95?"good":e>=85?"ok":"bad"}])},514590,e=>{"use strict";var t=e.i(80864),r=e.i(647204),n=e.i(882844),i=e.i(67089),o=e.i(390129);let a=[`sk-or-v1-${"a".repeat(64)}`,`ghp_${"A".repeat(36)}`,"-----BEGIN RSA PRIVATE KEY-----\nAAAA\n-----END RSA PRIVATE KEY-----"],l="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}",s={email:{patterns:[{pattern:l}],label:"Email address",description:"Matches standard email addresses (e.g. user@example.com).",examples:["user@example.com","name+tag@domain.co"]},phone:{patterns:[{pattern:"\\b\\d{3}[-.\\s]?\\d{3}[-.\\s]?\\d{4}\\b"}],label:"Phone number",description:"Matches 10-digit US-style phone numbers with optional separators (dashes, dots, or spaces).",examples:["9143094996","914-309-4996","914.309.4996"]},ssn:{patterns:[{pattern:"\\b\\d{3}-\\d{2}-\\d{4}\\b"}],label:"Social Security number",description:"Matches US Social Security numbers in XXX-XX-XXXX format.",examples:["123-45-6789"]},"credit-card":{patterns:[{pattern:"\\b(?:\\d{4} \\d{4} \\d{4} \\d{4}|\\d{4}-\\d{4}-\\d{4}-\\d{4})\\b"}],label:"Credit card number",description:"Matches 16-digit card numbers separated by spaces or dashes (4 groups of 4 digits).",examples:["4265 5256 0839 8752","4265-5256-0839-8752"]},"ip-address":{patterns:[{pattern:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\b"}],label:"IP address",description:"Matches IPv4 addresses in dotted-quad notation.",examples:["192.168.0.1","10.0.0.1"]},secrets:{patterns:[{id:"aws-access-key-id",pattern:"\\b(?:AKIA|ASIA|ABIA|ACCA|A3T[A-Z0-9])[A-Z0-9]{16}\\b"},{id:"github-token",pattern:"\\bgh[pousr]_[A-Za-z0-9]{36,}"},{id:"github-fine-grained-pat",pattern:"\\bgithub_pat_[A-Za-z0-9_]{82,}"},{id:"gitlab-personal-access-token",pattern:"\\bglpat-[A-Za-z0-9_-]{20,}"},{id:"openai-api-key",pattern:"\\bsk-(?:proj|svcacct|admin)-[A-Za-z0-9_-]{20,200}T3BlbkFJ[A-Za-z0-9_-]{20,}"},{id:"openai-legacy-api-key",pattern:"\\bsk-[A-Za-z0-9]{20}T3BlbkFJ[A-Za-z0-9]{20,}"},{id:"anthropic-api-key",pattern:"\\bsk-ant-(?:api03|admin01)-[A-Za-z0-9_-]{93,}AA"},{id:"openrouter-api-key",pattern:"\\bsk-or-v1-[0-9a-f]{64}\\b"},{id:"google-api-key",pattern:"\\bAIza[A-Za-z0-9_-]{35,}"},{id:"google-oauth-client-secret",pattern:"\\bGOCSPX-[A-Za-z0-9_-]{28,}"},{id:"stripe-secret-key",pattern:"\\b(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{20,}"},{id:"slack-token",pattern:"\\bxox[bpos]-[0-9]{6,}-[A-Za-z0-9-]{10,}"},{id:"slack-legacy-workspace-token",pattern:"\\bxox[ar]-(?:[0-9]-)?[0-9a-zA-Z]{8,}"},{id:"slack-app-token",pattern:"\\bxapp-[0-9]-[A-Z0-9]+-[0-9]+-[a-f0-9]{16,}"},{id:"slack-webhook-url",pattern:"https://hooks\\.slack\\.com/(?:services|workflows|triggers)/[A-Za-z0-9+/]{40,}"},{id:"npm-access-token",pattern:"\\bnpm_[A-Za-z0-9]{36,}"},{id:"sendgrid-api-key",pattern:"\\bSG\\.[A-Za-z0-9_-]{20,}\\.[A-Za-z0-9_-]{40,}"},{id:"huggingface-access-token",pattern:"\\bhf_[A-Za-z0-9]{34,}"},{id:"databricks-api-token",pattern:"\\bdapi[0-9a-f]{32}(?:-[0-9])?\\b"},{id:"atlassian-api-token",pattern:"\\bATATT3[A-Za-z0-9_=-]{100,}"},{id:"doppler-token",pattern:"\\bdp\\.(?:pt|st|ct|sa|scim|audit)\\.[A-Za-z0-9]{40,}"},{id:"linear-api-key",pattern:"\\blin_api_[A-Za-z0-9]{40,}"},{id:"shopify-access-token",pattern:"\\bshp(?:at|ca|pa|ss)_[0-9a-fA-F]{32}\\b"},{id:"telegram-bot-token",pattern:"\\b[0-9]{8,10}:AA[A-Za-z0-9_-]{32,}"},{id:"age-secret-key",pattern:"\\bAGE-SECRET-KEY-1[0-9A-Z]{58}\\b"},{id:"json-web-token",pattern:"\\beyJ[A-Za-z0-9_-]{10,}\\.eyJ[A-Za-z0-9_-]{10,}\\.[A-Za-z0-9_-]{10,}"},{id:"bitcoin-wif-uncompressed",pattern:"\\b5[HJK][1-9A-HJ-NP-Za-km-z]{49}\\b"},{id:"bitcoin-wif-compressed",pattern:"\\b[KL][1-9A-HJ-NP-Za-km-z]{51}\\b"},{id:"bitcoin-extended-private-key",pattern:"\\b[xyzYZtuvUV]prv[1-9A-HJ-NP-Za-km-z]{107}\\b"},{id:"ethereum-private-key",pattern:"\\b0x[0-9a-fA-F]{64}\\b"},{id:"private-key-block",pattern:"-----BEGIN [A-Z ]{0,20}PRIVATE KEY(?: BLOCK)?-----\\s(?:-{0,4}[^-]){0,32768}?-----END [A-Z ]{0,20}PRIVATE KEY(?: BLOCK)?-----"},{id:"pypi-upload-token",pattern:"\\bpypi-AgEIcHlwaS5vcmc[A-Za-z0-9_-]{50,}"},{id:"digitalocean-token",pattern:"\\bdo[oprs]_v1_[a-f0-9]{64}\\b"}].map(({id:e,pattern:t})=>({pattern:t,detail:e})),label:"API keys and secrets",description:"Matches well-known provider-prefixed API keys and secret formats curated for low false-positive rates.",examples:a,docsUrl:"https://openrouter.ai/docs/guides/features/guardrails/secret-formats"}},u={"person-name":"PERSON",address:"LOCATION"},d=new Set(["regex-prompt-injection"]);e.s(["y",0,l,"C",0,function(e){return e.flatMap(e=>{if(d.has(e.slug)||u[e.slug])return[];let t=s[e.slug];if(!t)return[];let r=(0,o.o)(e.slug),n=e.label??r,i=n===r;return t.patterns.map(({pattern:t,detail:a})=>({pattern:t,action:e.action,label:i&&a?(0,o.R)(r,a):n}))})},"S",0,function(e){return e.flatMap(e=>{let r=u[e.slug];return r?[{entity_type:r,action:function(e){switch(e){case o.x.Block:return t.F.Block;case o.x.Flag:return t.F.Flag;case o.x.Redact:default:return t.F.Redact}}(e.action),score_threshold:.4}]:[]})},"_",0,function(e){let t=s[e];if(t)return{description:t.description,examples:t.examples,patterns:t.patterns.map(({pattern:e})=>e),...t.docsUrl?{docsUrl:t.docsUrl}:{}}},"l",0,function(e){let t=e.find(e=>"regex-prompt-injection"===e.slug);return!!t&&t.action},"g",0,function(e){let t=e.find(e=>"regex-prompt-injection"===e.slug);return t?.scan_scope??o.O.AllMessages},"m",0,function(e){return null==e?[]:Array.isArray(e)?e.map((e,t)=>{let a=(0,n.C)(o.g,e);return(0,r.C)(a)?a.data:((0,i.L)("parse_content_filter_builtins_invalid_entry",{index:t,error:a.error}),null)}).filter(e=>null!==e).map(e=>({...e,label:e.label??(0,o.o)(e.slug)})):((0,i.L)("parse_content_filter_builtins_invalid",{reason:"not_array"}),[])},"L",0,function(e){return null==e?[]:Array.isArray(e)?e.map((e,t)=>{let a=(0,n.C)(o.h,e);return(0,r.C)(a)?a.data:((0,i.L)("parse_content_filters_invalid_entry",{index:t}),null)}).filter(e=>null!==e):((0,i.L)("parse_content_filters_invalid",{reason:"not_array"}),[])}],514590)},121741,135849,720677,188178,e=>{"use strict";let t;var r,n,i,o=e.i(288337),a=e.i(497214),l=e.i(390515),s=e.i(549692),u=e.i(212933),d=e.i(880315);e.i(647204);let c="mutate",f="noop",p="skipped",m="warning",g=Symbol("StepStop");async function*h({effects:e},{input:t,effectInput:r}){let n={endpoints:t,reason:void 0,warnings:[]};for(let t of e){let e=await b(t,{state:n,effectInput:r});if("stop"===e.kind){for(let e of n.warnings)yield _(e);yield*k(e.stop);return}n=e.state}for(let e of n.warnings)yield _(e);let i=n.reason;yield void 0===i?{type:c,endpoints:n.endpoints}:{type:c,endpoints:n.endpoints,reason:i}}async function b(e,{state:t,effectInput:r}){switch(e.kind){case"remove":return v(T(await e.run(t.endpoints,r),t),(e,t)=>x(t,t.endpoints.filter((t,r)=>!e(t,r))));case"reorder":{let{within:n}=e;return v(T(await e.run(t.endpoints,r),t),(e,t)=>x(t,void 0===n?y(t.endpoints,e):function(e,{keyOf:t,groupOf:r}){let n=[...e],i=e.map((e,t)=>t);for(let{values:o}of(0,a.i)(i,t=>r(e[t]))){let r=y(o.map(t=>e[t]),(e,r)=>t(e,o[r]));o.forEach((e,t)=>{n[e]=r[t]})}return n}(t.endpoints,{keyOf:e,groupOf:e=>n(e,r)})))}case"add":return v(T(await e.run(t.endpoints,r),t),(e,t)=>x(t,t.endpoints.flatMap((t,r)=>[t,...e(t,r)])));case"patch":return v(T(await e.run(t.endpoints,r),t),(t,r)=>(function(e,{field:t,valueOf:r}){let n=e.endpoints.map(e=>{let n=r(e);return void 0===n?e:{...e,[t]:n}});return{...e,endpoints:n}})(r,{field:e.field,valueOf:t}));default:return e}}function v(e,t){return"stop"===e.kind?e:{kind:"state",state:t(e.record,e.state)}}function x(e,t){return{...e,endpoints:t}}function y(e,t){return e.map((e,r)=>({endpoint:e,key:t(e,r)})).toSorted((e,t)=>{var r,n;return r=e.key,r<(n=t.key)?-1:+(r>n)}).map(({endpoint:e})=>e)}function _(e){return"string"==typeof e?{type:m,message:e}:{type:m,message:e.message,context:e.context}}function w(e){return"object"==typeof e&&null!==e&&g in e}function*k(e){switch(e.kind){case"skip":void 0!==e.warning&&(yield _(e.warning)),yield{type:p,reason:e.reason};return;case"noop":return void(yield void 0===e.reason?{type:f}:{type:f,reason:e.reason});case"error":return void(yield{type:"error",error:e.error});default:return e}}function T(e,t){return"function"==typeof e?{kind:"record",record:e,state:t}:w(e)?{kind:"stop",stop:e}:{kind:"record",record:e.record,state:{...t,reason:e.reason??t.reason,warnings:void 0===e.warning?t.warnings:[...t.warnings,e.warning]}}}function A(e){return e.model_variant_permaslug}function j(){}function S(e){let t=E(e);return t===e.status?void 0:t}function N(e){return e===u.f.Down||e===u.f.Disabled||e===u.f.Deranked}function M(e){let t=E(e);return t===e.status?e:{...e,status:t}}function E(e){return e.is_deranked?u.f.Deranked:e.is_disabled?u.f.Disabled:e.status??u.f.Default}function P(e,t){return e.model_variant_permaslug!==t.model_variant_permaslug?((0,l.q)((0,s.n)({location:"endpointStatusSorter",rawError:Error("model_variant_permaslug mismatch"),debug:{modelA:e.model_variant_permaslug,modelB:t.model_variant_permaslug}}),{samplingRate:.01}),0):C(t.status)-C(e.status)}function C(e){switch(e){case u.f.DegradedPerformance:return u.f.Deprioritized;case u.f.Deprioritized:case u.f.Deranked:case u.f.Down:case u.f.Disabled:return e;case u.f.Default:default:return u.f.Default}}Object.assign((n=(t=function({id:e,label:t,order:r,effects:n}){let i=[...new Set(n.map(e=>e.kind))],o=n.flatMap(e=>"patch"===e.kind?[e.field]:[]),a=n.flatMap(e=>"reorder"===e.kind&&void 0!==e.within?[e.within.name]:[]);return{id:e,label:t,effects:i,...0===o.length?{}:{writes:o},...0===a.length?{}:{within:a},...void 0===r?{}:{order:r}}}(r={id:"status-sort",label:"Apply Status Sorting",effects:[{kind:"patch",field:"status",run:e=>e.length<2?j:S},function(e,t={}){return void 0===t.within?{kind:"reorder",run:e}:{kind:"reorder",run:e,within:t.within}}((e,t)=>{var r;let n,i,l;return r=function(e,t){if(e.length<2)return e;let r=e.map(M),n=null!==(0,o.Y)(t?.sort);return(0,o.y)(t?.sort)===d.f.None||n?function(e){let{true:t,false:r}=(0,a.E)(e,e=>N(e.status));return r.concat(t)}(r):function(e,{groupOf:t,sortGroup:r}){return(0,a.i)(Array.from(e),t).flatMap(({values:e})=>r(e))}(r,{groupOf:A,sortGroup:e=>e.sort(P)})}([...e],t.providerPrefs),n=new Map,r.forEach((e,t)=>{let r=n.get(e);void 0===r?n.set(e,[t]):r.push(t)}),i=new Map,l=e.map(e=>{let t=i.get(e)??0;return i.set(e,t+1),n.get(e)?.[t]??1/0}),(e,t)=>l[t]??1/0})]})).label,i=async function*(e,t){if(void 0===r.prepare)return void(yield*h(r,{input:e,effectInput:t}));let n=await r.prepare(e,t);w(n)?yield*k(n):yield*h(r,{input:e,effectInput:n})},async function*(e,t){for await(let r of i(e,t))r.type===c&&function(e,t){return e.length===t.length&&e.every((e,r)=>e===t[r])}(e,r.endpoints)?yield{type:f,stepName:n,endpoints:e,reason:r.reason??"Endpoints unchanged"}:r.type===f||r.type===p?yield{...r,stepName:n,endpoints:e}:yield{...r,stepName:n}}),{declaration:t}),e.s(["q",0,E,"n",0,N],121741);let z="admitted",I="routing-mode-excluded",R="unlisted",D=[z,I,R],Z="available",O="unavailable",B="account-ineligible",F=[Z,O,B];e.s(["b",0,function({sections:e,getEndpointId:t,exclusionsById:r}){return new Set(e.flatMap(e=>e.group!==z?e.rows.flatMap(e=>[...r?.get(t(e))??[]]):[]))},"z",0,function(e){return e.find(e=>e.group!==z)?.group},"p",0,function({rows:e,getEndpointId:t,getStatus:r,exclusionsById:n,ineligibleEndpointIds:i}){let o=e.map(e=>{let o=t(e);return{row:e,group:function({endpointId:e,exclusionsById:t}){if(null===t)return z;let r=t.get(e);return void 0===r?R:0===r.size?z:I}({endpointId:o,exclusionsById:n}),availability:function({endpointId:e,status:t,ineligibleEndpointIds:r}){return r?.has(e)?B:N(t)?O:Z}({endpointId:o,status:r(e),ineligibleEndpointIds:i})}});return D.map(e=>({group:e,rows:F.flatMap(t=>o.flatMap(r=>r.group===e&&r.availability===t?[r.row]:[]))})).filter(e=>e.rows.length>0)}],135849);var G=e.i(659350),L=e.i(663456),V=e.i(136562),q=e.i(640947);e.i(707060);var U=e.i(288265),H=e.i(16043),$=e.i(980352),W=e.i(751155),K=e.i(387086),X=e.i(919035),Y=e.i(651681);let J={name:"circle-off",size:24,node:[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.35 2.69A10 10 0 0 1 21.3 15.65",key:"1pfsoa"}],["path",{d:"M19.08 19.08A10 10 0 1 1 4.92 4.92",key:"1ablyi"}]]};J.node;let Q=(0,Y.f)(J);var ee=e.i(62210),et=e.i(654678);let er={[u.f.Down]:{label:(0,K.b)("Down"),description:(0,K.b)("Down: this endpoint is currently failing requests and is only used as a fallback."),colorClassName:"text-negative-text",Icon:ee.f},[u.f.Deranked]:{label:(0,K.b)("Deranked"),description:(0,K.b)("Deranked: this endpoint is temporarily deranked, but used as a fallback."),colorClassName:"text-warning-text",Icon:et.f},[u.f.Disabled]:{label:(0,K.b)("Disabled"),description:(0,K.b)("Disabled: this endpoint is disabled due to quality issues and will not be used for any requests."),colorClassName:"text-negative-text",Icon:Q}};function en(e){let t,r,n,i,o,a,l,s,u,d,c,f,p,m=(0,L.c)(27),{endpoint:g}=e,h=(0,U.f)(),b=(0,X.f)();if(m[0]!==g||m[1]!==h||m[2]!==b){d=Symbol.for("react.early_return_sentinel");e:{let e,c=N(e=E(g))?er[e]:void 0;if(void 0===c){d=null;break e}let{label:f,description:p,colorClassName:m,Icon:v}=c;n=W.Tooltip,u=b(p),r=W.TooltipNonInteractiveTrigger,o="img",a=h("Status: {label}",{label:b(f)}),l=-1,s="inline-flex shrink-0 cursor-help items-center",t=v,i=(0,V.f)("size-3.5 shrink-0",m)}m[0]=g,m[1]=h,m[2]=b,m[3]=t,m[4]=r,m[5]=n,m[6]=i,m[7]=o,m[8]=a,m[9]=l,m[10]=s,m[11]=u,m[12]=d}else t=m[3],r=m[4],n=m[5],i=m[6],o=m[7],a=m[8],l=m[9],s=m[10],u=m[11],d=m[12];return d!==Symbol.for("react.early_return_sentinel")?d:(m[13]!==t||m[14]!==i?(c=(0,G.jsx)(t,{className:i}),m[13]=t,m[14]=i,m[15]=c):c=m[15],m[16]!==r||m[17]!==o||m[18]!==a||m[19]!==l||m[20]!==s||m[21]!==c?(f=(0,G.jsx)(r,{role:o,"aria-label":a,tabIndex:l,className:s,children:c}),m[16]=r,m[17]=o,m[18]=a,m[19]=l,m[20]=s,m[21]=c,m[22]=f):f=m[22],m[23]!==n||m[24]!==u||m[25]!==f?(p=(0,G.jsx)(n,{content:u,children:f}),m[23]=n,m[24]=u,m[25]=f,m[26]=p):p=m[26],p)}function ei(e){e.stopPropagation()}function eo(e){let t,r,n=(0,L.c)(5),{className:i,children:o}=e;return n[0]!==i?(t=(0,V.f)("flex min-w-0 items-center",i),n[0]=i,n[1]=t):t=n[1],n[2]!==o||n[3]!==t?(r=(0,G.jsx)("div",{role:"presentation",className:t,onClick:ei,children:o}),n[2]=o,n[3]=t,n[4]=r):r=n[4],r}e.s(["f",0,eo],720677);let ea=(0,H.memo)(function(e){let t,r,n,i,o,a,l,s=(0,L.c)(44),{displayName:u,providerInfo:d,badgeEndpoint:c,onActivate:f,isMuted:p,isServiceTierHidden:m,layout:g,children:h}=e,b=void 0!==p&&p,v=void 0!==m&&m,x=void 0===g?"inline":g,y=(0,U.f)(),_=void 0!==c||void 0!==h;s[0]!==d?(t=d&&(0,G.jsx)(q.f,{frame:!0,providerName:d.name,providerIcon:d.icon,className:"size-5"}),s[0]=d,s[1]=t):t=s[1];let w=t;s[2]!==c||s[3]!==h||s[4]!==_||s[5]!==v||s[6]!==x?(r=_&&(0,G.jsxs)(eo,{className:"list"===x?"shrink-0 gap-1.5 @max-3xs:shrink @max-3xs:flex-wrap":"gap-2.5",children:[c&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)($.f,{endpoint:c,isServiceTierHidden:v}),(0,G.jsx)(en,{endpoint:c})]}),h]}),s[2]=c,s[3]=h,s[4]=_,s[5]=v,s[6]=x,s[7]=r):r=s[7];let k=r;if("list"===x){let e,t,r,n,i,o,a;s[8]!==d?(e=d&&(0,G.jsx)(q.f,{frame:!0,providerName:d.name,providerIcon:d.icon,className:"size-5 shrink-0"}),s[8]=d,s[9]=e):e=s[9],s[10]!==u||s[11]!==y?(t=y("Open {displayName} details",{displayName:u}),s[10]=u,s[11]=y,s[12]=t):t=s[12];let l=b?"text-muted-foreground":"text-foreground";return s[13]!==l?(r=(0,V.f)("truncate text-body font-medium",l),s[13]=l,s[14]=r):r=s[14],s[15]!==u||s[16]!==r?(n=(0,G.jsx)("span",{className:r,children:u}),s[15]=u,s[16]=r,s[17]=n):n=s[17],s[18]!==f||s[19]!==n||s[20]!==t?(i=(0,G.jsx)(el,{onActivate:f,label:t,children:n}),s[18]=f,s[19]=n,s[20]=t,s[21]=i):i=s[21],s[22]!==k||s[23]!==i?(o=(0,G.jsxs)("div",{className:"flex min-w-0 items-center gap-2 @max-3xs:flex-wrap",children:[i,k]}),s[22]=k,s[23]=i,s[24]=o):o=s[24],s[25]!==o||s[26]!==e?(a=(0,G.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[e,o]}),s[25]=o,s[26]=e,s[27]=a):a=s[27],a}s[28]!==u||s[29]!==y?(n=y("Open {displayName} details",{displayName:u}),s[28]=u,s[29]=y,s[30]=n):n=s[30];let T=b?"text-muted-foreground":"text-foreground";return s[31]!==T?(i=(0,V.f)("truncate text-xs",T),s[31]=T,s[32]=i):i=s[32],s[33]!==u||s[34]!==i?(o=(0,G.jsx)("span",{className:i,children:u}),s[33]=u,s[34]=i,s[35]=o):o=s[35],s[36]!==w||s[37]!==f||s[38]!==n||s[39]!==o?(a=(0,G.jsxs)(el,{onActivate:f,label:n,children:[w,o]}),s[36]=w,s[37]=f,s[38]=n,s[39]=o,s[40]=a):a=s[40],s[41]!==k||s[42]!==a?(l=(0,G.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5",children:[a,k]}),s[41]=k,s[42]=a,s[43]=l):l=s[43],l});function el(e){let t,r,n=(0,L.c)(8),{onActivate:i,label:o,children:a}=e;if(void 0===i){let e;return n[0]!==a?(e=(0,G.jsx)("div",{className:"flex min-w-0 max-w-full items-center gap-2.5",children:a}),n[0]=a,n[1]=e):e=n[1],e}return n[2]!==i?(t=e=>{e.stopPropagation(),i()},n[2]=i,n[3]=t):t=n[3],n[4]!==a||n[5]!==o||n[6]!==t?(r=(0,G.jsx)("button",{type:"button","aria-label":o,onClick:t,className:"flex min-w-0 max-w-full items-center gap-2.5",children:a}),n[4]=a,n[5]=o,n[6]=t,n[7]=r):r=n[7],r}e.s(["f",0,ea],188178)},730765,993914,e=>{"use strict";let t=new class{incr(e,t,r){}distribution(e,t,r){}histogram(e,t,r){}gauge(e,t,r){}},r=Symbol.for("openrouter.statsd");Symbol.for("openrouter.statsd.configured"),e.s(["f",0,function(){let e=globalThis[r];return e&&"object"==typeof e?e:t}],730765);var n,i,o=e.i(292429),a=e.i(831025),l=e.i(348752).f.getInstance();(n=i||(i={}))[n.INTERNAL=0]="INTERNAL",n[n.SERVER=1]="SERVER",n[n.CLIENT=2]="CLIENT",n[n.PRODUCER=3]="PRODUCER",n[n.CONSUMER=4]="CONSUMER";var s=e.i(871582),u=e.i(495644),d=e.i(116398),c=e.i(390515),f=e.i(541468);let p=null;function m(e,t,r){if("object"==typeof t&&null!==t&&"__kind"in t&&"string"==typeof t.__kind)switch(t.__kind){case"OK":return e.setStatus({code:s.f.OK}),!0;case"ERR":{let n="error"in t?t.error:void 0;if(!("function"==typeof r?r():r)){let t=(e.spanContext().traceFlags&u.f.SAMPLED)!=0;(0,c.M)(e,n,{captureStack:t})}return!0}}return!1}i.CLIENT,i.CLIENT,i.CLIENT,i.CLIENT,i.CLIENT;e.s(["f",0,function(e,t,r){let{tracer:n=(!p&&(p=d.f.getTracer("@openrouter-monorepo")),p),suppressResultErrorStatus:i=!1,...a}=r??{},u=n.startSpan(e,a);try{let e=d.f.setSpan(l.active(),u),r=l.with(e,()=>t(u));if(!(0,o.f)(r))return(0,f.f)(()=>{m(u,r,i)||u.setStatus({code:s.f.OK}),u.end()}),r;return Promise.resolve(r).then(e=>((0,f.f)(()=>{m(u,e,i)||u.setStatus({code:s.f.OK}),u.end()}),e),e=>{throw(0,c.y)(e,{isCauseKnown:!1,span:u,setSpanStatus:!0}),(0,f.f)(()=>{u.end()}),e})}catch(e){throw(0,c.y)(e,{isCauseKnown:!1,span:u,setSpanStatus:!0}),(0,f.f)(()=>{u.end()}),e}}],993914)},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])},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)},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"}])},980352,854494,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562),i=e.i(751155);e.i(707060);var o=e.i(387086),a=e.i(288265),l=e.i(919035),s=e.i(14982),u=e.i(110513),d=e.i(651681);let c={name:"shield-question-mark",size:24,node:[["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.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["shield-question"]};c.node;let f=(0,d.f)(c),p={label:(0,o.b)("Trains"),colorClassName:"text-negative-text",Icon:s.f},m={"trains-retains":{...p,description:(0,o.b)("Trains: this provider may use prompts for training and may retain prompt data.")},"trains-does-not-retain":{...p,description:(0,o.b)("Trains: this provider may use prompts for training, but does not retain prompt data.")},"trains-unreported":{...p,description:(0,o.b)("Trains: this provider may use prompts for training, and has not reported whether it retains prompt data.")},logs:{label:(0,o.b)("Logs"),description:(0,o.b)("Logs: this provider may retain prompts, but does not use them for training."),colorClassName:"text-warning-text",Icon:s.f},unreported:{label:(0,o.b)("Unreported"),description:(0,o.b)("Unreported: this provider does not train on prompts, but has not reported whether it retains prompt data."),colorClassName:"text-muted-foreground",Icon:f},private:{label:(0,o.b)("Private"),description:(0,o.b)("Private: this provider does not train on prompts and does not retain prompt data."),colorClassName:"text-positive-text",Icon:u.f},"safety-retention":{label:(0,o.b)("Safety Retention"),description:(0,o.b)("Safety Retention: may retain prompts and responses from any request, only to prevent abuse. Not used for training."),colorClassName:"text-positive-text",Icon:u.f}};function g(e){let o,s,u,d,c,f,p,g,h,b,v,x,y=(0,r.c)(26),{dataPolicy:_}=e,w=(0,a.f)(),k=(0,l.f)();if(y[0]!==_||y[1]!==w||y[2]!==k){let{label:e,description:t,colorClassName:r,Icon:a}=m[function({training:e,retainsPrompts:t,safetyRetention:r}){return void 0===t?e?"trains-unreported":"unreported":e?t?"trains-retains":"trains-does-not-retain":t?"logs":r?"safety-retention":"private"}(_)];u=i.Tooltip,h=k(t),s=i.TooltipNonInteractiveTrigger,c="img",f=w("Privacy: {label}",{label:k(e)}),p=-1,g="inline-flex shrink-0 cursor-help items-center",o=a,d=(0,n.f)("size-3.5 shrink-0",r),y[0]=_,y[1]=w,y[2]=k,y[3]=o,y[4]=s,y[5]=u,y[6]=d,y[7]=c,y[8]=f,y[9]=p,y[10]=g,y[11]=h}else o=y[3],s=y[4],u=y[5],d=y[6],c=y[7],f=y[8],p=y[9],g=y[10],h=y[11];return y[12]!==o||y[13]!==d?(b=(0,t.jsx)(o,{className:d}),y[12]=o,y[13]=d,y[14]=b):b=y[14],y[15]!==s||y[16]!==c||y[17]!==f||y[18]!==p||y[19]!==g||y[20]!==b?(v=(0,t.jsx)(s,{role:c,"aria-label":f,tabIndex:p,className:g,children:b}),y[15]=s,y[16]=c,y[17]=f,y[18]=p,y[19]=g,y[20]=b,y[21]=v):v=y[21],y[22]!==u||y[23]!==h||y[24]!==v?(x=(0,t.jsx)(u,{content:h,children:v}),y[22]=u,y[23]=h,y[24]=v,y[25]=x):x=y[25],x}var h=e.i(912147),b=e.i(972016),v=e.i(691880),x=e.i(196991),y=e.i(96659),_=e.i(901117);let w={[v.P.Us]:{label:(0,o.b)("US in-region"),description:(0,o.b)("US in-region: the provider runs this endpoint in a US data center, so prompts and completions are processed in the US."),flagSrc:"/images/flags/us.svg"},[v.P.Europe]:{label:(0,o.b)("EU in-region"),description:(0,o.b)("EU in-region: the provider runs this endpoint in a European data center (EU, UK, Switzerland, or Norway), so prompts and completions are processed in Europe."),flagSrc:"/images/flags/eu.svg"}};function k(e){let o,s,u,d,c,f,p,m,g,v=(0,r.c)(21),{endpoint:k}=e,T=(0,a.f)(),A=(0,l.f)(),j=(0,b.z)(k);if(null===j)return null;let{label:S,description:N,flagSrc:M}=w[j];return v[0]!==N||v[1]!==A?(o=A(N),v[0]=N,v[1]=A,v[2]=o):o=v[2],v[3]!==o?(s=(0,t.jsx)("span",{children:o}),v[3]=o,v[4]=s):s=v[4],v[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(h.f,{href:_.W,children:(0,t.jsx)(x.T,{children:"Learn how to use in-region routing"})}),v[5]=u):u=v[5],v[6]!==s?(d=(0,t.jsxs)("span",{className:"flex flex-col gap-1",children:[s,u]}),v[6]=s,v[7]=d):d=v[7],v[8]!==T||v[9]!==S||v[10]!==A?(c=T("Region: {label}",{label:A(S)}),v[8]=T,v[9]=S,v[10]=A,v[11]=c):c=v[11],v[12]===Symbol.for("react.memo_cache_sentinel")?(f=(0,n.f)("relative h-3 w-4 overflow-hidden","after:pointer-events-none after:absolute after:inset-0 after:ring-1 after:ring-border after:ring-inset"),v[12]=f):f=v[12],v[13]!==M?(p=(0,t.jsx)("span",{className:f,children:(0,t.jsx)(y.default,{src:M,alt:"",width:16,height:12,className:"size-full"})}),v[13]=M,v[14]=p):p=v[14],v[15]!==c||v[16]!==p?(m=(0,t.jsx)(i.TooltipNonInteractiveTrigger,{role:"img","aria-label":c,tabIndex:-1,className:"inline-flex shrink-0 cursor-help rounded-none",children:p}),v[15]=c,v[16]=p,v[17]=m):m=v[17],v[18]!==d||v[19]!==m?(g=(0,t.jsx)(i.Tooltip,{content:d,children:m}),v[18]=d,v[19]=m,v[20]=g):g=v[20],g}var T=e.i(222508),A=e.i(927099),j=e.i(480534),S=e.i(300326);let N="/docs/guides/features/service-tiers";function M(e){let n,o,a,l,s,u,d,c,f,p=(0,r.c)(17),{endpoint:m}=e;if(p[0]!==m){a=Symbol.for("react.early_return_sentinel");e:{if(void 0===(n=(0,A.v)(m))){a=null;break e}o=(0,j.N)(n)}p[0]=m,p[1]=n,p[2]=o,p[3]=a}else n=p[1],o=p[2],a=p[3];if(a!==Symbol.for("react.early_return_sentinel"))return a;let g=o;return p[4]!==n?(l=(0,t.jsx)("span",{children:(0,t.jsx)(S.f,{branch:n,priority:"Priority service tier endpoint.",fast:'Priority service tier endpoint; "Fast" is the provider\'s label for it.',flex:"Flex service tier endpoint.",ultrafast:"Ultrafast service tier endpoint.",turbo:'Priority service tier endpoint; "Turbo" is the provider\'s label for it.',highspeed:'Priority service tier endpoint; "Highspeed" is the provider\'s label for it.',prime:'Priority service tier endpoint; "Prime" is the provider\'s label for it.'})}),p[4]=n,p[5]=l):l=p[5],p[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(h.f,{href:N,children:"Learn how to use service tiers"}),p[6]=s):s=p[6],p[7]!==l?(u=(0,t.jsx)(x.T,{children:(0,t.jsxs)("span",{className:"flex flex-col gap-1",children:[l,s]})}),p[7]=l,p[8]=u):u=p[8],p[9]!==n?(d=(0,T.u)((0,j.C)(n),"cursor-help leading-none"),p[9]=n,p[10]=d):d=p[10],p[11]!==g||p[12]!==d?(c=(0,t.jsx)(i.TooltipNonInteractiveTrigger,{tabIndex:-1,className:d,children:g}),p[11]=g,p[12]=d,p[13]=c):c=p[13],p[14]!==u||p[15]!==c?(f=(0,t.jsx)(i.Tooltip,{content:u,children:c}),p[14]=u,p[15]=c,p[16]=f):f=p[16],f}e.s(["d",0,N,"E",0,M],854494),e.s(["f",0,function(e){let n,i,o,a,l=(0,r.c)(11),{endpoint:s,isServiceTierHidden:u}=e,d=void 0!==u&&u;return l[0]!==s?(n=(0,t.jsx)(k,{endpoint:s}),l[0]=s,l[1]=n):n=l[1],l[2]!==s||l[3]!==d?(i=!d&&(0,t.jsx)(M,{endpoint:s}),l[2]=s,l[3]=d,l[4]=i):i=l[4],l[5]!==s.data_policy?(o=(0,t.jsx)(g,{dataPolicy:s.data_policy}),l[5]=s.data_policy,l[6]=o):o=l[6],l[7]!==n||l[8]!==i||l[9]!==o?(a=(0,t.jsxs)(t.Fragment,{children:[n,i,o]}),l[7]=n,l[8]=i,l[9]=o,l[10]=a):a=l[10],a}],980352)},59634,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(871709),i=e.i(882088),o=e.i(522396),a=e.i(960773),l=e.i(199168),s=e.i(19773),u=e.i(682964);function d(e){return(0,t.jsx)(o.Y,{value:e,children:(0,u.W)(e)},e)}function c(e){return{value:e,label:(0,u.W)(e)}}e.s(["f",0,function(e){let f,p,m,g,h,b,v,x=(0,r.c)(35),{endpointStats:y,latencyLabel:_,shouldShowThroughputColumn:w,presentation:k}=e,T=(0,a.Q)(),A=(0,l.o)(),[j,S]=(0,s.o)(u.f,u.Y);if(!(0,u.m)(y))return null;x[0]!==A||x[1]!==_||x[2]!==w?(f=w?A("{latencyLabel} / throughput",{latencyLabel:_}):_,x[0]=A,x[1]=_,x[2]=w,x[3]=f):f=x[3];let N=f;x[4]!==T||x[5]!==k||x[6]!==S?(p=e=>{(0,u.g)(e)&&(T.capture("change_model_page_provider_filter",{filter:"percentile",value:e,..."sheet-section"===k?{source:"mobile_sheet"}:{}}),S(e===u.R?null:e))},x[4]=T,x[5]=k,x[6]=S,x[7]=p):p=x[7];let M=p,E=j??u.R;if("sheet-section"===k){let e,r,o,a,l;return x[8]!==A||x[9]!==N?(e=A("{label} percentile",{label:N}),x[8]=A,x[9]=N,x[10]=e):e=x[10],x[11]!==A||x[12]!==N?(r=A("{label} percentile",{label:N}),x[11]=A,x[12]=N,x[13]=r):r=x[13],x[14]===Symbol.for("react.memo_cache_sentinel")?(o=u.j.map(c),x[14]=o):o=x[14],x[15]!==M||x[16]!==r||x[17]!==E?(a=(0,t.jsx)(n.f,{label:r,options:o,value:E,onValueChange:M}),x[15]=M,x[16]=r,x[17]=E,x[18]=a):a=x[18],x[19]!==e||x[20]!==a?(l=(0,t.jsx)(i.f,{title:e,children:a}),x[19]=e,x[20]=a,x[21]=l):l=x[21],l}return x[22]!==N?(m=(0,t.jsx)("span",{className:"whitespace-nowrap text-overline text-muted-foreground",children:N}),x[22]=N,x[23]=m):m=x[23],x[24]!==A||x[25]!==N?(g=A("{label} percentile",{label:N}),x[24]=A,x[25]=N,x[26]=g):g=x[26],x[27]===Symbol.for("react.memo_cache_sentinel")?(h=u.j.map(d),x[27]=h):h=x[27],x[28]!==M||x[29]!==g||x[30]!==E?(b=(0,t.jsx)(o.c,{size:"sm","aria-label":g,value:E,onValueChange:M,children:h}),x[28]=M,x[29]=g,x[30]=E,x[31]=b):b=x[31],x[32]!==m||x[33]!==b?(v=(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-x-2 gap-y-1",children:[m,b]}),x[32]=m,x[33]=b,x[34]=v):v=x[34],v}])},322964,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(871709),i=e.i(882088),o=e.i(839352),a=e.i(960773),l=e.i(199168),s=e.i(988590),u=e.i(819076),d=e.i(19773);e.i(16043);var c=e.i(311778);let f="quantization",p=(0,d.E)(Object.values(u.v)).withOptions({history:"push"});function m(e){return[...new Set(e.map(e=>e.quantization))]}function g(e){return{value:e.value,label:(0,c.R)(e.value)}}function h(e){return{value:e,label:(0,c.e)(e)}}e.s(["H",0,f,"j",0,function(e){let c,b,v,x,y=(0,r.c)(34),{endpointStats:_,presentation:w}=e,k=(0,a.Q)(),T=(0,l.o)(),[A,j]=(0,d.o)(f,p);y[0]!==_?(c=m(_).map(h),y[0]=_,y[1]=c):c=y[1];let S=c;if(S.length<=1)return null;y[2]!==k||y[3]!==w||y[4]!==j?(b=e=>{let t=(0,s.q)(e,u.v)?e:null;k.capture("change_model_page_provider_filter",{filter:"quantization",value:t??"all",..."sheet-section"===w?{source:"mobile_sheet"}:{}}),j(t)},y[2]=k,y[3]=w,y[4]=j,y[5]=b):b=y[5];let N=b;if("sheet-section"===w){let e,r,o,a,l,s,u,d;y[6]!==T?(e=T("Quantization"),y[6]=T,y[7]=e):e=y[7],y[8]!==T?(r=T("Quantization"),y[8]=T,y[9]=r):r=y[9],y[10]!==T?(o=T("All"),y[10]=T,y[11]=o):o=y[11],y[12]!==o?(a={value:"all",label:o},y[12]=o,y[13]=a):a=y[13],y[14]!==S||y[15]!==a?(l=[a,...S.map(g)],y[14]=S,y[15]=a,y[16]=l):l=y[16];let c=A??"all";return y[17]!==N?(s=e=>N("all"===e?null:e),y[17]=N,y[18]=s):s=y[18],y[19]!==r||y[20]!==l||y[21]!==c||y[22]!==s?(u=(0,t.jsx)(n.f,{label:r,options:l,value:c,onValueChange:s}),y[19]=r,y[20]=l,y[21]=c,y[22]=s,y[23]=u):u=y[23],y[24]!==u||y[25]!==e?(d=(0,t.jsx)(i.f,{title:e,children:u}),y[24]=u,y[25]=e,y[26]=d):d=y[26],d}return y[27]!==T?(v=T("Quantization"),y[27]=T,y[28]=v):v=y[28],y[29]!==N||y[30]!==S||y[31]!==A||y[32]!==v?(x=(0,t.jsx)(o.f,{label:v,options:S,value:A,onValueChange:N,shouldShowLabelWhenActive:!0}),y[29]=N,y[30]=S,y[31]=A,y[32]=v,y[33]=x):x=y[33],x},"f",0,m,"r",0,p])},268176,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(871709),i=e.i(882088),o=e.i(839352),a=e.i(960773),l=e.i(199168),s=e.i(19773),u=e.i(420863),d=e.i(411032);e.s(["f",0,function(e){let c,f,p,m,g,h,b,v=(0,r.c)(38),{efforts:x,presentation:y}=e,_=(0,a.Q)(),w=(0,l.M)(),k=(0,l.o)(),[T,A]=(0,s.o)(d.Z,d.O);if(v[0]!==x||v[1]!==k||v[2]!==w||v[3]!==_||v[4]!==y||v[5]!==T||v[6]!==A){m=Symbol.for("react.early_return_sentinel");e:{let e,r,o;if(v[11]!==w?(e=e=>({value:e,label:(0,d.r)(w,e)}),v[11]=w,v[12]=e):e=v[12],p=x.map(e),v[13]!==_||v[14]!==y||v[15]!==A?(r=e=>{let t=(0,d.K)(e)?e:null;_.capture("change_model_page_provider_filter",{filter:"reasoning_effort",value:t??d.A,..."sheet-section"===y?{source:"mobile_sheet"}:{}}),A(t)},v[13]=_,v[14]=y,v[15]=A,v[16]=r):r=v[16],f=r,v[17]!==x||v[18]!==T?(o=(0,d.l)(T,x)??null,v[17]=x,v[18]=T,v[19]=o):o=v[19],c=o,"sheet-section"===y){let e,r,o,a,l;v[20]!==k?(e=k("Show latency and throughput at one effort level."),v[20]=k,v[21]=e):e=v[21],v[22]!==k?(r=k("All"),v[22]=k,v[23]=r):r=v[23],v[24]!==r?(o={value:d.A,label:r},v[24]=r,v[25]=o):o=v[25],v[26]!==f?(a=e=>f(e===d.A?null:e),v[26]=f,v[27]=a):a=v[27];let s=(0,t.jsx)(n.f,{label:d.R,options:[o,...p],value:c??d.A,onValueChange:a});v[28]!==e||v[29]!==s?(l=(0,t.jsx)(i.f,{title:d.R,description:e,children:s}),v[28]=e,v[29]=s,v[30]=l):l=v[30],m=l;break e}}v[0]=x,v[1]=k,v[2]=w,v[3]=_,v[4]=y,v[5]=T,v[6]=A,v[7]=c,v[8]=f,v[9]=p,v[10]=m}else c=v[7],f=v[8],p=v[9],m=v[10];return m!==Symbol.for("react.early_return_sentinel")?m:(v[31]!==c||v[32]!==f||v[33]!==p?(g=(0,t.jsx)(o.f,{label:d.R,options:p,value:c,onValueChange:f,shouldShowLabelWhenActive:!0}),v[31]=c,v[32]=f,v[33]=p,v[34]=g):g=v[34],v[35]===Symbol.for("react.memo_cache_sentinel")?(h=(0,t.jsx)(u.j,{label:d.R,tooltip:d.n}),v[35]=h):h=v[35],v[36]!==g?(b=(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[g,h]}),v[36]=g,v[37]=b):b=v[37],b)}])},682964,527982,e=>{"use strict";var t=e.i(427150);e.i(882844);var r=e.i(635157),n=e.i(27861);let i=["p50","p75","p90","p95","p99"];r.z.tuple([r.z.coerce.number(),r.z.coerce.number(),r.z.coerce.number(),r.z.coerce.number(),r.z.coerce.number()]);let o=r.z.object({colo:r.z.string(),request_count:r.z.coerce.number()});r.z.object({data:r.z.array(o)}).extend(n.f.shape);let a=r.z.object({date:r.z.string(),endpoint_id:r.z.string(),colo:r.z.string(),request_count:r.z.coerce.number()});r.z.object({data:r.z.array(a)}).extend(n.f.shape),e.s(["f",0,i],527982);let l=(0,e.i(19773).b)(i).withOptions({history:"replace"});function s(e){return e.toUpperCase()}e.s(["R",0,"p50","j",0,i,"f",0,"percentile","W",0,s,"b",0,function(e,t){return e?.[`${t}_latency`]??void 0},"G",0,function(e,t){return e?.[`${t}_throughput`]??void 0},"m",0,function(e){return e.some(e=>(0,t.f)(e.stats))},"g",0,function(e){return i.some(t=>t===e)},"Z",0,function(e){let r=e?.throughput_window_minutes;return(0,t.f)(e)&&(0,t.f)(r)&&r>e.window_minutes},"t",0,function(e,t){return"p50"===t?e:`${e} (${s(t)})`},"Y",0,l],682964)},20730,e=>{"use strict";e.s(["u",0,2,"A",0,function(e){let t=function(e){let t=new Set(e.map(e=>e.unit)),[r]=t;return 1===t.size&&void 0!==r?r:null}(e);if(null!==t){let r=e.map(e=>e.label).join(" / ");return""===t?r:`${r} ${t}`}return e.map(e=>""===e.unit?e.label:`${e.label} ${e.unit}`).join(" · ")}])},590975,e=>{"use strict";e.s(["z",0,5,"P",0,function(e,t=5){let r=e-t;return r<2?{visibleRowCount:e,hiddenRowCount:0}:{visibleRowCount:t,hiddenRowCount:r}}])},411032,e=>{"use strict";var t=e.i(219643),r=e.i(988590),n=e.i(381462),i=e.i(368966);e.i(707060);var o=e.i(387086),a=e.i(19773);let l=[i.E.None,i.E.Minimal,i.E.Low,i.E.Medium,i.E.High,i.E.XHigh,i.E.Max],s=(0,a.b)(l).withOptions({history:"replace"}),u={[i.E.None]:(0,o.b)("None"),[i.E.Minimal]:(0,o.b)("Minimal"),[i.E.Low]:(0,o.b)("Low"),[i.E.Medium]:(0,o.b)("Medium"),[i.E.High]:(0,o.b)("High"),[i.E.XHigh]:(0,o.b)("Extra high"),[i.E.Max]:(0,o.b)("Max")};function d(e){let r=(0,t.w)(e.reasoning_config);return r?l.filter(e=>r.includes(e)):[]}e.s(["A",0,"all","Z",0,"reasoningEffort","R",0,"Reasoning effort","n",0,"Latency and throughput (output tokens per second, reasoning tokens included) are measured per request. Filter by the reasoning effort requested to compare like with like. Slices with few requests are noisier than the blended view.","r",0,function(e,t){return e(u[t])},"x",0,d,"K",0,function(e){return(0,r.q)(e,i.E)},"O",0,s,"l",0,function(e,t){if(null!==e&&t.includes(e))return e},"L",0,function({model:e,perfWorkload:t,isPrivateView:r}){return!r&&e.supports_reasoning&&t===n.f.TextGeneration&&d(e).length>1}])},653051,707690,e=>{"use strict";var t=e.i(663456),r=e.i(960773),n=e.i(19773),i=e.i(682964),o=e.i(322964),a=e.i(411032);let l={Percentile:"percentile",ReasoningEffort:"reasoningEffort",Quantization:"quantization"};e.s(["E",0,l,"S",0,function(e,s){let u,d,c,f,p,m,g,h,b=(0,t.c)(27),v=(0,r.Q)(),[x,y]=(0,n.o)(i.f,i.Y),[_,w]=(0,n.o)(a.Z,a.O),[k,T]=(0,n.o)(o.H,o.r);b[0]!==x||b[1]!==k||b[2]!==_?(u={[l.Percentile]:x,[l.ReasoningEffort]:_,[l.Quantization]:k},b[0]=x,b[1]=k,b[2]=_,b[3]=u):u=b[3];let A=u;b[4]!==y?(d=()=>void y(null),b[4]=y,b[5]=d):d=b[5],b[6]!==w?(c=()=>void w(null),b[6]=w,b[7]=c):c=b[7],b[8]!==T?(f=()=>void T(null),b[8]=T,b[9]=f):f=b[9],b[10]!==d||b[11]!==c||b[12]!==f?(p={[l.Percentile]:d,[l.ReasoningEffort]:c,[l.Quantization]:f},b[10]=d,b[11]=c,b[12]=f,b[13]=p):p=b[13];let j=p;if(b[14]!==e||b[15]!==A){let t;b[17]!==A?(t=e=>null!==A[e],b[17]=A,b[18]=t):t=b[18],m=e.filter(t),b[14]=e,b[15]=A,b[16]=m}else m=b[16];return b[19]!==j||b[20]!==e||b[21]!==v||b[22]!==s?(g=()=>{for(let t of(v.capture("change_model_page_provider_filter",{filter:"reset",value:"all",source:"mobile_sheet",section:s}),e))j[t]()},b[19]=j,b[20]=e,b[21]=v,b[22]=s,b[23]=g):g=b[23],b[24]!==m.length||b[25]!==g?(h={activeCount:m.length,reset:g},b[24]=m.length,b[25]=g,b[26]=h):h=b[26],h}],653051),e.s(["f",0,function(e){let r,i,o=(0,t.c)(6);o[0]!==e?(r=(0,a.L)(e),o[0]=e,o[1]=r):r=o[1];let l=r,s=(0,a.x)(e.model),[u]=(0,n.o)(a.Z,a.O),d=l?(0,a.l)(u,s):void 0;return o[2]!==s||o[3]!==l||o[4]!==d?(i={showReasoningEffortSelect:l,selectableEfforts:s,reasoningEffort:d},o[2]=s,o[3]=l,o[4]=d,o[5]=i):i=o[5],i}],707690)},690128,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(195759),i=e.i(912147),o=e.i(530798),a=e.i(751155),l=e.i(960773),s=e.i(733005);e.i(707060);var u=e.i(196991),d=e.i(288265),c=e.i(862389),f=e.i(901117),p=e.i(854494);let m=`${f.W}#regional-endpoints-on-the-global-domain`,g=`${p.d}#how-routing-works`;function h(e){let o,f,p,h,b,v,x=(0,r.c)(19),{routingMode:y,exclusions:_}=e,w=(0,d.f)(),k=(0,l.Q)();if(x[0]!==w||x[1]!==k||x[2]!==y){let e,t=(0,n.x)(y);x[6]!==k||x[7]!==y?(e=e=>()=>{k.capture("click_model_page_routing_divider_docs_link",{docs:e,routing_mode:y})},x[6]=k,x[7]=y,x[8]=e):e=x[8],p=e,f="flex items-center gap-1.5 text-2xs font-medium text-muted-foreground",o=w("Not used in {mode} routing:",{mode:t}),x[0]=w,x[1]=k,x[2]=y,x[3]=o,x[4]=f,x[5]=p}else o=x[3],f=x[4],p=x[5];return x[9]!==o?(h=(0,t.jsx)("span",{children:o}),x[9]=o,x[10]=h):h=x[10],x[11]!==_||x[12]!==w||x[13]!==p?(b=_.size>0&&(0,t.jsx)(a.Tooltip,{content:(0,t.jsxs)("span",{className:"flex flex-col gap-2",children:[_.has(s.x.RegionalSurcharge)&&(0,t.jsx)(u.T,{children:(0,t.jsxs)("span",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{children:"Regional-surcharge endpoints are only used when you pin the provider or use in-region routing."}),(0,t.jsx)(i.f,{href:m,onClick:p("in_region_routing"),children:"Learn how to use in-region routing"})]})}),_.has(s.x.OptInServiceTier)&&(0,t.jsx)(u.T,{children:(0,t.jsxs)("span",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{children:"Opt-in service-tier endpoints are only used when you pin the provider or request the tier."}),(0,t.jsx)(i.f,{href:g,onClick:p("service_tiers"),children:"Learn how to use service tiers"})]})})]}),children:(0,t.jsxs)(a.TooltipNonInteractiveTrigger,{className:"inline-flex cursor-help",children:[(0,t.jsx)(c.f,{"aria-hidden":!0,className:"size-3"}),(0,t.jsx)("span",{className:"sr-only",children:w("Why these endpoints are not used")})]})}),x[11]=_,x[12]=w,x[13]=p,x[14]=b):b=x[14],x[15]!==f||x[16]!==h||x[17]!==b?(v=(0,t.jsxs)("div",{className:f,children:[h,b]}),x[15]=f,x[16]=h,x[17]=b,x[18]=v):v=x[18],v}e.s(["s",0,function(e){let n,i,a=(0,r.c)(6),{routingMode:l,columnCount:s,exclusions:u}=e;return a[0]!==u||a[1]!==l?(n=(0,t.jsx)(h,{routingMode:l,exclusions:u}),a[0]=u,a[1]=l,a[2]=n):n=a[2],a[3]!==s||a[4]!==n?(i=(0,t.jsx)(o.TableRow,{"data-testid":"routing-mode-divider",className:"border-t border-border hover:bg-transparent!",children:(0,t.jsx)(o.TableCell,{colSpan:s,children:n})}),a[3]=s,a[4]=n,a[5]=i):i=a[5],i},"Z",0,h])},559310,e=>{"use strict";var t=e.i(988590),r=e.i(691880),n=e.i(972016),i=e.i(927099),o=e.i(67089),a=e.i(730765),l=e.i(993914),s=e.i(147832),u=e.i(882844);let d=e.i(635157).z.enum(["anthropic","openai","google","xai","other"]),c={Anthropic:d.enum.anthropic,OpenAI:d.enum.openai,Google:d.enum.google,Xai:d.enum.xai,Other:d.enum.other};var f=e.i(153722);function p(e){switch((0,f.z)(e)){case"anthropic":return c.Anthropic;case"openai":return c.OpenAI;case"google":return c.Google;case"x-ai":return c.Xai;default:return c.Other}}function m(e){return{enforceZdrAnthropic:e.shouldEnforceZdrAnthropic,enforceZdrOpenAI:e.shouldEnforceZdrOpenAI,enforceZdrGoogle:e.shouldEnforceZdrGoogle,enforceZdrXai:e.shouldEnforceZdrXai,enforceZdrOther:e.shouldEnforceZdrOther}}function g(e){return{[c.Anthropic]:e.enforceZdrAnthropic,[c.OpenAI]:e.enforceZdrOpenAI,[c.Google]:e.enforceZdrGoogle,[c.Xai]:e.enforceZdrXai,[c.Other]:e.enforceZdrOther}}function h(e,t){return{google:v({accountChoice:e.shouldAllowSafetyRetentionGoogle,doesAccountEnforceZdr:e.shouldEnforceZdrGoogle,guardrails:t.map(e=>({choice:e.allow_safety_retention_google,doesEnforceZdr:!0===e.enforce_zdr_google}))}),other:v({accountChoice:e.shouldAllowSafetyRetentionOther,doesAccountEnforceZdr:e.shouldEnforceZdrOther,guardrails:t.map(e=>({choice:e.allow_safety_retention_other,doesEnforceZdr:!0===e.enforce_zdr_other}))})}}function b(e,t){return!0!==e.data_policy.retainsPrompts&&(!0!==e.data_policy.safetyRetention||(p(e.model.permaslug)===c.Google?t.google:t.other))}function v({accountChoice:e,doesAccountEnforceZdr:t,guardrails:r}){if(t)return e&&!r.some(({choice:e})=>!1===e);let n=r.filter(({doesEnforceZdr:e})=>e);return 0===n.length?e:n.every(({choice:t})=>t??e)}var x=e.i(108379);let y=x.C.Medium,_={[x.C.Low]:2,[x.C.Medium]:1,[x.C.High]:0};var w=e.i(80864),k=e.i(497214),T=e.i(390129),A=e.i(647204),j=e.i(514590);function S(e,t){let r=[...e,...t??[]],n=new Set;return r.filter(e=>{let t=`${e.pattern}:${e.action}`;return!n.has(t)&&(n.add(t),!0)})}function N(e,t){return[...new Set([...e,...t??[]])]}let M={[w.F.Flag]:0,[w.F.Redact]:1,[w.F.Block]:2};function E(e,t){return t===T.i.Block||e===T.i.Block?T.i.Block:t===T.i.Flag?T.i.Flag:e}let P={[T.O.UserOnly]:1,[T.O.AllMessages]:2},C="openrouter.guardrail.zdr.violation",z="openrouter.guardrail.data_policy.violation",I="openrouter.guardrail.provider_not_allowed",R="openrouter.guardrail.provider_ignored",D={[s.m.ZdrViolationByAccount]:{key:C,reasonTags:["source:account"]},[s.m.ZdrViolationByGuardrail]:{key:C,reasonTags:["source:guardrail"]},[s.m.FreeModelTrainingViolationByAccount]:{key:z,reasonTags:["type:training","source:account"]},[s.m.PaidModelTrainingViolationByAccount]:{key:z,reasonTags:["type:training","source:account"]},[s.m.FreeModelTrainingViolationByGuardrail]:{key:z,reasonTags:["type:training","source:guardrail"]},[s.m.PaidModelTrainingViolationByGuardrail]:{key:z,reasonTags:["type:training","source:guardrail"]},[s.m.FreeModelPublicationViolationByAccount]:{key:z,reasonTags:["type:publication","source:account"]},[s.m.FreeModelPublicationViolationByGuardrail]:{key:z,reasonTags:["type:publication","source:guardrail"]},[s.m.ProviderNotAllowedByGuardrail]:{key:I,reasonTags:["source:guardrail"]},[s.m.ProviderNotAllowedByAccount]:{key:I,reasonTags:["source:account"]},[s.m.ProviderIgnoredByGuardrail]:{key:R,reasonTags:["source:guardrail"]},[s.m.ProviderIgnoredByAccount]:{key:R,reasonTags:["source:account"]},[s.m.ModelIgnoredByGuardrail]:{key:"openrouter.guardrail.model_ignored",reasonTags:[]},[s.m.DataRegionNotAllowedByGuardrail]:{key:"openrouter.guardrail.data_region_not_allowed",reasonTags:[]},[s.m.ModelAuthorNotAllowedByAccount]:{key:"openrouter.guardrail.model_author_not_allowed",reasonTags:["source:account"]},[s.m.ModelAuthorBlockedByAccount]:{key:"openrouter.guardrail.model_author_blocked",reasonTags:["source:account"]},[s.m.ProviderRequiresWorkspaceKey]:void 0,[s.m.ByokOnlyRequiresOwnKey]:void 0,[s.m.ServiceTierDisabledByWorkspace]:void 0};function Z(e,{perProviderZdr:t,allowSafetyRetention:r}){return t[p(e.model.permaslug)]&&!b(e,r)}function O(e,t){return t&&e.is_free&&e.data_policy.training}function B(e,t){return t&&!e.is_free&&e.data_policy.training}function F(e,t){return t&&!0===e.data_policy.canPublish}let G="data-policy",L="account-provider",V="account-model-author",q="guardrail",U="workspace-byok",H={[s.m.ZdrViolationByAccount]:G,[s.m.ZdrViolationByGuardrail]:G,[s.m.FreeModelTrainingViolationByAccount]:G,[s.m.FreeModelTrainingViolationByGuardrail]:G,[s.m.PaidModelTrainingViolationByAccount]:G,[s.m.PaidModelTrainingViolationByGuardrail]:G,[s.m.FreeModelPublicationViolationByAccount]:G,[s.m.FreeModelPublicationViolationByGuardrail]:G,[s.m.ProviderNotAllowedByAccount]:L,[s.m.ProviderIgnoredByAccount]:L,[s.m.ModelAuthorNotAllowedByAccount]:V,[s.m.ModelAuthorBlockedByAccount]:V,[s.m.ProviderNotAllowedByGuardrail]:q,[s.m.ProviderIgnoredByGuardrail]:q,[s.m.ModelIgnoredByGuardrail]:q,[s.m.DataRegionNotAllowedByGuardrail]:q,[s.m.ProviderRequiresWorkspaceKey]:U,[s.m.ByokOnlyRequiresOwnKey]:U,[s.m.ServiceTierDisabledByWorkspace]:"workspace-routing"};e.s(["m",0,function({endpoints:e,userSettings:d,isUserLoggedIn:f,getGuardrailReasons:v=()=>[]}){var w;if(!f)return new Map;let{ineligible:C}=(w={endpoints:e,userSettings:d,guardrails:[]},(0,l.f)("or.guardrail.filter_endpoints",e=>{let l,d,f,v,{endpoints:C,userSettings:z,guardrails:I,defaultRowSlugsByModel:R,skipDataRegionCheck:G,doesRequestEnforceZdr:L}=w,V=performance.now();e.setAttribute("or.guardrail.input_endpoint_count",C.length),e.setAttribute("or.guardrail.guardrail_count",I.length);let q=function({userSettings:e,guardrails:n,endpoints:a,defaultRowSlugsByModel:l,skipDataRegionCheck:s=!1}){let d=function(e){if(0===e.length)return{allowedProviders:null,allowedModels:null,allowedDataRegions:null,ignoredModels:[],enforceZdr:!1,enforceZdrAnthropic:!1,enforceZdrOpenAI:!1,enforceZdrGoogle:!1,enforceZdrXai:!1,enforceZdrOther:!1,disableFreeModelPublication:!1,disableFreeModelTraining:!1,disablePaidModelTraining:!1,contentFilters:[],ignoredProviders:[],presidioFilters:[],modelArmorMode:null,modelArmorConfidenceLevel:y,lakeraMode:null,enableRegexPromptInjection:!1,regexPromptInjectionScanScope:T.O.AllMessages};let t=null,r=null,n=function(e){let t=null;for(let r of e){let e=r?.allowed_data_regions;if(null==e)continue;if(null===t){t=[...e];continue}let n=new Set(e);t=t.filter(e=>n.has(e))}return t}(e),i=[],a=!1,l=!1,s=!1,d=!1,c=!1,f=!1,p=!1,m=!1,g=!1,h=[],b=[],v=[],w=null,C=null,z=null,I=!1,R=T.O.UserOnly;for(let n of e){var D,Z,O;t=(0,k.J)(t,n.allowed_providers??null),r=(0,k.J)(r,n.allowed_models??null),i=N(i,n.ignored_models),!0===n.enforce_zdr&&(a=!0),!0===n.enforce_zdr_anthropic&&(l=!0),!0===n.enforce_zdr_openai&&(s=!0),!0===n.enforce_zdr_google&&(d=!0),!0===n.enforce_zdr_xai&&(c=!0),!0===n.enforce_zdr_other&&(f=!0),!1===n.enable_free_model_publication&&(p=!0),!1===n.enable_free_model_training&&(m=!0),!1===n.enable_paid_model_training&&(g=!0);let e=(0,j.m)(n.content_filter_builtins);h=S(h,(0,j.C)(e)),h=S(h,(0,j.L)(n.content_filters)),b=N(b,n.ignored_providers),v=function(e,t){let r=[...e,...t],n=new Map;for(let e of r){var i,o;let t=n.get(e.entity_type);if(!t){n.set(e.entity_type,e);continue}n.set(e.entity_type,{entity_type:e.entity_type,action:(i=t.action,M[o=e.action]>M[i]?o:i),score_threshold:Math.min(t.score_threshold,e.score_threshold)})}return[...n.values()]}(v,(0,j.S)(e)),w=E(w,n.model_armor_injection_protection_mode);let y=function(e){if(null==e)return null;let t=(0,u.C)(x.e,e);return(0,A.V)(t)?((0,o.L)("model_armor_invalid_confidence_level",{raw_value:e,error:String(t.error)}),null):t.data}(n.model_armor_injection_confidence_level);y&&(C=C?_[D=C]>=_[y]?D:y:y),z=E(z,n.lakera_injection_protection_mode);let B=(0,j.l)(e);if(!1!==B){I=(Z=I)===T.x.Block||B===T.x.Block?T.x.Block:Z===T.x.Redact||B===T.x.Redact?T.x.Redact:B;let t=(0,j.g)(e);R=P[O=R]>P[t]?O:t}}return{allowedProviders:t,allowedModels:r,allowedDataRegions:n,ignoredModels:i,enforceZdr:a,enforceZdrAnthropic:l,enforceZdrOpenAI:s,enforceZdrGoogle:d,enforceZdrXai:c,enforceZdrOther:f,disableFreeModelPublication:p,disableFreeModelTraining:m,disablePaidModelTraining:g,contentFilters:h,ignoredProviders:b,presidioFilters:v,modelArmorMode:w,modelArmorConfidenceLevel:C??y,lakeraMode:z,enableRegexPromptInjection:I,regexPromptInjectionScanScope:!1===I?T.O.AllMessages:R}}(n);return{defaultRowSlugsByModel:l??(0,i.y)(a),userSettings:e,guardrail:{allowedProviderSet:null===d.allowedProviders?null:new Set(d.allowedProviders),allowedModelSet:null===d.allowedModels?null:new Set(d.allowedModels),ignoredModelSet:new Set(d.ignoredModels),ignoredProviderSet:new Set(d.ignoredProviders),allowedDataRegions:s?null:function(e){if(null===e)return null;let n=e.filter(e=>(0,t.q)(e,r.P)),i=e.filter(e=>!(0,t.q)(e,r.P));return i.length>0&&(0,o.L)("guardrail_allowed_data_region_unknown",{unknown_regions:i.join(","),known_region_count:n.length}),n}(d.allowedDataRegions),disableFreeModelPublication:d.disableFreeModelPublication,disableFreeModelTraining:d.disableFreeModelTraining,disablePaidModelTraining:d.disablePaidModelTraining},accountPerProviderZdr:g(m(e)),guardrailPerProviderZdr:g(d),accountAllowSafetyRetention:h(e,[]),guardrailAllowSafetyRetention:h(e,n),account:{allowedProviderSet:0===e.allowedProviders.length?null:(0,i.H)(e.allowedProviders,a),ignoredProviderSet:(0,i.H)(e.ignoredProviders,a)}}}({userSettings:z,guardrails:I,endpoints:C,defaultRowSlugsByModel:R,skipDataRegionCheck:G}),{accountPerProviderZdr:U,guardrailPerProviderZdr:H}=q,$=[],W=[],K=new Map,X=new Map;for(let e of C){let a=function({endpoint:e,defaultRowSlugsByModel:o,userSettings:a,guardrail:{allowedProviderSet:l,allowedModelSet:u,ignoredModelSet:d,ignoredProviderSet:c,allowedDataRegions:f,disableFreeModelPublication:m,disableFreeModelTraining:g,disablePaidModelTraining:h},accountPerProviderZdr:v,guardrailPerProviderZdr:x,accountAllowSafetyRetention:y,guardrailAllowSafetyRetention:_,account:{allowedProviderSet:w,ignoredProviderSet:k}}){let T=[],A=o.get(e.model.permaslug);return null===l||(0,i.T)(e,l,A)||T.push(s.m.ProviderNotAllowedByGuardrail),null===w||(0,i.T)(e,w,A)||T.push(s.m.ProviderNotAllowedByAccount),(0,i.T)(e,c,A)&&T.push(s.m.ProviderIgnoredByGuardrail),(0,i.T)(e,k,A)&&T.push(s.m.ProviderIgnoredByAccount),T.push(...function(e,t){let{author:r}=e.model,n=[];return t.allowedModelAuthors.length>0&&!t.allowedModelAuthors.includes(r)&&n.push(s.m.ModelAuthorNotAllowedByAccount),t.blockedModelAuthors.includes(r)&&n.push(s.m.ModelAuthorBlockedByAccount),n}(e,a)),null===u||u.has(e.model_variant_permaslug)||T.push(s.m.ModelIgnoredByGuardrail),d.has(e.model_variant_permaslug)&&!T.includes(s.m.ModelIgnoredByGuardrail)&&T.push(s.m.ModelIgnoredByGuardrail),null===f||f.some(i=>(function(e,i){let o;return!!(0,n.l)(e,i)||null===e.provider_region&&!(0,n.Y)(e.provider_model_id)&&e.is_private&&((o=(0,t.q)(e.declared_region,r.P)?e.declared_region:null)===r.P.Global?null:o)===i})(e,i))||T.push(s.m.DataRegionNotAllowedByGuardrail),Z(e,{perProviderZdr:v,allowSafetyRetention:y})&&T.push(s.m.ZdrViolationByAccount),function(e,{accountPerProviderZdr:t,guardrailPerProviderZdr:r,accountAllowSafetyRetention:n,guardrailAllowSafetyRetention:i}){return!!Z(e,{perProviderZdr:r,allowSafetyRetention:i})||t[p(e.model.permaslug)]&&b(e,n)&&!b(e,i)}(e,{accountPerProviderZdr:v,guardrailPerProviderZdr:x,accountAllowSafetyRetention:y,guardrailAllowSafetyRetention:_})&&T.push(s.m.ZdrViolationByGuardrail),O(e,a.shouldDisableFreeModelTraining)&&T.push(s.m.FreeModelTrainingViolationByAccount),O(e,g)&&T.push(s.m.FreeModelTrainingViolationByGuardrail),B(e,a.shouldDisablePaidModelTraining)&&T.push(s.m.PaidModelTrainingViolationByAccount),B(e,h)&&T.push(s.m.PaidModelTrainingViolationByGuardrail),F(e,a.shouldDisableFreeModelPublication)&&T.push(s.m.FreeModelPublicationViolationByAccount),F(e,m)&&T.push(s.m.FreeModelPublicationViolationByGuardrail),T}({endpoint:e,...q});if(0===a.length)$.push({endpoint:e});else{var Y;W.push({endpoint:e,reasons:a});let t=(Y=a).includes(s.m.ZdrViolationByAccount)?"account":Y.includes(s.m.ZdrViolationByGuardrail)?"guardrail":void 0;for(let r of(void 0!==t&&function({endpoint:e,source:t,userSettings:r,guardrails:n,guardrailPerProviderZdr:i,doesRequestEnforceZdr:a}){if(!0===e.data_policy.retainsPrompts||!0!==e.data_policy.safetyRetention)return;let l=p(e.model.permaslug),s=l===c.Google,u=h(r,[]),d=s?r.shouldEnforceZdrGoogle:r.shouldEnforceZdrOther;(0,o.r)("zdr_blocked_by_safety_retention",{source:t,provider_slug:e.provider_slug,model_permaslug:e.model.permaslug,bucket:l,is_enterprise:r.isEnterprise,enforce_zdr_account:g(m(r))[l],enforce_zdr_guardrail:i[l],enforce_zdr_request:a,allow_safety_retention_account:s?u.google:u.other,allow_safety_retention_guardrail:!n.some(e=>{let t=s?e.allow_safety_retention_google:e.allow_safety_retention_other,r=s?!0===e.enforce_zdr_google:!0===e.enforce_zdr_other;return!1===t&&(d||r)})})}({endpoint:e,source:t,userSettings:z,guardrails:I,guardrailPerProviderZdr:H,doesRequestEnforceZdr:L}),a))K.set(r,(K.get(r)??0)+1),function(e,{reason:t,providerTag:r}){let n=D[t];if(void 0===n)return;let i={key:n.key,tags:[...n.reasonTags,r]},o=`${i.key}|${i.tags.join(",")}`,a=e.get(o);if(void 0!==a){a.count+=1;return}e.set(o,{...i,count:1})}(X,{reason:r,providerTag:`provider:${(0,i.u)(e.provider_slug)}`})}}let J=performance.now()-V;for(let{key:e,tags:t,count:r}of((0,a.f)().distribution("openrouter.guardrail.filter_endpoints.latency",J),X.values()))(0,a.f)().incr(e,r,[...t]);for(let t of(e.setAttribute("or.guardrail.eligible_count",$.length),e.setAttribute("or.guardrail.ineligible_count",W.length),Object.values(c)))e.setAttribute(`or.guardrail.enforce_zdr.${t}`,U[t]||H[t]);for(let[t,r]of K.entries())e.setAttribute(`or.guardrail.ineligibility.${t}`,r);let Q={eligible:$,ineligible:W,summary:(l=[...new Set($.map(e=>(0,i.u)(e.endpoint.provider_slug)))],d=[...new Set(W.map(e=>(0,i.u)(e.endpoint.provider_slug)))],f=[...new Set($.map(e=>e.endpoint.model_variant_slug))],v=[...new Set(W.map(e=>e.endpoint.model_variant_slug))],{eligibleCount:$.length,ineligibleCount:W.length,eligibleProviderSlugs:l,ineligibleProviderSlugs:d,eligibleModelSlugs:f,ineligibleModelSlugs:v})};return(0,a.f)().distribution("openrouter.guardrail.endpoints.before_filter",C.length),(0,a.f)().distribution("openrouter.guardrail.endpoints.after_filter",$.length),Q})),z=new Map(C.map(({endpoint:e,reasons:t})=>[e.id,t]));return new Map(e.flatMap(e=>{let t=[...new Set([...z.get(e.id)??[],...v(e)])];return t.length>0?[[e.id,t]]:[]}))},"F",0,function(e){return H[e]===G},"q",0,function(e){return H[e]===q},"a",0,function(e){return H[e]===L},"T",0,function(e){return H[e]===V}],559310)},289798,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(16043),i=e.i(727086);let o=(0,n.createContext)(null);function a(e){let a,l,s,u,d,c,f,p,m=(0,r.c)(21),{children:g,hasPricingSection:h}=e,b=void 0!==h&&h;m[0]===Symbol.for("react.memo_cache_sentinel")?(a={paramName:"endpoint",pinUrlHash:!0},m[0]=a):a=m[0];let{selectedId:v,isOpen:x,open:y,close:_,toggle:w,setIsOpen:k}=(0,i.f)(a),[T,A]=(0,n.useState)("providers");m[1]!==b?(l=()=>{b&&"#pricing"===window.location.hash&&A("pricing")},s=[b],m[1]=b,m[2]=l,m[3]=s):(l=m[2],s=m[3]),(0,n.useEffect)(l,s);let[j,S]=(0,n.useState)(null),[N,M]=(0,n.useState)(null);m[4]===Symbol.for("react.memo_cache_sentinel")?(u=e=>{M(t=>null!==t&&t.size===e.size&&[...e].every(e=>{let[r,n]=e;return t.get(r)===n})?t:e)},m[4]=u):u=m[4];let E=u,P=(0,n.useRef)(null);m[5]!==w?(d=(e,t)=>(A(e),w(t)),m[5]=w,m[6]=d):d=m[6];let C=d;m[7]===Symbol.for("react.memo_cache_sentinel")?(c=e=>{S(t=>null!==t&&t.length===e.length&&t.every((t,r)=>t===e[r])?t:e)},m[7]=c):c=m[7];let z=c;m[8]!==_||m[9]!==x||m[10]!==y||m[11]!==j||m[12]!==N||m[13]!==v||m[14]!==k||m[15]!==T||m[16]!==C?(f={selectedEndpointId:v,isOpen:x,source:T,open:y,toggleFrom:C,close:_,setIsOpen:k,pricingNavEndpointIds:j,pricingTableRef:P,providersDisplayNames:N,setProvidersDisplayNames:E,setPricingNavOrder:z},m[8]=_,m[9]=x,m[10]=y,m[11]=j,m[12]=N,m[13]=v,m[14]=k,m[15]=T,m[16]=C,m[17]=f):f=m[17];let I=f;return m[18]!==g||m[19]!==I?(p=(0,t.jsx)(o.Provider,{value:I,children:g}),m[18]=g,m[19]=I,m[20]=p):p=m[20],p}e.s(["h",0,a,"m",0,function(e){let i,l=(0,r.c)(4),{children:s}=e;if(null!==(0,n.useContext)(o)){let e;return l[0]!==s?(e=(0,t.jsx)(t.Fragment,{children:s}),l[0]=s,l[1]=e):e=l[1],e}return l[2]!==s?(i=(0,t.jsx)(a,{children:s}),l[2]=s,l[3]=i):i=l[3],i},"i",0,function(){let e=(0,n.useContext)(o);if(null===e)throw Error("useEndpointPane must be used within EndpointPaneProvider");return e},"P",0,function(){return(0,n.useContext)(o)}])},756805,e=>{"use strict";var t=e.i(497214);e.s(["f",0,function({providersLabels:e,routeNames:r,routeRawNames:n}){var i,o;let a,l=Object.entries(r).filter(([t])=>!e?.has(t)),s=null===e?new Map:(i=l.map(([e])=>e),o=n,a=[...i].sort().flatMap(e=>void 0===o[e]?[]:[{id:e,rawName:o[e]}]),new Map((0,t.i)(a,({rawName:e})=>e).filter(({values:e})=>e.length>1).flatMap(({key:e,values:t})=>t.map(({id:t},r)=>[t,`${e} (${r+1})`]))));return new Map([...e??[],...l.map(([e,t])=>[e,s.get(e)??n[e]??t])])}])},420863,347228,780378,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(297510),i=e.i(293747),o=e.i(215717),a=e.i(763161);function l(e,t,r){let n=(0,o.d)(e);if(n&&s(t))return(0,o.B)(n,{style:"currency",currency:"USD",minimumFractionDigits:t,maximumFractionDigits:t},r)}function s(e){return Number.isInteger(e)&&e>=0&&e<=100}var u=e.i(136562),d=e.i(328262),c=e.i(960773),f=e.i(138257),p=e.i(140691);e.i(707060);var m=e.i(196991),g=e.i(288265),h=e.i(180916),b=e.i(427150);function v(e){return w(_((0,p.I)(e)))}function x(e){return e.flatMap(e=>{if(!(0,b.f)(e))return[];let t=(0,p.I)(e).abs();return t.isFinite()&&!t.isZero()?[t]:[]})}function y(e){return e.reduce((e,t)=>Math.max(e,_(t)),0)}function _(e){return e.decimalPlaces(6).decimalPlaces()??0}function w(e){return Math.min(6,Math.max(2,e))}function k(e,t){return`${(0,i.f)((0,p.I)(t).times(1),{locale:e,preset:"model-price"})??"—"}`}function T(e){let n,i,o=(0,r.c)(6),{label:a,tooltip:l}=e,s=(0,g.f)();return o[0]!==s||o[1]!==a?(n=s("{label} explanation",{label:a}),o[0]=s,o[1]=a,o[2]=n):n=o[2],o[3]!==n||o[4]!==l?(i=(0,t.jsx)(d.InfoTooltip,{side:"right",className:"shrink-0 cursor-help","aria-label":n,children:l}),o[3]=n,o[4]=l,o[5]=i):i=o[5],i}function A(e){let n,i,o,a=(0,r.c)(8),{title:l,tooltip:s}=e;return a[0]!==l?(n=(0,t.jsx)("h3",{className:"text-sm font-medium text-muted-foreground",children:l}),a[0]=l,a[1]=n):n=a[1],a[2]!==l||a[3]!==s?(i=(0,t.jsx)(T,{label:l,tooltip:s}),a[2]=l,a[3]=s,a[4]=i):i=a[4],a[5]!==n||a[6]!==i?(o=(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[n,i]}),a[5]=n,a[6]=i,a[7]=o):o=a[7],o}e.s(["V",0,function(e){let t=x(e);if(0===t.length)return 2;let r=t.reduce((e,t)=>t.lt(e)?t:e).precision(3).e;return null===r?2:w(Math.min(2-r,y(t)))},"u",0,function(e){return w(y(x(e)))},"o",0,v],347228),e.s(["G",0,function(e){let n,i,o,d,c=(0,r.c)(17),{value:p,alignFractionDigits:m,className:g}=e,h=(0,f.useLocale)();if(c[0]!==m||c[1]!==h||c[2]!==p){let e=v(p);n=function(e,t,r=(0,a.f)(t.locale)){let{alignFractionDigits:n,fractionDigits:i}=t;if(!s(n)||n{f.capture("retry_model_page_pricing",{}),u()},s[3]=u,s[4]=f,s[5]=i):i=s[5],s[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(m.T,{children:"Retry"}),s[6]=o):o=s[6],s[7]!==i?(a=(0,t.jsx)("button",{type:"button",className:"underline underline-offset-2 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring",onClick:i,children:o}),s[7]=i,s[8]=a):a=s[8],s[9]!==n||s[10]!==a?(l=(0,t.jsxs)("p",{className:"py-8 text-center text-sm text-destructive",children:[n," ",a]}),s[9]=n,s[10]=a,s[11]=l):l=s[11],l},"a",0,A,"_",0,function(e){let n,i,o,a,l,s,u,d,c,p,m,b,v,x=(0,r.c)(35),{weightedInputPrice:y,weightedOutputPrice:_}=e,w=(0,f.useLocale)(),T=(0,g.f)();return x[0]!==T?(n=T("Weighted average"),x[0]=T,x[1]=n):n=x[1],x[2]!==T?(i=T("Observed cost paid per token, weighted by token volume: each provider contributes in proportion to the tokens it served today (UTC). Includes cache discounts and any provider discounts, so it can sit below posted prices."),x[2]=T,x[3]=i):i=x[3],x[4]!==n||x[5]!==i?(o=(0,t.jsx)(A,{title:n,tooltip:i}),x[4]=n,x[5]=i,x[6]=o):o=x[6],x[7]!==T?(a=T("Input"),x[7]=T,x[8]=a):a=x[8],x[9]!==w||x[10]!==y?(l=k(w,y),x[9]=w,x[10]=y,x[11]=l):l=x[11],x[12]!==T?(s=T("/M tokens"),x[12]=T,x[13]=s):s=x[13],x[14]!==a||x[15]!==l||x[16]!==s?(u=(0,t.jsx)(h.X,{label:a,value:l,suffix:s}),x[14]=a,x[15]=l,x[16]=s,x[17]=u):u=x[17],x[18]!==T?(d=T("Output"),x[18]=T,x[19]=d):d=x[19],x[20]!==w||x[21]!==_?(c=k(w,_),x[20]=w,x[21]=_,x[22]=c):c=x[22],x[23]!==T?(p=T("/M tokens"),x[23]=T,x[24]=p):p=x[24],x[25]!==p||x[26]!==d||x[27]!==c?(m=(0,t.jsx)(h.X,{label:d,value:c,suffix:p}),x[25]=p,x[26]=d,x[27]=c,x[28]=m):m=x[28],x[29]!==m||x[30]!==u?(b=(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[u,m]}),x[29]=m,x[30]=u,x[31]=b):b=x[31],x[32]!==b||x[33]!==o?(v=(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[o,b]}),x[32]=b,x[33]=o,x[34]=v):v=x[34],v},"k",0,k,"l",0,function(e,t){return Number.isFinite(t)?(0,n.I)(100*t,{locale:e,preset:"native-fixed-1"})??"—":"—"}],420863),e.s(["C",0,function(e){return"number"==typeof e&&e>0&&e<1?e:void 0},"J",0,function(e){return(0,p.I)(e).precision(4)},"u",0,function(e,t){if(void 0===t)return;let r=(0,p.I)(t);return r.gt((0,p.I)(e))?r:void 0}],780378)},409169,e=>{"use strict";var t=e.i(27811);e.s(["F",0,function(e,r){return(0,t.f)(r,{locale:e,fractionDigits:2,maxDigits:4})??"—"},"S",0,function(e,r){return(0,t.f)(r,{locale:e,fractionDigits:0,maxDigits:4})??"—"}])},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."),TTS_FIRST_AUDIO:(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."),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.")},i={[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 deliver the generated audio, measured from when the request is sent until the last audio byte arrives. 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.")},o={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,o,"W",0,n,"e",0,i],32799);var a=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)("First audio"),f=new Set([t.f.Embeddings,t.f.Rerank,t.f.STT,t.f.Decisions,t.f.Extractions]),p={[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},m=[[a.j.Embeddings,t.f.Embeddings],[a.j.Video,t.f.VideoGeneration],[a.j.Image,t.f.ImageGeneration],[a.j.TTS,t.f.TTS],[a.j.Transcription,t.f.STT],[a.j.Rerank,t.f.Rerank],[a.j.Decisions,t.f.Decisions]];e.s(["Q",0,function(e){return e.perfWorkload===t.f.TTS?{perfWorkload:e.perfWorkload,latencyMetric:"latency"}:null},"V",0,function(e,r){return{latencyLabel:e(d["latency_e2e"===r.latencyMetric&&r.perfWorkload!==t.f.TTS?u:s]),latencyTooltip:e(i[r.perfWorkload]),shouldShowThroughputColumn:r.perfWorkload===t.f.TextGeneration,firstAudio:r.perfWorkload===t.f.TTS?{label:e(c),tooltip:e(n.TTS_FIRST_AUDIO)}:null}},"N",0,function(e){var r;let n=(r=e).quick_start_example_type?p[r.quick_start_example_type]:function(e){for(let[t,r]of m)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||n===t.f.TTS?"latency_e2e":"latency"}},"S",0,function(e){return e===t.f.TextGeneration},"n",0,function(e){return!f.has(e)},"z",0,function(e,t){if(void 0===e||void 0===t)return e;let r=new Map(t.map(e=>[e.id,e.stats]));return e.map(e=>({...e,firstAudioStats:r.get(e.id)}))}],616384)},311778,e=>{"use strict";var t=e.i(819076);function r(e){switch(e){case t.v.Int4:return"Integer (4 bit)";case t.v.Int8:return"Integer (8 bit)";case t.v.FloatingPoint4:return"Floating point (4 bit)";case t.v.MicroscalingFloatingPoint4:return"Microscaling floating point (4 bit)";case t.v.NvidiaFloatingPoint4:return"NVIDIA floating point (4 bit)";case t.v.FloatingPoint6:return"Floating point (6 bit)";case t.v.FloatingPoint8:return"Floating point (8 bit)";case t.v.MicroscalingFloatingPoint8:return"Microscaling floating point (8 bit)";case t.v.FloatingPoint16:return"Floating point (16 bit)";case t.v.FloatingPoint32:return"Floating point (32 bit)";case t.v.BrainFloating16:return"Brain floating point (16 bit)";case t.v.Unknown:default:return"Unknown"}}e.s(["e",0,r,"R",0,function(e){return e===t.v.Unknown?r(e):e.toUpperCase()}])},159470,e=>{"use strict";var t=e.i(659350),r=e.i(663456);e.s(["f",0,function(e){let n,i,o=(0,r.c)(5),{label:a,unit:l}=e;return o[0]!==l?(n=void 0!==l&&(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)("span",{className:"text-micro font-normal text-faint",children:l})]}),o[0]=l,o[1]=n):n=o[1],o[2]!==a||o[3]!==n?(i=(0,t.jsxs)("span",{className:"whitespace-nowrap !text-[13px] font-medium",children:[a,n]}),o[2]=a,o[3]=n,o[4]=i):i=o[4],i}])},530757,e=>{"use strict";var t=e.i(142559);let r={good:void 0,ok:"text-warning-text",bad:"text-negative-text",noData:void 0};e.s(["f",0,function(e){return r[(0,t.B)(e)]}])},973173,e=>{"use strict";function t(e){return"judgedMinutes"in e&&"number"==typeof e.judgedMinutes}e.s(["f",0,function(e){let r=e.filter(t);if(r.length!==e.length)return e[0]?.uptime??null;let n=r.filter(e=>null!==e.uptime&&e.judgedMinutes>0),i=n.reduce((e,t)=>e+t.judgedMinutes,0);return 0===i?null:n.reduce((e,t)=>e+(t.uptime??0)/100*t.judgedMinutes,0)/i*100}])},916998,277582,e=>{"use strict";var t=e.i(659350),r=e.i(663456);function n(e){return"number"==typeof e&&e>0&&e<1}function i(e){return`${Math.round(100*e)}% off`}e.s(["m",0,i,"i",0,n],277582);var o=e.i(136562),a=e.i(233452);e.s(["f",0,function(e){let l,s,u,d=(0,r.c)(21),{discount:c,variant:f,className:p}=e,m=void 0===f?"prominent":f;if(!n(c))return null;if("caption"===m){let e,r,n;return d[0]!==p?(e=(0,o.f)("shrink-0 text-caption font-medium text-positive-text",p),d[0]=p,d[1]=e):e=d[1],d[2]!==c?(r=i(c),d[2]=c,d[3]=r):r=d[3],d[4]!==e||d[5]!==r?(n=(0,t.jsx)("span",{className:e,children:r}),d[4]=e,d[5]=r,d[6]=n):n=d[6],n}if("subdued"===m){let e,r,n;return d[7]!==p?(e=(0,o.f)("shrink-0 text-xs font-medium text-positive-text",p),d[7]=p,d[8]=e):e=d[8],d[9]!==c?(r=i(c),d[9]=c,d[10]=r):r=d[10],d[11]!==e||d[12]!==r?(n=(0,t.jsx)("span",{className:e,children:r}),d[11]=e,d[12]=r,d[13]=n):n=d[13],n}return d[14]!==p?(l=(0,o.f)("shrink-0",p),d[14]=p,d[15]=l):l=d[15],d[16]!==c?(s=i(c),d[16]=c,d[17]=s):s=d[17],d[18]!==l||d[19]!==s?(u=(0,t.jsx)(a.Badge,{variant:"positive",size:"sm",className:l,children:s}),d[18]=l,d[19]=s,d[20]=u):u=d[20],u}],916998)},939044,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(233452),i=e.i(751155);e.i(707060);var o=e.i(387086),a=e.i(919035);let l={Endpoint:"endpoint",Provider:"provider"},s={[l.Endpoint]:(0,o.b)("Covered by a business associate agreement: HIPAA traffic may route to this endpoint."),[l.Provider]:(0,o.b)("At least one of this provider's endpoints is covered by a business associate agreement. Check each model for HIPAA eligibility.")};e.s(["A",0,l,"X",0,function(e){let o,u,d,c=(0,r.c)(6),{isEligible:f,scope:p}=e,m=void 0===p?l.Endpoint:p,g=(0,a.f)();if(!f)return null;let h=s[m];return c[0]!==g||c[1]!==h?(o=g(h),c[0]=g,c[1]=h,c[2]=o):o=c[2],c[3]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(i.TooltipNonInteractiveTrigger,{className:"inline-flex shrink-0 cursor-help",children:(0,t.jsx)(n.Badge,{variant:"info",size:"sm",children:"HIPAA"})}),c[3]=u):u=c[3],c[4]!==o?(d=(0,t.jsx)(i.Tooltip,{side:"top",content:o,children:u}),c[4]=o,c[5]=d):d=c[5],d}])},901117,e=>{"use strict";e.s(["Q",0,"https://eu.openrouter.ai/api/v1","W",0,"/docs/guides/features/in-region-routing","i",0,"https://us.openrouter.ai/api/v1"])}]); //# sourceMappingURL=3woeh-craqchh.js.map