(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2034],{3017:()=>{},4436:()=>{},10083:(e,t,i)=>{"use strict";i.r(t),i.d(t,{PageFeedbackForm:()=>h});var r=i(54568),s=i(5772),l=i(7620),a=i(88118),n=i(96021),o=i(98743),c=i(24578),d=i(54217);function h(e){let{className:t}=e,i=(0,a.ok)(),h=(0,c.jt)(),m=l.useRef(null),[p,x]=l.useState(),[f,g]=l.useState(""),[v,L]=l.useState(!1),b=e=>{x(e),h({type:"page_post_feedback",feedback:{rating:e}})},w=(e,t)=>{L(!0),h({type:"page_post_feedback_comment",feedback:{rating:e,comment:t}})};return l.useEffect(()=>{if(p){var e;null==(e=m.current)||e.focus()}},[p]),(0,r.jsxs)("div",{className:(0,o.P)("flex flex-col gap-3 text-sm",t),children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)("p",{children:(0,n.t)(i,"was_this_helpful")}),(0,r.jsx)("div",{className:"rounded-full border border-tint-subtle bg-tint-base contrast-more:border-tint-12",children:(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(u,{rating:s.op.Good,label:(0,n.s)(i,"was_this_helpful_positive"),onClick:()=>b(s.op.Good),active:p===s.op.Good,disabled:void 0!==p}),(0,r.jsx)(u,{rating:s.op.Ok,label:(0,n.s)(i,"was_this_helpful_neutral"),onClick:()=>b(s.op.Ok),active:p===s.op.Ok,disabled:void 0!==p}),(0,r.jsx)(u,{rating:s.op.Bad,label:(0,n.s)(i,"was_this_helpful_negative"),onClick:()=>b(s.op.Bad),active:p===s.op.Bad,disabled:void 0!==p})]})})]}),p?(0,r.jsx)("div",{className:"flex flex-col gap-2",children:v?(0,r.jsx)("p",{children:(0,n.t)(i,"was_this_helpful_thank_you")}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("textarea",{ref:m,name:"comment",className:"max-h-40 min-h-16 grow rounded straight-corners:rounded-none bg-tint-base p-2 ring-1 ring-tint ring-inset placeholder:text-sm placeholder:text-tint contrast-more:ring-tint-12 contrast-more:placeholder:text-tint-strong",placeholder:(0,n.s)(i,"was_this_helpful_comment"),"aria-label":(0,n.s)(i,"was_this_helpful_comment"),onChange:e=>g(e.target.value),value:f,rows:3,maxLength:512}),(0,r.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,r.jsx)(d.$n,{size:"small",onClick:()=>w(p,f),label:(0,n.s)(i,"submit")}),f.length>409.6?(0,r.jsxs)("span",{className:512===f.length?"text-red-500":"",children:[f.length," / ",512]}):null]})]})}):null]})}function u(e){var t;let{rating:i,label:s,onClick:l,active:a,...n}=e,c=null!=(t=({bad:(0,r.jsx)(m,{}),ok:(0,r.jsx)(p,{}),good:(0,r.jsx)(x,{})})[i])?t:null;return(0,r.jsx)("button",{className:(0,o.P)("p-2 first:rounded-l-full first:pl-2.5 last:rounded-r-full last:pr-2.5 hover:bg-primary-hover hover:text-primary-strong","disabled:cursor-not-allowed disabled:hover:bg-inherit disabled:hover:text-inherit disabled:dark:hover:text-inherit","ring-tint contrast-more:hover:ring-1",a?"bg-primary-active text-primary-strong disabled:hover:bg-primary-active disabled:hover:text-primary-strong contrast-more:ring-2 contrast-more:hover:ring-2":"disabled:opacity-7 disabled:contrast-more:ring-0"),type:"button",...n,"aria-label":s,title:s,onClick:l,children:c})}let m=()=>(0,r.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("circle",{cx:"9",cy:"9",r:"9",fill:"currentColor",fillOpacity:"0.2"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 8.25C4.58579 8.25 4.25 7.91421 4.25 7.5V6C4.25 5.58579 4.58579 5.25 5 5.25C5.41421 5.25 5.75 5.58579 5.75 6V7.5C5.75 7.91421 5.41421 8.25 5 8.25ZM4.66782 13.3737C4.87421 13.5572 5.19025 13.5386 5.3737 13.3322C7.30371 11.1609 10.6963 11.1609 12.6263 13.3322C12.8098 13.5386 13.1258 13.5572 13.3322 13.3737C13.5386 13.1902 13.5572 12.8742 13.3737 12.6678C11.0459 10.049 6.9541 10.049 4.6263 12.6678C4.44284 12.8742 4.46143 13.1902 4.66782 13.3737ZM12.25 7.5C12.25 7.91421 12.5858 8.25 13 8.25C13.4142 8.25 13.75 7.91421 13.75 7.5V6C13.75 5.58579 13.4142 5.25 13 5.25C12.5858 5.25 12.25 5.58579 12.25 6V7.5Z",fill:"currentColor"})]}),p=()=>(0,r.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("circle",{cx:"9",cy:"9",r:"9",fill:"currentColor",fillOpacity:"0.2"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 8.25C4.58579 8.25 4.25 7.91421 4.25 7.5V6C4.25 5.58579 4.58579 5.25 5 5.25C5.41421 5.25 5.75 5.58579 5.75 6V7.5C5.75 7.91421 5.41421 8.25 5 8.25ZM4.5 12C4.5 11.7239 4.72386 11.5 5 11.5H13C13.2761 11.5 13.5 11.7239 13.5 12C13.5 12.2761 13.2761 12.5 13 12.5H5C4.72386 12.5 4.5 12.2761 4.5 12ZM12.25 7.5C12.25 7.91421 12.5858 8.25 13 8.25C13.4142 8.25 13.75 7.91421 13.75 7.5V6C13.75 5.58579 13.4142 5.25 13 5.25C12.5858 5.25 12.25 5.58579 12.25 6V7.5Z",fill:"currentColor"})]}),x=()=>(0,r.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("circle",{cx:"9",cy:"9",r:"9",fill:"currentColor",fillOpacity:"0.2"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 8.25C4.58579 8.25 4.25 7.91421 4.25 7.5V6C4.25 5.58579 4.58579 5.25 5 5.25C5.41421 5.25 5.75 5.58579 5.75 6V7.5C5.75 7.91421 5.41421 8.25 5 8.25ZM4.66782 11.6263C4.87421 11.4428 5.19025 11.4614 5.3737 11.6678C7.30371 13.8391 10.6963 13.8391 12.6263 11.6678C12.8098 11.4614 13.1258 11.4428 13.3322 11.6263C13.5386 11.8098 13.5572 12.1258 13.3737 12.3322C11.0459 14.951 6.9541 14.951 4.6263 12.3322C4.44284 12.1258 4.46143 11.8098 4.66782 11.6263ZM12.25 7.5C12.25 7.91421 12.5858 8.25 13 8.25C13.4142 8.25 13.75 7.91421 13.75 7.5V6C13.75 5.58579 13.4142 5.25 13 5.25C12.5858 5.25 12.25 5.58579 12.25 6V7.5Z",fill:"currentColor"})]})},17694:e=>{e.exports={tableWrapper:"table_tableWrapper__zr7LC","detect-scroll":"table_detect-scroll__IZtP9",columnHeader:"table_columnHeader__PGmsy",row:"table_row__LpfCG",rowGroup:"table_rowGroup__IKtSP",cell:"table_cell__X_gFM"}},27851:(e,t,i)=>{"use strict";i.d(t,{PageClientLayout:()=>a});var r=i(62942),s=i(7620),l=i(62574);function a(e){return(0,l.eb)({scrollMarginTop:e.withSections?108:64}),function(){let e=(0,r.useRouter)(),t=(0,r.usePathname)(),i=(0,r.useSearchParams)();s.useEffect(()=>{if(null==i?void 0:i.has("fallback")){var r;let s=new URLSearchParams(i.toString());s.delete("fallback"),e.push("".concat(t,"?").concat(s.toString()).concat(null!=(r=window.location.hash)?r:""))}},[e,t,i])}(),null}},29751:()=>{},32292:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SitePageNotFound:()=>h});var r=i(54568),s=i(24578),l=i(88118),a=i(98743),n=i(62942),o=i(7620),c=i(4788),d=i(62574);function h(){let e=(0,c.K)(),t=(0,l.ok)(),i=(0,n.useRouter)(),h=(0,n.useSearchParams)(),u=null==h?void 0:h.get("fallback");return(0,o.useEffect)(()=>{u&&i.replace(e)},[e,u,i]),(0,r.jsx)(d.G8,{page:null,children:(0,r.jsxs)("div",{className:(0,a.P)("flex-1","flex","flex-row","items-center","justify-center","py-9","min-h-[calc(100vh-64px)] lg:min-h-fit"),children:[(0,r.jsxs)("div",{className:(0,a.P)("max-w-80"),children:[(0,r.jsx)("h2",{className:(0,a.P)("text-2xl","font-semibold","mb-2"),children:(0,l.t)(t,"notfound_title")}),(0,r.jsx)("p",{className:(0,a.P)("text-base","mb-4"),children:(0,l.t)(t,"notfound")})]}),(0,r.jsx)(s.ax,{})]})})}},36143:()=>{},36329:(e,t,i)=>{"use strict";i.d(t,{ScrollSectionsList:()=>p});var r=i(54568),s=i(20835),l=i(7620),a=i(62574),n=i(98743),o=i(54217),c=i(90526),d=i(92360),h=i(47047);function u(e){let{transition:t,className:i}=e,a=function(){h.r.current||(0,d.U)();let[e]=(0,l.useState)(h.O.current);return e}();return(0,r.jsx)(s.P.div,{layout:!0,layoutId:"sections-line",className:(0,n.P)(["border-primary-9","tint:border-primary-11","sidebar-list-line:border-l-2","inset-0","pointer-events-none","absolute","z-0","sidebar-list-line:-left-px","rounded-md","straight-corners:rounded-none","circular-corners:rounded-2xl","sidebar-list-line:rounded-l-none","sidebar-list-pill:bg-primary","[html.theme-muted.sidebar-list-pill_&]:bg-primary-hover","[html.theme-gradient.sidebar-list-pill_&]:bg-primary-active","contrast-more:border","contrast-more:bg-primary",i]),transition:a?{duration:0}:t})}let m={type:"spring",stiffness:700,damping:50,mass:.8};function p(e){let{sections:t}=e,i=l.useMemo(()=>t.map(e=>e.id),[t]),d=(0,o.rz)(),h=(0,a.W1)(i,{rootMargin:"-".concat(c.vV,"px 0px -40% 0px"),threshold:.9,enabled:d});return(0,r.jsx)("ul",{className:(0,n.P)("sidebar-list-line:border-l","border-tint-subtle"),children:t.map(e=>(0,r.jsxs)(s.P.li,{className:(0,n.P)("flex","flex-row","relative","h-fit","mt-2",e.depth>1&&["ml-3","my-0","sidebar-list-line:ml-0"]),children:[h===e.id?(0,r.jsx)(u,{transition:m,className:(0,n.P)("sidebar-list-default:hidden",(null==e?void 0:e.depth)>1?["sidebar-list-default:rounded-l-none","sidebar-list-line:rounded-l-none"]:["sidebar-list-default:ml-3","contrast-more:sidebar-list-default:ml-0"])}):null,(0,r.jsxs)("a",{href:"#".concat(e.id),className:(0,n.P)("relative","z-10","text-sm","w-full","py-1","px-3","transition-all","duration-200","rounded-md","straight-corners:rounded-none","circular-corners:rounded-2xl","sidebar-list-line:rounded-l-none","hover:bg-tint-hover","theme-gradient:hover:bg-tint-12/1","hover:text-tint-strong","contrast-more:hover:ring-1","contrast-more:hover:ring-inset","contrast-more:hover:ring-current",e.depth>1&&["subitem","sidebar-list-line:pl-6","opacity-8","contrast-more:opacity-11","sidebar-list-default:rounded-l-none","sidebar-list-default:border-l","sidebar-list-default:border-tint"],h===e.id&&["text-primary-subtle","hover:text-primary","contrast-more:text-primary","contrast-more:hover:text-primary-strong","sidebar-list-line:ml-px","hover:bg-primary-hover","theme-muted:hover:bg-primary-active","[html.sidebar-filled.theme-bold.tint_&]:hover:bg-primary-active","theme-gradient:hover:bg-primary-active","tint:font-semibold","contrast-more:font-semibold","sidebar-list-default:border-tint"]),children:[e.tag?(0,r.jsx)("span",{className:"-mt-0.5 openapi-method !text-xs openapi-method-".concat(e.tag.toLowerCase()),children:e.tag}):null,(0,r.jsx)("span",{className:(0,n.P)(e.deprecated&&["line-through","opacity-50","contrast-more:opacity-60"]),children:e.title})]})]},e.id))})}},41341:(e,t,i)=>{"use strict";i.d(t,{PreservePageLayout:()=>s});var r=i(7620);function s(e){let{asFullWidth:t}=e;return r.useLayoutEffect(()=>{let e=document.querySelector("header");e&&(t?e.classList.add("site-full-width"):e.classList.remove("site-full-width"))},[t]),null}},64902:()=>{},73321:(e,t,i)=>{"use strict";i.d(t,{AIActionsDropdown:()=>j});var r=i(54568),s=i(40195);function l(e){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 320",...e,children:[(0,r.jsx)("title",{children:"ChatGPT"}),(0,r.jsx)("path",{d:"m297.06 130.97c7.26-21.79 4.76-45.66-6.85-65.48-17.46-30.4-52.56-46.04-86.84-38.68-15.25-17.18-37.16-26.95-60.13-26.81-35.04-.08-66.13 22.48-76.91 55.82-22.51 4.61-41.94 18.7-53.31 38.67-17.59 30.32-13.58 68.54 9.92 94.54-7.26 21.79-4.76 45.66 6.85 65.48 17.46 30.4 52.56 46.04 86.84 38.68 15.24 17.18 37.16 26.95 60.13 26.8 35.06.09 66.16-22.49 76.94-55.86 22.51-4.61 41.94-18.7 53.31-38.67 17.57-30.32 13.55-68.51-9.94-94.51zm-120.28 168.11c-14.03.02-27.62-4.89-38.39-13.88.49-.26 1.34-.73 1.89-1.07l63.72-36.8c3.26-1.85 5.26-5.32 5.24-9.07v-89.83l26.93 15.55c.29.14.48.42.52.74v74.39c-.04 33.08-26.83 59.9-59.91 59.97zm-128.84-55.03c-7.03-12.14-9.56-26.37-7.15-40.18.47.28 1.3.79 1.89 1.13l63.72 36.8c3.23 1.89 7.23 1.89 10.47 0l77.79-44.92v31.1c.02.32-.13.63-.38.83l-64.41 37.19c-28.69 16.52-65.33 6.7-81.92-21.95zm-16.77-139.09c7-12.16 18.05-21.46 31.21-26.29 0 .55-.03 1.52-.03 2.2v73.61c-.02 3.74 1.98 7.21 5.23 9.06l77.79 44.91-26.93 15.55c-.27.18-.61.21-.91.08l-64.42-37.22c-28.63-16.58-38.45-53.21-21.95-81.89zm221.26 51.49-77.79-44.92 26.93-15.54c.27-.18.61-.21.91-.08l64.42 37.19c28.68 16.57 38.51 53.26 21.94 81.94-7.01 12.14-18.05 21.44-31.2 26.28v-75.81c.03-3.74-1.96-7.2-5.2-9.06zm26.8-40.34c-.47-.29-1.3-.79-1.89-1.13l-63.72-36.8c-3.23-1.89-7.23-1.89-10.47 0l-77.79 44.92v-31.1c-.02-.32.13-.63.38-.83l64.41-37.16c28.69-16.55 65.37-6.7 81.91 22 6.99 12.12 9.52 26.31 7.15 40.1zm-168.51 55.43-26.94-15.55c-.29-.14-.48-.42-.52-.74v-74.39c.02-33.12 26.89-59.96 60.01-59.94 14.01 0 27.57 4.92 38.34 13.88-.49.26-1.33.73-1.89 1.07l-63.72 36.8c-3.26 1.85-5.26 5.31-5.24 9.06l-.04 89.79zm14.63-31.54 34.65-20.01 34.65 20v40.01l-34.65 20-34.65-20z"})]})}function a(e){return(0,r.jsxs)("svg",{viewBox:"0 0 256 257",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",...e,children:[(0,r.jsx)("title",{children:"Claude"}),(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M50.2278481,170.321013 L100.585316,142.063797 L101.427848,139.601013 L100.585316,138.24 L98.1225316,138.24 L89.6972152,137.721519 L60.921519,136.943797 L35.9696203,135.906835 L11.795443,134.610633 L5.70329114,133.31443 L0,125.796456 L0.583291139,122.037468 L5.70329114,118.602532 L13.0268354,119.250633 L29.2293671,120.352405 L53.5331646,122.037468 L71.161519,123.07443 L97.28,125.796456 L101.427848,125.796456 L102.011139,124.111392 L100.585316,123.07443 L99.4835443,122.037468 L74.3372152,104.992405 L47.116962,86.9751899 L32.8587342,76.6055696 L25.1463291,71.3559494 L21.2577215,66.4303797 L19.5726582,55.6718987 L26.5721519,47.9594937 L35.9696203,48.6075949 L38.3675949,49.2556962 L47.8946835,56.5792405 L68.2450633,72.3281013 L94.8172152,91.9007595 L98.7058228,95.1412658 L100.261266,94.0394937 L100.455696,93.2617722 L98.7058228,90.3453165 L84.2531646,64.2268354 L68.8283544,37.6546835 L61.958481,26.636962 L60.1437975,20.0263291 C59.4956962,17.3043038 59.0420253,15.0359494 59.0420253,12.2491139 L67.0136709,1.42582278 L71.4207595,-1.42108547e-14 L82.0496203,1.42582278 L86.521519,5.31443038 L93.1321519,20.4151899 L103.825823,44.2005063 L120.417215,76.5407595 L125.277975,86.1326582 L127.87038,95.0116456 L128.842532,97.7336709 L130.527595,97.7336709 L130.527595,96.1782278 L131.888608,77.9665823 L134.416203,55.6070886 L136.878987,26.8313924 L137.721519,18.7301266 L141.739747,9.00860759 L149.711392,3.75898734 L155.933165,6.74025316 L161.053165,14.0637975 L160.340253,18.7949367 L157.294177,38.5620253 L151.331646,69.5412658 L147.443038,90.2805063 L149.711392,90.2805063 L152.303797,87.6881013 L162.803038,73.7539241 L180.431392,51.718481 L188.208608,42.9691139 L197.282025,33.3124051 L203.114937,28.7108861 L214.132658,28.7108861 L222.233924,40.7655696 L218.604557,53.2091139 L207.262785,67.596962 L197.865316,79.7812658 L184.38481,97.9281013 L175.959494,112.44557 L176.737215,113.612152 L178.746329,113.417722 L209.207089,106.936709 L225.668861,103.955443 L245.306329,100.585316 L254.185316,104.733165 L255.157468,108.945823 L251.657722,117.56557 L230.659241,122.75038 L206.031392,127.675949 L169.348861,136.360506 L168.89519,136.684557 L169.413671,137.332658 L185.940253,138.888101 L193.004557,139.276962 L210.308861,139.276962 L242.519494,141.674937 L250.94481,147.248608 L256,154.053671 L255.157468,159.238481 L242.195443,165.849114 L224.696709,161.701266 L183.866329,151.979747 L169.867342,148.48 L167.923038,148.48 L167.923038,149.646582 L179.588861,161.053165 L200.976203,180.366582 L227.742785,205.253671 L229.103797,211.410633 L225.668861,216.271392 L222.039494,215.752911 L198.513418,198.059747 L189.44,190.088101 L168.89519,172.783797 L167.534177,172.783797 L167.534177,174.598481 L172.265316,181.533165 L197.282025,219.123038 L198.578228,230.659241 L196.763544,234.418228 L190.282532,236.686582 L183.153418,235.39038 L168.506329,214.84557 L153.40557,191.708354 L141.221266,170.969114 L139.730633,171.811646 L132.536709,249.259747 L129.166582,253.213165 L121.389367,256.19443 L114.908354,251.268861 L111.473418,243.297215 L114.908354,227.548354 L119.056203,207.003544 L122.426329,190.671392 L125.472405,170.385823 L127.287089,163.64557 L127.157468,163.191899 L125.666835,163.386329 L110.371646,184.38481 L87.1048101,215.817722 L68.6987342,235.52 L64.2916456,237.269873 L56.6440506,233.316456 L57.356962,226.252152 L61.6344304,219.96557 L87.1048101,187.560506 L102.46481,167.469367 L112.380759,155.868354 L112.315949,154.183291 L111.732658,154.183291 L44.0708861,198.124557 L32.0162025,199.68 L26.8313924,194.819241 L27.4794937,186.847595 L29.9422785,184.25519 L50.2926582,170.256203 L50.2278481,170.321013 Z",fill:"currentColor"})})]})}function n(e){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 471 289.85",...e,children:[(0,r.jsx)("title",{children:"Markdown"}),(0,r.jsx)("path",{d:"M437,289.85H34a34,34,0,0,1-34-34V34A34,34,0,0,1,34,0H437a34,34,0,0,1,34,34V255.88A34,34,0,0,1,437,289.85ZM34,22.64A11.34,11.34,0,0,0,22.64,34V255.88A11.34,11.34,0,0,0,34,267.2H437a11.34,11.34,0,0,0,11.33-11.32V34A11.34,11.34,0,0,0,437,22.64Z"}),(0,r.jsx)("path",{d:"M67.93,221.91v-154h45.29l45.29,56.61L203.8,67.93h45.29v154H203.8V133.6l-45.29,56.61L113.22,133.6v88.31Zm283.06,0-67.94-74.72h45.29V67.93h45.29v79.26h45.29Z"})]})}var o=i(99507),c=i(90983),d=i(4093),h=i(88118),u=i(86424),m=i(64824);class p extends Map{#e=0;#t=new Map;#i=new Map;#r;#s;#l;constructor(e={}){if(super(),!(e.maxSize&&e.maxSize>0))throw TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw TypeError("`maxAge` must be a number greater than 0");this.#r=e.maxSize,this.#s=e.maxAge||Number.POSITIVE_INFINITY,this.#l=e.onEviction}get __oldCache(){return this.#i}#a(e){if("function"==typeof this.#l)for(let[t,i]of e)this.#l(t,i.value)}#n(e,t){return!!("number"==typeof t.expiry&&t.expiry<=Date.now())&&("function"==typeof this.#l&&this.#l(e,t.value),this.delete(e))}#o(e,t){if(!1===this.#n(e,t))return t.value}#c(e,t){return t.expiry?this.#o(e,t):t.value}#d(e,t){let i=t.get(e);return this.#c(e,i)}#h(e,t){this.#t.set(e,t),this.#e++,this.#e>=this.#r&&(this.#e=0,this.#a(this.#i),this.#i=this.#t,this.#t=new Map)}#u(e,t){this.#i.delete(e),this.#h(e,t)}*#m(){for(let e of this.#i){let[t,i]=e;this.#t.has(t)||!1===this.#n(t,i)&&(yield e)}for(let e of this.#t){let[t,i]=e;!1===this.#n(t,i)&&(yield e)}}get(e){if(this.#t.has(e)){let t=this.#t.get(e);return this.#c(e,t)}if(this.#i.has(e)){let t=this.#i.get(e);if(!1===this.#n(e,t))return this.#u(e,t),t.value}}set(e,t,{maxAge:i=this.#s}={}){let r="number"==typeof i&&i!==Number.POSITIVE_INFINITY?Date.now()+i:void 0;return this.#t.has(e)?this.#t.set(e,{value:t,expiry:r}):this.#h(e,{value:t,expiry:r}),this}has(e){return this.#t.has(e)?!this.#n(e,this.#t.get(e)):!!this.#i.has(e)&&!this.#n(e,this.#i.get(e))}peek(e){return this.#t.has(e)?this.#d(e,this.#t):this.#i.has(e)?this.#d(e,this.#i):void 0}delete(e){let t=this.#t.delete(e);return t&&this.#e--,this.#i.delete(e)||t}clear(){this.#t.clear(),this.#i.clear(),this.#e=0}resize(e){if(!(e&&e>0))throw TypeError("`maxSize` must be a number greater than 0");let t=[...this.#m()],i=t.length-e;i<0?(this.#t=new Map(t),this.#i=new Map,this.#e=t.length):(i>0&&this.#a(t.slice(0,i)),this.#i=new Map(t.slice(i)),this.#t=new Map,this.#e=0),this.#r=e}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.#t){let[t,i]=e;!1===this.#n(t,i)&&(yield[t,i.value])}for(let e of this.#i){let[t,i]=e;this.#t.has(t)||!1===this.#n(t,i)&&(yield[t,i.value])}}*entriesDescending(){let e=[...this.#t];for(let t=e.length-1;t>=0;--t){let[i,r]=e[t];!1===this.#n(i,r)&&(yield[i,r.value])}e=[...this.#i];for(let t=e.length-1;t>=0;--t){let[i,r]=e[t];this.#t.has(i)||!1===this.#n(i,r)&&(yield[i,r.value])}}*entriesAscending(){for(let[e,t]of this.#m())yield[e,t.value]}get size(){if(!this.#e)return this.#i.size;let e=0;for(let t of this.#i.keys())!this.#t.has(t)&&e++;return Math.min(this.#e+e,this.#r)}get maxSize(){return this.#r}entries(){return this.entriesAscending()}forEach(e,t=this){for(let[i,r]of this.entriesAscending())e.call(t,r,i,this)}get[Symbol.toStringTag](){return"QuickLRU"}toString(){return`QuickLRU(${this.size}/${this.maxSize})`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}function x(e){let{type:t,trademark:i}=e,l=(0,s.C)(),a=(0,s.J)(),n=(0,h.ok)();return(0,r.jsx)(w,{type:t,icon:(0,r.jsx)(o.yQ,{state:a.loading?"thinking":"default",trademark:i}),label:(0,h.si)(n,"ai_chat_ask",(0,o.YZ)(i)),shortLabel:(0,h.si)(n,"ask"),description:(0,h.si)(n,"ai_chat_ask_about_page",(0,o.YZ)(i)),disabled:a.loading,onClick:()=>{a.opened||l.open(),l.postMessage({message:(0,h.si)(n,"ai_chat_suggested_questions_about_this_page")})}})}let f=(0,i(13368).v)(e=>{let t=null;return{copied:!1,loading:!1,setLoading:t=>e({loading:t}),copy:async(i,r)=>{let{onSuccess:s}=r||{};t&&clearTimeout(t),await navigator.clipboard.writeText(i),e({copied:!0}),t=setTimeout(()=>{e({copied:!1}),null==s||s(),t=null},1500)}}}),g=new p({maxSize:10});function v(e){let{markdownPageUrl:t,type:i,isDefaultAction:s}=e,l=(0,h.ok)(),a=(0,d.useDropdownMenuClose)(),{copied:n,loading:o,setLoading:c,copy:u}=f(),m=async()=>{c(!0);let e=await fetch(t).then(e=>e.text());return g.set(t,e),c(!1),e},p=async e=>{s||e.preventDefault(),u(g.get(t)||await m(),{onSuccess:()=>{"dropdown-menu-item"!==i||s||a()}})};return(0,r.jsx)(w,{type:i,icon:n?"check":"copy",label:n?(0,h.si)(l,"code_copied"):(0,h.si)(l,"copy_page"),shortLabel:n?(0,h.si)(l,"code_copied"):(0,h.si)(l,"code_copy"),description:(0,h.si)(l,"copy_page_markdown"),onClick:p,loading:o})}function L(e){let{markdownPageUrl:t,type:i}=e,s=(0,h.ok)();return(0,r.jsx)(w,{type:i,icon:(0,r.jsx)(n,{className:"size-4 fill-current"}),label:(0,h.si)(s,"view_page_markdown"),description:(0,h.si)(s,"view_page_plaintext"),href:t})}function b(e){let{provider:t,url:i,type:s}=e,n=(0,h.ok)(),o="chatgpt"===t?"ChatGPT":"Claude";return(0,r.jsx)(w,{type:s,icon:"chatgpt"===t?(0,r.jsx)(l,{className:"size-3.5 fill-current"}):(0,r.jsx)(a,{className:"size-3.5 fill-current"}),label:(0,h.si)(n,"open_in",o),shortLabel:o,description:(0,h.si)(n,"ai_chat_ask_about_page",o),href:function(e,t,i){let r=encodeURIComponent((0,h.si)(i,"open_in_llms_pre_prompt",t));switch(e){case"chatgpt":return"https://chat.openai.com/?q=".concat(r);case"claude":return"https://claude.ai/new?q=".concat(r);default:(0,m.Ay)(e)}}(t,i,n)})}function w(e){let{type:t,icon:i,label:s,shortLabel:l,onClick:a,href:n,description:o,disabled:h,loading:m}=e;return"button"===t?(0,r.jsx)(c.Button,{icon:m?(0,r.jsx)(u.In,{icon:"spinner-third",className:"size-4 animate-spin"}):i,size:"xsmall",variant:"secondary",label:l||s,className:"hover:!scale-100 !shadow-none !rounded-r-none hover:!translate-y-0 border-r-0 bg-tint-base text-sm",onClick:a,href:n,target:n?"_blank":void 0,disabled:h||m}):(0,r.jsxs)(d.DropdownMenuItem,{className:"flex items-stretch gap-2.5 p-2",href:n,target:"_blank",onClick:a,disabled:h||m,children:[(0,r.jsx)("div",{className:"flex size-5 items-center justify-center text-tint",children:m?(0,r.jsx)(u.In,{icon:"spinner-third",className:"size-4 animate-spin"}):i?"string"==typeof i?(0,r.jsx)(u.In,{icon:i,iconStyle:u.pO.Regular,className:"size-4 fill-transparent stroke-current"}):i:null}),(0,r.jsxs)("div",{className:"flex flex-1 flex-col gap-0.5",children:[(0,r.jsxs)("span",{className:"flex items-center gap-2 text-tint-strong",children:[(0,r.jsx)("span",{className:"truncate font-medium text-sm",children:s}),n?(0,r.jsx)(u.In,{icon:"arrow-up-right",className:"size-3"}):null]}),o&&(0,r.jsx)("span",{className:"truncate text-tint text-xs",children:o})]})]})}var y=i(7620);function j(e){let t=(0,y.useRef)(null);return(0,r.jsxs)("div",{ref:t,className:"flex h-fit items-stretch justify-start",children:[(0,r.jsx)(_,{...e}),(0,r.jsx)(d.DropdownMenu,{align:"end",className:"!min-w-60 max-w-max",button:(0,r.jsx)(c.Button,{icon:(0,r.jsx)(u.In,{icon:"chevron-down",className:"size-3 transition-transform group-data-[state=open]/button:rotate-180"}),iconOnly:!0,size:"xsmall",variant:"secondary",className:"hover:!scale-100 hover:!translate-y-0 !shadow-none !rounded-l-none bg-tint-base text-sm"}),children:(0,r.jsx)(C,{...e})})]})}function C(e){let{markdownPageUrl:t,withAIChat:i,trademark:s,actions:l}=e;return(0,r.jsxs)(r.Fragment,{children:[i?(0,r.jsx)(x,{trademark:s,type:"dropdown-menu-item"}):null,l.markdown?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v,{isDefaultAction:!i,markdownPageUrl:t,type:"dropdown-menu-item"}),(0,r.jsx)(L,{markdownPageUrl:t,type:"dropdown-menu-item"})]}):null,l.externalAI?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b,{provider:"chatgpt",url:t,type:"dropdown-menu-item"}),(0,r.jsx)(b,{provider:"claude",url:t,type:"dropdown-menu-item"})]}):null]})}function _(e){let{markdownPageUrl:t,withAIChat:i,trademark:s,actions:l}=e;return i?(0,r.jsx)(x,{trademark:s,type:"button"}):l.markdown?(0,r.jsx)(v,{isDefaultAction:!i,markdownPageUrl:t,type:"button"}):l.externalAI?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(b,{provider:"chatgpt",url:t,type:"button"})}):void 0}},75555:(e,t,i)=>{"use strict";i.r(t),i.d(t,{PageContext:()=>l,PageContextProvider:()=>a,usePageContext:()=>n});var r=i(54568),s=i(7620);let l=s.createContext(null);function a(e){let{pageId:t,spaceId:i,title:a,children:n}=e,o=s.useMemo(()=>({pageId:t,spaceId:i,title:a}),[t,i,a]);return(0,r.jsx)(l.Provider,{value:o,children:n})}function n(){let e=s.useContext(l);if(!e)throw Error("usePageContext must be used within a PageContextProvider");return e}},90654:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});let r={src:"https://static-2c.gitbook.com/_next/static/media/default-page-cover.a2ccd7e9.svg",height:1081,width:1920,blurWidth:0,blurHeight:0}},91797:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Ad:()=>m});var r=i(54568),s=i(5772),l=i(7620),a=i(88118),n=i(98743),o=i(24578);let c="undefined"!=typeof IntersectionObserver;var d=i(54217),h=i(25316);let u=(0,h.createServerReference)("404c6ac9faa99bd01db6c0e96a0edb9730d9357c7e",h.callServer,void 0,h.findSourceMapURL,"renderAd");function m(e){let{zoneId:t,spaceId:i,placement:a,ignore:d,siteAdsStatus:h,style:m,mode:x="auto"}=e,f=l.useRef(null),[g,v]=l.useState(void 0),L=(0,o.jt)();l.useEffect(()=>{(null==g?void 0:g.insightsAd)&&L({type:"ad_display",ad:g.insightsAd})},[g,L]);let b=function(e,t){let[i,r]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{if(!c)return void r(!0);if(!e.current)return;let i=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&(r(!0),i.disconnect())},{root:null==t?void 0:t.root,rootMargin:null==t?void 0:t.rootMargin,threshold:null==t?void 0:t.threshold});return i.observe(e.current),()=>i.disconnect()},[e,null==t?void 0:t.root,null==t?void 0:t.rootMargin,null==t?void 0:t.threshold]),i}(f,{threshold:.1});return l.useEffect(()=>{if(!b)return;let e=!1,i=new URL(window.location.href).searchParams.get("ads_preview"),r=!!i,l=r?"CVAIKKQM":t,n="placeholder"===i||h&&(h===s.ck.Pending||h===s.ck.InReview);if(l||n)return(async()=>{let t=n?await u({source:"placeholder"}):l?await u({placement:a,ignore:d||r,zoneId:l,mode:x,source:"live"}):void 0;!e&&t&&v(t)})(),()=>{e=!0}},[b,t,d,a,x,h]),(0,r.jsx)("div",{ref:f,className:(0,n.P)(m),"data-visual-test":"removed",children:g?(0,r.jsxs)(r.Fragment,{children:[g.children,(0,r.jsx)(p,{spaceId:i})]}):null})}function p(e){let{spaceId:t}=e,i=(0,a.ok)(),l=new URL("https://www.gitbook.com");return l.searchParams.set("utm_source","content"),l.searchParams.set("utm_medium","sponsored-by-gitbook"),l.searchParams.set("utm_campaign",t),(0,r.jsx)("p",{className:(0,n.P)("mt-2","mr-2","text-xs","text-right","text-tint-subtle"),children:(0,r.jsx)(d.N_,{target:"_blank",href:l.toString(),className:(0,n.P)("hover:underline"),insights:{type:"trademark_click",placement:s.H9.Ad},children:(0,a.t)(i,"sponsored_via_gitbook")})})}},99447:(e,t,i)=>{"use strict";i.d(t,{PageCoverImage:()=>c});var r=i(54568),s=i(98743),l=i(7620),a=i(60357);let n={width:1990,height:480};function o(e,t,i){if(!i.size||0===t)return"50%";let r=e.height&&e.width?Math.max(e.width/i.size.width,e.height/i.size.height):1,s=i.size?i.size.height*r:n.height,l=e.height&&i.size?(e.height-s)/2+t*r:t;return"".concat(l,"px")}function c(e){let{imgs:t,y:i}=e,c=(0,l.useRef)(null),d=(0,a.wY)({ref:c});return(0,r.jsxs)("div",{className:"h-full w-full overflow-hidden",ref:c,children:[(0,r.jsx)("img",{src:t.light.src,fetchPriority:"high",alt:"Page cover",className:(0,s.P)("w-full","object-cover",t.dark?"dark:hidden":""),style:{aspectRatio:"".concat(n.width,"/").concat(n.height),objectPosition:"50% ".concat(o(d,i,t.light))}}),t.dark&&(0,r.jsx)("img",{src:t.dark.src,fetchPriority:"low",alt:"Page cover",className:(0,s.P)("w-full","object-cover","dark:inline","hidden"),style:{aspectRatio:"".concat(n.width,"/").concat(n.height),objectPosition:"50% ".concat(o(d,i,t.dark))}})]})}}}]);