(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[95],{12098:function(e,t,r){"use strict";r.d(t,{z:function(){return c}});var n=r(57437),l=r(71538),o=r(12218),a=r(2265);let i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")},s=(0,o.j)(i("border inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ","ring-offset-background focus-visible:outline-none","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50","transition-all duration-[500ms] ease-in-out"),{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/60 border-none",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",selectable:"hover:text-accent-foreground hover:bg-accent",selected:"bg-panel dark:text-accent-foreground dark:bg-accent border-accent-border hover:bg-accent/80 hover:text-accent-foreground",cta:"bg-accent text-accent-foreground border-accent-border hover:bg-lm-blue hover:text-accent-foreground",cta2:"bg-panel dark:text-accent-foreground dark:bg-accent border-accent-border hover:bg-accent/80 hover:text-accent-foreground",purple:"bg-lm-purple/100 border-lm-purple border hover:bg-lm-purple/50 text-white"},size:{default:"h-10 px-4 py-2",sm:"h-7 w-7 rounded-md ",lg:"h-11 rounded-md px-8",icon:"h-10 w-10",sections:"h-5 w-fit px-4 rounded"}},defaultVariants:{variant:"default",size:"default"}}),c=a.forwardRef((e,t)=>{let{className:r,variant:o,size:a,asChild:c=!1,...d}=e,u=c?l.g7:"button";return(0,n.jsx)(u,{className:i(s({variant:o,size:a,className:r})),ref:t,...d})});c.displayName="Button"},56242:function(e,t,r){"use strict";r.d(t,{U:function(){return S}});var n=r(57437);r(67103);var l=r(49354),o=r(2265),a=r(59095),i=r(75033),s=r(51531),c=r(19997),d=r(76774),u=r(32643),m=r(80853),f=r(20175),p=r(9905);let x=e=>{let{options:t}=e;return(0,n.jsx)("div",{children:(0,n.jsx)("pre",{className:"border",children:JSON.stringify(t,null,2)})})},v=e=>{try{return p.ZP.load(e)}catch(e){return console.error(e),null}};var h=r(72655);let g=(0,o.memo)(function(e){let{children:t,className:r}=e;return(0,n.jsx)("div",{className:(0,l.cn)("bg-panel/70 p-3 rounded-md border border-border/30 my-6 font-medium",r),children:(0,n.jsx)(S,{children:t})})}),b=(0,o.memo)(function(e){let{children:t,className:r,hideIcon:o}=e;return(0,n.jsxs)("div",{className:(0,l.cn)("bg-lm-purple/5 dark:bg-lm-green/5 rounded-md border border-border/30 p-2 h-fit my-3 mb-5 gap-2 flex flex-col",r),children:[!o&&(0,n.jsxs)("div",{className:"flex items-center justify-start flex-row gap-1 text-sm h-fit opacity-80 text-lm-purple dark:text-lm-green",children:[(0,n.jsx)(h.PnF,{className:"text-lg"}),(0,n.jsx)("span",{children:"Pro Tip"})]}),(0,n.jsx)(S,{className:"text-sm",children:t})]})}),j=(0,o.memo)(function(e){let{children:t,className:r}=e;return(0,n.jsxs)("div",{className:(0,l.cn)("bg-lm-yellow/5 rounded-md border border-border/30 p-2  my-3 gap-2 flex flex-col",r),children:[(0,n.jsxs)("div",{className:"flex items-center justify-start flex-row gap-1 text-sm h-fit opacity-80 text-lm-yellow",children:[(0,n.jsx)(h.Hm9,{className:"text-lg"}),(0,n.jsx)("span",{children:"Heads Up"})]}),(0,n.jsx)(S,{className:"text-sm",children:t})]})}),N=(0,o.memo)(function(e){let{children:t,className:r}=e;return(0,n.jsxs)("div",{className:(0,l.cn)("bg-lm-blue/5 rounded-md border border-border/30 p-2 my-3 gap-2 flex flex-col",r),children:[(0,n.jsxs)("div",{className:"flex items-center justify-start flex-row gap-1 text-sm h-fit opacity-80 text-lm-blue",children:[(0,n.jsx)(h.GCM,{className:"text-lg"}),(0,n.jsx)("span",{children:"Info"})]}),(0,n.jsx)(S,{className:"text-sm",children:t})]})});var y=r(20037);let w=e=>{if("text"===e.type){var t,r;return null!==(r=null===(t=e.value)||void 0===t?void 0:t.toLowerCase())&&void 0!==r?r:""}return e.children?e.children.map(w).join(""):""},k=[[i.Z,{detect:!0,ignoreMissing:!0}],s.Z,()=>e=>{(0,y.Vn)(e,"element",e=>{if("h1"===e.tagName||"h2"===e.tagName||"h3"===e.tagName){let t=w(e).replace(/\s/g,"-").replace(/\`/g,"").replace(/[^a-z0-9-]/g,"");e.properties={...e.properties,id:t}}})},()=>e=>{(0,y.Vn)(e,"element",e=>{if("img"===e.tagName){let t=e.properties.dataCaption;e.properties={...e.properties,caption:t}}})}],C=[c.Z],H=(0,f.l)().use(d.Z).use(C).use(m.Z,{allowDangerousHtml:!0}).use(k),S=(0,o.memo)(function(e){let{children:t,className:r,scope:o}=e,i="blog"===o;return(0,n.jsx)(a.U,{remarkPlugins:C,rehypePlugins:k,className:"markdown-body ".concat(r),processor:H,components:{div:e=>{var t;let{node:r,...l}=e;if((null==r?void 0:r.properties["data-custom-component"])==="DownloadOptions"){let e=v(String(null==r?void 0:r.properties["data-options"]));return(0,n.jsx)(x,{options:e})}return(0,n.jsx)("div",{className:String(null!==(t=l.className)&&void 0!==t?t:""),...l})},h1:e=>{var t;let{...r}=e;return i?(0,n.jsx)(u.H1,{...r,className:(0,l.cn)(i&&"border-none h-10 p-0 m-0",null!==(t=r.className)&&void 0!==t?t:"")}):(0,n.jsx)(u.H1,{...r})},h2:e=>{var t;let{...r}=e;return i?(0,n.jsx)(u.H2,{...r,className:(0,l.cn)(i&&"border-none h-10 p-0 m-0",null!==(t=r.className)&&void 0!==t?t:""),style:{paddingBottom:"0rem"}}):(0,n.jsx)(u.H2,{...r})},h3:e=>{var t;let{...r}=e;return(0,n.jsx)(u.H3,{...r,className:(0,l.cn)("border-none h-12 p-0 m-0",null!==(t=r.className)&&void 0!==t?t:""),style:{paddingBottom:"0rem"}})},p:e=>{var t,o;let{node:a,...i}=e,s=String(null!==(o=null==a?void 0:null===(t=a.properties)||void 0===t?void 0:t.className)&&void 0!==o?o:"");return(0,n.jsx)("p",{...i,className:(0,l.cn)("text-foreground/90",r,s)})},pre:e=>{var t,o,a,i,s,c,d,m,f,p,h,y,w,k;let{node:C,...H}=e;if(C&&(null==C?void 0:null===(t=C.children)||void 0===t?void 0:t.length)>1)return(0,n.jsx)(u.CodeBlock,{...H,className:(0,l.cn)("whitespace-normal text-sm",r)});let S=null==C?void 0:C.children[0],L=null==S?void 0:null===(a=S.properties)||void 0===a?void 0:null===(o=a.className)||void 0===o?void 0:o.includes("language-lms_download_options"),A=null==S?void 0:null===(i=S.children[0])||void 0===i?void 0:i.value;if(L){let e=v(A);return(0,n.jsx)(x,{options:e})}let B=null==S?void 0:null===(c=S.properties)||void 0===c?void 0:null===(s=c.className)||void 0===s?void 0:s.includes("language-lms_notice"),M=null==S?void 0:null===(m=S.properties)||void 0===m?void 0:null===(d=m.className)||void 0===d?void 0:d.includes("language-lms_protip"),_=null==S?void 0:null===(p=S.properties)||void 0===p?void 0:null===(f=p.className)||void 0===f?void 0:f.includes("language-lms_noticechill"),E=null==S?void 0:null===(y=S.properties)||void 0===y?void 0:null===(h=y.className)||void 0===h?void 0:h.includes("language-lms_warning"),D=null==S?void 0:null===(k=S.properties)||void 0===k?void 0:null===(w=k.className)||void 0===w?void 0:w.includes("language-lms_info");return B?(0,n.jsx)(g,{children:A}):M?(0,n.jsx)(b,{children:A}):_?(0,n.jsx)(b,{hideIcon:!0,className:"text-center",children:A}):E?(0,n.jsx)(j,{children:A}):D?(0,n.jsx)(N,{children:A}):(0,n.jsx)(u.CodeBlock,{...H,className:(0,l.cn)("whitespace-normal text-sm",r)})},code:e=>{let{...t}=e;return(0,n.jsx)(u.Code,{...t,className:"whitespace-nowrap"})},a:e=>{let{...t}=e;return(0,n.jsx)(u.A,{...t})},ul:e=>{let{...t}=e;return(0,n.jsx)(u.List,{...t,className:"list-disc"})},ol:e=>{let{...t}=e;return(0,n.jsx)(u.List,{...t,className:"list-decimal"})},img:e=>{var t;let{node:r,...l}=e;return(0,n.jsx)(u.Image,{...l,caption:(null==r?void 0:r.properties.dataCaption)?String(null==r?void 0:r.properties.dataCaption):void 0,alt:String(null==r?void 0:null===(t=r.properties)||void 0===t?void 0:t.alt)})},video:e=>{let{node:t,...r}=e;return(0,n.jsx)(u.Video,{...r,caption:(null==t?void 0:t.properties.dataCaption)?String(null==t?void 0:t.properties.dataCaption):void 0,controls:!1,autoPlay:!0})},hr:e=>{var t;let{...r}=e;return(0,n.jsx)("hr",{...r,className:(0,l.cn)("",null!==(t=r.className)&&void 0!==t?t:"","my-10 mb-5")})}},children:t})})},32643:function(e,t,r){"use strict";r.d(t,{A:function(){return j},Code:function(){return x},CodeBlock:function(){return h},H1:function(){return u},H2:function(){return m},H3:function(){return f},Image:function(){return g},List:function(){return p},Video:function(){return b}});var n=r(57437),l=r(49354),o=r(2265),a=r(7476),i=r(80874),s=r(12098),c=r(237),d=r(56242);let u=e=>{let{...t}=e;return(0,n.jsxs)("h1",{...t,className:(0,l.cn)("flex items-center flex-row gap-2 w-full justify-start",t.className),children:[(0,n.jsx)("span",{children:t.children}),(0,n.jsx)("a",{href:"#".concat(t.id),className:"text-sm text-foreground/60","aria-label":"Link to this section",onClick:e=>{var r;e.preventDefault(),(0,i.u)(null!==(r=t.id)&&void 0!==r?r:"")},children:(0,n.jsx)(a.XKb,{className:"opacity-0 hover:opacity-100 text-xl transition ease-in-out duration-200"})})]})};u.displayName="H1";let m=e=>{let{...t}=e,[r,s]=o.useState(!1);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("h2",{...t,className:(0,l.cn)("flex items-center flex-row gap-2 w-full justify-start border-b border-border/20",t.className),onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),style:{...t.style},children:[(0,n.jsx)("span",{className:"",children:t.children}),(0,n.jsx)("a",{href:"#".concat(t.id),className:"text-sm text-foreground/60","aria-label":"Link to this section",title:"Link to '".concat(t.children,"'"),onClick:e=>{var r;e.preventDefault(),(0,i.u)(null!==(r=t.id)&&void 0!==r?r:"")},children:(0,n.jsx)(a.XKb,{className:(0,l.cn)("text-xl transition ease-in-out duration-200",r?"opacity-100":"opacity-0 hover:opacity-100")})})]})})};m.displayName="H2";let f=e=>{let{...t}=e,[r,s]=o.useState(!1);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("h3",{...t,className:(0,l.cn)("flex items-center flex-row gap-2 w-full justify-start",t.className),onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[(0,n.jsx)("span",{children:t.children}),(0,n.jsx)("a",{href:"#".concat(t.id),className:"text-sm text-foreground/60","aria-label":"Link to this section",onClick:e=>{var r;e.preventDefault(),(0,i.u)(null!==(r=t.id)&&void 0!==r?r:"")},children:(0,n.jsx)(a.XKb,{className:(0,l.cn)("text-xl transition ease-in-out duration-200",r?"opacity-100":"opacity-0 hover:opacity-100")})})]})})};f.displayName="H3";let p=e=>(0,n.jsx)("ul",{...e,className:(0,l.cn)(e.className),children:e.children});p.displayName="List";let x=e=>{let t=/language-(\w+)/.exec(e.className||""),r=t&&t[1];return(0,n.jsx)("code",{...e,className:(0,l.cn)("hljs",r?"language-".concat(r):"text","border",e.className),dir:"ltr",style:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.children})};x.displayName="Code";let v=(0,o.memo)(function(e){let{content:t,className:r,tooltip:i}=e,[d,u]=o.useState(!1);return(0,o.useEffect)(()=>{if(d){let e=setTimeout(()=>{u(!1)},1e3);return()=>clearTimeout(e)}},[d]),(0,n.jsx)(c.K,{tooltip:null!=i?i:"Copy to clipboard",hidden:void 0===i,children:(0,n.jsx)(s.z,{size:"sm",className:(0,l.cn)("bg-background hover:bg-background/50 hover:text-foreground",r),onClick:()=>{let e="function"==typeof t?t():t;navigator.clipboard.writeText(e),u(!0)},"aria-label":"Copy code",children:d?(0,n.jsx)(a.UgA,{}):(0,n.jsx)(a.C3L,{})})})}),h=e=>{let t=o.useRef(null);return(0,n.jsxs)("div",{className:"relative flex w-full overflow-hidden",dir:"ltr",children:[(0,n.jsx)("pre",{...e,className:(0,l.cn)("relative flex w-full rounded-md bg-background border px-2 ",e.className),ref:t,style:{overflowX:"hidden"},children:e.children}),(0,n.jsx)(v,{className:"absolute right-2 top-2",content:()=>{var e,r;return null!==(r=null===(e=t.current)||void 0===e?void 0:e.innerText)&&void 0!==r?r:""}})]})};h.displayName="CodeBlock";let g=e=>(0,n.jsxs)("div",{className:"w-full block rounded-md justify-center flex-col items-center text-center mb-5",children:[(0,n.jsx)("div",{className:"w-full h-full flex flex-row justify-center items-center",children:(0,n.jsx)("img",{...e,className:(0,l.cn)("w-full block rounded-md",e.className),alt:e.alt})}),e.caption&&(0,n.jsx)("div",{className:"p-3 block text-center bg-background/10 text-xs rounded-b opacity-70 hover:opacity-100",children:(0,n.jsx)(d.U,{children:e.caption})})]});g.displayName="Image";let b=e=>{var t;return(0,n.jsxs)("div",{className:"w-full block rounded-md justify-center flex-col items-center text-center mb-5",children:[(0,n.jsx)("div",{className:"w-full h-full flex flex-row justify-center items-center",children:(0,n.jsx)("video",{...e,autoPlay:!1,controls:!0,className:(0,l.cn)("w-full rounded-lg border",null!==(t=e.className)&&void 0!==t?t:"")})}),e.caption&&(0,n.jsx)("div",{className:"p-3 block text-center bg-background/10 text-xs rounded-b opacity-70 hover:opacity-100",children:(0,n.jsx)(d.U,{children:e.caption})})]})},j=e=>{var t;return(0,n.jsx)("a",{...e,target:(null==e?void 0:null===(t=e.href)||void 0===t?void 0:t.startsWith("http"))?"_blank":void 0,rel:"noopener noreferrer",onClick:t=>{var r;(null===(r=e.href)||void 0===r?void 0:r.startsWith("#"))&&(t.preventDefault(),(0,i.u)(e.href.slice(1)))}})}},237:function(e,t,r){"use strict";r.d(t,{K:function(){return u},p:function(){return i}});var n=r(57437),l=r(2265),o=r(97913),a=r(49354);let i=o.Provider,s=o.Root,c=o.Trigger,d=l.forwardRef((e,t)=>{let{className:r,sideOffset:l=4,...i}=e;return(0,n.jsx)(o.Content,{ref:t,sideOffset:l,className:(0,a.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...i,children:i.children})});d.displayName=o.Content.displayName;let u=l.memo(function(e){let{children:t,tooltip:r,hidden:l,className:i}=e;return l?(0,n.jsx)(n.Fragment,{children:t}):(0,n.jsxs)(s,{children:[(0,n.jsx)(c,{children:t}),(0,n.jsxs)(d,{className:(0,a.cn)("bg-background text-foreground max-w-[400px] flex flex-wrap justify-start text-left",i),children:[r,(0,n.jsx)(o.TooltipArrow,{className:"fill-border"})]})]})})},49354:function(e,t,r){"use strict";r.d(t,{Do:function(){return s},cn:function(){return o},kx:function(){return i}});var n=r(44839);r(12314);var l=r(96164);function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,l.m6)((0,n.W)(t))}async function a(){if(!("userAgentData"in navigator))return"Unsupported";let e=navigator;if("Windows"!==e.userAgentData.platform)return"Not running on Windows";try{let t=await e.userAgentData.getHighEntropyValues(["architecture","bitness"]);if("x86"===t.architecture)return"64"===t.bitness?"x86_64":"x86";if("arm"===t.architecture)return"64"===t.bitness?"ARM64":"ARM32";return"Unknown architecture"}catch(e){return console.error("Error getting user agent data:",e),"Error"}}async function i(){let e=await a();return"ARM64"===e||"ARM32"===e}function s(e,t,r,n){var l,o;let a=null===(l=e[t][r])||void 0===l?void 0:l.version,i=null===(o=e[t][r])||void 0===o?void 0:o.build,s="";"win32"===t?s="LM-Studio-".concat(a,"-Setup.exe"):"darwin"===t?s="LM-Studio-".concat(a,"-arm64.dmg"):"linux"===t&&(s="LM_Studio-".concat(a,".AppImage"));let c="".concat("https://releases.lmstudio.ai","/").concat(t,"/").concat(r,"/").concat(a),d=i?"".concat(i,"/").concat(s):s;return n?"".concat(c,"/beta/").concat(d):"".concat(c,"/").concat(d)}},80874:function(e,t,r){"use strict";r.d(t,{u:function(){return l}});let n=()=>{let e=document.getElementById("fixed-header-1"),t=document.getElementById("fixed-header-2"),r=document.getElementById("fixed-header-3"),n=5;return e&&(n+=e.offsetHeight),t&&(n+=t.offsetHeight),r&&(n+=r.offsetHeight),n},l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";window.location.hash!=="#".concat(e)&&history.replaceState(null,"","#".concat(e));let r=document.getElementById(e);if(!r)return;let l=n(),o=r.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:Math.floor(o-l),behavior:t})}},67103:function(){}}]);