1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6546],{2502:(e,t,n)=>{"use strict";n.d(t,{PageBreadcrumb:()=>S,PageFooter:()=>T,PageLastUpdate:()=>L,PageRoot:()=>N,PageTOC:()=>M,PageTOCPopover:()=>j,PageTOCPopoverContent:()=>E,PageTOCPopoverTrigger:()=>b});var r=n(73590),o=n(39574),i=n(17707),l=n(73257),a=n(97556),s=n(23616),d=n(51844),c=n(2981),u=n(9775),h=n(17174),f=n(35278),m=n(14218),p=n(31477),g=n(66132),v=n(60163),x=n(79604);let w=(0,c.q6)("TocPopoverContext");function b(e){var t,n;let{text:l}=(0,s.useI18n)(),{open:c}=w.use(),u=(0,v.a)(),h=(0,x.R3)(),f=(0,o.useMemo)(()=>u.findIndex(e=>h===e.url.slice(1)),[u,h]),m=(0,d.L)().at(-1),g=-1!==f&&!c;return(0,r.jsxs)(p.R6,{...e,className:(0,a.QP)("flex w-full h-(--fd-tocnav-height) items-center text-sm text-fd-muted-foreground gap-2.5 px-4 py-2.5 text-start focus-visible:outline-none [&_svg]:shrink-0 [&_svg]:size-4 md:px-6",e.className),children:[(0,r.jsx)(y,{value:(f+1)/Math.max(1,u.length),max:1,className:(0,a.QP)(c&&"text-fd-primary")}),(0,r.jsxs)("span",{className:"grid flex-1 *:my-auto *:row-start-1 *:col-start-1",children:[(0,r.jsx)("span",{className:(0,a.QP)("truncate transition-all",c&&"text-fd-foreground",g&&"opacity-0 -translate-y-full pointer-events-none"),children:null!=(n=null==m?void 0:m.name)?n:l.toc}),(0,r.jsx)("span",{className:(0,a.QP)("truncate transition-all",!g&&"opacity-0 translate-y-full pointer-events-none"),children:null==(t=u[f])?void 0:t.title})]}),(0,r.jsx)(i.yQ,{className:(0,a.QP)("transition-transform mx-0.5",c&&"rotate-180")})]})}function y(e){let{value:t,strokeWidth:n=2,size:o=24,min:i=0,max:l=100,...a}=e,s=t<i?i:t>l?l:t,d=(o-n)/2,c=2*Math.PI*d,u=s/l*c,h={cx:o/2,cy:o/2,r:d,fill:"none",strokeWidth:n};return(0,r.jsxs)("svg",{role:"progressbar",viewBox:"0 0 ".concat(o," ").concat(o),"aria-valuenow":s,"aria-valuemin":i,"aria-valuemax":l,...a,children:[(0,r.jsx)("circle",{...h,className:"stroke-current/25"}),(0,r.jsx)("circle",{...h,stroke:"currentColor",strokeDasharray:c,strokeDashoffset:c-u,strokeLinecap:"round",transform:"rotate(-90 ".concat(o/2," ").concat(o/2,")"),className:"transition-all"})]})}function E(e){return(0,r.jsx)(p.Ke,{"data-toc-popover":"",...e,className:(0,a.QP)("flex flex-col px-4 max-h-[50vh] md:px-6",e.className),children:e.children})}function j(e){let t=(0,o.useRef)(null),[n,i]=(0,o.useState)(!1),{collapsed:l}=(0,g.c)(),{isTransparent:s}=(0,h.hI)(),d=(0,m.J)(e=>{n&&t.current&&!t.current.contains(e.target)&&i(!1)});return(0,o.useEffect)(()=>(window.addEventListener("click",d),()=>{window.removeEventListener("click",d)}),[d]),(0,r.jsx)(w.Provider,{value:(0,o.useMemo)(()=>({open:n,setOpen:i}),[i,n]),children:(0,r.jsx)(p.Nt,{open:n,onOpenChange:i,asChild:!0,children:(0,r.jsx)("header",{ref:t,id:"nd-tocnav",...e,className:(0,a.QP)("fixed inset-x-0 z-10 border-b backdrop-blur-sm transition-colors xl:hidden",(!s||n)&&"bg-fd-background/80",n&&"shadow-lg",e.className),style:{...e.style,top:"calc(var(--fd-banner-height) + var(--fd-nav-height))",insetInlineStart:l?"0px":"calc(var(--fd-sidebar-width) + var(--fd-layout-offset))"},children:e.children})})})}function N(e){let{toc:t,children:n,...o}=e,{collapsed:i}=(0,g.c)();return(0,r.jsx)(v.W,{...t,children:(0,r.jsx)("div",{id:"nd-page",...o,className:(0,a.QP)("flex flex-1 mx-auto w-full",o.className),style:{paddingTop:"calc(var(--fd-nav-height) + var(--fd-tocnav-height))",maxWidth:i?"var(--fd-page-width)":"min(var(--fd-page-width),calc(var(--fd-layout-width) - var(--fd-sidebar-width)))",...o.style},children:n})})}function L(e){let{date:t,...n}=e,{text:i}=(0,s.useI18n)(),[l,d]=(0,o.useState)("");return(0,o.useEffect)(()=>{d(new Date(t).toLocaleDateString())},[t]),(0,r.jsxs)("p",{...n,className:(0,a.QP)("text-sm text-fd-muted-foreground",n.className),children:[i.lastUpdate," ",l]})}let C=new WeakMap;function T(e){let{items:t,...n}=e,{root:i}=(0,d.t)(),l=(0,c.a8)(),{previous:s,next:u}=(0,o.useMemo)(()=>{if(t)return t;let e=C.get(i),n=null!=e?e:function e(t){let n=[];return t.forEach(t=>{if("folder"===t.type){t.index&&n.push(t.index),n.push(...e(t.children));return}"page"!==t.type||t.external||n.push(t)}),n}(i.children);C.set(i,n);let r=n.findIndex(e=>(0,f.$)(e.url,l,!1));return -1===r?{}
1:{previous:n[r-1],next:n[r+1]}},[t,l,i]);return(0,r.jsxs)("div",{...n,className:(0,a.QP)("@container grid gap-4 pb-6",s&&u?"grid-cols-2":"grid-cols-1",n.className),children:[s?(0,r.jsx)(I,{item:s,index:0}):null,u?(0,r.jsx)(I,{item:u,index:1}):null]})}function I(e){var t;let{item:n,index:o}=e,{text:d}=(0,s.useI18n)(),c=0===o?i.JG:i.c_;return(0,r.jsxs)(l.default,{href:n.url,className:(0,a.QP)("flex flex-col gap-2 rounded-lg border p-4 text-sm transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground @max-lg:col-span-full",1===o&&"text-end"),children:[(0,r.jsxs)("div",{className:(0,a.QP)("inline-flex items-center gap-1.5 font-medium",1===o&&"flex-row-reverse"),children:[(0,r.jsx)(c,{className:"-mx-1 size-4 shrink-0 rtl:rotate-180"}),(0,r.jsx)("p",{children:n.name})]}),(0,r.jsx)("p",{className:"text-fd-muted-foreground truncate",children:null!=(t=n.description)?t:0===o?d.previousPage:d.nextPage})]})}function S(e){let{includeRoot:t=!1,includeSeparator:n,includePage:i=!1,...s}=e,c=(0,d.L)(),{root:h}=(0,d.t)(),f=(0,o.useMemo)(()=>(0,u.Pp)(h,c,{includePage:i,includeSeparator:n,includeRoot:t}),[i,t,n,c,h]);return 0===f.length?null:(0,r.jsx)("div",{...s,className:(0,a.QP)("flex items-center gap-1.5 text-sm text-fd-muted-foreground",s.className),children:f.map((e,t)=>{let n=(0,a.QP)("truncate",t===f.length-1&&"text-fd-primary font-medium");return(0,r.jsxs)(o.Fragment,{children:[0!==t&&(0,r.jsx)("span",{className:"text-fd-foreground/30",children:"/"}),e.url?(0,r.jsx)(l.default,{href:e.url,className:(0,a.QP)(n,"transition-opacity hover:opacity-80"),children:e.name}):(0,r.jsx)("span",{className:n,children:e.name})]},t)})})}function M(e){return(0,r.jsx)("div",{id:"nd-toc",...e,className:(0,a.QP)("sticky pb-2 pt-12 max-xl:hidden",e.className),style:{...e.style,top:"calc(var(--fd-banner-height) + var(--fd-nav-height))",height:"calc(100dvh - var(--fd-banner-height) - var(--fd-nav-height))"},children:(0,r.jsx)("div",{className:"flex h-full w-(--fd-toc-width) max-w-full flex-col pe-4",children:e.children})})}},29997:(e,t,n)=>{"use strict";n.d(t,{TypeTable:()=>h});var r=n(73590),o=n(17707),i=n(73257),l=n(35572),a=n(97556),s=n(65878);function d(e){let{children:t}=e;return(0,r.jsxs)(s.AM,{children:[(0,r.jsx)(s.Wv,{children:(0,r.jsx)(o.R2,{className:"size-4"})}),(0,r.jsx)(s.hl,{className:"prose max-h-[400px] min-w-[220px] max-w-[400px] overflow-auto text-sm prose-no-margin",children:t})]})}let c=(0,l.F)("inline-flex flex-row items-center gap-1"),u=(0,l.F)("rounded-md bg-fd-secondary p-1 text-fd-secondary-foreground",{variants:{color:{primary:"bg-fd-primary/10 text-fd-primary",deprecated:"line-through text-fd-primary/50"}}});function h(e){let{type:t}=e;return(0,r.jsx)("div",{className:"prose my-6 overflow-auto prose-no-margin",children:(0,r.jsxs)("table",{className:"whitespace-nowrap text-sm text-fd-muted-foreground",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{className:"w-[45%]",children:"Prop"}),(0,r.jsx)("th",{className:"w-[30%]",children:"Type"}),(0,r.jsx)("th",{className:"w-1/4",children:"Default"})]})}),(0,r.jsx)("tbody",{children:Object.entries(t).map(e=>{let[t,n]=e;return(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsxs)("div",{className:c(),children:[(0,r.jsxs)("code",{className:(0,a.QP)(u({color:n.deprecated?"deprecated":"primary"})),children:[t,!n.required&&"?"]}),n.description?(0,r.jsx)(d,{children:n.description}):null]})}),(0,r.jsx)("td",{children:(0,r.jsxs)("div",{className:c(),children:[(0,r.jsx)("code",{className:u(),children:n.type}),n.typeDescription?(0,r.jsx)(d,{children:n.typeDescription}):null,n.typeDescriptionLink?(0,r.jsx)(i.default,{href:n.typeDescriptionLink,children:(0,r.jsx)(o.R2,{className:"size-4"})}):null]})}),(0,r.jsx)("td",{children:n.default?(0,r.jsx)("code",{className:u(),children:n.default}):"-"})]},t)})})]})})}},31477:(e,t,n)=>{"use strict";n.d(t,{Ke:()=>d,Nt:()=>a,R6:()=>s});var r=n(73590),o=n(89282),i=n(39574),l=n(97556);let a=o.bL,s=o.R6,d=(0,i.forwardRef)((e,t)=>{let{children:n,...a}=e,[s,d]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{d(!0)},[]),(0,r.jsx)(o.Ke,{ref:t,...a,className:(0,l.QP)("overflow-hidden",s&&"data-[state=closed]:animate-fd-collapsible-up data-[state=open]:animate-fd-collapsible-down",a.className),children:n})});d.displayName=o.Ke.displayName},44886:(e,t,n)=>{"use strict";n.d(t,{CodeBlock:()=>f,CodeBlockTab:()=>
1x,CodeBlockTabs:()=>p,CodeBlockTabsList:()=>g,CodeBlockTabsTrigger:()=>v,Pre:()=>h});var r=n(73590),o=n(17707),i=n(39574),l=n(97556),a=n(85753),s=n(80671),d=n(74686),c=n(87536);let u=(0,i.createContext)(null);function h(e){return(0,r.jsx)("pre",{...e,className:(0,l.QP)("min-w-full w-max *:flex *:flex-col",e.className),children:e.children})}function f(e){var t;let{ref:n,title:o,allowCopy:a,keepBackground:s=!1,icon:d,viewportProps:c={},children:h,Actions:f=e=>(0,r.jsx)("div",{...e,className:(0,l.QP)("empty:hidden",e.className)}),...p}=e,g=null!==(0,i.useContext)(u),v=(0,i.useRef)(null);null!=a||(a=!g);let x=(0,l.QP)("bg-fd-secondary",s&&"bg-(--shiki-light-bg) dark:bg-(--shiki-dark-bg)");return(0,r.jsxs)("figure",{ref:n,dir:"ltr",...p,className:(0,l.QP)(g?[x,"rounded-lg shadow-sm"]:"my-4 rounded-xl bg-fd-card p-1","shiki relative border outline-none not-prose overflow-hidden text-sm",p.className),children:[o?(0,r.jsxs)("div",{className:(0,l.QP)("flex text-fd-muted-foreground items-center gap-2 ps-3 h-9.5",g&&"border-b"),children:["string"==typeof d?(0,r.jsx)("div",{className:"[&_svg]:size-3.5",dangerouslySetInnerHTML:{__html:d}}):d,(0,r.jsx)("figcaption",{className:"flex-1 truncate",children:o}),f({children:a&&(0,r.jsx)(m,{containerRef:v})})]}):f({className:"absolute top-1 right-1 z-2 bg-fd-card rounded-bl-lg border-l border-b text-fd-muted-foreground",children:a&&(0,r.jsx)(m,{containerRef:v})}),(0,r.jsx)("div",{ref:v,...c,className:(0,l.QP)(!g&&[x,"rounded-lg border"],"text-[13px] py-3.5 overflow-auto max-h-[600px] fd-scroll-container",c.className),style:{"--padding-right":o?void 0:"calc(var(--spacing) * 8)",counterSet:p["data-line-numbers"]?"line ".concat(Number(null!=(t=p["data-line-numbers-start"])?t:1)-1):void 0,...c.style},children:h})]})}function m(e){let{className:t,containerRef:n,...i}=e,[d,c]=(0,a.x)(()=>{var e,t;let r=null==(e=n.current)?void 0:e.getElementsByTagName("pre").item(0);if(!r)return;let o=r.cloneNode(!0);o.querySelectorAll(".nd-copy-ignore").forEach(e=>{e.replaceWith("\n")}),navigator.clipboard.writeText(null!=(t=o.textContent)?t:"")});return(0,r.jsx)("button",{type:"button",className:(0,l.QP)((0,s.r)({color:"ghost",className:"[&_svg]:size-3.5"}),t),"aria-label":d?"Copied Text":"Copy Text",onClick:c,...i,children:d?(0,r.jsx)(o.Jl,{}):(0,r.jsx)(o.QR,{})})}function p(e){let{ref:t,...n}=e,o=(0,i.useRef)(null),a=null!==(0,i.useContext)(u);return(0,r.jsx)(d.tU,{ref:(0,c.P)(o,t),...n,className:(0,l.QP)("bg-fd-card p-1 rounded-xl border overflow-hidden",!a&&"my-4",n.className),children:(0,r.jsx)(u.Provider,{value:(0,i.useMemo)(()=>({containerRef:o,nested:a}),[a]),children:n.children})})}function g(e){let{containerRef:t,nested:n}=(0,i.useContext)(u);return(0,r.jsxs)(d.j7,{...e,className:(0,l.QP)("flex flex-row overflow-x-auto px-1 -mx-1 text-fd-muted-foreground",e.className),children:[e.children,!n&&(0,r.jsx)(m,{className:"sticky ms-auto right-0 bg-fd-card backdrop-blur-sm",containerRef:t})]})}function v(e){let{children:t,...n}=e;return(0,r.jsxs)(d.Xi,{...n,className:(0,l.QP)("relative group inline-flex text-sm font-medium text-nowrap items-center gap-2 px-2 first:ms-1 py-1.5 hover:text-fd-accent-foreground data-[state=active]:text-fd-primary [&_svg]:size-3.5",n.className),children:[(0,r.jsx)("div",{className:"absolute inset-x-2 bottom-0 h-px group-data-[state=active]:bg-fd-primary"}),t]})}let x=e=>(0,r.jsx)(d.av,{...e,asChild:!0})},49538:(e,t,n)=>{"use strict";n.d(t,{j:()=>c});var r=n(73590),o=n(39574),i=n(79604),l=n(57946),a=n(14218);function s(e,t){if(0===t.length||0===e.clientHeight)return[0,0];let n=Number.MAX_VALUE,r=0;for(let o of t){let t=e.querySelector(`a[href="#${o}"]`);if(!t)continue;let i=getComputedStyle(t);n=Math.min(n,t.offsetTop+parseFloat(i.paddingTop)),r=Math.max(r,t.offsetTop+t.clientHeight-parseFloat(i.paddingBottom))}return[n,r-n]}function d(e,t){e.style.setProperty("--fd-top",`${t[0]}px`),e.style.setProperty("--fd-height",`${t[1]}px`)}function c({containerRef:e,...t}){let n=i.Mf(),c=(0,o.useRef)(null),u=(0,a.J)(()=>{e.current&&c.current&&d(c.current,s(e.current,n))});return(0,o.useEffect)(()=>
1{if(!e.current)return;let t=e.current;u();let n=new ResizeObserver(u);return n.observe(t),()=>{n.disconnect()}},[e,u]),(0,l.T)(n,()=>{e.current&&c.current&&d(c.current,s(e.current,n))}),(0,r.jsx)("div",{ref:c,role:"none",...t})}},59992:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Tab:()=>h,Tabs:()=>u,TabsContent:()=>f,TabsList:()=>d,TabsTrigger:()=>c});var r=n(73590),o=n(39574),i=n(97556),l=n(74686);let a=(0,o.createContext)(null);function s(){let e=(0,o.useContext)(a);if(!e)throw Error("You must wrap your component in <Tabs>");return e}let d=o.forwardRef((e,t)=>(0,r.jsx)(l.j7,{ref:t,...e,className:(0,i.QP)("flex gap-3.5 text-fd-secondary-foreground overflow-x-auto px-4 not-prose",e.className)}));d.displayName="TabsList";let c=o.forwardRef((e,t)=>(0,r.jsx)(l.Xi,{ref:t,...e,className:(0,i.QP)("inline-flex items-center gap-2 whitespace-nowrap text-fd-muted-foreground border-b border-transparent py-2 text-sm font-medium transition-colors [&_svg]:size-4 hover:text-fd-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-fd-primary data-[state=active]:text-fd-primary",e.className)}));function u(e){let{ref:t,className:n,items:s,label:u,defaultIndex:h=0,defaultValue:f=s?m(s[h]):void 0,...p}=e,[g,v]=(0,o.useState)(f),x=(0,o.useMemo)(()=>[],[]);return(0,r.jsxs)(l.tU,{ref:t,className:(0,i.QP)("flex flex-col overflow-hidden rounded-xl border bg-fd-secondary my-4",n),value:g,onValueChange:e=>{(!s||s.some(t=>m(t)===e))&&v(e)},...p,children:[s&&(0,r.jsxs)(d,{children:[u&&(0,r.jsx)("span",{className:"text-sm font-medium my-auto me-auto",children:u}),s.map(e=>(0,r.jsx)(c,{value:m(e),children:e},e))]}),(0,r.jsx)(a.Provider,{value:(0,o.useMemo)(()=>({items:s,collection:x}),[x,s]),children:p.children})]})}function h(e){let{value:t,...n}=e,{items:i}=s(),l=null!=t?t:null==i?void 0:i.at(function(){let e=(0,o.useId)(),{collection:t}=s();return(0,o.useEffect)(()=>()=>{let n=t.indexOf(e);-1!==n&&t.splice(n,1)},[e,t]),t.includes(e)||t.push(e),t.indexOf(e)}());if(!l)throw Error("Failed to resolve tab `value`, please pass a `value` prop to the Tab component.");return(0,r.jsx)(f,{value:m(l),...n,children:n.children})}function f(e){let{value:t,className:n,...o}=e;return(0,r.jsx)(l.av,{value:t,forceMount:!0,className:(0,i.QP)("p-4 text-[15px] bg-fd-background rounded-xl outline-none prose-no-margin data-[state=inactive]:hidden [&>figure:only-child]:-m-4 [&>figure:only-child]:border-none",n),...o,children:o.children})}function m(e){return e.toLowerCase().replace(/\s/,"-")}c.displayName="TabsTrigger"},60163:(e,t,n)=>{"use strict";n.d(t,{TOCItems:()=>m,TOCScrollArea:()=>f,W:()=>h,a:()=>u});var r=n(73590),o=n(79604),i=n(39574),l=n(97556),a=n(23616),s=n(49538),d=n(87536);let c=(0,i.createContext)([]);function u(){return(0,i.useContext)(c)}function h(e){let{toc:t,children:n,...i}=e;return(0,r.jsx)(c,{value:t,children:(0,r.jsx)(o.NQ,{toc:t,...i,children:n})})}function f(e){let{ref:t,className:n,...a}=e,s=(0,i.useRef)(null);return(0,r.jsx)("div",{ref:(0,d.P)(s,t),className:(0,l.QP)("relative min-h-0 text-sm ms-px overflow-auto [scrollbar-width:none] [mask-image:linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] py-3",n),...a,children:(0,r.jsx)(o.N2,{containerRef:s,children:a.children})})}function m(e){let{ref:t,className:n,...o}=e,c=(0,i.useRef)(null),h=u(),{text:f}=(0,a.useI18n)();return 0===h.length?(0,r.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:f.tocNoHeadings}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.j,{containerRef:c,className:"absolute top-(--fd-top) h-(--fd-height) w-px bg-fd-primary transition-all"}),(0,r.jsx)("div",{ref:(0,d.P)(t,c),className:(0,l.QP)("flex flex-col border-s border-fd-foreground/10",n),...o,children:h.map(e=>(0,r.jsx)(p,{item:e},e.url))})]})}function p(e){let{item:t}=e;return(0,r.jsx)(o.Cz,{href:t.url,className:(0,l.QP)("prose py-1.5 text-sm text-fd-muted-foreground transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary",t.depth<=2&&"ps-3",3===t.depth&&"ps-6",t.depth>=4&&"ps-8"),children:t.title})}},62294:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});let r=e=>"object"==typeof e&&null!=e&&1===e.nodeType,o=(e,t)=>
1(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,i=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return o(n.overflowY,t)||o(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},l=(e,t,n,r,o,i,l,a)=>i<e&&l>t||i>e&&l<t?0:i<=e&&a<=n||l>=t&&a>=n?i-e-r:l>t&&a<n||i<e&&a>n?l-t+o:0,a=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},s=(e,t)=>{var n,o,s,d;if("undefined"==typeof document)return[];let{scrollMode:c,block:u,inline:h,boundary:f,skipOverflowHiddenElements:m}=t,p="function"==typeof f?f:e=>e!==f;if(!r(e))throw TypeError("Invalid target");let g=document.scrollingElement||document.documentElement,v=[],x=e;for(;r(x)&&p(x);){if((x=a(x))===g){v.push(x);break}null!=x&&x===document.body&&i(x)&&!i(document.documentElement)||null!=x&&i(x,m)&&v.push(x)}let w=null!=(o=null==(n=window.visualViewport)?void 0:n.width)?o:innerWidth,b=null!=(d=null==(s=window.visualViewport)?void 0:s.height)?d:innerHeight,{scrollX:y,scrollY:E}=window,{height:j,width:N,top:L,right:C,bottom:T,left:I}=e.getBoundingClientRect(),{top:S,right:M,bottom:P,left:z}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),k="start"===u||"nearest"===u?L-S:"end"===u?T+P:L+j/2-S+P,D="center"===h?I+N/2-z+M:"end"===h?C+M:I-z,R=[];for(let e=0;e<v.length;e++){let t=v[e],{height:n,width:r,top:o,right:a,bottom:s,left:d}=t.getBoundingClientRect();if("if-needed"===c&&L>=0&&I>=0&&T<=b&&C<=w&&(t===g&&!i(t)||L>=o&&T<=s&&I>=d&&C<=a))break;let f=getComputedStyle(t),m=parseInt(f.borderLeftWidth,10),p=parseInt(f.borderTopWidth,10),x=parseInt(f.borderRightWidth,10),S=parseInt(f.borderBottomWidth,10),M=0,P=0,z="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-x:0,A="offsetHeight"in t?t.offsetHeight-t.clientHeight-p-S:0,O="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,F="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(g===t)M="start"===u?k:"end"===u?k-b:"nearest"===u?l(E,E+b,b,p,S,E+k,E+k+j,j):k-b/2,P="start"===h?D:"center"===h?D-w/2:"end"===h?D-w:l(y,y+w,w,m,x,y+D,y+D+N,N),M=Math.max(0,M+E),P=Math.max(0,P+y);else{M="start"===u?k-o-p:"end"===u?k-s+S+A:"nearest"===u?l(o,s,n,p,S+A,k,k+j,j):k-(o+n/2)+A/2,P="start"===h?D-d-m:"center"===h?D-(d+r/2)+z/2:"end"===h?D-a+x+z:l(d,a,r,m,x+z,D,D+N,N);let{scrollLeft:e,scrollTop:i}=t;M=0===F?0:Math.max(0,Math.min(i+M/F,t.scrollHeight-n/F+A)),P=0===O?0:Math.max(0,Math.min(e+P/O,t.scrollWidth-r/O+z)),k+=i-M,D+=e-P}R.push({el:t,top:M,left:P})}return R};function d(e,t){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=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(s(e,t));let r="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:o,top:i,left:l}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=l-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}},62347:(e,t,n)=>{"use strict";n.d(t,{default:()=>u});var r=n(73590),o=n(79604),i=n(39574),l=n(97556),a=n(49538),s=n(60163),d=n(87536),c=n(23616);function u(e){let{ref:t,className:n,...o}=e,u=(0,i.useRef)(null),m=(0,s.a)(),{text:p}=(0,c.useI18n)(),[g,v]=(0,i.useState)();return((0,i.useEffect)(()=>{if(!u.current)return;let e=u.current;function t(){if(0===e.clientHeight)return;let t=0,n=0,r=[];for(let o=0;o<m.length;o++){let i=e.querySelector('a[href="#'.concat(m[o].url.slice(1),'"]'));if(!i)continue;let l=getComputedStyle(i),a=h(m[o].depth)+1,s=i.offsetTop+parseFloat(l.paddingTop),d=i.offsetTop+i.clientHeight-parseFloat(l.paddingBottom);t=Math.max(a,t),n=Math.max(n,d),r.push("".concat(0===o?"M":"L").concat(a," ").concat(s)),r.push("L".concat(a," ").concat(d))}v({path:r.join(" "),width:t+1,height:n})}let n=new ResizeObserver(t);return t(),n.observe(e),()=>{n.disconnect()}},[m]),0===m.length)?(0,r.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:p.tocNoHeadings}):(0,r.jsxs)(r.Fragment,{children:[g?(0,r.jsx)("div",{className:"absolute start-0 top-0 rtl:-scale-x-100",style:{width:g.width,height:g.height,maskImage:'url("data:image/svg+xml,'.concat(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 '.concat(g.width," ").concat(g.height,'"><path d="').concat(g.path,'" stroke="black" stroke-width="1" fill="none" /></svg>')),'")')},children:(0,r.jsx)(a.j,{containerRef:u,className:"mt-(--fd-top) h-(--fd-height) bg-fd-primary transition-all"})}):null,(0,r.jsx)("div",{ref:(0,d.P)(u,t),className:(0,l.QP)("flex flex-col",n),...o,children:m.map((e,t)=>{var n,o;return(0,r.jsx)(f,{item:e,upper:null==(n=m[t-1])?void 0:n.depth,lower:null==(o=m[t+1])?void 0:o.depth},e.url)})})]})}function h(e){return 10*(e>=3)}function f(e){var t;let{item:n,upper:i=n.depth,lower:a=n.depth}=e,s=h(n.depth),d=h(i),c=h(a);return(0,r.jsxs)(o.Cz,{href:n.url,style:{paddingInlineStart:(t=n.depth)<=2?14:3===t?26:36},className:"prose relative py-1.5 text-sm text-fd-muted-foreground transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary",children:[s!==d?(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",className:"absolute -top-1.5 start-0 size-4 rtl:-scale-x-100",children:(0,r.jsx)("line",{x1:d,y1:"0",x2:s,y2:"12",className:"stroke-fd-foreground
1/10",strokeWidth:"1"})}):null,(0,r.jsx)("div",{className:(0,l.QP)("absolute inset-y-0 w-px bg-fd-foreground/10",s!==d&&"top-1.5",s!==c&&"bottom-1.5"),style:{insetInlineStart:s}}),n.title]})}},74686:(e,t,n)=>{"use strict";n.d(t,{tU:()=>em,av:()=>ep,j7:()=>eh,Xi:()=>ef});var r=n(73590),o=n(39574),i=n.t(o,2),l=n(73894),a=n(93825),s=n(23276),d=n(97487),c=n(55176),u=n(45615),h=n(97200),f=n(85699),m=n(64249),p=n(44002),g=Object.defineProperty,v=(e,t)=>g(e,"name",{value:t,configurable:!0}),x=!1;function w(){let[e,t]=o.useState(x);return o.useEffect(()=>{x||(x=!0,t(!0))},[]),e}v(w,"useIsHydrated");var b=i[" useSyncExternalStore ".trim().toString()];function y(){return()=>{}}function E(){return b(y,()=>!0,()=>!1)}v(y,"subscribe"),v(E,"useIsHydratedModern");var j="function"==typeof b?E:w,N=Object.defineProperty,L=(e,t)=>N(e,"name",{value:t,configurable:!0}),C="rovingFocusGroup.onEntryFocus",T={bubbles:!1,cancelable:!0},I="RovingFocusGroup",[S,M,P]=(0,s.N)(I),[z,k]=(0,a.A)(I,[P]),D={Vertical:"vertical",Horizontal:"horizontal"},R={RTL:"rtl"},[A,O]=z(I),F=o.forwardRef(L(function(e,t){return(0,r.jsx)(S.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,r.jsx)(S.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,r.jsx)(U,{...e,ref:t})})})},"RovingFocusGroup")),U=o.forwardRef(L(function(e,t){let{__scopeRovingFocusGroup:n,orientation:i,loop:a=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:g,onEntryFocus:v,preventScrollOnEntryFocus:x=!1,...w}=e,b=o.useRef(null),y=(0,d.s)(t,b),E=(0,m.jH)(s),[j,N]=(0,f.i)({prop:c,defaultProp:null!=p?p:null,onChange:g,caller:I}),[L,S]=o.useState(!1),P=(0,h.c)(v),z=M(n),k=o.useRef(!1),[D,R]=o.useState(0);return o.useEffect(()=>{let e=b.current;if(e)return e.addEventListener(C,P),()=>e.removeEventListener(C,P)},[P]),(0,r.jsx)(A,{scope:n,orientation:i,dir:E,loop:a,currentTabStopId:j,onItemFocus:o.useCallback(e=>N(e),[N]),onItemShiftTab:o.useCallback(()=>S(!0),[]),onFocusableItemAdd:o.useCallback(()=>R(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>R(e=>e-1),[]),children:(0,r.jsx)(u.sG.div,{tabIndex:L||0===D?-1:0,"data-orientation":i,...w,ref:y,style:{outline:"none",...e.style},onMouseDown:(0,l.mK)(e.onMouseDown,()=>{k.current=!0}),onFocus:(0,l.mK)(e.onFocus,e=>{let t=!k.current;if(e.target===e.currentTarget&&t&&!L){let t=new CustomEvent(C,T);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=z().filter(e=>e.focusable);G([e.find(e=>e.active),e.find(e=>e.id===j),...e].filter(Boolean).map(e=>e.ref.current),x)}}k.current=!1}),onBlur:(0,l.mK)(e.onBlur,()=>S(!1))})})},"RovingFocusGroupImpl")),W=o.forwardRef(L(function(e,t){let{__scopeRovingFocusGroup:n,focusable:i=!0,active:a=!1,tabStopId:s,children:d,...h}=e,f=(0,c.B)(),m=s||f,g=O("RovingFocusGroupItem",n),v=g.currentTabStopId===m,x=M(n),{onFocusableItemAdd:w,onFocusableItemRemove:b,currentTabStopId:y}=g,E=j();return(0,p.N)(()=>{if(E&&i)return w(),()=>b()},[E,i,w,b]),o.useEffect(()=>{if(!E&&i)return w(),()=>b()},[E,i,w,b]),(0,r.jsx)(S.ItemSlot,{scope:n,id:m,focusable:i,active:a,children:(0,r.jsx)(u.sG.span,{tabIndex:v?0:-1,"data-orientation":g.orientation,...h,ref:t,onMouseDown:(0,l.mK)(e.onMouseDown,e=>{i?g.onItemFocus(m):e.preventDefault()}),onFocus:(0,l.mK)(e.onFocus,()=>g.onItemFocus(m)),onKeyDown:(0,l.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void g.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=B(e,g.orientation,g.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=x().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=g.loop?$(n,r+1):n.slice(r+1)}setTimeout(()=>G(n))}}),children:"function"==typeof d?d({isCurrentTabStop:v,hasTabStop:null!=y}):d})})},"RovingFocusGroupItem")),H={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Q(e,t){return t!==R.RTL?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function B(e,t,n){let r=Q(e.key,n);if(!(t===D.Vertical&&["ArrowLeft","ArrowRight"].includes(r))&&!(t===D.Horizontal&&["ArrowUp","ArrowDown"].includes(r)))return H[r]}function G(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function $(e,t){return e.map((n,r)=>e[(t+r)%e.length])}L(Q,"getDirectionAwareKey"),L(B,"getFocusIntent"),L(G,"focusFirst"),L($,"wrapArray");var K=n(37977),_=Object.defineProperty,Z=(e,t)=>_(e,"name",{value:t,configurable:!0}),V={Automatic:"automatic",Manual:"manual"},Y="Tabs",[q,X]=(0,a.A)(Y,[k]),J=k(),[ee,et]=q(Y),en=o.forwardRef(Z(function(e,t){let{__scopeTabs:n,value:o,onValueChange:i,defaultValue:l,orientation:a="horizontal",dir:s,activationMode:d=V.Automatic,...h}=e,p=(0,m.jH)(s),[g,v]=(0,f.i)({prop:o,onChange:i,defaultProp:null!=l?l:"",caller:Y});return(0,r.jsx)(ee,{scope:n,baseId:(0,c.B)(),value:g,onValueChange:v,orientation:a,dir:p,activationMode:d,children:(0,r.jsx)(u.sG.div,{dir:p,"data-orientation":a,...h,ref:t})})},"Tabs")),er=o.forwardRef(Z(function(e,t){let{__scopeTabs:n,loop:o=!0,...i}=e,l=et("TabsList",n),a=J(n);return(0,r.jsx)(F,{asChild:!0,...a,orientation:l.orientation,dir:l.dir,loop:o,children:(0,r.jsx)(u.sG.div,{role:"tablist","aria-orientation":l.orientation,...i,ref:t})})},"TabsList")),eo=o.forwardRef(Z(function(e,t){let{__scopeTabs:n,value:o,disabled:i=!1,...a}=e,s=et("TabsTrigger",n),d=J(n),c=el(s.baseId,o),h=ea(s.baseId,o),f=o===s.value;return(0,r.jsx)(W,{asChild:!0,...d,focusable:!i,active:f,children:(0,r.jsx)(u.sG.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":h,"data-state":f?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...a,ref:t,onMouseDown:(0,l.mK)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():(e.currentTarget.focu
1s(),s.onValueChange(o))}),onKeyDown:(0,l.mK)(e.onKeyDown,e=>{!i&&e.target===e.currentTarget&&[" ","Enter"].includes(e.key)&&s.onValueChange(o)}),onFocus:(0,l.mK)(e.onFocus,()=>{let e=s.activationMode!==V.Manual;f||i||!e||s.onValueChange(o)})})})},"TabsTrigger")),ei=o.forwardRef(Z(function(e,t){let{__scopeTabs:n,value:i,forceMount:l,children:a,...s}=e,d=et("TabsContent",n),c=el(d.baseId,i),h=ea(d.baseId,i),f=i===d.value,m=o.useRef(f);return o.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,r.jsx)(K.C,{present:l||f,children:n=>{let{present:o}=n;return(0,r.jsx)(u.sG.div,{"data-state":f?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":c,hidden:!o,id:h,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:o&&a})}})},"TabsContent"));function el(e,t){return"".concat(e,"-trigger-").concat(t)}function ea(e,t){return"".concat(e,"-content-").concat(t)}Z(el,"makeTriggerId"),Z(ea,"makeContentId");var es=n(87536),ed=n(14218);let ec=new Map,eu=(0,o.createContext)(null),eh=er,ef=eo;function em(e){let{ref:t,groupId:n,persist:i=!1,updateAnchor:l=!1,defaultValue:a,value:s,onValueChange:d,...c}=e,u=(0,o.useRef)(null),[h,f]=void 0===s?(0,o.useState)(a):[s,null!=d?d:()=>void 0],m=(0,ed.J)(e=>f(e)),p=(0,o.useMemo)(()=>new Map,[]);return(0,o.useLayoutEffect)(()=>{var e;if(!n)return;let t=i?localStorage.getItem(n):sessionStorage.getItem(n);t&&m(t);let r=null!=(e=ec.get(n))?e:[];return r.push(m),ec.set(n,r),()=>{var e;let t=null!=(e=ec.get(n))?e:[];ec.set(n,t.filter(e=>e!==m))}},[n,m,i]),(0,o.useLayoutEffect)(()=>{let e=window.location.hash.slice(1);if(e){for(let[n,r]of p.entries())if(r===e){var t;m(n),null==(t=u.current)||t.scrollIntoView();break}}},[m,p]),(0,r.jsx)(en,{ref:(0,es.P)(t,u),value:h,onValueChange:e=>{if(l){let t=p.get(e);t&&window.history.replaceState(null,"","#".concat(t))}if(n){var t;null==(t=ec.get(n))||t.forEach(t=>{t(e)}),i?localStorage.setItem(n,e):sessionStorage.setItem(n,e)}else f(e)},...c,children:(0,r.jsx)(eu.Provider,{value:(0,o.useMemo)(()=>({valueToIdMap:p}),[p]),children:c.children})})}function ep(e){let{value:t,...n}=e,{valueToIdMap:i}=function(){let e=(0,o.useContext)(eu);if(!e)throw Error("You must wrap your component in <Tabs>");return e}();return n.id&&i.set(t,n.id),(0,r.jsx)(ei,{value:t,...n,children:n.children})}},79604:(e,t,n)=>{"use strict";n.d(t,{Cz:()=>f,Mf:()=>c,N2:()=>u,NQ:()=>h,R3:()=>d});var r=n(73464),o=n(39574),i=n(62294),l=n(73590),a=(0,o.createContext)([]),s=(0,o.createContext)({current:null});function d(){return(0,o.useContext)(a).at(-1)}function c(){return(0,o.useContext)(a)}
1function u(e){let{containerRef:t,children:n}=e;return(0,l.jsx)(s.Provider,{value:t,children:n})}function h(e){let{toc:t,single:n=!0,children:r}=e,i=(0,o.useMemo)(()=>t.map(e=>e.url.split("#")[1]),[t]);return(0,l.jsx)(a.Provider,{value:function(e,t){let[n,r]=(0,o.useState)([]);return(0,o.useEffect)(()=>{let n=[],o=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&!n.includes(t.target.id)?n=[...n,t.target.id]:!t.isIntersecting&&n.includes(t.target.id)&&(n=n.filter(e=>e!==t.target.id));n.length>0&&r(n)},{rootMargin:t?"-80px 0% -70% 0%":"-20px 0% -40% 0%",threshold:1});function i(){let n=document.scrollingElement;if(!n)return;let o=n.scrollTop;o<=0&&t?r(e.slice(0,1)):o+n.clientHeight>=n.scrollHeight-6&&r(n=>n.length>0&&!t?e.slice(e.indexOf(n[0])):e.slice(-1))}for(let t of e){let e=document.getElementById(t);e&&o.observe(e)}return i(),window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i),o.disconnect()}},[t,e]),t?n.slice(0,1):n}(i,n),children:r})}var f=(0,o.forwardRef)((e,t)=>{let{onActiveChange:n,...a}=e,d=(0,o.useContext)(s),u=c(),h=(0,o.useRef)(null),f=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach(t=>{"function"==typeof t?t(e):null!==t&&(t.current=e)})}}(h,t),m=u.includes(a.href.slice(1));return(0,r.T)(m,e=>{let t=h.current;t&&(e&&d.current&&(0,i.A)(t,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:d.current}),null==n||n(e))}),(0,l.jsx)("a",{ref:f,"data-active":m,...a,children:a.children})});f.displayName="TOCItem"},94061:(e,t,n)=>{"use strict";n.d(t,{ImageZoom:()=>T});var r=n(73590),o=n(2981);n(97334);var i=n(39574),l=n(12963);let a=(e,t)=>"undefined"!=typeof Element&&t instanceof Element&&t.tagName.toUpperCase()===e,s=e=>a("DIV",e)||a("SPAN",e),d=e=>a("IMG",e),c=e=>e.complete&&0!==e.naturalHeight,u=e=>a("SVG",e),h=/url(?:\(['"]?)(?<url>.*?)(?:['"]?\))/,f=e=>{if(null!==e){if(d(e))return""===e.currentSrc?void 0:e.currentSrc;else if(s(e)){let{backgroundImage:t}=window.getComputedStyle(e);if(""!==t)return h.exec(t)?.[1]}}},m=e=>{if(null==e)return{};if(!u(e))return{height:e.offsetHeight,left:e.offsetLeft,width:e.offsetWidth,top:e.offsetTop};{let{parentElement:t}=e,n=e.getBoundingClientRect();if(null==t)return{height:n.height,left:n.left,width:n.width,top:n.top};{let e=t.getBoundingClientRect();return{height:n.height,left:e.left-n.left,top:e.top-n.top,width:n.width}}}},p=({height:e,offset:t,width:n})=>Math.min((window.innerWidth-2*t)/n,(window.innerHeight-2*t)/e),g=({containerHeight:e,containerWidth:t,hasScalableSrc:n,offset:r,targetHeight:o,targetWidth:i})=>0===e||0===t?1:n||0===o||0===i?p({height:e,offset:r,width:t}):(({containerHeight:e,containerWidth:t,offset:n,targetHeight:r,targetWidth:o})=>{let i=p({height:r,offset:n,width:o}),l=o>r?o/t:r/e;return i>1?l:i*l})({containerHeight:e,containerWidth:t,offset:r,targetHeight:o,targetWidth:i}),v=(e,t)=>
1{let n=parseFloat(e);return e.endsWith("%")?t*n/100:n},x=({containerHeight:e,containerLeft:t,containerTop:n,containerWidth:r,hasScalableSrc:o,offset:i,position:l,targetHeight:a,targetWidth:s,visibleHeight:d,visibleWidth:c})=>{let[u="50%",h="50%"]=l.split(" "),f=v(u,r-c),m=v(h,e-d),p=g({containerHeight:d,containerWidth:c,hasScalableSrc:o,offset:i,targetHeight:a,targetWidth:s});return{top:n+m,left:t+f,width:c*p,height:d*p,initialTransform:`translate(0,0) scale(${1/p})`}},w=({fallback:e,natural:t})=>void 0!==t&&0!==t?t:e,b=/\.svg$/i,y=["img","svg",'[role="img"]',"[data-zoom]"].map(e=>`${e}:not([aria-hidden="true"])`).join(","),E={overflow:"",width:""};function j(e){e.preventDefault()}function N(e){return i.createElement(L,{...e})}class L extends i.Component{constructor(){super(...arguments),this.state={id:"",isZoomImgLoaded:!1,loadedImgEl:void 0,modalState:"UNLOADED",shouldRefresh:!1,styleGhost:{}},this.refContent=i.createRef(),this.refDialog=i.createRef(),this.refModalContent=i.createRef(),this.refModalImg=i.createRef(),this.refWrap=i.createRef(),this.imgEl=null,this.isScaling=!1,this.prevBodyAttrs=E,this.styleModalImg={},this.handleModalStateChange=e=>{let{state:{modalState:t}}=this;"LOADING"!==e&&"LOADING"===t?(this.isScaling=!1,this.loadZoomImg(),window.addEventListener("resize",this.handleResize,{passive:!0}),window.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),window.addEventListener("touchmove",this.handleTouchMove,{passive:!0}),window.addEventListener("touchend",this.handleTouchEnd,{passive:!0}),window.addEventListener("touchcancel",this.handleTouchCancel,{passive:!0}),document.addEventListener("keydown",this.handleKeyDown,!0)):"LOADED"!==e&&"LOADED"===t?window.addEventListener("wheel",this.handleWheel,{passive:!0}):"UNLOADING"!==e&&"UNLOADING"===t?(this.ensureImgTransitionEnd(),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),document.removeEventListener("keydown",this.handleKeyDown,!0)):"UNLOADED"!==e&&"UNLOADED"===t&&(this.bodyScrollEnable(),window.removeEventListener("resize",this.handleResize),this.refDialog.current?.close())},this.setId=()=>{let e=()=>Math.random().toString(16).slice(-4);this.setState({id:e()+e()+e()})},this.setAndTrackImg=()=>{let{refContent:{current:e}}=this;null!=e&&(this.imgEl=e.querySelector(y),null!==this.imgEl?(this.contentNotFoundChangeObserver?.disconnect(),this.imgEl.addEventListener("load",this.handleImgLoad),this.imgEl.addEventListener("click",this.handleZoom),null==this.state.loadedImgEl&&this.handleImgLoad(),this.imgElResizeObserver=new ResizeObserver(e=>{let[t]=e;t?.target!==void 0&&(this.imgEl=t.target,this.setState({styleGhost:m(this.imgEl)}))}),this.imgElResizeObserver.observe(this.imgEl),null==this.contentChangeObserver&&(this.contentChangeObserver=new MutationObserver(()=>{this.setState({styleGhost:m(this.imgEl)})}),this.contentChangeObserver.observe(e,{attributes:!0,childList:!0,subtree:!0}))):null==this.contentNotFoundChangeObserver&&(this.contentNotFoundChangeObserver=new MutationObserver(this.setAndTrackImg),this.contentNotFoundChangeObserver.observe(e,{childList:!0,subtree:!0})))},this.handleIfZoomChanged=e=>{let{props:{isZoomed:t}}=this;!e&&t?this.zoom():e&&!t&&this.unzoom()},this.handleImgLoad=()=>{let e=f(this.imgEl);if(null==e||""===e)return;let t=new Image,{imgEl:n}=this;if(d(n)){let{sizes:e,srcset:r,crossOrigin:o}=n;t.sizes=e,t.srcset=r,t.crossOrigin=o}t.src=e;let r=()=>{this.setState({loadedImgEl:t,styleGhost:m(this.imgEl)})};t.decode().then(r).catch(()=>{if(c(t))return void r();t.onload=r})},this.handleZoom=e=>{!0!==this.props.isDisabled&&this.hasImage()&&this.props.onZoomChange?.(!0,{event:e})},this.handleUnzoom=e=>{!0!==this.props.isDisabled&&this.props.onZoomChange?.(!1,{event:e})},this.handleBtnUnzoomClick=e=>{e.preventDefault(),e.stopPropagation(),this.handleUnzoom(e)},this.handleDialogClick=e=>{(e.target===this.refModalContent.current||e.target===this.refModalImg.current)&&(e.stopPropagation(),this.handleUnzoom(e))},this.handleDialogClose=e=>{e.stopPropagation(),this.handleUnzoom(e)},this.handleKeyDown=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),this.handleUnzoom(e))},this.handleWheel=e=>
1{e.ctrlKey||this.isScaling||(window.visualViewport?.scale??1)>1||(e.stopPropagation(),queueMicrotask(()=>{this.handleUnzoom(e)}))},this.handleTouchStart=e=>{if(e.touches.length>1){this.isScaling=!0;return}let{changedTouches:t}=e,[n]=t;if(1===t.length&&void 0!==n){let{screenY:e}=n;this.touchYStart=e}},this.handleTouchMove=e=>{let t=window.visualViewport?.scale??1,{changedTouches:n}=e,[r]=n;if(this.props.canSwipeToUnzoom&&!this.isScaling&&t<=1&&null!=this.touchYStart&&void 0!==r){let{screenY:t}=r;this.touchYEnd=t,Math.abs(Math.max(this.touchYStart,this.touchYEnd)-Math.min(this.touchYStart,this.touchYEnd))>this.props.swipeToUnzoomThreshold&&(this.touchYStart=void 0,this.touchYEnd=void 0,this.handleUnzoom(e))}},this.handleTouchEnd=()=>{this.touchYStart=void 0,this.touchYEnd=void 0},this.handleTouchCancel=()=>{this.touchYStart=void 0,this.touchYEnd=void 0},this.handleResize=()=>{this.setState({shouldRefresh:!0})},this.hasImage=()=>null!==this.imgEl&&(void 0!==this.state.loadedImgEl||u(this.imgEl))&&"none"!==window.getComputedStyle(this.imgEl).display,this.zoom=()=>{this.bodyScrollDisable(),this.refDialog.current?.showModal(),this.setState({modalState:"LOADING"})},this.unzoom=()=>{this.setState({modalState:"UNLOADING"})},this.handleImgTransitionEnd=()=>{clearTimeout(this.timeoutTransitionEnd),"LOADING"===this.state.modalState?this.setState({modalState:"LOADED"}):"UNLOADING"===this.state.modalState&&this.setState({shouldRefresh:!1,modalState:"UNLOADED"})},this.ensureImgTransitionEnd=()=>
1{if(null!==this.refModalImg.current){let{transitionDuration:e}=window.getComputedStyle(this.refModalImg.current),t=parseFloat(e);if(0!==t&&!Number.isNaN(t)){let n=t*(e.endsWith("ms")?1:1e3)+50;this.timeoutTransitionEnd=setTimeout(this.handleImgTransitionEnd,n)}}},this.bodyScrollDisable=()=>{let e=document.body.style;this.prevBodyAttrs={overflow:e.overflow,width:e.width};let t=document.body.clientWidth;e.overflow="hidden",e.width=`${t}px`},this.bodyScrollEnable=()=>{let e=document.body.style,t=this.prevBodyAttrs;e.width=t.width,e.overflow=t.overflow,this.prevBodyAttrs=E},this.loadZoomImg=()=>{let{props:{zoomImg:e}}=this;if(null==e)return;let{src:t}=e;if(void 0!==t&&""!==t){let n=new Image;n.sizes=e.sizes??"",n.srcset=e.srcSet??"",n.crossOrigin=e.crossOrigin??void 0,n.src=t;let r=()=>{this.setState({isZoomImgLoaded:!0})};n.decode().then(r).catch(()=>{if(c(n))return void r();n.onload=r})}},this.UNSAFE_handleSvg=()=>{let{imgEl:e,refModalImg:t,styleModalImg:n}=this;if(u(e)){let r=e.cloneNode(!0);(e=>{let t="-zoom",n=["clip-path","fill","mask","marker-start","marker-mid","marker-end"],r=new Map;if(e.hasAttribute("id")){let{id:n}=e,o=n+t;r.set(n,o),e.id=o}e.querySelectorAll("[id]").forEach(e=>{let{id:n}=e,o=n+t;r.set(n,o),e.id=o});let o=n.map(e=>`[${e}]`).join(", ");e.querySelectorAll(o).forEach(e=>{for(let t of n){let n=e.getAttribute(t);if(n?.startsWith("url(#")===!0){let o=n.slice(5,-1),i=r.get(o);void 0!==i&&e.setAttribute(t,`url(#${i})`)}}}),e.querySelectorAll("style").forEach(e=>{let{textContent:t}=e;if(""!==t){let n=t;r.forEach((e,t)=>{n=n.replaceAll(`#${t}`,`#${e}`)}),n!==t&&(e.textContent=n)}})})(r),r.style.width=`${n.width??0}px`,r.style.height=`${n.height??0}px`,r.addEventListener("click",this.handleUnzoom),t.current?.firstChild?.remove(),t.current?.appendChild(r)}}}render(){let{handleBtnUnzoomClick:e,handleDialogClick:t,handleDialogClose:n,handleUnzoom:r,handleZoom:o,imgEl:a,props:{a11yNameButtonUnzoom:c,a11yNameButtonZoom:h,children:m,classDialog:p,IconUnzoom:y,IconZoom:E,wrapElement:N,ZoomContent:L,zoomImg:C,zoomMargin:T},refContent:I,refDialog:S,refModalContent:M,refModalImg:P,refWrap:z,state:{id:k,isZoomImgLoaded:D,loadedImgEl:R,modalState:A,shouldRefresh:O,styleGhost:F}}=this,U=`rmiz-modal-${k}`,W=`rmiz-modal-img-${k}`,H=s(a),Q=d(a),B=u(a),G=(e=>{if(null!==e)if(d(e))return e.alt;else return e.getAttribute("aria-label")??void 0})(a),$=f(a),K=Q?a.sizes:void 0,_=Q?a.srcset:void 0,Z=Q?a.crossOrigin:void 0,V=C?.src!==void 0&&""!==C.src,Y=this.hasImage(),q=void 0!==G&&""!==G?`${h}: ${G}`:h,X="LOADING"===A||"LOADED"===A,J=Y?"found":"not-found",ee="UNLOADED"===A||"UNLOADING"===A?"hidden":"visible";this.styleModalImg=Y&&null!==a?(({hasZoomImg:e,imgSrc:t,isSvg:n,isZoomed:r,loadedImgEl:o,offset:i,shouldRefresh:l,targetEl:a})=>{let d=(({hasZoomImg:e,imgSrc:t,isSvg:n})=>n||t?.slice(0,18)==="data:image/svg+xml"||e||void 0!==t&&b.test(t))({hasZoomImg:e,imgSrc:t,isSvg:n}),c=a.getBoundingClientRect(),u=window.getComputedStyle(a),h=null!=o&&s(a),f=null!=o&&!h,m=w({fallback:c.height,natural:o?.naturalHeight}),p=w({fallback:c.width,natural:o?.naturalWidth}),{height:y,left:E,top:j,width:N}=c,L=h?(({backgroundPosition:e,backgroundSize:t,containerHeight:n,containerLeft:r,containerTop:o,containerWidth:i,hasScalableSrc:l,offset:a,targetHeight:s,targetWidth:d})=>{let c={containerHeight:n,containerLeft:r,containerTop:o,containerWidth:i,hasScalableSrc:l,offset:a,position:e,targetHeight:s,targetWidth:d};if("cover"===t||"contain"===t){let e=i/d,r=n/s,o="cover"===t?Math.max(e,r):Math.min(e,r);return x({...c,visibleWidth:d*o,visibleHeight:s*o})}{if("auto"===t)return x({...c,visibleWidth:d,visibleHeight:s});let[e="50%",r="50%"]=t.split(" "),o=v(e,i),l=Math.min(o/d,v(r,n)/s);return x({...c,visibleWidth:d*l,visibleHeight:s*l})}})({backgroundPosition:u.backgroundPosition,backgroundSize:u.backgroundSize,containerHeight:y,containerLeft:E,containerTop:j,containerWidth:N,hasScalableSrc:d,offset:i,targetHeight:m,targetWidth:p}):f?(({containerHeight:e,containerLeft:t,containerTop:n,containerWidth:r,hasScalableSrc:o,objectFit:i,objectPosition:l,offset:a,targetHeight:s,targetWidth:d})=>{let c=i;"scale-down"===c&&(c=d<=r&&s<=e?"none":"contain");let u={containerHeight:e,containerLeft:t,containerTop:n,containerWidth:r,hasScalableSrc:o,offset:a,position:l,targetHeight:s,targetWidth:d};if("cover"===c||"contain"===c){let t=r/d,n=e/s,o="cover"===c?Math.max(t,n):Math.min(t,n);return x({...u,visibleWidth:d*o,visibleHeight:s*o})}{if("none"===c)return x({...u,visibleWidth:d,visibleHeight:s});let i=Math.max(r/d,e/s),l=g({containerHeight:s*i,containerWidth:d*i,hasScalableSrc:o,offset:a,targetHeight:s,targetWidth:d});return{top:n,left:t,width:r*l,height:e*l,initialTransform:`translate(0,0) scale(${1/l})`}}})({containerHeight:y,containerLeft:E,containerTop:j,containerWidth:N,hasScalableSrc:d,objectFit:u.objectFit,objectPosition:u.objectPosition,offset:i,targetHeight:m,targetWidth:p}):(({containerHeight:e,containerLeft:t,containerTop:n,containerWidth:r,hasScalableSrc:o,offset:i,targetHeight:l,targetWidth:a})=>{let s=g({containerHeight:e,containerWidth:r,hasScalableSrc:o,offset:i,targetHeight:l,targetWidth:a});return{top:n,left:t,width:r*s,height:e*s,initialTransform:`translate(0,0) scale(${1/s})`}})({containerHeight:y,containerLeft:E,containerTop:j,containerWidth:N,hasScalableSrc:d,offset:i,targetHeight:m,targetWidth:p}
1),C={top:L.top,left:L.left,width:L.width,height:L.height,transform:(({height:e,initialTransform:t,isZoomed:n,left:r,top:o,userTransform:i,width:l})=>{let a="";if("none"!==i&&""!==i){let t=l/2,n=e/2;a=`translate(${t}px,${n}px) ${i} translate(${-t}px,${-n}px)`}if(!n)return""===a?t:`${t} ${a}`;let s=window.innerWidth/2,d=window.innerHeight/2,c=`translate(${s-(r+l/2)}px,${d-(o+e/2)}px) scale(1)`;return""===a?c:`${c} ${a}`})({...L,isZoomed:r,userTransform:u.transform})};return r&&l&&(C.transitionDuration="0.01ms"),C})({hasZoomImg:V,imgSrc:$,isSvg:B,isZoomed:X,loadedImgEl:R,offset:T,shouldRefresh:O,targetEl:a}):{};let et=null;if(Y){let t=Q||H?i.createElement("img",{alt:G,crossOrigin:Z,sizes:K,src:$,srcSet:_,...D&&"LOADED"===A?C:{},"data-rmiz-modal-img":"",height:this.styleModalImg.height??void 0,id:W,onTransitionEnd:this.handleImgTransitionEnd,ref:P,style:this.styleModalImg,width:this.styleModalImg.width??void 0}):B?i.createElement("div",{"data-rmiz-modal-img":!0,onTransitionEnd:this.handleImgTransitionEnd,ref:P,style:this.styleModalImg}):null,n=i.createElement("button",{"aria-label":c,"data-rmiz-btn-unzoom":"",onClick:e,type:"button"},i.createElement(y,null));et=null==L?i.createElement(i.Fragment,null,t,n):i.createElement(L,{buttonUnzoom:n,modalState:A,img:t,isZoomImgLoaded:D,onUnzoom:r})}return i.createElement(N,{"data-rmiz":"",ref:z},i.createElement(N,{"data-rmiz-content":J,ref:I,style:{visibility:"UNLOADED"===A?"visible":"hidden"}},m),Y&&i.createElement(N,{"data-rmiz-ghost":"",style:F},i.createElement("button",{"aria-label":q,"data-rmiz-btn-zoom":"",onClick:o,type:"button"},i.createElement(E,null))),Y&&l.createPortal(i.createElement("dialog",{"aria-labelledby":W,"aria-modal":"true",className:p,"data-rmiz-modal":"",id:U,onClick:t,onClose:n,onCancel:j,ref:S,role:"dialog"},i.createElement("div",{"data-rmiz-modal-overlay":ee}),i.createElement("div",{"data-rmiz-modal-content":"",ref:M},et)),function(){let e=document.querySelector("[data-rmiz-portal]");if(null!=e)return e;let t=document.createElement("div");return t.setAttribute("data-rmiz-portal",""),document.body.appendChild(t),t}()))}componentDidMount(){this.setId(),this.setAndTrackImg(),this.handleImgLoad(),this.UNSAFE_handleSvg()}componentWillUnmount(){"UNLOADED"!==this.state.modalState&&this.bodyScrollEnable(),this.contentChangeObserver?.disconnect(),this.contentNotFoundChangeObserver?.disconnect(),this.imgElResizeObserver?.disconnect(),this.imgEl?.removeEventListener("load",this.handleImgLoad),this.imgEl?.removeEventListener("click",this.handleZoom),clearTimeout(this.timeoutTransitionEnd),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),window.removeEventListener("resize",this.handleResize),document.removeEventListener("keydown",this.handleKeyDown,!0)}componentDidUpdate(e,t){this.handleModalStateChange(t.modalState),this.UNSAFE_handleSvg(),this.handleIfZoomChanged(e.isZoomed)}}function C({onZoomChange:e,...t}){let[n,r]=i.useState(!1),o=i.useCallback((t,{event:n})=>{r(t),e?.(t,{event:n})},[e]);return i.createElement(N,{...t,isZoomed:n,onZoomChange:o})}function T(e){var t;let{zoomInProps:n,children:i,rmiz:l,...a}=e;return(0,r.jsx)(C,{zoomMargin:20,wrapElement:"span",...l,zoomImg:{src:"string"==typeof(t=a.src)?t:"object"==typeof t?"default"in t?t.default.src:t.src:"",sizes:void 0,...n},children:null!=i?i:(0,r.jsx)(o.Image,{sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px",...a})})}L.defaultProps={a11yNameButtonUnzoom:"Minimize image",a11yNameButtonZoom:"Expand image",canSwipeToUnzoom:!0,IconUnzoom:function(){return i.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-unzoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M 14.144531 1.148438 L 9 6.292969 L 9 3 L 8 3 L 8 8 L 13 8 L 13 7 L 9.707031 7 L 14.855469 1.851563 Z M 8 8 L 3 8 L 3 9 L 6.292969 9 L 1.148438 14.144531 L 1.851563 14.855469 L 7 9.707031 L 7 13 L 8 13 Z"}))},IconZoom:function(){return i.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-zoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M 9 1 L 9 2 L 12.292969 2 L 2 12.292969 L 2 9 L 1 9 L 1 14 L 6 14 L 6 13 L 2.707031 13 L 13 2.707031 L 13 6 L 14 6 L 14 1 Z"}))},isDisabled:!1,swipeToUnzoomThreshold:10,wrapElement:"div",zoomMargin:0}},97334:()=>{}}]);
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.