Files
zen-blog/_next/static/chunks/abb1f677d5bfa0d7.js
zeekay c6530a41ca feat: add 70+ blog posts with real content
Extracted all blog posts from zen-blog Hugo git history and converted
to MDX format. Blog now includes model announcements, architecture
posts, research papers, and governance updates - real content instead
of a redirect to hanzo.ai/blog.
2026-03-01 15:41:23 -08:00

1 line
27 KiB
JavaScript

(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,37532,9562,e=>{"use strict";var t=e.i(40854);function r(e,n,o=function e(t,r){return Array.isArray(t)&&Array.isArray(r)?r.length!==t.length||t.some((t,n)=>e(t,r[n])):t!==r}){let[i,a]=(0,t.useState)(e);o(i,e)&&(n(e,i),a(e))}e.s(["useOnChange",()=>r],37532);let n=e=>"object"==typeof e&&null!=e&&1===e.nodeType,o=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,i=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let r,n=getComputedStyle(e,null);return o(n.overflowY,t)||o(n.overflowX,t)||!!(r=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e))&&(r.clientHeight<e.scrollHeight||r.clientWidth<e.scrollWidth)}return!1},a=(e,t,r,n,o,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=r||a>=t&&l>=r?i-e-n:a>t&&l<r||i<e&&l>r?a-t+o:0,l=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},s=(e,t)=>{var r,o,s,c;let d;if("u"<typeof document)return[];let{scrollMode:u,block:f,inline:m,boundary:p,skipOverflowHiddenElements:h}=t,g="function"==typeof p?p:e=>e!==p;if(!n(e))throw TypeError("Invalid target");let b=document.scrollingElement||document.documentElement,v=[],x=e;for(;n(x)&&g(x);){if((x=l(x))===b){v.push(x);break}null!=x&&x===document.body&&i(x)&&!i(document.documentElement)||null!=x&&i(x,h)&&v.push(x)}let y=null!=(o=null==(r=window.visualViewport)?void 0:r.width)?o:innerWidth,w=null!=(c=null==(s=window.visualViewport)?void 0:s.height)?c:innerHeight,{scrollX:S,scrollY:N}=window,{height:j,width:k,top:C,right:T,bottom:E,left:M}=e.getBoundingClientRect(),{top:R,right:F,bottom:L,left:I}={top:parseFloat((d=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(d.scrollMarginRight)||0,bottom:parseFloat(d.scrollMarginBottom)||0,left:parseFloat(d.scrollMarginLeft)||0},O="start"===f||"nearest"===f?C-R:"end"===f?E+L:C+j/2-R+L,D="center"===m?M+k/2-I+F:"end"===m?T+F:M-I,P=[];for(let e=0;e<v.length;e++){let t=v[e],{height:r,width:n,top:o,right:l,bottom:s,left:c}=t.getBoundingClientRect();if("if-needed"===u&&C>=0&&M>=0&&E<=w&&T<=y&&(t===b&&!i(t)||C>=o&&E<=s&&M>=c&&T<=l))break;let d=getComputedStyle(t),p=parseInt(d.borderLeftWidth,10),h=parseInt(d.borderTopWidth,10),g=parseInt(d.borderRightWidth,10),x=parseInt(d.borderBottomWidth,10),R=0,F=0,L="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-g:0,I="offsetHeight"in t?t.offsetHeight-t.clientHeight-h-x:0,A="offsetWidth"in t?0===t.offsetWidth?0:n/t.offsetWidth:0,W="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(b===t)R="start"===f?O:"end"===f?O-w:"nearest"===f?a(N,N+w,w,h,x,N+O,N+O+j,j):O-w/2,F="start"===m?D:"center"===m?D-y/2:"end"===m?D-y:a(S,S+y,y,p,g,S+D,S+D+k,k),R=Math.max(0,R+N),F=Math.max(0,F+S);else{R="start"===f?O-o-h:"end"===f?O-s+x+I:"nearest"===f?a(o,s,r,h,x+I,O,O+j,j):O-(o+r/2)+I/2,F="start"===m?D-c-p:"center"===m?D-(c+n/2)+L/2:"end"===m?D-l+g+L:a(c,l,n,p,g+L,D,D+k,k);let{scrollLeft:e,scrollTop:i}=t;R=0===W?0:Math.max(0,Math.min(i+R/W,t.scrollHeight-r/W+I)),F=0===A?0:Math.max(0,Math.min(e+F/A,t.scrollWidth-n/A+L)),O+=i-R,D+=e-F}P.push({el:t,top:R,left:F})}return P};function c(e,t){let r;if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n={top:parseFloat((r=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(r.scrollMarginRight)||0,bottom:parseFloat(r.scrollMarginBottom)||0,left:parseFloat(r.scrollMarginLeft)||0};if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(s(e,t));let o="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:r,top:i,left:a}of s(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=i-n.top+n.bottom,t=a-n.left+n.right;r.scroll({top:e,left:t,behavior:o})}}e.s(["default",()=>c],9562)},644,e=>{"use strict";e.i(61951),e.s([])},73739,e=>{"use strict";function t(e,r,{checkForDefaultPrevented:n=!0}={}){return function(t){if(e?.(t),!1===n||!t.defaultPrevented)return r?.(t)}}"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",()=>t])},580,e=>{"use strict";var t=e.i(40854),r=e.i(52540);function n(e,o=[]){let i=[],a=()=>{let r=i.map(e=>t.createContext(e));return function(n){let o=n?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return a.scopeName=e,[function(n,o){let a=t.createContext(o),l=i.length;i=[...i,o];let s=n=>{let{scope:o,children:i,...s}=n,c=o?.[e]?.[l]||a,d=t.useMemo(()=>s,Object.values(s));return(0,r.jsx)(c.Provider,{value:d,children:i})};return s.displayName=n+"Provider",[s,function(r,i){let s=i?.[e]?.[l]||a,c=t.useContext(s);if(c)return c;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:o}),[o])}};return n.scopeName=r.scopeName,n}(a,...o)]}e.s(["createContextScope",()=>n])},94538,e=>{"use strict";var t=e.i(40854),r=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",()=>r])},37009,e=>{"use strict";var t=e.i(40854),r=e.i(94538);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var n=t[" useInsertionEffect ".trim().toString()]||r.useLayoutEffect;function o({prop:e,defaultProp:r,onChange:o=()=>{},caller:i}){let[a,l,s]=function({defaultProp:e,onChange:r}){let[o,i]=t.useState(e),a=t.useRef(o),l=t.useRef(r);return n(()=>{l.current=r},[r]),t.useEffect(()=>{a.current!==o&&(l.current?.(o),a.current=o)},[o,a]),[o,i,l]}({defaultProp:r,onChange:o}),c=void 0!==e,d=c?e:a;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=c},[c,i])}return[d,t.useCallback(t=>{if(c){let r="function"==typeof t?t(e):t;r!==e&&s.current?.(r)}else l(t)},[c,e,l,s])]}Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",()=>o],37009)},61773,e=>{"use strict";var t=e.i(40854);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(...e){return t=>{let n=!1,o=e.map(e=>{let o=r(e,t);return n||"function"!=typeof o||(n=!0),o});if(n)return()=>{for(let t=0;t<o.length;t++){let n=o[t];"function"==typeof n?n():r(e[t],null)}}}}function o(...e){return t.useCallback(n(...e),e)}e.s(["composeRefs",()=>n,"useComposedRefs",()=>o])},13660,e=>{"use strict";var t=e.i(40854),r=e.i(61773),n=e.i(52540);function o(e){var o;let i,l=(o=e,(i=t.forwardRef((e,n)=>{let{children:o,...i}=e;if(t.isValidElement(o)){var a;let e,l,s=(a=o,(l=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(l=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),c=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(i,o.props);return o.type!==t.Fragment&&(c.ref=n?(0,r.composeRefs)(n,s):s),t.cloneElement(o,c)}return t.Children.count(o)>1?t.Children.only(null):null})).displayName=`${o}.SlotClone`,i),s=t.forwardRef((e,r)=>{let{children:o,...i}=e,s=t.Children.toArray(o),c=s.find(a);if(c){let e=c.props.children,o=s.map(r=>r!==c?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,n.jsx)(l,{...i,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,o):null})}return(0,n.jsx)(l,{...i,ref:r,children:o})});return s.displayName=`${e}.Slot`,s}var i=Symbol("radix.slottable");function a(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===i}e.s(["createSlot",()=>o])},97990,e=>{"use strict";var t=e.i(40854),r=e.i(78830),n=e.i(13660),o=e.i(52540),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let i=(0,n.createSlot)(`Primitive.${r}`),a=t.forwardRef((e,t)=>{let{asChild:n,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(n?i:r,{...a,ref:t})});return a.displayName=`Primitive.${r}`,{...e,[r]:a}},{});function a(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}e.s(["Primitive",()=>i,"dispatchDiscreteCustomEvent",()=>a])},44832,e=>{"use strict";var t=e.i(40854),r=e.i(61773),n=e.i(94538),o=e=>{var o;let a,l,{present:s,children:c}=e,d=function(e){var r,o;let[a,l]=t.useState(),s=t.useRef(null),c=t.useRef(e),d=t.useRef("none"),[u,f]=(r=e?"mounted":"unmounted",o={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>o[e][t]??e,r));return t.useEffect(()=>{let e=i(s.current);d.current="mounted"===u?e:"none"},[u]),(0,n.useLayoutEffect)(()=>{let t=s.current,r=c.current;if(r!==e){let n=d.current,o=i(t);e?f("MOUNT"):"none"===o||t?.display==="none"?f("UNMOUNT"):r&&n!==o?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,n.useLayoutEffect)(()=>{if(a){let e,t=a.ownerDocument.defaultView??window,r=r=>{let n=i(s.current).includes(CSS.escape(r.animationName));if(r.target===a&&n&&(f("ANIMATION_END"),!c.current)){let r=a.style.animationFillMode;a.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===a.style.animationFillMode&&(a.style.animationFillMode=r)})}},n=e=>{e.target===a&&(d.current=i(s.current))};return a.addEventListener("animationstart",n),a.addEventListener("animationcancel",r),a.addEventListener("animationend",r),()=>{t.clearTimeout(e),a.removeEventListener("animationstart",n),a.removeEventListener("animationcancel",r),a.removeEventListener("animationend",r)}}f("ANIMATION_END")},[a,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:t.useCallback(e=>{s.current=e?getComputedStyle(e):null,l(e)},[])}}(s),u="function"==typeof c?c({present:d.isPresent}):t.Children.only(c),f=(0,r.useComposedRefs)(d.ref,(o=u,(l=(a=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?o.ref:(l=(a=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?o.props.ref:o.props.ref||o.ref));return"function"==typeof c||d.isPresent?t.cloneElement(u,{ref:f}):null};function i(e){return e?.animationName||"none"}o.displayName="Presence",e.s(["Presence",()=>o])},50588,e=>{"use strict";var t=e.i(40854),r=e.i(94538),n=t[" useId ".trim().toString()]||(()=>void 0),o=0;function i(e){let[i,a]=t.useState(n());return(0,r.useLayoutEffect)(()=>{e||a(e=>e??String(o++))},[e]),e||(i?`radix-${i}`:"")}e.s(["useId",()=>i])},51622,e=>{"use strict";var t=e.i(40854);function r(e){let r=t.useRef(e);return t.useEffect(()=>{r.current=e}),t.useMemo(()=>(...e)=>r.current?.(...e),[])}e.s(["useCallbackRef",()=>r])},57545,e=>{"use strict";var t=e.i(40854);e.i(52540);var r=t.createContext(void 0);function n(e){let n=t.useContext(r);return e||n||"ltr"}e.s(["useDirection",()=>n])},8646,e=>{"use strict";let t=(0,e.i(21281).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",()=>t],8646)},18796,e=>{"use strict";var t=e.i(97338);let r={primary:"bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80 disabled:bg-fd-secondary disabled:text-fd-secondary-foreground",outline:"border hover:bg-fd-accent hover:text-fd-accent-foreground",ghost:"hover:bg-fd-accent hover:text-fd-accent-foreground",secondary:"border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"},n=(0,t.cva)("inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring",{variants:{variant:r,color:r,size:{sm:"gap-1 px-2 py-1.5 text-xs",icon:"p-1.5 [&_svg]:size-5","icon-sm":"p-1.5 [&_svg]:size-4.5","icon-xs":"p-1 [&_svg]:size-4"}}});e.s(["buttonVariants",()=>n])},96660,e=>{"use strict";function t(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})}}e.s(["mergeRefs",()=>t])},48068,e=>{"use strict";var t=e.i(39586),r=e.i(40854),n=e.i(52540);let o=(0,r.forwardRef)(({href:e="#",external:r=e.match(/^\w+:/)||e.startsWith("//"),prefetch:o,children:i,...a},l)=>r?(0,n.jsx)("a",{ref:l,href:e,rel:"noreferrer noopener",target:"_blank",...a,children:i}):(0,n.jsx)(t.Link,{ref:l,href:e,prefetch:o,...a,children:i}));o.displayName="Link",e.s(["default",()=>o])},34507,e=>{"use strict";function t(){return"u">typeof window}function r(e){return i(e)?(e.nodeName||"").toLowerCase():"#document"}function n(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function o(e){var t;return null==(t=(i(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function i(e){return!!t()&&(e instanceof Node||e instanceof n(e).Node)}function a(e){return!!t()&&(e instanceof Element||e instanceof n(e).Element)}function l(e){return!!t()&&(e instanceof HTMLElement||e instanceof n(e).HTMLElement)}function s(e){return!(!t()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof n(e).ShadowRoot)}let c=new Set(["inline","contents"]);function d(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=N(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!c.has(o)}let u=new Set(["table","td","th"]);function f(e){return u.has(r(e))}let m=[":popover-open",":modal"];function p(e){return m.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let h=["transform","translate","scale","rotate","perspective"],g=["transform","translate","scale","rotate","perspective","filter"],b=["paint","layout","strict","content"];function v(e){let t=y(),r=a(e)?N(e):e;return h.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||g.some(e=>(r.willChange||"").includes(e))||b.some(e=>(r.contain||"").includes(e))}function x(e){let t=k(e);for(;l(t)&&!S(t);){if(v(t))return t;if(p(t))break;t=k(t)}return null}function y(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let w=new Set(["html","body","#document"]);function S(e){return w.has(r(e))}function N(e){return n(e).getComputedStyle(e)}function j(e){return a(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function k(e){if("html"===r(e))return e;let t=e.assignedSlot||e.parentNode||s(e)&&e.host||o(e);return s(t)?t.host:t}function C(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}e.s(["getComputedStyle",()=>N,"getContainingBlock",()=>x,"getDocumentElement",()=>o,"getFrameElement",()=>C,"getNodeName",()=>r,"getNodeScroll",()=>j,"getOverflowAncestors",()=>function e(t,r,o){var i;void 0===r&&(r=[]),void 0===o&&(o=!0);let a=function e(t){let r=k(t);return S(r)?t.ownerDocument?t.ownerDocument.body:t.body:l(r)&&d(r)?r:e(r)}(t),s=a===(null==(i=t.ownerDocument)?void 0:i.body),c=n(a);if(s){let t=C(c);return r.concat(c,c.visualViewport||[],d(a)?a:[],t&&o?e(t):[])}return r.concat(a,e(a,[],o))},"getParentNode",()=>k,"getWindow",()=>n,"isContainingBlock",()=>v,"isElement",()=>a,"isHTMLElement",()=>l,"isLastTraversableNode",()=>S,"isNode",()=>i,"isOverflowElement",()=>d,"isShadowRoot",()=>s,"isTableElement",()=>f,"isTopLayer",()=>p,"isWebKit",()=>y])},21861,e=>{"use strict";let t=(0,e.i(21281).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",()=>t],21861)},9323,21826,56777,e=>{"use strict";var t=e.i(21281);let r=(0,t.default)("airplay",[["path",{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",key:"ns4c3b"}],["path",{d:"m12 15 5 6H7Z",key:"14qnn2"}]]);e.s(["Airplay",()=>r],9323);let n=(0,t.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);e.s(["Moon",()=>n],21826);let o=(0,t.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["Sun",()=>o],56777)},80761,e=>{"use strict";var t=e.i(35839);e.i(644);var r=e.i(71193),n=e.i(18796),o=e.i(40854),i=e.i(52540);let a=(0,o.createContext)({enabled:!1,open:!1,hotKey:[],setOpenSearch:()=>void 0});function l(){return(0,o.use)(a)}var s=e.i(21861);function c({hideIfDisabled:e,size:t="icon-sm",color:o="ghost",...a}){let{setOpenSearch:c,enabled:d}=l();return e&&!d?null:(0,i.jsx)("button",{type:"button",className:(0,r.cn)((0,n.buttonVariants)({size:t,color:o}),a.className),"data-search":"","aria-label":"Open Search",onClick:()=>{c(!0)},children:(0,i.jsx)(s.Search,{})})}function d({hideIfDisabled:e,...n}){let{enabled:o,hotKey:a,setOpenSearch:c}=l(),{text:d}=(0,t.useI18n)();return e&&!o?null:(0,i.jsxs)("button",{type:"button","data-search-full":"",...n,className:(0,r.cn)("inline-flex items-center gap-2 rounded-lg border bg-fd-secondary/50 p-1.5 ps-2 text-sm text-fd-muted-foreground transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground",n.className),onClick:()=>{c(!0)},children:[(0,i.jsx)(s.Search,{className:"size-4"}),d.search,(0,i.jsx)("div",{className:"ms-auto inline-flex gap-0.5",children:a.map((e,t)=>(0,i.jsx)("kbd",{className:"rounded-md border bg-fd-background px-1.5",children:e.display},t))})]})}e.s(["LargeSearchToggle",()=>d,"SearchToggle",()=>c],80761)},80157,e=>{"use strict";e.i(644);var t=e.i(71193),r=e.i(18796),n=e.i(96660),o=e.i(32824),i=e.i(68337),a=e.i(52540),l=e.i(25838),s=e.i(90182),c=e.i(40854),d=e.i(39586);let u=(0,c.createContext)(null);var f=e.i(80761);let m=(0,e.i(21281).default)("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),p=(0,e.i(97338).cva)("relative flex flex-row items-center gap-2 rounded-lg p-2 text-start text-fd-muted-foreground wrap-anywhere [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{link:"transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none data-[active=true]:bg-fd-primary/10 data-[active=true]:text-fd-primary data-[active=true]:hover:transition-colors",button:"transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none"},highlight:{true:"data-[active=true]:before:content-[''] data-[active=true]:before:bg-fd-primary data-[active=true]:before:absolute data-[active=true]:before:w-px data-[active=true]:before:inset-y-2.5 data-[active=true]:before:start-2.5"}}});function h(e){return`calc(${2+3*e} * var(--spacing))`}function g({ref:e,className:i,children:l,...s}){let d=(0,c.useRef)(null);return(0,a.jsx)(o.SidebarContent,{children:({collapsed:c,hovered:u,ref:p,...h})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{"data-sidebar-placeholder":"",className:"sticky top-(--fd-docs-row-1) z-20 [grid-area:sidebar] pointer-events-none *:pointer-events-auto h-[calc(var(--fd-docs-height)-var(--fd-docs-row-1))] md:layout:[--fd-sidebar-width:268px] max-md:hidden",children:[c&&(0,a.jsx)("div",{className:"absolute start-0 inset-y-0 w-4",...h}),(0,a.jsx)("aside",{id:"nd-sidebar",ref:(0,n.mergeRefs)(d,e,p),"data-collapsed":c,"data-hovered":c&&u,className:(0,t.cn)("absolute flex flex-col w-full start-0 inset-y-0 items-end bg-fd-card text-sm border-e duration-250 *:w-(--fd-sidebar-width)",c&&["inset-y-2 rounded-xl transition-transform border w-(--fd-sidebar-width)",u?"shadow-lg translate-x-2 rtl:-translate-x-2":"-translate-x-(--fd-sidebar-width) rtl:translate-x-full"],d.current&&"true"===d.current.getAttribute("data-collapsed")!==c&&"transition-[width,inset-block,translate,background-color]",i),...s,...h,children:l})]}),(0,a.jsxs)("div",{"data-sidebar-panel":"",className:(0,t.cn)("fixed flex top-[calc(--spacing(4)+var(--fd-docs-row-3))] start-4 shadow-lg transition-opacity rounded-xl p-0.5 border bg-fd-muted text-fd-muted-foreground z-10",(!c||u)&&"pointer-events-none opacity-0"),children:[(0,a.jsx)(o.SidebarCollapseTrigger,{className:(0,t.cn)((0,r.buttonVariants)({color:"ghost",size:"icon-sm",className:"rounded-lg"})),children:(0,a.jsx)(m,{})}),(0,a.jsx)(f.SearchToggle,{className:"rounded-lg",hideIfDisabled:!0})]})]})})}function b({children:e,className:r,...n}){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.SidebarDrawerOverlay,{className:"fixed z-40 inset-0 backdrop-blur-xs data-[state=open]:animate-fd-fade-in data-[state=closed]:animate-fd-fade-out"}),(0,a.jsx)(o.SidebarDrawerContent,{className:(0,t.cn)("fixed text-[0.9375rem] flex flex-col shadow-lg border-s end-0 inset-y-0 w-[85%] max-w-[380px] z-40 bg-fd-background data-[state=open]:animate-fd-sidebar-in data-[state=closed]:animate-fd-sidebar-out",r),...n,children:e})]})}function v({className:e,style:r,children:n,...i}){let l=(0,o.useFolderDepth)();return(0,a.jsx)(o.SidebarSeparator,{className:(0,t.cn)("[&_svg]:size-4 [&_svg]:shrink-0",e),style:{paddingInlineStart:h(l),...r},...i,children:n})}function x({className:e,style:r,children:n,...i}){let l=(0,o.useFolderDepth)();return(0,a.jsx)(o.SidebarItem,{className:(0,t.cn)(p({variant:"link",highlight:l>=1}),e),style:{paddingInlineStart:h(l),...r},...i,children:n})}function y({className:e,style:r,...n}){let{depth:i,collapsible:l}=(0,o.useFolder)();return(0,a.jsx)(o.SidebarFolderTrigger,{className:(0,t.cn)(p({variant:l?"button":null}),"w-full",e),style:{paddingInlineStart:h(i-1),...r},...n,children:n.children})}function w({className:e,style:r,...n}){let i=(0,o.useFolderDepth)();return(0,a.jsx)(o.SidebarFolderLink,{className:(0,t.cn)(p({variant:"link",highlight:i>1}),"w-full",e),style:{paddingInlineStart:h(i-1),...r},...n,children:n.children})}function S({className:e,children:r,...n}){let i=(0,o.useFolderDepth)();return(0,a.jsx)(o.SidebarFolderContent,{className:(0,t.cn)("relative",1===i&&"before:content-[''] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:start-2.5",e),...n,children:r})}let N=function({SidebarFolder:e,SidebarFolderContent:t,SidebarFolderLink:r,SidebarFolderTrigger:n,SidebarSeparator:o,SidebarItem:i}){function f(e){return e.map((e,t)=>(0,a.jsx)(m,{node:e},t))}function m({node:d}){let{Separator:m,Item:p,Folder:h,pathname:g}=(0,c.use)(u);if("separator"===d.type)return m?(0,a.jsx)(m,{item:d}):(0,a.jsxs)(o,{children:[d.icon,d.name]});if("folder"===d.type){let o=(0,l.useTreePath)();return h?(0,a.jsx)(h,{item:d,children:f(d.children)}):(0,a.jsxs)(e,{collapsible:d.collapsible,active:o.includes(d),defaultOpen:d.defaultOpen,children:[d.index?(0,a.jsxs)(r,{href:d.index.url,active:(0,s.isActive)(d.index.url,g),external:d.index.external,children:[d.icon,d.name]}):(0,a.jsxs)(n,{children:[d.icon,d.name]}),(0,a.jsx)(t,{children:f(d.children)})]})}return p?(0,a.jsx)(p,{item:d}):(0,a.jsx)(i,{href:d.url,external:d.external,active:(0,s.isActive)(d.url,g),icon:d.icon,children:d.name})}return function(e){let{Folder:t,Item:r,Separator:n}=e,{root:o}=(0,l.useTreeContext)(),i=(0,d.usePathname)();return(0,a.jsx)(u,{value:(0,c.useMemo)(()=>({Folder:t,Item:r,Separator:n,pathname:i}),[t,r,n,i]),children:(0,a.jsx)(c.Fragment,{children:f(o.children)},o.$id)})}}({SidebarFolder:o.SidebarFolder,SidebarFolderContent:S,SidebarFolderLink:w,SidebarFolderTrigger:y,SidebarItem:x,SidebarSeparator:v}),j=function({SidebarFolder:e,SidebarFolderContent:t,SidebarFolderLink:r,SidebarFolderTrigger:n,SidebarItem:o}){return function l({item:s,...c}){let d=(0,i.useLinkItemActive)(s);return"custom"===s.type?(0,a.jsx)("div",{...c,children:s.children}):"menu"===s.type?(0,a.jsxs)(e,{...c,children:[s.url?(0,a.jsxs)(r,{href:s.url,active:d,external:s.external,children:[s.icon,s.text]}):(0,a.jsxs)(n,{children:[s.icon,s.text]}),(0,a.jsx)(t,{children:s.items.map((e,t)=>(0,a.jsx)(l,{item:e},t))})]}):(0,a.jsx)(o,{href:s.url,icon:s.icon,external:s.external,active:d,...c,children:s.text})}}({SidebarFolder:o.SidebarFolder,SidebarFolderContent:S,SidebarFolderLink:w,SidebarFolderTrigger:y,SidebarItem:x});e.s(["SidebarContent",()=>g,"SidebarDrawer",()=>b,"SidebarFolderContent",()=>S,"SidebarFolderLink",()=>w,"SidebarFolderTrigger",()=>y,"SidebarItem",()=>x,"SidebarLinkItem",()=>j,"SidebarPageTree",()=>N,"SidebarSeparator",()=>v],58623),e.i(58623),e.s(["Sidebar",()=>o.SidebarProvider,"SidebarCollapseTrigger",()=>o.SidebarCollapseTrigger,"SidebarContent",()=>g,"SidebarDrawer",()=>b,"SidebarFolder",()=>o.SidebarFolder,"SidebarFolderContent",()=>S,"SidebarFolderLink",()=>w,"SidebarFolderTrigger",()=>y,"SidebarItem",()=>x,"SidebarLinkItem",()=>j,"SidebarPageTree",()=>N,"SidebarSeparator",()=>v,"SidebarTrigger",()=>o.SidebarTrigger,"SidebarViewport",()=>o.SidebarViewport],80157)},53809,e=>{"use strict";var t=e.i(35839);e.i(644);var r=e.i(71193),n=e.i(18796),o=e.i(24403),i=e.i(52540);function a(e){let a=(0,t.useI18n)();if(!a.locales)throw Error("Missing `<I18nProvider />`");return(0,i.jsxs)(o.Popover,{children:[(0,i.jsx)(o.PopoverTrigger,{"aria-label":a.text.chooseLanguage,...e,className:(0,r.cn)((0,n.buttonVariants)({color:"ghost",className:"gap-1.5 p-1.5"}),e.className),children:e.children}),(0,i.jsxs)(o.PopoverContent,{className:"flex flex-col overflow-x-hidden p-0",children:[(0,i.jsx)("p",{className:"mb-1 p-2 text-xs font-medium text-fd-muted-foreground",children:a.text.chooseLanguage}),a.locales.map(e=>(0,i.jsx)("button",{type:"button",className:(0,r.cn)("p-2 text-start text-sm",e.locale===a.locale?"bg-fd-primary/10 font-medium text-fd-primary":"hover:bg-fd-accent hover:text-fd-accent-foreground"),onClick:()=>{a.onChange?.(e.locale)},children:e.name},e.locale))]})]})}function l(e){let r=(0,t.useI18n)(),n=r.locales?.find(e=>e.locale===r.locale)?.name;return(0,i.jsx)("span",{...e,children:n})}e.s(["LanguageToggle",()=>a,"LanguageToggleText",()=>l])},73332,e=>{"use strict";e.i(644);var t=e.i(71193),r=e.i(40854),n=e.i(52540),o=e.i(9323),i=e.i(21826),a=e.i(56777),l=e.i(97338),s=e.i(69747);let c=(0,l.cva)("size-6.5 p-1.5 text-fd-muted-foreground",{variants:{active:{true:"bg-fd-accent text-fd-accent-foreground",false:"text-fd-muted-foreground"}}}),d=[["light",a.Sun],["dark",i.Moon],["system",o.Airplay]];function u({className:e,mode:o="light-dark",...i}){let{setTheme:a,theme:l,resolvedTheme:u}=(0,s.useTheme)(),[f,m]=(0,r.useState)(!1);(0,r.useEffect)(()=>{m(!0)},[]);let p=(0,t.cn)("inline-flex items-center rounded-full border p-1 *:rounded-full",e);if("light-dark"===o){let e=f?u:null;return(0,n.jsx)("button",{className:p,"aria-label":"Toggle Theme",onClick:()=>a("light"===e?"dark":"light"),"data-theme-toggle":"",children:d.map(([r,o])=>{if("system"!==r)return(0,n.jsx)(o,{fill:"currentColor",className:(0,t.cn)(c({active:e===r}))},r)})})}let h=f?l:null;return(0,n.jsx)("div",{className:p,"data-theme-toggle":"",...i,children:d.map(([e,r])=>(0,n.jsx)("button",{"aria-label":e,className:(0,t.cn)(c({active:h===e})),onClick:()=>a(e),children:(0,n.jsx)(r,{className:"size-full",fill:"currentColor"})},e))})}e.s(["ThemeToggle",()=>u])}]);