(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,215891,e=>{"use strict";var t=e.i(16043);let n=t.forwardRef(function({title:e,titleId:n,...r},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":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"}))});e.s(["f",0,n],215891)},838479,e=>{"use strict";var t=e.i(16043);let n=t.forwardRef(function({title:e,titleId:n,...r},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":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"}))});e.s(["f",0,n],838479)},371604,e=>{"use strict";var t=e.i(16043);let n=t.forwardRef(function({title:e,titleId:n,...r},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":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5m-9-6h.008v.008H12v-.008ZM12 15h.008v.008H12V15Zm0 2.25h.008v.008H12v-.008ZM9.75 15h.008v.008H9.75V15Zm0 2.25h.008v.008H9.75v-.008ZM7.5 15h.008v.008H7.5V15Zm0 2.25h.008v.008H7.5v-.008Zm6.75-4.5h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V15Zm0 2.25h.008v.008h-.008v-.008Zm2.25-4.5h.008v.008H16.5v-.008Zm0 2.25h.008v.008H16.5V15Z"}))});e.s(["f",0,n],371604)},922969,e=>{"use strict";var t=e.i(16043);let n=t.forwardRef(function({title:e,titleId:n,...r},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":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m-3-2.818.879.659c1.171.879 3.07.879 4.242 0 1.172-.879 1.172-2.303 0-3.182C13.536 12.219 12.768 12 12 12c-.725 0-1.45-.22-2.003-.659-1.106-.879-1.106-2.303 0-3.182s2.9-.879 4.006 0l.415.33M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});e.s(["f",0,n],922969)},486704,e=>{"use strict";var t=e.i(16043);let n=t.forwardRef(function({title:e,titleId:n,...r},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":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 11.25v8.25a1.5 1.5 0 0 1-1.5 1.5H5.25a1.5 1.5 0 0 1-1.5-1.5v-8.25M12 4.875A2.625 2.625 0 1 0 9.375 7.5H12m0-2.625V7.5m0-2.625A2.625 2.625 0 1 1 14.625 7.5H12m0 0V21m-8.625-9.75h18c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125h-18c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z"}))});e.s(["f",0,n],486704)},338749,e=>{"use strict";var t=e.i(16043);let n=t.forwardRef(function({title:e,titleId:n,...r},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":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18v-5.25m0 0a6.01 6.01 0 0 0 1.5-.189m-1.5.189a6.01 6.01 0 0 1-1.5-.189m3.75 7.478a12.06 12.06 0 0 1-4.5 0m3.75 2.383a14.406 14.406 0 0 1-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 1 0-7.517 0c.85.493 1.509 1.333 1.509 2.316V18"}))});e.s(["f",0,n],338749)},778553,e=>{"use strict";var t=e.i(16043);let n=t.forwardRef(function({title:e,titleId:n,...r},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":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"}))});e.s(["f",0,n],778553)},653432,e=>{"use strict";var t=e.i(16043);let n=t.forwardRef(function({title:e,titleId:n,...r},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":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3"}))});e.s(["f",0,n],653432)},962363,e=>{"use strict";var t=e.i(651681);let n={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r])},934416,e=>{"use strict";var t=e.i(962363);e.s(["f",()=>t.f])},721289,e=>{"use strict";var t=e.i(651681);let n={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r])},161145,e=>{"use strict";var t=e.i(721289);e.s(["f",()=>t.f])},94409,e=>{"use strict";var t=e.i(651681);let n={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],94409)},68570,e=>{"use strict";var t=e.i(651681);let n={name:"file",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"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],68570)},36238,e=>{"use strict";var t=e.i(782775);e.s(["f",()=>t.f])},129258,e=>{"use strict";var t=e.i(651681);let n={name:"newspaper",size:24,node:[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r],129258)},747236,e=>{"use strict";var t=e.i(651681);let n={name:"shield-check",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 12 2 2 4-4",key:"dzmm74"}]]};n.node;let r=(0,t.f)(n);e.s(["f",0,r])},110513,e=>{"use strict";var t=e.i(747236);e.s(["f",()=>t.f])},767451,e=>{"use strict";var t=e.i(7156);e.s(["f",()=>t.f])},357321,e=>{"use strict";var t=e.i(651681);let n={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};n.node;let r=(0,t.f)(n);e.s(["f",0,r])},895377,e=>{"use strict";var t=e.i(357321);e.s(["f",()=>t.f])},168639,e=>{"use strict";var t,n,r,i,a,o,s,l=e.i(790294),c=e.i(16043),u=(t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),d="__POSTHOG_REACT_SHARED_STATE__",f="u">typeof globalThis?globalThis:"u">typeof window?window:{};try{o=f[d]=f[d]||new WeakMap}catch(e){o=new WeakMap}o.has(c.createContext)||o.set(c.createContext,{});var m=o.get(c.createContext);m.context||(m.context=(0,c.createContext)({get client(){return s||m.defaultPostHogInstance},bootstrap:void 0}));var p=m.context,g=function(e){return"function"==typeof e},h=function(e){var t=Object.prototype.toString.call(e);return e instanceof Error||"[object Error]"===t||"[object Exception]"===t||"[object DOMException]"===t||"[object DOMError]"===t},v=function(e,t){try{Object.defineProperty(e,"name",{value:t,writable:!0,enumerable:!0,configurable:!0})}catch(e){}},x=function(e,t){for(var n=new WeakSet,r=e;!n.has(r);){if(n.add(r),!h(r.cause)){void 0!==r.cause&&(t.cause=r.cause),r.cause=t;return}r=r.cause}},b=function(e,t){if(!t)return e;var n=Error(h(e)?e.message:"Primitive value captured as exception: ".concat(String(e)));return(v(n,"React ErrorBoundary ".concat(h(e)?e.name:"Error")),n.stack=t,h(e))?(x(e,n),e):n},y={componentStack:null,exceptionEvent:null,error:null};n=a=function(e){function t(t){var n=e.call(this,t)||this;return n._resetError=function(){n.setState(y)},n.state=y,n}return u(t,e),t.prototype.componentDidCatch=function(e,t){var n,r=this.props.additionalProperties;g(r)?n=r(e,t):"object"==typeof r&&(n=r);var i=this.context.client,a=t.componentStack,o=i.captureException(b(e,a),n);this.setState({error:e,componentStack:null!=a?a:null,exceptionEvent:o})},t.prototype.render=function(){var e=this.props,t=e.children,n=e.fallback,r=this.state;if(null==r.componentStack)return g(t)?t():t;var i=g(n)?c.default.createElement(n,{error:r.error,componentStack:r.componentStack,exceptionEvent:r.exceptionEvent,resetError:this._resetError}):n;return c.default.isValidElement(i)?i:(console.warn("[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."),c.default.createElement(c.default.Fragment,null))},t}(c.default.Component),"symbol"==typeof(r="PostHogErrorBoundary")&&(r=r.description?"[".concat(r.description,"]"):""),Object.defineProperty(n,"name",{configurable:!0,value:r}),a.contextType=p,i=l.f,m.defaultPostHogInstance&&m.defaultPostHogInstance!==s||(m.defaultPostHogInstance=i),s=i,e.s(["f",0,function(){return(0,c.useContext)(p).client}])},579841,e=>{"use strict";var t=e.i(667417);let n=new Set([t.j.Embeddings,t.j.Rerank,t.j.Decisions,t.j.TTS,t.j.Transcription]);t.j.Embeddings,t.j.Rerank,t.j.Decisions;let r=new Set([t.j.Text,t.j.Image]);function i(e){return 0===e.length||e.some(e=>r.has(e))&&!e.some(e=>n.has(e))}function a(e){return e.includes(t.j.Video)&&!i(e)}e.s(["l",0,function(e){return 0===e.output_modalities.length?e.has_text_output:e.output_modalities.includes(t.j.Text)},"L",0,function(e){return i(e)||a(e)},"a",0,i,"W",0,a])},481066,e=>{"use strict";var t=e.i(572201),n=e.i(195759);e.s(["f",0,(e,{shorten:r=!1,keepNote:i=!1,preserveVariant:a=!1}={})=>{if(!r&&!0===i)return e;let o=e.split(": ")[1]||e;if(i)return o;let s=o.split(" (")[0];if(!a)return s;let l=Object.values(t.e).filter(e=>e!==t.d.Standard&&e!==t.e.All).map(e=>(0,n.x)(e)),c=[...o.matchAll(/\(([^()]*)\)/g)].filter(([,e])=>l.some(t=>0===t.localeCompare(e??"",void 0,{sensitivity:"accent"}))).map(([,e])=>`(${e})`);return`${s}${c.length>0?` ${c.join(" ")}`:""}`}])},195759,e=>{"use strict";var t=e.i(988590),n=e.i(572201),r=e.i(983739);function i(e,t){switch(t){case n.e.SelfMod:return`${e.name} (self-moderated)`;case n.e.Standard:case n.e.All:return e.name;case n.e.Free:case n.e.Nitro:case n.e.Floor:case n.e.Extended:case n.e.Exacto:case n.e.Online:case n.e.Thinking:case n.e.Batch:return`${e.name} (${t})`;default:return""}}let a=(e,r)=>{let i=e.split(n.q).slice(1),a=[];for(let e of i)(0,t.q)(e,r)&&a.push(e);return a},o={Nitro:n.B.Nitro,Floor:n.B.Floor,Exacto:n.B.Exacto},s={[o.Nitro]:r.f.Throughput,[o.Floor]:r.f.Price,[o.Exacto]:r.f.Exacto};e.s(["P",0,s,"K",0,o,"s",0,function(e,t){let n=i({name:""},t);return""===n?{name:e.name,short_name:e.short_name}:{name:e.name.endsWith(n)?e.name.slice(0,-n.length):e.name,short_name:e.short_name.endsWith(n)?e.short_name.slice(0,-n.length):e.short_name}},"_",0,e=>{let r;return((r=a(e,n.B)).length>0?r:[n.e.All]).findLast(e=>(0,t.q)(e,o))},"z",0,e=>a(e,n.d)[0]??n.e.Standard,"I",0,function(e,t){return e.short_name.includes(`(${t})`)?e.short_name:i(e,t).split(":")[1]?.trim()??e.short_name},"x",0,function(e){switch(e){case n.e.Free:return"Free";case n.e.Nitro:return"Nitro";case n.e.Floor:return"Floor";case n.e.Extended:return"Extended";case n.e.Exacto:return"Exacto";case n.e.Standard:return"Standard";case n.e.Online:return"Online";case n.e.All:return"All";case n.e.Thinking:return"Thinking";case n.e.Batch:return"Batch";case n.e.SelfMod:return"Self-Moderated";default:return""}}])},4763,282104,e=>{"use strict";var t=e.i(497214),n=e.i(988590),r=e.i(615199);let i={[r.$.Age18Plus]:{label:"18+ age confirmation",statement:"I confirm that I am 18 years of age or older.",organizationStatement:"Confirm that all users in this organization meet the 18+ age requirement.",grant:r.b.SelfAttested},[r.$.PrivilegedModelAccess]:{label:"Privileged model access approval",statement:"This account is approved by OpenRouter to use privileged models.",organizationStatement:"This organization is approved by OpenRouter to use privileged models.",grant:r.b.Reviewed}},a=Object.values(r.$).filter(e=>o(e));function o(e){return i[e].grant===r.b.SelfAttested}e.s(["e",0,a,"w",0,o,"W",0,function(e){let{true:i,false:a}=(0,t.E)([...e],e=>(0,n.q)(e,r.$));return{known:i,unknown:a}}],282104);let s="/settings/preferences",l=`https://openrouter.ai${s}`;r.b.SelfAttested,r.b.Reviewed,e.s(["W",0,s,"k",0,l,"r",0,function(e,t){if(0===e.length)return[];let n=new Set(t);return e.filter(e=>!n.has(e))}],4763)},615199,e=>{"use strict";e.s(["b",0,{SelfAttested:"self_attested",Reviewed:"reviewed"},"x",0,{User:"user",Org:"org"},"$",0,{Age18Plus:"age_18plus",PrivilegedModelAccess:"privileged_model_access"}])},293859,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(136562),i=e.i(73867),a=e.i(246601),o=e.i(207298),s=e.i(16043);function l(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function c(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let r=e[n],i=t[n];return"function"==typeof r?`${r}`==`${i}`:l(r)&&l(i)?c(r,i):r===i})}function u(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function d(e){return"number"==typeof e}function f(e){return"string"==typeof e}function m(e){return"boolean"==typeof e}function p(e){return"[object Object]"===Object.prototype.toString.call(e)}function g(e){return Math.abs(e)}function h(e){return Math.sign(e)}function v(e){return j(e).map(Number)}function x(e){return e[b(e)]}function b(e){return Math.max(0,e.length-1)}function y(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function j(e){return Object.keys(e)}function w(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function z(){let e=[],t={add:function(n,r,i,a={passive:!0}){let o;return"addEventListener"in n?(n.addEventListener(r,i,a),o=()=>n.removeEventListener(r,i,a)):(n.addListener(i),o=()=>n.removeListener(i)),e.push(o),t},clear:function(){e=e.filter(e=>e())}};return t}function _(e=0,t=0){let n=g(e-t);function r(n){return nt}return{length:n,max:t,min:e,constrain:function(n){return r(n)?nt},reachedMin:function(t){return t(j(n).forEach(r=>{let i=t[r],a=n[r],o=p(i)&&p(a);t[r]=o?e(i,a):a}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},i=j(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,i)},optionsMediaQueries:function(t){return t.map(e=>j(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(E),A=(u=[],{init:function(e,t){return(u=t.filter(({options:e})=>!1!==P.optionsAtMedia(e).active)).forEach(t=>t.init(e,P)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){u=u.filter(e=>e.destroy())}}),D=z(),L=(i={},a={init:function(e){r=e},emit:function(e){return(i[e]||[]).forEach(t=>t(r,e)),a},off:function(e,t){return i[e]=(i[e]||[]).filter(e=>e!==t),a},on:function(e,t){return i[e]=(i[e]||[]).concat([t]),a},clear:function(){i={}}}),{mergeOptions:C,optionsAtMedia:I,optionsMediaQueries:R}=P,{on:V,off:O,emit:q}=L,F=!1,B=C(T,M.globalOptions),$=C(B),W=[];function U(t,n){F||($=I(B=C(B,t)),W=n||W,function(){let{container:t,slides:n}=$;l=(f(t)?e.querySelector(t):t)||e.children[0];let r=f(n)?l.querySelectorAll(n):n;c=[].slice.call(r||l.children)}(),o=function t(n){let r=function(e,t,n,r,i,a,o){var s,l;let c,u,p,T,M,N,E,P,A,D,L,C,I,R,{align:V,axis:O,direction:q,startIndex:F,loop:B,duration:$,dragFree:W,dragThreshold:U,inViewThreshold:H,slidesToScroll:Z,skipSnaps:G,containScroll:K,watchResize:Q,watchSlides:Y,watchDrag:X,watchFocus:J}=a,ee={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}},et=ee.measure(t),en=n.map(ee.measure),er=(u="rtl"===q,T=(p="y"===O)||!u?1:-1,M=p?"top":u?"right":"left",N=p?"bottom":u?"left":"right",{scroll:p?"y":"x",cross:p?"x":"y",startEdge:M,endEdge:N,measureSize:function(e){let{height:t,width:n}=e;return p?t:n},direction:function(e){return e*T}}),ei=er.measureSize(et),ea={measure:function(e){return e/100*ei}},eo=(s=V,l=ei,c={start:function(){return 0},center:function(e){return(l-e)/2},end:function(e){return l-e}},{measure:function(e,t){return f(s)?c[s](e):s(l,e,t)}}),es=!B&&!!K,{slideSizes:el,slideSizesWithGaps:ec,startGap:eu,endGap:ed}=function(e,t,n,r,i,a){let{measureSize:o,startEdge:s,endEdge:l}=e,c=n[0]&&i,u=function(){if(!c)return 0;let e=n[0];return g(t[s]-e[s])}(),d=c?parseFloat(a.getComputedStyle(x(r)).getPropertyValue(`margin-${l}`)):0,f=n.map(o),m=n.map((e,t,n)=>{let r=t===b(n);return t?r?f[t]+d:n[t+1][s]-e[s]:f[t]+u}).map(g);return{slideSizes:f,slideSizesWithGaps:m,startGap:u,endGap:d}}(er,et,en,n,B||!!K,i),ef=function(e,t,n,r,i,a,o,s){let{startEdge:l,endEdge:c,direction:u}=e,f=d(n);return{groupSlides:function(e){return f?v(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?v(e).reduce((n,d,f)=>{let m=x(n)||0,p=d===b(e),h=i[l]-a[m][l],v=i[l]-a[d][c],y=r||0!==m?0:u(o),j=g(v-(!r&&p?u(s):0)-(h+y));return f&&j>t+2&&n.push(d),p&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}}}(er,ei,Z,B,et,en,eu,ed),{snaps:em,snapsAligned:ep}=function(e,t,n,r,i){let{startEdge:a,endEdge:o}=e,{groupSlides:s}=i,l=s(r).map(e=>x(e)[o]-e[0][a]).map(g).map(t.measure),c=r.map(e=>n[a]-e[a]).map(e=>-g(e)),u=s(c).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:c,snapsAligned:u}}(er,eo,et,en,ef),eg=-x(em)+x(ec),{snapsContained:eh,scrollContainLimit:ev}=function(e,t,n,r){let i,a,o=_(-t+e,0),s=n.map((e,t)=>{let{min:r,max:i}=o,a=o.constrain(e),s=t===b(n);return t?s||function(e,t){return 1>=g(e-t)}(r,a)?r:function(e,t){return 1>=g(e-t)}(i,a)?i:a:i}).map(e=>parseFloat(e.toFixed(3))),l=(i=s[0],a=x(s),_(s.lastIndexOf(i),s.indexOf(a)+1));return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===r)return s;let{min:n,max:i}=l;return s.slice(n,i)}(),scrollContainLimit:l}}(ei,eg,ep,K),ex=es?eh:ep,{limit:eb}=(E=ex[0],{limit:_(B?E-eg:x(ex),E)}),ey=function e(t,n,r){let{constrain:i}=_(0,t),a=t+1,o=s(n);function s(e){return r?g((a+e)%a):i(e)}function l(){return e(t,o,r)}let c={get:function(){return o},set:function(e){return o=s(e),c},add:function(e){return l().set(o+e)},clone:l};return c}(b(ex),F,B),ej=ey.clone(),ew=v(n),ez=function(e,t,n,r){let i=z(),a=1e3/60,o=null,s=0,l=0;function c(e){if(!l)return;o||(o=e,n(),n());let i=e-o;for(o=e,s+=i;s>=a;)n(),s-=a;r(s/a),l&&(l=t.requestAnimationFrame(c))}function u(){t.cancelAnimationFrame(l),o=null,s=0,l=0}return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(o=null,s=0)})},destroy:function(){u(),i.clear()},start:function(){l||(l=t.requestAnimationFrame(c))},stop:u,update:n,render:r}}(r,i,()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(eR),e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:a,slideLooper:o,dragHandler:s,animation:l,eventHandler:c,scrollBounds:u,options:{loop:d}},f)=>{let m=e.settled(),p=!u.shouldConstrain(),g=d?m:m&&p,h=g&&!s.pointerDown();h&&l.stop();let v=n.get()*f+i.get()*(1-f);r.set(v),d&&(a.loop(e.direction()),o.loop()),t.to(r.get()),h&&c.emit("settle"),g||c.emit("scroll")})(eR,e)),e_=ex[ey.get()],ek=k(e_),eS=k(e_),eT=k(e_),eM=k(e_),eN=function(e,t,n,r,i){let a=0,o=0,s=i,l=.68,c=e.get(),u=0;function d(e){return s=e,m}function f(e){return l=e,m}let m={direction:function(){return o},duration:function(){return s},velocity:function(){return a},seek:function(){let t=r.get()-e.get(),i=0;return s?(n.set(e),a+=t/s,a*=l,c+=a,e.add(a),i=c-u):(a=0,n.set(r),e.set(r),i=t),o=h(i),u=c,m},settled:function(){return .001>g(r.get()-t.get())},useBaseFriction:function(){return f(.68)},useBaseDuration:function(){return d(i)},useFriction:f,useDuration:d};return m}(ek,eT,eS,eM,$),eE=function(e,t,n,r,i){let{reachedAny:a,removeOffset:o,constrain:s}=r;function l(e){return e.concat().sort((e,t)=>g(e)-g(t))[0]}function c(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return l(i);let a=i.filter(e=>h(e)===r);return a.length?l(a):x(i)-n}return{byDistance:function(n,r){let l=i.get()+n,{index:u,distance:d}=function(n){let r=e?o(n):s(n),{index:i}=t.map((e,t)=>({diff:c(e-r,0),index:t})).sort((e,t)=>g(e.diff)-g(t.diff))[0];return{index:i,distance:r}}(l),f=!e&&a(l);if(!r||f)return{index:u,distance:n};let m=n+c(t[u]-d,0);return{index:u,distance:m}},byIndex:function(e,n){let r=c(t[e]-i.get(),n);return{index:e,distance:r}},shortcut:c}}(B,ex,eg,eb,eM),eP=function(e,t,n,r,i,a,o){function s(i){let s=i.distance,l=i.index!==t.get();a.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(n.set(t.get()),t.set(i.index),o.emit("select"))}return{distance:function(e,t){s(i.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);s(i.byIndex(r.get(),n))}}}(ez,ey,ej,eN,eE,eM,o),eA=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(eb),eD=z(),eL=(A={},D=null,L=null,C=!1,{init:function(){P=new IntersectionObserver(e=>{C||(e.forEach(e=>{A[n.indexOf(e.target)]=e}),D=null,L=null,o.emit("slidesInView"))},{root:t.parentElement,threshold:H}),n.forEach(e=>P.observe(e))},destroy:function(){P&&P.disconnect(),C=!0},get:function(e=!0){if(e&&D)return D;if(!e&&L)return L;let t=j(A).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:i}=A[r];return(e&&i||!e&&!i)&&t.push(r),t},[]);return e&&(D=t),e||(L=t),t}}),{slideRegistry:eC}=function(e,t,n,r,i,a){let o,{groupSlides:s}=i,{min:l,max:c}=r;return{slideRegistry:(o=s(a),1===n.length?[a]:e&&"keepSnaps"!==t?o.slice(l,c).map((e,t,n)=>{let r=t===b(n);return t?r?y(b(a)-x(n)[0]+1,x(n)[0]):e:y(x(n[0])+1)}):o)}}(es,K,ex,ev,ef,ew),eI=function(e,t,n,r,i,a,o,s){let l={passive:!0,capture:!0},c=0;function u(e){"Tab"===e.code&&(c=new Date().getTime())}return{init:function(f){s&&(a.add(document,"keydown",u,!1),t.forEach((t,u)=>{a.add(t,"focus",t=>{(m(s)||s(f,t))&&function(t){if(new Date().getTime()-c>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;let a=n.findIndex(e=>e.includes(t));d(a)&&(i.useDuration(0),r.index(a,0),o.emit("slideFocus"))}(u)},l)}))}}}(e,n,eC,eP,eN,eD,o,J),eR={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:et,slideRects:en,animation:ez,axis:er,dragHandler:function(e,t,n,r,i,a,o,s,l,c,u,d,f,p,v,x,b,y){let{cross:j,direction:k}=e,S=["INPUT","SELECT","TEXTAREA"],T={passive:!1},M=z(),N=z(),E=_(50,225).constrain(p.measure(20)),P={mouse:300,touch:400},A={mouse:500,touch:600},D=v?43:25,L=!1,C=0,I=0,R=!1,V=!1,O=!1,q=!1;function F(e){if(!w(e,r)&&e.touches.length>=2)return B(e);let t=a.readPoint(e),n=a.readPoint(e,j),o=g(t-C),l=g(n-I);if(!V&&!q&&(!e.cancelable||!(V=o>l)))return B(e);let u=a.pointerMove(e);o>x&&(O=!0),c.useFriction(.3).useDuration(.75),s.start(),i.add(k(u)),e.preventDefault()}function B(e){var t;let n,r,i=u.byDistance(0,!1).index!==d.get(),o=a.pointerUp(e)*(v?A:P)[q?"mouse":"touch"],s=(t=k(o),n=d.add(-1*h(t)),r=u.byDistance(t,!v).distance,v||g(t)e.preventDefault(),T).add(t,"touchmove",()=>void 0,T).add(t,"touchend",()=>void 0).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",B).add(t,"contextmenu",B).add(t,"click",$,!0);function s(s){(m(y)||y(e,s))&&function(e){let s,l=w(e,r);if((q=l,O=v&&l&&!e.buttons&&L,L=g(i.get()-o.get())>=2,!l||0===e.button)&&(s=e.target.nodeName||"",!S.includes(s))){let r;R=!0,a.pointerDown(e),c.useFriction(0).useDuration(0),i.set(o),r=q?n:t,N.add(r,"touchmove",F,T).add(r,"touchend",B).add(r,"mousemove",F,T).add(r,"mouseup",B),C=a.readPoint(e),I=a.readPoint(e,j),f.emit("pointerDown")}}(s)}},destroy:function(){M.clear(),N.clear()},pointerDown:function(){return R}}}(er,e,r,i,eM,function(e,t){let n,r;function i(e){return e.timeStamp}function a(n,r){let i=r||e.scroll,a=`client${"x"===i?"X":"Y"}`;return(w(n,t)?n:n.touches[0])[a]}return{pointerDown:function(e){return n=e,r=e,a(e)},pointerMove:function(e){let t=a(e)-a(r),o=i(e)-i(n)>170;return r=e,o&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=a(r)-a(n),o=i(e)-i(n),s=i(e)-i(r)>170,l=t/o;return o&&!s&&g(l)>.1?l:0},readPoint:a}}(er,i),ek,ez,eP,eN,eE,ey,o,ea,W,U,G,X),eventStore:eD,percentOfView:ea,index:ey,indexPrevious:ej,limit:eb,location:ek,offsetLocation:eT,previousLocation:eS,options:a,resizeHandler:function(e,t,n,r,i,a,o){let s,l,c=[e].concat(r),u=[],d=!1;function f(e){return i.measureSize(o.measure(e))}return{init:function(i){a&&(l=f(e),u=r.map(f),s=new ResizeObserver(n=>{(m(a)||a(i,n))&&function(n){for(let a of n){if(d)return;let n=a.target===e,o=r.indexOf(a.target),s=n?l:u[o];if(g(f(n?e:r[o])-s)>=.5){i.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{c.forEach(e=>s.observe(e))}))},destroy:function(){d=!0,s&&s.disconnect()}}}(t,o,i,n,er,Q,ee),scrollBody:eN,scrollBounds:function(e,t,n,r,i){let a=i.measure(10),o=i.measure(50),s=_(.1,.99),l=!1;function c(){return!l&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:c,constrain:function(i){if(!c())return;let l=e.reachedMin(t.get())?"min":"max",u=g(e[l]-t.get()),d=n.get()-t.get(),f=s.constrain(u/o);n.subtract(d*f),!i&&g(d)e.add(o))}}}(eg,eb,eT,[ek,eT,eS,eM]),scrollProgress:eA,scrollSnapList:ex.map(eA.get),scrollSnaps:ex,scrollTarget:eE,scrollTo:eP,slideLooper:function(e,t,n,r,i,a,o,s,l){let c=v(i),u=v(i).reverse(),d=p(m(u,o[0]),n,!1).concat(p(m(c,t-o[0]-1),-n,!0));function f(e,t){return e.reduce((e,t)=>e-i[t],t)}function m(e,t){return e.reduce((e,n)=>f(e,t)>0?e.concat([n]):e,[])}function p(i,o,c){let u=a.map((e,n)=>({start:e-r[n]+.5+o,end:e+t-.5+o}));return i.map(t=>{let r=c?0:-n,i=c?n:0,a=u[t][c?"end":"start"];return{index:t,loopPoint:a,slideLocation:k(-1),translate:S(e,l[t]),target:()=>s.get()>a?r:i}})}return{canLoop:function(){return d.every(({index:e})=>.1>=f(c.filter(t=>t!==e),t))},clear:function(){d.forEach(e=>e.translate.clear())},loop:function(){d.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})},loopPoints:d}}(er,ei,eg,el,ec,em,ex,eT,n),slideFocus:eI,slidesHandler:(R=!1,{init:function(e){Y&&(I=new MutationObserver(t=>{!R&&(m(Y)||Y(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),o.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){I&&I.disconnect(),R=!0}}),slidesInView:eL,slideIndexes:ew,slideRegistry:eC,slidesToScroll:ef,target:eM,translate:S(er,t)};return eR}(e,l,c,N,E,n,L);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}($),R([B,...W.map(({options:e})=>e)]).forEach(e=>D.add(e,"change",H)),$.active&&(o.translate.to(o.location.get()),o.animation.init(),o.slidesInView.init(),o.slideFocus.init(Q),o.eventHandler.init(Q),o.resizeHandler.init(Q),o.slidesHandler.init(Q),o.options.loop&&o.slideLooper.loop(),l.offsetParent&&c.length&&o.dragHandler.init(Q),s=A.init(Q,W)))}function H(e,t){let n=K();Z(),U(C({startIndex:n},e),t),L.emit("reInit")}function Z(){o.dragHandler.destroy(),o.eventStore.clear(),o.translate.clear(),o.slideLooper.clear(),o.resizeHandler.destroy(),o.slidesHandler.destroy(),o.slidesInView.destroy(),o.animation.destroy(),A.destroy(),D.clear()}function G(e,t,n){$.active&&!F&&(o.scrollBody.useBaseFriction().useDuration(!0===t?0:$.duration),o.scrollTo.index(e,n||0))}function K(){return o.index.get()}let Q={canScrollNext:function(){return o.index.add(1).get()!==K()},canScrollPrev:function(){return o.index.add(-1).get()!==K()},containerNode:function(){return l},internalEngine:function(){return o},destroy:function(){F||(F=!0,D.clear(),Z(),L.emit("destroy"),L.clear())},off:O,on:V,emit:q,plugins:function(){return s},previousScrollSnap:function(){return o.indexPrevious.get()},reInit:H,rootNode:function(){return e},scrollNext:function(e){G(o.index.add(1).get(),e,-1)},scrollPrev:function(e){G(o.index.add(-1).get(),e,1)},scrollProgress:function(){return o.scrollProgress.get(o.offsetLocation.get())},scrollSnapList:function(){return o.scrollSnapList},scrollTo:G,selectedScrollSnap:K,slideNodes:function(){return c},slidesInView:function(){return o.slidesInView.get()},slidesNotInView:function(){return o.slidesInView.get(!1)}};return U(t,n),setTimeout(()=>L.emit("init"),0),Q}function N(e={},t=[]){let n=(0,s.useRef)(e),r=(0,s.useRef)(t),[i,a]=(0,s.useState)(),[o,l]=(0,s.useState)(),d=(0,s.useCallback)(()=>{i&&i.reInit(n.current,r.current)},[i]);return(0,s.useEffect)(()=>{c(n.current,e)||(n.current=e,d())},[e,d]),(0,s.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=u(e),r=u(t);return n.every((e,t)=>c(e,r[t]))}(r.current,t)&&(r.current=t,d())},[t,d]),(0,s.useEffect)(()=>{if("u">typeof window&&window.document&&window.document.createElement&&o){M.globalOptions=N.globalOptions;let e=M(o,n.current,r.current);return a(e),()=>e.destroy()}a(void 0)},[o,a]),[l,i]}function E(){return(E=Object.assign||function(e){for(var t=1;ttypeof window&&window.innerHeight||800],C=[-1,-1,-1],I=D({preventWheelAction:!0,reverseSign:[!0,!0,!1]});function R(){return{isStarted:!1,isStartPublished:!1,isMomentum:!1,startTime:0,lastAbsDelta:1/0,axisMovement:[0,0,0],axisVelocity:[0,0,0],accelerationFactors:[],scrollPoints:[],scrollPointsToMerge:[],willEndTimeout:400}}let V=function(e){void 0===e&&(e={});var t,n,r,i,a,o=function(){var e={};function t(t,n){e[t]=(e[t]||[]).filter(function(e){return e!==n})}return D({on:function(n,r){return e[n]=(e[n]||[]).concat(r),function(){return t(n,r)}},off:t,dispatch:function(t,n){t in e&&e[t].forEach(function(e){return e(n)})}})}(),s=o.on,l=o.off,c=o.dispatch,u=I,d=R(),f=!1,m=function(e){Array.isArray(e)?e.forEach(function(e){return v(e)}):v(e)},p=function(e){return(void 0===e&&(e={}),Object.values(e).some(function(e){return null==e}))?u:u=D(E({},I,u,e))},g=function(e){var t=E({event:i,isStart:!1,isEnding:!1,isMomentumCancel:!1,isMomentum:d.isMomentum,axisDelta:[0,0,0],axisVelocity:d.axisVelocity,axisMovement:d.axisMovement,get axisMovementProjection(){return P(t.axisMovement,t.axisVelocity.map(function(e){var t;return void 0===t&&(t=.996),e*t/(1-t)}))}},e);c("wheel",E({},t,{previous:a})),a=t},h=function(e,t){var n=u.preventWheelAction,r=t[0],i=t[1],a=t[2];if("boolean"==typeof n)return n;switch(n){case"x":return Math.abs(r)>=e;case"y":return Math.abs(i)>=e;case"z":return Math.abs(a)>=e;default:return!1}},v=function(e){var t,n,r,a,o=(a=function(e,t){if(!t)return e;var n=!0===t?C:t.map(function(e){return e?-1:1});return E({},e,{axisDelta:e.axisDelta.map(function(e,t){return e*n[t]})})}((t=e.deltaX*L[e.deltaMode],n=e.deltaY*L[e.deltaMode],r=(e.deltaZ||0)*L[e.deltaMode],{timeStamp:e.timeStamp,axisDelta:[t,n,r]}),u.reverseSign),E({},a,{axisDelta:a.axisDelta.map(function(e){return Math.min(Math.max(-700,e),700)})})),s=o.axisDelta,l=o.timeStamp,c=A(s);if(e.preventDefault&&h(c,s)&&e.preventDefault(),d.isStarted?d.isMomentum&&c>Math.max(2,2*d.lastAbsDelta)&&(T(!0),k()):k(),0===c&&Object.is&&Object.is(e.deltaX,-0)){f=!0;return}i=e,d.axisMovement=P(d.axisMovement,s),d.lastAbsDelta=c,d.scrollPointsToMerge.push({axisDelta:s,timeStamp:l}),x(),g({axisDelta:s,isStart:!d.isStartPublished}),d.isStartPublished=!0,S()},x=function(){if(2===d.scrollPointsToMerge.length){var e;d.scrollPoints.unshift({axisDeltaSum:d.scrollPointsToMerge.map(function(e){return e.axisDelta}).reduce(P),timeStamp:(e=d.scrollPointsToMerge.map(function(e){return e.timeStamp})).reduce(function(e,t){return e+t})/e.length}),y(),d.scrollPointsToMerge.length=0,d.scrollPoints.length=1,d.isMomentum||z()}else d.isStartPublished||b()},b=function(){var e;d.axisVelocity=(e=d.scrollPointsToMerge)[e.length-1].axisDelta.map(function(e){return e/d.willEndTimeout})},y=function(){var e=d.scrollPoints,t=e[0],n=e[1];if(n&&t){var r=t.timeStamp-n.timeStamp;if(r<=0)return;var i=t.axisDeltaSum.map(function(e){return e/r}),a=i.map(function(e,t){return e/(d.axisVelocity[t]||1)});d.axisVelocity=i,d.accelerationFactors.push(a),j(r)}},j=function(e){var t=10*Math.ceil(e/10)*1.2;d.isMomentum||(t=Math.max(100,2*t)),d.willEndTimeout=Math.min(1e3,Math.round(t))},w=function(e){return 0===e||e<=.96&&e>=.6},z=function(){if(d.accelerationFactors.length>=5){if(f&&(f=!1,A(d.axisVelocity)>=.2))return void _();var e=d.accelerationFactors.slice(-5);e.every(function(e){var t=!!e.reduce(function(e,t){return e&&e<1&&e===t?1:0}),n=e.filter(w).length===e.length;return t||n})&&_(),d.accelerationFactors=e}},_=function(){d.isMomentum=!0},k=function(){(d=R()).isStarted=!0,d.startTime=Date.now(),a=void 0,f=!1},S=function(){clearTimeout(t),t=setTimeout(T,d.willEndTimeout)},T=function(e){void 0===e&&(e=!1),d.isStarted&&(d.isMomentum&&e?g({isEnding:!0,isMomentumCancel:!0}):g({isEnding:!0}),d.isMomentum=!1,d.isStarted=!1)},M=(n=[],D({observe:function(e){return e.addEventListener("wheel",m,{passive:!1}),n.push(e),function(){return r(e)}},unobserve:r=function(e){e.removeEventListener("wheel",m),n=n.filter(function(t){return t!==e})},disconnect:function(){n.forEach(r)}})),N=M.observe,V=M.unobserve,O=M.disconnect;return p(e),D({on:s,off:l,observe:N,unobserve:V,disconnect:O,feedWheel:m,updateOptions:p})};var O={active:!0,breakpoints:{},wheelDraggingClass:"is-wheel-dragging",forceWheelAxis:void 0,target:void 0};function q(e){void 0===e&&(e={});var t,n=function(){};return{name:"wheelGestures",options:e,init:function(r,i){var a,o,s,l=i.mergeOptions,c=i.optionsAtMedia,u=l(O,q.globalOptions);t=c(l(u,e));var d=r.internalEngine(),f=null!=(a=t.target)?a:r.containerNode().parentNode,m=null!=(o=t.forceWheelAxis)?o:d.options.axis,p=V({preventWheelAction:m,reverseSign:[!0,!0,!1]});function g(){y=("x"===m?d.containerRect.width:d.containerRect.height)/2}var h=p.observe(f),v=p.on("wheel",function(e){var r=e.axisDelta,i=r[0],a=r[1],o="x"===m?i:a,l="x"===m?a:i,c=e.isMomentum&&e.previous&&!e.previous.isMomentum,u=e.isEnding&&!e.isMomentum||c;!(Math.abs(o)>Math.abs(l))||x||e.isMomentum||j||function(e){try{s=new MouseEvent("mousedown",e.event),S(s)}catch(e){return n()}x=!0,b=0,document.documentElement.addEventListener("mousemove",_,!0),document.documentElement.addEventListener("mouseup",_,!0),document.documentElement.addEventListener("mousedown",_,!0),t.wheelDraggingClass&&f.classList.add(t.wheelDraggingClass)}(e),j&&e.isEnding&&(j=!1),x&&!function(e){var t=T(e),n=t.isAtBoundary,r=t.primaryAxisDelta;if(n&&!e.isMomentum){if((b+=Math.abs(r))>y)return j=!0,w(e),!0}else b=0;return!1}(e)&&(u?w(e):S(k("mousemove",e)))}),x=!1,b=0,y=0,j=!1;function w(e){x=!1,S(k("mouseup",e)),z(),t.wheelDraggingClass&&f.classList.remove(t.wheelDraggingClass)}function z(){document.documentElement.removeEventListener("mousemove",_,!0),document.documentElement.removeEventListener("mouseup",_,!0),document.documentElement.removeEventListener("mousedown",_,!0)}function _(e){x&&e.isTrusted&&e.stopImmediatePropagation()}function k(e,t){if(m===d.options.axis){var n,r,i=t.axisMovement;n=i[0],r=i[1]}else{var a=t.axisMovement;r=a[0],n=a[1]}if(T(t).isAtBoundary){var o=Math.min(b/y,1),l=b*(n>0?-1:1)*(.25+.5*o);n+=l,r+=l}if(!d.options.skipSnaps&&!d.options.dragFree){var c=d.containerRect.width,u=d.containerRect.height;n=n<0?Math.max(n,-c):Math.min(n,c),r=r<0?Math.max(r,-u):Math.min(r,u)}return new MouseEvent(e,{clientX:s.clientX+n,clientY:s.clientY+r,screenX:s.screenX+n,screenY:s.screenY+r,movementX:n,movementY:r,button:0,bubbles:!0,cancelable:!0,composed:!0})}function S(e){r.containerNode().dispatchEvent(e)}function T(e){var t=e.axisDelta,n=t[0],i=t[1],a=r.scrollProgress(),o="x"===m?n:i;return{isAtBoundary:o<0&&!(a<1)||o>0&&!(a>0),primaryAxisDelta:o}}g(),r.on("resize",g),n=function(){h(),v(),r.off("resize",g),z()}},destroy:function(){return n()}}}q.globalOptions=void 0;var F=e.i(196991),B=e.i(288265),$=e.i(139697);let W=(0,o.f)("flex",{variants:{orientation:{horizontal:"-ml-4",vertical:"-mt-4 flex-col"}},defaultVariants:{orientation:"horizontal"}}),U=(0,o.f)("min-w-0 shrink-0 grow-0 basis-full",{variants:{orientation:{horizontal:"pl-4",vertical:"pt-4"}},defaultVariants:{orientation:"horizontal"}}),H=(0,s.createContext)(null);function Z(){let e=(0,s.useContext)(H);if(!e)throw Error("useCarousel must be used within a ");return e}let G=e=>{let i,a,o,l,c,u,d,f,m,p,g,h,v,x,b,y,j,w,z,_,k,S,T,M=(0,n.c)(54);M[0]!==e?({orientation:m,opts:l,setApi:f,plugins:u,onScrollStatusChange:o,className:a,children:i,ref:d,...c}=e,M[0]=e,M[1]=i,M[2]=a,M[3]=o,M[4]=l,M[5]=c,M[6]=u,M[7]=d,M[8]=f,M[9]=m):(i=M[1],a=M[2],o=M[3],l=M[4],c=M[5],u=M[6],d=M[7],f=M[8],m=M[9]);let E=void 0===m?"horizontal":m;M[10]!==l||M[11]!==E||M[12]!==u?(p={opts:l,orientation:E,plugins:u},M[10]=l,M[11]=E,M[12]=u,M[13]=p):p=M[13];let[P,A]=function(e){let t,r,i=(0,n.c)(5),{opts:a,orientation:o,plugins:s}=e;i[0]!==s?(t=s??[q()],i[0]=s,i[1]=t):t=i[1];let l=t,c="horizontal"===o?"x":"y";return i[2]!==a||i[3]!==c?(r={...a,axis:c},i[2]=a,i[3]=c,i[4]=r):r=i[4],N(r,l)}(p),[D,L]=(0,s.useState)(!1),[C,I]=(0,s.useState)(!1),R=(0,B.f)();M[14]!==o?(g=e=>{if(!e)return;let t={canScrollPrev:e.canScrollPrev(),canScrollNext:e.canScrollNext()};L(t.canScrollPrev),I(t.canScrollNext),o?.(t)},M[14]=o,M[15]=g):g=M[15];let V=g;M[16]!==A?(h=()=>{A?.scrollPrev()},M[16]=A,M[17]=h):h=M[17];let O=h;M[18]!==A?(v=()=>{A?.scrollNext()},M[18]=A,M[19]=v):v=M[19];let F=v;M[20]!==F||M[21]!==O?(x=e=>{"ArrowLeft"===e.key?(e.preventDefault(),O()):"ArrowRight"===e.key&&(e.preventDefault(),F())},M[20]=F,M[21]=O,M[22]=x):x=M[22];let $=x;M[23]!==A||M[24]!==f?(b=()=>{A&&f&&f(A)},y=[A,f],M[23]=A,M[24]=f,M[25]=b,M[26]=y):(b=M[25],y=M[26]),(0,s.useEffect)(b,y),M[27]!==A||M[28]!==V?(w=()=>{if(A)return V(A),A.on("reInit",V),A.on("select",V),A.on("scroll",V),()=>{A?.off("reInit",V),A?.off("select",V),A?.off("scroll",V)}},j=[A,V],M[27]=A,M[28]=V,M[29]=j,M[30]=w):(j=M[29],w=M[30]),(0,s.useEffect)(w,j);let W=E||(l?.axis==="y"?"vertical":"horizontal");M[31]!==A||M[32]!==C||M[33]!==D||M[34]!==P||M[35]!==l||M[36]!==F||M[37]!==O||M[38]!==W?(z={carouselRef:P,api:A,opts:l,orientation:W,scrollPrev:O,scrollNext:F,canScrollPrev:D,canScrollNext:C},M[31]=A,M[32]=C,M[33]=D,M[34]=P,M[35]=l,M[36]=F,M[37]=O,M[38]=W,M[39]=z):z=M[39];let U=z;return M[40]!==a?(_=(0,r.f)("group/carousel relative hover:cursor-move",a),M[40]=a,M[41]=_):_=M[41],M[42]!==R?(k=R("carousel"),M[42]=R,M[43]=k):k=M[43],M[44]!==i||M[45]!==$||M[46]!==c||M[47]!==d||M[48]!==_||M[49]!==k?(S=(0,t.jsx)("section",{ref:d,onKeyDownCapture:$,className:_,"aria-roledescription":k,...c,children:i}),M[44]=i,M[45]=$,M[46]=c,M[47]=d,M[48]=_,M[49]=k,M[50]=S):S=M[50],M[51]!==U||M[52]!==S?(T=(0,t.jsx)(H.Provider,{value:U,children:S}),M[51]=U,M[52]=S,M[53]=T):T=M[53],T},K=e=>{let i,a,o,s,l,c,u=(0,n.c)(14);u[0]!==e?({className:i,ref:o,...a}=e,u[0]=e,u[1]=i,u[2]=a,u[3]=o):(i=u[1],a=u[2],o=u[3]);let{carouselRef:d,orientation:f}=Z();return u[4]!==i||u[5]!==f?(s=(0,r.f)(W({orientation:f}),i),u[4]=i,u[5]=f,u[6]=s):s=u[6],u[7]!==a||u[8]!==o||u[9]!==s?(l=(0,t.jsx)("div",{ref:o,className:s,...a}),u[7]=a,u[8]=o,u[9]=s,u[10]=l):l=u[10],u[11]!==d||u[12]!==l?(c=(0,t.jsx)("div",{ref:d,children:l}),u[11]=d,u[12]=l,u[13]=c):c=u[13],c},Q=e=>{let i,a,o,s,l,c,u=(0,n.c)(14);u[0]!==e?({className:i,ref:o,...a}=e,u[0]=e,u[1]=i,u[2]=a,u[3]=o):(i=u[1],a=u[2],o=u[3]);let{orientation:d}=Z(),f=(0,B.f)();return u[4]!==f?(s=f("slide"),u[4]=f,u[5]=s):s=u[5],u[6]!==i||u[7]!==d?(l=(0,r.f)(U({orientation:d}),i),u[6]=i,u[7]=d,u[8]=l):l=u[8],u[9]!==a||u[10]!==o||u[11]!==s||u[12]!==l?(c=(0,t.jsx)("div",{ref:o,role:"group","aria-roledescription":s,className:l,...a}),u[9]=a,u[10]=o,u[11]=s,u[12]=l,u[13]=c):c=u[13],c},Y=e=>{let a,o,s,l,c,u,d,f,m,p=(0,n.c)(19);p[0]!==e?({className:a,variant:l,size:c,ref:s,...o}=e,p[0]=e,p[1]=a,p[2]=o,p[3]=s,p[4]=l,p[5]=c):(a=p[1],o=p[2],s=p[3],l=p[4],c=p[5]);let g=void 0===l?"ghost":l,h=void 0===c?"icon-sm":c,{orientation:v,scrollPrev:x,canScrollPrev:b}=Z(),y="horizontal"===v?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90";p[6]!==a||p[7]!==y?(u=(0,r.f)("absolute opacity-0 transition-opacity group-hover/carousel:opacity-100 disabled:opacity-0",y,a),p[6]=a,p[7]=y,p[8]=u):u=p[8];let j=!b;return p[9]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(i.f,{className:"size-4"}),p[9]=d):d=p[9],p[10]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)(F.T,{children:(0,t.jsx)("span",{className:"sr-only",children:"Previous slide"})}),p[10]=f):f=p[10],p[11]!==o||p[12]!==s||p[13]!==x||p[14]!==h||p[15]!==u||p[16]!==j||p[17]!==g?(m=(0,t.jsxs)($.Button,{ref:s,variant:g,size:h,shape:"pill",className:u,disabled:j,onClick:x,...o,children:[d,f]}),p[11]=o,p[12]=s,p[13]=x,p[14]=h,p[15]=u,p[16]=j,p[17]=g,p[18]=m):m=p[18],m},X=e=>{let i,o,s,l,c,u,d,f,m,p=(0,n.c)(19);p[0]!==e?({className:i,variant:l,size:c,ref:s,...o}=e,p[0]=e,p[1]=i,p[2]=o,p[3]=s,p[4]=l,p[5]=c):(i=p[1],o=p[2],s=p[3],l=p[4],c=p[5]);let g=void 0===l?"ghost":l,h=void 0===c?"icon-sm":c,{orientation:v,scrollNext:x,canScrollNext:b}=Z(),y="horizontal"===v?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90";p[6]!==i||p[7]!==y?(u=(0,r.f)("absolute opacity-0 transition-opacity group-hover/carousel:opacity-100 disabled:opacity-0",y,i),p[6]=i,p[7]=y,p[8]=u):u=p[8];let j=!b;return p[9]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(a.f,{className:"size-4"}),p[9]=d):d=p[9],p[10]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)(F.T,{children:(0,t.jsx)("span",{className:"sr-only",children:"Next slide"})}),p[10]=f):f=p[10],p[11]!==o||p[12]!==s||p[13]!==x||p[14]!==h||p[15]!==u||p[16]!==j||p[17]!==g?(m=(0,t.jsxs)($.Button,{ref:s,variant:g,size:h,shape:"pill",className:u,disabled:j,onClick:x,...o,children:[d,f]}),p[11]=o,p[12]=s,p[13]=x,p[14]=h,p[15]=u,p[16]=j,p[17]=g,p[18]=m):m=p[18],m};function J(e){return(0,t.jsx)(Q,{className:"basis-auto",children:e.body},e.id)}e.s(["f",0,function(e){let i,a,o,s,l,c,u,d,f=(0,n.c)(23),{items:m,className:p,carouselClassName:g,opts:h}=e,v=m.length<=1;f[0]!==p?(i=(0,r.f)("overflow-hidden",p),f[0]=p,f[1]=i):i=f[1];let x=v&&"hover:cursor-default";return f[2]!==g||f[3]!==x?(a=(0,r.f)("relative w-full",x,g),f[2]=g,f[3]=x,f[4]=a):a=f[4],f[5]!==v||f[6]!==h?(o=function({isSingleItem:e,opts:t}){return e?{slidesToScroll:1,...t,loop:!1,watchDrag:!1}:{slidesToScroll:1,loop:!0,dragFree:!0,...t}}({isSingleItem:v,opts:h}),f[5]=v,f[6]=h,f[7]=o):o=f[7],f[8]!==m?(s=m.map(J),f[8]=m,f[9]=s):s=f[9],f[10]!==s?(l=(0,t.jsx)(K,{children:s}),f[10]=s,f[11]=l):l=f[11],f[12]!==v||f[13]!==h?.align?(c=!v&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Y,{className:(0,r.f)("transition-opacity","-left-6 z-10 hidden h-full w-16 rounded-lg md:flex","via-background to-background from-transparent","hover:bg-gradient-to-l",h?.align==="start"?"bg-inherit group-hover/carousel:opacity-0 hover:!opacity-100 disabled:opacity-0":"bg-gradient-to-l group-hover/carousel:bg-gradient-to-l")}),(0,t.jsx)(X,{className:(0,r.f)("transition-opacity","-right-6 z-10 hidden h-full w-16 rounded-lg md:flex","via-background to-background from-transparent","hover:bg-gradient-to-r",h?.align==="end"?"bg-inherit group-hover/carousel:opacity-0 hover:!opacity-100 disabled:opacity-0":"bg-gradient-to-r group-hover/carousel:bg-gradient-to-r")})]}),f[12]=v,f[13]=h?.align,f[14]=c):c=f[14],f[15]!==a||f[16]!==o||f[17]!==l||f[18]!==c?(u=(0,t.jsxs)(G,{className:a,opts:o,children:[l,c]}),f[15]=a,f[16]=o,f[17]=l,f[18]=c,f[19]=u):u=f[19],f[20]!==i||f[21]!==u?(d=(0,t.jsx)("div",{className:i,children:u}),f[20]=i,f[21]=u,f[22]=d):d=f[22],d}],293859)},117786,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(411252);e.s(["FAQAccordion",0,function(e){let i,a,o,s=(0,n.c)(10),{items:l,onItemExpand:c,multiple:u}=e;s[0]!==c?(i=(e,t)=>{"true"!==e.currentTarget.getAttribute("aria-expanded")&&c?.(t)},s[0]=c,s[1]=i):i=s[1];let d=i,f=void 0!==u&&u?"multiple":"single";if(s[2]!==d||s[3]!==l){let e;s[5]!==d?(e=(e,n)=>(0,t.jsxs)(r.AccordionItem,{value:`${n}`,children:[(0,t.jsx)(r.AccordionTrigger,{className:"gap-4 py-4 text-base hover:text-foreground",onClick:t=>d(t,e),children:e.question}),(0,t.jsx)(r.AccordionContent,{"data-testid":"faq-panel",className:"[&>div]:pb-4",hiddenUntilFound:!0,children:(0,t.jsx)("div",{className:"text-body leading-relaxed text-muted-foreground",children:e.answer})})]},n),s[5]=d,s[6]=e):e=s[6],a=l.map(e),s[2]=d,s[3]=l,s[4]=a}else a=s[4];return s[7]!==f||s[8]!==a?(o=(0,t.jsx)(r.Accordion,{type:f,collapsible:!0,children:a}),s[7]=f,s[8]=a,s[9]=o):o=s[9],o}])},678628,e=>{"use strict";e.s(["f",0,"(width < 40rem), (height <= 30rem)"])},46766,e=>{"use strict";var t=e.i(16043),n=e.i(678628);function r(e){let t=window.matchMedia(n.f);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}}function i(){return window.matchMedia(n.f).matches?48:56}function a(){return 56}e.s(["f",0,function(){return(0,t.useSyncExternalStore)(r,i,a)}])},998154,893945,e=>{"use strict";var t=e.i(663456),n=e.i(16043),r=e.i(687186);function i(e){return e()}function a(){}function o(){return 0}e.s(["f",0,function(){let e,s,l=(0,t.c)(3),c=(0,n.useRef)(null);if(null===c.current){let e;l[0]===Symbol.for("react.memo_cache_sentinel")?(e={value:0,listeners:new Set},l[0]=e):e=l[0],c.current=e}l[1]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{let t=c.current;if(!t)return a;t.listeners.add(e);let n=(0,r.b)();if(0===n.length)return()=>t.listeners.delete(e);let o=()=>{let e=Number.parseFloat(getComputedStyle(document.documentElement).getPropertyValue(r.H)),n=Number.isFinite(e)?e:0;n!==t.value&&(t.value=n,t.listeners.forEach(i))};o();let s="u"s?.observe(e)),()=>{s?.disconnect(),t.listeners.delete(e)}},l[1]=e):e=l[1];let u=e;l[2]===Symbol.for("react.memo_cache_sentinel")?(s=()=>c.current?.value??0,l[2]=s):s=l[2];let d=s;return(0,n.useSyncExternalStore)(u,d,o)}],998154);var s=e.i(659350),l=e.i(136562),c=e.i(848984);e.s(["f",0,function(e){let r,i,a,o,u,d,f,m,p=(0,t.c)(27),{titleRowId:g,topClass:h,dataAttribute:v,revealOffsetPx:x,containerClassName:b,leading:y,titleIcon:j,title:w,actions:z,contentClassName:_,titleGroupClassName:k,actionsClassName:S}=e,T=void 0===_?"flex items-center justify-between gap-3 h-11":_,M=void 0===k?"flex items-center gap-3 min-w-0":k,N=void 0===S?"flex items-center gap-2 shrink-0":S,E=function(e,r){let i,a,o=(0,t.c)(4),[s,l]=(0,n.useState)(!1);return o[0]!==r||o[1]!==e?(i=()=>{let t=document.getElementById(e);if(!t)return;let n=new IntersectionObserver(e=>{let[t]=e;t&&l(!t.isIntersecting)},{rootMargin:`-${r}px 0px 0px 0px`,threshold:0});return n.observe(t),()=>n.disconnect()},a=[e,r],o[0]=r,o[1]=e,o[2]=i,o[3]=a):(i=o[2],a=o[3]),(0,n.useEffect)(i,a),s}(g,x);p[0]!==v?(r={[v]:"true"},p[0]=v,p[1]=r):r=p[1];let P=E?"opacity-100 translate-y-0":"opacity-0 pointer-events-none -translate-y-(--distance-micro) motion-reduce:translate-y-0";p[2]!==P||p[3]!==h?(i=(0,l.f)("fixed inset-x-0 z-40 bg-background/95 backdrop-blur-sm border-b border-border","transition-[opacity,translate] duration-quick ease-smooth-out motion-reduce:transition-opacity",h,P),p[2]=P,p[3]=h,p[4]=i):i=p[4];let A=!E;return p[5]!==w||p[6]!==j?(a=void 0!==w&&(0,s.jsxs)("button",{type:"button",onClick:c.Z,className:"flex items-center gap-2 min-w-0 cursor-pointer text-left",children:[j,(0,s.jsx)("span",{className:"text-sm font-medium truncate",children:w})]}),p[5]=w,p[6]=j,p[7]=a):a=p[7],p[8]!==y||p[9]!==a||p[10]!==M?(o=(0,s.jsxs)("div",{className:M,children:[y,a]}),p[8]=y,p[9]=a,p[10]=M,p[11]=o):o=p[11],p[12]!==z||p[13]!==N?(u=(0,s.jsx)("div",{className:N,children:z}),p[12]=z,p[13]=N,p[14]=u):u=p[14],p[15]!==T||p[16]!==u||p[17]!==o?(d=(0,s.jsxs)("div",{className:T,children:[o,u]}),p[15]=T,p[16]=u,p[17]=o,p[18]=d):d=p[18],p[19]!==b||p[20]!==d?(f=(0,s.jsx)("div",{className:b,children:d}),p[19]=b,p[20]=d,p[21]=f):f=p[21],p[22]!==f||p[23]!==r||p[24]!==i||p[25]!==A?(m=(0,s.jsx)("div",{...r,className:i,"aria-hidden":A,children:f}),p[22]=f,p[23]=r,p[24]=i,p[25]=A,p[26]=m):m=p[26],m}],893945)},112252,286983,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(354896),i=e.i(139697),a=e.i(16043);let o=(0,a.createContext)(!1);function s(){return(0,a.useContext)(o)}e.s(["Z",0,function(e){let r,i,s,l,c=(0,n.c)(11),{children:u,trailing:d}=e;c[0]!==u?(r=a.Children.toArray(u),c[0]=u,c[1]=r):r=c[1];let f=r.length>=2;return c[2]!==u||c[3]!==f?(i=f?(0,t.jsx)("div",{className:"grid min-w-0 flex-1 auto-cols-auto grid-flow-col items-center gap-2 @max-xs:gap-1.5",children:u}):u,c[2]=u,c[3]=f,c[4]=i):i=c[4],c[5]!==f||c[6]!==i?(s=(0,t.jsx)(o.Provider,{value:f,children:i}),c[5]=f,c[6]=i,c[7]=s):s=c[7],c[8]!==s||c[9]!==d?(l=(0,t.jsx)("div",{className:"@container",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 @max-xs:gap-1.5",children:[s,d]})}),c[8]=s,c[9]=d,c[10]=l):l=c[10],l},"Y",0,s],286983),e.s(["f",0,function(e){let a,o,l,c,u,d,f,m=(0,n.c)(17);m[0]!==e?({children:a,hasChevron:l,...o}=e,m[0]=e,m[1]=a,m[2]=o,m[3]=l):(a=m[1],o=m[2],l=m[3]);let p=void 0===l||l,g=s(),h=g?"min-w-0 grow":"shrink-0";return m[4]!==p||m[5]!==g?(c=function({isFill:e,hasChevron:t}){if(e)return t?"between":"start"}({isFill:g,hasChevron:p}),m[4]=p,m[5]=g,m[6]=c):c=m[6],m[7]!==a?(u="string"==typeof a?(0,t.jsx)("span",{className:"min-w-0 truncate",children:a}):a,m[7]=a,m[8]=u):u=m[8],m[9]!==p?(d=p&&(0,t.jsx)(r.f,{"aria-hidden":!0}),m[9]=p,m[10]=d):d=m[10],m[11]!==o||m[12]!==h||m[13]!==c||m[14]!==u||m[15]!==d?(f=(0,t.jsxs)(i.Button,{variant:"outline",size:"sm",className:h,align:c,...o,children:[u,d]}),m[11]=o,m[12]=h,m[13]=c,m[14]=u,m[15]=d,m[16]=f):f=m[16],f}],112252)},867025,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(207298),i=e.i(136562);let a=(0,r.f)("flex w-fit items-stretch [&>*]:focus-visible:relative [&>*]:focus-visible:z-10",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}});e.s(["f",0,function(e){let r,o,s,l,c,u=(0,n.c)(11);u[0]!==e?({className:r,orientation:o,...s}=e,u[0]=e,u[1]=r,u[2]=o,u[3]=s):(r=u[1],o=u[2],s=u[3]);let d=o??"horizontal";return u[4]!==r||u[5]!==o?(l=(0,i.f)(a({orientation:o}),r),u[4]=r,u[5]=o,u[6]=l):l=u[6],u[7]!==s||u[8]!==d||u[9]!==l?(c=(0,t.jsx)("div",{role:"group","data-orientation":d,className:l,...s}),u[7]=s,u[8]=d,u[9]=l,u[10]=c):c=u[10],c}])},548204,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(16043),i=e.i(815922),a=e.i(93836),o=e.i(741780),s=e.i(3758),l=e.i(420304),c=e.i(240070);let u={...l.l,...c.f},d=r.forwardRef(function(e,n){let{render:l,className:c,defaultOpen:d=!1,disabled:f=!1,onOpenChange:m,open:p,style:g,...h}=e,v=(0,i.f)(m),x=(0,o.f)({open:p,defaultOpen:d,onOpenChange:v,disabled:f}),b=r.useMemo(()=>({open:x.open,disabled:x.disabled,transitionStatus:x.transitionStatus}),[x.open,x.disabled,x.transitionStatus]),y=r.useMemo(()=>({...x,onOpenChange:v,state:b}),[x,v,b]),j=(0,a.a)("div",e,{state:b,ref:n,props:h,stateAttributesMapping:u});return(0,t.jsx)(s.p.Provider,{value:y,children:j})});var f=e.i(225421);let m={...l.J,...c.f},p=r.forwardRef(function(e,t){let{panelId:n,open:r,handleTrigger:i,state:o,disabled:l}=(0,s.$)(),{className:c,disabled:u=l,render:d,nativeButton:p=!0,style:g,...h}=e,{getButtonProps:v,buttonRef:x}=(0,f.f)({disabled:u,native:p});return(0,a.a)("button",e,{state:o,ref:[t,x],props:[{"aria-controls":r?n:void 0,"aria-expanded":r,onClick:i},h,v],stateAttributesMapping:m})});var g=e.i(533124),h=e.i(612308),v=e.i(22525);let x=r.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:i,render:o,id:l,style:c,...d}=e,{defaultPanelId:f,mounted:m,onOpenChange:p,open:x,setMounted:b,setPanelIdState:y,setOpen:j,state:w,transitionStatus:z}=(0,s.$)(),_=l||void 0,k=_??f;(0,g.f)(()=>(y(e=>_??(null===e?void 0:e)),()=>{y(e=>e===_?null:e)}),[_,y]);let{height:S,props:T,ref:M,shouldPreventOpenAnimation:N,shouldRender:E,transitionStatus:P,width:A}=(0,v.f)({externalRef:t,hiddenUntilFound:r??!1,id:k,keepMounted:i??!1,mounted:m,onOpenChange:p,open:x,setMounted:b,setOpen:j,transitionStatus:z}),D={...w,transitionStatus:P},L=(0,h.f)(c,D),C=(0,a.a)("div",{...e,style:void 0},{state:D,ref:M,props:[T,{style:{"--collapsible-panel-height":void 0===S?"auto":`${S}px`,"--collapsible-panel-width":void 0===A?"auto":`${A}px`}},d,L?{style:L}:void 0,N?{style:{animationName:"none"}}:void 0],stateAttributesMapping:u});return E?C:null});e.s(["Panel",0,x,"Root",0,d,"Trigger",0,p],772956);var b=e.i(772956),b=b,y=b,j=b,w=e.i(136562),z=e.i(159125);e.s(["Collapsible",0,function(e){let r,i,a=(0,n.c)(4);return a[0]!==e?({...r}=e,a[0]=e,a[1]=r):r=a[1],a[2]!==r?(i=(0,t.jsx)(b.Root,{"data-slot":"collapsible",...r}),a[2]=r,a[3]=i):i=a[3],i},"CollapsibleContent",0,function(e){let r,i,a,o,s=(0,n.c)(8);return s[0]!==e?({className:r,...i}=e,s[0]=e,s[1]=r,s[2]=i):(r=s[1],i=s[2]),s[3]!==r?(a=e=>(0,w.f)("h-(--collapsible-panel-height)",z.f,"function"==typeof r?r(e):r),s[3]=r,s[4]=a):a=s[4],s[5]!==i||s[6]!==a?(o=(0,t.jsx)(j.Panel,{"data-slot":"collapsible-content",className:a,...i}),s[5]=i,s[6]=a,s[7]=o):o=s[7],o},"CollapsibleTrigger",0,function(e){let r,i,a=(0,n.c)(4);return a[0]!==e?({...r}=e,a[0]=e,a[1]=r):r=a[1],a[2]!==r?(i=(0,t.jsx)(y.Trigger,{"data-slot":"collapsible-trigger",...r}),a[2]=r,a[3]=i):i=a[3],i}],548204)},289947,e=>{"use strict";var t=e.i(387086);e.s(["_",0,function(e){return"string"==typeof e?(0,t.x)(e):e.literal},"b",0,function(e){return{literal:e}},"T",0,function(e,t){return"string"==typeof t?e(t):t.literal}])},265296,e=>{"use strict";var t=e.i(579841),n=e.i(667417),r=e.i(369214);let i={Text:"text",Image:"image",Video:"video",Audio:"audio",TTS:"tts",STT:"stt"},a={[n.j.Image]:i.Image,[n.j.Video]:i.Video};e.s(["f",0,i,"j",0,function(e){let r=(0,t.W)(e);return e.flatMap(e=>{switch(e){case n.j.Text:return[i.Text];case n.j.Image:return[i.Image];case n.j.Video:return[i.Video];case n.j.Audio:return r?[]:[i.Audio];case n.j.TTS:return[i.TTS];case n.j.Transcription:return[i.STT];case n.j.Embeddings:case n.j.Rerank:case n.j.Decisions:default:return[]}})},"B",0,function(e,t){let o=r.f.find(n=>(t?.includes(n)??!1)&&e.includes(a[n]));return o?a[o]:t?.includes(n.j.TTS)&&e.includes(i.TTS)?i.TTS:t?.includes(n.j.Transcription)&&e.includes(i.STT)?i.STT:e[0]??i.Text}])},369214,e=>{"use strict";var t=e.i(667417);let n=[t.j.Image,t.j.Video];e.s(["f",0,n])},380773,e=>{"use strict";var t=e.i(173465),n=e.i(613497),r=e.i(819750);let i=(0,e.i(524287).f)("model-examples",{list:(e,t)=>[{permaslug:e,modality:t}]});e.s(["f",0,function({permaslug:e,modality:a}){return(0,t.f)({queryKey:i.list(e,a),queryFn:null===e||null===a?n.V:({signal:t})=>(0,r.f)("/api/frontend/v1/model-examples",{searchParams:{permaslug:e,modality:a},signal:t})})}])},184822,e=>{"use strict";var t=e.i(625025),n=e.i(667417),r=e.i(209615),i=e.i(919873),a=e.i(387086),o=e.i(289947),s=e.i(265296);function l(e){return(e.features?.required_input_modalities??[]).some(e=>e===n.D.Audio||e===n.D.Video)}function c(e,t){return(e.features?.required_input_modalities??[]).includes(t)}function u(e,t){return d(e,{isPrivateView:t,canSupplySourceVideo:!1})}function d(e,{isPrivateView:t,canSupplySourceVideo:r}){if(c(e,n.D.Audio))return null;let a=c(e,n.D.Video);return a&&!r||t||e.is_private||e.endpoint?.is_private?null:!a&&e.output_modalities.includes(n.j.Image)?i.f.Image:e.output_modalities.includes(n.j.Video)?i.f.Video:null}function f({model:e,isPrivateView:t}){return e.group!==r.f.Router&&u(e,t)===i.f.Image}function m({model:e,isPrivateView:t}){return e.group!==r.f.Router&&d(e,{isPrivateView:t,canSupplySourceVideo:!0})===i.f.Video}function p({model:e,isPrivateView:t}){return!(l(e)||t||e.is_private||e.endpoint?.is_private||e.group===r.f.Router||e.output_modalities.includes(n.j.Image)||e.output_modalities.includes(n.j.Video))&&e.output_modalities.includes(n.j.TTS)}function g(e){return(e??[]).flatMap((e,t)=>e.output_assets[0]?[{example:e,index:t}]:[])}let h={[i.f.Image]:{fromText:(0,a.b)("Text to Image"),fromImage:(0,a.b)("Image to Image")},[i.f.Video]:{fromText:(0,a.b)("Text to Video"),fromImage:(0,a.b)("Image to Video")},[i.f.Speech]:{fromText:(0,a.b)("Text to Speech"),fromImage:void 0}};function v(e){return`model-playground-auto-open-dismissed:${e}`}e.s(["O",0,function(e){return function({model:e,isPrivateView:t}){return f({model:e,isPrivateView:t})&&(0,s.j)(e.output_modalities).every(e=>e===s.f.Image)}(e)||function({model:e,isPrivateView:t}){return m({model:e,isPrivateView:t})&&(0,s.j)(e.output_modalities).every(e=>e===s.f.Video)}(e)||function({model:e,isPrivateView:t}){return e.endpoint?.features?.supports_voice_cloning!==!0&&p({model:e,isPrivateView:t})&&(0,s.j)(e.output_modalities).every(e=>e===s.f.TTS)}(e)},"d",0,function(e){return e>=640},"F",0,function(e,n=0){let r=g(e),a=r.find(({index:e})=>e===n)?.example??r[0]?.example,[o]=a?.output_assets??[];if(!a||!o)return null;let s={usage:(0,t.S)({durationMs:a.duration_ms??void 0,cost:null===a.cost?void 0:String(a.cost)})};switch(a.modality){case i.f.Image:return{...s,modality:i.f.Image,inputImageUrls:a.input_assets.map(e=>e.url),prompt:a.request.prompt,imageUrl:o.url,imageMediaType:o.media_type,request:a.request};case i.f.Video:return{...s,modality:i.f.Video,prompt:a.request.prompt??"",videoUrl:o.url,request:a.request};case i.f.Speech:return null;default:return a}},"Z",0,u,"_",0,function(e){let t=new Map;return g(e).map(({example:e,index:n})=>{let r=h[e.modality],i=e.input_assets.some(e=>e.media_type.startsWith("image/"))&&void 0!==r.fromImage,a=e.title?.trim(),s=i?r.fromImage:r.fromText,l=a&&a.length>0?(0,o.b)(a):s,c=(0,o._)(l),u=(t.get(c)??0)+1;return t.set(c,u),{index:n,label:l,repeat:u,isImageToImage:i}})},"E",0,function(e){return e.modality!==i.f.Video?[]:(e.request.frame_images??[]).map(e=>({frameType:e.frame_type,url:e.image_url.url}))},"S",0,function({frameImageEntries:e,modality:t}){return t!==s.f.Video?new Map:new Map(e.map(e=>[e.frameType,e.url]))},"P",0,function(e){return e.modality===i.f.Image?e.inputImageUrls:[]},"Q",0,function({inputImageUrls:e,modality:t}){return t===s.f.Image?[...e]:[]},"U",0,function(e){try{return null!==window.sessionStorage.getItem(v(e))}catch{return!1}},"e",0,function({model:e,isPrivateView:t}){return!(t||e.is_private||e.endpoint?.is_private)&&e.group!==r.f.Router&&e.output_modalities.includes(n.j.Decisions)},"G",0,function({model:e,isPrivateView:t}){return!(t||e.is_private||e.endpoint?.is_private)&&e.group!==r.f.Router},"M",0,f,"p",0,function(e){return!l(e)&&null!==e.endpoint&&(0,s.j)(e.output_modalities).length>0},"C",0,p,"q",0,m,"R",0,function(e){try{window.sessionStorage.setItem(v(e),"1")}catch{}},"r",0,function({currentFrameImages:e,seededEntries:t,shouldOverwrite:n}){return new Map(n||0===e.size?t.map(e=>[e.frameType,e.url]):e)},"v",0,function({currentUrls:e,seededUrls:t,shouldOverwrite:n}){return n||0===e.length?[...t]:[...e]}])},972016,e=>{"use strict";var t=e.i(625025),n=e.i(691880);let r={Us:"us",Eu:"eu"};function i(e){return e.startsWith("global.")}function a(e){return i(e.provider_model_id)?null:c(e.provider_region)}let o={[n.P.Us]:["us-","usgov","usdod","eastus","westus","centralus","northcentralus","southcentralus","westcentralus"],[n.P.Europe]:["europe","eu-","uk","sweden","france","germany","netherlands","finland","norway","poland","italy","spain","switzerland","westeurope","northeurope","austria","belgium","denmark","czech","romania","greece","hungary"]},s=(0,t.k)(o),l={[n.P.Europe]:r.Eu,[n.P.Us]:r.Us};function c(e){if(!e||"global"===e)return null;let t=e.toLowerCase();return s.find(({key:e,value:n})=>t===l[e]||n.some(e=>t.startsWith(e)))?.key??null}e.s(["u",0,r,"z",0,a,"Y",0,i,"l",0,function(e,t){return t===n.P.Global||a(e)===t},"e",0,function(e,t){return t===n.P.Global||c(e)===t}])},637999,e=>{"use strict";var t=e.i(988590),n=e.i(572201);e.s(["f",0,function({variantGroups:e,activeVariant:r}){return(0,t.q)(r,n.d)?e.find(e=>e.variant===r)?.endpoints??[]:e.flatMap(e=>e.endpoints)}])},733005,212933,e=>{"use strict";var t,n=e.i(195759),r=e.i(480534);let i={[n.K.Nitro]:r.$.Priority,[n.K.Floor]:r.$.Flex,[n.K.Exacto]:void 0};var a=e.i(134611),o=((t={})[t.Default=0]="Default",t[t.Deprioritized=-1]="Deprioritized",t[t.DegradedPerformance=-2]="DegradedPerformance",t[t.Deranked=-3]="Deranked",t[t.Down=-5]="Down",t[t.Disabled=-10]="Disabled",t);e.s(["f",()=>o],212933);var s=e.i(972016),l=e.i(927099),c=e.i(140691);let u=["prompt","completion"];function d(e){let t=e.provider_region;return null!==t&&""!==t&&"global"!==t&&!(0,s.Y)(e.provider_model_id)}function f(e){var t,n;return!d(e)&&!(n=t=e).is_disabled&&n.status!==o.Disabled&&!t.is_byok_only}function m(e){return`${e.model_variant_permaslug}::${e.service_tier??""}`}var p=e.i(988590);let g={RegionalSurcharge:"regional-surcharge",OptInServiceTier:"opt-in-service-tier"};e.s(["x",0,g,"m",0,function({endpoints:e,variant:t}){var o,s;let h,v=void 0===(o=(0,p.q)(t,n.K)?t:void 0)?void 0:i[o],x=(h=Map.groupBy(e.filter(f),m),s=e=>{var t;let n,r,i;if(!d(e))return!1;let a=function(e){let[t,...n]=e.map(e=>({prompt:(0,c.I)(e.pricing.prompt),completion:(0,c.I)(e.pricing.completion)})).filter(e=>u.every(t=>e[t].isFinite()));if(void 0!==t)return n.reduce((e,t)=>({prompt:t.prompt.lt(e.prompt)?t.prompt:e.prompt,completion:t.completion.lt(e.completion)?t.completion:e.completion}),t)}((t=h.get(m(e))??[],n=(0,l.u)(e.provider_slug),(r=t.filter(e=>(0,l.u)(e.provider_slug)===n)).length>0?r:t));return void 0!==a&&(!!(i=u.map(t=>({rate:t,value:(0,c.I)(e.pricing[t])}))).some(({value:e})=>e.isNaN())||i.every(({rate:e,value:t})=>t.gte(a[e]))&&i.some(({rate:e,value:t})=>t.gt(a[e])))},e=>s(e)&&!(0,a.t)(e.model));return new Map(e.map(e=>[e.id,new Set([...x(e)?[g.RegionalSurcharge]:[],...void 0!==e.service_tier&&(e.service_tier!==r.$.Priority||!(0,a.t)(e.model))&&e.service_tier!==v?[g.OptInServiceTier]:[]])]))}],733005)},81,e=>{"use strict";e.s(["O",0,function(e){return e.includes("%")?e.replace(/[^\w!~*'();/?:@&=+$,#.%-]+|%(?![a-z\d]{2})/gi,e=>encodeURI(e.toWellFormed?.()??e.replaceAll(/[\uD800-\uDFFF]/gu,"�"))):/^[a-z\d;/?:@&=+$,#_.!~*'()-]*$/i.test(e)?e:encodeURI(e.toWellFormed?.()??e.replaceAll(/[\uD800-\uDFFF]/gu,"�"))},"C",0,function(e){try{return decodeURIComponent(e)}catch{return e}}])},814492,e=>{"use strict";var t,n,r=e.i(169798),i=e.i(335609),a=e.i(647204);e.i(30012);var o=e.i(882844),s=e.i(635157);let l=(n=[(t=s.z.object({PROVIDER_ENCRYPTION_KEY:s.z.string().nullish(),SIGNUP_CF_SEAL_KEY:s.z.string().nullish(),CALLBACK_URL_ENCRYPTION_KEY:s.z.string().nullish(),AUTH_USER_SALT:s.z.string().default("default-salt"),CI:s.z.string().default(""),SITE_URL:s.z.string().nullish()}),e=>{let n=(0,o.C)(t,e??r.default.env);return(0,a.V)(n)?(0,a.Y)(n.error.message):(0,a.N)(n.data)})],function(e){let t=[];for(let r of n){let n=r(e);if((0,a.V)(n))return n;t.push(n.data)}return(0,a.N)(Object.assign({},...t))});var c=e.i(640216);e.s(["G",0,()=>{var e;return e={production:"https://internal.openrouter.ai",local:"http://localhost:3001"},(0,c.y)(window.location.hostname)?e.local:e.production},"P",0,()=>{let e=[(0,a.u)(l()).SITE_URL,r.default?.env?.NEXT_PUBLIC_SITE_URL,r.default?.env?.NEXT_PUBLIC_VERCEL_URL].map(e=>e?.trim()).find(e=>!!e)??"https://openrouter.ai";return(0,i.d)(e.includes("http")?e:`https://${e}`)},"c",0,function(e){let t=e.replaceAll(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g,"_");return t.match(/^(?:\d|--|-\d)/)?`_${t}`:t}],814492)},837808,e=>{"use strict";e.i(882844);var t=e.i(635157);let n=t.z.object({url:t.z.string().url(),thumbnailUrl:t.z.string().url().nullable(),frameThumbnailUrls:t.z.array(t.z.string().url()).optional(),mediaType:t.z.string(),width:t.z.number().int().positive(),height:t.z.number().int().positive()}),r=t.z.object({url:t.z.string().url(),mediaType:t.z.string()}),i=t.z.object({permaslug:t.z.string(),name:t.z.string(),author:t.z.string()}),a=t.z.object({label:t.z.string(),pass:t.z.boolean(),spoken:t.z.literal(!0).optional()}),o=t.z.object({checks:t.z.array(a).min(1),judges:t.z.array(i).min(1).optional()}),s=t.z.object({label:t.z.string(),score:t.z.number(),reason:t.z.string().optional()}),l=i.extend({ratings:t.z.array(s).min(1)}),c=t.z.object({judges:t.z.array(l).min(1)}),u=t.z.object({model:i,provider:t.z.string().nullable(),asset:n,costUsd:t.z.number().nullable(),durationMs:t.z.number().nullable(),score:o.optional(),quality:c.optional(),source:r.optional(),reasoningEffort:t.z.string().optional()}),d=t.z.object({slug:t.z.string(),name:t.z.string(),prompt:t.z.string(),inputAssets:t.z.array(n),cells:t.z.array(u)}),f=t.z.object({kind:t.z.enum(["challenge","style"]).optional(),modality:t.z.enum(["image","video"]).optional(),slug:t.z.string(),name:t.z.string(),navLabel:t.z.string(),description:t.z.string().nullable(),variantAxisName:t.z.string().nullable(),variants:t.z.array(d)}),m=t.z.object({slug:t.z.string(),name:t.z.string(),description:t.z.string().nullable(),kind:t.z.enum(["challenges","styles"]).optional(),challenges:t.z.array(f)});t.z.object({sections:t.z.array(m)}),t.z.string().min(1).max(64).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/,"lowercase letters, digits and single hyphens only");let p=t.z.object({kind:t.z.enum(["challenge","style"]),slug:t.z.string(),name:t.z.string(),navLabel:t.z.string()}),g=t.z.object({slug:t.z.string(),name:t.z.string(),challenges:t.z.array(p)});t.z.object({sections:t.z.array(g)});let h=t.z.object({challenge:f});t.z.string().min(3).max(256).regex(/^[a-z0-9._-]+\/[a-z0-9._-]+$/i,"author/slug with letters, digits, dots, hyphens and underscores");let v=["image","video"],x=t.z.object({url:t.z.string().url(),mediaType:t.z.string().startsWith("audio/"),durationMs:t.z.number().int().nonnegative().nullable(),voice:t.z.string().nullable(),transcript:t.z.string().nullable(),peaks:t.z.array(t.z.number().min(0).max(1)).optional()}),b=t.z.object({model:i,provider:t.z.string().nullable(),asset:x,costUsd:t.z.number().nullable(),durationMs:t.z.number().nullable(),score:o.optional(),heard:t.z.object({text:t.z.string(),judge:i}).nullish()}),y=t.z.object({slug:t.z.string(),name:t.z.string(),prompt:t.z.string(),cells:t.z.array(b)}),j=t.z.object({kind:t.z.enum(["challenge","style"]),slug:t.z.string(),name:t.z.string(),navLabel:t.z.string(),description:t.z.string().nullable(),variantAxisName:t.z.string().nullable(),variants:t.z.array(y)}),w=t.z.object({challenge:j}),z="speech",_=t.z.object({url:t.z.string().url(),mediaType:t.z.literal("text/html"),threeVersion:t.z.string().nullable(),thumbnailUrl:t.z.string().url().nullish()}),k=t.z.object({model:i,provider:t.z.string().nullable(),asset:_,costUsd:t.z.number().nullable(),durationMs:t.z.number().nullable(),score:o.optional()}),S=t.z.object({slug:t.z.string(),name:t.z.string(),prompt:t.z.string(),cells:t.z.array(k)}),T=t.z.object({kind:t.z.enum(["challenge","style"]),slug:t.z.string(),name:t.z.string(),navLabel:t.z.string(),description:t.z.string().nullable(),variantAxisName:t.z.string().nullable(),variants:t.z.array(S)}),M=t.z.object({challenge:T}),N=t.z.object({position:t.z.number().int().positive(),of:t.z.number().int().positive(),tied:t.z.boolean().optional()}),E=t.z.object({rosterCount:t.z.number().int().nonnegative(),evalsRun:t.z.number().int().nonnegative(),gradedRun:t.z.number().int().nonnegative(),scoredRun:t.z.number().int().nonnegative().optional(),checksPassed:t.z.number().int().nonnegative(),checksTotal:t.z.number().int().nonnegative(),meanFidelity:t.z.number().min(0).max(1).nullable(),rankOnChecks:N.nullable(),rankOnCost:N.nullable(),rankOnSpeed:N.nullable(),challenges:t.z.record(t.z.string(),N.nullable())});t.z.object({pages:t.z.array(t.z.union([h,w,M])),standing:E.optional()});let P=[...v,z,"game"];[...v],[...P];let A=[...v,z];t.z.enum(A);let D=t.z.object({kind:t.z.enum(["challenge","style"]),slug:t.z.string(),navLabel:t.z.string(),variantSlug:t.z.string(),variantCount:t.z.number().int().positive(),prompt:t.z.string(),costUsd:t.z.number().nullable(),durationMs:t.z.number().nullable(),score:o.optional()}),L=D.extend({modality:t.z.enum(v),asset:n.pick({url:!0,thumbnailUrl:!0,frameThumbnailUrls:!0,width:!0,height:!0})}),C=D.extend({modality:t.z.literal(z),asset:x.pick({url:!0,voice:!0,transcript:!0,peaks:!0}),heard:b.shape.heard}),I=t.z.union([L,C]);t.z.object({tiles:t.z.array(I),standing:E.optional()}),e.s(["U",0,"strip","Z",0,z])},12771,e=>{"use strict";var t=e.i(297900);e.s(["f",0,function(e){return Object.values(t.f).filter(t=>t.requestPaths.some(t=>e.includes(t))).map(({apiType:e})=>e)}])},297900,e=>{"use strict";e.s(["f",0,{Completions:{apiType:"completions",scriptName:"api",perfWorkload:"text_generation",lifecycleSurface:null,requestPaths:["/api/v1/chat/completions","/api/v1/completions","/api/v1/messages","/api/v1/responses"],aliasRequestPaths:[]},Embeddings:{apiType:"embeddings",scriptName:"embeddings-api",perfWorkload:"embeddings",lifecycleSurface:"embeddings",requestPaths:["/api/v1/embeddings"],aliasRequestPaths:[]},Rerank:{apiType:"rerank",scriptName:"rerank-api",perfWorkload:"rerank",lifecycleSurface:"rerank",requestPaths:["/api/v1/rerank"],aliasRequestPaths:[]},Decisions:{apiType:"decisions",scriptName:"decisions-api",perfWorkload:"decisions",lifecycleSurface:"decisions",requestPaths:["/api/alpha/decisions"],aliasRequestPaths:[]},Extractions:{apiType:"extractions",scriptName:"decisions-api",perfWorkload:"extractions",lifecycleSurface:"extractions",requestPaths:["/api/alpha/extractions"],aliasRequestPaths:[]},Video:{apiType:"video",scriptName:"video-api",perfWorkload:"video_generation",lifecycleSurface:"videoGeneration",requestPaths:["/api/v1/videos"],aliasRequestPaths:[]},TTS:{apiType:"tts",scriptName:"tts-api",perfWorkload:"tts",lifecycleSurface:"tts",requestPaths:["/api/v1/audio/speech"],aliasRequestPaths:[]},STT:{apiType:"stt",scriptName:"stt-api",perfWorkload:"stt",lifecycleSurface:"stt",requestPaths:["/api/v1/audio/transcriptions"],aliasRequestPaths:[]},Image:{apiType:"image",scriptName:"image-api",perfWorkload:"image_generation",lifecycleSurface:"imageGeneration",requestPaths:["/api/v1/images"],aliasRequestPaths:["/api/v1/images/generations"]},Tools:{apiType:"tools_invoke",scriptName:"api",perfWorkload:"unknown",lifecycleSurface:null,requestPaths:[],aliasRequestPaths:[]}}])},667417,e=>{"use strict";var t,n,r=e.i(988590),i=((t={}).Text="text",t.Image="image",t.Embeddings="embeddings",t.Audio="audio",t.Video="video",t.Rerank="rerank",t.Decisions="decisions",t.TTS="speech",t.Transcription="transcription",t),a=((n={}).Text="text",n.Image="image",n.File="file",n.Audio="audio",n.Video="video",n);let o=(0,r.v)(a),s=(0,r.v)(i);e.s(["v",0,o,"D",()=>a,"Z",0,s,"j",()=>i,"f",0,["text","image","video","speech","transcription","embeddings","rerank","decisions","audio"],"K",0,function(e){return 1===e.length&&e.includes("text")}])},983739,e=>{"use strict";var t,n=((t={}).Price="price",t.Throughput="throughput",t.Latency="latency",t.Exacto="exacto",t);e.s(["f",()=>n])},919873,e=>{"use strict";var t=e.i(882844),n=e.i(635157);let r={Image:"image",Video:"video",Speech:"speech",Transcription:"transcription",Game:"game"};n.z.union([n.z.nativeEnum(r),n.z.literal("text_image")]);let i=n.z.object({url:n.z.string().url(),media_type:n.z.string(),size_bytes:(0,t.D)().nonnegative()}),a=i.extend({thumbnail_url:n.z.string().url().optional(),width:(0,t.D)().positive(),height:(0,t.D)().positive(),source:i.optional()}),o=i.extend({media_type:n.z.string().startsWith("video/"),thumbnail_url:n.z.string().url().optional(),width:(0,t.D)().positive(),height:(0,t.D)().positive(),duration_ms:(0,t.D)().nonnegative().optional()});n.z.union([o,a]);let s=i.extend({duration_ms:(0,t.D)().nonnegative().optional(),sample_rate_hz:(0,t.D)().positive().optional(),peaks:n.z.array(n.z.number().min(0).max(1)).optional()});s.extend({transcript:n.z.string(),voice:n.z.string()}),s.extend({transcript:n.z.string()});let l=i.extend({thumbnail_url:n.z.string().url().optional(),frame_thumbnail_urls:n.z.array(n.z.string().url()).optional(),width:(0,t.D)().positive().optional(),height:(0,t.D)().positive().optional(),duration_ms:(0,t.D)().nonnegative().optional(),sample_rate_hz:(0,t.D)().positive().optional(),transcript:n.z.string().optional(),voice:n.z.string().optional(),peaks:n.z.array(n.z.number().min(0).max(1)).optional(),source:i.optional(),three_version:n.z.string().optional()});n.z.array(l),e.s(["f",0,r])},949878,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(553214),i=e.i(895377),a=e.i(750636),o=e.i(16043);e.s(["PromotionBanner",0,function(e){let i,s,l,c=(0,n.c)(4),{children:u}=e,[d,f]=(0,o.useState)(!1);return d?null:(c[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(a.f,{}),c[0]=i):i=c[0],c[1]===Symbol.for("react.memo_cache_sentinel")?(s=()=>f(!0),c[1]=s):s=c[1],c[2]!==u?(l=(0,t.jsx)(r.M,{variant:"promo",icon:i,className:"z-10 max-w-full",onDismiss:s,children:u}),c[2]=u,c[3]=l):l=c[3],l)},"WarningModelBanner",0,function(e){let a,s,l,c=(0,n.c)(4),{children:u}=e,[d,f]=(0,o.useState)(!1);return d?null:(c[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(i.f,{}),c[0]=a):a=c[0],c[1]===Symbol.for("react.memo_cache_sentinel")?(s=()=>f(!0),c[1]=s):s=c[1],c[2]!==u?(l=(0,t.jsx)(r.M,{variant:"warning",icon:a,className:"z-10 max-w-full",onDismiss:s,children:u}),c[2]=u,c[3]=l):l=c[3],l)}])},273467,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(136562),i=e.i(960773);let a="guide",o="cookbook",s="blog";e.i(707060);var l=e.i(387086),c=e.i(919035),u=e.i(651681);let d={name:"book-text",size:24,node:[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 11h8",key:"vwpz6n"}],["path",{d:"M8 7h6",key:"1f0q6e"}]]};d.node;let f=(0,u.f)(d),m={name:"chef-hat",size:24,node:[["path",{d:"M17 21a1 1 0 0 0 1-1v-5.35c0-.457.316-.844.727-1.041a4 4 0 0 0-2.134-7.589 5 5 0 0 0-9.186 0 4 4 0 0 0-2.134 7.588c.411.198.727.585.727 1.041V20a1 1 0 0 0 1 1Z",key:"1qvrer"}],["path",{d:"M6 17h12",key:"1jwigz"}]]};m.node;let p=(0,u.f)(m);var g=e.i(522464),h=e.i(129258);e.i(406201);var v=e.i(967605);let x={[a]:(0,l.b)("Guide"),[o]:(0,l.b)("Cookbook"),lab:(0,l.b)("Lab"),[s]:(0,l.b)("Blog post")},b={[a]:f,[o]:p,lab:g.f,[s]:h.f};e.s(["ModelDocumentationList",0,function(e){let a,o,s=(0,n.c)(11),{resources:l,page:u}=e,d=(0,c.f)(),f=(0,i.Q)();if(s[0]!==d||s[1]!==u||s[2]!==f||s[3]!==l){let e;s[5]!==d||s[6]!==u||s[7]!==f?(e=e=>{let n=b[e.type];return(0,t.jsx)("li",{className:"max-w-full",children:(0,t.jsxs)(v.Link,{href:e.href,className:(0,r.f)("group flex min-h-10 max-w-full items-center gap-2 rounded-full border px-3 py-2 text-left no-underline","bg-card text-foreground hover:bg-card-hover hover:text-accent-foreground","focus-visible:outline-none focus-visible:border-focus-border focus-visible:shadow-focus"),onClick:()=>{f.capture("click_model_page_documentation_link",{page:u,resource_type:e.type,href:e.href})},children:[(0,t.jsx)(n,{"aria-hidden":!0,className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"truncate text-body font-semibold",children:e.title}),(0,t.jsx)("span",{className:"shrink-0 text-overline text-muted-foreground",children:d(x[e.type])})]})},e.href)},s[5]=d,s[6]=u,s[7]=f,s[8]=e):e=s[8],a=l.map(e),s[0]=d,s[1]=u,s[2]=f,s[3]=l,s[4]=a}else a=s[4];return s[9]!==a?(o=(0,t.jsx)("ul",{className:"flex w-full flex-wrap gap-2 contain-inline-size",children:a}),s[9]=a,s[10]=o):o=s[10],o}],273467)},594314,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(117786),i=e.i(960773);e.s(["ModelFaqList",0,function(e){let a,o,s=(0,n.c)(8),{faqs:l,modelPermaslug:c,modelSlug:u,onCapture:d}=e,f=(0,i.Q)();s[0]!==c||s[1]!==u||s[2]!==d||s[3]!==f?(a=e=>{let t={permaslug:c,slug:u,question:e.question,faq_type:e.isCustom?"custom":"auto_generated"};d?d("expand_model_page_faq",t):f.capture("expand_model_page_faq",t)},s[0]=c,s[1]=u,s[2]=d,s[3]=f,s[4]=a):a=s[4];let m=a;return s[5]!==m||s[6]!==l?(o=(0,t.jsx)(r.FAQAccordion,{items:l,multiple:!0,onItemExpand:m}),s[5]=m,s[6]=l,s[7]=o):o=s[7],o}])},327798,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(139697),i=e.i(960773);e.i(707060);var a=e.i(196991),o=e.i(275675);e.i(406201);var s=e.i(967605);e.s(["ModelHeaderCompareButton",0,function(e){let l,c,u,d,f,m=(0,n.c)(14),{modelSlug:p,source:g,className:h,size:v,density:x}=e,b=void 0===v?"sm":v,y=void 0===x?"default":x,j=(0,i.Q)();m[0]!==p||m[1]!==j||m[2]!==g?(l=()=>{j.capture("click_compare_button",{source:g,model_slug:p})},m[0]=p,m[1]=j,m[2]=g,m[3]=l):l=m[3];let w=`/compare/${p}`;return m[4]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(o.f,{"aria-hidden":!0}),u=(0,t.jsx)(a.T,{children:"Compare"}),m[4]=c,m[5]=u):(c=m[4],u=m[5]),m[6]!==w?(d=(0,t.jsxs)(s.Link,{href:w,children:[c,u]}),m[6]=w,m[7]=d):d=m[7],m[8]!==h||m[9]!==y||m[10]!==b||m[11]!==l||m[12]!==d?(f=(0,t.jsx)(r.Button,{variant:"outline",size:b,density:y,className:h,onClick:l,render:d}),m[8]=h,m[9]=y,m[10]=b,m[11]=l,m[12]=d,m[13]=f):f=m[13],f}])},922504,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(139697),i=e.i(960773);e.i(707060);var a=e.i(196991),o=e.i(161145),s=e.i(651681);let l={name:"weight",size:24,node:[["circle",{cx:"12",cy:"5",r:"3",key:"rqqgnr"}],["path",{d:"M6.5 8a2 2 0 0 0-1.905 1.46L2.1 18.5A2 2 0 0 0 4 21h16a2 2 0 0 0 1.925-2.54L19.4 9.5A2 2 0 0 0 17.48 8Z",key:"56o5sh"}]]};l.node;let c=(0,s.f)(l);e.s(["ModelHfWeightsLink",0,function(e){let s,l,u,d,f,m,p,g=(0,n.c)(14),{modelSlug:h,hfSlug:v}=e,x=(0,i.Q)();if(g[0]!==v)s=`https://huggingface.co/${v}`,g[0]=v,g[1]=s;else s=g[1];let b=s;return g[2]!==v||g[3]!==h||g[4]!==x?(l=()=>{x.capture("click_hf_weights_link",{model_slug:h,hf_slug:v,source:"model_page_header"})},g[2]=v,g[3]=h,g[4]=x,g[5]=l):l=g[5],g[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(c,{className:"size-3 shrink-0"}),d=(0,t.jsx)(a.T,{children:"Model weights"}),f=(0,t.jsx)(o.f,{className:"size-3 shrink-0"}),g[6]=u,g[7]=d,g[8]=f):(u=g[6],d=g[7],f=g[8]),g[9]!==b?(m=(0,t.jsxs)("a",{href:b,target:"_blank",rel:"noreferrer",children:[u,d,f]}),g[9]=b,g[10]=m):m=g[10],g[11]!==l||g[12]!==m?(p=(0,t.jsx)(r.Button,{size:"sm",variant:"outline",onClick:l,render:m}),g[11]=l,g[12]=m,g[13]=p):p=g[13],p}],922504)},369677,953275,e=>{"use strict";var t=e.i(663456),n=e.i(376885),r=e.i(134611),i=e.i(960773),a=e.i(402600),o=e.i(637999),s=e.i(733005),l=e.i(81),c=e.i(209615),u=e.i(463686),d=e.i(701499),f=e.i(16043),m=e.i(140546),p=e.i(195759),g=e.i(988590),h=e.i(572201);function v(e){return(0,g.q)(e,p.K)?e:h.e.Standard}e.s(["V",0,function(e){return(0,g.q)(e,p.K)?p.P[e]:null},"Q",0,v],953275);let{BaseContext:x,Provider:b}=(0,d.f)(e=>{let{model:d,basePath:p,skipPageViewTracking:g,isPrivateView:h=!1,privateEndpoints:x,variantGroups:b,hasEndpointCatalog:y,activeVariant:j}=e,{activeVariantEndpoints:w,routingMode:z,routingExclusionsById:_}=function(e){let n,r,i,a,l=(0,t.c)(15),{isPrivateView:c,privateEndpoints:u,variantGroups:d,hasEndpointCatalog:f,activeVariant:m}=e;l[0]!==m||l[1]!==c||l[2]!==u||l[3]!==d?(n=c?u??[]:(0,o.f)({variantGroups:d,activeVariant:m}),l[0]=m,l[1]=c,l[2]=u,l[3]=d,l[4]=n):n=l[4];let p=n;l[5]!==m?(r=v(m),l[5]=m,l[6]=r):r=l[6];let g=r;l[7]!==p||l[8]!==f||l[9]!==g?(i=f?(0,s.m)({endpoints:p,variant:g}):null,l[7]=p,l[8]=f,l[9]=g,l[10]=i):i=l[10];let h=i;return l[11]!==p||l[12]!==h||l[13]!==g?(a={activeVariantEndpoints:p,routingMode:g,routingExclusionsById:h},l[11]=p,l[12]=h,l[13]=g,l[14]=a):a=l[14],a}({isPrivateView:h,privateEndpoints:x,variantGroups:b,hasEndpointCatalog:y,activeVariant:j}),k=d.group===c.f.Router,S=!!d.endpoint,T=(0,u.useParams)(),M=(function({pathname:e,basePath:t}){if(e===t)return"";let n=`${t}/`;return e.startsWith(n)?e.slice(n.length).split("/")[0]??"":""})({pathname:(0,a.f)()??"",basePath:p}).toLowerCase(),N=T?.["maker-id"]?(0,l.C)(T["maker-id"]).toLowerCase():"",E=(0,f.useMemo)(()=>(0,m.M)({model:d,hasBenchmarks:e.hasBenchmarks,isPrivateView:h}),[d,e.hasBenchmarks,h]),P=(0,f.useMemo)(()=>(function({tabQuery:e,visibleTabSlugs:t,isRouterModel:n,isActiveModel:r}){let i=t.find(t=>t===e);return i||(n||r?"overview":t.includes("activity")?"activity":t[0]??"overview")})({tabQuery:M,visibleTabSlugs:E,isRouterModel:k,isActiveModel:S}),[M,E,k,S]),A=(0,r.i)(d),D=e.activeVariant,L=(0,i.Q)(),{isLoaded:C,isSignedIn:I}=(0,n.f)(),R=(0,f.useRef)(I);(0,f.useEffect)(()=>{R.current=I},[I]);let V=(0,f.useRef)(null),O=(0,f.useRef)(P);return O.current=P,(0,f.useEffect)(()=>()=>{V.current="page_exit"},[]),(0,f.useEffect)(()=>{if(g||!C)return;let e=0,t="u">typeof document&&"hidden"===document.visibilityState?null:Date.now(),n=!1,r=r=>{n||(n=!0,null!==t&&(e+=Date.now()-t,t=null),L.capture("model_page_tab_exit",{model_slug:A,maker_id:N,tab:P,variant:D,is_router_model:k,is_active_model:S,is_signed_in:!!R.current,dwell_ms:e,trigger:r}))},i=()=>{if("hidden"===document.visibilityState){null!==t&&(e+=Date.now()-t,t=null);return}t=Date.now()},a=()=>{r("page_hide")};return document.addEventListener("visibilitychange",i),window.addEventListener("pagehide",a),L.capture("model_page_view",{model_slug:A,maker_id:N,tab:P,variant:D,is_router_model:k,is_active_model:S,is_signed_in:!!R.current}),()=>{document.removeEventListener("visibilitychange",i),window.removeEventListener("pagehide",a);let e=function({isPageExit:e,didTabChange:t}){return e?"page_exit":t?"tab_change":"context_change"}({isPageExit:"page_exit"===V.current,didTabChange:O.current!==P});V.current=null,r(e)}},[g,L,C,A,N,P,D,k,S]),{...e,benchmarkPermaslug:e.benchmarkPermaslug??d.permaslug,isPrivateView:h,activeVariantEndpoints:w,routingMode:z,routingExclusionsById:_}});e.s(["ModelPageProvider",0,b,"useModelPage",0,()=>{let e=(0,f.useContext)(x);if(!e)throw Error("useModelPage must be used within a ModelPageProvider.");return e}],369677)},913180,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(136562),i=e.i(233452);e.i(707060);var a=e.i(387086),o=e.i(919035),s=e.i(697149),l=e.i(88084),c=e.i(94409),u=e.i(36238),d=e.i(16043),f=e.i(42208);let m="ranking",p="chips",g="rows",h="tiles",v=[p,g,h];var x=e.i(326549);let b={collection:(0,a.b)("Collection"),[m]:(0,a.b)("Ranking")},y={[p]:function(e){let r,i,a=(0,n.c)(4),{resources:o}=e;return a[0]!==o?(r=o.map(w),a[0]=o,a[1]=r):r=a[1],a[2]!==r?(i=(0,t.jsx)("div",{className:"mt-4 flex w-full flex-wrap gap-2",children:r}),a[2]=r,a[3]=i):i=a[3],i},[g]:function(e){let r,i,a=(0,n.c)(4),{resources:o}=e;return a[0]!==o?(r=o.map(z),a[0]=o,a[1]=r):r=a[1],a[2]!==r?(i=(0,t.jsx)("div",{className:"mt-4 w-full border-y",children:r}),a[2]=r,a[3]=i):i=a[3],i},[h]:function(e){let r,i,a=(0,n.c)(4),{resources:o}=e;return a[0]!==o?(r=o.map(_),a[0]=o,a[1]=r):r=a[1],a[2]!==r?(i=(0,t.jsx)("div",{className:"mt-4 grid w-full grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:r}),a[2]=r,a[3]=i):i=a[3],i}};function j(e){let r,i,a=(0,n.c)(6),{resources:o,variant:s}=e,l=y[s];return a[0]!==l||a[1]!==o?(r=(0,t.jsx)(l,{resources:o}),a[0]=l,a[1]=o,a[2]=r):r=a[2],a[3]!==r||a[4]!==s?(i=(0,t.jsx)("div",{"data-explore-variant":s,children:r}),a[3]=r,a[4]=s,a[5]=i):i=a[5],i}function w(e){return(0,t.jsxs)(k,{resource:e,className:"flex min-h-10 max-w-full items-center gap-2 rounded-full border bg-card px-3 py-2",children:[(0,t.jsx)(M,{resource:e}),(0,t.jsx)(S,{resource:e,className:"truncate text-body"}),(0,t.jsx)(T,{resource:e})]},e.href)}function z(e){return(0,t.jsxs)(k,{resource:e,className:"flex min-h-16 items-center gap-3 rounded-md px-2 py-3 border-b border-border/50 last:border-b-0",children:[(0,t.jsx)(f.f,{icon:N(e)}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-2",children:[(0,t.jsx)(S,{resource:e}),(0,t.jsx)(T,{resource:e,isBadge:!0})]}),(0,t.jsx)(l.f,{"aria-hidden":!0,className:"size-4 shrink-0 text-muted-foreground transition-colors group-hover:text-accent-foreground"})]},e.href)}function _(e){return(0,t.jsxs)(k,{resource:e,className:"flex min-h-20 items-center gap-3 rounded-xl border bg-card px-4 py-3",children:[(0,t.jsx)(f.f,{icon:N(e)}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,t.jsx)(S,{resource:e}),(0,t.jsx)(T,{resource:e})]})]},e.href)}function k(e){let i,a,o=(0,n.c)(9),{resource:s,className:l,children:c}=e,u=s.href,d=s.type,f=s.modality,m=s.direction;return o[0]!==l?(i=(0,r.f)("group text-left text-foreground no-underline transition-colors hover:bg-card-hover hover:text-accent-foreground focus-visible:outline-none focus-visible:border-focus-border focus-visible:shadow-focus",l),o[0]=l,o[1]=i):i=o[1],o[2]!==c||o[3]!==s.direction||o[4]!==s.href||o[5]!==s.modality||o[6]!==s.type||o[7]!==i?(a=(0,t.jsx)(x.ModelRelatedResourceLink,{href:u,type:d,modality:f,direction:m,className:i,children:c}),o[2]=c,o[3]=s.direction,o[4]=s.href,o[5]=s.modality,o[6]=s.type,o[7]=i,o[8]=a):a=o[8],a}function S(e){let i,a,s,l=(0,n.c)(8),{resource:c,className:u}=e,d=(0,o.f)();return l[0]!==u?(i=(0,r.f)("line-clamp-2 text-heading font-semibold",u),l[0]=u,l[1]=i):i=l[1],l[2]!==d||l[3]!==c.title?(a=d(c.title),l[2]=d,l[3]=c.title,l[4]=a):a=l[4],l[5]!==i||l[6]!==a?(s=(0,t.jsx)("span",{className:i,children:a}),l[5]=i,l[6]=a,l[7]=s):s=l[7],s}function T(e){let a,s,l,c,u=(0,n.c)(10),{resource:d,isBadge:f}=e,m=void 0!==f&&f,p=(0,o.f)();u[0]!==m?(a=m&&(0,i.badgeVariants)({size:"sm"}),u[0]=m,u[1]=a):a=u[1],u[2]!==a?(s=(0,r.f)(a,"shrink-0 text-overline text-muted-foreground"),u[2]=a,u[3]=s):s=u[3];let g=b[d.type];return u[4]!==p||u[5]!==g?(l=p(g),u[4]=p,u[5]=g,u[6]=l):l=u[6],u[7]!==s||u[8]!==l?(c=(0,t.jsx)("span",{className:s,children:l}),u[7]=s,u[8]=l,u[9]=c):c=u[9],c}function M(e){let r,i,a=(0,n.c)(4),{resource:o}=e;a[0]!==o?(r=N(o),a[0]=o,a[1]=r):r=a[1];let s=r;return a[2]!==s?(i=(0,t.jsx)(s,{"aria-hidden":!0,className:"size-4 shrink-0"}),a[2]=s,a[3]=i):i=a[3],i}function N(e){return"input"===e.direction?c.f:e.type===m?s.f:u.f}function E(){var e;return e=new URLSearchParams(window.location.search).get("explore_variant"),v.find(t=>t===e)??p}function P(){return p}function A(e){return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)}e.s(["ModelRelatedResourcesPresentation",0,function(e){let r,i=(0,n.c)(3),{resources:a}=e,o=(0,d.useSyncExternalStore)(A,E,P);return i[0]!==a||i[1]!==o?(r=(0,t.jsx)(j,{resources:a,variant:o}),i[0]=a,i[1]=o,i[2]=r):r=i[2],r}],913180)},326549,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(960773),i=e.i(16043);e.i(406201);var a=e.i(967605);e.s(["ModelRelatedResourceLink",0,function(e){let i,o,s=(0,n.c)(10),{href:l,type:c,modality:u,direction:d,className:f,children:m}=e,p=(0,r.Q)();return s[0]!==d||s[1]!==u||s[2]!==p||s[3]!==c?(i=()=>{p.capture("click_model_page_related_resource",{resource_type:c,modality:u,direction:d})},s[0]=d,s[1]=u,s[2]=p,s[3]=c,s[4]=i):i=s[4],s[5]!==m||s[6]!==f||s[7]!==l||s[8]!==i?(o=(0,t.jsx)(a.Link,{href:l,className:f,onClick:i,children:m}),s[5]=m,s[6]=f,s[7]=l,s[8]=i,s[9]=o):o=s[9],o},"ModelRelatedResourcesViewTracker",0,function(e){let t,a,o=(0,n.c)(6),{pageKey:s,collectionCount:l,rankingCount:c}=e,u=(0,r.Q)(),d=(0,i.useRef)(null);return o[0]!==l||o[1]!==s||o[2]!==u||o[3]!==c?(t=()=>{d.current!==s&&(d.current=s,u.capture("view_model_page_related_resources",{collection_count:l,ranking_count:c}))},a=[l,s,u,c],o[0]=l,o[1]=s,o[2]=u,o[3]=c,o[4]=t,o[5]=a):(t=o[4],a=o[5]),(0,i.useEffect)(t,a),null}])},180916,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(136562);function i(e){let r,i=(0,n.c)(2),{children:a}=e;return i[0]!==a?(r=(0,t.jsx)("span",{className:"ml-1 text-xs font-normal text-muted-foreground",children:a}),i[0]=a,i[1]=r):r=i[1],r}e.s(["X",0,function(e){let a,o,s,l,c,u,d,f,m=(0,n.c)(21),{label:p,labelAdornment:g,value:h,suffix:v,footnote:x,valueClassName:b}=e;return m[0]!==p?(a=(0,t.jsx)("div",{className:"flex items-center gap-1 text-caption text-muted-foreground",children:p}),m[0]=p,m[1]=a):a=m[1],m[2]!==g?(o=g&&(0,t.jsx)("div",{className:"flex items-center gap-1.5",children:g}),m[2]=g,m[3]=o):o=m[3],m[4]!==a||m[5]!==o?(s=(0,t.jsxs)("div",{className:"flex min-h-5 items-center justify-between gap-1.5",children:[a,o]}),m[4]=a,m[5]=o,m[6]=s):s=m[6],m[7]!==b?(l=(0,r.f)("mt-1 text-base font-medium leading-tight tabular-nums",b),m[7]=b,m[8]=l):l=m[8],m[9]!==v?(c=v&&(0,t.jsx)(i,{children:v}),m[9]=v,m[10]=c):c=m[10],m[11]!==l||m[12]!==c||m[13]!==h?(u=(0,t.jsxs)("div",{className:l,children:[h,c]}),m[11]=l,m[12]=c,m[13]=h,m[14]=u):u=m[14],m[15]!==x?(d=x&&(0,t.jsx)("p",{className:"mt-0.5 text-caption text-muted-foreground",children:x}),m[15]=x,m[16]=d):d=m[16],m[17]!==s||m[18]!==u||m[19]!==d?(f=(0,t.jsxs)("div",{className:"w-full min-w-0 rounded-lg border border-border bg-card px-3 py-2.5",children:[s,u,d]}),m[17]=s,m[18]=u,m[19]=d,m[20]=f):f=m[20],f},"C",0,i])},556156,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(134611),i=e.i(481066),a=e.i(136562),o=e.i(293859),s=e.i(647402),l=e.i(670168),c=e.i(138257),u=e.i(808125),d=e.i(667417),f=e.i(618115);e.i(707060);var m=e.i(196991),p=e.i(288265),g=e.i(153746),h=e.i(919035),v=e.i(429332),x=e.i(657011);e.i(406201);var b=e.i(967605),y=e.i(353524);let j=(0,v.default)(()=>e.A(667455).then(e=>({default:e.ModelInfoCardDescription})),{loadableGenerated:{modules:[821886]}});function w(e){let a,o=(0,n.c)(15),{model:s,description:l}=e,f=(0,c.useLocale)(),m=(0,p.f)(),g=(0,h.f)();if(o[0]!==l||o[1]!==m||o[2]!==f||o[3]!==g||o[4]!==s){let e,n,c,p,h=function({locale:e,gt:t,m:n},r){let i=r.output_modalities[0],a=(0,x.G)(e,r);return[...i?[{id:"modality",value:n(u.L[i])}]:[],...r.output_modalities.includes(d.j.Text)&&r.context_length>0?[{id:"context",value:t("{contextLength} context",{contextLength:(0,x.u)(e,r.context_length)})}]:[],..."—"===a?[]:[{id:"price",value:a}]]}({locale:f,gt:m,m:g},s);o[6]!==s?(e=(0,r.i)(s),o[6]=s,o[7]=e):e=o[7],o[8]!==s.name?(n=(0,i.f)(s.name,{shorten:!0,preserveVariant:!0}),o[8]=s.name,o[9]=n):n=o[9],o[10]!==n?(c=(0,t.jsx)("div",{className:"line-clamp-1 text-heading font-semibold text-foreground group-hover:text-accent-foreground group-hover:underline",children:n}),o[10]=n,o[11]=c):c=o[11],o[12]!==l||o[13]!==s.description?(p=l??(0,t.jsx)(j,{children:s.description}),o[12]=l,o[13]=s.description,o[14]=p):p=o[14],a=(0,t.jsxs)(b.Link,{href:`/${e}`,className:"group flex h-full w-64 shrink-0 flex-col justify-between gap-y-2 rounded-lg border px-4 py-3 text-left md:w-80",children:[c,p,h.length>0&&(0,t.jsx)("div",{"aria-label":m("Model details"),className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-overline text-muted-foreground tabular-nums",children:h.map(z)})]}),o[0]=l,o[1]=m,o[2]=f,o[3]=g,o[4]=s,o[5]=a}else a=o[5];return a}function z(e,n){let{id:r,value:i}=e;return(0,t.jsxs)("span",{className:"inline-flex items-center gap-2",children:[n>0&&(0,t.jsx)(s.f,{}),(0,t.jsx)("span",{children:i})]},r)}function _(){let e,r,i=(0,n.c)(2);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(l.l,{className:"mb-4 h-8 w-64"}),i[0]=e):e=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("div",{className:"mt-8 w-full",children:(0,t.jsxs)("div",{className:"min-w-0 w-full",children:[e,(0,t.jsx)("div",{className:"flex gap-4 overflow-x-auto pb-4 scrollbar-hide",children:Array.from({length:4},k)})]})}),i[1]=r):r=i[1],r}function k(e,n){return(0,t.jsxs)("div",{className:"h-32 w-80 shrink-0 rounded-lg border p-4",children:[(0,t.jsx)(l.l,{className:"mb-2 h-6 w-3/4"}),(0,t.jsx)(l.l,{className:"mt-2 h-4 w-full"}),(0,t.jsx)(l.l,{className:"mt-2 h-4 w-full"})]},n)}e.s(["MoreModelsSection",0,function(e){let i,s,l,c,u,d,p,h,v=(0,n.c)(24),{makerId:x,currentModelSlug:j,descriptions:z}=e,k=null===x||null===j?null:`${x}/${j}`;v[0]!==k||v[1]!==x?(i=(0,y.a)(x,k),v[0]=k,v[1]=x,v[2]=i):i=v[2];let{data:S,error:T}=(0,f.f)(i);if(null===k)return null;if(!S){let e;return v[3]!==T?(e=T?null:(0,t.jsx)(_,{}),v[3]=T,v[4]=e):e=v[4],e}let M=S.models;if(0===M.length)return null;let N=!S.author.name&&"font-mono";v[5]!==N?(s=(0,a.f)(N),v[5]=N,v[6]=s):s=v[6];let E=`/${S.author.slug}`,P=S.author.name??S.author.slug;if(v[7]!==E||v[8]!==P?(l=(0,t.jsx)(b.Link,{href:E,variant:"underline",className:"text-inherit",children:P}),v[7]=E,v[8]=P,v[9]=l):l=v[9],v[10]!==s||v[11]!==l?(c=(0,t.jsx)(m.T,{children:(0,t.jsxs)("h2",{children:["More models from"," ",(0,t.jsx)(g.d,{children:(0,t.jsx)("span",{className:s,children:l})})]})}),v[10]=s,v[11]=l,v[12]=c):c=v[12],v[13]===Symbol.for("react.memo_cache_sentinel")?(u={align:"start"},v[13]=u):u=v[13],v[14]!==z||v[15]!==M){let e;v[17]!==z?(e=e=>{let n=(0,r.i)(e),i=z[n];return{id:n,body:(0,t.jsx)(w,{model:e,description:i?.source===e.description?i.content:void 0})}},v[17]=z,v[18]=e):e=v[18],d=M.map(e),v[14]=z,v[15]=M,v[16]=d}else d=v[16];return v[19]!==d?(p=(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(o.f,{opts:u,items:d})}),v[19]=d,v[20]=p):p=v[20],v[21]!==p||v[22]!==c?(h=(0,t.jsx)("div",{className:"my-8 w-full first:mt-0",children:(0,t.jsxs)("div",{className:"min-w-0 w-full",children:[c,p]})}),v[21]=p,v[22]=c,v[23]=h):h=v[23],h},"MoreModelsSectionSkeleton",0,_])},89726,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(359903),i=e.i(136562),a=e.i(548204),o=e.i(894868),s=e.i(261499),l=e.i(778915);e.i(707060);var c=e.i(196991),u=e.i(16043),d=e.i(401248),f=e.i(636072);let m="router-models-in-this-router";function p(e,n){return(0,t.jsx)(v,{group:e},e.label??`group-${n}`)}function g(e){return e.slugs}function h(e,t){return e+t.slugs.length}function v(e){let r,i,a,s,l,c=(0,n.c)(15),{group:u}=e;return c[0]!==u.iconAuthor||c[1]!==u.label||c[2]!==u.range||c[3]!==u.slugs.length?(r=u.label&&(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-0.5",children:[u.iconAuthor&&(0,t.jsx)(o.f,{author:u.iconAuthor,className:"size-5 p-0.5"}),(0,t.jsx)("span",{className:"font-medium",children:u.label}),u.range&&(0,t.jsx)("span",{className:"font-mono text-sm text-muted-foreground",children:u.range}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:u.slugs.length})]}),c[0]=u.iconAuthor,c[1]=u.label,c[2]=u.range,c[3]=u.slugs.length,c[4]=r):r=c[4],c[5]!==u.copyableId?(i=u.copyableId&&(0,t.jsx)(d.f,{text:u.copyableId,className:"italic text-muted-foreground"}),c[5]=u.copyableId,c[6]=i):i=c[6],c[7]!==u.slugs?(a=u.slugs.map(x),c[7]=u.slugs,c[8]=a):a=c[8],c[9]!==a?(s=(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:a}),c[9]=a,c[10]=s):s=c[10],c[11]!==r||c[12]!==i||c[13]!==s?(l=(0,t.jsxs)("li",{className:"flex flex-col gap-2.5",children:[r,i,s]}),c[11]=r,c[12]=i,c[13]=s,c[14]=l):l=c[14],l}function x(e){return(0,t.jsx)(f.f,{slug:e,href:`/${e}`},e)}e.s(["RouterModelsCard",0,function(e){let o,d,f,v,x,b,y,j,w,z,_,k,S,T,M,N=(0,n.c)(33),{config:E}=e,[P,A]=(0,u.useState)(!1);N[0]!==E.groups?(o=E.groups.reduce(h,0),N[0]=E.groups,N[1]=o):o=N[1];let D=o;N[2]!==E.groups?(d=E.groups.flatMap(g),N[2]=E.groups,N[3]=d):d=N[3];let L=d;N[4]===Symbol.for("react.memo_cache_sentinel")?(f=(0,i.f)("group flex w-full items-start justify-between gap-4 rounded-lg p-5 text-left","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),N[4]=f):f=N[4],N[5]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(c.T,{children:(0,t.jsx)("span",{className:"text-base font-medium",children:"Models in this router"})}),N[5]=v):v=N[5],N[6]!==D?(x=(0,t.jsxs)("div",{className:"flex items-baseline gap-2",children:[v,(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:D})]}),N[6]=D,N[7]=x):x=N[7],N[8]!==E.subtitle?(b=E.subtitle&&(0,t.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:E.subtitle}),N[8]=E.subtitle,N[9]=b):b=N[9],N[10]!==x||N[11]!==b?(y=(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[x,b]}),N[10]=x,N[11]=b,N[12]=y):y=N[12];let C=P&&"-scale-y-100";return N[13]!==C?(j=(0,i.f)("mt-0.5 size-5 shrink-0 text-muted-foreground","transition-[transform,color] duration-fast ease-smooth-out group-hover:text-foreground",s.K,C),N[13]=C,N[14]=j):j=N[14],N[15]!==j?(w=(0,t.jsx)(r.f,{"aria-hidden":"true",className:j}),N[15]=j,N[16]=w):w=N[16],N[17]!==w||N[18]!==y?(z=(0,t.jsx)("h3",{id:m,children:(0,t.jsxs)(a.CollapsibleTrigger,{className:f,children:[y,w]})}),N[17]=w,N[18]=y,N[19]=z):z=N[19],N[20]!==E.groups?(_=E.groups.map(p),N[20]=E.groups,N[21]=_):_=N[21],N[22]!==_?(k=(0,t.jsx)("ul",{className:"flex flex-col gap-6 px-5 pb-5",children:_}),N[22]=_,N[23]=k):k=N[23],N[24]!==L||N[25]!==k?(S=(0,t.jsx)(a.CollapsibleContent,{hiddenUntilFound:!0,children:(0,t.jsx)(l.M,{slugs:L,children:k})}),N[24]=L,N[25]=k,N[26]=S):S=N[26],N[27]!==z||N[28]!==S?(T=(0,t.jsxs)("section",{"aria-labelledby":m,className:"flex w-full flex-col rounded-lg border bg-card",children:[z,S]}),N[27]=z,N[28]=S,N[29]=T):T=N[29],N[30]!==P||N[31]!==T?(M=(0,t.jsx)(a.Collapsible,{open:P,onOpenChange:A,children:T}),N[30]=P,N[31]=T,N[32]=M):M=N[32],M}])},882780,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(195759),i=e.i(112252),a=e.i(359544),o=e.i(326e3),s=e.i(960773),l=e.i(205194),c=e.i(572201);e.i(707060);var u=e.i(288265),d=e.i(463686),f=e.i(16043);e.i(406201);var m=e.i(967605),p=e.i(251142),g=e.i(140546),h=e.i(604443),v=e.i(988590);let x={Batch:c.d.Batch,Free:c.d.Free},b=[];function y(e){return{value:e,label:(0,t.jsx)(z,{variant:e})}}function j(){h.f.getState().setPendingVariant(null)}function w(e){return e.pendingVariant}function z(e){let i,a,o,s=(0,n.c)(7),{variant:l}=e;return s[0]!==l?(i=(0,r.x)(l),s[0]=l,s[1]=i):i=s[1],s[2]!==l?(a=(0,t.jsx)(p.f,{variant:l,className:"size-3"}),s[2]=l,s[3]=a):a=s[3],s[4]!==i||s[5]!==a?(o=(0,t.jsxs)("span",{className:"inline-flex items-center gap-2",children:[i,a]}),s[4]=i,s[5]=a,s[6]=o):o=s[6],o}e.s(["VariantSelect",0,function(e){let _,k,S,T,M,N,E,P=(0,n.c)(23),{baseModelPath:A,modelSlug:D,currentVariant:L,variants:C,virtualVariants:I,presentation:R}=e,V=void 0===I?b:I,O=(0,l.f)(),q=(0,u.f)(),F=(0,s.Q)(),B=(0,d.useSelectedLayoutSegment)();P[0]!==B?(_=function(e){if(!e)return null;let t=g.N.find(t=>g.C[t].path===e);return t?g.C[t].path:null}(B),P[0]=B,P[1]=_):_=P[1];let $=_,W=C.length>0||V.length>0,U=function({variants:e,virtualVariants:t}){let n=e=>(0,v.q)(e,x);return[...e.filter(e=>!n(e)),...t,...e.filter(n)]}({variants:C,virtualVariants:V});P[2]!==A||P[3]!==$?(k=e=>`${A}${e===c.e.Standard?"":`:${e}`}${$?`/${$}`:""}`,P[2]=A,P[3]=$,P[4]=k):k=P[4];let H=k,Z=(0,h.f)(w);P[5]!==L?(S=[L],P[5]=L,P[6]=S):S=P[6],(0,f.useEffect)(j,S),P[7]!==$||P[8]!==L||P[9]!==H||P[10]!==D||P[11]!==F||P[12]!==O?(T=e=>{e!==L&&(h.f.getState().setPendingVariant(e),F.capture("change_variant",{model_slug:D,from_variant:L,to_variant:e,tab:$??"overview"}),O.push(H(e),{scroll:!1}))},P[7]=$,P[8]=L,P[9]=H,P[10]=D,P[11]=F,P[12]=O,P[13]=T):T=P[13];let G=T;if(!W)return null;let K=U.find(e=>e===Z)??L;if("chip"===(void 0===R?"select":R)){let e;return P[14]!==q?(e=q("Routing"),P[14]=q,P[15]=e):e=P[15],(0,t.jsx)(a.f,{title:e,trigger:(0,t.jsx)(i.f,{"aria-label":q("Routing: {label}",{label:(0,r.x)(K)}),children:(0,t.jsx)(z,{variant:K})}),options:U.map(y),value:K,onValueChange:G})}P[16]!==q?(M=q("Select variant"),P[16]=q,P[17]=M):M=P[17];let Q=o.SelectContent;P[18]!==H?(N=e=>(0,t.jsx)(m.Link,{href:H(e),scroll:!1,className:"text-foreground",children:(0,t.jsx)(o.SelectItem,{value:e,children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,r.x)(e),(0,t.jsx)(p.f,{variant:e,className:"size-3"})]})})},e),P[18]=H,P[19]=N):N=P[19];let Y=U.map(N);return P[20]!==Q||P[21]!==Y?(E=(0,t.jsx)(Q,{children:Y}),P[20]=Q,P[21]=Y,P[22]=E):E=P[22],(0,t.jsxs)(o.Select,{value:K,onValueChange:G,size:"compact",children:[(0,t.jsx)(o.SelectTrigger,{className:"w-auto gap-2",children:(0,t.jsx)(o.SelectValue,{placeholder:M,children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,r.x)(K),(0,t.jsx)(p.f,{variant:K,className:"size-3"})]})})}),E]})}],882780)},109460,e=>{"use strict";e.s(["_",0,"top-[calc(var(--navbar-height)+70px+var(--sticky-banner-top,0px))]","d",0,"top-[calc(var(--navbar-height)+44px+var(--sticky-banner-top,0px))]","L",0,"top-[calc(var(--navbar-height)+var(--navbar-top,0px))]","W",0,125,"$",0,"scroll-mt-[calc(var(--navbar-height)+125px+var(--sticky-banner-top,0px))] lg:scroll-mt-[calc(var(--navbar-height)+70px+var(--sticky-banner-top,0px))]"])},140546,221612,e=>{"use strict";var t=e.i(579841),n=e.i(667417),r=e.i(209615),i=e.i(572201);e.i(707060);var a=e.i(387086),o=e.i(837808);function s(e){return e.includes(n.j.Image)?"image":e.includes(n.j.Video)?"video":e.includes(n.j.TTS)?o.Z:void 0}e.s(["f",0,s],221612);let l={overview:{title:(0,a.b)("Overview"),path:""},providers:{title:(0,a.b)("Providers"),path:"providers"},performance:{title:(0,a.b)("Performance"),path:"performance"},pricing:{title:(0,a.b)("Pricing"),path:"pricing"},benchmarks:{title:(0,a.b)("Benchmarks"),path:"benchmarks"},versions:{title:(0,a.b)("Versions"),path:"versions",disabled:!0},apps:{title:(0,a.b)("Apps"),path:"apps"},activity:{title:(0,a.b)("Activity"),path:"activity"},uptime:{title:(0,a.b)("Uptime"),path:"uptime"},api:{title:(0,a.b)("API"),path:"api"}},c=["overview","providers","pricing","performance","uptime","benchmarks","apps","activity","api"],u=["overview","benchmarks","providers","pricing","performance","uptime","apps","activity","api"],d=new Set(["activity","apps","benchmarks","performance","pricing","uptime"]);function f({model:e,hasBenchmarks:a}){switch(e.group){case r.f.Router:return["overview","api"];case r.f.Media:case r.f.Other:case r.f.GPT:case r.f.Claude:case r.f.Gemini:case r.f.Gemma:case r.f.Grok:case r.f.Cohere:case r.f.Nova:case r.f.Qwen:case r.f.Yi:case r.f.DeepSeek:case r.f.Mistral:case r.f.Llama2:case r.f.Llama3:case r.f.Llama4:case r.f.PaLM:case r.f.RWKV:case r.f.Qwen3:break;default:e.group}return e.endpoint?(s(e.output_modalities)?u:c).filter(r=>!("benchmarks"===r&&!a||"pricing"===r&&(e.output_modalities.includes(n.j.TTS)||(0,t.W)(e.output_modalities)||e.endpoint?.variant===i.d.Free))):["activity"]}e.s(["M",0,function({model:e,hasBenchmarks:t,isPrivateView:n=!1}){var r;if(n||!0===(r=e).is_private||r.endpoint?.is_private===!0){let n=f({model:e,hasBenchmarks:t}).filter(e=>!d.has(e));return n.length>0?n:["overview"]}return f({model:e,hasBenchmarks:t})},"C",0,l,"N",0,c],140546)},950008,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(136562),i=e.i(41277),a=e.i(16043),o=e.i(18728);let s=(0,a.createContext)(null);function l(e){return e-1}function c(e){return e+1}e.s(["ModelSectionShareGroup",0,function(e){let i,o,l=(0,n.c)(7),{id:c,className:u,children:d}=e,f=((0,a.useContext)(s)?.isTitleShareMounted??!1)&&"group";return l[0]!==u||l[1]!==f?(i=(0,r.f)(f,u),l[0]=u,l[1]=f,l[2]=i):i=l[2],l[3]!==d||l[4]!==c||l[5]!==i?(o=(0,t.jsx)("section",{id:c,className:i,children:d}),l[3]=d,l[4]=c,l[5]=i,l[6]=o):o=l[6],o},"ModelSectionSharePortal",0,function(){let e,t,r,l=(0,n.c)(8),c=(0,a.useContext)(i.o),u=(0,a.useContext)(s),d=u?.target??null,f=c?.onMount,m=u?.onPortalMount,p=null!==d;return(l[0]!==p||l[1]!==f||l[2]!==m?(e=()=>{if(!p)return;let e=f?.(),t=m?.();return()=>{e?.(),t?.()}},t=[p,f,m],l[0]=p,l[1]=f,l[2]=m,l[3]=e,l[4]=t):(e=l[3],t=l[4]),(0,a.useLayoutEffect)(e,t),null===c||null===d)?null:(l[5]!==c.trigger||l[6]!==d?(r=(0,o.createPortal)(c.trigger,d),l[5]=c.trigger,l[6]=d,l[7]=r):r=l[7],r)},"ModelSectionShareSlotProvider",0,function(e){let r,i,o,u=(0,n.c)(7),{children:d}=e,[f,m]=(0,a.useState)(null),[p,g]=(0,a.useState)(0);u[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>(g(c),()=>g(l)),u[0]=r):r=u[0];let h=r,v=p>0;u[1]!==v||u[2]!==f?(i={target:f,setTarget:m,isTitleShareMounted:v,onPortalMount:h},u[1]=v,u[2]=f,u[3]=i):i=u[3];let x=i;return u[4]!==d||u[5]!==x?(o=(0,t.jsx)(s.Provider,{value:x,children:d}),u[4]=d,u[5]=x,u[6]=o):o=u[6],o},"ModelSectionShareSlotTarget",0,function(){let e,r=(0,n.c)(2),i=(0,a.useContext)(s),o=i?.setTarget;return r[0]!==o?(e=(0,t.jsx)("span",{ref:o,className:"flex h-5 items-center"}),r[0]=o,r[1]=e):e=r[1],e}])},627203,32123,e=>{"use strict";var t=e.i(663456),n=e.i(134611),r=e.i(510433),i=e.i(236614),a=e.i(231171),o=e.i(960773);e.i(707060);var s=e.i(387086),l=e.i(522464),c=e.i(16043),u=e.i(369677),d=e.i(184822),f=e.i(12771),m=e.i(297900),p=e.i(667417),g=e.i(919873);let h=m.f.Extractions.apiType,v="section",x="sidebar",b="none",y={[m.f.Completions.apiType]:{coverage:x},[m.f.Embeddings.apiType]:{coverage:b},[m.f.Rerank.apiType]:{coverage:b},[m.f.Decisions.apiType]:{coverage:v,modality:p.j.Decisions},[m.f.Extractions.apiType]:{coverage:v,modality:h},[m.f.Video.apiType]:{coverage:v,modality:g.f.Video},[m.f.TTS.apiType]:{coverage:v,modality:g.f.Speech},[m.f.STT.apiType]:{coverage:x},[m.f.Image.apiType]:{coverage:v,modality:g.f.Image},[m.f.Tools.apiType]:{coverage:b}},j=[{modality:g.f.Image,outputModality:p.j.Image,replacesSidebar:!0,isEligible:d.M},{modality:g.f.Video,outputModality:p.j.Video,replacesSidebar:!0,isEligible:d.q},{modality:g.f.Speech,outputModality:p.j.TTS,replacesSidebar:!0,isEligible:d.C},{modality:p.j.Decisions,outputModality:p.j.Decisions,replacesSidebar:!1,isEligible:d.e},{modality:h,outputModality:null,replacesSidebar:!1,isEligible:d.G}];function w(e){var t;let n,r=e.model.request_paths;if(void 0===r){let t=j.find(({outputModality:t,isEligible:n})=>null!==t&&n(e));return{modality:t?.modality??null,unsupportedApiTypes:[]}}let i=(0,f.f)(r).map(e=>({apiType:e,...y[e]})),a=new Set(i.flatMap(e=>e.coverage===v?[e.modality]:[])),o={...e,model:(t=e.model,n=new Set(j.flatMap(({modality:e,outputModality:t})=>a.has(e)||null===t?[]:[t])),{...t,output_modalities:t.output_modalities.filter(e=>!n.has(e))})},s=j.find(({modality:e,isEligible:t})=>a.has(e)&&t(o)),l=void 0!==s||i.some(e=>e.coverage===x)&&(0,d.p)(e.model);return{modality:s?.modality??null,unsupportedApiTypes:l?[]:i.filter(e=>"unsupported"===e.coverage).map(e=>e.apiType)}}e.s(["V",0,h,"I",0,function(e){let{modality:t}=w(e),n=j.find(e=>e.modality===t);return void 0!==n&&n.replacesSidebar&&(0,d.O)(e)},"z",0,w],32123);let z=(0,s.b)("Playground"),_=l.f;function k(){let e,n=(0,t.c)(3),{model:o,isPrivateView:s}=(0,u.useModelPage)(),l=(0,i.f)(r.J.Chatroom);n[0]!==s||n[1]!==o?(e=w({model:o,isPrivateView:s}),n[0]=s,n[1]=o,n[2]=e):e=n[2];let{modality:c}=e;return l===a.L.Blocked?null:c}e.s(["P",0,_,"w",0,"playground","c",0,z,"Y",0,function(e){return null!==w(e).modality},"d",0,function(){return null!==k()},"g",0,k,"I",0,function(){let e,r,i,a,s,l=(0,t.c)(12),{model:d,isPrivateView:f}=(0,u.useModelPage)(),m=(0,o.Q)();if(l[0]!==f||l[1]!==d){let{modality:t,unsupportedApiTypes:n}=w({model:d,isPrivateView:f});e=t,r=n.join(","),l[0]=f,l[1]=d,l[2]=e,l[3]=r}else e=l[2],r=l[3];let p=r;l[4]!==d?(i=(0,n.i)(d),l[4]=d,l[5]=i):i=l[5];let g=i;l[6]!==e||l[7]!==g||l[8]!==m||l[9]!==p?(a=()=>{null===e&&""!==p&&m.capture("view_model_page_playground_unsupported_api",{model:g,api_types:p.split(",")})},s=[e,p,g,m],l[6]=e,l[7]=g,l[8]=m,l[9]=p,l[10]=a,l[11]=s):(a=l[10],s=l[11]),(0,c.useEffect)(a,s)}],627203)},604443,e=>{"use strict";let t=(0,e.i(313939).f)(e=>({pendingVariant:null,setPendingVariant:t=>e({pendingVariant:t})}));e.s(["f",0,t])},545354,948083,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(371604),i=e.i(340800),a=e.i(430022),o=e.i(427150);let s=/^\d{4}-\d{2}-\d{2}$/;function l(e,t){var n;let r=function(e){let t=function(e){if(!(0,o.f)(e))return null;let t=e.trim();if(""===t)return null;if(s.test(t))return`${t}T${String(13).padStart(2,"0")}:00:00.000Z`;let n=new Date(t);return Number.isNaN(n.getTime())?t:n.toISOString()}(e);if(null===t)return null;let n=new Date(t);return Number.isNaN(n.getTime())||(0,a.Q)(n)!==t.slice(0,10)?null:n.getTime()}(e);if(null===r)return null;let i=(n=t,Math.floor(r/a.N)-Math.floor(n/a.N));return i>90?null:{day:(0,a.Q)(new Date(r)),daysUntil:i}}e.s(["f",0,l],948083);var c=e.i(136562),u=e.i(233452),d=e.i(751155),f=e.i(138257);e.i(707060);var m=e.i(288265);e.s(["f",0,function(e){let a,o,s,p,g,h,v,x,b,y=(0,n.c)(22),{deprecationDate:j,className:w}=e,z=(0,f.useLocale)(),_=(0,m.f)();y[0]!==j?(a=l(j,Date.now()),y[0]=j,y[1]=a):a=y[1];let k=a;if(!k)return null;let{day:S,daysUntil:T}=k;if(y[2]!==S||y[3]!==T||y[4]!==_||y[5]!==z){let e=(0,i.C)(new Date(`${S}T00:00:00.000Z`),{locale:z,timeZone:"UTC",preset:"long"})??"—",t=T<0;o=t?_("Deprecated"):_("Going away {date}",{date:e}),s=_(t?"Deprecated on {date}":"Going away on {date}",{date:e}),y[2]=S,y[3]=T,y[4]=_,y[5]=z,y[6]=o,y[7]=s}else o=y[6],s=y[7];let M=s;return y[8]!==T?(p=T<=3?"negative":"warning",y[8]=T,y[9]=p):p=y[9],y[10]!==w?(g=(0,c.f)("h-5 gap-1.5 whitespace-nowrap",w),y[10]=w,y[11]=g):g=y[11],y[12]===Symbol.for("react.memo_cache_sentinel")?(h=(0,t.jsx)(r.f,{className:"size-3.5"}),y[12]=h):h=y[12],y[13]!==o?(v=(0,t.jsx)("span",{children:o}),y[13]=o,y[14]=v):v=y[14],y[15]!==p||y[16]!==g||y[17]!==v?(x=(0,t.jsxs)(u.Badge,{variant:p,size:"sm",className:g,children:[h,v]}),y[15]=p,y[16]=g,y[17]=v,y[18]=x):x=y[18],y[19]!==x||y[20]!==M?(b=(0,t.jsx)(d.Tooltip,{content:M,children:x}),y[19]=x,y[20]=M,y[21]=b):b=y[21],b}],545354)},761512,e=>{"use strict";var t=e.i(667417),n=e.i(207298);let r=(0,n.f)("",{variants:{modality:{[t.j.Text]:"bg-modality-text/12",[t.j.Image]:"bg-modality-image/12",[t.j.Audio]:"bg-modality-audio/12",[t.j.Video]:"bg-modality-video/12",[t.j.Embeddings]:"bg-modality-embeddings/12",[t.j.Rerank]:"bg-modality-rerank/12",[t.j.Decisions]:"bg-modality-rerank/12",[t.j.TTS]:"bg-modality-tts/12",[t.j.Transcription]:"bg-modality-transcription/12"}}}),i=(0,n.f)("",{variants:{modality:{[t.j.Text]:"border-modality-text",[t.j.Image]:"border-modality-image",[t.j.Audio]:"border-modality-audio",[t.j.Video]:"border-modality-video",[t.j.Embeddings]:"border-modality-embeddings",[t.j.Rerank]:"border-modality-rerank",[t.j.Decisions]:"border-modality-rerank",[t.j.TTS]:"border-modality-tts",[t.j.Transcription]:"border-modality-transcription"}}}),a=(0,n.f)("",{variants:{modality:{[t.j.Text]:"",[t.j.Image]:"",[t.j.Audio]:"",[t.j.Video]:"",[t.j.Embeddings]:"",[t.j.Rerank]:"",[t.j.Decisions]:"",[t.j.TTS]:"",[t.j.Transcription]:""},isActive:{true:"",false:""}},compoundVariants:[{modality:t.j.Text,isActive:!0,class:"text-modality-text"},{modality:t.j.Image,isActive:!0,class:"text-modality-image"},{modality:t.j.Audio,isActive:!0,class:"text-modality-audio"},{modality:t.j.Video,isActive:!0,class:"text-modality-video"},{modality:t.j.Embeddings,isActive:!0,class:"text-modality-embeddings"},{modality:t.j.Rerank,isActive:!0,class:"text-modality-rerank"},{modality:t.j.Decisions,isActive:!0,class:"text-modality-rerank"},{modality:t.j.TTS,isActive:!0,class:"text-modality-tts"},{modality:t.j.Transcription,isActive:!0,class:"text-modality-transcription"},{modality:t.j.Text,isActive:!1,class:"group-hover:text-modality-text"},{modality:t.j.Image,isActive:!1,class:"group-hover:text-modality-image"},{modality:t.j.Audio,isActive:!1,class:"group-hover:text-modality-audio"},{modality:t.j.Video,isActive:!1,class:"group-hover:text-modality-video"},{modality:t.j.Embeddings,isActive:!1,class:"group-hover:text-modality-embeddings"},{modality:t.j.Rerank,isActive:!1,class:"group-hover:text-modality-rerank"},{modality:t.j.Decisions,isActive:!1,class:"group-hover:text-modality-rerank"},{modality:t.j.TTS,isActive:!1,class:"group-hover:text-modality-tts"},{modality:t.j.Transcription,isActive:!1,class:"group-hover:text-modality-transcription"}],defaultVariants:{isActive:!0}});e.s(["p",0,r,"i",0,i,"W",0,a])},918662,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(136562),i=e.i(177113),a=e.i(894868),o=e.i(751155);e.i(707060);var s=e.i(196991);e.s(["f",0,function(e){let l,c,u,d,f,m,p=(0,n.c)(21),{author:g,permaslug:h,iconUri:v,isLatestAlias:x,className:b,tooltipSide:y,frame:j}=e,w=void 0===y?"top":y,z=void 0!==j&&j;if(!x){let e;return p[0]!==g||p[1]!==b||p[2]!==z||p[3]!==v||p[4]!==h?(e=(0,t.jsx)(a.f,{author:g,permaslug:h,iconUri:v,frame:z,className:b}),p[0]=g,p[1]=b,p[2]=z,p[3]=v,p[4]=h,p[5]=e):e=p[5],e}return p[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(s.T,{children:(0,t.jsx)("span",{children:"OpenRouter latest alias — automatically resolves to the newest model in this version group."})}),p[6]=l):l=p[6],p[7]!==b?(c=(0,r.f)("relative inline-flex shrink-0",b),p[7]=b,p[8]=c):c=p[8],p[9]!==g||p[10]!==z||p[11]!==v||p[12]!==h?(u=(0,t.jsx)(a.f,{author:g,permaslug:h,iconUri:v,frame:z,className:"shrink-0"}),p[9]=g,p[10]=z,p[11]=v,p[12]=h,p[13]=u):u=p[13],p[14]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(s.T,{children:(0,t.jsx)("span",{role:"img","aria-label":"OpenRouter latest alias",className:(0,r.f)("absolute -bottom-0.5 -right-0.5","flex items-center justify-center","size-3 rounded-full","bg-foreground text-background","ring-1 ring-background"),children:(0,t.jsx)(i.f,{className:"size-2"})})}),p[14]=d):d=p[14],p[15]!==c||p[16]!==u?(f=(0,t.jsxs)("span",{className:c,"data-testid":"model-author-icon-latest-alias",children:[u,d]}),p[15]=c,p[16]=u,p[17]=f):f=p[17],p[18]!==f||p[19]!==w?(m=(0,t.jsx)(o.Tooltip,{side:w,content:l,children:f}),p[18]=f,p[19]=w,p[20]=m):m=p[20],m}])},251142,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(838479),i=e.i(16043);let a=i.forwardRef(function({title:e,titleId:t,...n},r){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:r,"aria-labelledby":t},n),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 0 1-1.043 3.296 3.745 3.745 0 0 1-3.296 1.043A3.745 3.745 0 0 1 12 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 0 1-3.296-1.043 3.745 3.745 0 0 1-1.043-3.296A3.745 3.745 0 0 1 3 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 0 1 1.043-3.296 3.746 3.746 0 0 1 3.296-1.043A3.746 3.746 0 0 1 12 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 0 1 3.296 1.043 3.746 3.746 0 0 1 1.043 3.296A3.745 3.745 0 0 1 21 12Z"}))}),o=i.forwardRef(function({title:e,titleId:t,...n},r){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:r,"aria-labelledby":t},n),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 7.5-2.25-1.313M21 7.5v2.25m0-2.25-2.25 1.313M3 7.5l2.25-1.313M3 7.5l2.25 1.313M3 7.5v2.25m9 3 2.25-1.313M12 12.75l-2.25-1.313M12 12.75V15m0 6.75 2.25-1.313M12 21.75V19.5m0 2.25-2.25-1.313m0-16.875L12 2.25l2.25 1.313M21 14.25v2.25l-2.25 1.313m-13.5 0L3 16.5v-2.25"}))});var s=e.i(922969),l=e.i(486704),c=e.i(214051),u=e.i(338749);let d=i.forwardRef(function({title:e,titleId:t,...n},r){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:r,"aria-labelledby":t},n),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 10.5V6.75a4.5 4.5 0 1 1 9 0v3.75M3.75 21.75h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H3.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"}))});var f=e.i(653432),m=e.i(195759),p=e.i(572201);e.i(707060);var g=e.i(288265);e.s(["f",0,function(e){let i,h=(0,n.c)(30),{className:v,variant:x}=e,b=void 0===v?"w-4 h-4":v,y=(0,g.f)();h[0]!==y||h[1]!==x?(i=y("{label} variant",{label:(0,m.x)(x)}),h[0]=y,h[1]=x,h[2]=i):i=h[2];let j=i;switch(x){case p.e.Nitro:{let e;return h[3]!==b||h[4]!==j?(e=(0,t.jsx)(r.f,{title:j,className:b}),h[3]=b,h[4]=j,h[5]=e):e=h[5],e}case p.e.Floor:{let e;return h[6]!==b||h[7]!==j?(e=(0,t.jsx)(s.f,{title:j,className:b}),h[6]=b,h[7]=j,h[8]=e):e=h[8],e}case p.e.Online:{let e;return h[9]!==b||h[10]!==j?(e=(0,t.jsx)(c.f,{title:j,className:b}),h[9]=b,h[10]=j,h[11]=e):e=h[11],e}case p.e.Free:{let e;return h[12]!==b||h[13]!==j?(e=(0,t.jsx)(l.f,{title:j,className:b}),h[12]=b,h[13]=j,h[14]=e):e=h[14],e}case p.e.Extended:{let e;return h[15]!==b||h[16]!==j?(e=(0,t.jsx)(o,{title:j,className:b}),h[15]=b,h[16]=j,h[17]=e):e=h[17],e}case p.e.Exacto:{let e;return h[18]!==b||h[19]!==j?(e=(0,t.jsx)(a,{title:j,className:b}),h[18]=b,h[19]=j,h[20]=e):e=h[20],e}case p.e.SelfMod:{let e;return h[21]!==b||h[22]!==j?(e=(0,t.jsx)(d,{title:j,className:b}),h[21]=b,h[22]=j,h[23]=e):e=h[23],e}case p.e.Thinking:{let e;return h[24]!==b||h[25]!==j?(e=(0,t.jsx)(u.f,{title:j,className:b}),h[24]=b,h[25]=j,h[26]=e):e=h[26],e}case p.e.Batch:{let e;return h[27]!==b||h[28]!==j?(e=(0,t.jsx)(f.f,{title:j,className:b}),h[27]=b,h[28]=j,h[29]=e):e=h[29],e}case p.e.Standard:case p.e.All:default:return null}}],251142)},117686,e=>{"use strict";var t=e.i(615199);e.i(707060);var n=e.i(387086);let r={[t.$.Age18Plus]:{label:(0,n.b)("18+ age confirmation"),statement:(0,n.b)("I confirm that I am 18 years of age or older."),organizationStatement:(0,n.b)("Confirm that all users in this organization meet the 18+ age requirement.")},[t.$.PrivilegedModelAccess]:{label:(0,n.b)("Privileged model access approval"),statement:(0,n.b)("This account is approved by OpenRouter to use privileged models."),organizationStatement:(0,n.b)("This organization is approved by OpenRouter to use privileged models.")}};e.s(["f",0,r])},465370,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(775593),i=e.i(575731),a=e.i(136562),o=e.i(609623),s=e.i(199630),l=e.i(199168),c=e.i(272719),u=e.i(16043),d=e.i(700050);function f(e){return e.toggleModelPin}e.s(["f",0,function(e){let m,p,g,h,v,x,b,y,j,w,z,_=(0,n.c)(28),{modelSlug:k,origin:S,className:T,hoverOnly:M}=e,N=(0,l.o)(),E=(0,s.f)();_[0]!==k?(m=e=>e.pinnedModelSlugs.includes(k),_[0]=k,_[1]=m):m=_[1];let P=(0,c.f)(m),A=E&&P,D=(0,c.f)(f),[L,C]=(0,u.useState)(!1);_[2]!==A||_[3]!==k||_[4]!==S||_[5]!==D?(p=e=>{e.preventDefault(),e.stopPropagation(),A?(0,d.T)({model:k,origin:S}):(0,d.z)({model:k,origin:S}),C(!A),D(k)},_[2]=A,_[3]=k,_[4]=S,_[5]=D,_[6]=p):p=_[6];let I=p;_[7]!==N||_[8]!==A?(g=N(A?"Unpin model":"Pin model"),_[7]=N,_[8]=A,_[9]=g):g=_[9];let R=g,V=void 0!==M&&M&&"opacity-0 group-hover:opacity-100 focus-visible:opacity-100";return _[10]!==T||_[11]!==V?(h=(0,a.f)("inline-flex transition duration-fast","text-muted-foreground hover:text-foreground","aria-pressed:text-warning aria-pressed:hover:text-warning","shrink-0",V,T),_[10]=T,_[11]=V,_[12]=h):h=_[12],_[13]===Symbol.for("react.memo_cache_sentinel")?(v=()=>C(!1),x=(0,a.f)("relative inline-flex","motion-safe:data-[celebrating=true]:animate-pop","after:pointer-events-none after:absolute after:inset-0 after:rounded-full after:border after:border-warning after:opacity-0","motion-safe:data-[celebrating=true]:after:animate-burst-ring"),_[13]=v,_[14]=x):(v=_[13],x=_[14]),_[15]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsx)(r.f,{className:"size-3.5"}),b=(0,t.jsx)(i.f,{className:"size-3.5"}),_[15]=b,_[16]=y):(b=_[15],y=_[16]),_[17]!==A?(j=(0,t.jsx)(o.f,{active:A,from:y,to:b}),_[17]=A,_[18]=j):j=_[18],_[19]!==L||_[20]!==j?(w=(0,t.jsx)("span",{"data-celebrating":L,onAnimationEnd:v,className:x,children:j}),_[19]=L,_[20]=j,_[21]=w):w=_[21],_[22]!==I||_[23]!==A||_[24]!==R||_[25]!==w||_[26]!==h?(z=(0,t.jsx)("button",{type:"button",onClick:I,title:R,"aria-label":R,"aria-pressed":A,className:h,children:w}),_[22]=I,_[23]=A,_[24]=R,_[25]=w,_[26]=h,_[27]=z):z=_[27],z}])},42208,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(136562);e.s(["f",0,function(e){let i,a,o,s=(0,n.c)(7),{icon:l,isHoverAccent:c}=e,u=void 0!==c&&c&&"transition-colors group-hover:bg-accent-subtle group-hover:text-accent-foreground";return s[0]!==u?(i=(0,r.f)("flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground",u),s[0]=u,s[1]=i):i=s[1],s[2]!==l?(a=(0,t.jsx)(l,{className:"size-5","aria-hidden":"true"}),s[2]=l,s[3]=a):a=s[3],s[4]!==i||s[5]!==a?(o=(0,t.jsx)("span",{className:i,children:a}),s[4]=i,s[5]=a,s[6]=o):o=s[6],o}])},779060,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(136562),i=e.i(18728),a=e.i(803979);e.s(["MobileActionBar",0,function(e){var o,s;let l,c,u,d,f,m,p=(0,n.c)(19),{children:g,hiddenFrom:h,isCompact:v,controlSize:x}=e,b=void 0===h?"md":h,y=void 0!==v&&v,j=void 0===x?"sm":x,w=(0,a.f)(),z="sm"===b?"sm:hidden":"md:hidden";if(!w)return null;let _=y?"gap-2 px-4 py-2 pb-[calc(0.5rem+env(safe-area-inset-bottom))]":"gap-3 p-4 pb-[calc(1rem+env(safe-area-inset-bottom))]";return p[0]!==z||p[1]!==_?(l=(0,r.f)("peer fixed inset-x-0 bottom-0 z-overlay mx-auto flex w-full border-border/50 border-t bg-background empty:hidden",_,z),p[0]=z,p[1]=_,p[2]=l):l=p[2],p[3]!==g||p[4]!==b||p[5]!==l?(c=(0,t.jsx)("div",{"data-mobile-action-bar":b,className:l,children:g}),p[3]=g,p[4]=b,p[5]=l,p[6]=c):c=p[6],p[7]!==j||p[8]!==z||p[9]!==y?(u=(0,r.f)("peer-empty:hidden",(o=y,s=j,o?"default"===s?"h-[calc(3.5rem+env(safe-area-inset-bottom))]":"h-[calc(3rem+env(safe-area-inset-bottom))]":"h-[calc(4.5rem+env(safe-area-inset-bottom))]"),z),p[7]=j,p[8]=z,p[9]=y,p[10]=u):u=p[10],p[11]!==u?(d=(0,t.jsx)("div",{"aria-hidden":!0,className:u}),p[11]=u,p[12]=d):d=p[12],p[13]!==c||p[14]!==d?(f=(0,t.jsxs)(t.Fragment,{children:[c,d]}),p[13]=c,p[14]=d,p[15]=f):f=p[15],p[16]!==w||p[17]!==f?(m=(0,i.createPortal)(f,w),p[16]=w,p[17]=f,p[18]=m):m=p[18],m}])},803979,e=>{"use strict";var t=e.i(663456),n=e.i(199630);e.s(["f",0,function(){let e,r=(0,t.c)(2),i=(0,n.f)();return r[0]!==i?(e=i?document.querySelector("#portal-container")??document.body:null,r[0]=i,r[1]=e):e=r[1],e}])},353524,e=>{"use strict";var t=e.i(134611),n=e.i(819750),r=e.i(524287),i=e.i(173465),a=e.i(613497);let o=(0,r.f)("author-models",{detail:e=>[null===e?null:{authorSlug:e}]});function s(e){return(0,i.f)({queryKey:o.detail(e),queryFn:null===e?a.V:({signal:t})=>(0,n.f)("/api/frontend/v1/author-models",{searchParams:{authorSlug:e},signal:t})})}e.s(["k",0,s,"a",0,function(e,n){let r=s(e);return null===n?(0,i.f)({...r,queryFn:a.V}):(0,i.f)({...r,select:e=>{var r,i;return r=e,i=n,{...r,models:r.models.filter(e=>(0,t.i)(e)!==i).toSorted((e,t)=>new Date(t.created_at).getTime()-new Date(e.created_at).getTime())}}})}])},447131,e=>{"use strict";var t=e.i(659350),n=e.i(663456),r=e.i(136562),i=e.i(139697),a=e.i(751155),o=e.i(126324),s=e.i(231171),l=e.i(199168);e.s(["f",0,function(e){let c,u,d=(0,n.c)(30),{gate:f,blockedTriggerClassName:m,variant:p,size:g,density:h,className:v,render:x,onClick:b,"aria-label":y,children:j}=e,w=(0,l.M)();d[0]!==v?(c=(0,r.f)(v,"pointer-events-none opacity-50"),d[0]=v,d[1]=c):c=d[1],d[2]!==j||d[3]!==h||d[4]!==g||d[5]!==c||d[6]!==p?(u=(0,t.jsx)(i.Button,{variant:p,size:g,density:h,className:c,"aria-disabled":"true",tabIndex:-1,children:j}),d[2]=j,d[3]=h,d[4]=g,d[5]=c,d[6]=p,d[7]=u):u=d[7];let z=u;switch(f){case s.L.Allowed:{let e;return d[8]!==y||d[9]!==j||d[10]!==v||d[11]!==h||d[12]!==b||d[13]!==x||d[14]!==g||d[15]!==p?(e=(0,t.jsx)(i.Button,{variant:p,size:g,density:h,className:v,render:x,onClick:b,"aria-label":y,children:j}),d[8]=y,d[9]=j,d[10]=v,d[11]=h,d[12]=b,d[13]=x,d[14]=g,d[15]=p,d[16]=e):e=d[16],e}case s.L.Loading:return z;case s.L.Blocked:{let e,n,r,i,s;return d[17]!==w?(e=w(o.f),d[17]=w,d[18]=e):e=d[18],d[19]!==w?(n=w(o.f),d[19]=w,d[20]=n):n=d[20],d[21]!==n?(r=(0,t.jsx)("span",{className:"sr-only",children:n}),d[21]=n,d[22]=r):r=d[22],d[23]!==m||d[24]!==z||d[25]!==r?(i=(0,t.jsxs)(a.TooltipNonInteractiveTrigger,{className:m,children:[z,r]}),d[23]=m,d[24]=z,d[25]=r,d[26]=i):i=d[26],d[27]!==e||d[28]!==i?(s=(0,t.jsx)(a.Tooltip,{content:e,children:i}),d[27]=e,d[28]=i,d[29]=s):s=d[29],s}default:return f}}])}]); //# sourceMappingURL=3yk1koccdwsrs.js.map