(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,920800,e=>{"use strict";var t=e.i(807257),r=e.i(774405),n=e.i(533124),i=e.i(480758),a=e.i(62335),o=e.i(779766),l=e.i(695568);e.s(["f",0,function(e){let{open:s=!1,onOpenChange:u,elements:d={}}=e,c=(0,r.f)(),f=null!=(0,o.G)(),m=(0,i.useRefWithInit)(()=>new l.f({open:s,transitionStatus:void 0,onOpenChange:u,referenceElement:d.reference??null,floatingElement:d.floating??null,triggerElements:new a.f,floatingId:c,syncOnly:!1,nested:f})).current;return(0,n.f)(()=>{let e={open:s,floatingId:c};void 0!==d.reference&&(e.referenceElement=d.reference,e.domReferenceElement=(0,t.m)(d.reference)?d.reference:null),void 0!==d.floating&&(e.floatingElement=d.floating),m.update(e)},[s,c,d.reference,d.floating,m]),m.context.onOpenChange=u,m.context.nested=f,m}])},587135,509208,e=>{"use strict";var t=e.i(16043),r=e.i(115370),n=e.i(700788),i=e.i(869939),a=e.i(815922),o=e.i(82153),l=e.i(533124),s=e.i(597233),u=e.i(969424);let d="data-composite-item-active";e.s(["f",0,d],509208);var c=e.i(393298),f=e.i(57140),m=e.i(93836),h=e.i(269098),g=e.i(659350);e.s(["f",0,function(e){let{render:p,className:v,style:y,refs:b=r.v,props:x=r.v,state:w=r.w,stateAttributesMapping:k,highlightedIndex:C,onHighlightedIndexChange:S,orientation:M,grid:j,loopFocus:P,onLoop:N,enableHomeAndEndKeys:$,onMapChange:E,stopEventPropagation:A=!0,rootRef:O,disabledIndices:I,modifierKeys:R,highlightItemOnHover:T=!1,tag:L="div",..._}=e,{props:z,highlightedIndex:F,onHighlightedIndexChange:V,elementsRef:Z,onMapChange:B,relayKeyboardEvent:D}=function(e){let{loopFocus:n=!0,orientation:f="both",grid:m,onLoop:h,direction:g,highlightedIndex:p,onHighlightedIndexChange:v,rootRef:y,enableHomeAndEndKeys:b=!1,stopEventPropagation:x,disabledIndices:w,modifierKeys:k=r.v}=e,[C,S]=t.useState(0),M=null!=m,j=t.useRef(null),P=(0,o.A)(j,y),N=t.useRef([]),$=t.useRef(!1),E=t.useRef(null),A=p??C,O=(0,a.f)((e,t=!1)=>{if(E.current=N.current[e]??null,(v??S)(e),t){let t=N.current[e];(0,s.l)(j.current,t,g,f)}}),I=(0,a.f)(e=>{if(0===e.size)return;if($.current){let e=N.current,t=e.indexOf(E.current);if(-1===t){let t=e[A];!t||(0,u.K)(e,A,w)?O(function(e,t){let r=-1;for(let n=0;ne?.hasAttribute(d))??null,n=r?e.get(r)?.index??-1:-1;if(-1!==n)O(n);else if((0,u.K)(t,A,w)){let e=(0,u.e)(t,{disabledIndices:w});(0,u.c)(t,e)||O(e)}(0,s.l)(j.current,r,g,f)});(0,l.f)(()=>{if(null==w||null!=p||!$.current)return;let e=N.current;if((0,u.K)(e,A,w)){let t=(0,u.e)(e,{disabledIndices:w});(0,u.c)(e,t)||O(t)}},[w,p,A,N,O]);let R=(0,a.f)((e,t,r)=>h?h(e,t,r,N):r),T=(0,a.f)(e=>{let t=e.key===s.Z||e.key===s.C;if(!s.J.has(e.key)||!b&&t||function(e,t){for(let r of s.a)if(!t.includes(r)&&e.getModifierState(r))return!0;return!1}(e,k)||!j.current)return;let r="rtl"===g,a=r?s.b:s.q,o=r?s.q:s.b,l="vertical"===f?s.e:a,d="vertical"===f?s.V:o,p=(0,c.Z)(e.nativeEvent);if(null!=p&&(0,s.X)(p)&&!(0,i.f)(p)){let t=p.selectionStart,r=p.selectionEnd,n=p.value;if(null==t||e.shiftKey||t!==r||e.key!==d&&t0)return}let v=A,y=(0,u.J)(N,w),C=(0,u._)(N,w);null!=m&&(v=m({disabledIndices:w,elementsRef:N,event:e,highlightedIndex:A,loopFocus:n,maxIndex:C,minIndex:y,onLoop:R,orientation:f,rtl:r}));let S="vertical"!==f&&e.key===a||"horizontal"!==f&&e.key===s.e,P="vertical"!==f&&e.key===o||"horizontal"!==f&&e.key===s.V;b&&(e.key===s.Z?v=y:e.key===s.C&&(v=C)),v===A&&(S||P)&&(n&&v===C&&S?(v=y,h&&(v=h(e,A,v,N))):n&&v===y&&P?(v=C,h&&(v=h(e,A,v,N))):v=(0,u.e)(N.current,{startingIndex:v,decrement:P,disabledIndices:w})),v===A||(0,u.c)(N.current,v)||(x&&e.stopPropagation(),(M||t||S||P)&&e.preventDefault(),O(v,!0),queueMicrotask(()=>{N.current[v]?.focus()}))});return{props:{ref:P,onFocus(e){let t=j.current,r=(0,c.Z)(e.nativeEvent);t&&null!=r&&(0,s.X)(r)&&r.setSelectionRange(0,r.value.length)},onKeyDown:T},highlightedIndex:A,onHighlightedIndexChange:O,elementsRef:N,onMapChange:I,relayKeyboardEvent:T}}({grid:j,loopFocus:P,onLoop:N,orientation:M,highlightedIndex:C,onHighlightedIndexChange:S,rootRef:O,stopEventPropagation:A,enableHomeAndEndKeys:$,direction:(0,h.f)(),disabledIndices:I,modifierKeys:R}),q=(0,m.a)(L,e,{state:w,ref:b,props:[z,...x,_],stateAttributesMapping:k}),U=t.useMemo(()=>({highlightedIndex:F,onHighlightedIndexChange:V,highlightItemOnHover:T,relayKeyboardEvent:D}),[F,V,T,D]);return(0,g.jsx)(f.e.Provider,{value:U,children:(0,g.jsx)(n.f,{elementsRef:Z,onMapChange:e=>{E?.(e),B(e)},children:q})})}],587135)},365235,e=>{"use strict";var t=e.i(16043);let r=t.createContext(void 0),n={disableStyleElements:!1};e.s(["f",0,function(){return t.useContext(r)??n}])},967090,e=>{"use strict";var t=e.i(533124),r=e.i(480758),n=e.i(141436);e.s(["f",0,function(e,i,a,o,l=!0,s){let{registerFieldControl:u}=(0,n.f)(),d=(0,r.useRefWithInit)(()=>Symbol());(0,t.f)(()=>{let t=d.current;l?u(t,{controlRef:e,getValue:o,id:i,name:s,value:a}):u(t,void 0)},[e,l,o,i,s,u,d,a]),(0,t.f)(()=>{let e=d.current;return()=>{u(e,void 0)}},[u,d])}])},141436,825086,e=>{"use strict";var t=e.i(107397),r=e.i(16043),n=e.i(115370);let i={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},a={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1};e.s(["q",0,a,"t",0,i,"s",0,{valid:e=>null===e?null:e?{"data-valid":""}:{"data-invalid":""}}],825086);let o={invalid:void 0,name:void 0,validityData:{state:i,errors:[],error:"",value:"",initialValue:null},setValidityData:n.x,disabled:void 0,setTouched:n.x,setDirty:n.x,setFilled:n.x,setFocused:n.x,focusOwnerRef:{current:void 0},validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:a,registerFieldControl:n.x,validation:{getValidationProps:(e,t=n.w)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:n.x,getInputControl:()=>null,commit:async()=>{},change:n.x}},l=r.createContext(o);e.s(["f",0,function(e=!0){let i=r.useContext(l);if(i.setValidityData===n.x&&!e)throw Error((0,t.f)(28));return i}],141436)},176322,e=>{"use strict";var t=e.i(533124),r=e.i(815922),n=e.i(141436);e.s(["f",0,function(e,i,a){let{setFocused:o,focusOwnerRef:l}=(0,n.f)(),s=(0,r.f)(t=>{(t?e:l.current!==s)||(l.current=t&&s,a?.(t),o(t))});return(0,t.f)(()=>{let e=i.current,t=e?.getRootNode();return t?.activeElement===e&&s(!0),()=>s(!1)},[e,i,s]),s}])},621441,e=>{"use strict";var t=e.i(16043),r=e.i(115370);let n=t.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:r.x,validationMode:"onSubmit",submitCountRef:{current:0}});e.s(["f",0,function(){return t.useContext(n)}])},76129,e=>{"use strict";var t=e.i(16043),r=e.i(115370);let n=t.createContext({controlId:void 0,registerControlId:r.x,resetControlId:r.x,labelId:void 0,setLabelId:r.x,messageIds:[],setMessageIds:r.x,getDescriptionProps:e=>e});e.s(["f",0,function(){return t.useContext(n)}])},599096,e=>{"use strict";var t=e.i(16043),r=e.i(533124),n=e.i(811673);e.s(["f",0,function(e,i,a,o=!0,l,s){let[u,d]=t.useState(),c=(0,n.f)(l?`${l}-label`:void 0),f=!!s?.trim(),m=f?void 0:i,h=e??m??u;return(0,r.f)(()=>{let t=e||i||f||!o?void 0:function(e,t){let r=function(e){if(!e)return;let t=e.parentElement;if(t&&"LABEL"===t.tagName)return t;let r=e.id;if(r){let t=e.nextElementSibling;if(t&&t.htmlFor===r)return t}let n=e.labels;return n&&n[0]}(e);if(r)return!r.id&&t&&(r.id=t),r.id||void 0}(a.current,c);u!==t&&d(t)}),h}])},461430,e=>{"use strict";var t=e.i(16043),r=e.i(533124),n=e.i(815922),i=e.i(480758),a=e.i(115370),o=e.i(811673),l=e.i(76129);e.s(["f",0,function(e={}){let{id:s,enabled:u=!0}=e,{controlId:d,registerControlId:c,resetControlId:f}=(0,l.f)(),m=(0,o.f)(),h=(0,i.useRefWithInit)(()=>Symbol()),g=t.useRef(!1),p=t.useRef(!1),v=(0,n.f)(()=>{g.current&&c!==a.x&&(g.current=!1,c(h.current,void 0))});return(0,r.f)(()=>{let e;if(!u||c===a.x)return void v();if(void 0!==s)p.current=!0,e=s;else{if(!p.current)return void f();e=m}void 0===e?v():(g.current=!0,c(h.current,e))},[s,u,c,f,m,h,v]),(0,r.f)(()=>v,[v]),(u?d:void 0)??s??m}])},365041,e=>{"use strict";var t=e.i(582247),r=e.i(807257);e.s(["f",0,function(e){let n=(0,r.X)(e),i=parseFloat(n.width)||0,a=parseFloat(n.height)||0,o=(0,r.E)(e),l=o?e.offsetWidth:i,s=o?e.offsetHeight:a;return((0,t.H)(i)!==l||(0,t.H)(a)!==s)&&(i=l,a=s),{width:i,height:a}}])},432230,e=>{"use strict";var t=e.i(788968);e.s(["S",0,1,"j",0,function(e,t){return Math.max(0,e-t)},"k",0,function(e,r){if(r<=0)return 0;let n=(0,t.f)(e,0,r),i=r-n,a=n<=1,o=i<=1;return a&&o?n<=i?0:r:a?0:o?r:n}])},383539,e=>{"use strict";var t=e.i(659350);let r="base-ui-disable-scrollbar";e.s(["f",0,{className:r,getElement:e=>(0,t.jsx)("style",{nonce:e,href:r,precedence:"base-ui:low",children:`.${r}{scrollbar-width:none}.${r}::-webkit-scrollbar{display:none}`})}])},788968,e=>{"use strict";e.s(["f",0,function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}])},869939,e=>{"use strict";e.s(["f",0,function(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}])},359903,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))});e.s(["f",0,r],359903)},214051,e=>{"use strict";var t=e.i(16043);let r=t.forwardRef(function({title:e,titleId:r,...n},i){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:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))});e.s(["f",0,r],214051)},371244,e=>{"use strict";var t=e.i(651681);let r={name:"book-open",size:24,node:[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],371244)},924125,e=>{"use strict";var t=e.i(651681);let r={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],924125)},914544,758767,e=>{"use strict";var t=e.i(651681);let r={name:"sliders-horizontal",size:24,node:[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n],758767),e.s(["f",0,n],914544)},6949,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={bindSnapshot:function(){return d},createAsyncLocalStorage:function(){return s},createSnapshot:function(){return c},getOrCreateGlobalAsyncLocalStorage:function(){return u}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class o{disable(){throw a}getStore(){}run(){throw a}exit(){throw a}enterWith(){throw a}static bind(e){return e}}let l="u">typeof globalThis&&globalThis.AsyncLocalStorage;function s(){return l?new l:new o}function u(e){let t=Symbol.for(`@next/${e}@16.4.5`),r=globalThis;return r[t]??=s()}function d(e){return l?l.bind(e):o.bind(e)}function c(){return l?l.snapshot():function(e,...t){return e(...t)}}},501976,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(6949).getOrCreateGlobalAsyncLocalStorage)("work-async-storage")},751442,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=e.r(501976)},429332,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}});let n=e.r(692454)._(e.r(581962));function i(e,t){let r={};"function"==typeof e&&(r.loader=e);let i={...r,...t};return(0,n.default)({...i,modules:i.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},246794,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n}})},722773,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSRForNextDynamic",{enumerable:!0,get:function(){return o}});let n=e.r(16043),i=e.r(18728);e.r(526067);let a=e.r(688469).createReactBrowserBailoutReason.bind(null,"next/dynamic");function o({children:e}){return(0,n.use)((0,i.browser)(a)),e}},581962,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return u}});let n=e.r(659350),i=e.r(16043),a=e.r(722773),o=e.r(51121);function l(e){return{default:e&&"default"in e?e.default:e}}let s={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},u=function(e){let t={...s,...e},r=(0,i.lazy)(()=>t.loader().then(l)),u=t.loading;function d(e){let l=u?(0,n.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,s=!t.ssr||!!t.loading,d=s?i.Suspense:i.Fragment,c=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return s}});let n=e.r(659350),i=e.r(18728),a=e.r(751442),o=e.r(246794),l=e.r(258171);function s({moduleIds:e}){if("u">typeof window)return null;let t=a.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e)}}if(0===r.length)return null;let u=(0,l.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,o.encodeURIPath)(e)}${u}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},688469,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createReactBrowserBailoutReason:function(){return o},getReactBrowserBailoutReason:function(){return l},isNextBrowserBailoutError:function(){return s}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=Symbol.for("next.browser-bailout-reason");function o(e){return{$$typeof:a,reason:e}}function l(e){let t=e?.cause;return t?.$$typeof===a?t.reason:void 0}function s(e){return void 0!==l(e)}},235502,e=>{"use strict";let t={calendar:"gregory",numberingSystem:"latn"},r={"en-US":{...t,hourCycle:"h12",weekStartsOn:0},"zh-CN":{...t,hourCycle:"h23",weekStartsOn:1},es:{...t,hourCycle:"h23",weekStartsOn:1},"pt-BR":{...t,hourCycle:"h23",weekStartsOn:0},"de-DE":{...t,hourCycle:"h23",weekStartsOn:1},"fr-FR":{...t,hourCycle:"h23",weekStartsOn:1},"ja-JP":{...t,hourCycle:"h23",weekStartsOn:0},"ko-KR":{...t,hourCycle:"h12",weekStartsOn:0}};e.s(["f",0,r])},369566,e=>{"use strict";var t=e.i(647204),r=e.i(272114);e.s(["f",0,function(e,n){let i=(0,r.l)(e);if((0,t.V)(i)||(0,t.V)((0,r.j)(n.timeZone)))return;let a=Object.fromEntries(new Intl.DateTimeFormat("en-US",{calendar:"gregory",numberingSystem:"latn",timeZone:n.timeZone,year:"numeric",month:"2-digit",day:"2-digit",era:"short"}).formatToParts(i.data).map(e=>[e.type,e.value]));if("AD"!==a.era||!a.year||!a.month||!a.day)return;let o=(0,r.I)(`${a.year.padStart(4,"0")}-${a.month}-${a.day}`);return(0,t.V)(o)?void 0:o.data}])},340800,e=>{"use strict";var t=e.i(647204),r=e.i(369566),n=e.i(235502);let i={numeric:{year:"numeric",month:"numeric",day:"numeric"},"numeric-day-month":{month:"numeric",day:"numeric"},short:{year:"numeric",month:"2-digit",day:"2-digit"},medium:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"long",day:"numeric"},"month-year":{year:"numeric",month:"long"},"month-year-short":{year:"numeric",month:"short"},month:{month:"long"},"month-short":{month:"short"},"day-month":{month:"short",day:"numeric"},weekday:{weekday:"short"},"weekday-date":{weekday:"short",month:"short",day:"numeric",year:"numeric"},"weekday-long-date":{weekday:"long",month:"long",day:"numeric",year:"numeric"},"weekday-day-month":{weekday:"short",month:"short",day:"numeric"}},a={"table-default":"day-month","table-default-seconds":"day-month","table-compact":"numeric-day-month","table-compact-seconds":"numeric-day-month",long:"long",numeric:"numeric","numeric-seconds":"numeric",zoned:"medium","export-timestamp":"short","medium-short":"medium","cluster-24h":"day-month","medium-numeric-hour":"medium","chart-24h":"day-month","chart-numeric-hour":"day-month","chart-hour-only":"day-month",short:"short",medium:"medium",full:"short",iso:"short","iso-seconds":"short",chart:"day-month"};function o(e){return{...n.f[e.locale],...i[e.preset],timeZone:e.timeZone}}function l(e){return{...n.f[e.locale],timeZone:e.timeZone,hour:["numeric","numeric-seconds","hour-only","compact","compact-seconds","schedule"].includes(e.preset)?"numeric":"2-digit",...["hour","hour-only"].includes(e.preset)?{}:{minute:"2-digit"},...["seconds","numeric-seconds","compact-seconds"].includes(e.preset)?{second:"2-digit"}:{}}}function s(e,t,r){return r.date(o(t)).format(e)}let u={"medium-short":{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit"},"cluster-24h":{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hourCycle:"h23"},"table-default":{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},"table-default-seconds":{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"},"table-compact":{month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit"},"table-compact-seconds":{month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},long:{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"},numeric:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit"},"numeric-seconds":{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},"export-timestamp":{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",timeZoneName:"short"},zoned:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"},"medium-numeric-hour":{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit"},"chart-24h":{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hourCycle:"h23"},"chart-hour-only":{month:"short",day:"numeric",hour:"numeric"},"chart-numeric-hour":{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}};function d(e){return void 0!==e&&/^\d$/u.test(e)}function c(e,t,r){let n=r.date(l(t)).formatToParts(e);if("en-US"!==t.locale)return n.map(({value:e})=>e).join("");let i=Object.fromEntries(n.map(({type:e,value:t})=>[e,t])),a="compact-seconds"===t.preset?`:${i.second}`:"",o=i.dayPeriod??"";return`${i.hour}:${i.minute}${a}${"schedule"===t.preset?o:o.toLowerCase()}`}let f={"en-US":{chart:", ",medium:", ",numeric:", "},"zh-CN":{chart:" ",medium:" ",numeric:" "},es:{chart:", ",medium:", ",numeric:", "},"pt-BR":{chart:", ",medium:", ",numeric:", "},"de-DE":{chart:", ",medium:", ",numeric:", "},"fr-FR":{chart:", ",medium:", ",numeric:" "},"ja-JP":{chart:" ",medium:" ",numeric:" "},"ko-KR":{chart:" ",medium:" ",numeric:" "}};var m=e.i(272114),h=e.i(763161);let g={"en-US":{names:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],compose:(e,t)=>`${t}, ${e}`},"zh-CN":{names:["周日","周一","周二","周三","周四","周五","周六"],compose:(e,t)=>`${e}${t}`},es:{names:["dom","lun","mar","mié","jue","vie","sáb"],compose:(e,t)=>`${t}, ${e}`},"pt-BR":{names:["dom.","seg.","ter.","qua.","qui.","sex.","sáb."],compose:(e,t)=>`${t}, ${e}`},"de-DE":{names:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],compose:(e,t)=>`${t}, ${e}`},"fr-FR":{names:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],compose:(e,t)=>`${t} ${e}`},"ja-JP":{names:["日","月","火","水","木","金","土"],compose:(e,t)=>`${e}(${t})`},"ko-KR":{names:["일","월","화","수","목","금","토"],compose:(e,t)=>`${e} (${t})`}};function p(e,n,i){let a=(0,m.l)(e);if((0,t.V)(a)||!i.isTimeZoneValid(n))return;let o=new Date(a.data).getUTCFullYear();return(1===o||9999===o)&&void 0===(0,r.f)(a.data,{timeZone:n})?void 0:a.data}function v(e,t,r){var o;let l=Object.fromEntries(r.date((o=t,{...n.f[o.locale],...i[a[o.preset]],timeZone:o.timeZone,hour:"2-digit",minute:"2-digit",..."full"===o.preset||"iso-seconds"===o.preset?{second:"2-digit"}:{},..."iso"===o.preset||"iso-seconds"===o.preset?{hourCycle:"h23"}:{}})).formatToParts(e).map(e=>[e.type,e.value])),s=`${l.year?.padStart(4,"0")}-${l.month}-${l.day}`,u=`${l.hour?.padStart(2,"0")}:${l.minute}`;return`${s} ${u}${"iso-seconds"===t.preset?`:${l.second}`:""}`}function y(e,t,r=(0,h.f)(t.locale)){let n=p(e,t.timeZone,r);if(void 0!==n)return"weekday"===t.preset||"weekday-date"===t.preset||"weekday-long-date"===t.preset||"weekday-day-month"===t.preset?function(e,t,r){let n,i;if("weekday-long-date"===t.preset){var a=e,l=t,u=r;let n=u.date(o(l)).formatToParts(a).find(e=>"weekday"===e.type)?.value,i=s(a,{...l,preset:"long"},u);return void 0!==n&&void 0!==i?"zh-CN"===l.locale||"ja-JP"===l.locale||"ko-KR"===l.locale?`${i} ${n}`:"fr-FR"===l.locale?`${n} ${i}`:`${n}, ${i}`:void 0}let d=g[t.locale],c=d.names[n=Object.fromEntries(r.date(o({...t,preset:"short"})).formatToParts(e).map(e=>[e.type,e.value])),(i=new Date(0)).setUTCFullYear(Number(n.year),Number(n.month)-1,Number(n.day)),i.getUTCDay()];if(void 0===c)return;if("weekday"===t.preset)return c;let f="weekday-date"===t.preset?"medium":"day-month",m=s(e,{...t,preset:f},r);return void 0===m?void 0:d.compose(m,c)}(n,t,r):s(n,t,r)}function b(e,t,r=(0,h.f)(t.locale)){let i=p(e,t.timeZone,r);if(void 0!==i){if("iso"===t.preset||"iso-seconds"===t.preset)return v(i,t,r);if(Object.hasOwn(u,t.preset))return function(e,t,r){if("cluster-24h"===t.preset){let i=r.date({...n.f[t.locale],timeZone:t.timeZone,month:"short",day:"numeric"}).format(e),a=r.date({...n.f[t.locale],timeZone:t.timeZone,hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(e);return`${i}, ${a}`}if("medium-short"===t.preset){let i=r.date({...n.f[t.locale],timeZone:t.timeZone,dateStyle:"medium",timeStyle:"short"}).format(e);return"en-US"===t.locale||"fr-FR"===t.locale?i.replace(/ (?:at|à) (?=\d{1,2}:)/,", "):i}if("table-compact"===t.preset||"table-compact-seconds"===t.preset){let n=r.date(o({...t,preset:"numeric-day-month"})).format(e),i=c(e,{...t,preset:"table-compact"===t.preset?"compact":"compact-seconds"},r);return`${n} ${i}`}let i=r.date({...n.f[t.locale],...u[t.preset],timeZone:t.timeZone}),a="chart-hour-only"===t.preset?function(e,t){let r=e.format(t),n=e.formatToParts(t).find(e=>"hour"===e.type)?.value;if(!n||!/^0\d$/u.test(n))return r;let i=function(e,t){let r=e.indexOf(t);for(;-1!==r;){let n=e[r-1],i=e[r+t.length];if(!d(n)&&!d(i))return r;r=e.indexOf(t,r+1)}return -1}(r,n);return -1===i?r:`${r.slice(0,i)}${n.slice(1)}${r.slice(i+n.length)}`}(i,e):i.format(e);return"es"===t.locale?a.replace(/ a las (?=\d{1,2}:)/,", "):a}(i,{...t,preset:t.preset},r);let e=s(i,{...t,preset:a[t.preset]},r);if(void 0===e)return;let m="full"===t.preset?"seconds":"short",h="chart"===t.preset||"medium"===t.preset?t.preset:"numeric",g=r.date(l({...t,preset:m})).format(i);return`${e}${f[t.locale][h]}${g}`}}e.s(["u",0,function(e,r,n=(0,h.f)(r.locale)){let i=(0,m.I)(e);if(!(0,t.V)(i))return y(`${i.data}T00:00:00Z`,{...r,timeZone:"UTC"},n)},"C",0,y,"e",0,function(e,t,r=(0,h.f)(t.locale)){let n=p(e.from,t.timeZone,r),i=p(e.to,t.timeZone,r);if(void 0===n||void 0===i||i"timeZoneName"===e.type)?.value}],340800)},272114,e=>{"use strict";var t=e.i(647204),r=e.i(882844),n=e.i(635157);let i=/^(\d{4})-(\d{2})-(\d{2})$/,a=/^(\d{4}-\d{2}-\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,9}))?(Z|[+-]\d{2}:\d{2})$/,o=n.z.union([n.z.number(),n.z.string(),n.z.date()]),l=n.z.string();function s(e){if(!i.test(e)||e.startsWith("0000-"))return!1;let t=new Date(`${e}T00:00:00.000Z`);return Number.isFinite(t.getTime())&&t.toISOString().slice(0,10)===e}function u(e){return Number.isSafeInteger(e)&&e>=-621355968e5&&e<2534023008e5}let d=n.z.string().refine(s).brand(),c=n.z.number().refine(u).brand(),f=n.z.string().refine(function(e){if(!e||e.trim()!==e||"UTC"!==e.toUpperCase()&&!e.includes("/"))return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).resolvedOptions(),!0}catch{return!1}}).brand();function m(e){var n;let i=(0,r.C)(o,e);if((0,t.V)(i))return(0,t.Y)({code:"invalid-instant"});let l=(0,r.C)(c,(n=i.data)instanceof Date?u(n.getTime())?n.getTime():void 0:"number"==typeof n?u(n)?n:void 0:"string"==typeof n?function(e){let t=a.exec(e);if(!t)return;let[,r,n,i,o,,l]=t;if(!r||!s(r)||Number(n)>23||Number(i)>59||Number(o)>59||!l||"Z"!==l&&(Number(l.slice(1,3))>23||Number(l.slice(4))>59))return;let d=Date.parse(e);return u(d)?d:void 0}(n):void 0);return(0,t.V)(l)?(0,t.Y)({code:"invalid-instant"}):(0,t.N)(l.data)}e.s(["I",0,function(e){let n=(0,r.C)(d,e);return(0,t.V)(n)?(0,t.Y)({code:"invalid-calendar-date"}):(0,t.N)(n.data)},"z",0,function(e){let n=(0,r.C)(l,e);return(0,t.V)(n)?(0,t.Y)({code:"invalid-instant"}):i.test(n.data)?m(`${n.data}T00:00:00Z`):/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d{1,9})?$/.test(n.data)?m(`${n.data.replace(" ","T")}Z`):m(n.data)},"l",0,m,"j",0,function(e){let n=(0,r.C)(f,e);return(0,t.V)(n)?(0,t.Y)({code:"invalid-time-zone"}):(0,t.N)(n.data)}])},763161,e=>{"use strict";var t=e.i(647204),r=e.i(272114);let n=new Map;e.s(["f",0,function(e){var i;let a,o,l,s,u,d,c,f=n.get(e);if(f)return f;let m=(i=e,s=new Map,u=new Map,d=new Map,c=new Map,{isTimeZoneValid:e=>{let n=d.get(e);if(void 0!==n)return n;let i=(0,t.C)((0,r.j)(e));return d.size<64&&d.set(e,i),i},relative:()=>a??=new Intl.RelativeTimeFormat(`${i}-u-nu-latn`,{numeric:"auto"}),collator:(e="standard")=>{let t=c.get(e);if(t)return t;let r=new Intl.Collator(i,{numeric:!1,sensitivity:"base"===e?"base":"variant"});return c.set(e,r),r},list:()=>o??=new Intl.ListFormat(i,{style:"long",type:"conjunction"}),region:()=>l??=new Intl.DisplayNames(i,{type:"region",fallback:"code"}),number:e=>{let t=JSON.stringify(e),r=s.get(t);if(r)return r;let n=new Intl.NumberFormat(i,{numberingSystem:"latn",...e});return s.size<64&&s.set(t,n),n},date:e=>{let t=JSON.stringify(e),r=u.get(t);if(r)return r;let n=new Intl.DateTimeFormat(i,e);return u.size<64&&u.set(t,n),n}});return n.set(e,m),m}])},339814,e=>{"use strict";var t=e.i(763161);function r(e,r,n){return(n.runtime??(0,t.f)(n.locale)).collator(n.comparison).compare(e,r)}function n(e,t){return e.toLocaleLowerCase(t.locale)}function i(e,t){let r=n(e,t);return"fold"===t.sigma?r.replaceAll("ς","σ"):r}function a(e,t){let r=0,n=Array.from(e).flatMap(e=>{let n={start:r,end:r+e.length};return r+=e.length,Array.from({length:e.toLocaleLowerCase(t.locale).length},()=>n)});return{value:i(e,t),originalIndices:n}}e.s(["f",0,function(e,t,n){let i=r(e.label,t.label,n);return 0!==i?i:e.id===t.id?0:e.id{"use strict";let t="model-assets.openrouter.ai",r={production:`https://${t}`,local:"http://127.0.0.1:9002/model-assets-dev"},n=new Set(["127.0.0.1","localhost","[::1]"]);e.s(["O",0,r,"n",0,t,"o",0,function(e){if(void 0===e||!URL.canParse(e))return;let t=new URL(e),r=n.has(t.hostname);if("https:"!==t.protocol&&!("http:"===t.protocol&&r)||""!==t.username||""!==t.password||""!==t.search||""!==t.hash)return;let i=t.pathname.endsWith("/")?t.pathname.slice(0,-1):t.pathname;return{origin:t.origin,pathPrefix:`${i}/model-examples/`}}])},134611,e=>{"use strict";var t=e.i(209615);function r(e){return e.group===t.f.Router||!!e.endpoint}e.s(["v",0,function(e){return new Set(e.filter(r).map(e=>e.slug)).size},"Q",0,function(e){return e.endpoint?.model_variant_permaslug??e.permaslug},"i",0,function(e){return e.endpoint?.model_variant_slug??e.slug},"G",0,r,"t",0,function(e){return null!==e.hf_slug&&e.hf_slug.length>0}])},942960,e=>{"use strict";var t=e.i(572201);e.s(["f",0,e=>e.split(t.q)[0]])},233452,895183,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(16179),i=e.i(16043);let a=i.forwardRef(function({title:e,titleId:t,...r},n){return i.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:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))});e.s(["f",0,a],895183);var o=e.i(207298),l=e.i(288265),s=e.i(136562);let u=(0,o.f)("inline-flex items-center gap-1 rounded-full border border-border font-medium transition-colors focus-visible:outline-none focus-visible:border-focus-border focus-visible:shadow-focus",{variants:{variant:{default:"text-foreground",muted:"text-muted-foreground",neutral:"bg-muted text-muted-foreground",primary:"border-transparent bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground border-primary/14",destructive:"border-transparent bg-destructive text-destructive-foreground",positive:"bg-positive/12 text-positive-text border-positive/14",negative:"bg-negative/12 text-negative-text border-negative/14",warning:"bg-warning/12 text-warning-text border-warning/14",info:"bg-info/12 text-info-text border-info/14",promo:"bg-promo/12 text-promo-text border-promo/14"},size:{sm:"px-1.5 py-0 text-overline",md:"px-2.5 py-0.5 text-overline",lg:"px-2 py-0.5 text-overline"},mono:{true:"font-mono tabular-nums"}},defaultVariants:{variant:"default",size:"md"}});function d(e){let t,a,o,l,d,c,f,m,h,g,p,v=(0,r.c)(26);v[0]!==e?({className:t,variant:f,size:c,mono:a,render:d,ref:l,...o}=e,v[0]=e,v[1]=t,v[2]=a,v[3]=o,v[4]=l,v[5]=d,v[6]=c,v[7]=f):(t=v[1],a=v[2],o=v[3],l=v[4],d=v[5],c=v[6],f=v[7]);let y=(0,i.isValidElement)(d)?d:void 0,b=y?.props.className;v[8]!==t||v[9]!==a||v[10]!==o||v[11]!==d||v[12]!==c||v[13]!==b||v[14]!==f?(m=(0,s.f)(b,u({variant:f,size:c,mono:a}),(d||o.onClick)&&"cursor-pointer hover:bg-card-hover",t),v[8]=t,v[9]=a,v[10]=o,v[11]=d,v[12]=c,v[13]=b,v[14]=f,v[15]=m):m=v[15];let x=m;return v[16]!==d||v[17]!==y?(h=y?(0,i.cloneElement)(y,{className:void 0}):d,v[16]=d,v[17]=y,v[18]=h):h=v[18],v[19]!==o||v[20]!==x?(g={...o,className:x},v[19]=o,v[20]=x,v[21]=g):g=v[21],v[22]!==l||v[23]!==h||v[24]!==g?(p={render:h,ref:l,defaultTagName:"div",props:g},v[22]=l,v[23]=h,v[24]=g,v[25]=p):p=v[25],(0,n.f)(p)}e.s(["Badge",0,d,"NewBadge",0,function(e){let n,i,o,s,u,c,f,m,h=(0,r.c)(16);h[0]!==e?({className:n,size:s,msg:i,...o}=e,h[0]=e,h[1]=n,h[2]=i,h[3]=o,h[4]=s):(n=h[1],i=h[2],o=h[3],s=h[4]);let g=void 0===s?"sm":s,p=(0,l.f)();return h[5]!==p||h[6]!==i?(u=i??p("New"),h[5]=p,h[6]=i,h[7]=u):u=h[7],h[8]!==u?(c=(0,t.jsx)("span",{children:u}),h[8]=u,h[9]=c):c=h[9],h[10]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)(a,{className:"size-3"}),h[10]=f):f=h[10],h[11]!==n||h[12]!==o||h[13]!==g||h[14]!==c?(m=(0,t.jsxs)(d,{variant:"promo",size:g,className:n,...o,children:[c,f]}),h[11]=n,h[12]=o,h[13]=g,h[14]=c,h[15]=m):m=h[15],m},"badgeVariants",0,u],233452)},553214,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(207298),i=e.i(196991),a=e.i(612927),o=e.i(136562);let l=(0,n.f)("relative flex w-full items-start justify-between gap-3 rounded-lg border px-4 py-3 text-left text-body",{variants:{variant:{default:"border-border bg-muted text-foreground",positive:"border-positive/30 bg-positive-bg text-foreground",negative:"border-negative/30 bg-negative-bg text-foreground",warning:"border-warning/30 bg-warning-bg text-foreground",info:"border-info/30 bg-info-bg text-foreground",promo:"border-promo/30 bg-promo-bg text-foreground"}},defaultVariants:{variant:"default"}}),s=(0,n.f)("mt-0.5 shrink-0 [&>svg]:size-4",{variants:{variant:{default:"text-muted-foreground",positive:"text-positive",negative:"text-negative",warning:"text-warning",info:"text-info",promo:"text-promo"}},defaultVariants:{variant:"default"}});e.s(["M",0,function(e){let n,u,d,c,f,m,h,g,p,v,y,b,x,w,k,C,S,M,j=(0,r.c)(37);return j[0]!==e?({action:n,children:u,className:d,dismissButtonProps:c,icon:f,onDismiss:m,variant:g,...h}=e,j[0]=e,j[1]=n,j[2]=u,j[3]=d,j[4]=c,j[5]=f,j[6]=m,j[7]=h,j[8]=g):(n=j[1],u=j[2],d=j[3],c=j[4],f=j[5],m=j[6],h=j[7],g=j[8]),j[9]!==c?(p=c??{},j[9]=c,j[10]=p):p=j[10],j[11]!==p?({className:v,...y}=p,j[11]=p,j[12]=v,j[13]=y):(v=j[12],y=j[13]),j[14]!==d||j[15]!==g?(b=(0,o.f)(l({variant:g}),d),j[14]=d,j[15]=g,j[16]=b):b=j[16],j[17]!==f||j[18]!==g?(x=f&&(0,t.jsx)("span",{className:(0,o.f)(s({variant:g})),children:f}),j[17]=f,j[18]=g,j[19]=x):x=j[19],j[20]!==u?(w=(0,t.jsx)("div",{className:"min-w-0",children:u}),j[20]=u,j[21]=w):w=j[21],j[22]!==x||j[23]!==w?(k=(0,t.jsxs)("div",{className:"flex min-w-0 items-start gap-2",children:[x,w]}),j[22]=x,j[23]=w,j[24]=k):k=j[24],j[25]!==n?(C=n&&(0,t.jsx)("div",{className:"ml-auto shrink-0 self-center",children:n}),j[25]=n,j[26]=C):C=j[26],j[27]!==v||j[28]!==y||j[29]!==m?(S=m&&(0,t.jsxs)("button",{type:"button",...y,className:(0,o.f)("shrink-0 self-center rounded-sm p-1 text-muted-foreground transition-colors hover:bg-card-hover hover:text-foreground focus-visible:outline-none focus-visible:border-focus-border focus-visible:shadow-focus cursor-pointer",v),onClick:e=>{y.onClick?.(e),e.defaultPrevented||m()},children:[(0,t.jsx)(a.X,{className:"size-3.5"}),(0,t.jsx)(i.T,{children:(0,t.jsx)("span",{className:"sr-only",children:"Dismiss"})})]}),j[27]=v,j[28]=y,j[29]=m,j[30]=S):S=j[30],j[31]!==h||j[32]!==b||j[33]!==k||j[34]!==C||j[35]!==S?(M=(0,t.jsxs)("div",{className:b,...h,children:[k,C,S]}),j[31]=h,j[32]=b,j[33]=k,j[34]=C,j[35]=S,j[36]=M):M=j[36],M},"o",0,function(e){let n,i,a,l,s=(0,r.c)(8);return s[0]!==e?({className:n,...i}=e,s[0]=e,s[1]=n,s[2]=i):(n=s[1],i=s[2]),s[3]!==n?(a=(0,o.f)("flex flex-col gap-0.5",n),s[3]=n,s[4]=a):a=s[4],s[5]!==i||s[6]!==a?(l=(0,t.jsx)("div",{className:a,...i}),s[5]=i,s[6]=a,s[7]=l):l=s[7],l},"K",0,function(e){let n,i,a,l,s=(0,r.c)(8);return s[0]!==e?({className:n,...i}=e,s[0]=e,s[1]=n,s[2]=i):(n=s[1],i=s[2]),s[3]!==n?(a=(0,o.f)("text-muted-foreground",n),s[3]=n,s[4]=a):a=s[4],s[5]!==i||s[6]!==a?(l=(0,t.jsx)("p",{className:a,...i}),s[5]=i,s[6]=a,s[7]=l):l=s[7],l},"F",0,function(e){let n,i,a,l,s=(0,r.c)(8);return s[0]!==e?({className:n,...i}=e,s[0]=e,s[1]=n,s[2]=i):(n=s[1],i=s[2]),s[3]!==n?(a=(0,o.f)("font-medium",n),s[3]=n,s[4]=a):a=s[4],s[5]!==i||s[6]!==a?(l=(0,t.jsx)("p",{className:a,...i}),s[5]=i,s[6]=a,s[7]=l):l=s[7],l}])},181870,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562),i=e.i(102187);let a=(0,e.i(207298).f)("",{variants:{size:{default:"h-10",compact:"h-9 md:h-8",sm:"h-8"}},defaultVariants:{size:"default"}});e.s(["f",0,function(e){let o,l,s,u,d,c,f,m,h,g,p,v,y,b,x,w,k,C=(0,r.c)(37);C[0]!==e?({className:o,containerClassName:l,containerProps:s,type:p,leadingIcon:d,trailingContent:g,size:h,font:u,numeric:c,ref:m,...f}=e,C[0]=e,C[1]=o,C[2]=l,C[3]=s,C[4]=u,C[5]=d,C[6]=c,C[7]=f,C[8]=m,C[9]=h,C[10]=g,C[11]=p):(o=C[1],l=C[2],s=C[3],u=C[4],d=C[5],c=C[6],f=C[7],m=C[8],h=C[9],g=C[10],p=C[11]),C[12]!==o||C[13]!==u||C[14]!==d||C[15]!==c||C[16]!==h||C[17]!==g?(v=(0,n.f)("flex w-full rounded-md border border-input bg-input-bg px-3 py-2 text-body pointer-coarse:text-base file:border-0 file:bg-transparent file:text-body file:font-medium file:text-foreground placeholder:text-muted-foreground/50 focus-visible:outline-hidden focus-visible:ring-0 focus-visible:border-focus-border focus-visible:shadow-focus aria-invalid:border-(--error-border) aria-invalid:shadow-(--error-shadow) disabled:cursor-not-allowed disabled:opacity-50",a({size:h}),(0,i.f)({font:u}),c&&"tabular-nums",d&&"pl-9",void 0!==g&&"pr-20",o),C[12]=o,C[13]=u,C[14]=d,C[15]=c,C[16]=h,C[17]=g,C[18]=v):v=C[18],C[19]!==f||C[20]!==m||C[21]!==v||C[22]!==p?(y=(0,t.jsx)("input",{type:p,className:v,ref:m,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,...f}),C[19]=f,C[20]=m,C[21]=v,C[22]=p,C[23]=y):y=C[23];let S=y;if(!d&&void 0===g)return S;let M=s?.className;return C[24]!==l||C[25]!==M?(b=(0,n.f)("relative w-full",l,M),C[24]=l,C[25]=M,C[26]=b):b=C[26],C[27]!==d?(x=d&&(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none [&>svg]:h-4 [&>svg]:w-4",children:d}),C[27]=d,C[28]=x):x=C[28],C[29]!==g?(w=g&&(0,t.jsx)("span",{className:"absolute right-1 top-1/2 flex -translate-y-1/2 items-center gap-1",children:g}),C[29]=g,C[30]=w):w=C[30],C[31]!==s||C[32]!==S||C[33]!==b||C[34]!==x||C[35]!==w?(k=(0,t.jsxs)("div",{...s,className:b,children:[x,S,w]}),C[31]=s,C[32]=S,C[33]=b,C[34]=x,C[35]=w,C[36]=k):k=C[36],k}],181870)},475615,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(207298),i=e.i(136562);let a=(0,n.f)("peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{variant:{default:"text-xs font-normal leading-none text-muted-foreground",field:"text-body font-medium leading-body text-foreground"},size:{default:"",overline:"text-overline"},tone:{muted:"text-muted-foreground",foreground:"text-foreground"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold"},leading:{none:"leading-none",snug:"leading-snug",body:"leading-body"}},defaultVariants:{variant:"default",size:"default"}});e.s(["f",0,function(e){let n,o,l,s,u,d,c,f,m,h,g,p,v=(0,r.c)(24);return v[0]!==e?({className:n,variant:f,tone:c,weight:m,leading:o,size:d,ref:u,onMouseDown:l,...s}=e,v[0]=e,v[1]=n,v[2]=o,v[3]=l,v[4]=s,v[5]=u,v[6]=d,v[7]=c,v[8]=f,v[9]=m):(n=v[1],o=v[2],l=v[3],s=v[4],u=v[5],d=v[6],c=v[7],f=v[8],m=v[9]),v[10]!==n||v[11]!==o||v[12]!==d||v[13]!==c||v[14]!==f||v[15]!==m?(h=(0,i.f)(a({variant:f,tone:c,weight:m,leading:o,size:d}),n),v[10]=n,v[11]=o,v[12]=d,v[13]=c,v[14]=f,v[15]=m,v[16]=h):h=v[16],v[17]!==l?(g=e=>{l?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},v[17]=l,v[18]=g):g=v[18],v[19]!==s||v[20]!==u||v[21]!==h||v[22]!==g?(p=(0,t.jsx)("label",{ref:u,className:h,onMouseDown:g,...s,htmlFor:s.htmlFor,children:s.children}),v[19]=s,v[20]=u,v[21]=h,v[22]=g,v[23]=p):p=v[23],p}])},670168,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(207298),i=e.i(16043),a=e.i(136562);let o=(0,n.f)("animate-pulse rounded-md bg-muted motion-reduce:animate-none",{variants:{variant:{default:"",outline:"border"},animation:{pulse:"",stagger:"[animation-delay:var(--skeleton-delay)]",none:"animate-none"}},defaultVariants:{variant:"default",animation:"pulse"}});function l(e){let n,i,l,s,u,d,c=(0,r.c)(12);return c[0]!==e?({className:i,variant:s,animation:n,...l}=e,c[0]=e,c[1]=n,c[2]=i,c[3]=l,c[4]=s):(n=c[1],i=c[2],l=c[3],s=c[4]),c[5]!==n||c[6]!==i||c[7]!==s?(u=(0,a.f)(o({variant:s,animation:n}),i),c[5]=n,c[6]=i,c[7]=s,c[8]=u):u=c[8],c[9]!==l||c[10]!==u?(d=(0,t.jsx)("div",{className:u,...l}),c[9]=l,c[10]=u,c[11]=d):d=c[11],d}let s={2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6"},u={compact:{row:"gap-3 p-3",headerCell:(0,t.jsx)(l,{className:"h-3 w-full"}),bodyCell:(0,t.jsx)(l,{className:"h-4 w-full"})},regular:{row:"gap-4 p-4",headerCell:(0,t.jsx)(l,{className:"h-4 w-full"}),bodyCell:(0,t.jsx)(l,{className:"h-5 w-full"})}};function d(e){let n,i,a=(0,r.c)(3),{rowCount:o}=e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsxs)("div",{className:"flex gap-8 border-border border-b bg-muted/30 px-4 py-2.5",children:[(0,t.jsx)(l,{className:"h-2.5 w-20"}),(0,t.jsx)(l,{className:"h-2.5 w-16"}),(0,t.jsx)(l,{className:"ml-auto h-2.5 w-12"})]}),a[0]=n):n=a[0],a[1]!==o?(i=(0,t.jsxs)(t.Fragment,{children:[n,Array.from({length:o}).map(c)]}),a[1]=o,a[2]=i):i=a[2],i}function c(e,r){return(0,t.jsxs)("div",{className:"flex items-center gap-8 border-border/50 border-b px-4 py-3 last:border-b-0",children:[(0,t.jsx)(l,{className:"h-2.5 w-28"}),(0,t.jsx)(l,{className:"h-2.5 w-16"}),(0,t.jsx)(l,{className:"ml-auto h-2.5 w-10"})]},r)}function f(e){let n,o=(0,r.c)(9),{columnCount:l,density:d,headerRowCount:c,rowCount:f}=e,m=u[d];if(o[0]!==l||o[1]!==m.bodyCell||o[2]!==m.headerCell||o[3]!==m.row||o[4]!==c||o[5]!==f){let e,r=(0,a.f)("grid border-border border-b",m.row,s[l]);o[7]!==l?(e=e=>Array.from({length:l},(r,n)=>(0,t.jsx)(i.Fragment,{children:e},n)),o[7]=l,o[8]=e):e=o[8];let u=e;n=(0,t.jsxs)(t.Fragment,{children:[Array.from({length:c},(e,n)=>(0,t.jsx)("div",{className:r,children:u(m.headerCell)},`header-${n}`)),Array.from({length:f},(e,n)=>(0,t.jsx)("div",{className:(0,a.f)(r,"last:border-b-0"),children:u(m.bodyCell)},n))]}),o[0]=l,o[1]=m.bodyCell,o[2]=m.headerCell,o[3]=m.row,o[4]=c,o[5]=f,o[6]=n}else n=o[6];return n}e.s(["l",0,l,"h",0,function(e){let n,i,o,l,s,u,c,m,h,g=(0,r.c)(18);g[0]!==e?({className:n,rowCount:l,columnCount:i,headerRowCount:s,density:u,...o}=e,g[0]=e,g[1]=n,g[2]=i,g[3]=o,g[4]=l,g[5]=s,g[6]=u):(n=g[1],i=g[2],o=g[3],l=g[4],s=g[5],u=g[6]);let p=void 0===l?3:l,v=void 0===s?1:s,y=void 0===u?"compact":u;return g[7]!==n?(c=(0,a.f)("overflow-hidden rounded-lg border border-border",n),g[7]=n,g[8]=c):c=g[8],g[9]!==i||g[10]!==y||g[11]!==v||g[12]!==p?(m=void 0===i?(0,t.jsx)(d,{rowCount:p}):(0,t.jsx)(f,{columnCount:i,density:y,headerRowCount:v,rowCount:p}),g[9]=i,g[10]=y,g[11]=v,g[12]=p,g[13]=m):m=g[13],g[14]!==o||g[15]!==c||g[16]!==m?(h=(0,t.jsx)("div",{className:c,...o,children:m}),g[14]=o,g[15]=c,g[16]=m,g[17]=h):h=g[17],h},"A",0,function(e){let n,i,o,s,u,d,c,f,m,h=(0,r.c)(18);h[0]!==e?({className:n,count:s,delayIncrement:u,skeletonClassName:o,...i}=e,h[0]=e,h[1]=n,h[2]=i,h[3]=o,h[4]=s,h[5]=u):(n=h[1],i=h[2],o=h[3],s=h[4],u=h[5]);let g=void 0===s?10:s,p=void 0===u?50:u;return h[6]!==n?(d=(0,a.f)("flex flex-col gap-2",n),h[6]=n,h[7]=d):d=h[7],h[8]!==g?(c=Array.from({length:g}),h[8]=g,h[9]=c):c=h[9],h[10]!==p||h[11]!==o||h[12]!==c?(f=c.map((e,r)=>(0,t.jsx)(l,{animation:"stagger",className:o,"data-allow-inline-style":!0,style:{"--skeleton-delay":`${r*p}ms`}},r)),h[10]=p,h[11]=o,h[12]=c,h[13]=f):f=h[13],h[14]!==i||h[15]!==d||h[16]!==f?(m=(0,t.jsx)("div",{className:d,...i,children:f}),h[14]=i,h[15]=d,h[16]=f,h[17]=m):m=h[17],m}])},623304,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(16043),i=e.i(389475),a=e.i(82153),o=e.i(533124),l=e.i(367898),s=e.i(115370),u=e.i(93836),d=e.i(811673),c=e.i(225421),f=e.i(107397);let m=n.createContext(void 0),h={...e.i(825086).s,checked:e=>e?{"data-checked":""}:{"data-unchecked":""}};var g=e.i(729253),p=e.i(141436),v=e.i(176322),y=e.i(967090),b=e.i(621441),x=e.i(76129),w=e.i(599096),k=e.i(461430),C=e.i(132887),S=e.i(111407),M=e.i(957854);let j=n.forwardRef(function(e,r){let{checked:f,className:j,defaultChecked:P,"aria-labelledby":N,form:$,id:E,inputRef:A,name:O,nativeButton:I=!1,onCheckedChange:R,readOnly:T=!1,required:L=!1,disabled:_=!1,render:z,uncheckedValue:F,value:V,style:Z,...B}=e,{clearErrors:D}=(0,b.f)(),{state:q,setTouched:U,setDirty:G,validityData:K,setFilled:W,validationMode:H,disabled:Y,name:Q,validation:J}=(0,p.f)(),{labelId:X}=(0,x.f)(),ee=Y||_,et=Q??O,er=n.useRef(null),en=(0,a.A)(er,A,J.inputRef),ei=n.useRef(null),ea=(0,v.f)(ee,ei),eo=(0,d.f)(),el=(0,k.f)({id:E}),es=I?void 0:el,[eu,ed]=(0,i.f)({controlled:f,default:!!P,name:"Switch",state:"checked"});(0,y.f)(ei,eo,eu,void 0,!ee,O),(0,o.f)(()=>{W(eu)},[eu,W]),(0,M.f)(eu,()=>{D(et),G(eu!==K.initialValue),J.change(eu)});let{getButtonProps:ec,buttonRef:ef}=(0,c.f)({disabled:ee,native:I}),em=(0,w.f)(N,X,er,!I,es,B["aria-label"]),eh={...J.getValidationProps(ee),checked:eu,disabled:ee,form:$,id:es,name:et,required:L,style:et?l.L:l.p,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:en,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(T)return void e.preventDefault();let t=e.currentTarget.checked,r=(0,C.j)(S.f.none,e.nativeEvent);R?.(t,r),r.isCanceled||ed(t)},onClick(e){e.stopPropagation()},onFocus(){ei.current?.focus()},...void 0!==V?{value:V}:s.w},eg=n.useMemo(()=>({...q,checked:eu,disabled:ee,readOnly:T,required:L}),[q,eu,ee,T,L]),ep=(0,u.a)("span",e,{state:eg,ref:[r,ei,ef],props:[{id:I?el:eo,role:"switch","aria-checked":eu,"aria-readonly":T||void 0,"aria-required":L||void 0,"aria-labelledby":em,onFocus(){ea(!0)},onBlur(){let e=er.current;e&&!ee&&(U(!0),ea(!1),"onBlur"===H&&J.commit(e.checked))},onClick(e){if(T||ee)return;e.preventDefault();let t=er.current;t&&(0,g.f)(t,e)}},B,ec,e=>J.getValidationProps(ee,e)],stateAttributesMapping:h});return(0,t.jsxs)(m.Provider,{value:eg,children:[ep,!eu&&et&&void 0!==F&&(0,t.jsx)("input",{type:"hidden",form:$,name:et,value:F,disabled:ee}),(0,t.jsx)("input",{...eh,suppressHydrationWarning:!0})]})}),P=n.forwardRef(function(e,t){let{render:r,className:i,style:a,...o}=e,l=function(){let e=n.useContext(m);if(void 0===e)throw Error((0,f.f)(63));return e}();return(0,u.a)("span",e,{state:l,ref:t,stateAttributesMapping:h,props:o})});e.s(["Root",0,j,"Thumb",0,P],899462);var N=e.i(899462),N=N,$=N,E=e.i(207298),A=e.i(136562),O=e.i(670168);let I=(0,E.f)("rounded-full",{variants:{size:{default:"h-6 w-11",sm:"h-5 w-9",xs:"h-3 w-5"}},defaultVariants:{size:"default"}}),R=(0,E.f)("pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-[translate,width] duration-fast ease-in-out-strong motion-reduce:transition-none data-[unchecked]:translate-x-0",{variants:{size:{default:"h-5 w-5 group-enabled:group-active:w-6 data-[checked]:translate-x-5 group-enabled:group-active:data-[checked]:translate-x-4",sm:"h-4 w-4 group-enabled:group-active:w-5 data-[checked]:translate-x-4 group-enabled:group-active:data-[checked]:translate-x-3",xs:"h-2 w-2 group-enabled:group-active:w-2.5 data-[checked]:translate-x-2 group-enabled:group-active:data-[checked]:translate-x-1.5"}},defaultVariants:{size:"default"}});e.s(["Z",0,function(e){let n,i,a,o,l,s,u=(0,r.c)(28),{className:d,size:c,checked:f,defaultChecked:m,onCheckedChange:h,disabled:g,required:p,name:v,id:y,title:b,onClick:x,ref:w,"aria-label":k,"aria-labelledby":C,"aria-describedby":S}=e,M=void 0===c?"default":c;return u[0]!==d||u[1]!==M?(n=(0,A.f)("group peer inline-flex shrink-0 cursor-pointer items-center border-2 border-transparent transition-colors duration-quick ease-smooth-out focus-visible:outline-none focus-visible:border-focus-border focus-visible:shadow-focus disabled:cursor-not-allowed disabled:opacity-50 data-[checked]:bg-primary data-[unchecked]:bg-foreground/30 hover:data-[unchecked]:bg-foreground/40",I({size:M}),d),u[0]=d,u[1]=M,u[2]=n):n=u[2],u[3]!==h?(i=h?e=>h(e):void 0,u[3]=h,u[4]=i):i=u[4],u[5]!==k||u[6]!==C?(a=(e,r)=>{let n=C??(k?void 0:e["aria-labelledby"]);return(0,t.jsx)("button",{type:"button",...e,"data-state":r.checked?"checked":"unchecked","aria-labelledby":n})},u[5]=k,u[6]=C,u[7]=a):a=u[7],u[8]!==M?(o=(0,A.f)(R({size:M})),u[8]=M,u[9]=o):o=u[9],u[10]!==o?(l=(0,t.jsx)(N.Thumb,{className:o}),u[10]=o,u[11]=l):l=u[11],u[12]!==S||u[13]!==k||u[14]!==f||u[15]!==m||u[16]!==g||u[17]!==y||u[18]!==v||u[19]!==x||u[20]!==w||u[21]!==p||u[22]!==n||u[23]!==i||u[24]!==a||u[25]!==l||u[26]!==b?(s=(0,t.jsx)($.Root,{className:n,checked:f,defaultChecked:m,onCheckedChange:i,disabled:g,required:p,name:v,id:y,title:b,onClick:x,ref:w,"aria-label":k,"aria-describedby":S,nativeButton:!0,render:a,children:l}),u[12]=S,u[13]=k,u[14]=f,u[15]=m,u[16]=g,u[17]=y,u[18]=v,u[19]=x,u[20]=w,u[21]=p,u[22]=n,u[23]=i,u[24]=a,u[25]=l,u[26]=b,u[27]=s):s=u[27],s},"N",0,function(e){let n,i,a,o=(0,r.c)(6),{className:l,size:s}=e,u=void 0===s?"default":s;return o[0]!==l||o[1]!==u?(n=(0,A.f)("inline-flex shrink-0 overflow-hidden",I({size:u}),l),o[0]=l,o[1]=u,o[2]=n):n=o[2],o[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(O.l,{className:"size-full"}),o[3]=i):i=o[3],o[4]!==n?(a=(0,t.jsx)("div",{className:n,children:i}),o[4]=n,o[5]=a):a=o[5],a}],623304)},102187,e=>{"use strict";let t=(0,e.i(207298).f)("",{variants:{font:{mono:"font-mono"}}});e.s(["f",0,t])},119816,e=>{"use strict";e.s(["F",0,{ON_UNMOUNT:0,SESSION:1/0},"y",0,{ALWAYS:0,COALESCE_MOUNTS:2e3,DEFAULT:3e4,CATALOG:6e4,REFERENCE:3e5,NEVER:1/0}])},170814,e=>{"use strict";var t=e.i(663456),r=e.i(510433),n=e.i(728120),i=e.i(650684);function a(e){let r,a=(0,t.c)(3),{override:o}=(0,n.f)();if(void 0!==e)return a[0]!==o||a[1]!==e?(r=((0,i.K)([e],e.id,o)??[])[0]??e,a[0]=o,a[1]=e,a[2]=r):r=a[2],r}e.s(["g",0,function(e,n){let i,o=(0,t.c)(3),l=a(e);return o[0]!==n||o[1]!==l?(i=(0,r.f)(l,n),o[0]=n,o[1]=l,o[2]=i):i=o[2],i},"Q",0,a])},16018,e=>{"use strict";var t=e.i(134611);e.s(["f",0,function(e,r){return null===r?e:e.filter(e=>r.has((0,t.i)(e)))}])},979730,e=>{"use strict";var t=e.i(134611),r=e.i(572201);let n=/:(?:nitro|floor|exacto|online|all)/g;e.s(["v",0,function(e){let t=t=>e?.modelVariantPermaslugMap.get(t.replace(n,""))??null;return{getModelInfoByVariantSlug:t=>{let r=t.replace(n,"");return e?.modelVariantSlugMap.get(r)??e?.modelVariantPermaslugMap.get(r)??null},getModelInfoByVariantPermaslug:t,getPrimaryModelInfoByPermaslug:e=>t(e)??t(`${e}${r.q}${r.e.Free}`),isReady:null!==e}},"u",0,function({availableModels:e,privateModels:r=[]}){if(!e)return null;let n=new Map,i=new Map;for(let r of e)n.set((0,t.i)(r),r),i.set((0,t.Q)(r),r);for(let e of r){let r=(0,t.i)(e),a=(0,t.Q)(e);n.has(r)||n.set(r,e),i.has(a)||i.set(a,e)}return{modelVariantSlugMap:n,modelVariantPermaslugMap:i}}])},467863,198453,e=>{"use strict";var t=e.i(342837),r=e.i(647204),n=e.i(882844),i=e.i(635157),a=e.i(173465),o=e.i(613497),l=e.i(942960);function s(e){let t=new URLSearchParams(e.map(e=>["slug",e]));return`/api/frontend/v1/catalog/models?${t.toString()}`}e.s(["$",0,s,"Y",0,function(e){let t=[...new Set(e.map(e=>(0,l.f)(e)).filter(e=>""!==e))].sort();return Array.from({length:Math.ceil(t.length/50)},(e,r)=>t.slice(50*r,(r+1)*50))}],198453),i.z.object({data:i.z.object({permaslugs:i.z.array(i.z.string()).openapi({description:"Distinct permaslugs of models that have at least one `:free` endpoint, in endpoint cache order."}),author_display_names:i.z.record(i.z.string(),i.z.string()).openapi({description:"Author slug to display name, taken from the first endpoint per author whose model carries a non-empty display name."})})});var u=e.i(702596),d=e.i(819750),c=e.i(524287),f=e.i(119816);let m=i.z.array(i.z.object({id:i.z.string()})),h=(0,c.f)("model-info",{available:()=>[],bySlug:e=>[e],freeVariants:()=>[],private:e=>[e],userCatalog:e=>[e]});async function g(e){try{return await (0,d.f)("/api/v1/models/user",{searchParams:{output_modalities:"all"},signal:e})}catch(e){if(e instanceof u.o&&e.errorT.status===t.g.S404_Not_Found)return[];throw e}}e.s(["o",0,function(){return(0,a.f)({queryKey:h.available(),queryFn:({signal:e})=>(0,d.f)("/api/frontend/v1/catalog/models",{signal:e}),staleTime:f.y.CATALOG})},"s",0,function(e){return(0,a.f)({queryKey:h.bySlug(e),queryFn:({signal:t})=>(0,d.f)(s(e),{signal:t}),staleTime:f.y.CATALOG})},"T",0,function(){return(0,a.f)({queryKey:h.freeVariants(),queryFn:({signal:e})=>(0,d.f)("/api/frontend/v1/catalog/free-variant-models",{signal:e}),staleTime:f.y.CATALOG})},"S",0,function(e){return(0,a.f)({queryKey:h.private(e),queryFn:null===e?o.V:({signal:e})=>(0,d.f)("/api/frontend/v1/private/models",{signal:e}),staleTime:f.y.CATALOG})},"v",0,function(e){return(0,a.f)({queryKey:h.userCatalog(e),queryFn:null===e?o.V:async({signal:e})=>{let t=await g(e),i=(0,n.C)(m,t);if((0,r.V)(i))throw i.error;return i.data.map(e=>e.id)},staleTime:f.y.CATALOG})}],467863)},96724,e=>{"use strict";var t=e.i(647204),r=e.i(506050),n=e.i(67089),i=e.i(16043);let a="activity-display-timezone",o="activity-timezone-change",l=null;function s(){var e;if(null!==l)return l;let r=(0,t.$)(()=>localStorage.getItem(a));return(0,t.C)(r)&&("utc"===(e=r.data)||"local"===e)?r.data:"local"}function u(e){return window.addEventListener(o,e),()=>window.removeEventListener(o,e)}function d(){return"local"}e.s(["s",0,function(){return s()},"T",0,function(e){l=e;let i=(0,t.$)(()=>localStorage.setItem(a,e));(0,t.V)(i)&&(0,n.L)("localStorage.setItem failed for display timezone preference",(0,r.s)(i.error)),window.dispatchEvent(new CustomEvent(o,{detail:e}))},"t",0,function(){return(0,i.useSyncExternalStore)(u,s,d)}])},340563,501072,e=>{"use strict";var t=e.i(663456),r=e.i(618115),n=e.i(16043),i=e.i(272719),a=e.i(647204);let o="openrouter-catalog-filter",l={On:"on",Off:"off"};function s(){let e=(0,a.$)(()=>window.localStorage.getItem(o));return(0,a.C)(e)&&e.data===l.Off}function u(e){(0,a.$)(()=>{null===e?window.localStorage.removeItem(o):window.localStorage.setItem(o,e)})}e.s(["j",0,o,"k",0,l,"q",0,s,"_",0,u],501072);var d=e.i(467863);let c="__client_uat",f=()=>()=>{},m=()=>!1,h=()=>!1;function g(){return document.cookie.split(";").some(e=>{let[t,r]=e.trim().split("=");return void 0!==t&&(t===c||t.startsWith(`${c}_`))&&void 0!==r&&""!==r&&"0"!==r})}function p(e){return e.isLoading}function v(e){return e.isSignedIn&&(null===e.entity&&null===e.entityError||e.isOrgLoading)}function y(e){return e.entity?.is_filtered_model_catalog_enabled===!0}function b(e){return e.isLoading?void 0:e.isSignedIn?null===e.entity||e.isOrgLoading?void 0:y(e)?l.On:l.Off:null}function x(){let e,t,r=(0,i.f)(v),a=(e=(0,i.f)(p),t=(0,n.useSyncExternalStore)(f,g,m),e&&t),o=(0,n.useSyncExternalStore)(f,s,h);return(r||a)&&!o}function w(e){return e.isSignedIn&&e.entity?.is_filtered_model_catalog_enabled===!0?e.clerkOrg?.id??e.entity.clerk_user_id:null}e.s(["Z",0,c,"o",0,function(){let e,a,o,l,s,c,f=(0,t.c)(14),m=x(),h=(0,i.f)(b);f[0]!==h?(e=()=>{void 0!==h&&u(h)},a=[h],f[0]=h,f[1]=e,f[2]=a):(e=f[1],a=f[2]),(0,n.useEffect)(e,a);let g=(0,i.f)(w),p=m?null:g;f[3]!==p?(o=(0,d.v)(p),f[3]=p,f[4]=o):o=f[4];let{data:v,isPending:y,isError:k,isFetching:C,refetch:S}=(0,r.f)(o);f[5]!==v?(l=v?new Set(v):null,f[5]=v,f[6]=l):l=f[6];let M=l,j=null!==p,P=k&&C&&void 0===v;f[7]!==S?(s=()=>{S()},f[7]=S,f[8]=s):s=f[8];let N=s,$=m||j&&(y||P),E=j&&k&&!C&&void 0===v;return f[9]!==M||f[10]!==N||f[11]!==$||f[12]!==E?(c={allowedModelIds:M,isCatalogPending:$,isCatalogError:E,retryCatalog:N},f[9]=M,f[10]=N,f[11]=$,f[12]=E,f[13]=c):c=f[13],c},"u",0,function(){let e=(0,i.f)(y);return x()||e}],340563)},56449,e=>{"use strict";var t=e.i(663456),r=e.i(134611),n=e.i(618115);e.i(16043);var i=e.i(272719),a=e.i(16018),o=e.i(979730),l=e.i(467863),s=e.i(340563);function u(e){return e.clerkOrg?.id??e.entity?.clerk_user_id??null}e.s(["f",0,function(e){let d,c,f,m,h,g,p,v,y,b,x,w,k,C=(0,t.c)(35);C[0]!==e?(d=void 0===e?{}:e,C[0]=e,C[1]=d):d=C[1];let{shouldFetchAvailableModels:S,shouldFetchPrivateModels:M}=d,j=void 0===S||S,P=void 0!==M&&M,N=(0,i.f)(u);C[2]!==P?(c=e=>P&&!e.isLoading&&!e.isOrgLoading&&e.isSignedIn,C[2]=P,C[3]=c):c=C[3];let $=(0,i.f)(c);C[4]!==P?(f=e=>P&&(e.isLoading||e.isOrgLoading),C[4]=P,C[5]=f):f=C[5];let E=(0,i.f)(f),A=$?N:null;C[6]===Symbol.for("react.memo_cache_sentinel")?(m=(0,l.o)(),C[6]=m):m=C[6],C[7]!==j?(h={...m,enabled:j},C[7]=j,C[8]=h):h=C[8];let{data:O,isError:I}=(0,n.f)(h),{allowedModelIds:R,isCatalogPending:T,isCatalogError:L}=(0,s.o)(),_=I||L;C[9]!==R||C[10]!==L||C[11]!==T||C[12]!==O?(g=!O||T||L?void 0:[...(0,a.f)(O,R)],C[9]=R,C[10]=L,C[11]=T,C[12]=O,C[13]=g):g=C[13];let z=g;C[14]!==A?(p=(0,l.S)(A),C[14]=A,C[15]=p):p=C[15];let{data:F,isPending:V}=(0,n.f)(p);C[16]!==F?(v=F??[],C[16]=F,C[17]=v):v=C[17];let Z=v;C[18]!==z?(y=z?.filter(r.G)??[],C[18]=z,C[19]=y):y=C[19];let B=y;C[20]!==B?(b=(0,r.v)(B),C[20]=B,C[21]=b):b=C[21];let D=b,q=E||null!==A&&V,U=T?void 0:O;C[22]!==U||C[23]!==Z?(x=(0,o.u)({availableModels:U,privateModels:Z}),C[22]=U,C[23]=Z,C[24]=x):x=C[24];let G=x;C[25]!==G?(w=(0,o.v)(G),C[25]=G,C[26]=w):w=C[26];let K=w;return C[27]!==B||C[28]!==B||C[29]!==_||C[30]!==q||C[31]!==K||C[32]!==D||C[33]!==Z?(k={modelCount:D,privateModels:Z,isPrivateModelsLoading:q,hasAvailableModelsError:_,availableTextModels:B,featuredTextModels:B,...K},C[27]=B,C[28]=B,C[29]=_,C[30]=q,C[31]=K,C[32]=D,C[33]=Z,C[34]=k):k=C[34],k}])},734809,e=>{"use strict";var t=e.i(663456),r=e.i(618115);e.i(16043);var n=e.i(447556),i=e.i(448457),a=e.i(272719);function o(e){return[[e.slug,e]]}function l(e){return[[e.name,e]]}function s(e){return e.contextEntityId}e.s(["f",0,function(e){let u,d,c,f,m,h,g,p,v,y,b=(0,t.c)(24);b[0]!==e?(u=void 0===e?{}:e,b[0]=e,b[1]=u):u=b[1];let{shouldFetchAvailableProviders:x,shouldFetchGrantedProviders:w}=u,k=void 0===x||x;b[2]===Symbol.for("react.memo_cache_sentinel")?(d=(0,i.H)(),b[2]=d):d=b[2],b[3]!==k?(c={...d,enabled:k},b[3]=k,b[4]=c):c=b[4];let{data:C,isError:S}=(0,r.f)(c),M=(0,a.f)(s),j=void 0!==w&&w?M:null;b[5]!==j?(f=(0,n.D)(j),b[5]=j,b[6]=f):f=b[6];let{data:P}=(0,r.f)(f);e:{let e;if(!C){m=null;break e}b[7]!==C||b[8]!==P?(e=function(e,t){let r=Array.isArray(t)?t:[];if(0===r.length)return e;let n=new Set(e.flatMap(e=>[e.name,e.slug]));return[...e,...r.filter(e=>!n.has(e.name)&&!n.has(e.slug))]}(C,P),b[7]=C,b[8]=P,b[9]=e):e=b[9],m=e}let N=m;t:{let e;if(!N){h=null;break t}b[10]!==N?(e=new Map(N.flatMap(l)),b[10]=N,b[11]=e):e=b[11],h=e}let $=h;r:{let e;if(!N){g=null;break r}b[12]!==N?(e=new Map(N.flatMap(o)),b[12]=N,b[13]=e):e=b[13],g=e}let E=g;b[14]!==$||b[15]!==E?(p=e=>$?.get(e)??E?.get(e)??null,b[14]=$,b[15]=E,b[16]=p):p=b[16];let A=p;b[17]!==$?(v=()=>$?Array.from($.values()):[],b[17]=$,b[18]=v):v=b[18];let O=v,I=null!==$;return b[19]!==O||b[20]!==A||b[21]!==S||b[22]!==I?(y={getProviderInfo:A,getAllProviders:O,isReady:I,hasAvailableProvidersError:S},b[19]=O,b[20]=A,b[21]=S,b[22]=I,b[23]=y):y=b[23],y}])},138257,801103,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(16043);function i(e){let t,r=new Set,n=e,i=()=>{for(let e of(n=Date.now(),r))e()};return{getSnapshot:()=>n,getServerSnapshot:()=>e,subscribe:a=>(r.add(a),void 0===t&&(n=Date.now(),t=setInterval(i,6e4)),()=>{r.delete(a),0===r.size&&(clearInterval(t),t=void 0,n=e)})}}let a=i(),o=(0,n.createContext)(a),l=()=>()=>{};function s(e){let n,l,s=(0,r.c)(5),{children:u,initialNowMs:d}=e;s[0]!==d?(n=void 0===d?a:i(d),s[0]=d,s[1]=n):n=s[1];let c=n;return s[2]!==u||s[3]!==c?(l=(0,t.jsx)(o,{value:c,children:u}),s[2]=u,s[3]=c,s[4]=l):l=s[4],l}e.s(["z",0,s,"m",0,function(e){let t=(0,n.use)(o);return(0,n.useSyncExternalStore)(void 0===e||e?t.subscribe:l,t.getSnapshot,t.getServerSnapshot)}],801103);let u=(0,n.createContext)(void 0);e.s(["LocaleProvider",0,function(e){let n,i,a=(0,r.c)(6),{children:o,locale:l,initialNowMs:d}=e;return a[0]!==o||a[1]!==d?(n=(0,t.jsx)(s,{initialNowMs:d,children:o}),a[0]=o,a[1]=d,a[2]=n):n=a[2],a[3]!==l||a[4]!==n?(i=(0,t.jsx)(u,{value:l,children:n}),a[3]=l,a[4]=n,a[5]=i):i=a[5],i},"useLocale",0,function(){let e=(0,n.use)(u);if(!e)throw Error("useLocale must be used within LocaleProvider");return e}],138257)},797521,e=>{"use strict";var t=e.i(663456),r=e.i(30368);e.i(16043);var n=e.i(138257);e.s(["f",0,function(){let e,i=(0,t.c)(2),a=(0,n.useLocale)();return i[0]!==a?(e=(0,r.f)(a),i[0]=a,i[1]=e):e=i[1],e}])},304903,e=>{"use strict";var t=e.i(272114),r=e.i(647204),n=e.i(16043),i=e.i(96724);let a=()=>()=>{},o=()=>"UTC";function l(){return s()??"UTC"}function s(e=()=>Intl.DateTimeFormat().resolvedOptions().timeZone){let n=(0,r.$)(e);if((0,r.V)(n))return;let i=(0,t.j)(n.data);return(0,r.V)(i)?void 0:i.data}e.s(["X",0,s,"P",0,function(e){let t=(0,i.t)(),r=(0,n.useSyncExternalStore)(a,l,o);return(e??t)==="utc"?"UTC":r}])},447556,e=>{"use strict";var t=e.i(173465),r=e.i(613497),n=e.i(819750);let i=(0,e.i(524287).f)("byok-providers",{granted:e=>[e]});e.s(["w",0,i,"D",0,function(e){return(0,t.f)({queryKey:i.granted(e),queryFn:null===e?r.V:({signal:e})=>(0,n.f)("/api/frontend/v1/private/byok-providers",{signal:e})})}])},448457,e=>{"use strict";var t=e.i(173465),r=e.i(819750),n=e.i(524287),i=e.i(119816);let a=(0,n.f)("provider-info",{available:()=>[],catalog:e=>[e]});e.s(["H",0,function(){return(0,t.f)({queryKey:a.available(),queryFn:({signal:e})=>(0,r.f)("/api/frontend/v1/all-providers",{signal:e}),staleTime:i.y.CATALOG})},"L",0,function(e){return(0,t.f)({queryKey:a.catalog(e),queryFn:({signal:t})=>(0,r.f)("/api/frontend/v1/catalog/providers",{searchParams:e,signal:t}),staleTime:i.y.COALESCE_MOUNTS})}])},761821,e=>{"use strict";var t=e.i(663456),r=e.i(942960),n=e.i(497214),i=e.i(572201),a=e.i(463686),o=e.i(701499),l=e.i(16043),s=e.i(56449),u=e.i(734809);let d={prefixes:["/activity","/chat","/compare","/discover","/fusion","/labs/quality-tournament","/labs/simulate-price","/logs","/models","/providers/compare","/request-builder","/settings/private-endpoints","/settings/privacy","/settings/profile"],patterns:[/^\/private\/[^/]+\/[^/]+(?:\/(?:pricing|providers))?$/,/^\/settings\/organization-members\/[^/]+$/,/^\/workspaces\/[^/]+$/,/^\/workspaces\/[^/]+\/(?:activity|byok|guardrails|interns\/[^/]+|keys\/[^/]+|logs|observability\/destinations|presets|routing)(?:\/|$)/]},c={prefixes:["/logs","/activity","/chat"],patterns:[/^\/workspaces\/[^/]+\/(?:presets|byok|guardrails|interns\/[^/]+)(?:\/|$)/]},f={prefixes:["/activity","/logs","/settings/privacy"],patterns:[/^\/workspaces\/[^/]+\/(?:activity|guardrails|logs|presets)(?:\/|$)/]},m=(e,{prefixes:t,patterns:r})=>t.some(t=>e===t||e.startsWith(`${t}/`))||r.some(t=>t.test(e)),{BaseContext:h,Provider:g}=(0,o.f)(e=>{let o,l,h,g,p,v,y,b,x=(0,t.c)(37),{routePathname:w,routeParams:k}=e,C=void 0===k?null:k,S=(0,a.usePathname)(),M=void 0===w?S:w;x[0]!==M?(o=null===M||m(M,d),x[0]=M,x[1]=o):o=x[1];let j=o;if(x[2]!==M||x[3]!==C||x[4]!==j)l=j||C?.["maker-id"]!==void 0&&void 0!==C.slug&&!M.startsWith("/private/"),x[2]=M,x[3]=C,x[4]=j,x[5]=l;else l=x[5];let P=l;x[6]!==M?(h=null!==M&&m(M,c),x[6]=M,x[7]=h):h=x[7],x[8]!==j||x[9]!==h?(g={shouldFetchAvailableModels:j,shouldFetchPrivateModels:h},x[8]=j,x[9]=h,x[10]=g):g=x[10];let N=(0,s.f)(g);x[11]!==M?(p=null!==M&&m(M,f),x[11]=M,x[12]=p):p=x[12],x[13]!==P||x[14]!==p?(v={shouldFetchAvailableProviders:P,shouldFetchGrantedProviders:p},x[13]=P,x[14]=p,x[15]=v):v=x[15];let $=(0,u.f)(v);x[16]!==N||x[17]!==$?(y=e=>{let{slug:t,variant:a,providerName:o}=e,l=t?(0,r.f)(t):null,s=l&&a?(0,i.k)(l,a):null,u=s?N.getModelInfoByVariantSlug(s):null,d=u?.short_name||"--",c=o?$.getProviderInfo(o):null,f=o&&c?c.displayName:null;return(0,n.k)([d,f]).join(" | ")},x[16]=N,x[17]=$,x[18]=y):y=x[18];let E=y,A=N.privateModels,O=N.availableTextModels,I=$.getAllProviders,R=N.isReady&&$.isReady;return x[19]!==E||x[20]!==N.featuredTextModels||x[21]!==N.getModelInfoByVariantPermaslug||x[22]!==N.getModelInfoByVariantSlug||x[23]!==N.getPrimaryModelInfoByPermaslug||x[24]!==N.hasAvailableModelsError||x[25]!==N.isPrivateModelsLoading||x[26]!==N.isReady||x[27]!==N.modelCount||x[28]!==$.getProviderInfo||x[29]!==$.hasAvailableProvidersError||x[30]!==$.isReady||x[31]!==j||x[32]!==O||x[33]!==I||x[34]!==R||x[35]!==A?(b={modelCount:N.modelCount,privateModels:A,isPrivateModelsLoading:N.isPrivateModelsLoading,hasAvailableModelsError:N.hasAvailableModelsError,availableTextModels:O,featuredTextModels:N.featuredTextModels,getModelInfoByVariantSlug:N.getModelInfoByVariantSlug,getModelInfoByVariantPermaslug:N.getModelInfoByVariantPermaslug,getPrimaryModelInfoByPermaslug:N.getPrimaryModelInfoByPermaslug,getProviderInfo:$.getProviderInfo,getAllProviders:I,getEndpointDisplayName:E,isReady:R,isModelsReady:N.isReady,isAvailableModelsEnabled:j,isProvidersReady:$.isReady,hasAvailableProvidersError:$.hasAvailableProvidersError},x[19]=E,x[20]=N.featuredTextModels,x[21]=N.getModelInfoByVariantPermaslug,x[22]=N.getModelInfoByVariantSlug,x[23]=N.getPrimaryModelInfoByPermaslug,x[24]=N.hasAvailableModelsError,x[25]=N.isPrivateModelsLoading,x[26]=N.isReady,x[27]=N.modelCount,x[28]=$.getProviderInfo,x[29]=$.hasAvailableProvidersError,x[30]=$.isReady,x[31]=j,x[32]=O,x[33]=I,x[34]=R,x[35]=A,x[36]=b):b=x[36],b});e.s(["e",0,g,"S",0,()=>{let e=(0,l.useContext)(h);if(!e)throw Error("useGlobal must be used within a GlobalProvider.");return e},"X",0,()=>(0,l.useContext)(h)??null])},497214,e=>{"use strict";e.i(647204),e.s(["_",0,function(e,t){if(t<=0)throw Error(`chunkArray: size must be positive, got ${t}`);let r=[];for(let n=0;n{let n=e(t),i=e(r);return n&&!i?-1:!n&&i?1:0}},"L",0,e=>{if(void 0!==e)return Array.isArray(e)?e:[e]},"i",0,function(e,t){let r=new Map;return e.forEach(e=>{let n=t(e),i=r.get(n);i?i.push(e):r.set(n,[e])}),Array.from(r,([e,t])=>({key:e,values:t}))},"J",0,function(e,t){let r=null!==t&&t.length>0;if(null===e)return r?t:null;if(!r)return e;let n=new Set(t);return e.filter(e=>n.has(e))},"j",0,function(e){return!!Array.isArray(e)&&e.every(e=>"string"==typeof e)},"E",0,function(e,t){let r=[],n=[];for(let i of e)t(i)?r.push(i):n.push(i);return{true:r,false:n}},"q",0,function(e,t=Math.random){let r=[...e];for(let e=r.length-1;e>0;e--){let n=Math.floor(t()*(e+1));[r[e],r[n]]=[r[n],r[e]]}return r},"C",0,function(e,t){let r=e.findIndex(e=>!t(e));return -1===r?e:e.slice(0,r)},"k",0,e=>e.filter(e=>null!==e),"e",0,function(e){return e.filter(e=>!!e)},"H",0,function(e){return[...new Set(e)]},"F",0,function(e,t){if(!e)return[];let r=new Set;return e.filter(e=>{let n=t(e);return!r.has(n)&&(r.add(n),!0)})}])},209615,e=>{"use strict";var t,r=((t={}).Router="Router",t.Media="Media",t.Other="Other",t.GPT="GPT",t.Claude="Claude",t.Gemini="Gemini",t.Gemma="Gemma",t.Grok="Grok",t.Cohere="Cohere",t.Nova="Nova",t.Qwen="Qwen",t.Yi="Yi",t.DeepSeek="DeepSeek",t.Mistral="Mistral",t.Llama2="Llama2",t.Llama3="Llama3",t.Llama4="Llama4",t.PaLM="PaLM",t.RWKV="RWKV",t.Qwen3="Qwen3",t);e.s(["f",()=>r])},572201,e=>{"use strict";var t=e.i(988590);let r={All:"all",Online:"online",Nitro:"nitro",Floor:"floor",Exacto:"exacto"},n={Free:"free",Extended:"extended",Standard:"standard",Thinking:"thinking",Batch:"batch"},i={...n,...r,SelfMod:"beta"};Object.values(n),e.s(["d",0,n,"e",0,i,"B",0,r,"k",0,function(e,n){if((0,t.q)(n,r))return e;switch(n){case i.SelfMod:case i.Free:case i.Extended:case i.Thinking:case i.Batch:return`${e}:${n}`;case i.Standard:return e;default:return""}},"q",0,":"])}]); //# sourceMappingURL=1y4ipphtn4j12.js.map