1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3610],{28891:(e,t,l)=>{"use strict";l.d(t,{BlogZoomableImage:()=>i});var a=l(95155),r=l(12115),s=l(67564),n=l(40980);function i({src:e,alt:t,className:l,style:o}){let[d,c]=(0,r.useState)(!1),u=(0,r.useRef)(null),m=(0,r.useRef)(null),f=t.length>0?`View larger image: ${t}`:"View larger image";return(0,r.useEffect)(()=>{if(!0!==d)return;let e=document.body.style.overflow;document.body.style.overflow="hidden",m.current?.focus();let t=e=>{"Escape"===e.key?c(!1):"Tab"===e.key&&(e.preventDefault(),m.current?.focus())};return window.addEventListener("keydown",t),()=>{document.body.style.overflow=e,window.removeEventListener("keydown",t),u.current?.focus()}},[d]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{className:(0,n.cn)("mx-auto mb-3 block h-auto max-w-full rounded-md sm:hidden",l),src:e,alt:t,style:o}),(0,a.jsxs)("button",{ref:u,type:"button",className:(0,n.cn)("group relative mx-auto mb-3 hidden max-w-full cursor-zoom-in rounded-md sm:block","focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-lm-blue"),style:o,onClick:()=>c(!0),"aria-label":f,title:f,children:[(0,a.jsx)("img",{className:(0,n.cn)("block h-auto max-w-full rounded-md",l),src:e,alt:t}),(0,a.jsx)("span",{"aria-hidden":"true",className:"absolute right-3 top-3 flex h-8 w-8 items-center justify-center rounded-md border border-white/25 bg-black/55 text-white opacity-0 shadow-sm backdrop-blur-sm transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100",children:(0,a.jsx)(s.VAA,{className:"h-4 w-4"})})]}),d?(0,a.jsxs)("div",{className:"fixed inset-0 z-[90] flex items-center justify-center bg-black/15 p-4 backdrop-blur-sm dark:bg-black/30",role:"dialog","aria-modal":"true","aria-label":f,onClick:()=>c(!1),children:[(0,a.jsx)("button",{ref:m,type:"button",className:"absolute right-4 top-4 flex h-9 w-9 items-center justify-center rounded-md border border-black/10 bg-white/95 text-neutral-700 shadow-md transition-colors hover:bg-white hover:text-neutral-950 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-lm-blue dark:border-white/15 dark:bg-white/90 dark:text-neutral-700 dark:hover:bg-white dark:hover:text-neutral-950",onClick:()=>c(!1),"aria-label":"Close larger image",children:(0,a.jsx)(s.$9n,{className:"h-5 w-5"})}),(0,a.jsx)("div",{className:"flex max-h-[92vh] max-w-[96vw] items-center justify-center",onClick:e=>e.stopPropagation(),children:(0,a.jsx)("img",{src:e,alt:t,className:"max-h-[92vh] max-w-[96vw] rounded-md object-contain shadow-2xl"})})]}):null]})}},48966:()=>{},56075:(e,t,l)=>{"use strict";l.r(t),l.d(t,{DocsCodeTabs:()=>y});var a=l(95155),r=l(12115),s=l(27386),n=l(87059),i=l(66088),o=l(9921),d=l(94514),c=l(40980);let u=n.bL;n.YJ;let m=n.WT,f=r.forwardRef(({className:e,children:t,...l},r)=>(0,a.jsxs)(n.l9,{ref:r,className:(0,c.cn)("placeholder:text-muted-foreground focus:outline-hidden flex h-10 w-full items-center justify-between gap-1.5 rounded-md border border-border/30 bg-[rgb(var(--input))] px-3 py-2 text-sm disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...l,children:[t,(0,a.jsx)(n.In,{asChild:!0,children:(0,a.jsx)(i.A,{className:"h-4 w-4 opacity-50"})})]}));f.displayName=n.l9.displayName;let h=r.forwardRef(({className:e,...t},l)=>(0,a.jsx)(n.PP,{ref:l,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,a.jsx)(o.A,{className:"h-4 w-4"})}));h.displayName=n.PP.displayName;let p=r.forwardRef(({className:e,...t},l)=>(0,a.jsx)(n.wn,{ref:l,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,a.jsx)(i.A,{className:"h-4 w-4"})}));p.displayName=n.wn.displayName;let x=r.forwardRef(({className:e,children:t,position:l="popper",...r},s)=>(0,a.jsx)(n.ZL,{children:(0,a.jsxs)(n.UC,{ref:s,className:(0,c.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md","bg-background",e),position:l,align:"start",style:{marginTop:"calc(-1 * var(--radix-select-trigger-height))"},...r,children:[(0,a.jsx)(h,{}),(0,a.jsx)(n.LM,{className:(0,c.cn)("p-1","popper"===l?"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]":void 0),children:t}),(0,a.jsx)(p,{})]})}));x.displayName=n.UC.displayName,r.forwardRef(({className:e,...t},l)=>(0,a.jsx)(n.JU,{ref:l,className:(0,c.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t})).displayName=n.JU.displayName;let b=r.forwardRef(({className:e,children:t,...l},r)=>(0,a.jsxs)(n.q7,{ref:r,className:(0,c.cn)("outline-hidden relative flex w-full cursor-default select-none items-center rounded-[2px] py-1.5 pl-8 pr-2 text-sm focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...l,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(n.VF,{children:(0,a.jsx)(d.A,{className:"h-4 w-4"})})}),(0,a.jsx)(n.p4,{children:t})]}));b.displayName=n.q7.displayName,r.forwardRef(({className:e,...t},l)=>(0,a.jsx)(n.wv,{ref:l,className:(0,c.cn)("bg-muted -mx-1 my-1 h-px",e),...t})).displayName=n.wv.displayName;let g=new Set;var w=l(96270);function y({codeSnippet:e,renderedCodeMap:t}){let[l,n]=function(e,t){let[l,a]=(0,r.useState)(t);(0,r.useEffect)(()=>{let t=(t,l)=>{t===e&&a(l)};return g.add(t),()=>{g.delete(t)}},[e]);let s=(0,r.useCallback)(t=>{for(let l of(a(t),g))l(e,t)},[e]);return(0,r.useMemo)(()=>[l,s],[s,l])}("DocsCodeTabs.activeTabSequence",[]),i=(0,r.useMemo)(()=>{let t=Object.keys(e.variants),a=new Set(t);for(let e of l)if(a.has(e))return e;return t[0]},[l,e.variants]),o=(0,r.useCallback)((e,t)=>{let a=t?.target instanceof HTMLElement?t.target.closest(".docs-snippet-container"):null;if(null!==a){let t=a.getBoundingClientRect().top;n([e,...l.filter(t=>t!==e)]),requestAnimationFrame(()=>{let e=a.getBoundingClientRect().top;window.scrollBy(0,e-t)});return}n([e,...l.filter(t=>t!==e)])},[l,n]);if(void 0===i)return null;let d=Object.keys(e.variants);return void 0!==e.title&&e.title.length>0||d.length>1?(0,a.jsx)("div",{className:"docs-snippet-container flex w-full flex-col gap-2",children:(0,a.jsxs)("div",{className:"mb-[1rem] mt-0 overflow-hidden rounded-md border",style:{paddingBottom:"0 !important"},children:[(0,a.jsx)("div",{className:"flex w-full items-center md:hidden",children:(0,a.jsx)("div",{className:"flex w-full items-center border-b px-3 py-2",children:(0,a.jsxs)(u,{value:i,onValueChange:o,children:[(0,a.jsx)(f,{className:"h-7 w-[220px] min-w-fit max-w-full",children:(0,a.jsx)(m,{placeholder:"Select a code snippet"})}),(0,a.jsx)(x,{children:d.map(e=>(0,a.jsx)(b,{value:e,children:e},e))})]})})}),(0,a.jsxs)("div",{className:"hidden w-full items-center md:flex",children:[void 0!==e.title&&e.title.length>0?(0,a.jsx)("div",{className:"flex w-full flex-row items-center rounded-t-md border-b border-border/20 bg-secondary/50 p-3",children:(0,a.jsx)("span",{className:"font-mono text-xs opacity-60",children:e.title})}):null,d.length>1?(0,a.jsx)("div",{className:(0,c.cn)("w-full border-b"),children:d.map(e=>(0,a.jsx)(s.$,{onClick:t=>o(e,t),variant:i===e?"selectedTab":"tab",className:(0,c.cn)(i===e?w.oV:void 0),children:e},e))}):null]}),t[i]??null]})}):(0,a.jsx)("div",{className:"docs-snippet-container",children:t[i]??null})}},70243:(e,t,l)=>{"use strict";l.d(t,{T:()=>c});var a=l(95155),r=l(40623),s=l(12115),n=l(40980);r.Provider;let i=r.Root,o=r.Trigger,d=s.forwardRef(({className:e,sideOffset:t=4,...l},s)=>(0,a.jsx)(r.Content,{ref:s,sideOffset:t,className:(0,n.cn)("bg-popover text-popover-foreground 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 z-50 overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md",e),...l,children:l.children}));d.displayName=r.Content.displayName;let c=s.memo(function({children:e,tooltip:t,hidden:l,className:s,delayDuration:c}){return l||!t?(0,a.jsx)(a.Fragment,{children:e}):(0,a.jsxs)(i,{delayDuration:c,children:[(0,a.jsx)(o,{asChild:!0,children:e}),(0,a.jsxs)(d,{className:(0,n.cn)("z-[1003] flex max-w-[400px] flex-wrap justify-start bg-background text-left text-foreground",s),children:[t,(0,a.jsx)(r.TooltipArrow,{className:"fill-border"})]})]})})},72275:(e,t,l)=>{"use strict";l.r(t),l.d(t,{A:()=>h,CopyButton:()=>f,H1:()=>c,H2:()=>u,H3:()=>m});var a=l(95155),r=l(12115),s=l(35137),n=l(27386),i=l(70243),o=l(40980);function d(e,t){let l,a,r,s,n;window.location.hash!==`#${e}`&&history.replaceState(null,"",`#${e}`);let i=document.getElementById(e);if(null===i)return;let o=(l=document.getElementById("fixed-header-1"),a=document.getElementById("fixed-header-2"),r=document.getElementById("fixed-header-2-mobile"),s=document.getElementById("fixed-header-3"),n=5,null!==l&&(n+=l.offsetHeight),null!==r&&r.offsetHeight>0?n+=r.offsetHeight:null!==a&&(n+=a.offsetHeight),null!==s&&(n+=s.offsetHeight),n),d=i.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:Math.floor(d-o),behavior:t?.behavior??"smooth"})}let c=({...e})=>{let[t,l]=r.useState(!1);return(0,a.jsxs)("h1",{...e,className:(0,o.cn)("flex w-full flex-row items-center justify-start gap-2",e.className),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[(0,a.jsx)("span",{children:e.children}),(0,a.jsx)("a",{href:`#${e.id}
1`,className:"text-sm text-foreground/60","aria-label":"Link to this section",onClick:t=>{t.preventDefault(),d(e.id??"")},children:(0,a.jsx)(s.ayE,{className:(0,o.cn)("text-xl transition duration-200 ease-in-out",t?"opacity-100":"opacity-0 hover:opacity-100")})})]})},u=({...e})=>{let[t,l]=r.useState(!1);return(0,a.jsxs)("h2",{...e,className:(0,o.cn)("flex w-full flex-row items-center justify-start gap-2",e.className),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{...e.style},children:[(0,a.jsx)("span",{children:e.children}),(0,a.jsx)("a",{href:`#${e.id}`,className:"text-sm text-foreground/60","aria-label":"Link to this section",title:`Link to '${String(e.children??"")}'`,onClick:t=>{t.preventDefault(),d(e.id??"")},children:(0,a.jsx)(s.ayE,{className:(0,o.cn)("text-xl transition duration-200 ease-in-out",t?"opacity-100":"opacity-0 hover:opacity-100")})})]})},m=({...e})=>{let[t,l]=r.useState(!1);return(0,a.jsxs)("h3",{...e,className:(0,o.cn)("flex w-full flex-row items-center justify-start gap-2",e.className),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[(0,a.jsx)("span",{children:e.children}),(0,a.jsx)("a",{href:`#${e.id}`,className:"text-sm text-foreground/60","aria-label":"Link to this section",onClick:t=>{t.preventDefault(),d(e.id??"")},children:(0,a.jsx)(s.ayE,{className:(0,o.cn)("text-xl transition duration-200 ease-in-out",t?"opacity-100":"opacity-0 hover:opacity-100")})})]})},f=(0,r.memo)(function({content:e,className:t,tooltip:l,small:d=!1}){let[c,u]=r.useState(!1);return(0,r.useEffect)(()=>{if(c){let e=setTimeout(()=>{u(!1)},1e3);return()=>clearTimeout(e)}},[c]),(0,a.jsx)(i.T,{tooltip:l??"Copy to clipboard",hidden:void 0===l,children:(0,a.jsx)(n.$,{size:d?"xs":"sm",className:(0,o.cn)("border-border-subtle bg-background text-foreground hover:bg-background/50 hover:text-foreground","absolute right-2 top-2.5 flex flex-none items-center !p-0","!h-7 !w-7",t),onClick:()=>{let t="function"==typeof e?e():e;navigator.clipboard.writeText(t),u(!0)},"aria-label":"Copy code",children:c?(0,a.jsx)(s.YrT,{}):(0,a.jsx)(s.nxz,{})})})}),h=e=>(0,a.jsx)("a",{...e,target:e.href?.startsWith("http")===!0?"_blank":void 0,rel:"noopener noreferrer",onClick:t=>{e.href?.startsWith("#")===!0&&(t.preventDefault(),d(e.href.slice(1)))}})},96270:(e,t,l)=>{"use strict";l.d(t,{Cy:()=>m,NG:()=>g,B8:()=>u,Zc:()=>x,N2:()=>h,hF:()=>b,oV:()=>p});var a=l(95155),r=l(12115),s=l(40980);async function n(){let e=(await l.e(1470).then(l.bind(l,31470))).default;return e.colors&&e.tokenColors&&e.tokenColors[7]&&e.tokenColors[7].settings&&(e.tokenColors[7]={...e.tokenColors[7],settings:{...e.tokenColors[7].settings,foreground:"#929394"}}),e.tokenColors&&e.tokenColors.push({scope:["markup.inserted","markup.inserted.diff","punctuation.definition.inserted","punctuation.definition.inserted.diff"],settings:{foreground:"#22863a"}},{scope:["markup.deleted","markup.deleted.diff","punctuation.definition.deleted","punctuation.definition.deleted.diff"],settings:{foreground:"#D32F2F"}}),{default:{...e}}}let i=null;async function o(){let[{createHighlighterCore:e},{createJavaScriptRegexEngine:t}]=await Promise.all([Promise.all([l.e(8921),l.e(4020),l.e(3514)]).then(l.bind(l,83514)),Promise.all([l.e(4020),l.e(2144)]).then(l.bind(l,52144))]),[a]=await Promise.all([l.e(746).then(l.bind(l,30746))]),r=await n(),[s,i,o,d,c,u]=await Promise.all([Promise.all([l.e(535),l.e(2121)]).then(l.bind(l,12121)),Promise.all([l.e(7152),l.e(8474)]).then(l.bind(l,18474)),Promise.all([l.e(7152),l.e(52)]).then(l.bind(l,70052)),l.e(2174).then(l.bind(l,22174)),l.e(1089).then(l.bind(l,21089)),l.e(6637).then(l.bind(l,46637))]);return e({themes:[r.default,a.default],langs:[s.default,i.default,o.default,d.default,c.default,u.default],engine:t()})}async function d(){return null===i&&(i=o()),await i}var c=l(72275);let u=e=>(0,a.jsx)("ul",{...e,className:(0,s.cn)(e.className)});function m(e){let{languageClassNames:t,className:l,renderWithShiki:r,children:n,...i}=e,o=/language-(\w+)/.exec(t?.length!==void 0&&t.length>0?t[0]:""),d=null!==o?o[1]:"xml";return r?(0,a.jsx)(f,{lang:d,className:(0,s.cn)(l),...i,children:n}):(0,a.jsx)("code",{...i,className:(0,s.cn)(l),dir:"ltr",style:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:n})}async function f(e){let{lang:t,children:l,...r}=e,n=await d(),i="";try{i=n.codeToHtml(l,{defaultColor:!1,lang:t,themes:{light:"min-light",dark:"one-dark-pro"}})}catch{i=n.codeToHtml(l,{defaultColor:!1,lang:"text",themes:{light:"min-light",dark:"one-dark-pro"}})}return(0,a.jsx)("div",{...r,className:(0,s.cn)("[&_pre]:!m-0 [&_pre]:!rounded-none [&_pre]:!border-0 [&_pre]:!bg-transparent [&_pre]:!p-0 [&_pre]:!leading-[inherit] [&_pre]:!text-[inherit]",r.className),dangerouslySetInnerHTML:{__html:i}})}let h="!bg-[#FBFBFB] dark:!bg-[#1C1C1C]",p="!bg-[#FBFBFB] dark:!bg-[#1C1C1C]",x="markdown-code-block !relative mb-4 !text-[15px]",b="relative w-full overflow-x-auto px-3 py-3 pr-9",g=e=>{let{copyButtonClassNames:t,codeClassNames:l,children:n,className:i,style:o,useShiki:d=!0,...u}=e,f=r.Children.toArray(n);if(0===f.length)return null;let p=f[0],g="",w=l?.split(" ")??[];if(r.isValidElement(p)){g=r.Children.toArray(p.props.children).join("");let e=p.props.className;"string"==typeof e&&(w=e.split(" ").filter(e=>e.startsWith("language-")))}else"string"==typeof p&&(g=p);return(0,a.jsxs)("div",{dir:"ltr",...u,className:(0,s.cn)("relative m-0 w-full overflow-hidden rounded-md border border-border-subtle bg-background",x,h,i),style:{...o},children:[(0,a.jsx)("div",{className:b,children:(0,a.jsx)(m,{renderWithShiki:d,languageClassNames:w,children:g})}
1),(0,a.jsx)(c.CopyButton,{className:(0,s.cn)(t),content:g??""})]})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.