(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,309980,e=>{"use strict";e.s(["useLivePreviewPageMetadata",()=>n]);var t=e.i(590280),r=e.i(803333),a=e.i(271645);function n(e){let n=(0,r.useCurrentPath)(),{isLivePreview:s,liveMetadata:i}=(0,a.useContext)(t.LivePreviewContext);return(0,a.useMemo)(()=>s?i.get(n)??e:e,[n,s,i,e])}},228341,e=>{"use strict";e.s(["PageModeUpdater",()=>n]);var t=e.i(237978),r=e.i(769728),a=e.i(309980);function n({pageMetadata:e}){let n=(0,a.useLivePreviewPageMetadata)(e),s=(0,t.useEffectivePageMetadata)(n).mode??"none";return(0,r.useIsomorphicLayoutEffect)(()=>{document.documentElement.setAttribute("data-page-mode",s)},[s]),null}},114793,e=>{"use strict";e.s(["PageProvider",()=>x],114793);var t=e.i(843476),r=e.i(590280),a=e.i(343590),n=e.i(237978),s=e.i(803333),i=e.i(769728),l=e.i(28760),o=e.i(42143),d=e.i(773626),c=e.i(271645),u=e.i(91557);function x({value:e,children:r,livePreviewPath:a}){return void 0!==a?(0,t.jsx)(g,{value:e,livePreviewPath:a,children:r}):(0,t.jsx)(m,{value:e,children:r})}function m({value:e,children:r}){let{setPageMetadata:o,setContextualStarterQuestions:x}=(0,c.useContext)(a.NavigationContext),{pageModeOverride:m,setOriginalPageMode:g}=(0,c.useContext)(n.PageModeOverrideContext);(0,i.useIsomorphicLayoutEffect)(()=>{g(e.pageMetadata.mode)},[e.pageMetadata.mode,g]);let h=(0,c.useMemo)(()=>void 0===m?e:{...e,pageMetadata:{...e.pageMetadata,mode:m||void 0}},[e,m]),p=function(e){let{relatedPages:t,relatedPagesConfig:r,pageMetadata:a,isContentLoading:n}=e,{isFetchingUserInfo:i}=(0,c.useContext)(u.AuthContext),o=(0,s.useCurrentPath)(),{search:x}=(0,l.useSearch)(),m=a.title??o,g=`${o}:${m}`,[h,p]=(0,c.useState)(),f=void 0===t&&r?.mode==="automatic"&&!1!==r.enabled&&!1!==a.related&&!Array.isArray(a.related);return(0,c.useEffect)(()=>{if(!f||n||i)return;let e=!0;return x(m).then(t=>{e&&t!==l.SEARCH_ABORTED&&p({requestKey:g,pages:function(e,t,r){let a=e.filter(e=>!(0,d.isEqualIgnoringLeadingSlash)(e.page,t)).map(e=>{let t=Array.isArray(e.metadata?.breadcrumbs)?e.metadata.breadcrumbs.filter(e=>"string"==typeof e):void 0;return{title:t?.at(-1)??e.header,link:e.page,breadcrumbs:t,icon:e.metadata?.icon}}).filter(e=>e.link&&e.title),n=new Set;return a.filter(e=>!n.has(e.title)&&(n.add(e.title),!0)).slice(0,r)}(t.results,o,r.limit??5)})}).catch(()=>void 0),()=>{e=!1}},[o,n,i,m,r?.limit,g,x,f]),t??(f&&h?.requestKey===g?h.pages:void 0)}(h),f=(0,c.useMemo)(()=>({...h,relatedPages:p}),[h,p]);return(0,c.useEffect)(()=>{o(h.pageMetadata),x(h.contextualStarterQuestions)},[h.pageMetadata,h.contextualStarterQuestions,o,x]),(0,t.jsx)(u.PageContext.Provider,{value:f,children:r})}function g({value:e,children:a,livePreviewPath:n}){let{basePath:s="",isLivePreview:i,liveMetadata:l}=(0,c.useContext)(r.LivePreviewContext),d=(0,c.useMemo)(()=>(0,o.normalizeLivePreviewPath)(n,s),[s,n]),u=(0,c.useMemo)(()=>{if(!i)return e;let t=l.get(d);return t?{...e,pageMetadata:{...e.pageMetadata,...t}}:e},[i,l,d,e]);return(0,t.jsx)(m,{value:u,children:a})}},135746,211682,e=>{"use strict";e.s(["MoonIcon",()=>r],135746);var t=e.i(930733);let r=(0,t.default)("MoonIcon",[["path",{d:"M13 11.75C9.548 11.75 6.75 8.95201 6.75 5.50001C6.75 4.14801 7.183 2.90101 7.912 1.87801C4.548 2.50601 2 5.45301 2 9.00001C2 13.004 5.246 16.25 9.25 16.25C12.622 16.25 15.448 13.944 16.259 10.826C15.309 11.409 14.196 11.75 13 11.75Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined");e.s(["SunIcon",()=>a],211682);let a=(0,t.default)("SunIcon",[["path",{d:"M9 1.25V2.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M14.48 3.52002L13.773 4.22702",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M16.75 9H15.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M14.48 14.4799L13.773 13.7729",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M9 16.75V15.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M3.52 14.4799L4.227 13.7729",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M1.25 9H2.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M3.52 3.52002L4.227 4.22702",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M9 13.25C11.3472 13.25 13.25 11.3472 13.25 9C13.25 6.65279 11.3472 4.75 9 4.75C6.65279 4.75 4.75 6.65279 4.75 9C4.75 11.3472 6.65279 13.25 9 13.25Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined")},992427,(e,t,r)=>{t.exports=function(e,t,r,a){var n=-1,s=null==e?0:e.length;for(a&&s&&(r=e[++n]);++n{t.exports=function(e){return function(t){return null==e?void 0:e[t]}}},968252,(e,t,r)=>{t.exports=e.r(231081)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"})},573086,(e,t,r)=>{var a=e.r(968252),n=e.r(702922),s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(e){return(e=n(e))&&e.replace(s,a).replace(i,"")}},540253,(e,t,r)=>{var a=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(e){return e.match(a)||[]}},174828,(e,t,r)=>{var a=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(e){return a.test(e)}},81144,(e,t,r)=>{var a="\ud800-\udfff",n="\\u2700-\\u27bf",s="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",l="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",o="['’]",d="["+l+"]",c="["+s+"]",u="[^"+a+l+"\\d+"+n+s+i+"]",x="(?:\ud83c[\udde6-\uddff]){2}",m="[\ud800-\udbff][\udc00-\udfff]",g="["+i+"]",h="(?:"+c+"|"+u+")",p="(?:"+g+"|"+u+")",f="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",y="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",b="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",v="[\\ufe0e\\ufe0f]?",j="(?:\\u200d(?:"+["[^"+a+"]",x,m].join("|")+")"+v+b+")*",k="(?:"+["["+n+"]",x,m].join("|")+")"+(v+b+j),w=RegExp([g+"?"+c+"+"+f+"(?="+[d,g,"$"].join("|")+")",p+"+"+y+"(?="+[d,g+h,"$"].join("|")+")",g+"?"+h+"+"+f,g+"+"+y,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",k].join("|"),"g");t.exports=function(e){return e.match(w)||[]}},129548,(e,t,r)=>{var a=e.r(540253),n=e.r(174828),s=e.r(702922),i=e.r(81144);t.exports=function(e,t,r){return(e=s(e),void 0===(t=r?void 0:t))?n(e)?i(e):a(e):e.match(t)||[]}},876168,(e,t,r)=>{var a=e.r(992427),n=e.r(573086),s=e.r(129548),i=RegExp("['’]","g");t.exports=function(e){return function(t){return a(s(n(t).replace(i,"")),e,"")}}},229821,(e,t,r)=>{var a=e.r(284357),n=e.r(979589),s=e.r(34170),i=e.r(702922);t.exports=function(e){return function(t){var r=n(t=i(t))?s(t):void 0,l=r?r[0]:t.charAt(0),o=r?a(r,1).join(""):t.slice(1);return l[e]()+o}}},232241,(e,t,r)=>{t.exports=e.r(229821)("toUpperCase")},797341,(e,t,r)=>{var a=e.r(876168),n=e.r(232241);t.exports=a(function(e,t,r){return e+(r?" ":"")+n(t)})},263446,743166,22926,983357,507595,379291,767487,293664,836653,946194,404491,29431,330329,689907,154601,528106,574546,94548,834598,346211,414245,258202,119907,696930,764368,314783,86507,265282,84611,428103,243677,e=>{"use strict";e.s(["AdvancedFooter",()=>eM,"Footer",()=>eL],263446);var t=e.i(843476),r=e.i(91557),a=e.i(343590),n=e.i(206558),s=e.i(865420),i=e.i(271645);function l(){let{docsConfig:e}=(0,i.useContext)(r.DocsConfigContext),{selectedLocale:t}=(0,i.useContext)(a.NavigationContext);return(0,i.useMemo)(()=>{if(t&&e&&"languages"in e.navigation){let r=e.navigation.languages.find(e=>e.language===t);if(r?.footer)return r.footer}return e?.footer},[e,t])}var o=e.i(780578),d=e.i(111048),c=e.i(476781);let u=({className:e})=>(0,t.jsxs)("svg",{width:"1274",height:"367",viewBox:"0 0 1274 367",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[(0,t.jsx)("path",{d:"M1154.38 366.038H1097.86L1137.69 276.14L1058.04 97.1046H1114.93L1161.35 209.337C1162.97 213.26 1168.53 213.253 1170.14 209.325L1216.21 97.1046H1273.49L1154.38 366.038Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M982.714 286.761V142.622H944.403V97.1041H982.714V72.4488C982.714 49.9429 989.542 32.2416 1003.2 19.345C1016.85 6.44832 1034.17 0 1055.16 0C1068.06 0 1079.06 1.39081 1088.16 4.17244V50.0693C1082.09 47.7934 1075.01 46.6555 1066.92 46.6555C1055.54 46.6555 1047.32 49.1843 1042.27 54.2418C1037.21 59.0464 1034.68 67.2648 1034.68 78.8971V97.1041H1088.16V142.622H1034.68V286.761H982.714Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M897.916 66.0005C889.066 66.0005 881.353 62.8395 874.778 56.5176C868.203 49.9429 864.916 42.1037 864.916 33.0002C864.916 23.8967 868.203 16.184 874.778 9.86215C881.353 3.28738 889.066 0 897.916 0C907.273 0 915.112 3.28738 921.434 9.86215C928.008 16.184 931.296 23.8967 931.296 33.0002C931.296 42.1037 928.008 49.9429 921.434 56.5176C915.112 62.8395 907.273 66.0005 897.916 66.0005ZM872.123 286.761V97.1041H924.089V286.761H872.123Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M781.638 286.761V2.27609H833.604V286.761H781.638Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M722.934 289.037C701.693 289.037 684.244 283.221 670.589 271.588C657.187 259.703 650.485 242.634 650.485 220.381V142.622H612.175V97.1044H650.485V44.3799H702.451V97.1044H755.934V142.622H702.451V210.14C702.451 221.772 704.98 230.117 710.038 235.174C715.095 239.979 723.313 242.381 734.693 242.381C742.785 242.381 749.865 241.243 755.934 238.967V284.864C746.831 287.646 735.831 289.037 722.934 289.037Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M417.674 286.761V97.1041H469.64V110.967C469.64 113.311 472.83 114.347 474.382 112.591C485.967 99.4848 502.467 92.9317 523.881 92.9317C546.64 92.9317 564.468 100.518 577.365 115.69C590.514 130.61 597.089 150.587 597.089 175.622V286.761H545.123V184.346C545.123 170.438 542.215 159.691 536.399 152.105C530.583 144.265 522.364 140.346 511.743 140.346C499.1 140.346 488.858 144.898 481.019 154.001C473.433 163.105 469.64 176.507 469.64 194.208V286.761H417.674Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M352.981 66.0005C344.13 66.0005 336.417 62.8395 329.843 56.5176C323.268 49.9429 319.98 42.1037 319.98 33.0002C319.98 23.8967 323.268 16.184 329.843 9.86215C336.417 3.28738 344.13 0 352.981 0C362.337 0 370.176 3.28738 376.498 9.86215C383.073 16.184 386.36 23.8967 386.36 33.0002C386.36 42.1037 383.073 49.9429 376.498 56.5176C370.176 62.8395 362.337 66.0005 352.981 66.0005ZM327.187 286.761V97.1041H379.153V286.761H327.187Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M238.967 286.761V185.484C238.967 155.392 229.105 140.346 209.381 140.346C198.001 140.346 188.898 144.645 182.07 153.242C175.495 161.84 171.955 174.61 171.449 191.553V286.761H119.484V185.484C119.484 155.392 109.621 140.346 89.8972 140.346C78.2649 140.346 69.035 144.898 62.2073 154.001C55.3797 163.105 51.9659 176.507 51.9659 194.208V286.761H0V97.1041H51.9659V111.103C51.9659 113.435 55.1014 114.462 56.633 112.704C68.1136 99.5223 83.3741 92.9317 102.415 92.9317C127.436 92.9317 146.283 103.262 158.953 123.923C159.953 125.553 162.412 125.527 163.406 123.894C168.884 114.891 176.496 107.731 186.243 102.415C197.369 96.0926 208.622 92.9317 220.002 92.9317C242.507 92.9317 259.956 100.392 272.347 115.311C284.738 130.231 290.933 150.714 290.933 176.76V286.761H238.967Z",fill:"currentColor"})]});e.s(["NavLogo",()=>ec],743166),e.s(["Arrow",()=>A.MenuArrow,"Backdrop",()=>V.MenuBackdrop,"CheckboxItem",()=>Z.MenuCheckboxItem,"CheckboxItemIndicator",()=>E.MenuCheckboxItemIndicator,"Group",()=>T.MenuGroup,"GroupLabel",()=>P.MenuGroupLabel,"Item",()=>D.MenuItem,"LinkItem",()=>z.MenuLinkItem,"Popup",()=>H.MenuPopup,"Portal",()=>S.MenuPortal,"Positioner",()=>I.MenuPositioner,"RadioGroup",()=>F.MenuRadioGroup,"RadioItem",()=>_.MenuRadioItem,"RadioItemIndicator",()=>O.MenuRadioItemIndicator,"Root",()=>p,"Separator",()=>W.Separator,"SubmenuRoot",()=>R.MenuSubmenuRoot,"SubmenuTrigger",()=>B.MenuSubmenuTrigger,"Trigger",()=>M],422329),e.s([],340250),e.i(340250);var x=e.i(883977),m=e.i(239613),g=e.i(451512),h=e.i(978921);function p(e){let[r,a]=i.useState({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,x:0,y:0})}),n=i.useRef(null),s=i.useRef(null),l=i.useRef(null),o=i.useRef(null),d=i.useRef(!0),c=i.useRef(null),u=(0,x.useId)(),p=i.useMemo(()=>({anchor:r,setAnchor:a,actionsRef:l,backdropRef:n,internalBackdropRef:s,positionerRef:o,allowMouseUpTriggerRef:d,initialCursorPointRef:c,rootId:u}),[r,u]);return(0,t.jsx)(m.ContextMenuRootContext.Provider,{value:p,children:(0,t.jsx)(h.MenuRootContext.Provider,{value:void 0,children:(0,t.jsx)(g.Menu.Root,{...e})})})}e.i(247167);var f=e.i(574735),y=e.i(108868),b=e.i(439957),v=e.i(647554),j=e.i(157940),k=e.i(552245),w=e.i(675606),C=e.i(405005),N=e.i(56434),L=e.i(785545);let M=i.forwardRef(function(e,t){let{render:r,className:a,style:n,...s}=e,{setAnchor:l,actionsRef:o,internalBackdropRef:d,backdropRef:c,positionerRef:u,allowMouseUpTriggerRef:x,initialCursorPointRef:g,rootId:p}=(0,m.useContextMenuRootContext)(!1),{store:M}=(0,h.useMenuRootContext)(!1),V=M.useState("open"),S=M.useState("disabled"),I=i.useRef(null),H=i.useRef(null),A=(0,b.useTimeout)(),T=(0,b.useTimeout)(),P=i.useRef(!1),D=i.useRef(null);function Z(e,t,r){let a=r.type.startsWith("touch");g.current={x:e,y:t},l({getBoundingClientRect:()=>DOMRect.fromRect({width:10*!!a,height:10*!!a,x:e,y:t})}),P.current=!1,o.current?.setOpen(!0,(0,w.createChangeEventDetails)(N.REASONS.triggerPress,r)),T.start(500,()=>{P.current=!0})}function E(){A.clear(),H.current=null}return i.useEffect(()=>()=>{D.current?.abort()},[]),i.useEffect(()=>{let e=(0,y.ownerDocument)(I.current);return(0,f.addEventListener)(e,"contextmenu",function(e){if(S)return;let t=(0,v.getTarget)(e);((0,v.contains)(I.current,t)||(0,v.contains)(d.current,t)||(0,v.contains)(c.current,t))&&e.preventDefault()})},[c,S,d]),(0,k.useRenderElement)("div",e,{state:{open:V},ref:[I,t],props:[{onContextMenu:function(e){if(S)return;x.current=!0,(0,j.stopEvent)(e),Z(e.clientX,e.clientY,e.nativeEvent);let t=(0,y.ownerDocument)(I.current);D.current?.abort();let r=new AbortController;D.current=r,t.addEventListener("mouseup",e=>{if(x.current=!1,!P.current)return;T.clear(),P.current=!1;let t=(0,v.getTarget)(e);!(0,v.contains)(u.current,t)&&(p&&t&&(0,L.findRootOwnerId)(t)===p||o.current?.setOpen(!1,(0,w.createChangeEventDetails)(N.REASONS.cancelOpen,e)))},{once:!0,signal:r.signal})},onTouchStart:function(e){if(S||(x.current=!1,1!==e.touches.length))return void E();e.stopPropagation();let t=e.touches[0],r={x:t.clientX,y:t.clientY};H.current=r,A.start(500,()=>{Z(r.x,r.y,e.nativeEvent)})},onTouchMove:function(e){if(1!==e.touches.length)return void E();if(A.isStarted()&&H.current){let t=e.touches[0],r=Math.abs(t.clientX-H.current.x),a=Math.abs(t.clientY-H.current.y);(r>10||a>10)&&E()}},onTouchEnd:E,onTouchCancel:E,style:{WebkitTouchCallout:"none"}},s],stateAttributesMapping:C.pressableTriggerOpenStateMapping})});var V=e.i(389554),S=e.i(219712),I=e.i(82264),H=e.i(764270),A=e.i(382370),T=e.i(181194),P=e.i(801545),D=e.i(91384),Z=e.i(685996),E=e.i(371714),z=e.i(858307),F=e.i(862050),_=e.i(282593),O=e.i(105953),R=e.i(277450),B=e.i(583336),W=e.i(652225),$=e.i(422329),$=$,G=e.i(296548);let U=e=>(0,t.jsx)($.Root,{...e}),q=({className:e,...r})=>(0,t.jsx)($.Trigger,{className:(0,G.cn)("select-none",e),...r}),X=({className:e,...r})=>(0,t.jsx)($.Portal,{children:(0,t.jsx)($.Positioner,{className:"z-50 data-anchor-hidden:invisible",collisionPadding:16,children:(0,t.jsx)($.Popup,{style:{textRendering:"geometricPrecision"},className:(0,G.cn)("origin-(--transform-origin) shadow-xl dark:shadow-none shadow-gray-500/5 dark:shadow-gray-500/5 bg-background-light dark:bg-background-dark p-1 relative z-50 max-h-96 min-w-36 overflow-y-auto rounded-2xl border-standard","text-gray-950/55 dark:text-white/55","data-starting-style:opacity-0 data-starting-style:scale-95 data-ending-style:opacity-0 data-ending-style:scale-95","transition-[scale,opacity] duration-100 ease-out motion-reduce:transition-none",e),...r})})}),Y=({className:e,...r})=>(0,t.jsx)($.Item,{className:(0,G.cn)("flex items-center font-medium px-2.5 py-2 gap-3 text-sm rounded-xl group/context-menu-item relative w-full cursor-pointer select-none outline-0","hover:bg-background-dark/[0.03] dark:hover:bg-background-light/5 data-highlighted:bg-background-dark/[0.03] dark:data-highlighted:bg-background-light/5","data-disabled:pointer-events-none data-disabled:cursor-default data-disabled:opacity-50","text-gray-950/70 dark:text-white/65 hover:text-gray-950/85 dark:hover:text-white/85 data-highlighted:text-gray-950/95 dark:data-highlighted:text-white/95",e),...r});var K=e.i(590280),J=e.i(662862),Q=e.i(568258),ee=e.i(352350),et=e.i(961508),er=e.i(194838);function ea(e,t){if(null!==e.logo&&"object"==typeof e.logo&&"href"in e.logo&&e.logo.href?.trim())return e.logo.href;let r=e.navigation;if(t&&"object"==typeof r&&null!==r&&"languages"in r){let e=r.languages.find(e=>e.language===t),a=(e&&("href"in e&&e.href?e.href:(0,ee.getFirstPageFromNavConfig)(e)))??"/";return(0,et.isAbsoluteUrl)(a)?a:(0,er.optionallyAddLeadingSlash)(a)}return"/"}var en=e.i(560179),es=e.i(866285),ei=e.i(522016);function el({className:e}){let{docsConfig:a}=(0,i.useContext)(r.DocsConfigContext),{isLivePreview:n,getDocsConfigOverrides:s,liveMedia:l}=(0,i.useContext)(K.LivePreviewContext),o=s(),d=n&&o?.logo!==void 0?o.logo:a?.logo,u=n&&o?.name!==void 0?o.name:a?.name,x="w-auto h-7 relative object-contain shrink-0";if(d&&"object"==typeof d){let r=(0,K.resolveLivePreviewMediaSrc)({src:d.light,isLivePreview:n,liveMedia:l}),a=(0,K.resolveLivePreviewMediaSrc)({src:d.dark,isLivePreview:n,liveMedia:l});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("img",{className:(0,G.cn)(c.Classes.Logo,x,"block dark:hidden",e),src:r,alt:"light logo"}),(0,t.jsx)("img",{className:(0,G.cn)(c.Classes.Logo,x,"hidden dark:block",e),src:a,alt:"dark logo"})]})}if("string"==typeof d){let r=(0,K.resolveLivePreviewMediaSrc)({src:d,isLivePreview:n,liveMedia:l});return(0,t.jsx)("img",{className:(0,G.cn)(c.Classes.Logo,x,e),src:r,alt:"logo"})}return u?(0,t.jsx)("div",{className:(0,G.cn)(c.Classes.Logo,"inline-block text-2xl sm:text-3xl font-bold text-gray-900 tracking-tight dark:text-gray-200",e),children:u}):(0,t.jsx)(t.Fragment,{})}async function eo(e){try{return(await fetch(e,{method:"HEAD"})).ok}catch{return!1}}async function ed(e){let t;if(e.startsWith("/"))return!0;try{t=new URL(e)}catch{return!1}return"mintlify.s3.us-west-1.amazonaws.com"!==t.host&&("mintcdn.com"===t.host||"www.mintcdn.com"===t.host||eo(e))}let ec=({logoClassName:e,linkClassName:n})=>{let{docsConfig:s}=(0,i.useContext)(r.DocsConfigContext),{isLivePreview:l,getDocsConfigOverrides:o,liveMedia:d}=(0,i.useContext)(K.LivePreviewContext),{resolvedTheme:c}=(0,J.useTheme)(),{selectedLocale:u}=(0,i.useContext)(a.NavigationContext),x=o(),m=(0,i.useMemo)(()=>c??"light",[c]),g=s?l&&x?.logo?ea(x,u):ea(s,u):"/",h=l&&x?.logo!==void 0?x.logo:s?.logo,p=l&&x?.favicon!==void 0?x.favicon:s?.favicon,f=l&&x?.name!==void 0?x.name:s?.name,y="string"==typeof p?p:p?.[m],b="string"==typeof h?h:h?.[m],v=(0,K.resolveLivePreviewMediaSrc)({src:y,isLivePreview:l,liveMedia:d}),j=(0,K.resolveLivePreviewMediaSrc)({src:b,isLivePreview:l,liveMedia:d});async function k(e,t){try{let r=await (0,en.fetchMedia)(e);if(r instanceof Response)return void window.open(e,"_blank","noopener,noreferrer");let{blobUrl:a,ext:n}=r,s=document.createElement("a");s.href=a;let i=f?.toLowerCase().replace("developer docs","").replace("developer documentation","").replace("api reference","").replace(/\sdocs$/,"").replace(/\sdocumentation$/,"").trim();s.download=`${i?`${(0,es.default)(i)}-`:""}${t}.${n}`,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(a)}catch{window.open(e,"_blank","noopener,noreferrer")}}let[w,C]=(0,i.useState)(!1),[N,L]=(0,i.useState)(!1),[M,V]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=!1;return(async()=>{let[t,r]=await Promise.all([!!j&&ed(j),!!v&&ed(v)]),a=(0,en.canCopyImages)();e||(C(t),L(r),V(t&&a))})().catch(()=>{}),()=>{e=!0}},[j,v]);let S={iconType:"regular",className:"size-4 shrink-0 bg-gray-950/70 dark:bg-white/65 group-hover/context-menu-item:bg-gray-950/85 dark:group-hover/context-menu-item:bg-white/85 group-data-highlighted/context-menu-item:bg-gray-950/95 dark:group-data-highlighted/context-menu-item:bg-white/95",overrideColor:!0},I=s?.icons?.library==="lucide";return(0,t.jsxs)(U,{children:[(0,t.jsx)(q,{render:(0,t.jsxs)(ei.default,{href:g,className:n,prefetch:!(0,et.isAbsoluteUrl)(g),children:[(0,t.jsxs)("span",{className:"sr-only",children:[f??""," home page"]}),(0,t.jsx)(el,{className:e})]})}),(0,t.jsxs)(X,{className:"w-56 p-1.5 bg-background-light dark:bg-background-dark",children:[g&&(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(Y,{onClick:()=>{window.open(g,"_blank","noopener,noreferrer")},children:[(0,t.jsx)(Q.ComponentIcon,{icon:I?"square-arrow-out-up-right":"arrow-up-right-from-square",...S}),"Open link in new tab"]})}),j&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(Y,{onClick:()=>{window.open(j,"_blank","noopener,noreferrer")},children:[(0,t.jsx)(Q.ComponentIcon,{icon:"image",...S}),"Open logo in new tab"]}),M&&(0,t.jsxs)(Y,{onClick:()=>{(0,en.copyImageToClipboard)(j)},children:[(0,t.jsx)(Q.ComponentIcon,{icon:"copy",...S}),"Copy logo"]}),w&&(0,t.jsxs)(Y,{onClick:()=>{k(j,"logo")},children:[(0,t.jsx)(Q.ComponentIcon,{icon:"download",...S}),"Download logo"]})]}),v&&N&&(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(Y,{onClick:()=>{k(v,"favicon")},children:[(0,t.jsx)(Q.ComponentIcon,{icon:"download",...S}),"Download favicon"]})})]})]})};var eu=e.i(652853);e.s(["ThemePreferenceMenu",()=>eb,"getThemePreference",()=>ey,"themePreferenceOptions",()=>ef],22926);var ex=e.i(445991),em=e.i(822236),eg=e.i(135746),eh=e.i(211682),ep=e.i(930733);let ef=[{value:"system",label:"System",icon:(0,ep.default)("Tv2Icon",[["path",{d:"M4.5 15.5L9 14.5L13.5 15.5",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M9 11.75V14.5",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M14.25 2.75H3.75C2.64543 2.75 1.75 3.64543 1.75 4.75V9.75C1.75 10.8546 2.64543 11.75 3.75 11.75H14.25C15.3546 11.75 16.25 10.8546 16.25 9.75V4.75C16.25 3.64543 15.3546 2.75 14.25 2.75Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined")},{value:"light",label:"Light",icon:eh.SunIcon},{value:"dark",label:"Dark",icon:eg.MoonIcon}],ey=em.normalizeThemePreference;function eb({triggerClassName:e,iconClassName:n,contentClassName:s,_defaultOpen:l,_container:o}){let{docsConfig:u}=(0,i.useContext)(r.DocsConfigContext),{theme:x,setTheme:m}=(0,J.useTheme)(),g=(0,a.useSelectedLocale)(),[h,p]=(0,i.useState)(l??!1);if((0,i.useEffect)(()=>{let e=()=>p(!1);return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),u?.appearance?.strict===!0)return null;let f=ey(x);return(0,t.jsxs)(ex.DropdownMenu,{open:h,onOpenChange:p,children:[(0,t.jsx)(ex.DropdownMenuTrigger,{"aria-label":"Change theme preference",className:(0,G.cn)(c.Classes.ThemePreferenceMenuTrigger,"group p-2 flex items-center justify-center",e),"data-component-name":"theme-preference-menu","data-component-part":"theme-preference-menu-trigger","data-testid":"theme-preference-menu-trigger",id:d.Ids.ThemePreferenceMenuTrigger,suppressHydrationWarning:!0,children:ef.map(e=>{let r=e.icon;return(0,t.jsx)("span",{"data-theme-preference-icon":e.value,children:(0,t.jsx)(r,{className:(0,G.cn)("size-4 text-gray-500 dark:text-gray-400 group-hover:text-gray-700 dark:group-hover:text-gray-200",n)})},e.value)})}),(0,t.jsx)(ex.DropdownMenuContent,{_container:o,align:"end",sideOffset:2,className:(0,G.cn)(c.Classes.ThemePreferenceMenuContent,"min-w-32 p-1",s),"data-component-name":"theme-preference-menu","data-component-part":"theme-preference-menu-content","data-testid":"theme-preference-menu-content",id:d.Ids.ThemePreferenceMenuContent,children:ef.map(e=>{let r=e.icon,a=f===e.value;return(0,t.jsxs)(ex.DropdownMenuItem,{className:c.Classes.ThemePreferenceMenuItem,"data-component-name":"theme-preference-menu","data-component-part":"theme-preference-menu-item","data-testid":`theme-preference-${e.value}`,"data-theme-preference":e.value,id:`${d.Ids.ThemePreferenceMenuItem}-${e.value}`,isSelected:a,onClick:()=>m(e.value),suppressHydrationWarning:!0,children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)(r,{className:"size-4 shrink-0"}),(0,t.jsx)("span",{children:e.label})]}),(0,t.jsx)("span",{className:"sr-only",children:g["aria.switchToTheme"].replace("{theme}",e.value)})]},e.value)})})]})}let ev=()=>{let{docsConfig:e}=(0,i.useContext)(r.DocsConfigContext),{theme:n,setTheme:s}=(0,J.useTheme)(),l=(0,a.useSelectedLocale)();if(e?.appearance?.strict===!0)return null;let o=ey(n);return(0,t.jsx)("div",{className:"flex items-center gap-2",children:ef.map(e=>(0,t.jsx)("button",{"aria-label":l["aria.switchToTheme"].replace("{theme}",e.value),"data-testid":`mode-switch-${e.value}`,className:(0,G.cn)("p-1.5 rounded-lg",e.value===o?"bg-gray-200 dark:bg-gray-800 text-gray-600 dark:text-gray-400":"text-gray-400 dark:text-gray-600 hover:text-gray-600 dark:hover:text-gray-400"),onClick:()=>{e.value!==o&&s(e.value)},suppressHydrationWarning:!0,children:(0,t.jsx)(e.icon,{className:"size-4"})},e.value))})};var ej=e.i(120067);let ek=({type:e,url:r,iconClassName:a})=>{let n,s="website"===e||null==e?"earth-americas":e;return"x"===s&&(s="x-twitter"),(n=s,ej.footerSocialKeys.includes(n))?(0,t.jsxs)("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"h-fit",children:[(0,t.jsx)("span",{className:"sr-only",children:e}),(0,t.jsx)(Q.default,{icon:s,iconType:"solid",className:(0,G.cn)("w-5 h-5 bg-gray-500 dark:bg-gray-600 hover:bg-gray-600 dark:hover:bg-gray-500",a)})]}):null},ew=({isAdvanced:e,className:r})=>{let a=l(),n=a?.socials;if(!n)return null;let s=e?"":"bg-gray-400 dark:bg-gray-500 hover:bg-gray-500 dark:hover:bg-gray-400",i=(0,G.cn)("flex",e?"gap-4 min-w-[140px] max-w-[492px] flex-wrap":"gap-6 flex-wrap");return Array.isArray(n)?(0,t.jsx)("div",{className:(0,G.cn)(i,r),children:n.map(e=>(0,t.jsx)(ek,{url:e.url,type:e.type,iconClassName:s},e.url))}):"object"==typeof n?(0,t.jsx)("div",{className:(0,G.cn)(i,r),children:Object.entries(n).map(([e,r])=>(0,t.jsx)(ek,{url:r,type:e,iconClassName:s},r))}):null},eC=()=>{let e=l(),r=e?.links,a=1===r?.length;return r?(0,t.jsx)("div",{className:"flex flex-col sm:grid max-md:grid-cols-2! gap-8 flex-1",style:{gridTemplateColumns:`repeat(${r.length}, minmax(0, 1fr))`},children:r.map((e,r)=>(0,t.jsx)("div",{className:(0,G.cn)("flex flex-col gap-4 flex-1 whitespace-nowrap",a?"max-w-full":"w-full md:items-center"),children:(0,t.jsxs)("div",{className:(0,G.cn)("flex gap-4 flex-col",a?"md:flex-row md:items-center md:gap-8 md:justify-center":""),children:[e.header&&!a&&(0,t.jsx)("p",{className:"text-sm font-semibold text-gray-950 dark:text-white mb-1",children:e.header}),e.items.map(e=>(0,t.jsx)("a",{className:"text-sm max-w-36 whitespace-normal md:truncate text-gray-950/50 dark:text-white/50 hover:text-gray-950/70 dark:hover:text-white/70",href:e.href,target:e.href.startsWith("http://")||e.href.startsWith("https://")?"_blank":"_self",rel:"noreferrer",children:e.label},`${e.label}-${e.href}}`))]})},`${e.header}-${r}`))}):null},eN=({isAdvanced:e})=>{let{subdomain:l,entitlements:o}=(0,i.useContext)(r.DeploymentMetadataContext),{poweredBy:d}=(0,a.useSelectedLocale)(),c=(0,s.useAnalyticsContext)("docs.footer.powered_by_mintlify_click");return n.NEXT_PUBLIC.IS_SELF_HOSTED||(0,eu.checkAccess)({entitlements:o,entitlementToCheck:"REMOVE_BRANDING"})?null:e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-px w-full bg-gray-100 dark:bg-white/5"}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("div",{className:"sm:flex",children:(0,t.jsxs)("a",{href:`https://www.mintlify.com?utm_campaign=poweredBy&utm_medium=referral&utm_source=${l}`,target:"_blank",rel:"noreferrer",className:"group flex items-baseline gap-1 text-sm text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-300",onClick:()=>c({subdomain:l}).catch(console.error),children:[(0,t.jsx)("span",{children:d}),(0,t.jsx)(u,{className:"h-3.5 w-auto translate-y-0.75"}),(0,t.jsx)("span",{className:"sr-only",children:"This documentation is built and hosted on Mintlify, a developer documentation platform"})]})}),(0,t.jsx)(ev,{})]})]}):(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"flex items-center justify-between",children:(0,t.jsx)("div",{className:"sm:flex",children:(0,t.jsxs)("a",{href:`https://www.mintlify.com?utm_campaign=poweredBy&utm_medium=referral&utm_source=${l}`,target:"_blank",rel:"noreferrer",className:"group flex items-baseline gap-1 text-sm text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-300 text-nowrap",onClick:()=>c({subdomain:l}).catch(console.error),children:[(0,t.jsx)("span",{children:d}),(0,t.jsx)(u,{className:"h-3.5 w-auto translate-y-0.75"}),(0,t.jsx)("span",{className:"sr-only",children:"This documentation is built and hosted on Mintlify, a developer documentation platform"})]})})})})},eL=({className:e})=>{let{isCustom:r}=(0,o.usePageMode)(),a=l(),n=(0,i.useMemo)(()=>a?.links&&a.links.length>0,[a]);return r||n?null:(0,t.jsxs)("footer",{id:d.Ids.Footer,className:(0,G.cn)("flex gap-12 justify-between pt-10 border-t border-gray-100 sm:flex dark:border-gray-800/50 pb-28",e),children:[(0,t.jsx)(ew,{}),(0,t.jsx)(eN,{})]})},eM=({className:e})=>{let{docsConfig:a}=(0,i.useContext)(r.DocsConfigContext),n=l(),s=n?.links&&n.links.length<=3?"column":"row",o=n?.links&&1===n.links.length;if(!(0,i.useMemo)(()=>n?.links&&n.links.length>0,[n]))return null;let u=n?.links?.every(e=>e.header);return(0,t.jsx)("footer",{id:d.Ids.Footer,className:(0,G.cn)(c.Classes.AdvancedFooter,"flex flex-col items-center mx-auto border-t border-gray-100 dark:border-gray-800/50",a?.theme==="luma"&&"border-t-0",e),children:(0,t.jsxs)("div",{className:"flex w-full flex-col gap-12 justify-between px-8 py-16 md:py-20 lg:py-28 max-w-246 z-20",children:[(0,t.jsxs)("div",{className:(0,G.cn)("flex flex-col md:flex-row gap-8 justify-between",!o&&" min-h-19"),children:[(0,t.jsxs)("div",{className:"flex md:flex-col justify-between items-center md:items-start min-w-16 md:min-w-20 lg:min-w-48 md:gap-y-24",children:[(0,t.jsx)(ec,{logoClassName:"max-w-48 h-[26px]"}),(0,t.jsx)(ew,{isAdvanced:!0,className:(0,G.cn)("h-fit","column"===s?u?"md:hidden justify-end":"hidden":u?"flex justify-end md:justify-start":"hidden md:flex justify-end md:justify-start")})]}),(0,t.jsx)(eC,{}),"column"===s&&(0,t.jsx)(ew,{isAdvanced:!0,className:"hidden md:flex justify-end"})]}),!u&&(0,t.jsx)(ew,{isAdvanced:!0,className:"md:hidden justify-start"}),(0,t.jsx)(eN,{isAdvanced:!0})]})})};e.s(["Anchors",()=>eD],379291),e.s(["useColors",()=>eS],983357);var eV=e.i(17677);function eS(){let{docsConfig:e}=(0,i.useContext)(r.DocsConfigContext);return(0,i.useMemo)(()=>{let t=e?.colors.primary??"#16A34A",r=e?.colors.light??"#4ADE80",a=e?.colors.dark??"#166534",n=e?.colors.primary,s=e?.colors.primary,{light:i,dark:l,lightHex:o,darkHex:d}=(0,eV.getBackgroundColors)(e);return e?.theme==="linden"&&(e.background={...e.background,color:{light:e.background?.color?.light||(0,eV.rgbToHex)((0,eV.combineColors)("#FFFFFF",1,t,.03)),dark:e.background?.color?.dark||(0,eV.rgbToHex)((0,eV.combineColors)("#09090B",1,r,.03))}}),{primary:(0,eV.hexToRgbString)(t),primaryLight:(0,eV.hexToRgbString)(r),primaryDark:(0,eV.hexToRgbString)(a),backgroundLight:i,backgroundDark:l,bgLightHex:o,bgDarkHex:d,anchorDefault:n,dropdownDefault:s,gray:(0,eV.generateDynamicGrayScale)(t)}},[e])}var eI=e.i(456084);e.s(["Anchor",()=>eT,"AnchorWithoutContainer",()=>eP],507595);var eH=e.i(995047);let eA=["w-20","w-24","w-16","w-28"],eT=({name:e,href:r,icon:a="book-open",iconType:n="duotone",isActive:s,color:l,isSkeleton:o})=>{let[d,u]=(0,i.useState)(!1),x=(0,G.cn)(c.Classes.Anchor,"ml-4 group flex items-center lg:text-sm lg:leading-6 mb-5 sm:mb-4 font-medium outline-offset-4",o?"pointer-events-none animate-pulse text-gray-600 dark:text-gray-400":s?"[text-shadow:-0.2px_0_0_currentColor,0.2px_0_0_currentColor] text-primary dark:text-primary-light":"text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300"),m=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{style:!o&&(s||d)&&l?{background:l}:{},className:(0,G.cn)("mr-4 rounded-md p-1",!o&&!l&&"group-hover:bg-primary",o?"bg-gray-200 dark:bg-white/10":s?[l?"":"bg-primary"]:"text-gray-400 dark:text-white/50 dark:bg-background-dark dark:brightness-[1.35] dark:ring-1 dark:hover:brightness-150 group-hover:brightness-100 group-hover:ring-0 ring-1 ring-gray-950/[0.07] dark:ring-gray-700/40"),children:o?(0,t.jsx)("div",{className:"h-4 w-4"}):(0,t.jsx)(Q.ComponentIcon,{icon:a,iconType:n,className:(0,G.cn)("h-4 w-4 secondary-opacity group-hover:fill-primary-dark group-hover:bg-white dark:group-hover:bg-white",s?"bg-white":"bg-gray-400 dark:bg-gray-500"),overrideColor:!0})}),o?(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-flex h-[1lh] items-center",children:(0,t.jsx)("span",{className:(0,G.cn)("inline-block h-3 rounded-md bg-gray-200 dark:bg-white/10 select-none",(0,eI.pickSkeletonWidth)(e,eA))})}):e??r]});return o?(0,t.jsx)("div",{className:x,"aria-hidden":"true",children:m}):(0,t.jsx)(eH.DynamicLink,{href:r,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),className:x,"aria-current":s?"location":void 0,children:m})},eP=({name:e,href:r,icon:a="book-open",iconType:n="solid",isActive:s,color:i,isSkeleton:l})=>{let o=i?.includes("linear-gradient"),d=(0,G.cn)(c.Classes.Anchor,"pl-4 group flex items-center lg:text-sm lg:leading-6 mb-3 gap-3.5",l?"pointer-events-none animate-pulse text-gray-700 dark:text-gray-400":s?["font-semibold",o?"":"text-primary dark:text-primary-light"]:"text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300"),u=(0,t.jsxs)(t.Fragment,{children:[l?(0,t.jsx)("div",{className:"h-4 w-4 rounded bg-gray-200 dark:bg-white/10"}):(0,t.jsx)(Q.ComponentIcon,{icon:a.toLowerCase(),iconType:n,className:(0,G.cn)("h-4 w-4 secondary-opacity group-hover:fill-primary-dark group-hover:bg-gray-900 dark:group-hover:bg-gray-300",s?"bg-primary group-hover:bg-primary dark:bg-primary-light dark:group-hover:bg-primary-light":"bg-gray-400 dark:bg-gray-500"),overrideColor:!0}),l?(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-flex h-[1lh] items-center",children:(0,t.jsx)("span",{className:(0,G.cn)("inline-block h-3 rounded bg-gray-200 dark:bg-white/10 select-none",(0,eI.pickSkeletonWidth)(e,eA))})}):(0,t.jsx)("span",{children:e??r})]});return l?(0,t.jsx)("div",{className:d,"aria-hidden":"true",children:u}):(0,t.jsx)(eH.DynamicLink,{href:r,style:s&&o?{color:i}:{},className:d,"aria-current":s?"location":void 0,children:u})};function eD({className:e}){let{divisions:r}=(0,i.useContext)(a.NavigationContext),{anchorDefault:n}=eS(),s=0===r.anchors.length;return(0,t.jsx)("ul",{className:(0,G.cn)("list-none",e),"aria-hidden":s||void 0,children:r.anchors.map((e,r)=>{let a=(0,eI.isSkeletonEntry)({href:e.href});return(0,t.jsx)("li",{className:"list-none",children:(0,t.jsx)(eP,{href:e.href,name:e.name,icon:"string"==typeof e.icon?e.icon:e.icon?.name,iconType:"string"==typeof e.icon?"solid":e.icon?.style,color:e.color?.light??n,isActive:e.isActive,isSkeleton:a})},a?`skeleton-${r}`:e.name)})})}e.s([],29431),e.s(["ContentStack",()=>ru],404491);var eZ=e.i(7849),eE=e.i(588420),ez=e.i(767436);let eF="size-4 shrink-0 text-gray-500";function e_({icon:e,isExternal:r}){return r?(0,t.jsx)(eE.ArrowUpRight2Icon,{"aria-hidden":"true",strokeWidth:2,className:(0,G.cn)("shrink-0",eF)}):e?(0,t.jsx)(Q.ComponentIcon,{icon:e,iconType:"regular",className:(0,G.cn)(eF,"bg-gray-500"),overrideColor:!0}):(0,t.jsx)(ez.FileContentIcon,{"aria-hidden":"true",className:(0,G.cn)("shrink-0",eF)})}function eO(){let{relatedPages:e}=(0,i.useContext)(r.PageContext),{relatedTopics:n}=(0,a.useSelectedLocale)();return e&&0!==e.length?(0,t.jsxs)("div",{className:"my-8 flex flex-col",children:[(0,t.jsx)("p",{className:"py-1.5 text-sm text-gray-600 dark:text-gray-300 tracking-[-0.1px]",children:n}),e.map((e,r)=>{if(e.isExternal)return(0,t.jsxs)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 rounded-lg py-1.5 text-gray-950 dark:text-gray-50 hover:text-primary dark:hover:text-primary-light",children:[(0,t.jsx)(e_,{isExternal:!0}),(0,t.jsx)("span",{className:"text-sm tracking-[-0.1px] line-clamp-1",children:e.title})]},r);let a=e.link.startsWith("/")?e.link:`/${e.link}`;return(0,t.jsxs)(ei.default,{href:a,className:"flex items-center gap-2 rounded-lg py-1.5 text-gray-950 dark:text-gray-50 hover:text-primary dark:hover:text-primary-light",children:[(0,t.jsx)(e_,{icon:e.icon}),(0,t.jsx)("span",{className:"text-sm tracking-[-0.1px] line-clamp-1",children:e.title})]},r)})]}):null}var eR=e.i(378486),eB=e.i(16430),eW=e.i(357332);let e$=(0,ep.default)("FolderTreeIcon",[["path",{d:"M12.123 2.75H14.25C14.802 2.75 15.25 3.198 15.25 3.75V6.25C15.25 6.802 14.802 7.25 14.25 7.25H9.75C9.198 7.25 8.75 6.802 8.75 6.25V2.75C8.75 2.198 9.198 1.75 9.75 1.75H10.796C11.085 1.75 11.359 1.875 11.549 2.092L12.123 2.75Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M12.123 11.75H14.25C14.802 11.75 15.25 12.198 15.25 12.75V15.25C15.25 15.802 14.802 16.25 14.25 16.25H9.75C9.198 16.25 8.75 15.802 8.75 15.25V11.75C8.75 11.198 9.198 10.75 9.75 10.75H10.796C11.085 10.75 11.359 10.875 11.549 11.092L12.123 11.75Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M6.25 4.75H4.25C3.422 4.75 2.75 4.078 2.75 3.25V1",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M6.25 13.75H4.25C3.422 13.75 2.75 13.078 2.75 12.25V3",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined");function eG(e){if(void 0!==e)return"string"==typeof e?e:e.name}function eU(e){if(void 0!==e&&"string"!=typeof e)return e.style}function eq(e,t){return(1===e?t["directory.pageCount_one"]:t["directory.pageCount_other"]).replace("{count}",String(e))}function eX(e){return!!eG(e.icon)}function eY(e){return!!eG(e.icon)}function eK({icon:e,variant:r="muted"}){let a=eG(e);return a?(0,t.jsx)(Q.ComponentIcon,{icon:a,iconType:"string"!=typeof e?e?.style:void 0,className:(0,G.cn)("size-5 shrink-0","primary"===r?"bg-primary dark:bg-primary-light":"bg-gray-500 dark:bg-gray-400"),overrideColor:!0}):null}function eJ({page:e,reserveIconColumn:r}){let a=eX(e);return(0,t.jsxs)(ei.default,{href:e.href||"/","data-component-name":"directory-page",className:(0,G.cn)(c.Classes.DirectoryPage,"flex items-center gap-4 rounded-[10px] px-4 py-2 transition-colors hover:bg-gray-50 dark:hover:bg-white/[0.03]"),children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-4",children:[(a||r)&&(0,t.jsx)("span",{className:"flex h-[1.625rem] w-5 shrink-0 items-center justify-center",children:a&&e.icon?(0,t.jsx)(eK,{icon:e.icon,variant:"primary"}):null}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-pretty text-base font-medium leading-[1.625rem] tracking-[-0.011em] line-clamp-1 text-gray-950 dark:text-gray-100",children:e.title}),e.description&&(0,t.jsx)("p",{className:"text-pretty text-sm leading-6 tracking-[-0.005em] line-clamp-3 text-gray-500 dark:text-gray-400",children:e.description})]})]}),(0,t.jsx)(eW.ChevronRightIcon,{"aria-hidden":"true",strokeWidth:2,className:"size-4 shrink-0 text-gray-400 dark:text-gray-500"})]})}function eQ({group:e,reserveIconColumn:r}){let n=(0,a.useSelectedLocale)(),s=eY(e),i=e.root?.href||"/";return(0,t.jsxs)(ei.default,{href:i,"data-component-name":"directory-page",className:(0,G.cn)(c.Classes.DirectoryPage,"flex items-center gap-4 rounded-[10px] px-4 py-2 transition-colors hover:bg-gray-50 dark:hover:bg-white/[0.03]"),children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-4",children:[(s||r)&&(0,t.jsx)("span",{className:"flex h-[1.625rem] w-5 shrink-0 items-center justify-center",children:s&&e.icon?(0,t.jsx)(eK,{icon:e.icon,variant:"primary"}):null}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-pretty text-base font-medium leading-[1.625rem] tracking-[-0.011em] line-clamp-1 text-gray-950 dark:text-gray-100",children:e.group}),(0,t.jsxs)("p",{className:"flex items-center gap-1.5 text-pretty text-sm leading-6 tracking-[-0.005em] text-gray-500 dark:text-gray-400",children:[(0,t.jsx)(e$,{strokeWidth:2,className:"size-4 shrink-0 text-primary dark:text-primary-light","aria-hidden":!0}),eq(e.articleCount,n)]})]})]}),(0,t.jsx)(eW.ChevronRightIcon,{"aria-hidden":"true",strokeWidth:2,className:"size-4 shrink-0 text-gray-400 dark:text-gray-500"})]})}function e0({pages:e,nestedGroups:r}){if(0===e.length&&0===r.length)return null;let a=e.some(eX),n=r.some(eY),s=a||n;return(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[e.map(e=>(0,t.jsx)(eJ,{page:e,reserveIconColumn:s},e.href)),r.map(e=>(0,t.jsx)(eQ,{group:e,reserveIconColumn:s},e.root?.href??e.group))]})}function e1({pages:e,nestedGroups:r=[],header:a}){let n=e.length>0||r.length>0;return n||a?(0,t.jsxs)("div",{"data-component-name":"directory-card",className:(0,G.cn)(c.Classes.DirectoryCard,"rounded-2xl border border-gray-200/70 p-2 dark:border-white/[0.07]"),children:[a,a&&n&&(0,t.jsx)("div",{className:"mx-4 my-2 h-px bg-gray-200/70 dark:bg-white/[0.07]"}),(0,t.jsx)(e0,{pages:e,nestedGroups:r})]}):null}function e2({group:e}){if(0===e.pages.length&&0===e.groups.length)return null;let r=(0,t.jsx)("h3",{className:"text-pretty text-xl font-medium leading-7 line-clamp-1 text-gray-950 dark:text-gray-100",children:e.group}),a=e.icon?(0,t.jsx)(eB.LineCenter,{className:"leading-7",children:(0,t.jsx)(eK,{icon:e.icon})}):null,n=e.root?(0,t.jsxs)(ei.default,{href:e.root.href||"/","data-component-name":"directory-group-root",className:(0,G.cn)(c.Classes.DirectoryPage,"flex items-center gap-4 rounded-xl px-4 py-2 transition-colors hover:bg-gray-50 dark:hover:bg-white/[0.03]"),children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-4",children:[a,r]}),(0,t.jsx)(eW.ChevronRightIcon,{"aria-hidden":"true",strokeWidth:2,className:"size-4 shrink-0 self-center text-gray-400 dark:text-gray-500"})]}):(0,t.jsx)("div",{className:"px-4 py-2",children:(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[a,r]})});return(0,t.jsx)("div",{"data-component-name":"directory-group",className:c.Classes.DirectoryGroup,children:(0,t.jsx)(e1,{pages:e.pages,nestedGroups:e.groups,header:n})})}function e5({childPages:e,childGroups:r}){return(0,t.jsxs)(t.Fragment,{children:[e.length>0&&(0,t.jsx)(e1,{pages:e}),r.map(e=>(0,t.jsx)(e2,{group:e},e.group))]})}var e4=e.i(464991);function e6({page:e}){let r=eG(e.icon),a=eU(e.icon);return(0,t.jsx)(e4.Card,{horizontal:!0,className:c.Classes.DirectoryPage,title:(0,t.jsx)("span",{className:"line-clamp-1",children:e.title}),icon:r,iconType:a,href:e.href||"/",children:e.description&&(0,t.jsx)("span",{className:"line-clamp-1",children:e.description})})}function e3({group:e}){let r=(0,a.useSelectedLocale)(),n=eG(e.icon),s=eU(e.icon);return(0,t.jsx)(e4.Card,{horizontal:!0,className:c.Classes.DirectoryPage,title:(0,t.jsx)("span",{className:"line-clamp-1",children:e.group}),icon:n,iconType:s,href:e.root?.href||"/",children:(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,t.jsx)(e$,{strokeWidth:2,className:"size-4 shrink-0 text-primary dark:text-primary-light","aria-hidden":!0}),(0,t.jsx)("span",{className:"line-clamp-1 text-gray-500 dark:text-gray-400",children:eq(e.articleCount,r)})]})})}function e7({pages:e,nestedGroups:r=[]}){return 0===e.length&&0===r.length?null:(0,t.jsxs)("div",{className:"flex flex-col",children:[e.map(e=>(0,t.jsx)(e6,{page:e},e.href)),r.map(e=>(0,t.jsx)(e3,{group:e},e.root?.href??e.group))]})}function e8({group:e}){let r=eG(e.icon),a=(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-4 border border-transparent",children:[r&&e.icon&&(0,t.jsx)(eB.LineCenter,{className:"leading-7",children:(0,t.jsx)(Q.ComponentIcon,{icon:r,iconType:"string"!=typeof e.icon?e.icon.style:void 0,className:"size-6 shrink-0 bg-gray-500 dark:bg-gray-400",overrideColor:!0})}),(0,t.jsx)("h3",{className:"text-pretty text-xl font-medium leading-7 line-clamp-1 text-gray-950 dark:text-gray-100",children:e.group})]});return e.root?(0,t.jsxs)(ei.default,{href:e.root.href||"/","data-component-name":"directory-group-root",className:(0,G.cn)(c.Classes.DirectoryPage,"flex items-center gap-4 rounded-xl px-6 py-2 transition-colors hover:bg-gray-50 dark:hover:bg-white/[0.03]"),children:[a,(0,t.jsx)(eW.ChevronRightIcon,{"aria-hidden":"true",strokeWidth:2,className:"size-4 shrink-0 self-center text-gray-400 dark:text-gray-500"})]}):(0,t.jsx)("div",{className:"px-6 py-2",children:a})}function e9({group:e}){return 0===e.pages.length&&0===e.groups.length?null:(0,t.jsxs)("div",{"data-component-name":"directory-group",className:(0,G.cn)(c.Classes.DirectoryGroup,"space-y-2"),children:[(0,t.jsx)(e8,{group:e}),(0,t.jsx)(e7,{pages:e.pages,nestedGroups:e.groups})]})}function te({childPages:e,childGroups:r}){return(0,t.jsxs)(t.Fragment,{children:[e.length>0&&(0,t.jsx)(e7,{pages:e}),r.map(e=>(0,t.jsx)(e9,{group:e},e.group))]})}function tt(){let e=(0,eR.useIsDirectoryPage)(),{childPages:r,childGroups:a}=(0,eR.usePageListData)(),n=(0,eR.useDirectoryStyle)();return e&&(0!==r.length||0!==a.length)?(0,t.jsx)("div",{"data-component-name":"directory","data-directory-style":n,className:(0,G.cn)(c.Classes.Directory,"mt-4 mb-14 space-y-6"),children:(0,t.jsx)("card"===n?te:e5,{childPages:r,childGroups:a})}):null}e.s(["ContentSwitchers",()=>tu],293664);var tr=e.i(721999),ta=e.i(734305);e.s(["MultiViewDropdown",()=>td],767487);var tn=e.i(45143),ts=e.i(392146),ti=e.i(693619),tl=e.i(395787);let to="regular",td=({className:e,mobile:r=!1})=>{let n=(0,a.useSelectedLocale)(),[{multiViewItems:s},l]=(0,ti.useMDXContent)(),{setPreferredCodeLanguage:o}=(0,i.useContext)(ts.LocalStorageContext),[u,x]=(0,i.useState)(!1),m=s.find(e=>e.active);return 0===s.length?null:(0,t.jsx)("div",{id:d.Ids.MultiViewDropdown,className:(0,G.cn)(c.Classes.MultiViewDropdown,"w-[14rem] max-w-full",tr.zIndex.SecondaryNav,e,r&&"mt-8 xl:mt-0 [html:not([data-assistant-state=open])_&]:xl:hidden -mb-4 sm:ml-auto"),children:(0,t.jsxs)(tn.DropdownMenu,{open:u,onOpenChange:x,children:[(0,t.jsxs)(tn.DropdownMenuTrigger,{"aria-label":m?.title?`${n["aria.switchView"]}: ${m.title}`:n["aria.switchView"],className:(0,G.cn)(c.Classes.MultiViewDropdownTrigger,"z-10 group flex w-full items-center justify-start pl-1.5 pr-3 py-1.5 rounded-xl gap-1 border border-gray-200 dark:border-white/[0.07] hover:bg-gray-600/5 dark:hover:bg-gray-200/5"),children:[!!m?.icon&&(0,t.jsx)("div",{className:"flex items-center justify-center shrink-0 size-[26px] border border-gray-200 dark:border-white/[0.07] rounded-md",children:(0,t.jsx)(Q.ComponentIcon,{icon:m.icon||"",iconType:m.iconType||to,className:"size-3.5 shrink-0"})}),(0,t.jsx)("span",{className:"text-sm font-medium text-gray-900 dark:text-gray-200 leading-[20px] tracking-[-0.1px] px-1 truncate",children:m?.title}),(0,t.jsx)(tl.DropdownArrowIcon,{className:"shrink-0 rotate-90 group-data-popup-open:rotate-[270deg] ml-auto"})]}),(0,t.jsx)(tn.DropdownMenuContent,{className:(0,G.cn)(c.Classes.MultiViewDropdownContent,"p-1 gap-1 w-(--anchor-width) rounded-xl"),align:"start",sideOffset:4,collisionAvoidance:{side:"none",align:"none"},children:s.map(e=>(0,t.jsxs)(tn.DropdownMenuItem,{className:(0,G.cn)(c.Classes.MultiViewDropdownItem,"flex items-center justify-start gap-2 rounded-lg text-gray-900 dark:text-gray-200 px-2.5 py-2 cursor-pointer hover:bg-gray-950/5 dark:bg-transparent focus-within:bg-gray-950/5 dark:focus-within:bg-white/5"),onClick:()=>(e=>{let t=s.find(t=>t.title===e);if(t){if(l({type:"toggle_multi_view_change",payload:t}),t.id&&1)try{let e=`${window.location.pathname}${window.location.search}#${t.id}`;window.history.replaceState({...window.history.state,as:e,url:e},"",e)}catch{}o?.(e),x(!1)}})(e.title),isSelected:m?.title===e.title,children:[!!e.icon&&(0,t.jsx)(Q.ComponentIcon,{icon:e.icon,iconType:e.iconType||to,className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"text-sm font-medium text-gray-900 dark:text-gray-200 truncate mr-auto",children:e.title})]},e.title))})]})})};function tc({className:e}){let{options:r,selectedVariation:a,setSelectedVariation:n}=(0,ta.useVariation)(),[s,l]=(0,i.useState)(!1),o=r.find(e=>e.id===a);return o&&0!==r.length?(0,t.jsx)("div",{className:(0,G.cn)("w-[14rem] max-w-full",e),children:(0,t.jsxs)(tn.DropdownMenu,{open:s,onOpenChange:l,children:[(0,t.jsxs)(tn.DropdownMenuTrigger,{"aria-label":`Documentation variation: ${o.label}`,"data-component-part":"variation-select-trigger",className:"z-10 group flex w-full items-center justify-start pl-1.5 pr-3 py-1.5 rounded-xl gap-1 border border-gray-200 dark:border-white/[0.07] hover:bg-gray-600/5 dark:hover:bg-gray-200/5",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-gray-900 dark:text-gray-200 leading-[20px] tracking-[-0.1px] px-1 truncate",title:o.label,children:o.label}),(0,t.jsx)(tl.DropdownArrowIcon,{className:"shrink-0 rotate-90 group-data-popup-open:rotate-[270deg] ml-auto"})]}),(0,t.jsx)(tn.DropdownMenuContent,{"data-component-part":"variation-select-content",className:"p-1 gap-1 w-(--anchor-width) rounded-xl",align:"start",sideOffset:4,collisionAvoidance:{side:"none",align:"none"},children:r.map(e=>{let r=e.id===a;return(0,t.jsx)(tn.DropdownMenuItem,{"data-component-part":"variation-select-item","data-variation-id":e.id,"data-selected":r,className:"flex items-center justify-start gap-2 rounded-lg text-gray-900 dark:text-gray-200 px-2.5 py-2 cursor-pointer hover:bg-gray-950/5 dark:bg-transparent focus-within:bg-gray-950/5 dark:focus-within:bg-white/5",onClick:()=>{n(e.id),l(!1)},isSelected:r,children:(0,t.jsx)("span",{className:"text-sm font-medium text-gray-900 dark:text-gray-200 truncate mr-auto",children:e.label})},e.id)})})]})}):null}function tu({className:e,inline:a=!1,mobile:n=!1,variationOnly:s=!1}){let{docsConfig:l}=(0,i.useContext)(r.DocsConfigContext),{options:o,selectedVariation:d}=(0,ta.useVariation)();return l?.theme==="willow"&&o.some(e=>e.id===d)?(0,t.jsxs)("div",{"data-component-part":"content-switchers",className:(0,G.cn)("flex w-[14rem] max-w-full flex-col gap-2.5",tr.zIndex.SecondaryNav,e,a&&"mt-8 xl:mt-0 -mb-4 sm:ml-auto",n&&!a&&"mt-8 xl:mt-0 [html:not([data-assistant-state=open])_&]:xl:hidden -mb-4 sm:ml-auto"),children:[(0,t.jsx)(tc,{className:"w-full"}),!s&&(0,t.jsx)(td,{className:"w-full"})]}):s?null:(0,t.jsx)(td,{className:e,mobile:n})}var tx=e.i(445193),tm=e.i(946230),tg=e.i(57549);let th=/^\d{4}-\d{2}-\d{2}$/;function tp({pageMetadata:e,className:n}){let{lastModified:s,gitLastModified:l}=(0,i.useContext)(r.PageContext),{docsConfig:o}=(0,i.useContext)(r.DocsConfigContext),{selectedLocale:d}=(0,i.useContext)(a.NavigationContext),c=(0,a.useSelectedLocale)(),u=o?.metadata?.timestamp===!0,x=e.timestamp??u,m=function(e){if(e instanceof Date&&!Number.isNaN(e.getTime()))return`${e.toISOString().slice(0,10)}T00:00:00`;if("string"!=typeof e)return;let t=e.trim();if(!(""===t||Number.isNaN(Date.parse(t))))return th.test(t)?`${t}T00:00:00`:t}(e.lastUpdatedDate??e.last_updated_at)??l??s;if(!x||!m)return null;let g=d?(0,tg.localeToBCP47)(d):"en-US",h=new Date(m).toLocaleDateString(g,{month:"long",day:"numeric",year:"numeric"});return(0,t.jsxs)("div",{className:(0,G.cn)("pt-4 pb-16 text-sm text-gray-500 dark:text-gray-400",n),children:[c.lastModifiedOn," ",h]})}var tf=e.i(966768),ty=e.i(803333);async function tb(){if("function"==typeof window.alloy)try{let e=await Promise.race([window.alloy("getIdentity"),new Promise(e=>setTimeout(()=>e(void 0),2e3))]);return e?.identity?.ECID||void 0}catch{return}}async function tv(){return await tb()??function(){try{let e=document.cookie.match(/AMCV_[^=]+=([^;]+)/),t=e?.[1]&&decodeURIComponent(e[1]).match(/MCMID\|(\d+)/);return t?t[1]:void 0}catch{return}}()}var tj=e.i(868643);async function tk(e,{path:t,helpful:r,reason:a,comment:n}){try{let s=await tv(),i=`[${t}] [${r?"helpful":"not helpful"}] [${a}]${n?` ${n}`:""}`.slice(0,1e4);await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"omit",body:JSON.stringify({feedback_id:crypto.randomUUID(),...s&&{mcid:s},content:i})})}catch(e){console.error("Error forwarding feedback:",e)}}var tw=e.i(15786);e.i(321162);let tC=new(e.i(298904)).Filter;function tN({feedbackType:e,selectedOption:r,setSelectedOption:n,additionalFeedback:s,setAdditionalFeedback:l,email:o,setEmail:u,showThankYouMessage:x,config:m,onSubmit:g,onCancelDetailedFeedback:h}){let p=(0,a.useSelectedLocale)(),f=[{id:"worked-as-expected",label:p["feedback.positive.workedAsExpected"]},{id:"easy-to-find",label:p["feedback.positive.easyToFind"]},{id:"easy-to-understand",label:p["feedback.positive.easyToUnderstand"]},{id:"up-to-date",label:p["feedback.positive.upToDate"]},{id:"something-else-positive",label:p["feedback.positive.somethingElse"]}],y=[{id:"get-started-faster",label:p["feedback.negative.getStartedFaster"]},{id:"easier-to-find",label:p["feedback.negative.easierToFind"]},{id:"easier-to-understand",label:p["feedback.negative.easierToUnderstand"]},{id:"update-docs",label:p["feedback.negative.updateDocs"]},{id:"something-else-negative",label:p["feedback.negative.somethingElse"]}],b="Yes"===e?p["feedback.greatWhatWorkedBest"]:p["feedback.howCanWeImprove"],v=(0,i.useMemo)(()=>!!(s.trim()&&tC.isProfane(s)),[s]),j=(0,i.useMemo)(()=>{if(!m?.allowEmail)return!1;let e=o.trim();return!!(e&&!(0,tw.isValidEmail)(e))},[o,m?.allowEmail]),k=(0,i.useCallback)(async e=>{e.preventDefault();let t=m?.textInputOnly===!0;(t?!s.trim()||v||j:!r||v||j)||await g({optionId:t?"":r,additionalFeedback:s.trim()||void 0,email:m?.allowEmail&&o.trim()||void 0})},[s,g,r,v,j,o,m?.textInputOnly,m?.allowEmail]);return x?(0,t.jsx)("div",{className:(0,G.cn)("pt-6 pb-4 border-t border-gray-200 dark:border-gray-700",c.Classes.ContextualFeedbackContainer),children:(0,t.jsx)("p",{className:(0,G.cn)("text-base font-medium text-gray-900 dark:text-gray-100 h-16",c.Classes.ContextualFeedbackFormTitle),children:"Thank you!"})}):(0,t.jsx)("div",{className:(0,G.cn)("pt-6 pb-4 border-t border-gray-200 dark:border-gray-700",c.Classes.ContextualFeedbackContainer),children:(0,t.jsxs)("form",{id:d.Ids.FeedbackForm,onSubmit:k,className:(0,G.cn)("flex flex-col gap-y-6",c.Classes.ContextualFeedbackForm),children:[(0,t.jsx)("h3",{className:(0,G.cn)("text-base font-medium text-gray-900 dark:text-gray-100",c.Classes.ContextualFeedbackFormTitle),children:b}),!m?.textInputOnly&&(0,t.jsx)("div",{className:"flex flex-col gap-y-3",children:("Yes"===e?f:y).map(e=>(0,t.jsx)(i.Fragment,{children:(0,t.jsxs)("label",{className:"flex items-start cursor-pointer pl-0.5",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{type:"radio",name:"feedback-option",value:e.id,checked:r===e.id,onChange:e=>n(e.target.value),className:"peer sr-only"}),(0,t.jsx)("div",{className:(0,G.cn)("h-4 w-4 rounded-full border border-primary-dark dark:border-primary-light peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary dark:peer-focus-visible:outline-primary-light",r===e.id?"bg-primary-dark dark:bg-primary-light ring-1 ring-primary-dark dark:ring-primary-light border-white dark:border-background-dark border-2":"border-gray-400 dark:border-gray-600"),children:r===e.id&&(0,t.jsx)("div",{className:(0,G.cn)("h-2 w-2 rounded-full bg-primary-dark dark:bg-primary-light absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2")})})]}),(0,t.jsx)("span",{className:(0,G.cn)("ml-3 text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",r===e.id&&"text-gray-800 dark:text-gray-200"),children:e.label})]})},e.id))}),(r||m?.textInputOnly)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("input",{id:d.Ids.FeedbackFormInput,value:s,onChange:e=>l(e.target.value),placeholder:m?.textInputOnly?p["feedback.placeholder"].replace(/^[\((].*?[\))]\s*/,""):p["feedback.placeholder"],"aria-label":p["aria.additionalFeedback"],className:(0,G.cn)("w-full px-4 py-2.5 border border-gray-200 dark:border-gray-800 rounded-xl text-sm text-gray-900 dark:text-gray-100 placeholder:text-gray-600/70 dark:placeholder:text-gray-400/70 bg-black/0 focus:ring-0 focus:outline-0 focus:border-gray-300 dark:focus:border-gray-700",c.Classes.ContextualFeedbackFormInput)}),m?.allowEmail===!0&&(0,t.jsxs)("div",{className:"flex flex-col gap-y-1",children:[m.emailDisclaimer&&(0,t.jsx)("p",{className:"text-sm text-gray-900 dark:text-gray-100",children:m.emailDisclaimer}),(0,t.jsx)("input",{type:"email",value:o,onChange:e=>u(e.target.value),placeholder:p["feedback.emailPlaceholder"],"aria-label":p["aria.emailAddress"],className:(0,G.cn)("w-full px-4 py-2.5 border border-gray-200 dark:border-gray-800 rounded-xl text-sm text-gray-900 dark:text-gray-100 placeholder:text-gray-600/70 dark:placeholder:text-gray-400/70 bg-black/0 focus:ring-0 focus:outline-0 focus:border-gray-300 dark:focus:border-gray-700",j&&"border-red-500 dark:border-red-500",c.Classes.ContextualFeedbackFormInput)}),j&&(0,t.jsx)("p",{className:"text-xs text-red-500",children:p["feedback.invalidEmail"]})]})]}),(0,t.jsxs)("div",{className:(0,G.cn)("flex gap-2 mt-2"),children:[(0,t.jsx)("button",{id:d.Ids.FeedbackFormCancel,type:"button",onClick:h,className:(0,G.cn)("px-4 py-2 border border-gray-200 dark:border-gray-800 hover:border-gray-300 dark:hover:border-gray-700 text-gray-800 dark:text-gray-200 text-sm rounded-xl disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-primary dark:focus-visible:outline-primary-light",c.Classes.ContextualFeedbackFormButton),children:p["feedback.cancel"]}),(0,t.jsx)("button",{id:d.Ids.FeedbackFormSubmit,type:"submit",disabled:m?.textInputOnly?!s.trim()||v||j:!r||v||j,className:(0,G.cn)("px-4 py-2 bg-black dark:bg-white text-white dark:text-black text-sm font-medium rounded-xl disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-primary dark:focus-visible:outline-primary-light",c.Classes.ContextualFeedbackFormSubmitButton),children:p["feedback.submit"]})]})]})})}var tL=e.i(267860);let tM=(0,ep.default)("TriangleWarningIcon",[["path",{d:"M7.63801 3.49498L2.21301 12.891C1.60801 13.939 2.36401 15.25 3.57501 15.25H14.425C15.636 15.25 16.392 13.94 15.787 12.891L10.362 3.49498C9.75701 2.44698 8.24301 2.44698 7.63801 3.49498Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M9 6.5V10",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M9 13.569C8.448 13.569 8 13.12 8 12.569C8 12.018 8.448 11.569 9 11.569C9.552 11.569 10 12.018 10 12.569C10 13.12 9.552 13.569 9 13.569Z",fill:"currentColor",stroke:"none"}]],"outlined"),tV=({className:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(tM,{"aria-hidden":"true",className:(0,G.cn)("size-3.5 block shrink-0",e)}),(0,t.jsx)(tL.TriangleWarningFilledIcon,{"aria-hidden":"true",className:"size-3.5 hidden group-hover:block text-gray-500 dark:text-gray-400 group-hover:text-gray-700 dark:group-hover:text-gray-200 shrink-0"})]}),tS=(0,ep.default)("PencilFilledIcon",[["path",{d:"M15.5921 3.817L14.1831 2.407C13.3051 1.531 11.8781 1.531 11.0011 2.407L9.89211 3.516C9.59911 3.809 9.59911 4.284 9.89211 4.577L13.4221 8.107C13.5681 8.253 13.7601 8.327 13.9521 8.327C14.1441 8.327 14.3361 8.254 14.4821 8.107L15.5921 6.998C16.4681 6.121 16.4681 4.694 15.5921 3.817Z",fill:"currentColor"}],["path",{d:"M11.6556 8.81359L7.14727 13.322C6.99127 13.478 6.79527 13.59 6.58227 13.647L3.55427 14.446L4.35327 11.418C4.41027 11.204 4.52227 11.009 4.67827 10.853L9.18662 6.34459C9.47962 6.05159 9.47962 5.57659 9.18662 5.28359C8.89362 4.99059 8.41862 4.99059 8.12562 5.28359L3.61727 9.79198C3.27427 10.135 3.02727 10.565 2.90327 11.035L1.77627 15.308C1.70827 15.566 1.78227 15.841 1.97127 16.03C2.11427 16.173 2.30527 16.25 2.50127 16.25C2.56527 16.25 2.62927 16.242 2.69227 16.225L6.96527 15.098C7.43527 14.974 7.86527 14.727 8.20827 14.384L12.7166 9.87559C13.0096 9.58259 13.0096 9.10759 12.7166 8.81459C12.4236 8.52159 11.9486 8.52059 11.6556 8.81359Z",fill:"currentColor"}],["path",{d:"M5.73539 12.2339C5.88139 12.3799 6.07339 12.4539 6.26539 12.4539C6.45739 12.4539 6.64939 12.3809 6.79539 12.2339L10.9399 8.08947C11.2329 7.79647 11.2329 7.32147 10.9399 7.02847C10.6469 6.73547 10.1719 6.73547 9.87889 7.02847L5.73439 11.1729C5.44139 11.4659 5.44239 11.9409 5.73539 12.2339Z",fill:"currentColor"}]],"filled"),tI=(0,ep.default)("PencilIcon",[["path",{d:"M13.953 7.57801L15.062 6.46901C15.648 5.88301 15.648 4.93301 15.062 4.34801L13.653 2.93901C13.067 2.35301 12.117 2.35301 11.532 2.93901L10.423 4.04801L13.953 7.57801Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M8.922 5.547L4.147 10.322C3.897 10.572 3.718 10.884 3.627 11.226L2.5 15.499L6.773 14.372C7.115 14.282 7.427 14.102 7.677 13.852L12.452 9.077",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M10.672 7.297L6.26501 11.704",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined"),tH=({className:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(tI,{"aria-hidden":"true",className:(0,G.cn)("size-3.5 block shrink-0",e)}),(0,t.jsx)(tS,{"aria-hidden":"true",className:"size-3.5 hidden group-hover:block text-gray-500 dark:text-gray-400 group-hover:text-gray-700 dark:group-hover:text-gray-200 shrink-0"})]});var tA=function(e){return e[e.Edit=0]="Edit",e[e.Alert=1]="Alert",e}({});let tT=({href:e,type:r})=>{let{suggestEdits:n,raiseIssue:s}=(0,a.useSelectedLocale)();return(0,t.jsxs)(ei.default,{href:e,className:"h-fit whitespace-nowrap px-3.5 py-2 flex flex-row gap-3 items-center border-standard rounded-xl text-gray-600 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 bg-white/50 dark:bg-codeblock/50 hover:border-gray-500 hover:dark:border-gray-500",target:"_blank",rel:"noopener noreferrer",children:[1===r&&(0,t.jsx)(tV,{className:"text-current"}),0===r&&(0,t.jsx)(tH,{className:"text-current"}),0===r&&(0,t.jsx)("small",{className:"text-sm leading-4",children:n}),1===r&&(0,t.jsx)("small",{className:"text-sm leading-4",children:s})]})};var tP=e.i(471205),tD=e.i(455053),tZ=e.i(797341);function tE({type:e,label:r,selectedFeedback:a,setSelectedFeedback:n}){let i=(0,s.useAnalyticsContext)("docs.feedback.thumbs_up"),l=(0,s.useAnalyticsContext)("docs.feedback.thumbs_down"),o=(0,s.useAnalyticsContext)("thumb_vote");return(0,t.jsxs)("button",{id:"Yes"===e?d.Ids.FeedbackThumbsUp:d.Ids.FeedbackThumbsDown,className:(0,G.cn)("px-3.5 py-2 flex flex-row gap-3 items-center border-standard rounded-xl text-gray-600 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 bg-white/50 dark:bg-codeblock/50 hover:border-gray-500 hover:dark:border-gray-500 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-primary dark:focus-visible:outline-primary-light",a===e&&"border border-gray-500 dark:border-gray-500 text-gray-700 dark:text-gray-300"),onClick:()=>{"Yes"===e?i({}):l({}),o({vote:e}),n(e)},children:["Yes"===e?(0,t.jsx)(tD.ThumbsUpIcon,{"aria-hidden":"true",className:"size-4 shrink-0 text-current"}):(0,t.jsx)(tP.ThumbsDownIcon,{"aria-hidden":"true",className:"size-4 shrink-0 text-current"}),(0,t.jsx)("small",{className:"text-sm font-normal leading-4",children:(0,tZ.default)(r)})]})}let tz={YES:"Yes",NO:"No"};function tF(){let e,s,[l,d]=(0,i.useState)(null),[u,x]=(0,i.useState)(!1),[m,g]=(0,i.useState)(!1),[h,p]=(0,i.useState)(""),[f,y]=(0,i.useState)(""),[b,v]=(0,i.useState)(""),{gitSource:j,feedback:k,entitlements:w,subdomain:C}=(0,i.useContext)(r.DeploymentMetadataContext),{docsConfig:N}=(0,i.useContext)(r.DocsConfigContext),{originalFileLocation:L}=(0,i.useContext)(r.PageContext),{cookiesEnabled:M}=(0,i.useContext)(ts.LocalStorageContext),{isCustom:V}=(0,o.usePageMode)(),S=(0,ty.useCurrentPath)(),{yes:I,no:H,wasThisPageHelpful:A}=(0,a.useSelectedLocale)(),T=N?.integrations?.telemetry?.enabled===!1,P=(0,eu.checkAccess)({entitlements:w,entitlementToCheck:"CONTEXTUAL_FEEDBACK"});S&&j?.type==="github"&&!j.isPrivate&&(e=function(e,t,r){let{owner:a,repo:n,deployBranch:s,contentDirectory:i}=t;return`https://github.com/${a}/${n}/edit/${s}/${function(e,t,r){var a;let n=(a=(0,tj.optionallyRemoveLeadingSlash)(t??"")).endsWith("/")?a.slice(0,-1):a;if(r){let e=(0,tj.optionallyRemoveLeadingSlash)(r);if(e&&e.includes("."))return n&&e!==n&&!e.startsWith(`${n}/`)?`${n}/${e}`:e}return`${n?`${n}/`:""}${(0,tj.optionallyRemoveLeadingSlash)(e)||"index"}.mdx`}(e,i,r)}`}(S,j,L),s=function(e,t){let{owner:r,repo:a}=t;return`https://github.com/${r}/${a}/issues/new?title=Issue on docs&body=Path: ${e||"index"}`}(S,j));let D=k?.edits&&e||k?.issues&&s||k?.thumbs,Z=e=>{d(e),y(""),p(""),v(""),P&&(e?x(!0):x(!1))},E=async({optionId:e,additionalFeedback:t,email:r})=>{try{let a=JSON.stringify({path:S,helpful:"Yes"===l,feedback:`[${e}]${t?.trim()?` ${t.trim()}`:""}`,...r?.trim()&&{contact:r.trim()}});fetch(`${n.NEXT_PUBLIC.BASE_PATH}/_mintlify/feedback/${C}/contextual-feedback`,{method:"POST",body:a}),k?.forwardEndpoint&&tk(k.forwardEndpoint,{path:S,helpful:"Yes"===l,reason:e,comment:t?.trim()||void 0}),g(!0),setTimeout(()=>{d(null),y(""),p(""),v(""),x(!1),g(!1)},3e3)}catch(e){console.error("Error submitting feedback:",e)}};return!D||!M||T||V?null:(0,t.jsxs)("div",{className:(0,G.cn)(c.Classes.FeedbackToolbar,"pb-16 w-full flex flex-col gap-y-8"),children:[(0,t.jsxs)("div",{className:(0,G.cn)("flex flex-row flex-wrap gap-4 items-center justify-between"),children:[k.thumbs&&(0,t.jsx)("p",{className:"inline-block text-sm text-gray-600 dark:text-gray-400 whitespace-nowrap",children:A}),(0,t.jsxs)("div",{className:(0,G.cn)("flex flex-wrap grow gap-3 items-center",k.edits||k.issues?"justify-between":"justify-end"),children:[k.thumbs&&(0,t.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,t.jsx)(tE,{type:tz.YES,label:I,selectedFeedback:l,setSelectedFeedback:Z}),(0,t.jsx)(tE,{type:tz.NO,label:H,selectedFeedback:l,setSelectedFeedback:Z})]}),(0,t.jsxs)("div",{className:"flex gap-3",children:[k.edits&&e&&(0,t.jsx)(tT,{type:tA.Edit,href:e}),k.issues&&s&&(0,t.jsx)(tT,{type:tA.Alert,href:s})]})]})]}),P&&u&&l&&(0,t.jsx)(tN,{feedbackType:l,config:k.contextualFeedback,additionalFeedback:h,setAdditionalFeedback:p,selectedOption:f,setSelectedOption:y,email:b,setEmail:v,showThankYouMessage:m,onSubmit:E,onCancelDetailedFeedback:()=>d(null)})]})}e.s(["default",()=>tq],836653);var t_=e.i(535345),tO=e.i(5695);let tR=(0,ep.default)("ClockRotateAnticlockwiseIcon",[["path",{d:"M9 4.75V9L5.75 11.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M16.25 9C16.25 4.996 13.004 1.75 9.00004 1.75C5.96904 1.75 3.37304 3.61 2.29004 6.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M1.88 3.30499L2.288 6.24999L5.232 5.84299",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M1.75 9C1.75 13.004 4.996 16.25 9 16.25C12.031 16.25 14.627 14.39 15.71 11.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M16.1199 14.695L15.7119 11.75L12.7679 12.157",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined");var tB=e.i(39839),tW=e.i(477222),t$=e.i(835963),tG=e.i(765427),tU=e.i(923822);let tq=function({className:e}){let{isInProgress:n,messages:s}=(0,tO.useAssistant)(),{hasChatPermissions:l}=(0,i.useContext)(tW.SearchContext),{docsConfig:u}=(0,i.useContext)(r.DocsConfigContext),{isChatSheetOpen:x,onChatSheetToggle:m}=(0,i.useContext)(tW.ChatAssistantContext),g=(0,t$.useAssistantEnterAnalytics)(),h=(0,tB.useMediaQuery)("(max-width: 1024px)"),p=(0,a.useSelectedLocale)(),[f,y]=(0,i.useState)(null),[b,v]=(0,i.useState)(!1),j=(0,t_.useActionKey)(),k=(0,i.useMemo)(()=>j[0]?.trim()??"⌘",[j]);(0,i.useLayoutEffect)(()=>{let e=document.querySelector(`footer#${d.Ids.Footer}`);if(!e)return;let t=e.getBoundingClientRect();y(t.top=0);let r=!0,a=new IntersectionObserver(([e])=>{e&&(y(e.isIntersecting),r?r=!1:v(!0))});return a.observe(e),()=>{a.disconnect()}},[]);let w=(0,tU.isPillInputTheme)(u?.theme),C=(0,tU.assistantBarKeyboardHint)(u?.theme),{isCenter:N,isCustom:L,isFrame:M,isWide:V}=(0,o.usePageMode)(),S=!l||x||N||L||M,I=s.length>0,H=S||n,A=()=>m({entryPoint:"floating-input"}),T=S?void 0:e=>{n&&(e.stopPropagation(),A())},P=S?void 0:e=>{g(e,"floating-input"),A()};return(0,t.jsx)("div",{"data-assistant-bar":"",className:(0,G.cn)("left-0 right-0 sticky bottom-0 w-full overflow-hidden z-20 pointer-events-none print:hidden",S&&"invisible",e),"aria-hidden":S||void 0,inert:S||void 0,children:(0,t.jsx)("div",{className:(0,G.cn)(c.Classes.ChatAssistantFloatingInput,"w-full group/assistant-bar relative",!V&&'before:content-[""] before:absolute before:left-0 before:right-0 before:top-[calc(50%-0.5rem)] sm:before:top-[calc(50%-0.75rem)] before:h-[200px] before:bg-background-light dark:before:bg-background-dark',b&&"transition-[translate,opacity] duration-300",!1!==f?"translate-y-[100px] opacity-0":"translate-y-0 opacity-100"),onClick:T,children:(0,t.jsx)("div",{className:(0,G.cn)("relative pb-4 sm:pb-6",V&&"max-w-2xl mx-auto"),children:(0,t.jsx)(tG.ChatInput,{variant:w?"bar":"panel",showKeyboardHint:C.show,keyboardHintClassName:C.className,actionKey:k,minRows:2,isMobile:h,readOnly:H,onSubmit:P,className:w?tU.pillInputStyles:void 0,trailingContent:I&&!S?(0,t.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),A()},className:(0,G.cn)("flex items-center justify-center rounded-full p-1 text-gray-500 dark:text-gray-400","hover:text-gray-700 dark:hover:text-gray-200 hover:bg-gray-950/5 dark:hover:bg-white/10",h?"size-7":"size-6"),"aria-label":p["aria.toggleAssistantPanel"],children:(0,t.jsx)(tR,{"aria-hidden":"true",className:(0,G.cn)("shrink-0",h?"size-4":"size-3.5")})}):void 0})})})})};var tX=e.i(343534);e.s([],946194);var tY=e.i(479721),tK=e.i(292981),tJ=e.i(154392),tQ=e.i(225913),t0=e.i(517956),t1=e.i(428681);e.i(914140);var t2=e.i(773626);let t5=({href:e,onClick:r,...a})=>{let{isLivePreview:n,getLivePreviewHref:s,navigateWithinLivePreview:l,requestContentEarly:o}=(0,i.useContext)(K.LivePreviewContext),d=s(e);return(0,t.jsx)(ei.default,{...a,href:d,prefetch:!n&&void 0,onClick:t=>{if(r?.(t),t.defaultPrevented)return;let s=0===t.button&&!t.metaKey&&!t.ctrlKey&&!t.shiftKey&&!t.altKey&&"_blank"!==a.target;n&&s&&(o?.(e),l?.(d)&&t.preventDefault())}})},t4=(0,tQ.cva)("",{variants:{variant:{default:"grid lg:grid-cols-2 gap-4",mint:"px-0.5 flex items-center gap-6 text-sm font-semibold text-gray-700 dark:text-gray-200",linden:"grid gap-4",maple:"w-full rounded-2xl flex bg-gray-50/80 dark:bg-white/[0.03] p-1 text-sm"},single:{true:null,false:null}},compoundVariants:[{variant:"linden",single:!1,className:"lg:grid-cols-2"},{variant:"linden",single:!0,className:"lg:grid-cols-1"}]}),t6=(0,tQ.cva)("group flex items-center min-w-0 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary dark:focus-visible:outline-primary-light",{variants:{variant:{default:"border border-gray-200/70 dark:border-gray-800/70 rounded-xl py-3 px-4 hover:border-gray-300 dark:hover:border-gray-700",mint:"gap-3 rounded-sm",linden:"gap-1 justify-center py-1.5 px-3 text-sm text-primary dark:text-primary-light hover:text-primary-dark dark:hover:text-primary border border-current rounded-lg"},align:{left:null,right:null}},compoundVariants:[{variant:"default",align:"left",className:"justify-start"},{variant:"default",align:"right",className:"justify-end"},{variant:"mint",align:"right",className:"ml-auto"}]}),t3=(0,tQ.cva)("truncate",{variants:{variant:{default:"font-medium text-gray-900 dark:text-gray-200",mint:"group-hover:text-gray-900 dark:group-hover:text-white",linden:"font-medium uppercase",maple:"font-semibold text-gray-800 dark:text-gray-200 w-full"},align:{left:null,right:null}},compoundVariants:[{variant:"default",align:"right",className:"text-right"},{variant:"maple",align:"right",className:"text-right"}]}),t7=(0,tQ.cva)("size-2.5 shrink-0",{variants:{variant:{default:"text-gray-400 dark:text-gray-600 group-hover:text-gray-500 dark:group-hover:text-gray-500",linden:"",maple:"text-gray-300 dark:text-gray-700 group-hover:text-gray-600 dark:group-hover:text-gray-400"}}}),t8={default:2,linden:2.5,maple:3},t9=({variant:e,align:r,children:a})=>(0,t.jsx)("div",{className:t3({variant:e,align:r}),"data-component-part":"pagination-title",children:a}),re=({variant:e,direction:r})=>{let a="left"===r?tJ.ChevronLeftIcon:eW.ChevronRightIcon;return(0,t.jsx)(a,{"aria-hidden":"true",strokeWidth:t8[e],className:t7({variant:e}),"data-component-part":"pagination-chevron"})},rt=({direction:e})=>(0,t.jsx)("svg",{viewBox:"0 0 3 6","aria-hidden":"true","data-component-part":"pagination-chevron",className:(0,G.cn)("h-1.5 shrink-0 stroke-gray-400 overflow-visible group-hover:stroke-gray-600 dark:group-hover:stroke-gray-300","right"===e&&"rotate-180"),children:(0,t.jsx)("path",{d:"M3 0L0 3L3 6",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),rr=e=>"left"===e?c.Classes.PaginationPrev:c.Classes.PaginationNext,ra=e=>"left"===e?"prev":"next",rn=e=>"left"===e?"pagination-prev":"pagination-next",rs=({variant:e,align:r,page:a,label:n})=>{let s="mint"===e?(0,tK.getSidebarTitle)(a):a.title,i="mint"===e?(0,t.jsx)(rt,{direction:r}):(0,t.jsx)(re,{variant:"linden",direction:r});return(0,t.jsxs)(t5,{href:a.href||"/",rel:ra(r),"aria-label":`${n}: ${s}`,"data-component-part":rn(r),className:(0,G.cn)(t6({variant:e,align:r}),rr(r)),children:["left"===r&&i,(0,t.jsx)(t9,{variant:e,align:r,children:s}),"right"===r&&i]})},ri=({align:e,page:r,label:a})=>(0,t.jsx)(t5,{href:r.href||"/",rel:ra(e),"data-component-part":rn(e),className:(0,G.cn)(t6({variant:"default",align:e}),rr(e)),children:(0,t.jsxs)("div",{className:"space-y-1 min-w-0 max-w-full",children:[(0,t.jsx)(t9,{variant:"default",align:e,children:r.title}),(0,t.jsxs)("div",{className:(0,G.cn)("flex items-center text-sm text-gray-500 dark:text-gray-400 group-hover:text-gray-600 dark:group-hover:text-gray-300 gap-x-1","right"===e&&"flex-row-reverse"),children:[(0,t.jsx)(re,{variant:"default",direction:e}),(0,t.jsx)("span",{className:"font-medium","data-component-part":"pagination-label",children:a})]})]})}),rl=({variant:e,align:r,page:a,label:n})=>a?"default"===e?(0,t.jsx)(ri,{align:r,page:a,label:n}):(0,t.jsx)(rs,{variant:e,align:r,page:a,label:n}):"mint"===e?null:(0,t.jsx)("div",{}),ro=({children:e})=>(0,t.jsx)("span",{className:"text-gray-600 dark:text-gray-400 font-medium tracking-tight group-hover:text-gray-900 dark:group-hover:text-gray-100","data-component-part":"pagination-label",children:e}),rd=({previous:e,next:r,previousText:a,nextText:n})=>(0,t.jsxs)(t.Fragment,{children:[null!=e&&null!=r&&(0,t.jsxs)(t5,{href:e.href||"/",rel:"prev","aria-label":`${a}: ${(0,tK.getSidebarTitle)(e)}`,"data-component-part":"pagination-prev",className:(0,G.cn)("group flex items-center justify-between pl-3 pr-6 space-x-1.5 rounded-xl focus-visible:z-10 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary dark:focus-visible:outline-primary-light",c.Classes.PaginationPrev),children:[(0,t.jsx)(re,{variant:"maple",direction:"left"}),(0,t.jsx)(ro,{children:a})]}),e&&null==r&&(0,t.jsx)(t5,{href:e.href||"/",rel:"prev","data-component-part":"pagination-prev",className:(0,G.cn)("group w-full min-w-0 rounded-xl focus-visible:z-10 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary dark:focus-visible:outline-primary-light",c.Classes.PaginationPrev),children:(0,t.jsxs)("div",{className:"flex-1 flex items-center justify-start h-16 bg-background-light dark:bg-background-dark hover:ring-1 hover:ring-gray-200 dark:hover:ring-gray-800 rounded-xl",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center pl-3 pr-5 space-x-1.5",children:[(0,t.jsx)(re,{variant:"maple",direction:"left"}),(0,t.jsx)(ro,{children:a})]}),(0,t.jsx)("div",{className:"w-px h-8 bg-gray-100 dark:bg-white/5"}),(0,t.jsxs)("div",{className:"flex flex-col items-start justify-center px-5 min-w-0",children:[(0,t.jsx)(t9,{variant:"maple",align:"left",children:(0,tK.getSidebarTitle)(e)}),e.description&&(0,t.jsx)("span",{className:"text-left text-gray-500 dark:text-gray-400 w-full truncate","data-component-part":"pagination-description",children:e.description})]})]})}),null!=r&&(0,t.jsx)(t5,{href:r.href||"/",rel:"next","data-component-part":"pagination-next",className:(0,G.cn)("group w-full min-w-0 rounded-xl focus-visible:z-10 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary dark:focus-visible:outline-primary-light",c.Classes.PaginationNext),children:(0,t.jsxs)("div",{className:"flex-1 flex items-center justify-end h-16 bg-background-light dark:bg-background-dark hover:ring-1 hover:ring-gray-200 dark:hover:ring-gray-800 rounded-xl",children:[(0,t.jsxs)("div",{className:"flex flex-col items-end justify-center px-5 min-w-0",children:[(0,t.jsx)(t9,{variant:"maple",align:"right",children:(0,tK.getSidebarTitle)(r)}),r.description&&(0,t.jsx)("span",{className:(0,G.cn)("hidden text-right text-gray-500 dark:text-gray-400 lg:block w-full truncate",null!=e?"lg:w-72":"lg:w-96"),"data-component-part":"pagination-description",children:r.description})]}),(0,t.jsx)("div",{className:"w-px h-8 bg-gray-100 dark:bg-white/5"}),(0,t.jsxs)("div",{className:"pl-5 pr-3 text-gray-600 dark:text-gray-400 flex items-center space-x-1.5",children:[(0,t.jsx)(ro,{children:n}),(0,t.jsx)(re,{variant:"maple",direction:"right"})]})]})})]}),rc=()=>{let{docsConfig:e}=(0,i.useContext)(r.DocsConfigContext),n=e?.theme,s=(e=>{switch(e){case"mint":case"willow":return"mint";case"maple":return"maple";case"linden":return"linden";default:return"default"}})(n),{previous:l,next:c}=function(e){let[{pageMetadata:t}]=(0,ti.useMDXContent)(),{prev:r,next:n}=function(){let e=(0,ty.useCurrentPath)(),{divisions:t}=(0,i.useContext)(a.NavigationContext);return(0,i.useMemo)(()=>{let r=(e=>{let t=[],r=e=>{if((0,t0.isPage)(e)&&t.push(e),"pages"in e&&Array.isArray(e.pages)){if("root"in e&&null!=e.root&&"object"==typeof e.root){let a=e.root;(0,t0.isPage)(a)?t.push({...a,href:(0,t1.replaceSlashIndex)(a.href)}):r(a)}for(let a of e.pages)if((0,t0.isPage)(a)){let e={...a,href:(0,t1.replaceSlashIndex)(a.href)};t.push(e)}else r(a)}};for(let t of e)r(t);return t})(t.groupsOrPages),a=r.findIndex(t=>(0,t2.isEqualIgnoringLeadingSlash)(t.href,e));return{prev:a>-1?r[a-1]:void 0,next:a>-1?r[a+1]:void 0}},[e,t.groupsOrPages])}(),{isCustom:s}=(0,o.usePageMode)(),l=e?.hideOnCustomPages??!1,d=!0===t.hideFooterPagination||l&&s;return{previous:d?void 0:r,next:d?void 0:n,isHidden:d}}({hideOnCustomPages:"maple"===s}),{previous:u,next:x}=(0,a.useSelectedLocale)();if(null==l&&null==c)return null;let m=(0,G.cn)(t4({variant:s,single:!(l&&c)}),(0,tY.themePagination)({theme:n}));return(0,t.jsx)("nav",{id:d.Ids.Pagination,"aria-label":"Pagination",className:m,children:"maple"===s?(0,t.jsx)(rd,{previous:l,next:c,previousText:u,nextText:x}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(rl,{variant:s,align:"left",page:l,label:u}),(0,t.jsx)(rl,{variant:s,align:"right",page:c,label:x})]})})};function ru({pageMetadata:e,children:r,renderFooter:a=!0}){let{isCenter:n,isCustom:s,isFrame:i,isWide:l}=(0,tX.getPageMode)(e),o=n||s||i;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(tf.PageHeader,{}),(0,t.jsx)(tu,{inline:n||s||l,mobile:!0}),(0,t.jsx)(eZ.MdxPanel,{mobile:!0}),(0,t.jsx)(tx.Api,{pageMetadata:e,children:r}),(0,t.jsx)(tm.Content,{pageMetadata:e,children:r}),(0,t.jsx)(tt,{}),(0,t.jsx)(tp,{pageMetadata:e}),(0,t.jsx)(eO,{}),(0,t.jsx)(tF,{}),(0,t.jsx)(rc,{}),(0,t.jsx)(tq,{className:o?"hidden":void 0}),a&&(0,t.jsx)(eL,{})]})}function rx(){let{docsConfig:e}=(0,i.useContext)(r.DocsConfigContext),{selectedLocale:t}=(0,i.useContext)(a.NavigationContext);return(0,i.useMemo)(()=>{if(t&&e&&"languages"in e.navigation){let r=e.navigation.languages.find(e=>e.language===t);if(r?.navbar)return r.navbar}return e?.navbar},[e,t])}function rm({className:r,href:a,label:n,actionClassName:l,iconClassName:o,labelClassName:d}){let u=rx(),x=(0,s.useAnalyticsContext)("docs.navitem.cta_click"),m=(0,s.useAnalyticsContext)("docs.navitem.click"),[g,h]=(0,i.useState)(),p=u?.primary,f=!a,y=a??(p?.type==="discord"?p.href:void 0),b=n??(f&&p?.type==="discord"?p.label:void 0),v=(0,i.useMemo)(()=>{if(!y)return null;try{let e=new URL(y),t=e.pathname;if("discord.gg"===e.hostname)return t.slice(1)||null;if("discord.com"===e.hostname||"www.discord.com"===e.hostname){let e=t.split("/").filter(Boolean);if("invite"===e[0]&&e[1])return e[1]}return null}catch{return null}},[y]),j=(0,i.useCallback)(async()=>{if(null==v)return;let t=await e.A(547846).then(e=>e.default),{data:r}=await t.get(`https://discord.com/api/v10/invites/${v}?with_counts=true`);r.guild?.name&&"number"==typeof r.approximate_presence_count&&h({presence_count:r.approximate_presence_count,name:r.guild.name})},[v]);if((0,i.useEffect)(()=>{j().catch(console.error)},[j]),null==v||!y)return null;let k=b||g?.name||"Discord",w=!!l,C=()=>{w?m({name:k,url:y}):x({url:y,type:"discord"})},N=g&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex items-center justify-center size-3",children:(0,t.jsx)("div",{className:"size-1.5 bg-green-500 rounded-full"})}),(0,t.jsxs)("span",{children:[g.presence_count.toLocaleString()," online"]})]});return w?(0,t.jsx)("li",{className:(0,G.cn)(c.Classes.NavBarLink,"max-w-full",r),children:(0,t.jsxs)("a",{href:y,target:"_blank",rel:"noreferrer",onClick:C,title:k,className:(0,G.cn)(l,"group min-w-0"),children:[(0,t.jsx)(tl.DiscordIcon,{className:(0,G.cn)("size-4 shrink-0",o)}),(0,t.jsx)("span",{className:(0,G.cn)("truncate",d),children:k}),g&&(0,t.jsx)("span",{className:"flex items-center gap-1.5 ml-1 shrink-0",children:N})]})}):(0,t.jsx)("li",{className:(0,G.cn)("cursor-pointer max-w-full",r),children:(0,t.jsx)("a",{href:y,target:"_blank",rel:"noreferrer",onClick:C,title:k,className:"group flex items-center rounded-md hover:text-primary dark:hover:text-primary-light min-w-0",children:(0,t.jsxs)("div",{className:"flex items-center gap-1.5 h-8 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,t.jsx)(tl.DiscordIcon,{className:(0,G.cn)("size-4 shrink-0",o)}),(0,t.jsx)("span",{className:(0,G.cn)("text-sm font-medium text-gray-700 dark:text-gray-300 group-hover:text-primary dark:group-hover:text-primary-light truncate",d),children:k})]}),g&&(0,t.jsx)("div",{className:"flex items-center gap-1.5 ml-1 shrink-0",children:N})]})})})}e.s(["DiscordCta",()=>rm],689907),e.s(["useLocalizedNavbar",()=>rx],330329),e.s(["Dropdowns",()=>rf],154601);var rg=e.i(628083);let rh="solid";function rp({dropdown:e,isActive:r,iconClassName:a,itemClassName:n}){let s=e.color;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,G.cn)(c.Classes.DropdownItemIcon,"size-8 flex items-center justify-center rounded-lg shrink-0 border border-gray-200/70 dark:border-white/[0.07]"),children:(0,t.jsx)(Q.ComponentIcon,{icon:"string"==typeof e.icon?e.icon:e.icon?.name??"layers",iconType:"string"==typeof e.icon?rh:e.icon?.style||rh,className:(0,G.cn)("size-4 bg-primary dark:bg-primary-light",a),color:s?.light??s?.dark,overrideColor:!0})}),(0,t.jsxs)("div",{className:(0,G.cn)(c.Classes.DropdownItemTextContainer,"flex-1 px-1 flex flex-col grow text-left"),children:[(0,t.jsx)("p",{className:(0,G.cn)(c.Classes.DropdownItemTitle,"text-base lg:text-sm font-medium",r?"text-primary dark:text-primary-light":"text-gray-800 dark:text-gray-300",n),children:e.dropdown}),e.description&&(0,t.jsx)("p",{className:(0,G.cn)(c.Classes.DropdownItemDescription,"hidden lg:block text-sm lg:text-xs text-gray-600 dark:text-gray-400"),title:e.description,children:e.description})]}),r&&(0,t.jsx)(rg.Check2Icon,{"aria-hidden":"true",strokeWidth:2,className:"ml-2 size-4 text-primary dark:text-primary-light shrink-0"})]})}let rf=({triggerClassName:e,iconClassName:r,itemClassName:n})=>{let[s,l]=(0,i.useState)(!1),{divisions:o,isAuthNavigationPending:d}=(0,i.useContext)(a.NavigationContext),u=o.dropdowns,x=u.find(e=>e.isActive)??u[0],m=(0,tB.useMediaQuery)("(max-width: 1024px)");return 0!==u.length&&x?d?(0,t.jsxs)("div",{"aria-hidden":"true",className:(0,G.cn)(c.Classes.DropdownTrigger,"mb-4 z-10 flex w-full items-center pl-2 pr-3.5 py-1.5 rounded-[0.85rem] border border-gray-200/70 dark:border-white/[0.07] gap-1 animate-pulse",e),children:[(0,t.jsx)("div",{className:"size-8 rounded-lg bg-gray-200 dark:bg-white/10 shrink-0"}),(0,t.jsx)("div",{className:"flex-1 px-1",children:(0,t.jsx)("div",{className:"h-3 w-24 rounded bg-gray-200 dark:bg-white/10"})})]}):(0,t.jsxs)(tn.DropdownMenu,{open:s,onOpenChange:l,children:[(0,t.jsxs)(tn.DropdownMenuTrigger,{className:(0,G.cn)(c.Classes.DropdownTrigger,"mb-4 z-10 group flex w-full items-center pl-2 pr-3.5 py-1.5 rounded-[0.85rem] border border-gray-200/70 dark:border-white/[0.07] hover:bg-gray-600/5 dark:hover:bg-gray-200/5 gap-1",e),children:[(0,t.jsx)(rp,{dropdown:x,isActive:!1,iconClassName:r,itemClassName:n}),(0,t.jsx)(tl.DropdownArrowIcon,{className:(0,G.cn)("rotate-90",s&&"rotate-[270deg]")})]}),(0,t.jsx)(tn.DropdownMenuContent,{className:(0,G.cn)(c.Classes.DropdownContent,"p-1 gap-2"),align:"start",style:{width:m?"var(--anchor-width)":"100%"},children:u.map(e=>(0,t.jsx)(eH.DynamicLink,{href:e.href,className:(0,G.cn)(c.Classes.DropdownItem,"rounded-xl text-gray-800 hover:text-gray-900 px-1.5 pr-2.5 py-1.5 dark:text-gray-300 dark:hover:text-gray-200 flex group items-center gap-1 hover:bg-gray-950/5 dark:hover:bg-white/5"),onClick:()=>l(!1),"data-dropdown-item":e.dropdown,"aria-current":e.isActive?"location":void 0,children:(0,t.jsx)(rp,{dropdown:e,isActive:e.isActive})},e.name+e.href))})]}):null};e.s(["GitHubCta",()=>rb],528106);var ry=e.i(114140);function rb({className:r,href:a,label:n,actionClassName:l,iconClassName:o,labelClassName:d}){let u=rx(),x=(0,s.useAnalyticsContext)("docs.navitem.cta_click"),m=(0,s.useAnalyticsContext)("docs.navitem.click"),[g,h]=(0,i.useState)(),p=u?.primary,f=!a,y=a??(p?.type==="github"?p.href:void 0),b=n??(f&&p?.type==="github"?p.label:void 0),v=(0,i.useMemo)(()=>y?(0,ry.default)(y):null,[y]),j=(0,i.useCallback)(async()=>{if(null==v)return;let t=await e.A(547846).then(e=>e.default),{data:r}=await t.get(`https://api.github.com/repos/${v.user}/${v.repo}`);"number"==typeof r.stargazers_count&&h(r)},[v]);if((0,i.useEffect)(()=>{j().catch(console.error)},[j]),null==v||!y)return null;let k=b||`${v.user}/${v.repo}`,w=!!l,C=()=>{w?m({name:k,url:y}):x({url:y,type:"github"})};return w?(0,t.jsx)("li",{className:(0,G.cn)(c.Classes.NavBarLink,"max-w-full",r),children:(0,t.jsxs)("a",{href:y,target:"_blank",rel:"noreferrer",onClick:C,title:k,className:(0,G.cn)(l,"group min-w-0"),children:[(0,t.jsx)(tl.GithubIcon,{className:(0,G.cn)("size-4 shrink-0",o)}),(0,t.jsx)("span",{className:(0,G.cn)("truncate",d),children:k}),g&&(0,t.jsxs)("span",{className:"flex items-center gap-1.5 ml-1 shrink-0",children:[(0,t.jsx)(Q.default,{className:"size-3.5",icon:"star",iconType:"regular",color:"currentColor"}),(0,t.jsx)("span",{className:(0,G.cn)(d),children:g.stargazers_count.toLocaleString()})]})]})}):(0,t.jsx)("li",{className:(0,G.cn)("cursor-pointer max-w-full",r),children:(0,t.jsx)("a",{href:y,target:"_blank",rel:"noreferrer",onClick:C,title:k,className:"group flex items-center rounded-md hover:text-primary dark:hover:text-primary-light min-w-0",children:(0,t.jsxs)("div",{className:"flex items-center gap-1.5 h-8 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,t.jsx)(tl.GithubIcon,{className:(0,G.cn)("size-4 shrink-0",o)}),(0,t.jsx)("span",{className:(0,G.cn)("text-sm font-medium text-gray-700 dark:text-gray-300 group-hover:text-primary dark:group-hover:text-primary-light truncate",d),children:k})]}),g&&(0,t.jsxs)("div",{className:"flex items-center gap-1.5 ml-1 shrink-0",children:[(0,t.jsx)(Q.default,{className:"size-3.5",icon:"star",iconType:"regular",color:"currentColor"}),(0,t.jsx)("span",{className:(0,G.cn)("text-sm",d),children:g.stargazers_count.toLocaleString()})]})]})})})}e.s(["LocalizationSelect",()=>rk],574546),e.i(876469);var rv=e.i(117595);let rj=e=>{rv.default.set("mintlify_preferred_locale",e,{expires:365,path:"/",sameSite:"lax"})};function rk({triggerClassName:e,center:r=!1}){let{divisions:n,selectedLocale:s,setSelectedLocale:l,pageMetadata:o,isAuthNavigationPending:c}=(0,i.useContext)(a.NavigationContext),u=(0,tB.useMediaQuery)("(max-width: 1024px)");(0,i.useEffect)(()=>{s&&document.documentElement.lang!==s&&(document.documentElement.lang=s)},[s]);let x=(0,i.useMemo)(()=>n.languages.map(e=>{let t=o[`${e.language}_link`],r="string"==typeof t?t:e.href;return{label:(0,tg.getLocale)(e.language).language,value:e.language,href:r,isActive:e.isActive}}),[n.languages,o]);if(c||0===x.length||!n.languages.length)return null;let m=x.find(e=>e.value===s);return(0,t.jsxs)(tn.DropdownMenu,{children:[(0,t.jsxs)(tn.DropdownMenuTrigger,{"data-component-part":"localization-select-trigger",className:(0,G.cn)("py-1.5 px-2.5 rounded-xl hover:bg-gray-600/5! dark:hover:bg-gray-200/5! aria-[expanded=true]:bg-gray-600/5 dark:aria-[expanded=true]:bg-gray-200/5 text-sm font-medium text-gray-900 h-8 focus-visible:outline-primary dark:focus-visible:outline-primary-light dark:text-gray-300 group/trigger flex items-center gap-2 whitespace-nowrap",e),id:d.Ids.LocalizationSelectTrigger,children:[(0,t.jsx)("span",{className:"truncate max-w-[12.5rem]",children:m?.label}),(0,t.jsx)(tl.DropdownArrowIcon,{className:(0,G.cn)("rotate-90 group-aria-[expanded=true]/trigger:rotate-[270deg]",!r&&"ml-auto")})]}),(0,t.jsx)(tn.DropdownMenuContent,{"data-component-part":"localization-select-content",id:d.Ids.LocalizationSelectContent,side:"bottom",align:"start",className:"max-h-[420px] p-1 border border-gray-200 dark:border-white/[0.07]",style:{width:u?"var(--anchor-width)":void 0},children:x.map(e=>{let r=e.value===m?.value;return(0,t.jsxs)(g.Menu.Item,{"data-component-part":"localization-select-item","data-selected":r,onClick:e.href?()=>rj(e.value):()=>{var t;rj(t=e.value),l(t)},render:e.href?(0,t.jsx)(eH.DynamicLink,{href:e.href}):void 0,"aria-selected":r,className:"flex outline-hidden! items-center pl-2.5 pr-4 py-2 gap-2 focus:bg-gray-600/5 dark:focus:bg-gray-200/5 cursor-pointer rounded-xl",id:d.Ids.LocalizationSelectItem+"-"+e.value,children:[(0,t.jsx)("p",{className:(0,G.cn)("flex-1 text-sm font-medium",r?"text-primary dark:text-primary-light":"text-gray-800 dark:text-gray-300"),children:e.label}),r&&(0,t.jsx)(rg.Check2Icon,{"aria-hidden":"true",strokeWidth:2,className:"size-4 shrink-0 text-primary dark:text-primary-light"})]},e.value)})})]})}function rw({actionClassName:e}){let r=rx(),a=(0,s.useAnalyticsContext)("docs.navitem.cta_click"),n=r?.primary;if(!n)return null;switch(n.type){case"github":return(0,t.jsx)(rb,{className:"flex lg:hidden"});case"discord":return(0,t.jsx)(rm,{className:"flex lg:hidden"});case"button":return(0,t.jsx)("li",{className:"block lg:hidden",children:(0,t.jsx)(ei.default,{href:n.href,prefetch:!1,className:e,onClick:()=>a({name:n.label,url:n.href,type:"button"}),children:(0,t.jsx)("span",{className:"min-w-0 truncate",children:n.label})})})}}e.s(["MobileTopBarCtaButton",()=>rw],94548),e.s([],834598),e.s(["MoreActionsButton",()=>rC],346211);let rC=({onClick:e,desktop:r})=>{let n=(0,a.useSelectedLocale)();return(0,t.jsx)("button",{type:"button","aria-label":n["aria.moreActions"],className:(0,G.cn)(r?"flex items-center justify-center size-9 rounded-full bg-gray-950/[0.03] dark:bg-white/[0.03] hover:bg-gray-950/10 dark:hover:bg-white/10 transition-colors":"h-7 w-5 flex items-center justify-center relative",!r&&"after:content-[''] after:absolute after:-inset-y-2 after:-left-1 after:-right-4"),onClick:e,children:(0,t.jsx)(Q.default,{icon:"ellipsis-vertical",iconType:"solid",className:"size-4 shrink-0 bg-gray-500 dark:bg-gray-400 hover:bg-gray-600 dark:hover:bg-gray-300"})})};e.s(["NavbarLinks",()=>rI],258202);var rN=e.i(604804);e.s(["TopbarPrimary",()=>rS],414245),e.i(673592);let rL={link:"group pl-3 pr-2 py-1.5 relative inline-flex items-center text-sm font-medium",container:"gap-1 flex items-center",background:"absolute inset-0 bg-primary-dark rounded-xl group-hover:opacity-[0.9]",textClass:"text-white",arrow:"text-white/90"},rM={...rL,link:"group pl-3 pr-2 py-2 relative inline-flex items-center text-sm font-medium"},rV={default:rL,mint:rM,aspen:rM,linden:{link:"group text-primary dark:text-primary-light hover:text-primary-dark dark:hover:text-primary border border-current rounded-lg pl-3 pr-2 py-1.5 relative inline-flex items-center text-sm font-semibold",container:"flex items-center gap-1",arrow:""},palm:{link:"group py-1.5 relative inline-flex items-center text-sm font-medium",container:"mr-0.5 flex items-center gap-1 text-primary dark:text-primary-light hover:text-primary-dark dark:hover:text-primary-light font-medium",arrow:"opacity-90"},willow:{link:"group py-1.5 relative inline-flex items-center text-sm font-medium",container:"gap-1 flex items-center text-gray-950/90 dark:text-white/90 hover:text-gray-950 dark:hover:text-white",arrow:"text-current"},almond:{link:"group bg-primary-dark hover:opacity-[0.9] rounded-lg px-2.5 py-1.5 relative inline-flex items-center text-sm font-semibold",container:"flex items-center gap-2",textClass:"text-white",arrow:"hidden"},luma:{link:"group bg-primary dark:bg-primary-light hover:opacity-80 rounded-full h-[34px] px-4 relative inline-flex items-center text-sm font-medium transition-opacity",container:"flex items-center gap-1.5",textClass:"text-white dark:text-gray-950",arrow:"hidden"}};function rS(){let{docsConfig:e}=(0,i.useContext)(r.DocsConfigContext),a=rx(),n=(0,s.useAnalyticsContext)("docs.navitem.cta_click"),l=a?.primary,o=rV[e?.theme??"mint"]??rV.default;return l?"github"===l.type?(0,t.jsx)(rb,{className:"hidden lg:flex"}):"discord"===l.type?(0,t.jsx)(rm,{className:"hidden lg:flex"}):l.href&&l.label?(0,t.jsx)("li",{className:"whitespace-nowrap hidden lg:flex",id:d.Ids.TopbarCtaButton,children:(0,t.jsxs)(ei.default,{href:l.href,prefetch:!1,target:"_blank",rel:"noopener noreferrer",className:o.link,onClick:()=>n({name:l.label,url:l.href,type:"button"}),children:[o.background&&(0,t.jsx)("span",{className:o.background}),(0,t.jsxs)("div",{className:(0,G.cn)(tr.zIndex.Control,o.container),children:[(0,t.jsx)("span",{className:(0,G.cn)(o.textClass),children:l.label}),(0,t.jsx)(eW.ChevronRightIcon,{"aria-hidden":"true",strokeWidth:2,className:(0,G.cn)("size-3 shrink-0",o.arrow)})]})]})}):null:null}function rI({actionClassName:e,showThemeToggle:r,hideMobileCtaButton:a,hideTopbarPrimary:n,authOnly:l}){let o=rx(),d=(0,s.useAnalyticsContext)("docs.navitem.click"),{userAuthLoginButton:u,authLoginButton:x,authLogoutButton:m,userAuthLogoutButton:g}=(0,i.useContext)(rN.LoginButtonContext),h=(0,i.useCallback)((e,t)=>d({name:e,url:t}),[d]);return l?(0,t.jsxs)(t.Fragment,{children:[u&&u,g&&g,x&&x,m&&m]}):(0,t.jsxs)(t.Fragment,{children:[o?.links?.map(r=>{let a=(0,et.isAbsoluteUrl)(r.href),{label:n,type:s}=r;return"github"===s?(0,t.jsx)(rb,{href:r.href,label:n||"",actionClassName:e},r.href):"discord"===s?(0,t.jsx)(rm,{href:r.href,label:n||"",actionClassName:e},r.href):a?(0,t.jsx)("li",{className:(0,G.cn)(c.Classes.NavBarLink),children:(0,t.jsxs)("a",{href:r.href,className:e,onClick:()=>h(n,r.href),target:"_blank",rel:"noopener noreferrer",children:[r.icon&&(0,t.jsx)(Q.ComponentIcon,{icon:"string"==typeof r.icon?r.icon:r.icon.name,iconType:"string"==typeof r.icon?"regular":r.icon.style||"regular",className:"h-4 w-4"}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:n})]})},n):(0,t.jsx)("li",{className:(0,G.cn)(c.Classes.NavBarLink),children:(0,t.jsxs)(ei.default,{href:r.href||"/",className:e,onClick:()=>h(n,r.href),children:[r.icon&&(0,t.jsx)(Q.ComponentIcon,{icon:"string"==typeof r.icon?r.icon:r.icon.name,iconType:"string"==typeof r.icon?"regular":r.icon.style||"regular",className:"h-4 w-4"}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:n})]})},n)}),u&&(0,t.jsx)("li",{children:u},"login"),g&&(0,t.jsx)("li",{children:g},"personalization-logout"),x&&(0,t.jsx)("li",{children:x},"partial-auth-login"),m&&(0,t.jsx)("li",{children:m},"auth-logout"),r&&(0,t.jsx)("li",{children:(0,t.jsx)(eb,{})},"theme-toggle"),!a&&(0,t.jsx)(rw,{actionClassName:e}),!n&&(0,t.jsx)(rS,{})]})}e.s(["NavBarTransition",()=>rE],314783);var rH=e.i(915476);(function(){let e=document.querySelectorAll("[id='navbar'], [data-top-chrome]"),t=0;e.forEach(e=>{let r=e.getBoundingClientRect();r.height>0&&(t=Math.max(t,r.bottom))});let r=0,a=document.getElementById("content-container");if(a){let{overflowY:e}=getComputedStyle(a);("auto"===e||"scroll"===e)&&(r=Math.max(0,a.getBoundingClientRect().top))}let n=`${Math.round(Math.max(0,t-r))+40}px`,s=document.documentElement.style;s.getPropertyValue("--scroll-mt")!==n&&s.setProperty("--scroll-mt",n)}).toString(),(function(e){let t=[],r=0,a="undefined"==typeof ResizeObserver?null:new ResizeObserver(s);function n(){let r=Array.from(document.querySelectorAll("[id='navbar'], [data-top-chrome]"));(r.length!==t.length||r.some((e,r)=>e!==t[r]))&&a&&(a.disconnect(),r.forEach(e=>a.observe(e))),t=r,e()}function s(){r||(r=requestAnimationFrame(()=>{r=0,n()}))}let i="[id='navbar'], [data-top-chrome]";function l(e){let t=e.target;if(t instanceof Element&&t.closest(i))return!0;for(let t of e.addedNodes)if(t instanceof Element&&(t.matches(i)||t.querySelector(i)))return!0;for(let t of e.removedNodes)if(t instanceof Element&&(t.matches(i)||t.querySelector(i)))return!0;return!1}new MutationObserver(e=>{e.some(l)&&s()}).observe(document.documentElement,{childList:!0,subtree:!0}),window.addEventListener("resize",s),"loading"===document.readyState&&document.addEventListener("DOMContentLoaded",n),n()}).toString(),(function(e){let t=window.location.hash.slice(1);if(!t)return;function r(){return"smooth"===getComputedStyle(document.documentElement).scrollBehavior}function a(r){let a=document.getElementById(t);return!!a&&(e(),a.scrollIntoView(r?{behavior:r}:void 0),!0)}if("complete"===document.readyState)return void a();let n=new MutationObserver(()=>{!r()&&a("instant")&&s()});function s(){n.disconnect(),window.removeEventListener("load",i)}function i(){let e=r();s(),e&&requestAnimationFrame(()=>{a(),function(){let e=["wheel","touchstart","keydown","pointerdown"],r=0,n=window.scrollY,s=setInterval(()=>{r+=1;let e=document.getElementById(t);if(!e||r>=6)return i();let s=Math.abs(window.scrollY-n)>1;if(n=window.scrollY,s)return;let l=parseFloat(getComputedStyle(e).scrollMarginTop)||0;Math.abs(e.getBoundingClientRect().top-l)>4&&a()},350);function i(){clearInterval(s),e.forEach(e=>window.removeEventListener(e,i))}e.forEach(e=>window.addEventListener(e,i,{passive:!0}))}()})}window.addEventListener("load",i),n.observe(document.documentElement,{childList:!0,subtree:!0}),!r()&&a("instant")&&s()}).toString(),e.s(["useSupportsBlur",()=>rD],119907);var rA=e.i(732610);let rT=/swiftshader|llvmpipe|softpipe|software|basic render/i,rP=null,rD=()=>{let[e,t]=(0,i.useState)(()=>rP??!1);return(0,i.useEffect)(()=>{t(rP??=(()=>{if((0,rA.isSafari)()||(0,rA.isIOS)()||(0,rA.isLinux)()||window.matchMedia("(prefers-reduced-transparency: reduce)").matches)return!1;try{let e=document.createElement("canvas"),t=e.getContext("webgl2",{failIfMajorPerformanceCaveat:!0})??e.getContext("webgl",{failIfMajorPerformanceCaveat:!0});if(!t)return!1;let r=t.getExtension("WEBGL_debug_renderer_info"),a=r?String(t.getParameter(r.UNMASKED_RENDERER_WEBGL)):"";return t.getExtension("WEBGL_lose_context")?.loseContext(),!rT.test(a)}catch{return!1}})())},[]),e};function rZ(e=50){let[t,r]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{function a(){!t&&window.scrollY>e?r(!0):t&&window.scrollY<=e&&r(!1)}return a(),window.addEventListener("scroll",a,{passive:!0}),()=>{window.removeEventListener("scroll",a)}},[t,e]),t}function rE({id:e,hasTabs:r,className:a,children:n}){let s=rZ(),i=rD();return r?(0,t.jsx)("div",{id:e,className:(0,G.cn)(tr.zIndex.SecondaryNav,"hidden lg:flex fixed top-0 left-[19rem] h-12 bottom-0 flex-none transition-colors duration-500 border-b dark:border-white/[0.07]",i?["backdrop-blur","data-[is-opaque=true]:bg-background-light data-[is-opaque=true]:supports-backdrop-blur:bg-background-light/95 data-[is-opaque=true]:dark:bg-background-dark/75","data-[is-opaque=false]:supports-backdrop-blur:bg-background-light/60 data-[is-opaque=false]:dark:bg-transparent"]:"bg-background-light dark:bg-background-dark","[[data-banner-state=visible]_&]:lg:mt-10",a),style:{right:`var(${rH.ASSISTANT_WIDTH_CSS_VAR}, 0px)`},"data-is-opaque":s,"data-top-chrome":"",children:n}):null}e.s([],764368),e.s(["useScrollOpacity",()=>rZ],696930),e.s(["ProductsSelector",()=>rR],86507);let rz="regular";function rF({icon:e,className:r}){return e?(0,t.jsx)(Q.ComponentIcon,{icon:"string"==typeof e?e:e.name,iconType:"string"==typeof e?rz:e.style||rz,className:r}):null}function r_({item:e,product:r}){let{setSelectedProduct:n}=(0,i.useContext)(a.NavigationContext),s=void 0!==e.icon;return(0,t.jsxs)(g.Menu.Item,{render:(0,t.jsx)(eH.DynamicLink,{href:e.href}),"data-component-part":"products-selector-item","data-selected":e.isActive,"aria-selected":e.isActive,onClick:()=>n?.(r),className:(0,G.cn)(c.Classes.ProductsSelectorItem,"grid outline-hidden! grid-rows-1 items-center pl-2.5 pr-4 py-2 gap-3 focus:bg-gray-600/5 dark:focus:bg-gray-200/5 cursor-pointer rounded-xl",s?"grid-cols-[24px_1fr_auto]":"grid-cols-[1fr_auto]"),children:[s&&(0,t.jsx)("div",{className:(0,G.cn)(c.Classes.ProductsSelectorItemIcon,"flex items-center justify-center"),children:(0,t.jsx)(rF,{icon:e.icon,className:"size-6 shrink-0"})}),(0,t.jsxs)("div",{className:"flex flex-col min-w-0",children:[(0,t.jsx)("p",{className:(0,G.cn)(c.Classes.ProductsSelectorItemTitle,"text-sm font-medium line-clamp-1",e.isActive?"text-primary dark:text-primary-light":"text-gray-800 dark:text-gray-300"),children:e.item}),(0,t.jsx)("p",{className:(0,G.cn)(c.Classes.ProductsSelectorItemDescription,"text-sm text-gray-600 dark:text-gray-400 line-clamp-1"),title:e.description,children:e.description})]}),e.isActive&&(0,t.jsx)(rg.Check2Icon,{"aria-hidden":"true",strokeWidth:2,className:"size-4 text-primary dark:text-primary-light shrink-0"})]})}function rO({item:e}){let{setSelectedProduct:r}=(0,i.useContext)(a.NavigationContext),n=void 0!==e.icon;return(0,t.jsxs)(g.Menu.Item,{render:(0,t.jsx)(eH.DynamicLink,{href:e.href}),"data-component-part":"products-selector-item","data-selected":e.isActive,"aria-selected":e.isActive,onClick:()=>r?.(e.product),className:(0,G.cn)(c.Classes.ProductsSelectorItem,"grid outline-hidden! grid-rows-1 items-center pl-2.5 pr-4 py-2 gap-2 focus:bg-gray-600/5 dark:focus:bg-gray-200/5 cursor-pointer rounded-xl",n?"grid-cols-[24px_1fr_auto]":"grid-cols-[1fr_auto]"),children:[n&&(0,t.jsx)("div",{className:(0,G.cn)(c.Classes.ProductsSelectorItemIcon,"flex items-center justify-center"),children:(0,t.jsx)(rF,{icon:e.icon,className:"size-4 shrink-0"})}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("p",{className:(0,G.cn)(c.Classes.ProductsSelectorItemTitle,"text-sm font-medium line-clamp-1",e.isActive?"text-primary dark:text-primary-light":"text-gray-800 dark:text-gray-300"),children:e.product}),(0,t.jsx)("p",{className:(0,G.cn)(c.Classes.ProductsSelectorItemDescription,"text-sm text-gray-600 dark:text-gray-400 line-clamp-1"),title:e.description,children:e.description})]}),e.isActive&&(0,t.jsx)(rg.Check2Icon,{"aria-hidden":"true",strokeWidth:2,className:"size-4 text-primary dark:text-primary-light shrink-0"})]})}let rR=({className:e,center:r=!1})=>{let{divisions:n,isAuthNavigationPending:s}=(0,i.useContext)(a.NavigationContext),{products:l}=n,o=l.length>0;if(s||!o)return null;let d=l.find(e=>e.isActive)??l[0],u=l.flatMap(e=>e.menu??[]),x=u.length>0,m=u.find(e=>e.isActive),g=!x&&d?.icon||m?.icon,h=!x&&d?.name||m?.item,p=l.some(e=>e.menu?.length);return(0,t.jsxs)(tn.DropdownMenu,{children:[(0,t.jsxs)(tn.DropdownMenuTrigger,{"data-component-part":"products-selector-trigger",className:(0,G.cn)(c.Classes.ProductsSelectorTrigger,"py-1.5 px-2.5 rounded-xl hover:bg-gray-600/5! dark:hover:bg-gray-200/5! aria-[expanded=true]:bg-gray-600/5 dark:aria-[expanded=true]:bg-gray-200/5 text-sm font-medium text-gray-900 h-8 focus-visible:outline-primary dark:focus-visible:outline-primary-light dark:text-gray-300 group/trigger flex items-center gap-2 whitespace-nowrap",e),children:[void 0!==g&&(0,t.jsx)(rF,{icon:g,className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"truncate max-w-[12.5rem]",title:h,children:h}),(0,t.jsx)(tl.DropdownArrowIcon,{className:(0,G.cn)("rotate-90 group-aria-[expanded=true]/trigger:rotate-[270deg]",!r&&"ml-auto")})]}),(0,t.jsx)(tn.DropdownMenuContent,{"data-component-part":"products-selector-content",side:"bottom",align:"start",className:(0,G.cn)(c.Classes.ProductsSelectorContent,"inline-flex max-h-[420px] p-1 border border-gray-200 dark:border-white/[0.07]",p?"w-[calc(100vw-2rem)] flex-col gap-2 overflow-y-auto p-1.5 sm:w-auto sm:max-w-[calc(100vw-2rem)] sm:flex-row sm:items-stretch sm:overflow-x-auto":"max-w-[16rem] md:max-w-[32rem] flex-col"),children:p?l.map((e,r)=>{let a=e.name,n=e.menu??[],s=r0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex w-full items-center rounded-xl px-2.5 py-2 text-sm font-medium text-gray-600 dark:text-gray-400",children:(0,t.jsx)("span",{className:"line-clamp-1",title:a,children:a})}),n.map((r,a)=>(0,t.jsx)(r_,{item:r,product:e.product},r.href+a))]}):(0,t.jsx)(rO,{item:e})}),s&&(0,t.jsx)("div",{className:"my-2 hidden w-px shrink-0 self-stretch bg-gray-200 dark:bg-white/[0.07] sm:block"})]},e.product+r)}):l.map((e,r)=>(0,t.jsx)(rO,{item:e},e.product+r))})]})};e.s(["Banner",()=>rX],265282);var rB=e.i(330080),rW=e.i(972920),r$=e.i(137829);let rG=(0,e.i(770703).default)(()=>e.A(849087).then(e=>e.BannerMarkdown),{loadableGenerated:{modules:[326952]}}),rU="--banner-height";function rq({atlas:e}){let r=(0,s.useAnalyticsContext)("docs.banner.atlas_signup_click"),a=e?.lastGenerated,n=e?.commitSha,i=e?.repoUrl,l=i&&n?`${i}/commit/${n}`:void 0,o=`https://app.mintlify.com/atlas/clone?atlas_deployment_id=${e?.id}&utm_medium=atlas_referral`,d=`https://app.mintlify.com/atlas/claim?atlas_deployment_id=${e?.id}&utm_medium=atlas_claim`,c=(0,s.useAnalyticsContext)("docs.banner.atlas_claim_click");return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("span",{className:"my-2 flex w-full items-center justify-center gap-4",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{"data-muted":!0,className:"text-white/60! dark:text-black/60!",children:"Generated"}),a&&(0,t.jsx)("span",{className:"hidden md:contents",children:l?(0,t.jsx)("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"no-underline! text-white/90! dark:text-black/90! hover:underline! hover:underline-offset-[3px]!",children:new Date(a).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}):(0,t.jsx)(t.Fragment,{children:new Date(a).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})}),(0,t.jsx)("span",{"data-muted":!0,className:"text-white/60! dark:text-black/60!",children:"by"}),(0,t.jsx)("a",{href:"https://mintlify.com/",target:"_blank",rel:"noopener noreferrer",className:"no-underline! opacity-90 hover:opacity-100 transition-opacity",children:(0,t.jsx)(u,{className:"h-3.5 w-auto translate-y-px"})})]}),(0,t.jsx)("span",{"data-muted":!0,className:"text-white/60! dark:text-black/60!",children:"|"}),(0,t.jsxs)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"no-underline! text-white/90! dark:text-black/90! hover:underline! hover:underline-offset-[3px]! inline-flex items-center gap-1",onClick:()=>{r({url:o})},children:["Use as starter template",(0,t.jsx)(eW.ChevronRightIcon,{"aria-hidden":"true",strokeWidth:2,className:"size-3.5 inline-block align-middle shrink-0"})]}),(0,t.jsx)("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:"absolute right-4 hidden md:inline-flex no-underline! text-white/90! dark:text-black/90! hover:bg-white/10 dark:hover:bg-black/[0.03] transition-colors items-center gap-1 border! border-solid! border-gray-700! dark:border-gray-200! rounded-md px-2",onClick:()=>{c({url:d})},children:"Claim this site"})]})})}let rX=()=>{let{banner:e,dismissBanner:r}=(0,i.useContext)(rB.BannerContext),n=(0,a.useSelectedLocale)(),s=(0,i.useRef)(null),l=!!e?.content;if((0,i.useLayoutEffect)(()=>{let e=s.current;if(!e)return void document.documentElement.style.setProperty(rU,"0px");let t=()=>{let t=e.offsetHeight;t>0&&document.documentElement.style.setProperty(rU,`${t}px`)},r=new ResizeObserver(()=>t());return r.observe(e),t(),()=>{r.disconnect(),document.documentElement.style.setProperty(rU,"0px")}},[l]),!e?.content)return null;let o=e.atlas,c=!!r,u=e.type??"info",x=o?void 0:e.color,m=x?.light??x?.dark,g=x?.dark??x?.light,h=m&&g?{"--banner-bg-light":m,"--banner-bg-dark":g}:void 0,p=(0,G.cn)(c?"px-10":"px-4","text-white/95 dark:text-white/95 [&_*]:text-white/95! dark:[&_*]:text-white/95!",h?"bg-(--banner-bg-light) dark:bg-(--banner-bg-dark)":"critical"===u?"bg-red-600 dark:bg-red-700 [&_a:hover]:decoration-red-100":"warning"===u?"bg-amber-500 dark:bg-amber-600 [&_a:hover]:decoration-amber-100":"bg-primary-dark [&_a:hover]:decoration-primary-light");return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{ref:s,id:d.Ids.Banner,style:h,className:(0,G.cn)("w-full min-h-10 relative lg:fixed lg:top-0 lg:left-0 text-center flex items-center justify-center text-sm [&_a]:border-none [&_a]:underline-offset-[3px] font-medium",o?"px-2 max-h-16 md:h-10 line-clamp-2 md:truncate md:[&>*]:truncate bg-black dark:bg-white text-white/90 dark:text-black/90 [&_*:not(a):not([data-muted])]:text-white/90! dark:[&_*:not(a):not([data-muted])]:text-black/90!":p,tr.zIndex.Banner),children:[o?(0,t.jsx)(rq,{content:e.content,atlas:e.atlas}):(0,rW.isPlainText)(e.content)?(0,t.jsx)("div",{className:"my-2 [&>p]:m-0",children:(0,t.jsx)("p",{children:e.content})}):(0,t.jsx)(rG,{content:e.content}),r&&(0,t.jsx)("button",{className:"absolute right-4 top-1/2 -translate-y-1/2 size-6.5 flex items-center justify-center rounded-md text-zinc-100 hover:bg-gray-800",onClick:()=>{r()},"aria-label":n["aria.dismissBanner"],children:(0,t.jsx)(r$.XmarkIcon,{strokeWidth:2,className:"size-4 shrink-0","aria-hidden":"true"})})]}),(0,t.jsx)("script",{dangerouslySetInnerHTML:{__html:`(function(){var b=document.getElementById(${JSON.stringify(d.Ids.Banner)});if(!b)return;var h=b.offsetHeight;if(h>0)document.documentElement.style.setProperty('--banner-height',h+'px');})();`}}),(0,t.jsx)("div",{className:"hidden lg:block h-[var(--banner-height,0px)]","aria-hidden":"true"})]})};e.s(["useTopbarMenuHasContent",()=>rY],84611);let rY=({includePrimary:e=!0}={})=>{let t=rx(),{userAuthLoginButton:r,userAuthLogoutButton:a,authLoginButton:n,authLogoutButton:s}=(0,i.useContext)(rN.LoginButtonContext),l=(t?.links?.length??0)>0,o=e&&!!t?.primary;return l||o||!!(r||a||n||s)};e.s(["default",()=>rQ],428103);var rK=e.i(414130),rJ=e.i(346089);let rQ=function({className:e,filledIcon:r=!1,iconClassName:n,children:s}){let{hasChatPermissions:l}=(0,i.useContext)(tW.SearchContext),{isChatSheetOpen:o,onChatSheetToggle:c}=(0,i.useContext)(tW.ChatAssistantContext),u=(0,a.useSelectedLocale)();if(!l)return null;let x=r?rK.Sparkle2FilledIcon:rJ.Sparkle3Icon;return(0,t.jsxs)("button",{onClick:()=>c({entryPoint:"mobile"}),id:d.Ids.AssistantEntryMobile,className:e,"aria-label":u["aria.toggleAssistantPanel"],children:[(0,t.jsx)(x,{"aria-hidden":"true",focusable:"false",className:(0,G.cn)("size-4.5",!r&&"text-gray-500 dark:text-gray-400 hover:text-gray-600 dark:hover:text-gray-300",r&&"text-primary dark:text-primary-light hover:text-primary-dark dark:hover:text-primary",o&&"text-primary dark:text-primary-light hover:text-primary-dark dark:hover:text-primary",n)}),s]})};e.s(["TabsBar",()=>r2],243677);let r0=({tab:e,className:r,activeClassName:a,underlineClassName:n,isNotFoundPage:s})=>{let[l,o]=(0,i.useState)(!1),d=(0,i.useRef)(null),u=e.menu??[];(0,i.useEffect)(()=>()=>{d.current&&clearTimeout(d.current)},[]);let x=()=>{d.current&&(clearTimeout(d.current),d.current=null),o(!0)},m=()=>{d.current=setTimeout(()=>{o(!1),d.current=null},100)};return(0,t.jsxs)(tn.DropdownMenu,{open:l,onOpenChange:o,children:[(0,t.jsxs)(g.Menu.Trigger,{className:(0,G.cn)(c.Classes.TabsBarItem,"group relative h-full gap-2 flex items-center outline-hidden!",r,e.isActive&&(0,G.cn)("text-gray-800 dark:text-gray-200 font-semibold",a)),onMouseEnter:x,onMouseLeave:m,children:[(0,t.jsxs)("div",{className:(0,G.cn)("flex items-center gap-2 font-medium text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-300",e.isActive&&"text-gray-800 dark:text-gray-200 font-semibold",l&&"text-gray-800 dark:text-gray-300","rounded-[2px] group-focus-visible:outline outline-offset-[6px] group-focus-visible:outline-2 group-focus-visible:outline-primary dark:group-focus-visible:outline-primary-light"),children:[e.icon&&(0,t.jsx)(Q.ComponentIcon,{icon:"string"==typeof e.icon?e.icon:e.icon.name,iconType:"string"==typeof e.icon?"regular":e.icon.style,className:(0,G.cn)("size-4",e.isActive||l?"bg-gray-800 dark:bg-gray-300":"bg-gray-600 dark:bg-gray-400"),overrideColor:!0}),e.name,(0,t.jsx)(tl.DropdownArrowIcon,{className:(0,G.cn)("text-gray-400 dark:text-gray-600 group-hover:text-gray-600 dark:group-hover:text-gray-400 rotate-90",l&&"rotate-[270deg]")})]}),(0,t.jsx)("div",{className:(0,G.cn)("absolute bottom-0 h-[1.5px] w-full",!s&&e.isActive?"bg-primary dark:bg-primary-light":"group-hover:bg-gray-200 dark:group-hover:bg-gray-700",n)})]}),(0,t.jsx)(tn.DropdownMenuContent,{align:"start",side:"bottom",sideOffset:-4,alignOffset:-4,finalFocus:e=>"keyboard"===e,onMouseEnter:x,onMouseLeave:m,className:"p-1 border border-gray-200 dark:border-white/[0.07] w-56 transition-none! data-starting-style:opacity-100! data-starting-style:scale-100! data-ending-style:opacity-100! data-ending-style:scale-100!",children:u.map((e,r)=>(0,t.jsxs)(g.Menu.Item,{render:(0,t.jsx)(eH.DynamicLink,{href:e.href,"aria-current":e.isActive?"location":void 0}),onClick:()=>o(!1),className:(0,G.cn)(c.Classes.DropdownItem,"rounded-xl text-gray-600 hover:text-gray-800 px-2.5 py-2 dark:text-gray-400 dark:hover:text-gray-300 flex group items-center gap-2 hover:bg-gray-600/5 dark:hover:bg-gray-200/5","focus:outline-hidden! focus-visible:bg-gray-600/5 dark:focus-visible:bg-gray-200/5"),children:[e.icon&&(0,t.jsx)(Q.ComponentIcon,{icon:"string"==typeof e.icon?e.icon:e.icon.name,iconType:"string"==typeof e.icon?"regular":e.icon.style||"regular",className:(0,G.cn)("size-4 shrink-0",e.isActive?"bg-primary dark:bg-primary-light":"bg-gray-600 dark:bg-gray-400"),overrideColor:!0}),(0,t.jsxs)("div",{className:"flex flex-col min-w-0 grow",children:[(0,t.jsx)("span",{className:(0,G.cn)("text-sm font-medium",e.isActive&&"text-primary dark:text-primary-light font-semibold"),children:e.item}),e.description&&(0,t.jsx)("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:e.description})]}),(0,et.isAbsoluteUrl)(e.href)&&(0,t.jsx)(eE.ArrowUpRight2Icon,{"aria-hidden":"true",strokeWidth:2,className:"size-3.5 text-gray-600 dark:text-gray-400 shrink-0 opacity-0 group-hover:opacity-100"})]},e.href+r))})]})};function r1(e){let{tab:r,underlineClassName:a,className:n,activeClassName:s,isNotFoundPage:i,isSkeleton:l}=e;if(!l&&r.menu&&r.menu.length)return(0,t.jsx)(r0,{...e});let o=(0,G.cn)(c.Classes.TabsBarItem,"group relative h-full gap-2 flex items-center font-medium",l?"pointer-events-none animate-pulse text-gray-600 dark:text-gray-400":["text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-300",r.isActive&&(0,G.cn)("text-gray-800 dark:text-gray-200 [text-shadow:-0.2px_0_0_currentColor,0.2px_0_0_currentColor]",s)],n),d=(0,t.jsxs)(t.Fragment,{children:[!l&&r.icon&&(0,t.jsx)(Q.ComponentIcon,{icon:"string"==typeof r.icon?r.icon:r.icon.name,iconType:"string"==typeof r.icon?"regular":r.icon.style,className:"h-4 w-4 bg-current",overrideColor:!0}),l?(0,t.jsx)("span",{className:"inline-block h-3.5 w-16 rounded bg-gray-200 dark:bg-white/10"}):r.name,(0,t.jsx)("div",{className:(0,G.cn)("absolute bottom-0 h-[1.5px] w-full left-0",l||i||!r.isActive?!l&&"group-hover:bg-gray-200 dark:group-hover:bg-gray-700":"bg-primary dark:bg-primary-light",a)})]});return l?(0,t.jsx)("div",{className:o,"aria-hidden":"true",children:d}):(0,t.jsx)(eH.DynamicLink,{className:o,href:r.href,"data-active":r.isActive?"true":void 0,"aria-current":r.isActive?"location":void 0,children:d})}function r2({className:e,activeClassName:r,underlineClassName:n,align:s}){let{divisions:l,isAuthNavigationPending:o}=(0,i.useContext)(a.NavigationContext),d=(()=>{let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let e=()=>"undefined"!=typeof document&&null!==document.querySelector(`.${c.Classes.NotFoundContainer}`);t(e());let r=new MutationObserver(()=>{t(e())});return r.observe(document.body,{childList:!0,subtree:!0}),()=>r.disconnect()},[]),e})(),u=(0,i.useMemo)(()=>"end"===s?l.tabs.filter(e=>"end"===e.align):"start"===s?l.tabs.filter(e=>!e.align||"start"===e.align):l.tabs,[l.tabs,s]);return 0===u.length?o?(0,t.jsxs)("div",{"aria-hidden":"true",role:"presentation",className:(0,G.cn)(c.Classes.TabsBar,"h-full flex items-center text-sm gap-x-6 animate-pulse"),children:[(0,t.jsx)("div",{className:"h-3.5 w-16 rounded bg-gray-200 dark:bg-white/10"}),"end"!==s&&(0,t.jsx)("div",{className:"h-3.5 w-24 rounded bg-gray-200 dark:bg-white/10"})]}):null:(0,t.jsx)("div",{className:(0,G.cn)(c.Classes.TabsBar,"h-full flex text-sm gap-x-6"),children:u.map((a,s)=>{let i=(0,eI.isSkeletonEntry)({href:a.href});return(0,t.jsx)(r1,{tab:a,className:e,activeClassName:r,underlineClassName:n,isNotFoundPage:d,isSkeleton:i},i?`skeleton-${s}`:a.name)})})}},168695,860255,236032,e=>{"use strict";e.s(["MobileNav",()=>u],168695);var t=e.i(843476),r=e.i(721999),a=e.i(343590),n=e.i(111048),s=e.i(710949),i=e.i(152537),l=e.i(137829),o=e.i(296548),d=e.i(271645),c=e.i(478573);let u=({children:e})=>{let{navIsOpen:u,setNavIsOpen:x}=(0,d.useContext)(a.NavigationContext);return(0,t.jsx)(s.Drawer,{open:u,onOpenChange:x,swipeDirection:"left",children:(0,t.jsxs)(s.DrawerPortal,{children:[(0,t.jsx)(s.DrawerBackdrop,{className:(0,o.cn)(r.zIndex.Popup,"lg:hidden")}),(0,t.jsx)(s.DrawerViewport,{side:"left",className:(0,o.cn)(r.zIndex.Popup,"lg:hidden"),children:(0,t.jsxs)(s.DrawerPopup,{side:"left",id:n.Ids.MobileNav,"aria-label":"Navigation",className:(0,o.cn)("group/mobile-nav flex flex-col","w-[calc(85dvw+var(--bleed))] min-w-[calc(19rem+var(--bleed))] max-w-[calc(22rem+var(--bleed))]"),children:[(0,t.jsx)(s.DrawerClose,{"aria-label":"Close navigation",className:(0,o.cn)(r.zIndex.Control,"absolute top-4 left-full ml-4 flex h-8 w-8 items-center justify-center rounded-full","bg-background-light dark:bg-background-dark","fill-gray-500 hover:fill-gray-600 dark:fill-gray-400 dark:hover:fill-gray-300","opacity-0 pointer-events-none transition-opacity duration-150","focus-visible:opacity-100 focus-visible:pointer-events-auto","group-data-ending-style/mobile-nav:opacity-0! group-data-ending-style/mobile-nav:pointer-events-none!","motion-reduce:transition-none"),children:(0,t.jsx)(l.XmarkIcon,{})}),(0,t.jsxs)(i.ScrollArea,{className:"flex-1 min-h-0",children:[(0,t.jsx)(i.ScrollAreaViewport,{className:"pl-[calc(1rem+var(--bleed))] pr-4 pt-4 pb-12",children:(0,t.jsx)(i.ScrollAreaContent,{className:"min-w-0! w-full flex flex-col",children:e||(0,t.jsx)(c.SideNav,{mobile:!0})})}),(0,t.jsx)(i.ScrollAreaScrollbar,{orientation:"vertical"})]})]})})]})})};e.s(["MobileTopNavBar",()=>f],860255);var x=e.i(91557),m=e.i(803333),g=e.i(813191),h=e.i(357332);let p=(0,e.i(930733).default)("MenuIcon",[["path",{d:"M2.25 9H15.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M2.25 3.75H15.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M2.25 14.25H15.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined"),f=({className:e,pageMetadata:r})=>{let n=(0,m.useCurrentPath)(),{navIsOpen:s,setNavIsOpen:i,navWithMetadata:l}=(0,d.useContext)(a.NavigationContext),{docsConfig:c}=(0,d.useContext)(x.DocsConfigContext),u=c?.theme,f=(0,g.getSectionTitle)(n,l),{title:y}=r;return(0,t.jsxs)("button",{type:"button",className:(0,o.cn)("flex items-center h-14 py-4 px-5 lg:hidden focus:outline-0 w-full text-left",e),onClick:()=>i(!s),children:[(0,t.jsxs)("div",{className:"text-gray-500 hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300",children:[(0,t.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,t.jsx)(p,{"aria-hidden":"true",strokeWidth:2,className:"size-4 shrink-0"})]}),y&&(0,t.jsxs)("div",{className:"ml-4 flex text-sm leading-6 whitespace-nowrap min-w-0 space-x-3 overflow-hidden",children:[f&&(0,t.jsxs)("div",{className:"flex items-center space-x-3 shrink-0",children:[(0,t.jsx)("span",{children:f}),(0,t.jsx)(h.ChevronRightIcon,{"aria-hidden":"true",strokeWidth:2,className:"size-3 text-gray-400 shrink-0"})]}),(0,t.jsx)("div",{className:(0,o.cn)("font-semibold text-gray-900 truncate dark:text-gray-200 min-w-0 flex-1","luma"===u&&"font-medium"),children:y})]})]})};e.s(["TopbarDialog",()=>b],236032);var y=e.i(174716);let b=({topbarDialogOpen:e,setTopbarDialogOpen:a,children:n,showOnDesktop:s})=>(0,t.jsx)(y.Dialog,{open:e,onOpenChange:a,children:(0,t.jsxs)(y.DialogPortal,{children:[(0,t.jsx)(y.DialogBackdrop,{className:(0,o.cn)(!s&&"lg:hidden")}),(0,t.jsx)(y.DialogViewport,{className:(0,o.cn)(r.zIndex.Popup,"overflow-y-auto",!s&&"lg:hidden"),children:(0,t.jsxs)(y.DialogPopup,{className:"relative float-right m-2 w-72 p-1 rounded-2xl ring-1 ring-gray-950/[0.06] dark:ring-white/[0.06] bg-background-light dark:bg-background-dark",children:[(0,t.jsxs)(y.DialogClose,{className:"absolute top-1.5 right-1.5 flex items-center justify-center size-[30px] rounded-xl text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800/50 transition-colors",children:[(0,t.jsx)("span",{className:"sr-only",children:"Close"}),(0,t.jsx)(l.XmarkIcon,{className:"size-3.5","aria-hidden":"true"})]}),(0,t.jsx)("nav",{"aria-label":"Mobile menu",className:"text-sm",children:(0,t.jsx)("ul",{className:(0,o.cn)("[&_li]:m-0 [&_li]:w-full [&_li]:list-none","[&_svg]:shrink-0","[&_a]:flex [&_a]:w-full [&_a]:h-auto [&_a]:border-0 [&_a]:bg-transparent dark:[&_a]:bg-transparent [&_a]:min-w-0 [&_a]:items-center [&_a]:px-3 [&_a]:py-2 [&_a]:rounded-xl [&_a]:truncate","[&_button]:flex [&_button]:w-full [&_button]:border-0 [&_button]:min-w-0 [&_button]:items-center [&_button]:px-3 [&_button]:py-2 [&_button]:rounded-xl [&_button]:truncate","[&_a:hover]:bg-gray-100 dark:[&_a:hover]:bg-gray-800/50","[&_button:hover]:bg-gray-100 dark:[&_button:hover]:bg-gray-800/50","[&>li:first-child_a]:pr-[30px] [&>li:first-child_button]:pr-[30px]"),children:n})})]})})]})})},358280,e=>{"use strict";e.s(["VersionSelect",()=>g]);var t=e.i(843476),r=e.i(393789),a=e.i(45143),n=e.i(343590),s=e.i(865420),i=e.i(395787),l=e.i(451512),o=e.i(961508),d=e.i(628083),c=e.i(296548),u=e.i(271645),x=e.i(39839);let m=e=>"string"==typeof e?e:e.name;function g({triggerClassName:e,center:g=!1}){let{divisions:h,selectedVersion:p,setSelectedVersion:f,isAuthNavigationPending:y}=(0,u.useContext)(n.NavigationContext),b=h.versions,v=(0,x.useMediaQuery)("(max-width: 1024px)"),j=(0,s.useAnalyticsContext)("docs.version.change");return y||!p||0===b.length?null:(0,t.jsxs)(a.DropdownMenu,{children:[(0,t.jsxs)(a.DropdownMenuTrigger,{"data-component-part":"version-select-trigger",className:(0,c.cn)("py-1.5 px-2.5 rounded-xl hover:bg-gray-600/5! dark:hover:bg-gray-200/5! aria-[expanded=true]:bg-gray-600/5 dark:aria-[expanded=true]:bg-gray-200/5 text-sm font-medium text-gray-900 h-8 focus-visible:outline-primary dark:focus-visible:outline-primary-light dark:text-gray-300 group/trigger flex items-center gap-2 whitespace-nowrap",e),children:[(0,t.jsx)("span",{className:"truncate max-w-[12.5rem]",children:p}),(0,t.jsx)(i.DropdownArrowIcon,{className:(0,c.cn)("rotate-90 group-aria-[expanded=true]/trigger:rotate-[270deg]",!g&&"ml-auto")})]}),(0,t.jsx)(a.DropdownMenuContent,{"data-component-part":"version-select-content",side:"bottom",align:"start",className:"max-h-[420px] p-1 border border-gray-200 dark:border-white/[0.07]",style:{width:v?"var(--anchor-width)":void 0},children:b.map((e,a)=>{let n=m(e),s=n===p,i="object"==typeof e?e.tag:void 0;return(0,t.jsxs)(l.Menu.Item,{"data-component-part":"version-select-item","data-selected":s,onClick:()=>(e=>{let t=m(e);if(t!==p&&j({version:t,previousVersion:p}),"object"==typeof e&&e.href&&(0,o.isAbsoluteUrl)(e.href))return void window.open(e.href,"_blank","noopener,noreferrer");f(t)})(e),"aria-selected":s,className:"flex outline-hidden! items-center pl-2.5 pr-4 py-2 gap-2 focus:bg-gray-600/5 dark:focus:bg-gray-200/5 cursor-pointer rounded-xl",children:[(0,t.jsx)("p",{className:(0,c.cn)("flex-1 text-sm font-medium",s?"text-primary dark:text-primary-light":"text-gray-800 dark:text-gray-300"),children:n}),i&&(0,t.jsx)(r.Badge,{size:"xs",className:"shrink-0","data-component-part":"version-select-tag","data-version-tag":i,children:i}),s&&(0,t.jsx)(d.Check2Icon,{"aria-hidden":"true",strokeWidth:2,className:"size-4 shrink-0 text-primary dark:text-primary-light"})]},`version-${a}`)})})]})}},745278,931865,e=>{"use strict";e.s(["TopBar",()=>V],745278);var t=e.i(843476),r=e.i(265282),a=e.i(721999),n=e.i(343590),s=e.i(119907),i=e.i(84611),l=e.i(111048);e.i(764368);var o=e.i(696930),d=e.i(568258),c=e.i(743166);e.i(477222);var u=e.i(311844),x=e.i(584542),m=e.i(428103),g=e.i(243677),h=e.i(296548),p=e.i(271645),f=e.i(168695),y=e.i(860255);e.i(576003);var b=e.i(452957),v=e.i(346211),j=e.i(258202),k=e.i(86507),w=e.i(22926),C=e.i(236032);e.s(["VersioningSelect",()=>M],931865);var N=e.i(574546),L=e.i(358280);function M({triggerClassName:e,showLocalization:r=!0}){return(0,t.jsxs)("div",{className:"hidden lg:flex items-center gap-x-2",children:[(0,t.jsx)(L.VersionSelect,{triggerClassName:e}),r&&(0,t.jsx)(N.LocalizationSelect,{triggerClassName:e})]})}function V({className:e,pageMetadata:N}){let{tabsSlotVisible:L}=(0,p.useContext)(n.NavigationContext),{search:V}=(0,n.useSelectedLocale)(),S=(0,o.useScrollOpacity)(),[I,H]=(0,p.useState)(!1),A=(0,i.useTopbarMenuHasContent)(),T=(0,s.useSupportsBlur)();return(0,t.jsxs)("header",{id:l.Ids.Navbar,className:(0,h.cn)(a.zIndex.PrimaryNav,"fixed lg:sticky top-0 w-full",e),children:[(0,t.jsx)("div",{id:l.Ids.NavBarTransition,className:(0,h.cn)("absolute w-full h-full flex-none transition-colors duration-500","border-b border-gray-500/5 dark:border-gray-300/[0.06]",T?["backdrop-blur","data-[is-opaque=true]:bg-background-light data-[is-opaque=true]:supports-backdrop-blur:bg-background-light/95 data-[is-opaque=true]:dark:bg-background-dark/75","data-[is-opaque=false]:supports-backdrop-blur:bg-background-light/60 data-[is-opaque=false]:dark:bg-transparent"]:"bg-background-light dark:bg-background-dark"),"data-is-opaque":S}),(0,t.jsx)(r.Banner,{}),(0,t.jsx)("div",{className:"max-w-8xl mx-auto relative",children:(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:(0,h.cn)("flex items-center lg:px-12 h-16 min-w-0",L?"mx-4 lg:mx-0":"px-4"),children:(0,t.jsxs)("div",{className:(0,h.cn)("h-full relative flex-1 flex items-center gap-x-4 min-w-0","border-b border-gray-500/5 dark:border-gray-300/[0.06]",!L&&"lg:border-none"),children:[(0,t.jsxs)("div",{className:"flex-1 flex items-center gap-x-4",children:[(0,t.jsx)(c.NavLogo,{}),(0,t.jsx)(M,{}),(0,t.jsx)(k.ProductsSelector,{className:"max-lg:hidden"})]}),(0,t.jsx)(u.DesktopSearchEntry,{includeAskAssistantText:!0,inlineAskAssistantKbd:!0}),(0,t.jsxs)("div",{className:"flex-1 relative hidden lg:flex items-center ml-auto justify-end space-x-4",children:[(0,t.jsx)("nav",{"aria-label":"Main",className:"text-sm",children:(0,t.jsx)("ul",{className:"flex space-x-6 items-center",children:(0,t.jsx)(j.NavbarLinks,{actionClassName:b.DEFAULT_ACTION_CLASSNAME})})}),(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)(w.ThemePreferenceMenu,{})})]}),(0,t.jsxs)("div",{className:"flex lg:hidden items-center gap-3",children:[(0,t.jsxs)(x.SearchButton,{className:"text-gray-500 w-8 h-8 flex items-center justify-center hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300",id:l.Ids.SearchBarEntryMobile,children:[(0,t.jsx)("span",{className:"sr-only",children:V}),(0,t.jsx)(d.default,{icon:"magnifying-glass",iconType:"solid",className:"h-4 w-4 bg-gray-500 dark:bg-gray-400 hover:bg-gray-600 dark:hover:bg-gray-300"})]}),(0,t.jsx)(m.default,{}),A&&(0,t.jsx)(v.MoreActionsButton,{onClick:()=>H(!0)}),(0,t.jsx)(C.TopbarDialog,{topbarDialogOpen:I,setTopbarDialogOpen:H,children:(0,t.jsx)(j.NavbarLinks,{actionClassName:b.DEFAULT_ACTION_CLASSNAME})})]})]})}),(0,t.jsx)(y.MobileTopNavBar,{pageMetadata:N})]}),L&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"hidden lg:flex px-12 h-12",children:(0,t.jsx)(g.TabsBar,{})}),(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:":root{--topbar-tabs-height:3rem}"}})]})]})}),(0,t.jsx)(f.MobileNav,{})]})}},298836,e=>{"use strict";e.s(["TopLevelNavTabsMobile",()=>u]);var t=e.i(843476),r=e.i(45143),a=e.i(995047),n=e.i(343590),s=e.i(476781),i=e.i(395787),l=e.i(286506),o=e.i(628083),d=e.i(296548),c=e.i(271645);function u({triggerClassName:e,triggerLabelClassName:r}){let{divisions:a,isAuthNavigationPending:s}=(0,c.useContext)(n.NavigationContext),i=a.tabs.find(l.isActiveDivision),o=i?.menu,u=o?.find(l.isActiveDivision);return s?(0,t.jsx)("div",{className:"flex flex-wrap gap-2","aria-hidden":"true",children:(0,t.jsx)("div",{className:(0,d.cn)("flex w-full items-center pl-4 pr-3.5 h-10 rounded-[0.85rem] border border-gray-200/70 dark:border-white/[0.07] animate-pulse",e),children:(0,t.jsx)("div",{className:"h-3.5 w-24 rounded bg-gray-200 dark:bg-white/10"})})}):(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(x,{activeItem:i,items:a.tabs,triggerClassName:e,triggerLabelClassName:r}),u&&(0,t.jsx)(x,{activeItem:u,items:o,triggerClassName:e,triggerLabelClassName:r})]})}let x=({activeItem:e,items:a,triggerClassName:s,triggerLabelClassName:l})=>{let{navIsOpen:o}=(0,c.useContext)(n.NavigationContext),[u,x]=(0,c.useState)(!1);return(0,t.jsxs)(r.DropdownMenu,{open:u&&o,onOpenChange:x,children:[(0,t.jsxs)(r.DropdownMenuTrigger,{className:(0,d.cn)("group/trigger flex w-full items-center justify-between pl-4 pr-3.5 h-10 rounded-[0.85rem] border border-gray-200/70 dark:border-white/[0.07] hover:bg-gray-600/5 dark:hover:bg-gray-200/5 gap-1.5",s),children:[(0,t.jsx)("span",{className:(0,d.cn)("text-base font-normal text-gray-800 dark:text-gray-300",l),children:e?.name}),(0,t.jsx)(i.DropdownArrowIcon,{className:(0,d.cn)("rotate-90",u&&"rotate-[270deg]")})]}),(0,t.jsx)(r.DropdownMenuContent,{className:"p-1.5 gap-0",style:{width:"var(--anchor-width)"},children:a?.map(e=>(0,t.jsx)(m,{item:e},e.name))})]})},m=({item:e})=>{let r=(0,l.isActiveDivision)(e);return(0,t.jsxs)(a.DynamicLink,{href:e.href,"data-active":r||void 0,"aria-current":r?"location":void 0,className:(0,d.cn)(s.Classes.MobileNavTabsBarItem,"px-2.5 py-2 group flex items-center justify-between gap-3 text-sm font-medium",r?"text-primary dark:text-primary-light":"text-gray-800 dark:text-gray-300"),children:[e.name,r&&(0,t.jsx)(o.Check2Icon,{"aria-hidden":"true",strokeWidth:2,className:"size-4 shrink-0 text-primary dark:text-primary-light"})]})}},673592,e=>{"use strict";e.s([]),e.i(379291),e.i(29431),e.i(689907),e.i(154601),e.i(528106),e.i(574546),e.i(94548),e.i(834598),e.i(346211),e.i(258202),e.i(314783),e.i(946194),e.i(86507),e.i(22926),e.i(745278),e.i(236032),e.i(298836),e.i(931865),e.i(358280)},478573,5535,351076,43857,e=>{"use strict";e.s(["SideNav",()=>Z],478573);var t=e.i(843476),r=e.i(91557),a=e.i(343590),n=e.i(111048);e.i(673592);var s=e.i(154601),i=e.i(574546),l=e.i(86507),o=e.i(298836),d=e.i(358280),c=e.i(743166);e.s(["SwitchThemeToggle",()=>h],5535);var u=e.i(662862),x=e.i(22926),m=e.i(296548),g=e.i(271645);function h({square:e=!1}){let{docsConfig:n}=(0,g.useContext)(r.DocsConfigContext),{theme:s,setTheme:i}=(0,u.useTheme)(),l=(0,a.useSelectedLocale)(),[o,d]=(0,g.useState)(!1);if((0,g.useEffect)(()=>{d(!0)},[]),n?.appearance?.strict===!0)return null;let c=(0,x.getThemePreference)(s);return(0,t.jsx)("div",{className:(0,m.cn)("relative flex lg:h-7 h-[2.375rem] justify-between lg:w-[4.75rem] w-[6.5rem] items-center p-1",!e&&"rounded-full border border-gray-200/70 dark:border-white/[0.07] hover:border-gray-200 dark:hover:border-white/10",e&&"bg-gray-950/5 dark:bg-white/5"),"data-theme-preference-switch":e?"square":"pill",role:"group","aria-label":"Theme preference",children:x.themePreferenceOptions.map(r=>{let a=r.icon;return(0,t.jsx)("button",{"aria-label":l["aria.switchToTheme"].replace("{theme}",r.value),"aria-pressed":o?c===r.value:void 0,className:(0,m.cn)("theme-preference-switch-option z-10 flex lg:size-5 size-[1.875rem] items-center justify-center transition-colors duration-200",!e&&"rounded-full"),"data-theme-preference-value":r.value,onClick:()=>i(r.value),type:"button",children:(0,t.jsx)(a,{className:"lg:size-3 size-3.5"})},r.value)})})}var p=e.i(517956),f=e.i(983357),y=e.i(507595),b=e.i(456084);function v({className:e}){let{divisions:r}=(0,g.useContext)(a.NavigationContext),{anchorDefault:n}=(0,f.useColors)(),s=0===r.anchors.length;return(0,t.jsx)("ul",{className:(0,m.cn)("list-none",e),"aria-hidden":s||void 0,children:r.anchors.map((e,r)=>{let a=(0,b.isSkeletonEntry)({href:e.href});return(0,t.jsx)("li",{className:"list-none",children:(0,t.jsx)(y.Anchor,{href:e.href,name:e.name,icon:"string"==typeof e.icon?e.icon:e.icon?.name,iconType:"object"==typeof e.icon?e.icon.style:void 0,color:e.color?.light??n,isActive:e.isActive,isSkeleton:a})},a?`skeleton-${r}`:e.name)})})}e.s(["Nav",()=>D],43857),e.s(["SideNavGroups",()=>T,"getSideNavGroupsProps",()=>P],351076);let j=`(function () { try { if (window.__mintlifyInitialSidebarScrollDone) return; window.__mintlifyInitialSidebarScrollDone = true; var path = (window.location.pathname || '/').split('#')[0].split('?')[0]; if (path.endsWith('/index')) path = path.slice(0, -6); else if (path === 'index') path = ''; var candidates = []; if (path) candidates.push(path); if (path.startsWith('/')) candidates.push(path.slice(1)); else candidates.push('/' + path); var item = null; for (var i = 0; i < candidates.length && !item; i++) { var matches = document.querySelectorAll('[id="' + candidates[i].replace(/"/g, '\\\\"') + '"]'); for (var j = 0; j < matches.length; j++) { if (matches[j].closest('#sidebar, #sidebar-content')) { item = matches[j]; break; } } } if (!item) return; var parent = item.closest('[data-component-part="scroll-area-viewport"]'); if (!parent) { parent = item.parentElement; while (parent) { var style = getComputedStyle(parent); if (style.overflowY === 'auto' || style.overflowY === 'scroll') break; parent = parent.parentElement; } } if (!parent) return; var parentRect = parent.getBoundingClientRect(); var itemRect = item.getBoundingClientRect(); if (itemRect.top >= parentRect.top && itemRect.bottom <= parentRect.bottom) return; var itemTopRelative = itemRect.top - parentRect.top + parent.scrollTop; parent.scrollTop = itemTopRelative - parentRect.height / 2 + itemRect.height / 2; } catch (e) {} })();`;function k(){return(0,t.jsx)("script",{dangerouslySetInnerHTML:{__html:j},suppressHydrationWarning:!0})}var w=e.i(742977),C=e.i(476781),N=e.i(479721),L=e.i(378114),M=e.i(15043),V=e.i(357550),S=e.i(220758),I=e.i(568258),H=e.i(149758);let A=["w-16","w-20","w-24","w-28"];function T({nav:e,shouldAutoNavigateOnGroupClick:n,navItemProps:s,showDivider:i,shouldLimitMarginWithAnchors:l}){let{prefetch:o}=(0,w.usePrefetch)(),{docsConfig:d}=(0,g.useContext)(r.DocsConfigContext),{divisions:c,hasAdvancedTabs:u}=(0,g.useContext)(a.NavigationContext),{sidebarItemStyle:x,arrowPosition:h}=s??{},f=c.dropdowns.length>0&&!u,y=c.anchors.length>0,v=e=>{let t="mt-6 lg:mt-8";return l?0!==e&&i?"my-2":(0,m.cn)((!(0===e&&!y)||f)&&t):t},j=()=>(0,t.jsx)("div",{className:"px-1 py-3",children:(0,t.jsx)("div",{className:(0,m.cn)(C.Classes.SidebarNavGroupDivider,"h-px w-full bg-gray-100 dark:bg-white/10")})});return(0,t.jsxs)(t.Fragment,{children:[e.map((r,a)=>{if((0,p.isPage)(r))return(0,V.shouldPrefetchNavHref)(r.href)&&o(r.href,{source:"side-nav-groups"}),(0,t.jsx)(g.Fragment,{children:(0,t.jsx)("ul",{className:(0,m.cn)(C.Classes.SidebarGroup,((()=>{if(0===a)return!1;let t=e[a-1];return t&&(0,S.isGroup)(t)})()||0===a)&&v(a)),children:(0,t.jsx)(L.NavItem,{entry:r,shouldAutoNavigateOnGroupClick:n,sidebarItemStyle:x,arrowPosition:h,index:a},a)},a)},r.href);let{group:s,pages:l}=r;if(r.root&&(0,p.isPage)(r.root))return(0,t.jsxs)(g.Fragment,{children:[i&&a>0&&(0,t.jsx)(j,{}),(0,t.jsx)("ul",{className:(0,m.cn)(C.Classes.SidebarGroup,v(a),(0,M.getValidSpacingClasses)(d?.theme)),children:(0,t.jsx)(L.NavItem,{entry:r,shouldAutoNavigateOnGroupClick:n,sidebarItemStyle:x,arrowPosition:h,index:a})},a)]},`${a} ${s}`);let c=l.find(e=>(0,p.isPage)(e)),u=null!=c&&(0,b.isSkeletonEntry)({href:c.href});return(0,t.jsxs)(g.Fragment,{children:[i&&a>0&&(0,t.jsx)(j,{}),(0,t.jsxs)("div",{className:v(a)||void 0,children:[(0,t.jsxs)("div",{className:(0,m.cn)(C.Classes.SidebarGroupHeader,"flex items-center gap-2.5 pl-4 mb-3.5 lg:mb-2.5 font-semibold","text-gray-900 dark:text-gray-200",(0,N.themeSidebarGroupLabel)({theme:d?.theme}),(0,N.themeSidebarGroupHeader)({theme:d?.theme}),u&&"animate-pulse pointer-events-none"),"aria-hidden":u||void 0,children:[!u&&r.icon&&(0,t.jsx)(I.ComponentIcon,{icon:"string"==typeof r.icon?r.icon:r.icon.name,iconType:"object"==typeof r.icon?r.icon.style:r.iconType||"regular",className:(0,m.cn)(C.Classes.SidebarGroupIcon,"h-3.5 w-3.5 bg-current"),overrideColor:!0}),u&&r.icon&&(0,t.jsx)("div",{className:"h-3.5 w-3.5 rounded bg-gray-200 dark:bg-white/10"}),(0,t.jsx)("h3",{className:(0,m.cn)(C.Classes.SidebarTitle,"text-[length:inherit] font-[inherit] leading-[inherit]",(0,N.themeSidebarGroupHeader)({theme:d?.theme})&&"[&]:font-[inherit]"),children:u?(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-flex h-[1lh] items-center",children:(0,t.jsx)("span",{className:(0,m.cn)("inline-block h-3 rounded-md bg-gray-200 dark:bg-white/10 select-none",(0,b.pickSkeletonWidth)(s,A))})}):(0,t.jsx)("span",{children:s})}),!u&&r.tag&&(0,t.jsx)(H.NavTagPill,{tag:r.tag})]}),(0,t.jsx)("ul",{className:(0,m.cn)(C.Classes.SidebarGroup,(0,M.getValidSpacingClasses)(d?.theme)),children:l.map((e,r)=>{let i=(0,S.isGroup)(e)?e.group:e.href;return(0,t.jsx)(L.NavItem,{entry:e,shouldAutoNavigateOnGroupClick:n,sidebarItemStyle:x,arrowPosition:h,index:r,parentId:`${a}-${s}`},i)})})]},a)]},`${a} ${s}`)}).filter(Boolean),(0,t.jsx)(k,{})]})}function P({theme:e,isMobile:t}){switch(e){case"mint":return{shouldAutoNavigateOnGroupClick:t,shouldLimitMarginWithAnchors:!0};case"maple":return{shouldAutoNavigateOnGroupClick:t??!0,shouldLimitMarginWithAnchors:!0,navItemProps:{sidebarItemStyle:"border",arrowPosition:"trailing"}};case"aspen":return{shouldAutoNavigateOnGroupClick:t??!0,showDivider:!0,shouldLimitMarginWithAnchors:!0,navItemProps:{arrowPosition:"end"}};case"luma":case"sequoia":return{shouldAutoNavigateOnGroupClick:t??!0,showDivider:!1,shouldLimitMarginWithAnchors:!0,navItemProps:{sidebarItemStyle:"plain",arrowPosition:"trailing"}};case"linden":return{shouldLimitMarginWithAnchors:!0,navItemProps:{sidebarItemStyle:"arrow"}};case"palm":return{shouldAutoNavigateOnGroupClick:t??!0,shouldLimitMarginWithAnchors:!0,navItemProps:{sidebarItemStyle:"undecorated",arrowPosition:"leading"}};case"almond":return{shouldLimitMarginWithAnchors:!0,navItemProps:{arrowPosition:"end"}};case"willow":return{shouldAutoNavigateOnGroupClick:t??!0,shouldLimitMarginWithAnchors:!0,navItemProps:{sidebarItemStyle:"plain"}};default:return{shouldAutoNavigateOnGroupClick:!0,shouldLimitMarginWithAnchors:!0}}}function D({nav:e,mobile:r,docsConfig:a}){return(0,t.jsx)(T,{nav:e,...P({theme:a?.theme,isMobile:r})})}function Z({mobile:e=!1}){let{divisions:u,isAuthNavigationPending:x,tabsSlotVisible:f}=(0,g.useContext)(a.NavigationContext),{docsConfig:y}=(0,g.useContext)(r.DocsConfigContext),b=u.groupsOrPages.reduce((e,t)=>(0,p.isPage)(t)?e+1:e+t.pages.length,0),j=u.versions.length>0,k=u.languages.length>0;return(0,t.jsxs)("div",{className:"relative lg:text-sm lg:leading-6",children:[!e&&(0,t.jsx)("div",{className:(0,m.cn)("sticky top-0 h-8 pointer-events-none",y?.background?.image==null&&y?.background?.decoration==null&&"z-10 bg-linear-to-b from-background-light dark:from-background-dark")}),e&&(0,t.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,t.jsx)(c.NavLogo,{logoClassName:"max-w-48 h-[26px]"}),!y?.appearance?.strict&&(0,t.jsx)(h,{})]}),(0,t.jsxs)("div",{id:n.Ids.NavigationItems,children:[e&&(0,t.jsx)(l.ProductsSelector,{className:(0,m.cn)("px-4 mb-2 rounded-[0.85rem] w-full border border-gray-200/70 dark:border-white/[0.07] h-10",!j&&!k&&!f&&"mb-6")}),e&&(j||k||f)&&(0,t.jsxs)("div",{className:"flex flex-col gap-y-2 mb-6",children:[(0,t.jsx)(d.VersionSelect,{triggerClassName:"font-normal text-base justify-between pl-4 pr-3.5 h-10 rounded-[0.85rem] border border-gray-200/70 dark:border-white/[0.07] hover:bg-gray-600/5 dark:hover:bg-gray-200/5 gap-1.5"}),(0,t.jsx)(i.LocalizationSelect,{triggerClassName:"font-normal text-base justify-between pl-4 pr-3.5 h-10 rounded-[0.85rem] border border-gray-200/70 dark:border-white/[0.07] hover:bg-gray-600/5 dark:hover:bg-gray-200/5 gap-1.5"}),u.tabs.length>0&&(0,t.jsx)(o.TopLevelNavTabsMobile,{})]}),(0,t.jsx)(s.Dropdowns,{}),u.anchors.length>0&&(0,t.jsx)(v,{}),(b>0||x)&&(0,t.jsx)(D,{docsConfig:y,nav:u.groupsOrPages,mobile:e})]})]})}},258834,930584,e=>{"use strict";e.s(["AlmondTopBar",()=>T],258834);var t=e.i(843476),r=e.i(915476),a=e.i(265282),n=e.i(721999),s=e.i(343590),i=e.i(84611),l=e.i(111048),o=e.i(168695),d=e.i(860255);e.i(673592);var c=e.i(346211),u=e.i(86507),x=e.i(236032),m=e.i(931865),g=e.i(743166);e.i(477222);var h=e.i(584542),p=e.i(428103),f=e.i(296548),y=e.i(271645),b=e.i(568258),v=e.i(243677),j=e.i(604804),k=e.i(865420),w=e.i(330329),C=e.i(476781),N=e.i(414245),L=e.i(689907),M=e.i(528106),V=e.i(961508),S=e.i(522016),I=e.i(94548);let H="flex items-center gap-1.5 whitespace-nowrap font-medium text-gray-600 hover:text-gray-900 dark:text-white/90 dark:hover:text-gray-300",A=({mobile:e=!1})=>{let r=(0,w.useLocalizedNavbar)(),a=(0,k.useAnalyticsContext)("docs.navitem.click"),{userAuthLoginButton:n,authLoginButton:s,authLogoutButton:i,userAuthLogoutButton:l}=(0,y.useContext)(j.LoginButtonContext),o=(0,y.useCallback)((e,t)=>a({name:e,url:t}),[a]);return(0,t.jsxs)(t.Fragment,{children:[r?.links?.map(r=>{let a=(0,V.isAbsoluteUrl)(r.href),{label:n,type:s}=r;return"github"===s?(0,t.jsx)(M.GitHubCta,{href:r.href,label:n||"",actionClassName:H},r.href):"discord"===s?(0,t.jsx)(L.DiscordCta,{href:r.href,label:n||"",actionClassName:H},r.href):a?(0,t.jsx)("li",{className:(0,f.cn)(C.Classes.NavBarLink,!e&&"border border-gray-400/20 dark:border-gray-600/30 bg-background-light dark:bg-white/5 dark:border-none dark:text-white/90 group group-hover:opacity-[0.9] rounded-lg px-2.5 py-1.5 relative inline-flex items-center text-sm font-semibold"),children:(0,t.jsxs)("a",{href:r.href,className:H,onClick:()=>o(n,r.href),target:"_blank",rel:"noopener noreferrer",children:[r.icon&&(0,t.jsx)(b.ComponentIcon,{icon:"string"==typeof r.icon?r.icon:r.icon.name,iconType:"string"==typeof r.icon?"regular":r.icon.style||"regular",className:"h-4 w-4"}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:n})]})},n):(0,t.jsx)("li",{className:(0,f.cn)(C.Classes.NavBarLink,"list-none"),children:(0,t.jsxs)(S.default,{href:r.href||"/",className:H,onClick:()=>o(n,r.href),children:[r.icon&&(0,t.jsx)(b.ComponentIcon,{icon:"string"==typeof r.icon?r.icon:r.icon.name,iconType:"string"==typeof r.icon?"regular":r.icon.style||"regular",className:"h-4 w-4"}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:n})]})},n)}),n&&(0,t.jsx)("li",{children:n},"login"),l&&(0,t.jsx)("li",{children:l},"personalization-logout"),s&&(0,t.jsx)("li",{children:s},"partial-auth-login"),i&&(0,t.jsx)("li",{children:i},"auth-logout"),(0,t.jsx)(I.MobileTopBarCtaButton,{actionClassName:H}),(0,t.jsx)(N.TopbarPrimary,{})]})};function T({className:e,pageMetadata:j}){let{tabsSlotVisible:k}=(0,y.useContext)(s.NavigationContext),{search:w}=(0,s.useSelectedLocale)(),[C,N]=(0,y.useState)(!1),L=(0,i.useTopbarMenuHasContent)();return(0,t.jsxs)("header",{id:l.Ids.Navbar,className:(0,f.cn)(n.zIndex.PrimaryNav,"fixed top-0",e),style:{width:`calc(100% - var(${r.ASSISTANT_WIDTH_CSS_VAR}, 0px))`},children:[(0,t.jsx)("div",{className:"z-10 absolute w-full h-full"}),(0,t.jsx)("div",{className:"z-0 absolute inset-0"}),(0,t.jsx)(a.Banner,{}),(0,t.jsx)("div",{className:"z-10 mx-auto relative",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:(0,f.cn)("flex items-center lg:px-7 h-14 min-w-0",k?"mx-4 lg:mx-0":"px-4"),children:(0,t.jsxs)("div",{className:(0,f.cn)("h-full relative flex-1 flex items-center gap-x-4 min-w-0 lg:border-none"),children:[(0,t.jsxs)("div",{className:"flex-1 flex items-center gap-x-4",children:[(0,t.jsx)(g.NavLogo,{logoClassName:"h-6"}),(0,t.jsx)(m.VersioningSelect,{showLocalization:!1}),(0,t.jsx)(u.ProductsSelector,{className:"max-lg:hidden bg-transparent"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsxs)("div",{className:"flex-1 relative hidden lg:flex items-center ml-auto ustify-end gap-x-6",children:[(0,t.jsx)("div",{className:"h-14 font-semibold",children:(0,t.jsx)(v.TabsBar,{underlineClassName:"hidden"})}),(0,t.jsx)("nav",{"aria-label":"Main",className:"text-sm",children:(0,t.jsx)("ul",{className:"flex gap-x-2 items-center",children:(0,t.jsx)(A,{})})})]}),(0,t.jsxs)("div",{className:"flex lg:hidden items-center gap-3",children:[(0,t.jsxs)(h.SearchButton,{className:"text-gray-500 w-8 h-8 flex items-center justify-center hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300",id:l.Ids.SearchBarEntryMobile,children:[(0,t.jsx)("span",{className:"sr-only",children:w}),(0,t.jsx)(b.default,{icon:"magnifying-glass",iconType:"solid",className:"h-4 w-4 bg-gray-500 dark:bg-gray-400 hover:bg-gray-600 dark:hover:bg-gray-300"})]}),(0,t.jsx)(p.default,{}),L&&(0,t.jsx)(c.MoreActionsButton,{onClick:()=>N(!0)}),(0,t.jsx)(x.TopbarDialog,{topbarDialogOpen:C,setTopbarDialogOpen:N,children:(0,t.jsx)(A,{mobile:!0})})]})]})]})}),(0,t.jsx)(d.MobileTopNavBar,{pageMetadata:j})]})}),(0,t.jsx)(o.MobileNav,{})]})}e.s(["PalmTopBar",()=>z],930584);var P=e.i(311844),D=e.i(258202);e.i(576003);var Z=e.i(452957);let E=({showThemeToggle:e})=>(0,t.jsx)(D.NavbarLinks,{actionClassName:Z.DEFAULT_ACTION_CLASSNAME,showThemeToggle:e});function z({className:e,pageMetadata:r}){let{tabsSlotVisible:j}=(0,y.useContext)(s.NavigationContext),{search:k}=(0,s.useSelectedLocale)(),[w,C]=(0,y.useState)(!1),N=(0,i.useTopbarMenuHasContent)();return(0,t.jsxs)("header",{id:l.Ids.Navbar,className:(0,f.cn)(n.zIndex.PrimaryNav,"fixed lg:sticky top-0 w-full",e),children:[(0,t.jsx)("div",{className:(0,f.cn)("z-10 absolute w-full h-full bg-gray-950/[0.03] dark:bg-white/[0.03] border-b border-gray-200 dark:border-gray-800")}),(0,t.jsx)("div",{className:"z-0 absolute inset-0 bg-background-light dark:bg-background-dark"}),(0,t.jsx)(a.Banner,{}),(0,t.jsxs)("div",{className:"z-10 mx-auto relative",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:(0,f.cn)("flex items-center lg:px-12 h-16 min-w-0",j?"mx-4 lg:mx-0":"px-4"),children:(0,t.jsxs)("div",{className:(0,f.cn)("h-full relative flex-1 flex items-center gap-x-4 min-w-0",!j&&"lg:border-none"),children:[(0,t.jsxs)("div",{className:"flex-1 flex items-center gap-x-4",children:[(0,t.jsx)(g.NavLogo,{}),(0,t.jsx)(m.VersioningSelect,{showLocalization:!1}),(0,t.jsx)(u.ProductsSelector,{className:"bg-transparent! max-lg:hidden"})]}),(0,t.jsx)(P.DesktopSearchEntry,{searchButtonClassName:"rounded-lg hover:ring-1 hover:ring-gray-200 dark:hover:ring-gray-800 shadow-none",includeAskAssistantText:!0,inlineAskAssistantKbd:!0}),(0,t.jsx)("div",{className:"flex-1 relative hidden lg:flex items-center ml-auto justify-end space-x-4",children:(0,t.jsx)("nav",{"aria-label":"Main",className:"text-sm",children:(0,t.jsx)("ul",{className:"flex space-x-6 items-center",children:(0,t.jsx)(E,{})})})}),(0,t.jsxs)("div",{className:"flex lg:hidden items-center gap-3",children:[(0,t.jsxs)(h.SearchButton,{className:"text-gray-500 w-8 h-8 flex items-center justify-center hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300",id:l.Ids.SearchBarEntryMobile,children:[(0,t.jsx)("span",{className:"sr-only",children:k}),(0,t.jsx)(b.default,{icon:"magnifying-glass",iconType:"solid",className:"h-4 w-4 bg-gray-500 dark:bg-gray-400 hover:bg-gray-600 dark:hover:bg-gray-300"})]}),(0,t.jsx)(p.default,{}),N&&(0,t.jsx)(c.MoreActionsButton,{onClick:()=>C(!0)}),(0,t.jsx)(x.TopbarDialog,{topbarDialogOpen:w,setTopbarDialogOpen:C,children:(0,t.jsx)(E,{showThemeToggle:!1})})]})]})}),(0,t.jsx)(d.MobileTopNavBar,{pageMetadata:r})]}),j&&(0,t.jsx)("div",{className:"hidden lg:flex px-12 h-12",children:(0,t.jsx)(v.TabsBar,{})})]}),(0,t.jsx)(o.MobileNav,{})]})}},763509,e=>{"use strict";e.s(["ThemeLayout",()=>tw],763509);var t=e.i(843476),r=e.i(803333),a=e.i(111048),n=e.i(271645);let s=null;function i(){let e=(0,r.useCurrentPath)();return(0,n.useLayoutEffect)(()=>{let e,t=requestAnimationFrame(()=>{let t=function(){if("undefined"==typeof document)return null;for(let e of[a.Ids.SidebarContent,a.Ids.Sidebar]){let t=document.getElementById(e);if(!t)continue;for(let e of t.querySelectorAll('[data-component-part="scroll-area-viewport"]'))if(e instanceof HTMLElement&&null!==e.offsetParent)return e;let r=[t];for(;r.length>0;){let e=r.pop();if(e){if(null!==e.offsetParent||e===t){let t=getComputedStyle(e).overflowY;if("auto"===t||"scroll"===t)return e}for(let t=e.children.length-1;t>=0;t--){let a=e.children[t];a instanceof HTMLElement&&r.push(a)}}}}return null}();if(!t)return;null!==s&&(t.scrollTop=s);let r=()=>{let e=function(e){let t=e.querySelector(`[${a.ACTIVE_NAV_ITEM_ATTRIBUTE}]`);return t instanceof HTMLElement?t:null}(t);e&&!function(e,t){if(null===e.offsetParent)return!0;let r=t.getBoundingClientRect(),a=e.getBoundingClientRect();return 0===a.height||a.top>=r.top&&a.bottom<=r.bottom}(e,t)&&function(e,t){let r=t.getBoundingClientRect(),a=e.getBoundingClientRect(),n=a.top-r.top+t.scrollTop;t.scrollTop=n-r.height/2+a.height/2}(e,t),s=t.scrollTop};r();let n=requestAnimationFrame(r),i=()=>{s=t.scrollTop};t.addEventListener("scroll",i,{passive:!0}),e=()=>{cancelAnimationFrame(n),t.removeEventListener("scroll",i)}});return()=>{cancelAnimationFrame(t),e?.()}},[e]),(0,t.jsx)(t.Fragment,{})}var l=e.i(590280),o=e.i(237978),d=e.i(309980),c=e.i(263446);let u={isCustom:"peer is-custom",isCenter:"peer is-center",isWide:"peer is-wide",isFrame:"peer is-frame",isNotCustom:"peer is-not-custom",isNotCenter:"peer is-not-center",isNotWide:"peer is-not-wide",isNotFrame:"peer is-not-frame",hiddenIfCustom:"peer-[.is-custom]:hidden! peer-[.is-custom]:sm:hidden! peer-[.is-custom]:md:hidden! peer-[.is-custom]:lg:hidden! peer-[.is-custom]:xl:hidden!",firstChildHiddenIfCustom:"peer-[.is-custom]:[&>:first-child]:hidden! peer-[.is-custom]:[&>:first-child]:sm:hidden! peer-[.is-custom]:[&>:first-child]:md:hidden! peer-[.is-custom]:[&>:first-child]:lg:hidden! peer-[.is-custom]:[&>:first-child]:xl:hidden!",firstChildHiddenIfCenter:"peer-[.is-center]:[&>:first-child]:hidden! peer-[.is-center]:[&>:first-child]:sm:hidden! peer-[.is-center]:[&>:first-child]:md:hidden! peer-[.is-center]:[&>:first-child]:lg:hidden! peer-[.is-center]:[&>:first-child]:xl:hidden!"};var x=e.i(721999),m=e.i(91557);let g=(0,n.createContext)({pageMetadata:{}});function h({children:e}){let r=function(){let{pageMetadata:e}=(0,n.useContext)(m.PageContext);return(0,n.useMemo)(()=>({pageMetadata:e}),[e])}();return(0,t.jsx)(g.Provider,{value:r,children:e})}g.displayName="PageMetadataContext";var p=e.i(152537),f=e.i(296548),y=e.i(478573);function b({children:e}){return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(h,{children:[(0,t.jsxs)("div",{className:(0,f.cn)("scroll-mt-(--scroll-mt)","peer-[.is-custom]:max-w-none peer-[.is-center]:max-w-3xl peer-[.is-not-custom]:peer-[.is-not-center]:max-w-8xl","peer-[.is-not-custom]:px-4 peer-[.is-not-custom]:mx-auto peer-[.is-not-custom]:lg:px-8 peer-[.is-wide]:lg:*:last:max-w-216","peer-[.is-not-custom]:peer-[.is-not-center]:lg:flex",u.firstChildHiddenIfCustom,u.firstChildHiddenIfCenter),children:[(0,t.jsx)("nav",{"aria-label":"Pages",className:(0,f.cn)(x.zIndex.SecondaryNav,"hidden lg:block sticky self-start shrink-0 w-[18rem]","top-[calc(var(--mintlify-slot-header-height,calc(4rem+var(--topbar-tabs-height,0rem)))+var(--banner-height,0px))] h-[calc(100dvh-var(--mintlify-slot-header-height,calc(4rem+var(--topbar-tabs-height,0rem)))-var(--banner-height,0px))]"),id:a.Ids.Sidebar,suppressHydrationWarning:!0,children:(0,t.jsxs)(p.ScrollArea,{className:"absolute! inset-0 z-10",id:a.Ids.SidebarContent,children:[(0,t.jsx)(p.ScrollAreaViewport,{className:"pr-8 pb-10",children:(0,t.jsx)(p.ScrollAreaContent,{className:"min-w-0! w-full",children:(0,t.jsx)(y.SideNav,{})})}),(0,t.jsx)(p.ScrollAreaScrollbar,{orientation:"vertical"})]})}),(0,t.jsx)("main",{id:a.Ids.ContentContainer,className:"lg:flex-1 lg:min-w-0",children:e})]}),(0,t.jsx)(c.AdvancedFooter,{className:u.hiddenIfCustom})]})})}let v=({children:e})=>(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(b,{children:e})});var j=e.i(258834),k=e.i(265282),w=e.i(343590),C=e.i(84611),N=e.i(476781),L=e.i(168695),M=e.i(860255);e.i(673592);var V=e.i(346211),S=e.i(86507),I=e.i(22926),H=e.i(236032),A=e.i(931865),T=e.i(743166),P=e.i(477222),D=e.i(311844),Z=e.i(584542),E=e.i(428103),z=e.i(568258),F=e.i(243677),_=e.i(258202);e.i(576003);var O=e.i(452957);let R=()=>(0,t.jsx)(_.NavbarLinks,{actionClassName:(0,O.getActionClassname)("aspen")});function B({className:e,pageMetadata:r}){let{tabsSlotVisible:s}=(0,n.useContext)(w.NavigationContext),{search:i}=(0,w.useSelectedLocale)(),[l,o]=(0,n.useState)(!1),d=(0,C.useTopbarMenuHasContent)();return(0,t.jsxs)("header",{id:a.Ids.Navbar,className:(0,f.cn)(x.zIndex.PrimaryNav,"fixed lg:sticky top-0 w-full",e),children:[(0,t.jsx)("div",{className:"z-10 absolute w-full h-full border-b border-gray-100 dark:border-gray-800"}),(0,t.jsx)("div",{className:"z-0 absolute inset-0 bg-background-light dark:bg-background-dark"}),(0,t.jsx)(k.Banner,{}),(0,t.jsxs)("div",{className:"z-10 mx-auto relative max-w-8xl px-0 lg:px-5",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:(0,f.cn)("flex items-center lg:px-4 h-14 min-w-0",s?"mx-4 lg:mx-0":"px-4"),children:(0,t.jsxs)("div",{className:(0,f.cn)("h-full relative flex-1 flex items-center gap-x-4 min-w-0",!s&&"lg:border-none"),children:[(0,t.jsxs)("div",{className:"flex-1 flex items-center gap-x-4",children:[(0,t.jsx)(T.NavLogo,{logoClassName:"h-6"}),(0,t.jsx)(A.VersioningSelect,{}),(0,t.jsx)(S.ProductsSelector,{className:"max-lg:hidden"})]}),(0,t.jsx)(D.DesktopSearchEntry,{searchButtonClassName:"max-w-sm bg-gray-950/[0.03] dark:bg-white/[0.03] hover:bg-gray-950/10 dark:hover:bg-white/10 rounded-full shadow-none border-none ring-0 dark:ring-0",includeAskAssistantText:!0,inlineAskAssistantKbd:!0}),(0,t.jsxs)("div",{className:(0,f.cn)(N.Classes.TopbarRightContainer,"hidden lg:flex flex-1 items-center gap-2 ml-auto justify-end"),children:[(0,t.jsx)("div",{className:"flex relative items-center justify-end space-x-4",children:(0,t.jsx)("nav",{"aria-label":"Main",className:"text-sm",children:(0,t.jsx)("ul",{className:"flex gap-2 items-center",children:(0,t.jsx)(R,{})})})}),(0,t.jsx)(I.ThemePreferenceMenu,{iconClassName:"text-gray-600 group-hover:text-gray-800 dark:text-gray-300 dark:group-hover:text-gray-100",triggerClassName:"w-[30px] h-[30px] rounded-full bg-gray-800/[0.04] dark:bg-white/10"})]}),(0,t.jsxs)("div",{className:"flex lg:hidden items-center gap-3",children:[(0,t.jsxs)(Z.SearchButton,{className:"text-gray-500 w-8 h-8 flex items-center justify-center hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300",id:a.Ids.SearchBarEntryMobile,children:[(0,t.jsx)("span",{className:"sr-only",children:i}),(0,t.jsx)(z.default,{icon:"magnifying-glass",iconType:"solid",className:"h-4 w-4 bg-gray-500 dark:bg-gray-400 hover:bg-gray-600 dark:hover:bg-gray-300"})]}),(0,t.jsx)(E.default,{}),d&&(0,t.jsx)(V.MoreActionsButton,{onClick:()=>o(!0)}),(0,t.jsx)(H.TopbarDialog,{topbarDialogOpen:l,setTopbarDialogOpen:o,children:(0,t.jsx)(R,{})})]})]})}),(0,t.jsx)(M.MobileTopNavBar,{pageMetadata:r})]}),s&&(0,t.jsx)("div",{className:"hidden lg:flex px-4 h-10",children:(0,t.jsx)(F.TabsBar,{className:"text-gray-800 dark:text-gray-200",activeClassName:"text-primary dark:text-primary-light hover:text-primary dark:hover:text-primary-light",underlineClassName:"h-px"})})]}),(0,t.jsx)(L.MobileNav,{})]})}var W=e.i(119907);e.i(764368);var $=e.i(696930);let G=()=>(0,t.jsx)(_.NavbarLinks,{actionClassName:O.DEFAULT_ACTION_CLASSNAME});function U({className:e,pageMetadata:r}){let{tabsSlotVisible:s}=(0,n.useContext)(w.NavigationContext),{search:i}=(0,w.useSelectedLocale)(),l=(0,$.useScrollOpacity)(),[o,d]=(0,n.useState)(!1),c=(0,C.useTopbarMenuHasContent)(),u=(0,W.useSupportsBlur)();return(0,t.jsxs)("header",{id:a.Ids.Navbar,className:(0,f.cn)(x.zIndex.PrimaryNav,"fixed lg:sticky top-0 w-full",e),children:[(0,t.jsx)("div",{id:a.Ids.NavBarTransition,className:(0,f.cn)("absolute w-full h-full flex-none transition-colors duration-500","border-b border-gray-500/5 dark:border-gray-300/[0.06]",u?["backdrop-blur","data-[is-opaque=true]:bg-background-light data-[is-opaque=true]:supports-backdrop-blur:bg-background-light/95 data-[is-opaque=true]:dark:bg-background-dark/75","data-[is-opaque=false]:supports-backdrop-blur:bg-background-light/60 data-[is-opaque=false]:dark:bg-transparent"]:"bg-background-light dark:bg-background-dark"),"data-is-opaque":l}),(0,t.jsx)(k.Banner,{}),(0,t.jsx)("div",{className:"max-w-8xl mx-auto relative",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:(0,f.cn)("flex items-center lg:px-12 h-16 min-w-0",s?"mx-4 lg:mx-0":"px-4"),children:(0,t.jsxs)("div",{className:(0,f.cn)("h-full relative flex-1 flex items-center gap-x-4 min-w-0","border-b border-gray-500/5 dark:border-gray-300/[0.06]",!s&&"lg:border-none"),children:[(0,t.jsxs)("div",{className:"flex-1 lg:flex-none flex items-center gap-x-4",children:[(0,t.jsx)(T.NavLogo,{}),(0,t.jsx)(A.VersioningSelect,{}),(0,t.jsx)(S.ProductsSelector,{className:"max-lg:hidden"})]}),(0,t.jsxs)("div",{className:"flex-1 relative hidden lg:flex items-center ml-auto justify-end gap-x-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-x-6",children:[(0,t.jsx)("div",{className:"h-16 font-semibold",children:(0,t.jsx)(F.TabsBar,{underlineClassName:"hidden"})}),(0,t.jsx)("nav",{"aria-label":"Main",className:"text-sm",children:(0,t.jsx)("ul",{className:"flex gap-x-6 items-center",children:(0,t.jsx)(G,{})})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,t.jsxs)(Z.SearchButton,{className:"group w-8 h-8 flex items-center justify-center",id:a.Ids.SearchBarEntryMobile,children:[(0,t.jsx)("span",{className:"sr-only",children:i}),(0,t.jsx)(z.default,{icon:"magnifying-glass",iconType:"solid",className:"h-3.5 w-3.5 bg-gray-600 dark:bg-gray-300 group-hover:bg-gray-800 dark:group-hover:bg-gray-100"})]}),(0,t.jsx)(E.default,{}),(0,t.jsx)(I.ThemePreferenceMenu,{iconClassName:"text-gray-600 group-hover:text-gray-800 dark:text-gray-300 dark:group-hover:text-gray-100"})]})]}),(0,t.jsxs)("div",{className:"flex lg:hidden items-center gap-3",children:[(0,t.jsxs)(Z.SearchButton,{className:"text-gray-500 w-8 h-8 flex items-center justify-center hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300",id:a.Ids.SearchBarEntryMobile,children:[(0,t.jsx)("span",{className:"sr-only",children:i}),(0,t.jsx)(z.default,{icon:"magnifying-glass",iconType:"solid",className:"h-4 w-4 bg-gray-500 dark:bg-gray-400 hover:bg-gray-600 dark:hover:bg-gray-300"})]}),(0,t.jsx)(E.default,{}),c&&(0,t.jsx)(V.MoreActionsButton,{onClick:()=>d(!0)}),(0,t.jsx)(H.TopbarDialog,{topbarDialogOpen:o,setTopbarDialogOpen:d,children:(0,t.jsx)(G,{})})]})]})}),(0,t.jsx)(M.MobileTopNavBar,{pageMetadata:r})]})}),(0,t.jsx)(L.MobileNav,{})]})}var q=e.i(865420),X=e.i(330329),Y=e.i(689907),K=e.i(528106),J=e.i(456084),Q=e.i(522016),ee=e.i(39839),et=e.i(45143),er=e.i(995047),ea=e.i(395787),en=e.i(451512),es=e.i(961508),ei=e.i(588420);let el="flex items-center gap-1.5 whitespace-nowrap h-9 text-sm font-medium tracking-tight rounded-full px-4 transition-colors",eo="text-gray-950 dark:text-gray-100 bg-gray-950/[0.03] dark:bg-white/[0.06]",ed="text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200 hover:bg-gray-950/[0.03] dark:hover:bg-white/[0.03]";function ec({icon:e}){return e?(0,t.jsx)(z.ComponentIcon,{icon:"string"==typeof e?e:e.name,iconType:"string"==typeof e?"regular":e.style,className:"size-4 bg-current",overrideColor:!0}):null}let eu=["w-16","w-20","w-24","w-28"];function ex({name:e}){return(0,t.jsx)("div",{"aria-hidden":"true",className:(0,f.cn)(el,"pointer-events-none animate-pulse text-transparent"),children:(0,t.jsx)("span",{className:(0,f.cn)("inline-block h-3 rounded-full bg-gray-200 dark:bg-white/10",(0,J.pickSkeletonWidth)(e,eu))})})}function em({tab:e}){let[r,a]=(0,n.useState)(!1),s=(0,n.useRef)(null),i=e.menu??[];(0,n.useEffect)(()=>()=>{s.current&&clearTimeout(s.current)},[]);let l=()=>{s.current&&(clearTimeout(s.current),s.current=null),a(!0)},o=()=>{s.current=setTimeout(()=>{a(!1),s.current=null},100)};return(0,t.jsxs)(et.DropdownMenu,{open:r,onOpenChange:a,children:[(0,t.jsxs)(en.Menu.Trigger,{className:(0,f.cn)(el,e.isActive||r?eo:ed),onMouseEnter:l,onMouseLeave:o,children:[(0,t.jsx)(ec,{icon:e.icon}),e.name,(0,t.jsx)(ea.DropdownArrowIcon,{className:(0,f.cn)("text-gray-400 dark:text-gray-600 rotate-90 transition-transform",r&&"rotate-[270deg]")})]}),(0,t.jsx)(et.DropdownMenuContent,{align:"start",side:"bottom",sideOffset:5,alignOffset:-8,onMouseEnter:l,onMouseLeave:o,className:"p-1 border border-gray-100 dark:border-gray-800 w-56 transition-none! data-starting-style:opacity-100! data-starting-style:scale-100! data-ending-style:opacity-100! data-ending-style:scale-100!",children:i.map((e,r)=>(0,t.jsxs)(er.DynamicLink,{href:e.href,className:(0,f.cn)(N.Classes.DropdownItem,"rounded-xl text-gray-600 hover:text-gray-800 px-2.5 py-2 dark:text-gray-400 dark:hover:text-gray-300 flex group items-center gap-2 hover:bg-gray-600/5 dark:hover:bg-gray-200/5"),onClick:()=>a(!1),"aria-current":e.isActive?"location":void 0,children:[e.icon&&(0,t.jsx)(z.ComponentIcon,{icon:"string"==typeof e.icon?e.icon:e.icon.name,iconType:"string"==typeof e.icon?"regular":e.icon.style||"regular",className:(0,f.cn)("size-4 min-h-4 min-w-4 shrink-0 overflow-visible",e.isActive?"bg-primary dark:bg-primary-light":"bg-gray-600 dark:bg-gray-400"),overrideColor:!0}),(0,t.jsxs)("div",{className:"flex flex-col min-w-0 grow",children:[(0,t.jsx)("span",{className:(0,f.cn)("text-sm font-medium",e.isActive&&"text-primary dark:text-primary-light font-semibold"),children:e.item}),e.description&&(0,t.jsx)("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:e.description})]}),(0,es.isAbsoluteUrl)(e.href)&&(0,t.jsx)(ei.ArrowUpRight2Icon,{"aria-hidden":"true",strokeWidth:2,className:"size-3.5 text-gray-600 dark:text-gray-400 shrink-0 opacity-0 group-hover:opacity-100"})]},e.href+r))})]})}function eg({tab:e,isSkeleton:r}){return r?(0,t.jsx)(ex,{name:e.name}):e.menu&&e.menu.length>0?(0,t.jsx)(em,{tab:e}):(0,t.jsxs)(er.DynamicLink,{href:e.href,className:(0,f.cn)(el,e.isActive?eo:ed),"aria-current":e.isActive?"location":void 0,children:[(0,t.jsx)(ec,{icon:e.icon}),e.name]})}let eh="flex items-center gap-2 whitespace-nowrap text-sm font-medium text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-gray-100",ep=({mobile:e,hideTopbarPrimary:r})=>(0,t.jsx)(_.NavbarLinks,{actionClassName:e?eh:(0,O.getActionClassname)("luma"),hideMobileCtaButton:!0,hideTopbarPrimary:r});function ef({className:e,pageMetadata:r}){let{divisions:s}=(0,n.useContext)(w.NavigationContext),i=(0,X.useLocalizedNavbar)(),l=(0,w.useSelectedLocale)(),o=(0,q.useAnalyticsContext)("docs.navitem.cta_click"),{search:d,searchOrAsk:c}=l,[u,m]=(0,n.useState)(!1),g=s.tabs,h=(0,n.useRef)(null),[p,y]=(0,n.useState)(!1),b=(0,ee.useMediaQuery)("(min-width: 1024px)"),v=p&&b,j=(0,C.useTopbarMenuHasContent)()||!v&&g.length>0;(0,n.useEffect)(()=>{let e=h.current;if(!e)return;let t=new ResizeObserver(e=>{let t=e[0];t&&y(t.contentRect.width>=600)});return t.observe(e),()=>t.disconnect()},[]);let P=i?.primary,F=P&&"href"in P?P.href:void 0,_=P&&"label"in P?P.label:void 0,O=(0,t.jsxs)(t.Fragment,{children:[!v&&g.map((e,r)=>(0,J.isSkeletonEntry)({href:e.href})?(0,t.jsx)("li",{"aria-hidden":"true",className:(0,f.cn)(eh,"pointer-events-none animate-pulse"),children:(0,t.jsx)("span",{className:"inline-block h-3 w-24 rounded-md bg-gray-200 dark:bg-white/10"})},`skeleton-${r}`):(0,t.jsx)("li",{className:"whitespace-nowrap",children:(0,t.jsx)(Q.default,{href:e.href,className:eh,children:(0,t.jsx)("span",{className:"min-w-0 truncate",children:e.name})})},e.name)),(0,t.jsx)(ep,{mobile:!0,hideTopbarPrimary:!0}),P?.type==="github"?(0,t.jsx)(K.GitHubCta,{actionClassName:eh}):P?.type==="discord"?(0,t.jsx)(Y.DiscordCta,{actionClassName:eh}):F&&_&&(0,t.jsx)("li",{className:"whitespace-nowrap",children:(0,t.jsx)(Q.default,{href:F,target:"_blank",rel:"noopener noreferrer",className:eh,onClick:()=>o({name:_,url:F,type:"button"}),children:(0,t.jsx)("span",{className:"min-w-0 truncate",children:_})})})]});return(0,t.jsxs)("header",{ref:h,id:a.Ids.Navbar,className:(0,f.cn)(x.zIndex.PrimaryNav,"fixed lg:sticky top-0 w-full @container/navbar",e),children:[(0,t.jsx)("div",{className:"z-10 absolute w-full h-full border-b border-gray-100 dark:border-gray-800"}),(0,t.jsx)("div",{className:"z-0 absolute inset-0 bg-background-light dark:bg-background-dark"}),(0,t.jsx)(k.Banner,{}),(0,t.jsx)("div",{className:"z-10 relative px-0 lg:px-5",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("div",{className:"hidden lg:flex items-center h-12 px-4 pb-px min-w-0",children:[(0,t.jsxs)("div",{className:"flex-1 flex items-center gap-x-4 h-full pr-2 min-w-0",children:[(0,t.jsx)(T.NavLogo,{logoClassName:"h-6"}),(0,t.jsx)(A.VersioningSelect,{}),(0,t.jsx)(S.ProductsSelector,{})]}),g.length>0?(0,t.jsx)("nav",{"aria-label":"Main",className:"hidden @[600px]/navbar:flex text-sm items-center justify-center px-2 min-w-0",children:(0,t.jsx)("ul",{className:"flex items-center gap-1",children:g.map((e,r)=>{let a=(0,J.isSkeletonEntry)({href:e.href});return(0,t.jsx)("li",{children:(0,t.jsx)(eg,{tab:e,isSkeleton:a})},a?`skeleton-${r}`:e.name)})})}):null,(0,t.jsxs)("div",{className:(0,f.cn)(N.Classes.TopbarRightContainer,"flex-1 flex items-center gap-2 justify-end"),children:[(0,t.jsx)(D.DesktopSearchEntry,{className:"flex-none! justify-end",searchButtonClassName:"bg-gray-950/[0.03] dark:bg-white/[0.03] hover:bg-gray-950/10 dark:hover:bg-white/10 rounded-full shadow-none border-none ring-0 dark:ring-0 p-0! w-9! justify-center! @[1500px]/navbar:pl-3.5! @[1500px]/navbar:pr-3! @[1500px]/navbar:w-fit! @[1500px]/navbar:justify-between!",searchPromptOverride:d,promptClassName:"hidden @[1500px]/navbar:block",kbdClassName:"bg-white dark:bg-background-dark px-1.5 py-0.5 rounded-full text-gray-600 dark:text-gray-400 hidden @[1500px]/navbar:inline-flex",includeAskAssistantText:!0,inlineAskAssistantKbd:!0,askAssistantTextClassName:"hidden @[1500px]/navbar:inline",aiButtonClassName:"shrink-0 min-w-9 gap-2 p-0! w-9! @[1500px]/navbar:pl-3.5! @[1500px]/navbar:pr-3! @[1500px]/navbar:w-auto!"}),(0,t.jsx)("ul",{className:"hidden @[1100px]/navbar:flex items-center gap-2 list-none shrink-0 [&:empty]:hidden",children:(0,t.jsx)(ep,{})}),(0,t.jsx)(I.ThemePreferenceMenu,{iconClassName:"text-gray-600 group-hover:text-gray-800 dark:text-gray-300 dark:group-hover:text-gray-100",triggerClassName:"w-9 h-9 rounded-full bg-gray-950/[0.03] dark:bg-white/[0.03] hover:bg-gray-950/10 dark:hover:bg-white/10 transition-colors"}),j&&(0,t.jsx)("div",{className:"flex @[1100px]/navbar:hidden",children:(0,t.jsx)(V.MoreActionsButton,{onClick:()=>m(!0),desktop:!0})})]})]}),(0,t.jsx)("div",{className:"flex lg:hidden items-center h-12 px-4 pb-px min-w-0",children:(0,t.jsxs)("div",{className:"h-full relative flex-1 flex items-center gap-x-4 min-w-0",children:[(0,t.jsx)(T.NavLogo,{logoClassName:"h-6"}),(0,t.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,t.jsxs)(Z.SearchButton,{className:"text-gray-500 w-8 h-8 flex items-center justify-center hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300",id:a.Ids.SearchBarEntryMobile,children:[(0,t.jsx)("span",{className:"sr-only",children:c}),(0,t.jsx)(z.default,{icon:"magnifying-glass",iconType:"solid",className:"h-4 w-4 bg-gray-500 dark:bg-gray-400 hover:bg-gray-600 dark:hover:bg-gray-300"})]}),(0,t.jsx)(E.default,{}),j&&(0,t.jsx)(V.MoreActionsButton,{onClick:()=>m(!0)})]})]})}),(0,t.jsx)(M.MobileTopNavBar,{pageMetadata:r})]})}),(0,t.jsx)(H.TopbarDialog,{topbarDialogOpen:u,setTopbarDialogOpen:m,showOnDesktop:!0,children:O}),(0,t.jsx)(L.MobileNav,{})]})}var ey=e.i(930584),eb=e.i(604804),ev=e.i(535345);let ej="flex items-center gap-2 whitespace-nowrap font-medium text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200 px-2.5 h-12",ek=()=>{let e=(0,X.useLocalizedNavbar)(),{userAuthLoginButton:r,authLoginButton:a,authLogoutButton:s,userAuthLogoutButton:i}=(0,n.useContext)(eb.LoginButtonContext),l=(0,q.useAnalyticsContext)("docs.navitem.click"),o=(0,n.useCallback)((e,t)=>l({name:e,url:t}),[l]);return(0,t.jsxs)(t.Fragment,{children:[e?.links?.map(e=>{let r=(0,es.isAbsoluteUrl)(e.href),{label:a}=e;return r?(0,t.jsx)("li",{className:(0,f.cn)(N.Classes.NavBarLink),children:(0,t.jsxs)("a",{href:e.href,className:ej,onClick:()=>o(a,e.href),target:"_blank",rel:"noopener noreferrer",children:[e.icon&&(0,t.jsx)(z.ComponentIcon,{icon:"string"==typeof e.icon?e.icon:e.icon.name,iconType:"string"==typeof e.icon?"regular":e.icon.style||"regular",className:"h-4 w-4 bg-gray-600 dark:bg-gray-400",overrideColor:!0}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:a})]})},a):(0,t.jsx)("li",{className:(0,f.cn)(N.Classes.NavBarLink),children:(0,t.jsxs)(Q.default,{href:e.href||"/",className:ej,onClick:()=>o(a,e.href),children:[e.icon&&(0,t.jsx)(z.ComponentIcon,{icon:"string"==typeof e.icon?e.icon:e.icon.name,iconType:"string"==typeof e.icon?"regular":e.icon.style||"regular",className:"h-4 w-4 bg-gray-600 dark:bg-gray-400",overrideColor:!0}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:a})]})},a)}),r&&(0,t.jsx)("li",{className:"lg:hidden",children:r},"login"),i&&(0,t.jsx)("li",{className:"lg:hidden",children:i},"personalization-logout"),a&&(0,t.jsx)("li",{className:"lg:hidden",children:a},"partial-auth-login"),s&&(0,t.jsx)("li",{className:"lg:hidden",children:s},"auth-logout")]})};function ew({className:e,pageMetadata:r}){let{tabsSlotVisible:s}=(0,n.useContext)(w.NavigationContext),{userAuthLoginButton:i,authLoginButton:l,authLogoutButton:o,userAuthLogoutButton:d}=(0,n.useContext)(eb.LoginButtonContext),c=(0,X.useLocalizedNavbar)(),u=(0,w.useSelectedLocale)(),m=(0,q.useAnalyticsContext)("docs.navitem.cta_click"),{search:g,askAssistant:h}=u,[p,y]=(0,n.useState)(!1),b=(0,C.useTopbarMenuHasContent)({includePrimary:!1}),{searchPrompt:v,hasChatPermissions:j}=(0,n.useContext)(P.SearchContext),{onChatSheetToggle:N}=(0,n.useContext)(P.ChatAssistantContext),D=(0,ev.useActionKey)(),_=i||l||o||d,O=c?.primary;return(0,t.jsxs)("header",{id:a.Ids.Navbar,className:(0,f.cn)(x.zIndex.PrimaryNav,"fixed lg:sticky top-0 w-full",e),children:[(0,t.jsx)("div",{className:"z-10 absolute w-full h-full border-b border-gray-100 dark:border-gray-800"}),(0,t.jsx)("div",{className:"z-0 absolute inset-0 bg-background-light dark:bg-background-dark"}),(0,t.jsx)(k.Banner,{}),(0,t.jsxs)("div",{className:"z-10 relative",children:[(0,t.jsxs)("div",{className:"hidden lg:flex items-center h-12 min-w-0 w-full px-6",children:[(0,t.jsxs)("div",{className:"flex-1 flex items-center gap-x-4 h-full pr-2",children:[(0,t.jsx)(T.NavLogo,{linkClassName:"shrink-0",logoClassName:"h-[22px]"}),(0,t.jsx)(A.VersioningSelect,{}),(0,t.jsx)(S.ProductsSelector,{className:"max-lg:hidden"})]}),(0,t.jsxs)("div",{className:"flex-1 flex items-center justify-center gap-2 px-2 min-w-0",children:[(0,t.jsx)(Z.SearchButton,{className:"flex items-center w-64 min-w-0 shrink h-8 px-2 gap-1 bg-gray-50 dark:bg-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 rounded-lg border border-gray-100 dark:border-gray-800",id:a.Ids.SearchBarEntry,children:({actionKey:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(z.default,{icon:"magnifying-glass",iconType:"regular",className:"h-4 w-4 bg-gray-500 dark:bg-gray-400"}),(0,t.jsx)("span",{className:"flex-1 text-left text-sm text-gray-500 dark:text-gray-500 pl-1",children:v}),e&&(0,t.jsxs)("span",{className:"px-1.5 py-0.5 text-xs font-medium text-gray-600 dark:text-gray-400 bg-white dark:bg-gray-950 rounded",children:[e[0],"K"]})]})}),j&&(0,t.jsxs)("button",{type:"button",className:"flex items-center h-8 px-2.5 gap-1.5 bg-gray-50 dark:bg-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 rounded-lg border border-gray-100 dark:border-gray-800",onClick:()=>N({entryPoint:"topbar"}),id:a.Ids.AssistantEntry,"aria-label":u["aria.toggleAssistantPanel"],children:[(0,t.jsx)("span",{className:"text-sm font-medium text-gray-600 dark:text-gray-400 whitespace-nowrap",children:h}),(0,t.jsxs)("span",{className:"px-1.5 py-0.5 text-xs font-medium text-gray-600 dark:text-gray-400 bg-white dark:bg-gray-950 rounded",children:[D[0],"I"]})]})]}),(0,t.jsxs)("div",{className:"flex-1 flex items-center gap-4 h-full justify-end",children:[(0,t.jsx)("nav",{"aria-label":"Main",className:"text-sm",children:(0,t.jsx)("ul",{className:"flex gap-x-2 items-center",children:(0,t.jsx)(ek,{})})}),O&&"button"===O.type&&O.href&&O.label&&(0,t.jsx)("a",{"data-component-name":"primary-header-button",href:O.href,target:"_blank",rel:"noopener noreferrer",className:"flex items-center px-3 py-1.5 text-sm font-medium text-white dark:text-black/75 bg-primary dark:bg-primary-light hover:opacity-90 rounded-lg shadow-xs whitespace-nowrap",onClick:()=>m({name:O.label,url:O.href,type:"button"}),children:O.label}),_&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[i,l,o,d]}),(0,t.jsx)("div",{className:"-mr-4",children:(0,t.jsx)(I.ThemePreferenceMenu,{iconClassName:"text-gray-500 group-hover:text-gray-700 dark:text-gray-400 dark:group-hover:text-gray-200",triggerClassName:"w-8 h-8 rounded-lg"})})]})]}),s&&(0,t.jsx)("div",{className:"hidden lg:block bg-gray-50 dark:bg-gray-900",children:(0,t.jsxs)("div",{className:"flex items-center justify-between h-12 w-full px-6",children:[(0,t.jsx)(F.TabsBar,{className:"h-12 text-sm font-medium text-gray-600 dark:text-gray-400",activeClassName:"text-primary dark:text-primary-light",align:"start"}),(0,t.jsx)(F.TabsBar,{className:"h-12 text-sm font-medium text-gray-600 dark:text-gray-400",activeClassName:"text-primary dark:text-primary-light",align:"end"})]})}),(0,t.jsxs)("div",{className:"flex lg:hidden items-center justify-between h-12 px-4",children:[(0,t.jsx)(T.NavLogo,{logoClassName:"h-[22px]"}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)(Z.SearchButton,{className:"text-gray-500 w-8 h-8 flex items-center justify-center hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300",id:a.Ids.SearchBarEntryMobile,children:[(0,t.jsx)("span",{className:"sr-only",children:g}),(0,t.jsx)(z.default,{icon:"magnifying-glass",iconType:"solid",className:"h-4 w-4 bg-gray-500 dark:bg-gray-400 hover:bg-gray-600 dark:hover:bg-gray-300"})]}),(0,t.jsx)(E.default,{}),b&&(0,t.jsx)(V.MoreActionsButton,{onClick:()=>y(!0)}),(0,t.jsx)(H.TopbarDialog,{topbarDialogOpen:p,setTopbarDialogOpen:y,children:(0,t.jsx)(ek,{})})]})]}),(0,t.jsx)("div",{className:"lg:hidden bg-gray-50 dark:bg-gray-900",children:(0,t.jsx)(M.MobileTopNavBar,{pageMetadata:r})})]}),(0,t.jsx)(L.MobileNav,{})]})}var eC=e.i(745278),eN=e.i(759261),eL=e.i(248511),eM=e.i(137631);let eV="regular",eS=e=>"copy"===e||"mcp"===e||"add-mcp"===e,eI=({icon:e,className:r})=>"function"==typeof e?(0,t.jsx)(e,{className:(0,f.cn)("size-4 shrink-0",r)}):(0,t.jsx)(z.ComponentIcon,{icon:("string"==typeof e?e:e?.name)||"info",iconType:("string"==typeof e?eV:e?.style)||eV,className:(0,f.cn)("size-4 bg-gray-700 dark:bg-gray-300",r),overrideColor:!0});function eH({triggerClassName:e,iconClassName:r,pageMetadata:a}){let{options:s,display:i}=(0,eN.useContextualOptions)(a),[l,o]=(0,n.useState)(!1),{text:d,execute:c,isDisabled:u}=(0,eL.useCopyPage)(),x=(0,n.useCallback)((e,t)=>async()=>{if("download-pdf"===e)return void t();o(!1),eS(e)?await c(t):t()},[c]),m=(0,n.useMemo)(()=>s.map(e=>({...e,action:x(e.id,e.action)})),[s,x]),g=m[0],h=e=>e.isLoading&&"download-pdf"===e.id?"Downloading PDF":e.title;return"toc"!==i&&g?(0,t.jsxs)(et.DropdownMenu,{open:l,onOpenChange:o,children:[(0,t.jsxs)(et.DropdownMenuTrigger,{disabled:u||g.isLoading,"data-component-part":"context-menu-dropdown-trigger",className:(0,f.cn)("py-1.5 px-2.5 rounded-xl hover:bg-gray-600/5! dark:hover:bg-gray-200/5! aria-[expanded=true]:bg-gray-600/5 dark:aria-[expanded=true]:bg-gray-200/5 text-sm font-medium text-gray-900 h-8 focus-visible:outline-primary dark:focus-visible:outline-primary-light dark:text-gray-300 group/trigger flex items-center gap-2 whitespace-nowrap",e),children:[g.isLoading?(0,t.jsx)(eM.LoaderCircleIcon,{"aria-hidden":"true",className:(0,f.cn)("size-4 animate-spin shrink-0",r)}):(0,t.jsx)(eI,{icon:g.icon,className:r}),(0,t.jsx)("span",{className:"truncate max-w-[12.5rem]",children:eS(g.id)?d:h(g)}),(0,t.jsx)(ea.DropdownArrowIcon,{className:"rotate-90 group-aria-[expanded=true]/trigger:rotate-[270deg]"})]}),(0,t.jsx)(et.DropdownMenuContent,{"data-component-part":"context-menu-dropdown-content",side:"bottom",align:"start",className:"inline-flex max-h-[420px] max-w-[16rem] md:max-w-[32rem] p-1 border border-gray-200 dark:border-white/[0.07] flex-col",children:m.map((e,r)=>(0,t.jsxs)(en.Menu.Item,{"data-component-part":"context-menu-dropdown-item",onClick:()=>void e.action(),closeOnClick:"download-pdf"!==e.id,disabled:e.isLoading,className:"flex outline-hidden! items-center pl-2.5 pr-4 py-2 gap-2 focus:bg-gray-600/5 dark:focus:bg-gray-200/5 cursor-pointer rounded-xl data-disabled:opacity-70 data-disabled:pointer-events-none",children:[(0,t.jsx)("div",{className:"flex items-center justify-center",children:e.isLoading?(0,t.jsx)(eM.LoaderCircleIcon,{"aria-hidden":"true",className:"size-4 animate-spin shrink-0"}):(0,t.jsx)(eI,{icon:e.icon})}),(0,t.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1 text-sm font-medium text-gray-800 dark:text-gray-300",children:[eS(e.id)?d:h(e),e.externalLink&&(0,t.jsx)(ei.ArrowUpRight2Icon,{"aria-hidden":"true",strokeWidth:2,className:"size-3 text-gray-600 dark:text-gray-400 shrink-0"})]}),(0,t.jsx)("p",{className:"text-xs text-gray-600 dark:text-gray-400 line-clamp-1",children:e.description})]})]},e.id+r))})]}):null}var eA=e.i(574546),eT=e.i(286506),eP=e.i(628083);function eD({triggerClassName:e,center:r=!1}){let{divisions:a,isAuthNavigationPending:s}=(0,n.useContext)(w.NavigationContext),i=a.tabs,l=i.find(eT.isActiveDivision);return s?(0,t.jsx)("div",{"aria-hidden":"true",className:(0,f.cn)("py-1.5 px-2.5 rounded-xl h-8 flex items-center gap-2 animate-pulse",e),children:(0,t.jsx)("div",{className:"h-3 w-20 rounded bg-gray-200 dark:bg-white/10"})}):0===i.length?null:(0,t.jsxs)(et.DropdownMenu,{children:[(0,t.jsxs)(et.DropdownMenuTrigger,{"data-component-part":"tabs-dropdown-trigger",className:(0,f.cn)("py-1.5 px-2.5 rounded-xl hover:bg-gray-600/5! dark:hover:bg-gray-200/5! aria-[expanded=true]:bg-gray-600/5 dark:aria-[expanded=true]:bg-gray-200/5 text-sm font-medium text-gray-900 h-8 focus-visible:outline-primary dark:focus-visible:outline-primary-light dark:text-gray-300 group/trigger flex items-center gap-2 whitespace-nowrap",e),children:[(0,t.jsx)("span",{className:"truncate max-w-[12.5rem]",children:l?.name}),(0,t.jsx)(ea.DropdownArrowIcon,{className:(0,f.cn)("rotate-90 group-aria-[expanded=true]/trigger:rotate-[270deg]",!r&&"ml-auto")})]}),(0,t.jsx)(et.DropdownMenuContent,{"data-component-part":"tabs-dropdown-content",side:"bottom",align:"start",className:"max-h-[420px] p-1 border border-gray-200 dark:border-white/[0.07]",children:i.map(e=>(0,t.jsxs)(en.Menu.Item,{render:(0,t.jsx)(er.DynamicLink,{href:e.href}),"data-component-part":"tabs-dropdown-item","data-selected":e.isActive,"aria-selected":e.isActive,className:"flex outline-hidden! items-center pl-2.5 pr-4 py-2 gap-2 focus:bg-gray-600/5 dark:focus:bg-gray-200/5 cursor-pointer rounded-xl",children:[(0,t.jsx)("p",{className:(0,f.cn)("flex-1 text-sm font-medium",e.isActive?"text-primary dark:text-primary-light":"text-gray-800 dark:text-gray-300"),children:e.name}),e.isActive&&(0,t.jsx)(eP.Check2Icon,{"aria-hidden":"true",strokeWidth:2,className:"size-4 shrink-0 text-primary dark:text-primary-light"})]},e.name))})]})}var eZ=e.i(358280),eE=e.i(872866),ez=e.i(43857),eF=e.i(154601),e_=e.i(298836),eO=e.i(379291),eR=e.i(5535),eB=e.i(517956),eW=e.i(378114);let e$=({className:e})=>{let r=(0,X.useLocalizedNavbar)(),a=r?.links,n=r?.primary;if(!a&&!n)return null;let s="font-medium text-gray-600 dark:text-gray-400 leading-4 tracking-[-0.12px] uppercase font-family-mono";return(0,t.jsxs)("ul",{className:(0,f.cn)("pt-4",e),children:[n?.type==="button"&&(0,t.jsx)(eW.NavItem,{entry:{href:n.href,title:n.label},analytics:{event:"docs.navitem.cta_click",properties:{type:"button"}},shouldAutoNavigateOnGroupClick:!0,sidebarItemStyle:"undecorated",trailingIcon:(0,t.jsx)(ei.ArrowUpRight2Icon,{"aria-hidden":"true",strokeWidth:2,className:"size-3.5 text-gray-400 dark:text-gray-500 group-hover:text-gray-500 dark:group-hover:text-gray-400 shrink-0"}),trailingIconHug:!0,className:s}),n?.type==="github"&&(0,t.jsx)(K.GitHubCta,{className:"pl-4",iconClassName:"size-3.5",labelClassName:s}),n?.type==="discord"&&(0,t.jsx)(Y.DiscordCta,{className:"pl-4",iconClassName:"size-3.5",labelClassName:s}),a?.map(e=>{let{type:r}=e;return"github"===r?(0,t.jsx)(K.GitHubCta,{className:"pl-4",href:e.href,label:e.label,iconClassName:"size-3.5",labelClassName:s},e.href):"discord"===r?(0,t.jsx)(Y.DiscordCta,{className:"pl-4",href:e.href,label:e.label,iconClassName:"size-3.5",labelClassName:s},e.href):(0,t.jsx)(eW.NavItem,{entry:{href:e.href,title:e.label??"",icon:e.icon},shouldAutoNavigateOnGroupClick:!0,sidebarItemStyle:"undecorated",trailingIcon:(0,t.jsx)(ei.ArrowUpRight2Icon,{"aria-hidden":"true",strokeWidth:2,className:"size-3.5 text-gray-400 dark:text-gray-500 group-hover:text-gray-500 dark:group-hover:text-gray-400 shrink-0"}),trailingIconHug:!0,className:s},e.href)})]})},eG="text-gray-600 dark:text-gray-400 leading-4 tracking-[-0.14px] uppercase font-family-mono text-sm",eU="size-3.5 text-gray-600 dark:text-gray-400 group-hover:text-gray-800 dark:group-hover:text-gray-100",eq=()=>{let{divisions:e,isAuthNavigationPending:r,tabsSlotVisible:s}=(0,n.useContext)(w.NavigationContext),{docsConfig:i}=(0,n.useContext)(m.DocsConfigContext),l=e.groupsOrPages.reduce((e,t)=>(0,eB.isPage)(t)?e+1:e+t.pages.length,0),o="flex justify-center items-center gap-2 self-stretch h-8 px-2.5 py-2 rounded-none border-2 border-solid border-gray-100 dark:border-gray-800",d=(0,f.cn)(eG,"font-medium leading-4");return(0,t.jsxs)("div",{className:"relative lg:text-sm lg:leading-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,t.jsx)(T.NavLogo,{linkClassName:"pl-0 pr-2.5 py-2",logoClassName:"h-4"}),!i?.appearance?.strict&&(0,t.jsx)(eR.SwitchThemeToggle,{square:!0})]}),(0,t.jsxs)("div",{id:a.Ids.NavigationItems,children:[(0,t.jsxs)("div",{className:"flex flex-col gap-y-2 mb-6",children:[(0,t.jsx)(eA.LocalizationSelect,{triggerClassName:(0,f.cn)(o,d),center:!0}),(0,t.jsx)(eZ.VersionSelect,{triggerClassName:(0,f.cn)(o,d),center:!0}),(0,t.jsx)(S.ProductsSelector,{className:(0,f.cn)(o,d),center:!0}),s&&(0,t.jsx)(e_.TopLevelNavTabsMobile,{triggerClassName:o,triggerLabelClassName:d})]}),(0,t.jsx)("div",{className:"ml-[-15px] mb-6",children:e.anchors.length>0&&(0,t.jsx)(eO.Anchors,{className:(0,f.cn)(d,"[&_a]:font-normal")})}),(0,t.jsx)(eF.Dropdowns,{triggerClassName:"rounded-none mb-6",iconClassName:eU,itemClassName:d}),(0,t.jsx)("div",{className:"ml-[-15px]",children:(l>0||r)&&(0,t.jsx)(ez.Nav,{docsConfig:i,nav:e.groupsOrPages,mobile:!0})})]}),(0,t.jsx)(e$,{className:"ml-[-15px]"})]})};function eX({className:e,pageMetadata:r}){let{divisions:s,tabsSlotVisible:i}=(0,n.useContext)(w.NavigationContext),l=(0,W.useSupportsBlur)(),o=s.versions.length>0,d=s.products.length>0,c=s.languages.length>0;return(0,t.jsxs)("header",{id:a.Ids.Navbar,className:(0,f.cn)(x.zIndex.PrimaryNav,"fixed lg:sticky top-0 w-full",e),children:[(0,t.jsx)("div",{id:a.Ids.NavBarTransition,className:(0,f.cn)("absolute w-full h-full flex-none",l?"backdrop-blur":"bg-background-light dark:bg-background-dark")}),(0,t.jsx)(k.Banner,{}),(0,t.jsx)("div",{className:"mx-auto relative",children:(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"flex items-center h-12 min-w-0 px-4 py-2 max-lg:border-b border-gray-200 dark:border-gray-700",children:(0,t.jsxs)("div",{className:"h-full relative flex-1 flex items-center gap-x-4 min-w-0",children:[(0,t.jsx)(eY,{hasVersions:o,hasProducts:d,hasTabs:i,hasLanguages:c,pageMetadata:r}),(0,t.jsx)(eK,{})]})}),(0,t.jsx)(M.MobileTopNavBar,{className:"h-12 py-1 px-4",pageMetadata:r})]})})}),(0,t.jsx)(L.MobileNav,{children:(0,t.jsx)(eq,{})})]})}let eY=({hasVersions:e,hasProducts:r,hasLanguages:s,hasTabs:i,pageMetadata:l})=>{let{askAssistant:o,search:d}=(0,w.useSelectedLocale)(),{hasChatPermissions:c}=(0,n.useContext)(P.SearchContext),{options:u,display:x}=(0,eN.useContextualOptions)(l),m=u.length>0&&"toc"!==x;return(0,t.jsxs)("div",{className:"hidden lg:flex flex-1",children:[(0,t.jsxs)("div",{className:"flex-1 flex items-center gap-x-2.5",children:[(0,t.jsx)(T.NavLogo,{linkClassName:"my-4 pr-2.5",logoClassName:"h-4"}),e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eJ,{}),(0,t.jsx)(eZ.VersionSelect,{triggerClassName:eG})]}),r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eJ,{}),(0,t.jsx)(S.ProductsSelector,{className:eG})]}),i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eJ,{}),(0,t.jsx)(eD,{triggerClassName:eG})]})]}),(0,t.jsxs)("div",{className:"flex-1 relative hidden lg:flex items-center justify-end gap-3",children:[c&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(E.default,{className:"flex items-center justify-center text-primary dark:text-primary-light gap-1",filledIcon:!0,iconClassName:(0,f.cn)(eU,"text-primary dark:text-primary-light"),children:(0,t.jsx)("div",{className:"text-sm text-primary dark:text-primary-light uppercase min-w-max font-family-mono",children:o})}),(0,t.jsx)(eJ,{})]}),m&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eH,{triggerClassName:eG,iconClassName:eU,pageMetadata:l}),(0,t.jsx)(eJ,{})]}),s&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eA.LocalizationSelect,{triggerClassName:eG}),(0,t.jsx)(eJ,{})]}),(0,t.jsxs)(Z.SearchButton,{className:"group flex items-center justify-center",id:a.Ids.SearchBarEntryMobile,children:[(0,t.jsx)("span",{className:"sr-only",children:d}),(0,t.jsx)(eE.MagnifierIcon,{"aria-hidden":"true",strokeWidth:2,className:(0,f.cn)("size-3.5 shrink-0",eU)})]}),(0,t.jsx)(I.ThemePreferenceMenu,{iconClassName:eU}),(0,t.jsx)(_.NavbarLinks,{actionClassName:O.DEFAULT_ACTION_CLASSNAME,authOnly:!0,hideMobileCtaButton:!0})]})]})},eK=()=>{let{search:e}=(0,w.useSelectedLocale)();return(0,t.jsxs)("div",{className:"flex flex-1 lg:hidden",children:[(0,t.jsx)("div",{className:"flex-1 flex items-center gap-x-2.5",children:(0,t.jsx)(T.NavLogo,{linkClassName:"my-4 pr-2.5",logoClassName:"h-4"})}),(0,t.jsxs)("div",{className:"flex lg:hidden items-center gap-3",children:[(0,t.jsx)(E.default,{className:"flex items-center justify-center text-primary dark:text-primary-light gap-1",filledIcon:!0,iconClassName:(0,f.cn)(eU,"text-primary dark:text-primary-light")}),(0,t.jsxs)(Z.SearchButton,{className:"group flex items-center justify-center",id:a.Ids.SearchBarEntryMobile,children:[(0,t.jsx)("span",{className:"sr-only",children:e}),(0,t.jsx)(eE.MagnifierIcon,{"aria-hidden":"true",strokeWidth:2,className:(0,f.cn)("size-3.5 shrink-0",eU)})]}),(0,t.jsx)(_.NavbarLinks,{actionClassName:O.DEFAULT_ACTION_CLASSNAME,authOnly:!0,hideMobileCtaButton:!0})]})]})},eJ=({className:e})=>(0,t.jsx)("div",{className:(0,f.cn)("w-px h-3 bg-gray-200 dark:bg-gray-700",e)});function eQ({pageModeClasses:e}){return(0,t.jsx)("header",{id:a.Ids.Navbar,className:(0,f.cn)(x.zIndex.Banner,"hidden w-full sticky top-0 [[data-banner-state=visible]_&]:lg:block",...e),children:(0,t.jsx)(k.Banner,{})})}var e0=e.i(343534);function e1({theme:e,pageMetadata:r}){let n=(0,o.useEffectivePageMetadata)(r),{isCustom:s,isCenter:i,isWide:l,isFrame:d,isAssistant:c}=(0,e0.getPageMode)(n),x=[s?u.isCustom:u.isNotCustom,i?u.isCenter:u.isNotCenter,l?u.isWide:u.isNotWide,d?u.isFrame:u.isNotFrame,...c?["relative! shrink-0"]:[]],m=(0,f.cn)(...x),g=(0,t.jsx)("header",{id:a.Ids.Navbar,className:(0,f.cn)("hidden",m)});switch(e){case"maple":return c?(0,t.jsx)(eC.TopBar,{className:m,pageMetadata:n}):(0,t.jsx)(eQ,{pageModeClasses:x});case"palm":return s?g:(0,t.jsx)(ey.PalmTopBar,{className:m,pageMetadata:n});case"linden":return(0,t.jsx)(U,{className:m,pageMetadata:n});case"aspen":return(0,t.jsx)(B,{className:m,pageMetadata:n});case"luma":return(0,t.jsx)(ef,{className:m,pageMetadata:n});case"almond":return s?g:(0,t.jsx)(j.AlmondTopBar,{className:m,pageMetadata:n});case"sequoia":return(0,t.jsx)(ew,{className:m,pageMetadata:n});case"willow":return(0,t.jsx)(eX,{className:m,pageMetadata:n});default:return(0,t.jsx)(eC.TopBar,{className:m,pageMetadata:n})}}let e2=({pageMetadata:e,theme:r})=>{let{isLivePreview:a,getDocsConfigOverrides:s}=(0,n.useContext)(l.LivePreviewContext),i=s()?.theme,o=(0,d.useLivePreviewPageMetadata)(e);return(0,t.jsx)(e1,{theme:a&&i?i:r,pageMetadata:o})};var e5=e.i(351076);function e4({className:e}){let{docsConfig:r}=(0,n.useContext)(m.DocsConfigContext),{divisions:s}=(0,n.useContext)(w.NavigationContext),{hasChatPermissions:i}=(0,n.useContext)(P.SearchContext),l=s.languages,o=(0,D.hasSearchEntry)(i);return(0,t.jsxs)("nav",{"aria-label":"Pages",id:a.Ids.SidebarContent,suppressHydrationWarning:!0,className:(0,f.cn)("hidden fixed lg:flex flex-col left-0 bottom-0 right-auto transition-transform duration-100 w-[16.5rem] pl-2","top-[calc(var(--mintlify-slot-header-height,3.5rem)+var(--banner-height,0px))] h-[calc(100vh-var(--mintlify-slot-header-height,3.5rem)-var(--banner-height,0px))]",e),children:[(0,t.jsx)("div",{className:"flex-1 p-2 relative",children:(0,t.jsxs)("div",{className:"text-sm flex flex-col px-2",children:[(0,t.jsx)(D.DesktopSearchEntry,{}),(0,t.jsxs)(p.ScrollArea,{className:(0,f.cn)("absolute! inset-x-0 bottom-0 max-h-full",o?"top-11":"top-0"),id:a.Ids.NavigationItems,children:[(0,t.jsx)(p.ScrollAreaViewport,{className:"px-2 py-6",fade:["top"],children:(0,t.jsxs)(p.ScrollAreaContent,{className:"min-w-0! w-full",children:[(0,t.jsx)("div",{className:"px-2",children:(0,t.jsx)(eF.Dropdowns,{})}),(0,t.jsx)(e6,{}),(0,t.jsx)(e5.SideNavGroups,{nav:s.groupsOrPages,...(0,e5.getSideNavGroupsProps)({theme:r?.theme})})]})}),(0,t.jsx)(p.ScrollAreaScrollbar,{orientation:"vertical",className:"-mr-1.5"})]})]})}),(0,t.jsxs)("div",{className:(0,f.cn)(N.Classes.AlmondNavBottomSection,"w-full px-4",r?.appearance?.strict&&!l.length&&"hidden"),children:[(0,t.jsx)("div",{className:(0,f.cn)(N.Classes.AlmondNavBottomSectionDivider,"h-px bg-gray-200/70 dark:bg-gray-800/70 w-full")}),(0,t.jsxs)("div",{className:"flex items-center gap-3 py-3",children:[l.length>0&&(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(eA.LocalizationSelect,{triggerClassName:"border-none font-medium"})}),!r?.appearance?.strict&&(0,t.jsx)(eR.SwitchThemeToggle,{})]})]})]})}function e6(){return(0,t.jsx)(eO.Anchors,{className:N.Classes.Anchors})}var e3=e.i(915476);function e7({children:e}){return(0,t.jsx)("div",{suppressHydrationWarning:!0,className:(0,f.cn)("scroll-mt-(--scroll-mt)",N.Classes.AlmondLayout,"top-[calc(var(--mintlify-slot-header-height,7rem)+var(--banner-height,2.5rem))] lg:top-[calc(var(--mintlify-slot-header-height,3.5rem)+var(--banner-height,2.5rem))]","peer-[.is-not-custom]:fixed peer-[.is-not-custom]:pb-2 peer-[.is-not-custom]:px-2 peer-[.is-not-custom]:pt-0 peer-[.is-custom]:absolute",u.firstChildHiddenIfCustom),style:{width:`calc(100% - var(${e3.ASSISTANT_WIDTH_CSS_VAR}, 0px))`},children:e})}function e8({children:e}){return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(e7,{children:[(0,t.jsx)(e4,{}),e]})})}function e9({className:e}){let{divisions:r,tabsSlotVisible:s}=(0,n.useContext)(w.NavigationContext),{docsConfig:i}=(0,n.useContext)(m.DocsConfigContext);return(0,t.jsx)("nav",{"aria-label":"Pages",id:a.Ids.SidebarContent,suppressHydrationWarning:!0,className:(0,f.cn)("hidden sticky shrink-0 w-[18rem] lg:flex flex-col border-r border-gray-100 dark:border-white/10 transition-transform duration-100",s?"top-[calc(var(--mintlify-slot-header-height,6rem)+var(--banner-height,0px))] h-[calc(100vh-var(--mintlify-slot-header-height,6rem)-var(--banner-height,0px))]":"top-[calc(var(--mintlify-slot-header-height,3.5rem)+var(--banner-height,0px))] h-[calc(100vh-var(--mintlify-slot-header-height,3.5rem)-var(--banner-height,0px))]",e),children:(0,t.jsxs)(p.ScrollArea,{className:"flex-1 min-h-0",id:a.Ids.NavigationItems,children:[(0,t.jsx)(p.ScrollAreaViewport,{className:"pr-5 pt-5 pb-4",fade:["top"],children:(0,t.jsx)(p.ScrollAreaContent,{className:"min-w-0! w-full",children:(0,t.jsxs)("div",{className:"text-sm relative",children:[(0,t.jsx)("div",{className:"pl-2",children:(0,t.jsx)(eF.Dropdowns,{})}),(0,t.jsx)(te,{}),(0,t.jsx)(e5.SideNavGroups,{nav:r.groupsOrPages,...(0,e5.getSideNavGroupsProps)({theme:i?.theme})})]})})}),(0,t.jsx)(p.ScrollAreaScrollbar,{orientation:"vertical"})]})})}function te(){return(0,t.jsx)(eO.Anchors,{})}function tt({children:e}){return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{id:a.Ids.BodyContent,className:(0,f.cn)("scroll-mt-(--scroll-mt)","peer-[.is-custom]:max-w-none peer-[.is-not-custom]:max-w-8xl peer-[.is-not-custom]:lg:flex peer-[.is-not-custom]:mx-auto peer-[.is-not-custom]:px-0 peer-[.is-not-custom]:lg:px-5",u.firstChildHiddenIfCustom),children:[(0,t.jsx)(e9,{}),e]})})}function tr({children:e}){return(0,t.jsx)("nav",{"aria-label":"Pages",className:(0,f.cn)(x.zIndex.SecondaryNav,"hidden lg:block sticky self-start shrink-0 w-[18rem]","top-[calc(var(--mintlify-slot-header-height,4rem)+var(--banner-height,0px))] h-[calc(100dvh-var(--mintlify-slot-header-height,4rem)-var(--banner-height,0px))]"),id:a.Ids.Sidebar,suppressHydrationWarning:!0,children:e})}function ta(){let{docsConfig:e}=(0,n.useContext)(m.DocsConfigContext),{divisions:r,hasAdvancedTabs:s,tabsSlotVisible:i}=(0,n.useContext)(w.NavigationContext),[l,o]=(0,n.useState)(!0),d=r.dropdowns.length>0&&!s&&l;return(0,n.useEffect)(()=>{!(r.dropdowns.length>0)||s||l||o(!0)},[r.dropdowns.length,s,l]),(0,t.jsxs)("nav",{"aria-label":"Pages",id:a.Ids.SidebarContent,suppressHydrationWarning:!0,className:(0,f.cn)("hidden sticky lg:flex flex-col border-r border-gray-200/70 dark:border-white/[0.07] transition-transform duration-100",i?"top-[calc(var(--mintlify-slot-header-height,7rem)+var(--banner-height,0px))] h-[calc(100vh-var(--mintlify-slot-header-height,7rem)-var(--banner-height,0px))]":"top-[calc(var(--mintlify-slot-header-height,4rem)+var(--banner-height,0px))] h-[calc(100vh-var(--mintlify-slot-header-height,4rem)-var(--banner-height,0px))]",l?"w-76":"w-16"),children:[(0,t.jsxs)(p.ScrollArea,{className:"flex-1 min-h-0",id:a.Ids.NavigationItems,children:[(0,t.jsx)(p.ScrollAreaViewport,{className:"px-7 py-6",fade:["top"],children:(0,t.jsx)(p.ScrollAreaContent,{className:"min-w-0! w-full",children:(0,t.jsxs)("div",{className:(0,f.cn)("text-sm relative",!l&&"hidden"),children:[(0,t.jsx)(eF.Dropdowns,{}),(0,t.jsx)(tn,{}),(0,t.jsx)(e5.SideNavGroups,{nav:r.groupsOrPages,...(0,e5.getSideNavGroupsProps)({theme:e?.theme})})]})})}),(0,t.jsx)(p.ScrollAreaScrollbar,{orientation:"vertical"})]}),(0,t.jsxs)("div",{className:(0,f.cn)("w-full flex items-center px-7 py-4 border-t border-gray-200/70 dark:border-white/[0.07]",(!l||e?.appearance?.strict===!0)&&"hidden"),children:[(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(eA.LocalizationSelect,{triggerClassName:"border-none font-medium"})}),(0,t.jsx)(eR.SwitchThemeToggle,{})]}),(0,t.jsxs)("button",{className:(0,f.cn)("absolute top-5 right-5 p-1.5 rounded-md hover:bg-neutral-950/5 dark:hover:bg-white/5 cursor-pointer",d&&"hidden"),onClick:()=>o(!l),children:[(0,t.jsx)("span",{className:"sr-only",children:l?"close":"open"}),l?(0,t.jsx)(z.default,{icon:"arrow-left-from-line",className:"h-3.5 w-3.5 bg-gray-700 dark:bg-gray-300"}):(0,t.jsx)(z.default,{icon:"arrow-right-to-line",className:"h-3.5 w-3.5 bg-gray-700 dark:bg-gray-300"})]})]})}function tn(){return(0,t.jsx)(eO.Anchors,{})}function ts({mobile:e=!1}){let{divisions:r,isAuthNavigationPending:s}=(0,n.useContext)(w.NavigationContext),{docsConfig:i}=(0,n.useContext)(m.DocsConfigContext),l=r.groupsOrPages.reduce((e,t)=>(0,eB.isPage)(t)?e+1:e+t.pages.length,0);return(0,t.jsxs)("div",{className:"relative lg:text-sm lg:leading-6",children:[!e&&(0,t.jsx)("div",{className:(0,f.cn)("sticky top-0 h-8 pointer-events-none",i?.background?.image==null&&i?.background?.decoration==null&&"z-10 bg-linear-to-b from-background-light dark:from-background-dark")}),(0,t.jsxs)("div",{id:a.Ids.NavigationItems,children:[(0,t.jsx)(eF.Dropdowns,{triggerClassName:"rounded-lg"}),r.tabs.length>0&&e&&(0,t.jsx)(e_.TopLevelNavTabsMobile,{}),r.anchors.length>0&&(0,t.jsx)(tn,{}),(l>0||s)&&(0,t.jsx)(e5.SideNavGroups,{nav:r.groupsOrPages,...(0,e5.getSideNavGroupsProps)({theme:i?.theme})})]})]})}function ti({children:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:(0,f.cn)("scroll-mt-(--scroll-mt)","peer-[.is-custom]:max-w-none peer-[.is-center]:max-w-3xl peer-[.is-not-custom]:peer-[.is-not-center]:max-w-8xl","peer-[.is-not-custom]:px-4 peer-[.is-not-custom]:mx-auto peer-[.is-not-custom]:lg:px-8 peer-[.is-wide]:lg:*:last:max-w-216","peer-[.is-not-custom]:peer-[.is-not-center]:lg:flex",u.firstChildHiddenIfCustom,u.firstChildHiddenIfCenter),children:[(0,t.jsx)(tr,{children:(0,t.jsxs)(p.ScrollArea,{className:"absolute! inset-0 z-10",id:a.Ids.SidebarContent,children:[(0,t.jsx)(p.ScrollAreaViewport,{className:"pr-8 pb-10",children:(0,t.jsx)(p.ScrollAreaContent,{className:"min-w-0! w-full",children:(0,t.jsx)(ts,{})})}),(0,t.jsx)(p.ScrollAreaScrollbar,{orientation:"vertical"})]})}),(0,t.jsx)("main",{id:a.Ids.ContentContainer,className:"lg:flex-1 lg:min-w-0",children:e})]}),(0,t.jsx)(c.AdvancedFooter,{className:u.hiddenIfCustom})]})}function tl({children:e}){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(ti,{children:e})})}function to({className:e}){let{divisions:r}=(0,n.useContext)(w.NavigationContext),{docsConfig:s}=(0,n.useContext)(m.DocsConfigContext);return(0,t.jsx)("nav",{"aria-label":"Pages",id:a.Ids.SidebarContent,suppressHydrationWarning:!0,className:(0,f.cn)("hidden fixed w-56 lg:flex flex-col left-0 bottom-0 right-auto overflow-hidden transition-transform duration-100",e),style:{top:"calc(3rem + var(--banner-height, 0px))",height:"calc(100vh - 3rem - var(--banner-height, 0px))"},children:(0,t.jsxs)(p.ScrollArea,{className:"flex-1 min-h-0",id:a.Ids.NavigationItems,children:[(0,t.jsx)(p.ScrollAreaViewport,{className:"pl-5 pr-5 pt-5 pb-4",fade:["top"],children:(0,t.jsx)(p.ScrollAreaContent,{className:"min-w-0! w-full",children:(0,t.jsxs)("div",{className:"text-sm relative min-w-0 overflow-hidden",children:[(0,t.jsx)("div",{className:"pl-2",children:(0,t.jsx)(eF.Dropdowns,{})}),(0,t.jsx)(td,{}),(0,t.jsx)(e5.SideNavGroups,{nav:r.groupsOrPages,...(0,e5.getSideNavGroupsProps)({theme:s?.theme})})]})})}),(0,t.jsx)(p.ScrollAreaScrollbar,{orientation:"vertical"})]})})}function td(){return(0,t.jsx)(eO.Anchors,{})}function tc({children:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(to,{className:u.hiddenIfCustom}),(0,t.jsx)("div",{id:a.Ids.BodyContent,className:(0,f.cn)("peer-[.is-custom]:max-w-none peer-[.is-not-custom]:lg:pl-56",u.firstChildHiddenIfCustom),children:e})]})}var tu=e.i(141180);function tx(){return(0,t.jsx)(eO.Anchors,{className:"mt-8"})}function tm(){let{divisions:e}=(0,n.useContext)(w.NavigationContext),{docsConfig:r}=(0,n.useContext)(m.DocsConfigContext),s=(0,X.useLocalizedNavbar)(),{userAuthLoginButton:i,authLoginButton:l,authLogoutButton:o,userAuthLogoutButton:d}=(0,n.useContext)(tu.SidebarLoginButtonContext);return(0,t.jsxs)("nav",{"aria-label":"Pages",className:(0,f.cn)("hidden lg:flex fixed flex-col left-0 top-0 bottom-0 w-[19rem] border-r border-gray-200/70 dark:border-white/[0.07]","[[data-banner-state=visible]_&]:top-10"),id:a.Ids.Sidebar,children:[(0,t.jsxs)(p.ScrollArea,{className:"flex-1 min-h-0",id:a.Ids.SidebarContent,children:[(0,t.jsx)(p.ScrollAreaViewport,{className:"px-7 py-6",children:(0,t.jsxs)(p.ScrollAreaContent,{className:"min-w-0! w-full",children:[(0,t.jsxs)("div",{className:"flex justify-between items-center",children:[(0,t.jsx)(T.NavLogo,{logoClassName:"px-1 h-6 max-w-48"}),(0,t.jsx)(eR.SwitchThemeToggle,{})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-4 mt-6",children:[(0,t.jsx)(S.ProductsSelector,{className:"w-full justify-between bg-gray-600/5 dark:bg-gray-200/5 max-lg:hidden"}),(0,t.jsx)(D.DesktopSearchEntry,{}),(0,t.jsx)(eF.Dropdowns,{})]}),(0,t.jsxs)("div",{className:"-mx-3 text-sm",id:a.Ids.NavigationItems,children:[(0,t.jsx)(tx,{}),(0,t.jsx)(e5.SideNavGroups,{nav:e.groupsOrPages,...(0,e5.getSideNavGroupsProps)({theme:r?.theme})})]})]})}),(0,t.jsx)(p.ScrollAreaScrollbar,{orientation:"vertical"})]}),(0,t.jsxs)("ul",{className:"px-4 py-3 w-[calc(19rem-1px)] left-0 right-0 bottom-0 bg-background-light dark:bg-background-dark border-t border-gray-200/70 dark:border-white/[0.07] text-sm",children:[s?.links?.map(e=>{let{type:r}=e;return"github"===r?(0,t.jsx)(K.GitHubCta,{className:"px-2",href:e.href,label:e.label},e.href):"discord"===r?(0,t.jsx)(Y.DiscordCta,{className:"px-2",href:e.href,label:e.label},e.href):(0,t.jsx)(eW.NavItem,{entry:{href:e.href,title:e.label??"",icon:e.icon},shouldAutoNavigateOnGroupClick:!0,sidebarItemStyle:"undecorated",trailingIcon:(0,t.jsx)(ei.ArrowUpRight2Icon,{"aria-hidden":"true",strokeWidth:2,className:"size-3.5 text-gray-400 dark:text-gray-500 group-hover:text-gray-500 dark:group-hover:text-gray-400 shrink-0"})},e.href)}),s?.primary?.type==="button"&&(0,t.jsx)(eW.NavItem,{entry:{href:s.primary.href,title:s.primary.label},analytics:{event:"docs.navitem.cta_click",properties:{type:"button"}},shouldAutoNavigateOnGroupClick:!0,sidebarItemStyle:"undecorated",trailingIcon:(0,t.jsx)(ei.ArrowUpRight2Icon,{"aria-hidden":"true",strokeWidth:2,className:"size-3.5 text-gray-400 dark:text-gray-500 group-hover:text-gray-500 dark:group-hover:text-gray-400 shrink-0"})}),s?.primary?.type==="github"&&(0,t.jsx)(K.GitHubCta,{className:"hidden lg:flex px-2"}),s?.primary?.type==="discord"&&(0,t.jsx)(Y.DiscordCta,{className:"hidden lg:flex px-2"}),i&&(0,t.jsx)("li",{children:i}),d&&(0,t.jsx)("li",{children:d}),l&&(0,t.jsx)("li",{children:l}),o&&(0,t.jsx)("li",{children:o}),(0,t.jsx)("li",{children:(0,t.jsx)(A.VersioningSelect,{triggerClassName:"mt-1 rounded-lg py-1.5 justify-between w-full border-gray-200/70 dark:border-white/10"})})]})]})}var tg=e.i(314783);let th=function(){let{tabsSlotVisible:e}=(0,n.useContext)(w.NavigationContext);return(0,t.jsx)(tg.NavBarTransition,{id:a.Ids.NavBarTransition+"-maple",hasTabs:e,className:"px-12 w-full border-gray-200/70",children:(0,t.jsx)(F.TabsBar,{})})};function tp({children:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex scroll-mt-(--scroll-mt)",children:[(0,t.jsx)(tm,{}),(0,t.jsx)(th,{}),e]}),(0,t.jsx)(c.AdvancedFooter,{className:(0,f.cn)("lg:ml-76",u.hiddenIfCustom)})]})}function tf({children:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:(0,f.cn)("scroll-mt-(--scroll-mt) peer-[.is-not-custom]:lg:flex",u.firstChildHiddenIfCustom),children:[(0,t.jsx)(ta,{}),e]}),(0,t.jsx)(c.AdvancedFooter,{className:(0,f.cn)("w-full bg-gray-950/[0.03] dark:bg-white/[0.03]",u.hiddenIfCustom)})]})}function ty({className:e}){let{divisions:r,tabsSlotVisible:s}=(0,n.useContext)(w.NavigationContext),{docsConfig:i}=(0,n.useContext)(m.DocsConfigContext),l=i?.theme;return(0,t.jsx)("nav",{"aria-label":"Pages",id:a.Ids.SidebarContent,suppressHydrationWarning:!0,className:(0,f.cn)("hidden fixed w-72 lg:flex flex-col left-0 right-auto overflow-hidden border-r border-gray-100 dark:border-white/10 transition-transform duration-100",s?"top-[calc(var(--mintlify-slot-header-height,6rem)+var(--banner-height,0px))] h-[calc(100vh-var(--mintlify-slot-header-height,6rem)-var(--banner-height,0px))]":"top-[calc(var(--mintlify-slot-header-height,3rem)+var(--banner-height,0px))] h-[calc(100vh-var(--mintlify-slot-header-height,3rem)-var(--banner-height,0px))]",e),children:(0,t.jsxs)(p.ScrollArea,{className:"flex-1 min-h-0",id:a.Ids.NavigationItems,children:[(0,t.jsx)(p.ScrollAreaViewport,{className:"px-2 pt-6 pb-4",fade:["top"],children:(0,t.jsx)(p.ScrollAreaContent,{className:"min-w-0! w-full",children:(0,t.jsxs)("div",{className:"text-sm relative min-w-0 overflow-hidden",children:[(0,t.jsx)("div",{className:"px-2.5",children:(0,t.jsx)(eF.Dropdowns,{})}),(0,t.jsx)(tb,{}),(0,t.jsx)(e5.SideNavGroups,{nav:r.groupsOrPages,...(0,e5.getSideNavGroupsProps)({theme:l})})]})})}),(0,t.jsx)(p.ScrollAreaScrollbar,{orientation:"vertical"})]})})}function tb(){return(0,t.jsx)(eO.Anchors,{})}function tv({children:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ty,{className:u.hiddenIfCustom}),(0,t.jsx)("div",{id:a.Ids.BodyContent,className:(0,f.cn)("peer-[.is-custom]:max-w-none peer-[.is-not-custom]:lg:pl-72",u.firstChildHiddenIfCustom),children:e})]})}let tj=()=>{let{divisions:e}=(0,n.useContext)(w.NavigationContext),{docsConfig:r}=(0,n.useContext)(m.DocsConfigContext);return(0,t.jsxs)("nav",{"aria-label":"Pages",className:(0,f.cn)("hidden lg:flex fixed z-20 flex-col left-0 top-0 bottom-0 w-72 pr-4 py-2 pt-16","[[data-banner-state=visible]_&]:pt-24"),id:a.Ids.Sidebar,children:[(0,t.jsxs)(p.ScrollArea,{className:"flex-1 min-h-0",id:a.Ids.SidebarContent,children:[(0,t.jsx)(p.ScrollAreaViewport,{children:(0,t.jsx)(p.ScrollAreaContent,{className:"min-w-0! w-full",children:(0,t.jsxs)("div",{id:a.Ids.NavigationItems,children:[(0,t.jsx)(eO.Anchors,{className:eG}),(0,t.jsx)("div",{className:"pl-4",children:(0,t.jsx)(eF.Dropdowns,{triggerClassName:"rounded-none",iconClassName:eU,itemClassName:eG})}),(0,t.jsx)(e5.SideNavGroups,{nav:e.groupsOrPages,...(0,e5.getSideNavGroupsProps)({theme:r?.theme})})]})})}),(0,t.jsx)(p.ScrollAreaScrollbar,{orientation:"vertical"})]}),(0,t.jsx)(e$,{})]})},tk=({children:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex scroll-mt-(--scroll-mt)",children:[(0,t.jsx)(tj,{}),e]}),(0,t.jsx)(c.AdvancedFooter,{className:(0,f.cn)("lg:ml-76 border-none",u.hiddenIfCustom)})]});function tw({theme:e,children:r,pageMetadata:a}){let s,{isLivePreview:c,getDocsConfigOverrides:u}=(0,n.useContext)(l.LivePreviewContext),x=u(),m=x?.theme,g=c&&m?m:e,h=(0,d.useLivePreviewPageMetadata)(a),p=(0,o.useEffectivePageMetadata)(h);if("assistant"===p.mode)return(0,t.jsxs)("div",{className:"flex h-[100dvh] w-full flex-col overflow-hidden","data-assistant-page-layout":"",children:[(0,t.jsx)(i,{}),(0,t.jsx)(e2,{pageMetadata:p,theme:e}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:r})]});switch(g){case"maple":s=(0,t.jsx)(tp,{children:r});break;case"palm":s=(0,t.jsx)(tf,{children:r});break;case"linden":s=(0,t.jsx)(tl,{children:r});break;case"aspen":s=(0,t.jsx)(tt,{children:r});break;case"luma":s=(0,t.jsx)(tc,{children:r});break;case"almond":s=(0,t.jsx)(e8,{children:r});break;case"sequoia":s=(0,t.jsx)(tv,{children:r});break;case"willow":s=(0,t.jsx)(tk,{children:r});break;default:s=(0,t.jsx)(v,{children:r})}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i,{}),(0,t.jsx)(e2,{pageMetadata:p,theme:e}),s]})}},530359,e=>{"use strict";e.s(["MDXContentController",()=>eB],530359);var t=e.i(843476),r=e.i(91557),a=e.i(590280),n=e.i(237978),s=e.i(343590),i=e.i(111048),l=e.i(346089),o=e.i(271645),d=e.i(477222),c=e.i(736118);function u({fallback:e}){let{hasChatPermissions:r}=(0,o.useContext)(d.SearchContext),a=(0,s.useSelectedLocale)();return r?(0,t.jsx)(c.ChatAssistantSheet,{variant:"page"}):(0,t.jsx)("main",{id:i.Ids.ContentArea,className:"flex min-h-full w-full items-center justify-center bg-background-light px-5 py-12 dark:bg-background-dark","data-assistant-page":"",children:(0,t.jsxs)("div",{className:"flex w-full max-w-2xl flex-col items-center text-center",children:[(0,t.jsx)(l.Sparkle3Icon,{className:"mb-4 size-6 text-primary dark:text-primary-light","aria-hidden":"true"}),(0,t.jsx)("h1",{className:"mb-6 text-2xl font-semibold text-gray-950 dark:text-white",children:a.assistant}),(0,t.jsx)("input",{type:"text",disabled:!0,"aria-label":a.askAQuestion,placeholder:a.askAQuestion,className:"w-full rounded-2xl border border-gray-200 bg-background-light/90 px-4 py-3 text-left text-sm text-gray-400 dark:border-white/30 dark:bg-background-dark/90 dark:text-gray-500"}),(0,t.jsx)("div",{className:"mt-8 w-full text-left",children:e})]})})}var x=e.i(263446),m=e.i(7849),g=e.i(913919);e.i(673592);var h=e.i(404491),p=e.i(445193),f=e.i(946230),y=e.i(767487),b=e.i(966768),v=e.i(836653),j=e.i(343534),k=e.i(296548),w=e.i(859465),C=e.i(266371),N=e.i(491066),L=e.i(693619),M=e.i(759261),V=e.i(734305),S=e.i(803333),I=e.i(319129);let H=(e,t,r,a)=>e.map(e=>{let n=t?void 0===e.tabId||t.includes(e.tabId):!e.tabId,s=r?void 0===e.viewId||e.viewId===r:!e.viewId,i=a?void 0===e.variationIds||e.variationIds.includes(a):void 0===e.variationIds;if(n&&s&&i){let n=H(e.children,t,r,a);return{...e,slug:(0,I.cleanHeadingId)(e.slug),children:n}}return null}).filter(e=>null!==e),A=()=>{let[{tableOfContents:e,multiViewItems:t}]=(0,L.useMDXContent)(),r=(()=>{let[e,t]=(0,o.useState)([]),r=(0,S.useCurrentPath)();return(0,o.useEffect)(()=>{let e=e=>"tab-button"===e.getAttribute("data-component-part"),r=t=>t instanceof Element&&(e(t)||null!==t.querySelector('[data-component-part="tab-button"]')),a=()=>{let e=Array.from(document.querySelectorAll('[data-component-part="tab-button"][data-active="true"]')).filter(e=>!e.closest('[data-component-part="tab-content"].hidden')).map(e=>e.parentElement?.id).filter(e=>void 0!==e);t(t=>t.length===e.length&&t.every((t,r)=>t===e[r])?t:e)},n=()=>{setTimeout(a,0)};a();let s=new MutationObserver(t=>{t.some(t=>{if("attributes"===t.type){if("data-active"!==t.attributeName)return!1;let r=t.target;return r instanceof Element&&e(r)}if("childList"===t.type){let e=t.target;return e instanceof Element&&(null!==e.closest('[data-component-part="tab-content"]')||Array.from(t.addedNodes).some(r)||Array.from(t.removedNodes).some(r))}return!1})&&n()});s.observe(document.body,{attributes:!0,attributeFilter:["data-active"],childList:!0,subtree:!0});let i=e=>{let t=e.target;t instanceof Element&&"tab-button"===t.getAttribute("data-component-part")&&n()};return setTimeout(()=>{n()}),document.addEventListener("hashchange",n),document.addEventListener("click",i),()=>{s.disconnect(),document.removeEventListener("hashchange",n),document.removeEventListener("click",i)}},[r]),e})(),{selectedVariation:a}=(0,o.useContext)(V.VariationContext),n=(0,o.useMemo)(()=>{let e=t.find(e=>e.active);return e?.title},[t]),{setNavIsOpen:i}=(0,o.useContext)(s.NavigationContext),l=(0,o.useCallback)(()=>i(!1),[i]),d=(0,o.useMemo)(()=>H(e,r,n,a),[e,r,n,a]),c=d.some(e=>e.children.length>0);return(0,o.useMemo)(()=>({closeNav:l,pageHasSubsections:c,tableOfContents:d}),[l,c,d])};var T=e.i(293664),P=e.i(810412),D=e.i(770703),Z=e.i(721999),E=e.i(607071),z=e.i(137829);function F(){let{docsConfig:e}=(0,o.useContext)(r.DocsConfigContext),a=e?.theme,[{changelogFilters:n},l]=(0,L.useMDXContent)(),{filters:d,clear:c}=(0,s.useSelectedLocale)(),u=n.some(e=>e.active),x=e=>{l({type:"set_state",payload:{changelogFilters:e}});let t=e.filter(e=>e.active).map(e=>e.tag),r=(0,E.buildChangelogFilterQueryString)(window.location.search,t),a=`${window.location.pathname}${r?`?${r}`:""}${window.location.hash}`;a!==`${window.location.pathname}${window.location.search}${window.location.hash}`&&window.history.replaceState(window.history.state,"",a)};return n.length?(0,t.jsxs)("div",{className:(0,k.cn)(Z.zIndex.Control,"hidden xl:flex flex-col box-border","sequoia"===a||"luma"===a?"w-full":"pl-10 w-[19rem]"),id:"changelog-filters",children:[(0,t.jsx)(T.ContentSwitchers,{}),(0,t.jsxs)("div",{id:i.Ids.ChangelogFilters,className:(0,k.cn)("relative text-gray-600 text-sm leading-6 space-y-4","sequoia"===a||"luma"===a?"w-full overflow-y-auto pb-4":"w-[16.5rem] overflow-y-auto"),children:[(0,t.jsxs)("div",{className:"w-full flex justify-between items-center",children:[(0,t.jsx)("span",{className:"text-gray-700 dark:text-gray-300 font-medium",children:d}),(0,t.jsx)("button",{className:(0,k.cn)("text-sm font-medium px-3 rounded-full",u?"text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-200":"hidden"),onClick:()=>{u&&x(n.map(e=>({...e,active:!1})))},children:(0,t.jsxs)("span",{className:"flex items-center",children:[(0,t.jsx)(z.XmarkIcon,{"aria-hidden":"true",strokeWidth:2,className:"size-4 mr-1 shrink-0"}),c]})})]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",id:i.Ids.ChangelogFiltersContent,children:n.map(e=>(0,t.jsx)(_,{tag:e.tag,count:e.count,active:e.active??!1,onClick:()=>{x(n.map(t=>t.tag===e.tag?{...t,active:!t.active}:t))}},e.tag))})]})]}):null}let _=({tag:e,active:r,onClick:a})=>(0,t.jsx)("button",{onClick:a,className:(0,k.cn)("px-3 py-1 text-sm rounded-full flex items-center space-x-1",r?"bg-primary text-white/90":"bg-gray-100 text-gray-700 hover:bg-gray-200 dark:bg-gray-900 dark:text-gray-300"),children:(0,t.jsx)("span",{children:e})},e);var O=e.i(780578),R=e.i(479721);function B({children:e,isApiExample:a,className:n}){let{divisions:l}=(0,o.useContext)(s.NavigationContext),{docsConfig:d}=(0,o.useContext)(r.DocsConfigContext),{isCustom:c,isCenter:u,isWide:x}=(0,O.usePageMode)(),m=d?.theme,g=l.tabs.length>0;return c||u||x?null:(0,t.jsx)("div",{suppressHydrationWarning:!0,"data-api-example":a?"":void 0,className:(0,k.cn)((0,R.getContentSideLayoutClassNames)({theme:m,hasTabs:g,isApiExample:a}),n),id:i.Ids.ContentSideLayout,children:e})}var W=e.i(248511),$=e.i(476781),G=e.i(568258),U=e.i(152537),q=e.i(588420),X=e.i(137631);let Y=(0,e.i(930733).default)("TextAlignLeftIcon",[["path",{d:"M2.75 14.25H15.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M2.75 3.75H15.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M2.75 9H8.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined");var K=e.i(395787),J=e.i(16430),Q=e.i(875081);let ee=e=>({"--toc-padding-left":e}),et=()=>(0,t.jsx)(J.LineCenter,{className:"absolute left-0 top-1 hidden [[data-active]>&]:flex",children:(0,t.jsx)(K.DropdownArrowIcon,{className:"text-primary dark:text-primary-light"})}),er=(0,o.memo)(function({section:e,closeNav:r,pageHasSubsections:a,style:n,theme:s}){let i="arrow"===n?1:2,l=e=>{let a=e.depth-i,o=Math.max(e.depth-i,0),d=e.children.length>0;return(0,t.jsxs)("li",{className:(0,k.cn)($.Classes.TableOfContentsItem,"relative","border"===n&&"border-l pl-4 border-gray-950/5 dark:border-white/10 hover:border-gray-950/20 dark:hover:border-white/20 data-active:border-primary data-active:hover:border-primary dark:data-active:border-primary-light","dot"===n&&"pl-4"),"data-depth":o,children:["arrow"===n&&(0,t.jsx)(et,{}),(0,t.jsx)("a",{style:ee(a+"rem"),href:`#${encodeURIComponent((0,Q.safeDecodeURIComponent)(e.slug))}`,onClick:r,className:(0,k.cn)("group flex items-start break-words py-1 pl-[calc(var(--toc-padding-left)+var(--toc-focus-padding,0rem))] whitespace-pre-wrap focus-visible:[--toc-focus-padding:0.25rem] focus-visible:-ml-1 focus-visible:-outline-offset-2","text-gray-500 [li:not([data-active])>&:hover]:text-gray-900","sequoia"===s?"dark:[li:not([data-active])>&:hover]:text-gray-300":"dark:text-gray-400 dark:[li:not([data-active])>&:hover]:text-gray-300",(0,R.themeTocSubheading)({theme:s}),"[[data-active]>&]:text-primary dark:[[data-active]>&]:text-primary-light"),children:e.title}),d&&(0,t.jsx)("ul",{className:(0,k.cn)(("border"===n||"dot"===n)&&"-ml-4"),children:e.children.map(e=>l(e))})]},e.slug)},o=e.children.length>0;return(0,t.jsxs)("li",{className:(0,k.cn)($.Classes.TableOfContentsItem,"relative","arrow"===n&&"pl-4","dot"===n&&"pl-4"),"data-depth":0,children:["arrow"===n&&(0,t.jsx)(et,{}),(0,t.jsx)("a",{style:ee("border"===n?"1rem":"0rem"),href:`#${encodeURIComponent((0,Q.safeDecodeURIComponent)(e.slug))}`,onClick:r,className:(0,k.cn)("break-words py-1 block pl-[calc(var(--toc-padding-left)+var(--toc-focus-padding,0rem))] focus-visible:[--toc-focus-padding:0.25rem] focus-visible:-ml-1 focus-visible:-outline-offset-2",a&&"font-medium","border"===n&&"border-l border-gray-950/5 dark:border-white/10 hover:border-gray-950/20 dark:hover:border-white/20 [[data-active]>&]:border-primary dark:[[data-active]>&]:border-primary-light [[data-active]>&:hover]:border-primary dark:[[data-active]>&:hover]:border-primary-light","dark:text-gray-400 [li:not([data-active])>&:hover]:text-gray-900 dark:[li:not([data-active])>&:hover]:text-gray-300",(0,R.themeTocHeading)({theme:s}),"[[data-active]>&]:text-primary dark:[[data-active]>&]:text-primary-light [[data-active]>&]:[text-shadow:-0.15px_0_0_currentColor,0.15px_0_0_currentColor]"),children:e.title}),o&&(0,t.jsx)("ul",{className:(0,k.cn)(("arrow"===n||"dot"===n)&&"-ml-4"),children:e.children.map(e=>l(e))})]})});function ea({containerRef:e,currentSection:r}){let[a,n]=(0,o.useState)(null),s=(0,o.useRef)(!1);return((0,o.useEffect)(()=>{let t=e.current;if(!t)return;let r=t.querySelector("[data-active-deepest]")??t.querySelector("[data-active]");if(r){let e=t.getBoundingClientRect(),a=r.querySelector("a")??r,s=a.getBoundingClientRect(),i=getComputedStyle(a),l=parseFloat(i.lineHeight)||1.5*parseFloat(i.fontSize),o=parseFloat(i.paddingTop)||0;n(s.top-e.top+o+l/2)}else n(null);s.current=!0},[e,r]),null==a)?null:(0,t.jsx)("span",{className:"absolute left-0 w-1.5 h-1.5 rounded-full bg-primary dark:bg-primary-light",style:{top:a,transform:"translateY(-50%)",transition:s.current?"top 160ms cubic-bezier(0.25, 0.75, 0.2, 1)":"none"}})}let en=["text-primary","dark:text-primary-light"];function es({containerRef:e,showDot:a}){let{tableOfContents:n}=A(),s=(()=>{let{docsConfig:e}=(0,o.useContext)(r.DocsConfigContext),[{tableOfContents:t,headings:a}]=(0,L.useMDXContent)(),[n,s]=(0,o.useState)(),l=(0,o.useRef)(void 0),d=e?.theme==="almond",c=(0,o.useMemo)(()=>a.concat([]).sort((e,t)=>(e.top??0)-(t.top??0)),[a]);return(0,o.useEffect)(()=>(d&&(l.current=document.getElementById(i.Ids.ContentContainer)??void 0),()=>{l.current=void 0}),[d]),(0,o.useEffect)(()=>{if(0===t.length||0===c.length)return;let e=()=>{let e,t=!1;if(d){if(l.current){let{scrollTop:e,scrollHeight:r,clientHeight:a}=l.current;t=5>Math.abs(e+a-r)}}else t=window.innerHeight+window.scrollY===document.body.offsetHeight;if(t){let e=c[c.length-1];if(e?.id)return void s(e.id)}let r=window.getComputedStyle(document.documentElement),a=r.getPropertyValue("--scroll-mt"),n=parseFloat(a.match(/[\d.]+/)?.[0]??"0"),i=parseFloat(r.fontSize.match(/[\d.]+/)?.[0]??"16");a.includes("rem")&&(n*=i),d&&(n+=6.5*i),e=d?(l.current?.scrollTop??0)+n+1:window.scrollY+n+1;let o=c[0];for(let t=0;t=(c[t]?.top??0)&&(o=c[t]);s(o?.id)},r=null,a=()=>{null===r&&(r=requestAnimationFrame(()=>{r=null,e()}))},n=()=>{window.location.hash&&e()},i={capture:!0,passive:!0},o=d?l.current:window;return o?.addEventListener("scroll",a,i),window.addEventListener("hashchange",n),e(),()=>{null!==r&&cancelAnimationFrame(r),o?.removeEventListener("scroll",a,i),window.removeEventListener("hashchange",n)}},[c,t,d]),n})(),l=(0,Q.safeDecodeURIComponent)(s??"");return((0,o.useLayoutEffect)(()=>{let t=e.current;t&&((e,t)=>{let r=""!==t?((e,t)=>{let r=e.querySelector(`a[href="#${encodeURIComponent(t)}"]`);if(r)return r;for(let r of e.querySelectorAll('a[href^="#"]')){let e=r.getAttribute("href");if(e&&(0,Q.safeDecodeURIComponent)(e.slice(1))===t)return r}return null})(e,t):null,a=r?.closest("li")??null;for(let t of e.querySelectorAll("[data-active], [data-active-deepest]"))t.removeAttribute("data-active"),t.removeAttribute("data-active-deepest");for(let t of e.querySelectorAll("a[aria-current]"))t.removeAttribute("aria-current");for(let t of e.querySelectorAll("a.text-primary"))t.classList.remove(...en);if(!r||!a)return;r.setAttribute("aria-current","location"),a.setAttribute("data-active-deepest","true");let n=a;for(;n&&e.contains(n);)n.setAttribute("data-active","true"),n.querySelector(":scope > a")?.classList.add(...en),n=n.parentElement?.closest("li")??null})(t,l)},[e,l,n]),a)?(0,t.jsx)(ea,{containerRef:e,currentSection:s}):null}let ei="regular";function el({icon:e}){return"function"==typeof e||"object"==typeof e&&"render"in e?(0,t.jsx)(e,{className:"size-3.5 shrink-0"}):(0,t.jsx)(G.ComponentIcon,{icon:"string"==typeof e?e:e?.name??"info",iconType:"string"==typeof e?ei:e?.style||ei,className:"size-3.5 bg-current",overrideColor:!0})}function eo({option:e}){let r="copy"===e.id||"mcp"===e.id||"add-mcp"===e.id,{text:a,execute:n,isDisabled:s}=(0,W.useCopyPage)({idleText:e.title}),i=e.isLoading&&"download-pdf"===e.id?"Downloading PDF":e.title,l=(0,o.useCallback)(async()=>{e.isLoading||(r?await n(e.action):e.action())},[e,r,n]);return(0,t.jsxs)("button",{onClick:l,disabled:s||e.isLoading,className:"flex items-center gap-2 w-full py-1.5 text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200 transition-colors text-left disabled:opacity-70",children:[e.isLoading?(0,t.jsx)(X.LoaderCircleIcon,{"aria-hidden":"true",className:"size-3.5 animate-spin shrink-0"}):(0,t.jsx)(el,{icon:e.icon}),(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[r?a:i,e.externalLink&&(0,t.jsx)(q.ArrowUpRight2Icon,{"aria-hidden":"true",strokeWidth:2,className:"size-3 text-gray-400 dark:text-gray-500 shrink-0"})]})]})}function ed(){let{docsConfig:e}=(0,o.useContext)(r.DocsConfigContext),{onThisPage:a}=(0,s.useSelectedLocale)(),{closeNav:n,pageHasSubsections:l,tableOfContents:d}=A(),{options:c,display:u}=(0,M.useContextualOptions)(),x="toc"===u&&c.length>0,m=Array.isArray(d)&&d.length>0,g=e?.theme,h="willow"!==g,p=(0,R.getTableOfContentsContentStyle)(g),f=(0,o.useRef)(null),y=(0,o.useId)();if(!m&&!x)return(0,t.jsx)(T.ContentSwitchers,{});if("sequoia"===g)return(0,t.jsxs)(U.ScrollArea,{className:"text-sm leading-6 w-full",id:i.Ids.TableOfContents,children:[(0,t.jsx)(U.ScrollAreaViewport,{className:"pb-4",children:(0,t.jsxs)(U.ScrollAreaContent,{className:"min-w-0! w-full",children:[(0,t.jsx)(T.ContentSwitchers,{className:"mb-2.5"}),m&&(0,t.jsxs)("nav",{"aria-labelledby":y,children:[(0,t.jsx)("h2",{id:y,className:"m-0 font-normal",children:(0,t.jsx)("button",{type:"button",onClick:()=>{let e=document.getElementById(i.Ids.ContentContainer);e&&e.scrollHeight>e.clientHeight?e.scrollTo({top:0,behavior:"smooth"}):window.scrollTo({top:0,behavior:"smooth"})},className:"text-gray-500 dark:text-gray-400 text-xs font-normal py-2 hover:text-gray-700 dark:hover:text-gray-300 transition-colors cursor-pointer",children:a})}),(0,t.jsxs)("div",{ref:f,children:[(0,t.jsx)(es,{containerRef:f}),(0,t.jsx)("ul",{id:i.Ids.TableOfContentsContent,className:(0,k.cn)($.Classes.TableOfContents,"space-y-0"),children:d.map(e=>(0,t.jsx)(er,{section:e,closeNav:n,pageHasSubsections:l,style:"default",theme:"sequoia"},`TableOfContentSection-${e.slug}`))})]})]}),x&&(0,t.jsxs)(t.Fragment,{children:[m&&(0,t.jsx)("div",{className:"h-px w-full bg-gray-200 dark:bg-white/10 my-4"}),(0,t.jsx)("div",{className:"space-y-0",children:c.map(e=>(0,t.jsx)(eo,{option:e},e.id))})]})]})}),(0,t.jsx)(U.ScrollAreaScrollbar,{orientation:"vertical",className:"-mr-1.5"})]});let b=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(T.ContentSwitchers,{className:"mb-2.5"}),m&&(0,t.jsxs)("nav",{"aria-labelledby":y,children:[(0,t.jsx)("h2",{id:y,className:"m-0 font-normal",children:(0,t.jsxs)("button",{type:"button",onClick:()=>{let e=document.getElementById(i.Ids.ContentContainer);e&&e.scrollHeight>e.clientHeight?e.scrollTo({top:0,behavior:"smooth"}):window.scrollTo({top:0,behavior:"smooth"})},className:(0,k.cn)("text-gray-700 dark:text-gray-300 font-medium flex items-center space-x-2 hover:text-gray-900 dark:hover:text-gray-100 transition-colors cursor-pointer",(0,R.themeTocTitle)({theme:g})),children:[h&&(0,t.jsx)(ec,{}),(0,t.jsx)("span",{children:a})]})}),(0,t.jsxs)("div",{ref:f,className:"dot"===p?"relative":void 0,children:[(0,t.jsx)(es,{containerRef:f,showDot:"dot"===p}),(0,t.jsx)("ul",{id:i.Ids.TableOfContentsContent,className:$.Classes.TableOfContents,children:d.map(e=>(0,t.jsx)(er,{section:e,closeNav:n,pageHasSubsections:l,style:p,theme:g},`TableOfContentSection-${e.slug}`))})]})]}),x&&(0,t.jsxs)(t.Fragment,{children:[m&&(0,t.jsx)("div",{className:"h-px w-full bg-gray-200 dark:bg-white/10 my-3"}),(0,t.jsx)("div",{className:"space-y-1",children:c.map(e=>(0,t.jsx)(eo,{option:e},e.id))})]})]});return"willow"===g?(0,t.jsx)("div",{className:"flex flex-col items-end text-right px-4 max-w-[19rem] overflow-hidden [&>*]:max-w-full",id:i.Ids.TableOfContents,children:b}):(0,t.jsxs)(U.ScrollArea,{className:"text-gray-600 text-sm leading-6 w-[16.5rem] -mt-10",id:i.Ids.TableOfContents,children:[(0,t.jsx)(U.ScrollAreaViewport,{className:"pt-10 pb-4",children:(0,t.jsx)(U.ScrollAreaContent,{className:"min-w-0! w-full space-y-2",children:b})}),(0,t.jsx)(U.ScrollAreaScrollbar,{orientation:"vertical",className:(0,k.cn)("-mr-1.5","luma"===g&&"mt-7")})]})}let ec=()=>(0,t.jsx)(Y,{"aria-hidden":"true",strokeWidth:2,className:"size-3 shrink-0"}),eu=({children:e})=>{let{docsConfig:a}=(0,o.useContext)(r.DocsConfigContext);return(0,t.jsx)("div",{className:(0,k.cn)(Z.zIndex.Control,"hidden xl:flex box-border max-h-full",(0,R.getTableOfContentsLayoutStyle)(a?.theme)),id:i.Ids.TableOfContentsLayout,children:e})},ex=()=>(0,t.jsx)(eu,{children:(0,t.jsx)(ed,{})}),em=(0,D.default)(()=>e.A(887011).then(e=>e.MessageExamples),{loadableGenerated:{modules:[238166]}}),eg=(0,D.default)(()=>e.A(293280).then(e=>e.GraphqlExamples),{loadableGenerated:{modules:[231830]}}),eh=(0,D.default)(()=>e.A(840049).then(e=>e.ApiExamples),{loadableGenerated:{modules:[300718]}}),ep=()=>{let{docsConfig:e}=(0,o.useContext)(r.DocsConfigContext),a=function(){let{tableOfContents:e}=A(),[{multiViewItems:t}]=(0,L.useMDXContent)(),{options:r,display:a}=(0,M.useContextualOptions)();return(0,o.useMemo)(()=>{let n=Array.isArray(e)&&e.length>0,s=t.length>0,i="toc"===a&&r.length>0;return n||s||i},[e,t,r,a])}();return e?.theme!=="sequoia"||a?(0,t.jsx)(B,{children:(0,t.jsx)(ex,{})}):null},ef=()=>{let e=(0,N.useHasMdxCodeExample)(),[{changelogFilters:a}]=(0,L.useMDXContent)(),n=(0,C.useChannel)(),{openApiReferenceData:s}=(0,o.useContext)(P.OpenApiReferenceContext),{graphqlReferenceData:i}=(0,o.useContext)(r.ApiReferenceContext),l=i?.target.kind==="query"||i?.target.kind==="mutation",c=e||s.operation||s.schemaData,u=(()=>{let{panelMdxSource:e}=(0,o.useContext)(r.PageContext);return!!e})(),{isChatSheetOpen:x}=(0,o.useContext)(d.ChatAssistantContext),g=(0,o.useContext)(w.AssistantUiContext),h=x&&"legacy"===g,p=h?"pointer-events-none invisible w-0! min-w-0! max-w-0! m-0! p-0! border-0! overflow-hidden":void 0;return u?(0,t.jsxs)(B,{isApiExample:!0,className:p,children:[(0,t.jsx)(T.ContentSwitchers,{}),(0,t.jsx)(m.MdxPanel,{}),n&&!c&&(0,t.jsx)(em,{name:"Messages",channel:n}),l&&i?(0,t.jsx)(eg,{data:i}):c&&(0,t.jsx)(eh,{})]}):n?(0,t.jsxs)(B,{isApiExample:!0,className:p,children:[(0,t.jsx)(T.ContentSwitchers,{variationOnly:!0}),(0,t.jsx)(em,{name:"Messages",channel:n})]}):l&&i?(0,t.jsxs)(B,{isApiExample:!0,className:p,children:[(0,t.jsx)(T.ContentSwitchers,{variationOnly:!0}),(0,t.jsx)(eg,{data:i})]}):c?(0,t.jsxs)(B,{isApiExample:!0,className:p,children:[(0,t.jsx)(T.ContentSwitchers,{className:"ml-auto xl:mb-2.5"}),(0,t.jsx)(eh,{})]}):a.length?(0,t.jsx)(B,{className:p,children:(0,t.jsx)(F,{})}):h?(0,t.jsx)(B,{className:p}):(0,t.jsx)(ep,{})};function ey({children:e}){return(0,t.jsx)("div",{className:(0,k.cn)("flex rounded-2xl h-[calc(100dvh-1rem-var(--mintlify-slot-header-height,7rem))]","lg:h-[calc(100dvh-0.5rem-var(--mintlify-slot-header-height,3.5rem)-var(--banner-height,0px))]"),children:e})}function eb({isWide:e,isCenter:r,children:a}){return(0,t.jsx)(ey,{children:(0,t.jsxs)("main",{className:(0,k.cn)("flex-1 px-4 pt-6 sm:px-8 sm:pt-8 lg:pt-12 lg:ml-66 lg:px-16 overflow-y-auto stable-scrollbar-gutter","rounded-2xl bg-background-light dark:bg-background-dark border border-gray-200/70 dark:border-white/[0.07]"),id:i.Ids.ContentContainer,children:[(0,t.jsxs)("div",{className:(0,k.cn)("flex flex-row-reverse gap-x-12 justify-center mx-auto w-full",!r&&!e&&"lg:pl-12"),children:[!e&&(0,t.jsx)(ef,{}),(0,t.jsx)("div",{className:(0,k.cn)("w-full min-w-0 contain-[inline-size] max-w-xl",e&&"max-w-full",r&&"max-w-3xl"),id:i.Ids.ContentArea,children:a})]}),(0,t.jsx)(x.AdvancedFooter,{})]})})}function ev({isWide:e,isCenter:r,children:a}){return(0,t.jsx)(eb,{isCenter:r,isWide:e,children:a})}var ej=e.i(258834);function ek({pageMetadata:e,children:r}){let{isCustom:a,isWide:n,isCenter:s,isFrame:l}=(0,j.getPageMode)(e);return a?(0,t.jsxs)(g.MDXContentProvider,{children:[(0,t.jsx)(ej.AlmondTopBar,{pageMetadata:e}),(0,t.jsx)(f.Content,{pageMetadata:e,children:r}),(0,t.jsx)(v.default,{className:"hidden"})]}):l?(0,t.jsx)(g.MDXContentProvider,{children:(0,t.jsx)(ey,{children:(0,t.jsxs)("main",{className:(0,k.cn)("flex-1 lg:ml-[16.5rem] overflow-y-auto stable-scrollbar-gutter","rounded-2xl bg-background-light dark:bg-background-dark border border-gray-200/70 dark:border-white/[0.07]"),id:i.Ids.ContentContainer,children:[(0,t.jsx)(b.PageHeader,{}),(0,t.jsx)(y.MultiViewDropdown,{mobile:!0}),(0,t.jsx)(m.MdxPanel,{mobile:!0}),(0,t.jsx)(p.Api,{pageMetadata:e,children:r}),(0,t.jsx)(f.Content,{pageMetadata:e,children:r}),(0,t.jsx)(x.AdvancedFooter,{className:"w-full"}),(0,t.jsx)(v.default,{className:"hidden"})]})})}):(0,t.jsx)(g.MDXContentProvider,{children:(0,t.jsx)(ev,{isCenter:s,isWide:n,children:(0,t.jsx)(h.ContentStack,{pageMetadata:e,children:r})})})}function ew({pageMetadata:e,children:r}){let{isCenter:a,isWide:n}=(0,j.getPageMode)(e);return(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsxs)("main",{className:(0,k.cn)("px-5 lg:pr-10 lg:pl-[5.5rem] lg:pt-10 mx-auto max-w-6xl flex flex-row-reverse gap-x-12 w-full",a&&"lg:pl-0 max-w-3xl mx-auto","pt-36 [[data-banner-state=visible]_&]:pt-[calc(10rem+var(--banner-height,2.5rem))] [[data-banner-state=visible]_&]:lg:pt-10"),id:i.Ids.ContentContainer,children:[!n&&(0,t.jsx)(ef,{}),(0,t.jsx)("div",{className:(0,k.cn)("grow w-full mx-auto [contain:inline-size]",n?"xl:w-[calc(100%-19rem)]":"xl:w-[calc(100%-28rem)]"),id:i.Ids.ContentArea,children:r})]}),(0,t.jsx)(x.AdvancedFooter,{className:"w-full"})]})}function eC({pageMetadata:e,children:r}){let{isCustom:a,isFrame:n}=(0,j.getPageMode)(e);return a||n?(0,t.jsx)(g.MDXContentProvider,{children:(0,t.jsxs)("div",{id:i.Ids.ContentArea,className:"w-full pt-28 lg:pt-0",children:[(0,t.jsx)(b.PageHeader,{}),(0,t.jsx)(y.MultiViewDropdown,{mobile:!0}),(0,t.jsx)(m.MdxPanel,{mobile:!0}),(0,t.jsx)(p.Api,{pageMetadata:e,children:r}),(0,t.jsx)(f.Content,{pageMetadata:e,children:r}),n&&(0,t.jsx)(x.AdvancedFooter,{className:"w-full"}),(0,t.jsx)(v.default,{className:"hidden"})]})}):(0,t.jsx)(g.MDXContentProvider,{children:(0,t.jsx)(ew,{pageMetadata:e,children:(0,t.jsx)(h.ContentStack,{pageMetadata:e,children:r})})})}let eN=({isCustom:e,children:r})=>(0,t.jsx)("div",{suppressHydrationWarning:!0,className:(0,k.cn)("flex flex-row-reverse gap-12 box-border w-full",e?"pt-[120px] lg:pt-0":"pt-[calc(10rem+var(--banner-height,2.5rem))] lg:pt-10"),children:r}),eL=({pageMetadata:e,children:r})=>{let{isWide:a,isCustom:n,isCenter:s,isFrame:l}=(0,j.getPageMode)(e),o=!(a||n||s||l);return(0,t.jsxs)(eN,{isCustom:n,children:[!l&&(0,t.jsx)(ef,{}),(0,t.jsx)("div",{className:(0,k.cn)("relative grow box-border flex-col w-full",!n&&!s&&"mx-auto px-1 lg:pl-8 w-full",o?"xl:max-w-152":"xl:w-[calc(100%-19rem)] xl:min-w-full"),id:i.Ids.ContentArea,children:r})]})};function eM({pageMetadata:e,children:r}){let{isCustom:a,isFrame:n}=(0,j.getPageMode)(e);return a?(0,t.jsx)(g.MDXContentProvider,{children:(0,t.jsxs)(eL,{pageMetadata:e,children:[(0,t.jsx)(f.Content,{pageMetadata:e,children:r}),(0,t.jsx)(v.default,{className:"hidden"})]})}):n?(0,t.jsx)(g.MDXContentProvider,{children:(0,t.jsxs)(eL,{pageMetadata:e,children:[(0,t.jsx)(b.PageHeader,{}),(0,t.jsx)(y.MultiViewDropdown,{mobile:!0}),(0,t.jsx)(m.MdxPanel,{mobile:!0}),(0,t.jsx)(p.Api,{pageMetadata:e,children:r}),(0,t.jsx)(f.Content,{pageMetadata:e,children:r}),(0,t.jsx)(v.default,{className:"hidden"})]})}):(0,t.jsx)(g.MDXContentProvider,{children:(0,t.jsx)(eL,{pageMetadata:e,children:(0,t.jsx)(h.ContentStack,{pageMetadata:e,children:r})})})}function eV({pageMetadata:e,children:r}){let{isWide:a,isCenter:n,isApiExample:s}=(0,j.getPageMode)(e);return(0,t.jsxs)("div",{className:"w-full flex-1 flex flex-col lg:pt-0 pt-26 in-data-[banner-state=visible]:pt-[calc(6.5rem+var(--banner-height,2.5rem))] in-data-[banner-state=visible]:lg:pt-0",children:[(0,t.jsxs)("main",{className:"flex-1 flex max-[1650px]:[&:has(>_[data-api-example])_#content-area]:mx-auto!",id:i.Ids.ContentContainer,children:[(0,t.jsx)("div",{className:"flex-1 min-w-0",children:(0,t.jsx)("div",{className:(0,k.cn)("w-full lg:max-w-174 pt-6 px-6 lg:mx-auto [&_.prose]:tracking-[-0.0125rem]",!a&&!n&&"lg:ml-[max(0px,calc(50vw-348px-14rem))]",s&&"max-[1650px]:mx-auto!","in-data-[assistant-state=open]:mx-auto!"),id:i.Ids.ContentArea,children:r})}),!a&&(0,t.jsx)(ef,{})]}),(0,t.jsx)(x.AdvancedFooter,{className:"w-full"})]})}function eS({pageMetadata:e,children:r}){let{isCustom:a,isFrame:n}=(0,j.getPageMode)(e);return a||n?(0,t.jsx)(g.MDXContentProvider,{children:(0,t.jsxs)("div",{id:i.Ids.ContentArea,className:"w-full pt-28 lg:pt-0",children:[(0,t.jsx)(b.PageHeader,{}),(0,t.jsx)(y.MultiViewDropdown,{mobile:!0}),(0,t.jsx)(m.MdxPanel,{mobile:!0}),(0,t.jsx)(p.Api,{pageMetadata:e,children:r}),(0,t.jsx)(f.Content,{pageMetadata:e,children:r}),n&&(0,t.jsx)(x.AdvancedFooter,{className:"w-full"}),(0,t.jsx)(v.default,{className:"hidden"})]})}):(0,t.jsx)(g.MDXContentProvider,{children:(0,t.jsx)(eV,{pageMetadata:e,children:(0,t.jsx)(h.ContentStack,{pageMetadata:e,children:r})})})}var eI=e.i(745278);let eH=({isWide:e,isCustom:r,isCenter:a,isFrame:n,children:l})=>{let{tabsSlotVisible:d}=(0,o.useContext)(s.NavigationContext),c=!(e||r||a||n);return(0,t.jsxs)("main",{suppressHydrationWarning:!0,className:(0,k.cn)("relative w-full lg:ml-[19rem] flex gap-x-8 min-h-screen",r?"pt-[120px] lg:pt-0":"pt-[calc(10rem+var(--banner-height,2.5rem))] px-4 lg:pt-10 lg:pl-16 lg:pr-10"),id:i.Ids.ContentContainer,children:[(0,t.jsx)("div",{className:(0,k.cn)("flex flex-col box-border w-full relative grow",!r&&!n&&"mx-auto max-w-xl 2xl:max-w-2xl [contain:inline-size]",c?"xl:w-[calc(100%-28rem)]":"xl:w-[calc(100%-19rem)]",(r||e||n)&&"xl:min-w-full",a&&"max-w-3xl",d&&"lg:mt-12"),id:i.Ids.ContentArea,children:l}),!n&&(0,t.jsx)(ef,{})]})},eA=({pageMetadata:e,children:r})=>{let{isWide:a,isCustom:n,isCenter:s,isFrame:i}=(0,j.getPageMode)(e);return(0,t.jsx)(eH,{isCustom:n,isCenter:s,isWide:a,isFrame:i,children:r})};function eT({pageMetadata:e,children:r}){let{isCustom:a,isFrame:n}=(0,j.getPageMode)(e);return a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block lg:hidden",children:(0,t.jsx)(eI.TopBar,{pageMetadata:e})}),(0,t.jsx)(g.MDXContentProvider,{children:(0,t.jsxs)(eA,{pageMetadata:e,children:[(0,t.jsx)(f.Content,{pageMetadata:e,children:r}),(0,t.jsx)(v.default,{className:"hidden"})]})})]}):n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block lg:hidden",children:(0,t.jsx)(eI.TopBar,{pageMetadata:e})}),(0,t.jsx)(g.MDXContentProvider,{children:(0,t.jsxs)(eA,{pageMetadata:e,children:[(0,t.jsx)(b.PageHeader,{}),(0,t.jsx)(y.MultiViewDropdown,{mobile:!0}),(0,t.jsx)(m.MdxPanel,{mobile:!0}),(0,t.jsx)(p.Api,{pageMetadata:e,children:r}),(0,t.jsx)(f.Content,{pageMetadata:e,children:r}),(0,t.jsx)(v.default,{className:"hidden"})]})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"block lg:hidden",children:(0,t.jsx)(eI.TopBar,{pageMetadata:e})}),(0,t.jsx)(g.MDXContentProvider,{children:(0,t.jsx)(eA,{pageMetadata:e,children:(0,t.jsx)(h.ContentStack,{pageMetadata:e,children:r})})})]})}let eP=({isCustom:e,children:r})=>(0,t.jsx)("div",{suppressHydrationWarning:!0,className:(0,k.cn)("flex flex-row-reverse gap-12 box-border w-full",e?"pt-[120px] lg:pt-0":"pt-[calc(10rem+var(--banner-height,2.5rem))] lg:pt-10"),children:r}),eD=({pageMetadata:e,children:r})=>{let{isWide:a,isCustom:n,isCenter:s,isFrame:l}=(0,j.getPageMode)(e),o=!(a||n||s||l);return(0,t.jsxs)(eP,{isCustom:n,children:[!l&&(0,t.jsx)(ef,{}),(0,t.jsx)("div",{className:(0,k.cn)("relative grow box-border flex-col w-full",!n&&!s&&"mx-auto px-1 lg:pl-[5.7rem] lg:-ml-12",o?"xl:w-[calc(100%-28rem)]":"xl:w-[calc(100%-19rem)] xl:min-w-full"),id:i.Ids.ContentArea,children:r})]})};function eZ({pageMetadata:e,children:r}){let{isCustom:a,isFrame:n}=(0,j.getPageMode)(e);return a?(0,t.jsx)(g.MDXContentProvider,{children:(0,t.jsxs)(eD,{pageMetadata:e,children:[(0,t.jsx)(f.Content,{pageMetadata:e,children:r}),(0,t.jsx)(v.default,{className:"hidden"})]})}):n?(0,t.jsx)(g.MDXContentProvider,{children:(0,t.jsxs)(eD,{pageMetadata:e,children:[(0,t.jsx)(b.PageHeader,{}),(0,t.jsx)(y.MultiViewDropdown,{mobile:!0}),(0,t.jsx)(m.MdxPanel,{mobile:!0}),(0,t.jsx)(p.Api,{pageMetadata:e,children:r}),(0,t.jsx)(f.Content,{pageMetadata:e,children:r}),(0,t.jsx)(v.default,{className:"hidden"})]})}):(0,t.jsx)(g.MDXContentProvider,{children:(0,t.jsx)(eD,{pageMetadata:e,children:(0,t.jsx)(h.ContentStack,{pageMetadata:e,children:r})})})}function eE({pageMetadata:e,children:r}){let{isWide:a,isCenter:n}=(0,j.getPageMode)(e);return(0,t.jsx)("main",{className:(0,k.cn)("flex-1 px-5 pt-[calc(9rem+var(--banner-height,2.5rem))] lg:pt-10 lg:pl-24 transition-all duration-100",a&&"px-14",n&&"lg:pl-0 max-w-3xl mx-auto"),id:i.Ids.ContentContainer,children:(0,t.jsxs)("div",{className:"mx-auto max-w-5xl flex flex-row-reverse gap-x-12",children:[!a&&(0,t.jsx)(ef,{}),(0,t.jsx)("div",{className:"w-full [contain:inline-size]",id:i.Ids.ContentArea,children:r})]})})}var ez=e.i(930584);function eF({pageMetadata:e,children:r}){let{isCustom:a,isFrame:n}=(0,j.getPageMode)(e);return a?(0,t.jsxs)(g.MDXContentProvider,{children:[(0,t.jsx)(ez.PalmTopBar,{pageMetadata:e}),(0,t.jsx)(f.Content,{pageMetadata:e,children:r}),(0,t.jsx)(v.default,{className:"hidden"})]}):n?(0,t.jsx)(g.MDXContentProvider,{children:(0,t.jsxs)("div",{id:i.Ids.ContentArea,className:"w-full pt-30 lg:pt-0",children:[(0,t.jsx)(b.PageHeader,{}),(0,t.jsx)(y.MultiViewDropdown,{mobile:!0}),(0,t.jsx)(m.MdxPanel,{mobile:!0}),(0,t.jsx)(p.Api,{pageMetadata:e,children:r}),(0,t.jsx)(f.Content,{pageMetadata:e,children:r}),(0,t.jsx)(v.default,{className:"hidden"})]})}):(0,t.jsx)(g.MDXContentProvider,{children:(0,t.jsx)(eE,{pageMetadata:e,children:(0,t.jsx)(h.ContentStack,{pageMetadata:e,children:r})})})}function e_({pageMetadata:e,children:r}){let{isWide:a,isCenter:n,isApiExample:s}=(0,j.getPageMode)(e);return(0,t.jsxs)("div",{className:(0,k.cn)("w-full flex-1 flex flex-col lg:pt-0","pt-[calc(6.5rem+var(--banner-height,2.5rem))]"),children:[(0,t.jsxs)("main",{className:"flex-1 flex max-[1650px]:[&:has(>_[data-api-example])_#content-area]:mx-auto!",id:i.Ids.ContentContainer,children:[(0,t.jsx)("div",{className:"flex-1 min-w-0",children:(0,t.jsx)("div",{className:(0,k.cn)("w-full lg:max-w-174 pt-6 px-6 lg:mx-auto",!a&&!n&&"xl:ml-[max(0px,calc(50vw-348px-18rem))]",s&&"max-[1650px]:mx-auto!"),id:i.Ids.ContentArea,children:r})}),!a&&(0,t.jsx)(ef,{})]}),(0,t.jsx)(x.AdvancedFooter,{className:"w-full"})]})}function eO({pageMetadata:e,children:r}){let{isCustom:a,isFrame:n}=(0,j.getPageMode)(e);return a||n?(0,t.jsx)(g.MDXContentProvider,{children:(0,t.jsxs)("div",{id:i.Ids.ContentArea,className:"w-full pt-28 lg:pt-0",children:[(0,t.jsx)(b.PageHeader,{}),(0,t.jsx)(y.MultiViewDropdown,{mobile:!0}),(0,t.jsx)(m.MdxPanel,{mobile:!0}),(0,t.jsx)(p.Api,{pageMetadata:e,children:r}),(0,t.jsx)(f.Content,{pageMetadata:e,children:r}),n&&(0,t.jsx)(x.AdvancedFooter,{className:"w-full"}),(0,t.jsx)(v.default,{className:"hidden"})]})}):(0,t.jsx)(g.MDXContentProvider,{children:(0,t.jsx)(e_,{pageMetadata:e,children:(0,t.jsx)(h.ContentStack,{pageMetadata:e,children:r})})})}let eR=({pageMetadata:e,children:r})=>{let a=e["openapi-schema"]||(0,j.getPageMode)(e).isApiExample;return(0,t.jsx)(g.MDXContentProvider,{children:(0,t.jsxs)("main",{suppressHydrationWarning:!0,className:"flex flex-row-reverse box-border w-full min-h-screen pt-40 lg:pt-10",children:[(0,t.jsx)(ef,{}),(0,t.jsxs)("div",{className:"relative grow box-border flex-col w-full mx-auto px-1 lg:pl-[18rem] xl:w-[calc(100%-19rem)] -mt-10",id:i.Ids.ContentArea,children:[(0,t.jsx)("div",{className:"max-w-[844px] mx-auto py-12 bg-background-light dark:bg-gray-900",children:(0,t.jsx)("div",{className:(0,k.cn)("max-w-[600px] mx-auto",a?"px-4":"px-4 sm:px-0"),children:(0,t.jsx)(h.ContentStack,{pageMetadata:e,renderFooter:!1,children:r})})}),(0,t.jsx)("div",{className:"max-w-[844px] mx-auto mt-8",children:(0,t.jsx)(x.Footer,{className:"border-none"})})]})]})})};function eB({slug:e,theme:s,pageMetadata:i,children:l}){let{pageMetadata:d}=(0,o.useContext)(r.PageContext),c=Object.keys(d).length>0?d:i,x=(0,n.useEffectivePageMetadata)(c),{isLivePreview:m,getDocsConfigOverrides:g}=(0,o.useContext)(a.LivePreviewContext),h=g(),p=h?.theme;if("assistant"===x.mode)return(0,t.jsx)(u,{fallback:l});switch(m&&p?p:s){case"maple":return(0,t.jsx)(eT,{pageMetadata:x,children:l},e);case"palm":return(0,t.jsx)(eF,{pageMetadata:x,children:l},e);case"willow":return(0,t.jsx)(eR,{pageMetadata:x,children:l},e);case"linden":return(0,t.jsx)(eM,{pageMetadata:x,children:l},e);case"aspen":return(0,t.jsx)(eC,{pageMetadata:x,children:l},e);case"luma":return(0,t.jsx)(eS,{pageMetadata:x,children:l},e);case"almond":return(0,t.jsx)(ek,{pageMetadata:x,children:l},e);case"sequoia":return(0,t.jsx)(eO,{pageMetadata:x,children:l},e);default:return(0,t.jsx)(eZ,{pageMetadata:x,children:l},e)}}},575126,e=>{"use strict";e.s(["Background",()=>g]);var t=e.i(843476),r=e.i(91557),a=e.i(590280),n=e.i(237978),s=e.i(111048),i=e.i(479721),l=e.i(17677),o=e.i(296548),d=e.i(271645),c=e.i(152823);let u=(e,r,a)=>{switch(e?.decoration){case"gradient":return{background:`radial-gradient(49.63% 57.02% at 58.99% -7.2%, rgba(${(0,l.convertColorsToRgbWithCommas)(r)}, 0.1) 39.4%, rgba(0, 0, 0, 0) 100%)`,className:"h-[64rem]"};case"grid":return{background:`radial-gradient(49.63% 57.02% at 58.99% -7.2%, rgba(${(0,l.convertColorsToRgbWithCommas)(r)}, 0.1) 39.4%, rgba(0, 0, 0, 0) 100%)`,className:"h-[64rem]",children:(0,t.jsxs)("svg",{width:"918",height:"560",viewBox:"0 0 918 591",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"absolute pl-48 -top-16 left-1/2 -translate-x-1/2",children:[(0,t.jsx)("mask",{id:`mask-${a}`,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},x:"0",y:"-80",width:"936",height:"671",children:(0,t.jsx)("ellipse",{cx:"468.373",cy:"255.536",rx:"467.627",ry:"335.114",fill:`url(#radial-${a})`})}),(0,t.jsx)("g",{mask:`url(#mask-${a})`,children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-64.8616 -138.566L1001.61 -138.566V-139.566L-64.8616 -139.566L-64.8616 -138.566ZM73.7705 589.928V649.243H74.7705V589.928H134.479V649.243H135.479V589.928H195.187V649.243H196.187V589.928H255.895V649.243H256.895V589.928H316.603V649.243H317.603V589.928H377.311V649.243H378.311V589.928H438.019V649.243H439.019V589.928L498.727 589.928V649.243H499.727V589.928H559.435V649.243H560.435V589.928H620.143V649.243H621.143V589.928H680.851V649.243H681.851V589.928H741.559V649.243H742.559V589.928H802.267V649.243H803.267V589.928H862.975V649.243H863.975V589.928H1001.61V588.928H863.975V529.221H1001.61V528.221H863.975V468.512H1001.61V467.512H863.975V407.805H1001.61V406.805H863.975V347.097H1001.61V346.097H863.975V286.39H1001.61V285.39H863.975V225.681H1001.61V224.681H863.975V164.974H1001.61V163.974H863.975V104.266H1001.61V103.266H863.975V43.5572H1001.61V42.5572H863.975V-17.152H1001.61V-18.152H863.975V-77.8592L1001.61 -77.8593V-78.8593L863.975 -78.8592V-137.177H862.975V-78.8592H803.267V-137.177H802.267V-78.8592H742.559V-137.177H741.559V-78.8592L681.851 -78.8592V-137.177H680.851V-78.8592H621.143V-137.177H620.143V-78.8592H560.435V-137.177H559.435V-78.8592L499.727 -78.8592V-137.177H498.727V-78.8592H439.019V-137.177H438.019V-78.8592L378.311 -78.8592V-137.177H377.311V-78.8592H317.603V-137.177H316.603V-78.8592H256.895V-137.177H255.895V-78.8592L196.187 -78.8592V-137.177H195.187V-78.8592H135.479V-137.177H134.479V-78.8592H74.7706V-137.177H73.7706V-78.8592L-64.862 -78.8592L-64.862 -77.8592L73.7706 -77.8592L73.7705 -18.152H-64.8617L-64.8617 -17.152H73.7705V42.5572H-64.8621L-64.8621 43.5572H73.7705V103.267H-64.8618L-64.8618 104.267H73.7705V163.974H-64.8622L-64.8622 164.974H73.7705V224.681H-64.8619L-64.8619 225.681H73.7705V285.39H-64.8623L-64.8623 286.39H73.7705V346.097H-64.862L-64.862 347.097H73.7705V406.805H-64.8617L-64.8617 407.805H73.7705V467.512H-64.8614L-64.8614 468.512H73.7705V528.221H-64.8618L-64.8618 529.221H73.7705V588.928H-64.8622L-64.8622 589.928H73.7705ZM803.267 -77.8592H862.975V-18.152L803.267 -18.152V-77.8592ZM742.559 -77.8592H802.267V-18.152H742.559V-77.8592ZM681.851 -77.8592L741.559 -77.8592V-18.152H681.851V-77.8592ZM621.143 -77.8592H680.851V-18.152H621.143V-77.8592ZM560.435 -77.8592H620.143V-18.152H560.435L560.435 -77.8592ZM499.727 -77.8592L559.435 -77.8592L559.435 -18.152H499.727L499.727 -77.8592ZM439.019 -77.8592H498.727L498.727 -18.152L439.019 -18.152L439.019 -77.8592ZM378.311 -77.8592L438.019 -77.8592L438.019 -18.152H378.311L378.311 -77.8592ZM317.603 -77.8592H377.311L377.311 -18.152H317.603L317.603 -77.8592ZM256.895 -77.8592H316.603L316.603 -18.152H256.895L256.895 -77.8592ZM196.187 -77.8592L255.895 -77.8592L255.895 -18.152H196.187L196.187 -77.8592ZM135.479 -77.8592H195.187L195.187 -18.152H135.479L135.479 -77.8592ZM74.7706 -77.8592H134.479L134.479 -18.152L74.7705 -18.152L74.7706 -77.8592ZM74.7705 -17.152V42.5572H134.479V-17.152L74.7705 -17.152ZM135.479 -17.152V42.5572H195.187V-17.152H135.479ZM196.187 -17.152V42.5572L255.895 42.5572V-17.152H196.187ZM256.895 -17.152V42.5572H316.603V-17.152H256.895ZM317.603 -17.152V42.5572H377.311V-17.152H317.603ZM378.311 -17.152V42.5572H438.019V-17.152H378.311ZM439.019 -17.152V42.5572H498.727V-17.152L439.019 -17.152ZM499.727 -17.152V42.5572H559.435V-17.152H499.727ZM560.435 -17.152V42.5572H620.143V-17.152H560.435ZM621.143 -17.152V42.5572H680.851V-17.152H621.143ZM681.851 -17.152V42.5572L741.559 42.5572V-17.152H681.851ZM742.559 -17.152V42.5572H802.267V-17.152H742.559ZM803.267 -17.152V42.5572H862.975V-17.152L803.267 -17.152ZM803.267 43.5572H862.975V103.266H803.267V43.5572ZM742.559 43.5572H802.267V103.266H742.559V43.5572ZM681.851 43.5572L741.559 43.5572V103.266L681.851 103.266V43.5572ZM621.143 43.5572H680.851V103.266H621.143V43.5572ZM560.435 43.5572H620.143V103.266H560.435V43.5572ZM499.727 43.5572H559.435V103.266H499.727V43.5572ZM439.019 43.5572H498.727V103.266H439.019V43.5572ZM378.311 43.5572H438.019V103.266H378.311V43.5572ZM317.603 43.5572H377.311V103.266H317.603V43.5572ZM256.895 43.5572H316.603V103.266H256.895V43.5572ZM196.187 43.5572L255.895 43.5572V103.266L196.187 103.267V43.5572ZM135.479 43.5572H195.187V103.267H135.479V43.5572ZM74.7705 43.5572H134.479V103.267H74.7705V43.5572ZM74.7705 104.267V163.974H134.479V104.267H74.7705ZM135.479 104.267V163.974H195.187V104.267H135.479ZM196.187 104.267V163.974H255.895V104.266L196.187 104.267ZM256.895 104.266V163.974H316.603V104.266H256.895ZM317.603 104.266V163.974H377.311V104.266H317.603ZM378.311 104.266V163.974H438.019V104.266H378.311ZM439.019 104.266V163.974L498.727 163.974V104.266H439.019ZM499.727 104.266V163.974H559.435V104.266H499.727ZM560.435 104.266V163.974H620.143V104.266H560.435ZM621.143 104.266V163.974H680.851V104.266H621.143ZM681.851 104.266V163.974H741.559V104.266L681.851 104.266ZM742.559 104.266V163.974H802.267V104.266H742.559ZM803.267 104.266V163.974H862.975V104.266H803.267ZM803.267 164.974H862.975V224.681H803.267V164.974ZM742.559 164.974H802.267V224.681H742.559V164.974ZM681.851 164.974H741.559V224.681H681.851V164.974ZM621.143 164.974H680.851V224.681H621.143V164.974ZM560.435 164.974H620.143V224.681H560.435V164.974ZM499.727 164.974H559.435V224.681H499.727V164.974ZM439.019 164.974L498.727 164.974V224.681L439.019 224.681V164.974ZM378.311 164.974H438.019V224.681H378.311V164.974ZM317.603 164.974H377.311V224.681H317.603V164.974ZM256.895 164.974H316.603V224.681H256.895V164.974ZM196.187 164.974H255.895V224.681H196.187V164.974ZM135.479 164.974H195.187V224.681H135.479V164.974ZM74.7705 164.974H134.479V224.681H74.7705V164.974ZM74.7705 225.681V285.39H134.479V225.681H74.7705ZM135.479 225.681V285.39H195.187V225.681H135.479ZM196.187 225.681V285.39H255.895V225.681H196.187ZM256.895 225.681V285.39H316.603V225.681H256.895ZM317.603 225.681V285.39H377.311V225.681H317.603ZM378.311 225.681V285.39H438.019V225.681H378.311ZM439.019 225.681V285.39L498.727 285.39V225.681L439.019 225.681ZM499.727 225.681V285.39H559.435V225.681H499.727ZM560.435 225.681V285.39H620.143V225.681H560.435ZM621.143 225.681V285.39H680.851V225.681H621.143ZM681.851 225.681V285.39H741.559V225.681H681.851ZM742.559 225.681V285.39H802.267V225.681H742.559ZM803.267 225.681V285.39H862.975V225.681H803.267ZM803.267 286.39H862.975V346.097H803.267V286.39ZM742.559 286.39H802.267V346.097H742.559V286.39ZM681.851 286.39H741.559V346.097H681.851V286.39ZM621.143 286.39H680.851V346.097H621.143V286.39ZM560.435 286.39H620.143V346.097H560.435V286.39ZM499.727 286.39H559.435V346.097H499.727V286.39ZM439.019 286.39L498.727 286.39V346.097L439.019 346.097V286.39ZM378.311 286.39H438.019V346.097H378.311V286.39ZM317.603 286.39H377.311V346.097H317.603V286.39ZM256.895 286.39H316.603V346.097H256.895V286.39ZM196.187 286.39H255.895V346.097H196.187V286.39ZM135.479 286.39H195.187V346.097H135.479V286.39ZM74.7705 286.39H134.479V346.097H74.7705V286.39ZM74.7705 347.097V406.805H134.479V347.097H74.7705ZM135.479 347.097V406.805H195.187V347.097H135.479ZM196.187 347.097V406.805H255.895V347.097H196.187ZM256.895 347.097V406.805H316.603V347.097H256.895ZM317.603 347.097V406.805H377.311V347.097H317.603ZM378.311 347.097V406.805H438.019V347.097H378.311ZM439.019 347.097V406.805L498.727 406.805V347.097L439.019 347.097ZM499.727 347.097V406.805H559.435V347.097H499.727ZM560.435 347.097V406.805H620.143V347.097H560.435ZM621.143 347.097V406.805H680.851V347.097H621.143ZM681.851 347.097V406.805H741.559V347.097H681.851ZM742.559 347.097V406.805H802.267V347.097H742.559ZM803.267 347.097V406.805H862.975V347.097H803.267ZM803.267 407.805H862.975V467.512H803.267V407.805ZM742.559 407.805H802.267V467.512H742.559V407.805ZM681.851 407.805H741.559V467.512H681.851V407.805ZM621.143 407.805H680.851V467.512H621.143V407.805ZM560.435 407.805H620.143V467.512H560.435V407.805ZM499.727 407.805H559.435V467.512H499.727V407.805ZM439.019 407.805L498.727 407.805V467.512L439.019 467.512V407.805ZM378.311 407.805H438.019V467.512H378.311V407.805ZM317.603 407.805H377.311V467.512H317.603V407.805ZM256.895 407.805H316.603V467.512H256.895V407.805ZM196.187 407.805H255.895V467.512H196.187V407.805ZM135.479 407.805H195.187V467.512H135.479V407.805ZM74.7705 407.805H134.479V467.512H74.7705V407.805ZM74.7705 468.512V528.221H134.479V468.512H74.7705ZM135.479 468.512V528.221H195.187V468.512H135.479ZM196.187 468.512V528.221H255.895V468.512H196.187ZM256.895 468.512V528.221H316.603V468.512H256.895ZM317.603 468.512V528.221H377.311V468.512H317.603ZM378.311 468.512V528.221H438.019V468.512H378.311ZM439.019 468.512V528.221L498.727 528.221V468.512L439.019 468.512ZM499.727 468.512V528.221H559.435V468.512H499.727ZM560.435 468.512V528.221H620.143V468.512H560.435ZM621.143 468.512V528.221H680.851V468.512H621.143ZM681.851 468.512V528.221H741.559V468.512H681.851ZM742.559 468.512V528.221H802.267V468.512H742.559ZM803.267 468.512V528.221H862.975V468.512H803.267ZM803.267 529.221H862.975V588.928H803.267V529.221ZM742.559 529.221H802.267V588.928H742.559V529.221ZM681.851 529.221H741.559V588.928H681.851V529.221ZM621.143 529.221H680.851V588.928H621.143V529.221ZM560.435 529.221H620.143V588.928H560.435V529.221ZM499.727 529.221H559.435V588.928H499.727V529.221ZM439.019 529.221L498.727 529.221V588.928L439.019 588.928V529.221ZM378.311 529.221H438.019V588.928H378.311V529.221ZM317.603 529.221H377.311V588.928H317.603V529.221ZM256.895 529.221H316.603V588.928H256.895V529.221ZM196.187 529.221H255.895V588.928H196.187V529.221ZM135.479 529.221H195.187V588.928H135.479V529.221ZM74.7705 529.221H134.479V588.928H74.7705V529.221ZM1001.61 650.637L-64.862 650.638L-64.862 649.638L1001.61 649.637V650.637Z",className:"fill-primary dark:fill-primary-light",fillOpacity:"0.08"})}),(0,t.jsx)("defs",{children:(0,t.jsxs)("radialGradient",{id:`radial-${a}`,cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(468.373 255.536) rotate(90) scale(335.114 467.627)",children:[(0,t.jsx)("stop",{stopColor:"#D9D9D9"}),(0,t.jsx)("stop",{offset:"1",stopOpacity:"0"})]})})]})};case"windows":return{background:`radial-gradient(49.63% 57.02% at 58.99% -7.2%, rgba(${(0,l.convertColorsToRgbWithCommas)(r)}, 0.1) 39.4%, rgba(0, 0, 0, 0) 100%)`,className:"h-[64rem]",children:(0,t.jsxs)("svg",{width:"790",height:"640",viewBox:"0 0 790 718",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"absolute pl-48 -top-16 left-1/2 -translate-x-1/2",children:[(0,t.jsx)("mask",{id:`mask-${a}`,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"-143",width:"936",height:"861",children:(0,t.jsx)("ellipse",{cx:"468.373",cy:"287.536",rx:"467.627",ry:"430.464",fill:`url(#radial-${a})`})}),(0,t.jsxs)("g",{mask:`url(#mask-${a})`,className:"fill-primary dark:fill-primary-light",children:[(0,t.jsx)("path",{d:"M506.419 281.855L446.417 297.931V359.885L506.419 343.71V281.855Z",fillOpacity:"0.05"}),(0,t.jsx)("path",{d:"M384.768 188.752L324.766 204.828V266.781L384.768 250.606V188.752Z",fillOpacity:"0.05"}),(0,t.jsx)("path",{d:"M263.625 347.002L203.623 363.078V425.031L263.625 408.856V347.002Z",fillOpacity:"0.05"}),(0,t.jsx)("path",{d:"M385.089 440.096L325.087 456.172V518.125L385.089 501.95V440.096Z",fillOpacity:"0.05"}),(0,t.jsx)("path",{d:"M627.756 123.527L567.754 139.603V201.557L627.756 185.382V123.527Z",fillOpacity:"0.05"}),(0,t.jsx)("path",{d:"M445.32 46.918L385.318 62.994V124.947L445.32 108.772V46.918Z",fillOpacity:"0.05"}),(0,t.jsx)("path",{d:"M749.192 279.59L689.19 295.666V357.619L749.192 341.444V279.59Z",fillOpacity:"0.05"}),(0,t.jsx)("path",{d:"M627.905 437.912L567.903 453.988V515.941L627.905 499.766V437.912Z",fillOpacity:"0.05"}),(0,t.jsx)("path",{d:"M202.491 175.656L142.489 191.732V253.685L202.491 237.511V175.656Z",fillOpacity:"0.05"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M446.54 -79.1784L949.537 -213.956L949.278 -214.922L446.54 -80.2137V-87.9997H445.54V-79.9457L385.832 -63.947V-87.9997H384.832V-63.679L325.124 -47.6803V-87.9997H324.124V-47.4124L264.416 -31.4137V-87.9997H263.416V-31.1457L203.708 -15.147L203.708 -87.9997H202.708L202.708 -14.8791L143 1.11966L143 -87.9997H142L142 1.3876L-80.8521 61.1006L-80.5932 62.0666L142 2.42287V64.2363L-65.1402 119.739L-64.8814 120.705L142 65.2715L142 127.085L-49.4278 178.378L-49.1689 179.344L142 128.12V189.936L-33.7155 237.019L-33.4566 237.985L142 190.971V252.787L-18.0025 295.659L-17.7437 296.625L142 253.822V315.635L-2.29068 354.298L-2.03186 355.264L142 316.671V378.484L13.4218 412.937L13.6806 413.903L142 379.519V441.335L29.1341 471.577L29.3929 472.543L142 442.37V504.184L44.8466 530.216L45.1054 531.182L142 505.219V567.032L60.5591 588.855L60.8179 589.82L142 568.068V629.881L76.2715 647.493L76.5303 648.459L142 630.917V692.732L91.9838 706.134L92.2426 707.1L142 693.767V698.42H143V693.499L202.708 677.501V698.42H203.708V677.233L263.416 661.234V698.42H264.416V660.966L324.124 644.967V698.42H325.124V644.699L384.832 628.701V690.514L107.696 764.773L107.954 765.738L384.832 691.549V698.42H385.832V691.281L445.54 675.283V698.42H446.54V675.015L506.248 659.016V698.42H507.248V658.748L566.956 642.749V698.42H567.956V642.481L627.664 626.483V688.298L123.409 823.413L123.667 824.379L627.664 689.334V698.42H628.664V689.066L688.372 673.067V698.42H689.372V672.799L749.08 656.8V698.42H750.08V656.532L809.788 640.534V698.42H810.788V640.266L870.496 624.267V698.42H871.496V623.999L931.204 608V698.42H932.204V607.732L1153.8 548.357L1153.54 547.391L932.204 606.697V544.881L1138.08 489.716L1137.83 488.75L932.204 543.846V482.033L1122.37 431.077L1122.11 430.111L932.204 480.997V419.182L1106.66 372.437L1106.4 371.471L932.204 418.147V356.333L1090.95 313.798L1090.69 312.832L932.204 355.298V293.484L1075.24 255.159L1074.98 254.193L932.204 292.449V230.636L1059.52 196.521L1059.26 195.555L932.204 229.6V167.785L1043.81 137.88L1043.55 136.914L932.204 166.75V104.936L1028.1 79.2413L1027.84 78.2754L932.204 103.901V42.0874L1012.39 20.6027L1012.13 19.6367L932.204 41.0522V-20.7634L996.674 -38.0379L996.415 -39.0039L932.204 -21.7987L932.204 -83.6142L980.961 -96.6786L980.702 -97.6445L932.204 -84.6495V-87.9997H931.204V-84.3815L871.496 -68.3828V-87.9997H870.496V-68.1149L810.788 -52.1161V-87.9997H809.788V-51.8482L750.08 -35.8495V-87.9997H749.08V-35.5815L689.372 -19.5828L689.372 -81.3963L965.249 -155.317L964.99 -156.283L689.372 -82.4316V-87.9997H688.372V-82.1637L628.664 -66.1649V-87.9997H627.664V-65.897L567.956 -49.8983V-87.9997H566.956V-49.6303L507.248 -33.6316V-87.9997H506.248V-33.3637L446.54 -17.365L446.54 -79.1784ZM445.54 -78.9104L385.832 -62.9117L385.832 -1.09831L445.54 -17.097L445.54 -78.9104ZM384.832 -62.6438L325.124 -46.6451L325.124 15.1684L384.832 -0.830353L384.832 -62.6438ZM324.124 -46.3771L264.416 -30.3784L264.416 31.435L324.124 15.4363L324.124 -46.3771ZM263.416 -30.1104L203.708 -14.1117V47.7017L263.416 31.703L263.416 -30.1104ZM202.708 -13.8438L143 2.15492V63.9683L202.708 47.9696V-13.8438ZM628.664 -65.1297L688.372 -81.1284L688.372 -19.3149L628.664 -3.31616L628.664 -65.1297ZM567.956 -48.863L627.664 -64.8617L627.664 -3.04822L567.956 12.9505L567.956 -48.863ZM507.248 -32.5964L566.956 -48.5951L566.956 13.2184L507.248 29.2172L507.248 -32.5964ZM446.54 -16.3297L506.248 -32.3284L506.248 29.4851L446.54 45.4838V-16.3297ZM385.832 -0.0630493L445.54 -16.0618V45.7517L385.832 61.7505V-0.0630493ZM325.124 16.2036L384.832 0.20491V62.0184L325.124 78.0171V16.2036ZM264.416 32.4703L324.124 16.4716V78.2851L264.416 94.2838V32.4703ZM203.708 48.7369L263.416 32.7382V94.5517L203.708 110.55V48.7369ZM143 65.0036L202.708 49.0049V110.818L143 126.817L143 65.0036ZM931.204 -83.3463L871.496 -67.3475L871.496 -5.53207L931.204 -21.5308L931.204 -83.3463ZM870.496 -67.0796L810.788 -51.0809L810.788 10.7346L870.496 -5.26411L870.496 -67.0796ZM809.788 -50.8129L750.08 -34.8142L750.08 27.0013L809.788 11.0025L809.788 -50.8129ZM749.08 -34.5463L689.372 -18.5476V43.2679L749.08 27.2692L749.08 -34.5463ZM688.372 -18.2796L628.664 -2.2809V59.5346L688.372 43.5359V-18.2796ZM627.664 -2.01295L567.956 13.9858V75.8012L627.664 59.8025V-2.01295ZM566.956 14.2537L507.248 30.2524V92.0679L566.956 76.0692V14.2537ZM506.248 30.5204L446.54 46.5191V108.335L506.248 92.3358V30.5204ZM445.54 46.787L385.832 62.7857V124.601L445.54 108.603V46.787ZM384.832 63.0537L325.124 79.0524V140.868L384.832 124.869V63.0537ZM324.124 79.3203L264.416 95.319V157.135L324.124 141.136V79.3203ZM263.416 95.587L203.708 111.586V173.401L263.416 157.402V95.587ZM202.708 111.854L143 127.852V189.668L202.708 173.669V111.854ZM871.496 -4.49677L931.204 -20.4955V41.3201L871.496 57.3188V-4.49677ZM810.788 11.7699L870.496 -4.22882V57.5868L810.788 73.5855V11.7699ZM750.08 28.0365L809.788 12.0378V73.8534L750.08 89.8521V28.0365ZM689.372 44.3032L749.08 28.3045V90.1201L689.372 106.119V44.3032ZM628.664 60.5699L688.372 44.5711V106.387L628.664 122.385V60.5699ZM567.956 76.8365L627.664 60.8378V122.653L567.956 138.652V76.8365ZM507.248 93.1032L566.956 77.1045V138.92L507.248 154.919V93.1032ZM446.54 109.37L506.248 93.3711V155.187L446.54 171.185V109.37ZM385.832 125.636L445.54 109.638V171.453L385.832 187.452V125.636ZM325.124 141.903L384.832 125.904V187.72L325.124 203.719V141.903ZM264.416 158.17L324.124 142.171V203.987L264.416 219.985V158.17ZM203.708 174.436L263.416 158.438V220.253L203.708 236.252V174.436ZM143 190.703L202.708 174.704V236.52L143 252.519V190.703ZM143 253.554V315.367L202.708 299.369V237.555L143 253.554ZM203.708 237.287V299.101L263.416 283.102V221.289L203.708 237.287ZM264.416 221.021V282.834L324.124 266.835V205.022L264.416 221.021ZM325.124 204.754V266.567L384.832 250.569V188.755L325.124 204.754ZM385.832 188.487V250.301L445.54 234.302V172.489L385.832 188.487ZM446.54 172.221V234.034L506.248 218.035V156.222L446.54 172.221ZM507.248 155.954V217.767L566.956 201.769V139.955L507.248 155.954ZM567.956 139.687V201.501L627.664 185.502V123.689L567.956 139.687ZM628.664 123.421V185.234L688.372 169.235V107.422L628.664 123.421ZM689.372 107.154V168.967L749.08 152.969V91.1554L689.372 107.154ZM750.08 90.8874V152.701L809.788 136.702V74.8887L750.08 90.8874ZM810.788 74.6208V136.434L870.496 120.435V58.622L810.788 74.6208ZM871.496 58.3541V120.167L931.204 104.169V42.3554L871.496 58.3541ZM871.496 121.203L931.204 105.204V167.018L871.496 183.016V121.203ZM810.788 137.469L870.496 121.471V183.284L810.788 199.283V137.469ZM750.08 153.736L809.788 137.737V199.551L750.08 215.55V153.736ZM689.372 170.003L749.08 154.004V215.818L689.372 231.816V170.003ZM628.664 186.269L688.372 170.271V232.084L628.664 248.083V186.269ZM567.956 202.536L627.664 186.537V248.351L567.956 264.35V202.536ZM507.248 218.803L566.956 202.804V264.617L507.248 280.616V218.803ZM446.54 235.069L506.248 219.071V280.884L446.54 296.883V235.069ZM385.832 251.336L445.54 235.337V297.151L385.832 313.15V251.336ZM325.124 267.603L384.832 251.604V313.417L325.124 329.416V267.603ZM264.416 283.869L324.124 267.871V329.684L264.416 345.683V283.869ZM203.708 300.136L263.416 284.137V345.951L203.708 361.95V300.136ZM143 316.403L202.708 300.404V362.217L143 378.216V316.403ZM143 379.251V441.067L202.708 425.068V363.253L143 379.251ZM203.708 362.985V424.8L263.416 408.802V346.986L203.708 362.985ZM264.416 346.718V408.534L324.124 392.535V330.719L264.416 346.718ZM325.124 330.451V392.267L384.832 376.268V314.453L325.124 330.451ZM385.832 314.185V376L445.54 360.002V298.186L385.832 314.185ZM446.54 297.918V359.734L506.248 343.735V281.919L446.54 297.918ZM507.248 281.651V343.467L566.956 327.468V265.653L507.248 281.651ZM567.956 265.385V327.2L627.664 311.202V249.386L567.956 265.385ZM628.664 249.118V310.934L688.372 294.935V233.119L628.664 249.118ZM689.372 232.852V294.667L749.08 278.668V216.853L689.372 232.852ZM750.08 216.585V278.4L809.788 262.402V200.586L750.08 216.585ZM810.788 200.318V262.134L870.496 246.135V184.319L810.788 200.318ZM871.496 184.052V245.867L931.204 229.868V168.053L871.496 184.052ZM871.496 246.902L931.204 230.904V292.717L871.496 308.716V246.902ZM810.788 263.169L870.496 247.17V308.984L810.788 324.982V263.169ZM750.08 279.436L809.788 263.437V325.25L750.08 341.249V279.436ZM689.372 295.702L749.08 279.704V341.517L689.372 357.516V295.702ZM628.664 311.969L688.372 295.97V357.784L628.664 373.782V311.969ZM567.956 328.236L627.664 312.237V374.05L567.956 390.049V328.236ZM507.248 344.502L566.956 328.504V390.317L507.248 406.316V344.502ZM446.54 360.769L506.248 344.77V406.584L446.54 422.582V360.769ZM385.832 377.036L445.54 361.037V422.85L385.832 438.849V377.036ZM325.124 393.302L384.832 377.304V439.117L325.124 455.116V393.302ZM264.416 409.569L324.124 393.57V455.384L264.416 471.382V409.569ZM203.708 425.836L263.416 409.837V471.65L203.708 487.649V425.836ZM143 442.102L202.708 426.104V487.917L143 503.916V442.102ZM143 504.951V566.765L202.708 550.766V488.952L143 504.951ZM203.708 488.684V550.498L263.416 534.499V472.686L203.708 488.684ZM264.416 472.418V534.231L324.124 518.232V456.419L264.416 472.418ZM325.124 456.151V517.965L384.832 501.966V440.152L325.124 456.151ZM385.832 439.884V501.698L445.54 485.699V423.886L385.832 439.884ZM446.54 423.618V485.431L506.248 469.433V407.619L446.54 423.618ZM507.248 407.351V469.165L566.956 453.166V391.352L507.248 407.351ZM567.956 391.084V452.898L627.664 436.899V375.086L567.956 391.084ZM628.664 374.818V436.631L688.372 420.633V358.819L628.664 374.818ZM689.372 358.551V420.365L749.08 404.366V342.552L689.372 358.551ZM750.08 342.284V404.098L809.788 388.099V326.286L750.08 342.284ZM810.788 326.018V387.831L870.496 371.833V310.019L810.788 326.018ZM871.496 309.751V371.565L931.204 355.566V293.752L871.496 309.751ZM871.496 372.6L931.204 356.601V418.415L871.496 434.413V372.6ZM810.788 388.867L870.496 372.868V434.681L810.788 450.68V388.867ZM750.08 405.133L809.788 389.135V450.948L750.08 466.947V405.133ZM689.372 421.4L749.08 405.401V467.215L689.372 483.213V421.4ZM628.664 437.667L688.372 421.668V483.481L628.664 499.48V437.667ZM567.956 453.933L627.664 437.935V499.748L567.956 515.747V453.933ZM507.248 470.2L566.956 454.201V516.015L507.248 532.013V470.2ZM446.54 486.467L506.248 470.468V532.281L446.54 548.28V486.467ZM385.832 502.733L445.54 486.734V548.548L385.832 564.547V502.733ZM325.124 519L384.832 503.001V564.815L325.124 580.813V519ZM264.416 535.267L324.124 519.268V581.081L264.416 597.08V535.267ZM203.708 551.533L263.416 535.534V597.348L203.708 613.347V551.533ZM143 567.8L202.708 551.801V613.615L143 629.613V567.8ZM143 630.649V692.464L202.708 676.465V614.65L143 630.649ZM203.708 614.382V676.197L263.416 660.199V598.383L203.708 614.382ZM264.416 598.115V659.931L324.124 643.932V582.117L264.416 598.115ZM325.124 581.849V643.664L384.832 627.665V565.85L325.124 581.849ZM385.832 565.582V627.397L445.54 611.399V549.583L385.832 565.582ZM446.54 549.315V611.131L506.248 595.132V533.317L446.54 549.315ZM507.248 533.049V594.864L566.956 578.865V517.05L507.248 533.049ZM567.956 516.782V578.597L627.664 562.599V500.783L567.956 516.782ZM628.664 500.515V562.331L688.372 546.332V484.517L628.664 500.515ZM689.372 484.249V546.064L749.08 530.065V468.25L689.372 484.249ZM750.08 467.982V529.797L809.788 513.799V451.983L750.08 467.982ZM810.788 451.715V513.531L870.496 497.532V435.717L810.788 451.715ZM871.496 435.449V497.264L931.204 481.265V419.45L871.496 435.449ZM385.832 690.246V628.433L445.54 612.434V674.247L385.832 690.246ZM446.54 673.979V612.166L506.248 596.167V657.981L446.54 673.979ZM507.248 657.713V595.899L566.956 579.901V641.714L507.248 657.713ZM567.956 641.446V579.633L627.664 563.634V625.447L567.956 641.446ZM628.664 625.18V563.366L688.372 547.367V609.181L628.664 625.18ZM689.372 608.913V547.099L749.08 531.101V592.914L689.372 608.913ZM750.08 592.646V530.833L809.788 514.834V576.647L750.08 592.646ZM810.788 576.38V514.566L870.496 498.567V560.381L810.788 576.38ZM871.496 560.113V498.299L931.204 482.301V544.114L871.496 560.113ZM628.664 626.215V688.03L688.372 672.032V610.216L628.664 626.215ZM689.372 609.948V671.764L749.08 655.765V593.949L689.372 609.948ZM750.08 593.681V655.497L809.788 639.498V577.683L750.08 593.681ZM810.788 577.415V639.23L870.496 623.232V561.416L810.788 577.415ZM871.496 561.148V622.964L931.204 606.965V545.149L871.496 561.148Z",fillOpacity:"0.1"})]}),(0,t.jsx)("defs",{children:(0,t.jsxs)("radialGradient",{id:`radial-${a}`,cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(468.373 287.536) rotate(90) scale(430.464 467.627)",children:[(0,t.jsx)("stop",{stopColor:"#D9D9D9"}),(0,t.jsx)("stop",{offset:"1",stopOpacity:"0"})]})})]})};default:return{background:void 0}}},x=({docsConfig:e})=>{let r=(0,c.getColorsFromDocsConfig)(e);if(null==e.background)return null;let a=u(e.background,r.primary,"light"),n=u(e.background,r.primaryLight,"dark");return null==a||null==n?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:(0,o.cn)("block absolute dark:hidden inset-0 overflow-hidden pointer-events-none",a.className),style:{background:a.background},children:a.children}),(0,t.jsx)("span",{className:(0,o.cn)("hidden absolute dark:block inset-0 overflow-hidden pointer-events-none",n.className),style:{background:n.background},children:n.children})]})},m=({backgroundImage:e,className:r})=>(0,t.jsx)("span",{className:(0,o.cn)("fixed inset-0 pointer-events-none",r),style:{backgroundImage:`url('${e}')`,backgroundRepeat:"no-repeat",backgroundPosition:"top right",backgroundAttachment:"fixed",WebkitTouchCallout:"none"}}),g=({docsConfig:e,pageMetadata:l,className:c})=>{let u=(0,n.useEffectivePageMetadata)(l),{isLivePreview:g,getDocsConfigOverrides:h,liveMedia:p}=(0,d.useContext)(a.LivePreviewContext),{docsConfig:f}=(0,d.useContext)(r.DocsConfigContext),y=e??f,b=h();if(!y)return null;let v=g&&b?{...y,...b}:y,j=g&&b?.background?.image!==void 0?b.background.image:y.background?.image,k=b?.theme,w=v.theme;f?.theme!=null&&f.theme!==v.theme&&(w=f.theme),g&&k&&(w=k);let C="custom"===u.mode;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:(0,o.cn)("fixed inset-0 bg-background-light dark:bg-background-dark -z-10 pointer-events-none",(0,i.themeBackground)({theme:C&&"almond"===w?void 0:w}),c),id:"almond"===w?s.Ids.AlmondBackground:s.Ids.Background}),(0,t.jsx)(x,{docsConfig:v}),"string"==typeof j&&(0,t.jsx)(m,{backgroundImage:(0,a.resolveLivePreviewMediaSrc)({src:j,isLivePreview:g,liveMedia:p})}),"object"==typeof j&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{backgroundImage:(0,a.resolveLivePreviewMediaSrc)({src:j.light,isLivePreview:g,liveMedia:p}),className:"dark:hidden"}),(0,t.jsx)(m,{backgroundImage:(0,a.resolveLivePreviewMediaSrc)({src:j.dark,isLivePreview:g,liveMedia:p}),className:"hidden dark:block"})]})]})}},448287,e=>{"use strict";e.s(["default",()=>eR],448287);var t=e.i(843476),r=e.i(343590),a=e.i(535345),n=e.i(865420),s=e.i(5695),i=e.i(803333),l=e.i(111048),o=e.i(476781),d=e.i(477222);let c=e=>{let{overflowX:t,overflowY:r}=window.getComputedStyle(e);return"visible"!==t||"visible"!==r};var u=e.i(346089),x=e.i(296548),m=e.i(271645),g=e.i(174080);function h(){let[e,h]=(0,m.useState)(null),[p,f]=(0,m.useState)(""),[y,b]=(0,m.useState)(!1),{hasChatPermissions:v,assistantConfig:j}=(0,m.useContext)(d.SearchContext),{isChatSheetOpen:k,onChatSheetToggle:w,setShouldFocusChatSheet:C}=(0,m.useContext)(d.ChatAssistantContext),N=(0,r.useSelectedLocale)(),L=(0,i.useCurrentPath)(),M=(0,a.useActionKey)(),V=M[0]?.trim()??"⌘",S=(0,n.useAnalyticsContext)("docs.assistant.ask_ai_on_text_selection");(0,m.useEffect)(()=>{let e;if(!v)return;let t=()=>{clearTimeout(e),e=setTimeout(()=>{let e=window.getSelection();if(!e||e.isCollapsed)return void b(!1);let t=e.toString().trim();if(!t)return void b(!1);let r=e.getRangeAt(0),a=r.startContainer,n=document.getElementsByClassName(o.Classes.Content);if(!n[0]?.contains(a))return void b(!1);let s=(e=>{let t=e.getClientRects();return 0===t.length?e.getBoundingClientRect():((e,t)=>{let r=1/0,a=1/0,n=-1/0,s=-1/0,i=!1;for(let l of Array.from(e)){if(0===l.width&&0===l.height)continue;let e=Math.max(l.left,t.left),o=Math.max(l.top,t.top),d=Math.min(l.right,t.right),c=Math.min(l.bottom,t.bottom);d<=e||c<=o||(i=!0,r=Math.min(r,e),a=Math.min(a,o),n=Math.max(n,d),s=Math.max(s,c))}return i?new DOMRect(r,a,n-r,s-a):null})(t,(e=>{let t,r=(t=e).nodeType===Node.TEXT_NODE?t.parentElement:t instanceof Element?t:null;for(;r&&r!==document.documentElement;){if(c(r))return r;r=r.parentElement}return null})(e.startContainer)?.getBoundingClientRect()??new DOMRect(0,0,window.innerWidth,window.innerHeight))??e.getBoundingClientRect()})(r);f(t),h({top:s.top-45,left:s.left+s.width/2}),b(!0)},100)},r=t=>{let r=document.getElementById(l.Ids.TextSelectionTooltip);r?.contains(t.target)||(clearTimeout(e),b(!1),h(null),f(""))},a=()=>{b(!1),h(null),f("")};return document.addEventListener("mouseup",t),document.addEventListener("mousedown",r),window.addEventListener("scroll",a,!0),window.addEventListener("resize",a),()=>{clearTimeout(e),document.removeEventListener("mouseup",t),document.removeEventListener("mousedown",r),window.removeEventListener("scroll",a,!0),window.removeEventListener("resize",a)}},[v]);let{payloadInput:I,setPayloadInput:H}=(0,s.useAssistant)(),A=()=>{p&&(k||w({entryPoint:"text-selection"}),S({path:L,text:p}).catch(console.error),H({context:[...I.context||[],{type:"textSelection",value:p,path:L}]}),C(!0),window.getSelection()?.removeAllRanges(),b(!1),h(null),f(""))};return((0,m.useEffect)(()=>{if(!y||j?.askAiOnTextSelection===!1)return;let e=e=>{"i"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),A())};return window.addEventListener("keydown",e,!0),()=>window.removeEventListener("keydown",e,!0)}),e&&p&&v&&j?.askAiOnTextSelection!==!1)?(0,g.createPortal)((0,t.jsx)("div",{id:l.Ids.TextSelectionTooltip,className:"fixed z-50 pointer-events-auto",style:{top:`${e.top}px`,left:`${e.left}px`,transform:"translateX(-50%)"},children:(0,t.jsx)("button",{id:l.Ids.TextSelectionTooltipButton,onClick:A,className:(0,x.cn)("flex items-center gap-1.5 rounded-xl","bg-white dark:bg-[#0B0C0E] text-gray-900 dark:text-white border border-gray-200 dark:border-white/10","transition-all duration-100","shadow-xl shadow-gray-500/5 dark:shadow-gray-500/5",y?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 translate-y-1"),children:(0,t.jsxs)("div",{className:"px-2.5 py-1.5 flex gap-1.5 items-center rounded-[10px] text-sm font-medium whitespace-nowrap hover:bg-gray-50 dark:hover:bg-gray-900",children:[(0,t.jsx)(u.Sparkle3Icon,{className:"size-3.5 text-primary dark:text-primary-light","aria-hidden":"true"}),(0,t.jsx)("span",{className:"select-none",children:N.addToAssistant}),(0,t.jsxs)("span",{className:"select-none text-xs font-medium text-gray-400 dark:text-gray-500",children:[V,"⌘"===V?"":"+","I"]})]})})}),document.body):null}var p=e.i(91557),f=e.i(885401),y=e.i(769728),b=e.i(662862);e.i(247167);var v=e.i(876469),j=e.i(958547);let k=e.i(475535).version;var w=e.i(206558),C=e.i(193726),N=e.i(628083),L=e.i(448205),M=e.i(760391),V=e.i(251495);let S=({title:e,defaultOpen:r=!1,children:a,copyText:n,sectionClassName:s,classNames:i,expanded:l})=>{let[o,d]=(0,m.useState)(r),[c,u]=(0,m.useState)(!1),x=void 0!==l,g=l??o,h=async()=>{n&&"success"===await (0,C.copyToClipboard)(n)&&(u(!0),setTimeout(()=>{u(!1)},2e3))},p=i?.borderRadius??"rounded-xl";return(0,t.jsxs)("div",{className:(0,V.clsx)("border",p,i?.wrapper??"border-gray-200/70 dark:border-white/10"),children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{onClick:()=>{x||d(e=>!e)},disabled:x,"aria-expanded":g,className:(0,V.clsx)("w-full flex items-center justify-between p-3",n&&"pr-16","transition-colors",i?.trigger??"hover:bg-gray-100 dark:hover:bg-gray-800",g?i?.triggerRadiusOpen??"rounded-tl-xl rounded-tr-xl":p),children:[(0,t.jsx)("span",{className:i?.title??"text-sm font-semibold text-gray-900 dark:text-gray-100",children:e}),(0,t.jsx)(L.ChevronDownIcon,{"aria-hidden":"true",strokeWidth:2,className:(0,V.clsx)("size-4 transition-transform duration-200 text-gray-400 dark:text-gray-500 shrink-0",g&&"rotate-180")})]}),n&&(0,t.jsx)("button",{onClick:h,className:"absolute right-9 top-1/2 -translate-y-1/2 text-gray-400 transition-colors hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-300","aria-label":`Copy ${e}`,children:c?(0,t.jsx)(N.Check2Icon,{"aria-hidden":"true",className:"size-3.5 shrink-0",strokeWidth:2}):(0,t.jsx)(M.DuplicateIcon,{"aria-hidden":"true",className:"size-3.5 shrink-0",strokeWidth:2})})]}),g&&(0,t.jsx)("div",{className:(0,V.clsx)("p-3 flex flex-col gap-3",i?.content??"border-t border-gray-200/70 dark:border-white/10",s),children:a})]})};var I=e.i(357332);let H=e=>e.toLocaleLowerCase().normalize("NFKD").replaceAll(/[^\p{L}\p{N}]/gu,""),A=e=>H(e).length>0,T=(e,t,r,a,n)=>{let s=!!r&&H(r).includes(t);if(null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e)return s||H(String(e)).includes(t);if("object"!=typeof e)return s;let i=n.get(e);void 0===i&&(n.set(e,!1),i=!1,Array.isArray(e)?e.forEach(e=>{T(e,t,void 0,a,n)&&(i=!0)}):Object.entries(e).forEach(([e,r])=>{T(r,t,e,a,n)&&(i=!0)}),n.set(e,i));let l=s||i;return l&&a.add(e),l},P=(e,t,r)=>{let a=H(t),n=new WeakSet;return{matches:!!a&&T(e,a,r,n,new WeakMap),matchingContainers:n}},D={property:"#953800",punctuation:"#1f2328",string:"#0a3069",number:"#0550ae",boolean:"#cf222e",null:"#6e7781",border:"#d1d9e0"},Z={property:"#d2a8ff",punctuation:"#e6edf3",string:"#a5d6ff",number:"#79c0ff",boolean:"#ff7b72",null:"#7d8590",border:"#30363d"},E=({value:e,color:r,displayValue:a})=>{let[n,s]=(0,m.useState)(!1),i=async()=>{"success"===await (0,C.copyToClipboard)(e)&&(s(!0),setTimeout(()=>{s(!1)},2e3))};return(0,t.jsxs)("span",{onClick:i,className:"cursor-pointer hover:opacity-70 transition-opacity inline-flex items-center gap-1",title:"Click to copy",children:[(0,t.jsx)("span",{style:{color:r},children:a??e}),n&&(0,t.jsx)(N.Check2Icon,{strokeWidth:2,className:"size-2.5 text-green-500"})]})},z=({label:e,value:r,colors:a,depth:n=0,matchingContainers:s})=>{let[i,l]=(0,m.useState)(0===n),o="object"==typeof r&&null!==r&&s?.has(r)===!0,d=i||o,c=()=>{o||l(e=>!e)};if(null==r)return(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{style:{color:a.property},children:e}),(0,t.jsx)("span",{style:{color:a.punctuation},children:": "})]}),(0,t.jsx)(E,{value:String(r),color:a.null})]});if("boolean"==typeof r)return(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{style:{color:a.property},children:e}),(0,t.jsx)("span",{style:{color:a.punctuation},children:": "})]}),(0,t.jsx)(E,{value:String(r),color:a.boolean})]});if("number"==typeof r)return(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{style:{color:a.property},children:e}),(0,t.jsx)("span",{style:{color:a.punctuation},children:": "})]}),(0,t.jsx)(E,{value:String(r),color:a.number})]});if("string"==typeof r)return(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{style:{color:a.property},children:e}),(0,t.jsx)("span",{style:{color:a.punctuation},children:": "})]}),(0,t.jsx)(E,{value:r,color:a.string,displayValue:`"${r}"`})]});if(Array.isArray(r))return 0===r.length?(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{style:{color:a.property},children:e}),(0,t.jsx)("span",{style:{color:a.punctuation},children:": "})]}),(0,t.jsx)("span",{style:{color:a.punctuation},children:"[]"})]}):(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{onClick:c,disabled:o,className:"flex items-center gap-1 hover:opacity-70 transition-opacity",style:{color:a.punctuation},children:[(0,t.jsx)(I.ChevronRightIcon,{strokeWidth:2,className:(0,V.clsx)("size-3 transition-transform",d&&"rotate-90")}),e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{style:{color:a.property},children:e}),(0,t.jsx)("span",{style:{color:a.punctuation},children:": "})]}),(0,t.jsxs)("span",{style:{color:a.punctuation},children:["[",r.length,"]"]})]}),d&&(0,t.jsx)("div",{className:"ml-4 border-l pl-2",style:{borderColor:a.border},children:r.map((e,r)=>(0,t.jsx)(z,{label:String(r),value:e,colors:a,depth:n+1,matchingContainers:s},r))})]});if("object"==typeof r){let i=Object.entries(r);return 0===i.length?(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{style:{color:a.property},children:e}),(0,t.jsx)("span",{style:{color:a.punctuation},children:": "})]}),(0,t.jsx)("span",{style:{color:a.punctuation},children:"{}"})]}):e?(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{onClick:c,disabled:o,className:"flex items-center gap-1 hover:opacity-70 transition-opacity",style:{color:a.punctuation},children:[(0,t.jsx)(I.ChevronRightIcon,{strokeWidth:2,className:(0,V.clsx)("size-3 transition-transform",d&&"rotate-90")}),(0,t.jsx)("span",{style:{color:a.property},children:e}),(0,t.jsx)("span",{style:{color:a.punctuation},children:": "}),(0,t.jsxs)("span",{style:{color:a.punctuation},children:["{",i.length,"}"]})]}),d&&(0,t.jsx)("div",{className:"ml-4 border-l pl-2",style:{borderColor:a.border},children:i.map(([e,r])=>(0,t.jsx)(z,{label:e,value:r,colors:a,depth:n+1,matchingContainers:s},e))})]}):(0,t.jsx)("div",{children:i.map(([e,r])=>(0,t.jsx)(z,{label:e,value:r,colors:a,depth:n+1,matchingContainers:s},e))})}return null},F=(0,m.memo)(function({data:e,theme:r,containerClassName:a,matchingContainers:n}){return(0,t.jsx)("div",{className:(0,V.clsx)("rounded-lg p-3 font-mono text-xs overflow-x-auto",a??("dark"===r?"bg-gray-900":"bg-gray-50")),children:(0,t.jsx)(z,{value:e,colors:"dark"===r?Z:D,matchingContainers:n})})}),_=({readOnly:e=!1})=>{let{flags:r,overrides:a,isEnabled:n,setOverride:s}=(0,m.useContext)(j.FlagContext),i=r.getAllToggles();return e?(0,t.jsx)("div",{className:"flex flex-col divide-y divide-gray-200/70 dark:divide-white/10",children:i.map(({name:e,enabled:r})=>(0,t.jsxs)("div",{className:"flex items-center justify-between py-1.5 font-mono text-xs text-gray-500 dark:text-gray-400",children:[(0,t.jsx)("span",{className:"truncate",children:e}),r?(0,t.jsx)("span",{className:"text-[10px] font-semibold font-mono shrink-0 px-1.5 py-0.5 rounded-[4px] bg-green-500/15 text-green-500",children:"ENABLED"}):(0,t.jsx)("span",{className:"text-[10px] font-semibold font-mono shrink-0 px-1.5 py-0.5 rounded-[4px] bg-gray-500/15 text-gray-500",children:"DISABLED"})]},e))}):(0,t.jsxs)("div",{className:"flex flex-col divide-y divide-gray-200/70 dark:divide-white/10",children:[i.map(({name:e,enabled:i})=>{let l=n(e),o=void 0!==a[e];return(0,t.jsxs)("div",{className:"flex items-center justify-between py-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[(0,t.jsx)("span",{className:"text-xs font-mono text-gray-500 dark:text-gray-400 truncate",children:e}),i&&!o&&(0,t.jsx)("span",{className:"text-[10px] font-semibold font-mono shrink-0 px-1.5 py-0.5 rounded-[4px] bg-green-500/15 text-green-500",children:"DEFAULT"}),o&&(0,t.jsx)("span",{className:"text-[10px] font-semibold font-mono shrink-0 px-1.5 py-0.5 rounded-[4px] bg-blue-500/15 text-blue-500",children:"LOCAL"})]}),(0,t.jsx)("button",{onClick:()=>(e=>{let t=r.isEnabled(e);void 0!==a[e]?s(e,void 0):s(e,!t)})(e),className:`relative w-9 h-5 rounded-full cursor-pointer transition-colors shrink-0 ml-3 ${l?"bg-green-500":"bg-gray-300 dark:bg-gray-600"}`,children:(0,t.jsx)("div",{className:`absolute top-0.5 w-4 h-4 rounded-full bg-white transition-transform shadow-xs ${l?"translate-x-[18px]":"translate-x-0.5"}`})})]},e)}),0===i.length&&(0,t.jsx)("div",{className:"py-6 text-center text-xs font-mono text-gray-400 dark:text-gray-500",children:"No feature flags available"})]})};var O=e.i(237978),R=e.i(425221);let B=["default","wide","custom","center","frame","assistant"],W=()=>{let{pageModeOverride:e,originalPageMode:r,setPageModeOverride:a}=(0,O.usePageModeOverride)(),n=void 0!==e,s=n?e||"default":r??"default";return(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-xs font-mono text-gray-500 dark:text-gray-400",children:"Page Mode"}),n&&(0,t.jsxs)("button",{onClick:()=>a(void 0),className:"flex items-center gap-1 text-[10px] font-mono text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-300 transition-colors","aria-label":"Reset page mode",children:[(0,t.jsx)(R.ArrowRotateAnticlockwiseIcon,{className:"size-2.5",strokeWidth:2}),"Reset"]})]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1",children:B.map(e=>{let r=s===e,i="default"===e?"":e;return(0,t.jsx)("button",{onClick:()=>{r&&n?a(void 0):r||a(i)},className:(0,V.clsx)("px-2 py-1 text-[10px] font-mono rounded-md capitalize transition-colors duration-150",r?"bg-primary text-white dark:bg-primary-light dark:text-gray-950":"bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-200 hover:bg-gray-200 dark:hover:bg-gray-700"),children:e},e)})})]})},$=({setPosition:e,position:r,classNames:a})=>(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:a?.label??"text-xs font-mono text-gray-500 dark:text-gray-400",children:"Position:"}),(0,t.jsx)("div",{className:"flex gap-1",children:["top","right","bottom","left"].map(n=>(0,t.jsx)("button",{onClick:()=>e(n),className:(0,V.clsx)("px-2 py-1 text-xs font-mono rounded-md capitalize","transition-colors duration-150",r===n?a?.active??"bg-primary text-white dark:bg-primary-light dark:text-gray-950":a?.inactive??"bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-200 hover:bg-gray-200 dark:hover:bg-gray-700"),children:n},n))})]});var G=e.i(135746),U=e.i(211682);let q=({toggleTheme:e,docsAreDarkMode:r})=>r?null:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-xs font-mono text-gray-500 dark:text-gray-400",children:"Theme"}),(0,t.jsxs)("button",{onClick:e,className:"relative flex h-7 w-[3.25rem] items-center rounded-full border border-gray-200 dark:border-gray-700 hover:border-gray-300 dark:hover:border-gray-600 p-1 transition-colors","aria-label":"Toggle theme",children:[(0,t.jsxs)("div",{className:"z-10 flex w-full items-center justify-between px-1",children:[(0,t.jsx)(U.SunIcon,{"aria-hidden":"true",strokeWidth:2,className:"size-3 text-gray-600 dark:text-gray-500 shrink-0"}),(0,t.jsx)(G.MoonIcon,{"aria-hidden":"true",strokeWidth:2,className:"size-3 text-gray-400 dark:text-gray-300 shrink-0"})]}),(0,t.jsx)("div",{className:(0,V.clsx)("absolute left-1 size-5 rounded-full bg-gray-200 dark:bg-gray-700 transition-transform duration-200","dark:translate-x-[1.40rem]")})]})]});var X=e.i(930733);let Y=(0,X.default)("GearIcon",[["path",{d:"M9 10.75C9.9665 10.75 10.75 9.9665 10.75 9C10.75 8.0335 9.9665 7.25 9 7.25C8.0335 7.25 7.25 8.0335 7.25 9C7.25 9.9665 8.0335 10.75 9 10.75Z",fill:"none",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M16.25 9.35499V8.64499C16.25 8.13499 15.867 7.70699 15.36 7.65099L14.266 7.52899L13.763 6.31499L14.451 5.45599C14.769 5.05799 14.738 4.48499 14.377 4.12399L13.875 3.62199C13.515 3.26199 12.941 3.22999 12.543 3.54799L11.684 4.23599L10.47 3.73299L10.348 2.63899C10.292 2.13299 9.86399 1.74899 9.35399 1.74899H8.64399C8.13399 1.74899 7.70599 2.13199 7.64999 2.63899L7.52799 3.73299L6.31399 4.23599L5.45499 3.54899C5.05699 3.23099 4.48399 3.26199 4.12299 3.62299L3.62099 4.12499C3.26099 4.48499 3.22899 5.05899 3.54699 5.45699L4.23499 6.31599L3.73199 7.52999L2.63799 7.65199C2.13199 7.70799 1.74799 8.13599 1.74799 8.64599V9.35599C1.74799 9.86599 2.13099 10.294 2.63799 10.35L3.73199 10.472L4.23499 11.686L3.54799 12.545C3.22999 12.943 3.26099 13.517 3.62199 13.877L4.12399 14.379C4.48399 14.739 5.05799 14.771 5.45599 14.453L6.31499 13.765L7.52899 14.268L7.65099 15.362C7.70699 15.868 8.13499 16.252 8.64499 16.252H9.35499C9.86499 16.252 10.293 15.869 10.349 15.362L10.471 14.268L11.685 13.765L12.544 14.453C12.942 14.771 13.515 14.74 13.876 14.379L14.378 13.877C14.738 13.517 14.77 12.943 14.452 12.545L13.765 11.686L14.268 10.472L15.362 10.35C15.868 10.294 16.252 9.86599 16.252 9.35599L16.25 9.35499Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined");var K=e.i(137829);let J=({theme:e,toggleSheet:r,isOpen:a,currentPosition:n,children:s,buttonRef:i,onPointerDown:l,isButtonPositioned:o,classNames:d,header:c})=>{let[u,x]=(0,m.useState)(!1);(0,m.useEffect)(()=>{x(!0)},[]);let h=(0,t.jsxs)("div",{className:(0,V.clsx)("dark"===e?"dark":""),children:[(0,t.jsx)("button",{ref:i,onPointerDown:l,id:"dev-panel-button",onClick:r,className:(0,V.clsx)("fixed top-0 left-0 z-99999 touch-none","flex items-center justify-center","size-12 rounded-full","shadow-lg hover:shadow-xl","transition-[transform,background-color,opacity] duration-200","hover:scale-105 active:cursor-grabbing active:scale-95","focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",o?"opacity-100":"opacity-0 pointer-events-none",d?.fab??"bg-primary text-white dark:bg-primary-light dark:text-gray-950"),"aria-label":a?"Close dev panel":"Open dev panel",children:a?(0,t.jsx)(K.XmarkIcon,{className:"size-6",strokeWidth:2}):(0,t.jsx)(Y,{className:"size-6",strokeWidth:2})}),(0,t.jsx)("div",{id:"dev-panel-wrapper",className:(0,V.clsx)("fixed z-99999","shadow-2xl","transition-transform duration-300 ease-in-out",n.container,n.transform,d?.panel??"bg-white dark:bg-gray-950 border-gray-200/70 dark:border-white/10"),children:(0,t.jsxs)("div",{className:"h-full flex flex-col overflow-hidden",children:[c??(0,t.jsxs)("div",{className:(0,V.clsx)("flex items-center justify-between px-4 py-3 border-b border-gray-200/70 dark:border-white/10",d?.header),children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-gray-900 dark:text-gray-100",children:"Dev Panel"}),(0,t.jsx)("button",{onClick:r,className:(0,V.clsx)("size-7 flex items-center justify-center rounded-lg transition-colors",d?.closeButton??"hover:bg-gray-100 dark:hover:bg-gray-800 text-gray-500 dark:text-gray-400"),"aria-label":"Close",children:(0,t.jsx)(K.XmarkIcon,{className:"size-3.5",strokeWidth:2})})]}),(0,t.jsx)("div",{className:(0,V.clsx)("flex-1 overflow-auto px-4 py-4",d?.content??"text-gray-900 dark:text-gray-100"),children:(0,t.jsx)("div",{className:(0,V.clsx)("flex flex-col",d?.contentGap??"gap-3"),children:s})})]})})]});return u?(0,g.createPortal)(h,document.body):null};var Q=e.i(147681),ee=e.i(810412),et=e.i(864823);let er=(0,X.default)("InputSearchIcon",[["path",{d:"M8.25 13.25H3.75C2.645 13.25 1.75 12.355 1.75 11.25V6.75C1.75 5.645 2.645 4.75 3.75 4.75H14.25C15.355 4.75 16.25 5.645 16.25 6.75V8.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M13 14.25C14.2426 14.25 15.25 13.2426 15.25 12C15.25 10.7574 14.2426 9.75 13 9.75C11.7574 9.75 10.75 10.7574 10.75 12C10.75 13.2426 11.7574 14.25 13 14.25Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M14.59 13.59L16.25 15.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined"),ea=80,en=25,es=5,ei=2,el=20,eo=(e,[t,r],a=ei,n=el)=>{if(e>r){let t=e-r;return r+Math.min((t>0?Math.sqrt(t):-Math.sqrt(-t))*a,n)}if(e0?Math.sqrt(r):-Math.sqrt(-r))*a,-n)}return e},ed=new Set(["STYLE","SCRIPT","TITLE"]),ec=new Set(["dev-panel-button","dev-panel-wrapper"]),eu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ",ex=new WeakMap,em=e=>{let t=e;for(;t;){if(t instanceof Element&&t.id&&ec.has(t.id))return!0;t=t.parentNode}return!1},eg=e=>/^\s*$/.test(e),eh=()=>{let[e,r]=(0,m.useState)(!1);return(0,t.jsxs)("div",{className:"flex flex-col gap-2 py-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-0.5 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-xs font-mono text-gray-500 dark:text-gray-400",children:"Chaos String Test"}),e&&(0,t.jsx)("span",{className:"text-[10px] font-semibold font-mono px-1.5 py-0.5 rounded-[4px] bg-green-500/15 text-green-500",children:"ACTIVE"})]}),(0,t.jsx)("span",{className:"text-[10px] font-mono text-gray-400 dark:text-gray-500",children:"Replaces all text with random strings"})]}),(0,t.jsx)("button",{onClick:()=>{(()=>{for(let e of function*(e){yield*function*(e,t=NodeFilter.SHOW_ALL,{inspect:r,collect:a,callback:n}={}){let s,i=document.createTreeWalker(e,t,{acceptNode:e=>r&&!r(e)?NodeFilter.FILTER_REJECT:a&&!a(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT});for(;s=i.nextNode();)n?.(s),yield s}(e,NodeFilter.SHOW_TEXT,{inspect:e=>!ed.has(e.parentElement?.nodeName||"")})}(document.body)){if(em(e)||null===e.textContent||eg(e.textContent))continue;let t=e.textContent.length,r=ex.get(e);void 0===r?(ex.set(e,e.textContent),e.textContent=Array.from({length:3*t},()=>eu[Math.floor(Math.random()*eu.length)]).join("")):(e.textContent=r,ex.delete(e))}})(),r(e=>!e)},className:`relative w-9 h-5 rounded-full border-none cursor-pointer transition-colors shrink-0 ml-3 ${e?"bg-green-500":"bg-gray-300 dark:bg-gray-600"}`,children:(0,t.jsx)("div",{className:`absolute top-0.5 w-4 h-4 rounded-full bg-white transition-transform shadow-xs ${e?"translate-x-[18px]":"translate-x-0.5"}`})})]}),e&&(0,t.jsxs)("div",{className:"text-xs bg-blue-500/10 text-blue-400 p-2 rounded-lg font-mono",children:[(0,t.jsx)("div",{className:"text-[10px] text-blue-500 font-semibold mb-1",children:"Potential fix:"}),(0,t.jsx)("div",{className:"text-gray-500 dark:text-gray-400",children:"/* css */"}),(0,t.jsx)("div",{children:"overflow-wrap: break-word;"}),(0,t.jsx)("div",{children:"hyphens: auto;"}),(0,t.jsx)("div",{className:"text-gray-500 dark:text-gray-400 mt-1",children:"/* tailwind */"}),(0,t.jsx)("div",{children:"break-words hyphens-auto"})]})]})},ep=({text:e})=>{let[r,a]=(0,m.useState)(!1),n=async()=>{"success"===await (0,C.copyToClipboard)(e)&&(a(!0),setTimeout(()=>{a(!1)},2e3))};return(0,t.jsxs)("span",{children:[(0,t.jsx)("button",{className:"p-1 hover:bg-zinc-950/5 dark:hover:bg-white/5 rounded mr-1",onClick:n,children:r?(0,t.jsx)(N.Check2Icon,{"aria-hidden":"true",strokeWidth:2,className:"size-3 shrink-0"}):(0,t.jsx)(M.DuplicateIcon,{"aria-hidden":"true",strokeWidth:2,className:"size-3 shrink-0"})}),e]})},ef=(0,X.default)("Download4Icon",[["path",{d:"M15.25 11.75V13.25C15.25 14.355 14.355 15.25 13.25 15.25H4.75C3.645 15.25 2.75 14.355 2.75 13.25V11.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M5.5 6.75L9 10.25L12.5 6.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M9 10.25V2.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined");function ey(e){return[...e.replace(/\/\*[\s\S]*?\*\//g,"").matchAll(/([^{}]+)\{([^{}]*)\}/g)].map((e,t)=>{let r=e[1],a=e[2];if(!r||void 0===a)return null;let n=r.trim();if(!n||n.startsWith("/*")||n.endsWith("*/"))return null;let s=a.split(";").map(e=>e.trim()).filter(Boolean).map(e=>{let r=function(e){let t=e.indexOf(":");if(-1===t)return null;let r=e.slice(0,t).trim(),a=e.slice(t+1).trim();return r&&a?{property:r,value:a}:null}(e);return r?{property:r.property,value:r.value,key:`${t}|${n}|${r.property}`}:null}).filter(e=>null!==e);return{selector:n,declarations:s,ruleIndex:t}}).filter(e=>null!==e)}let eb=e=>[e.selector,e.declarations.flatMap(({property:e,value:t})=>[e,t])],ev=(e,t)=>[e,t.map(eb)];function ej({enabled:e,onToggle:r,size:a="normal"}){let n="small"===a;return(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),r()},className:(0,V.clsx)("relative rounded-full border-none cursor-pointer transition-colors",e?"bg-green-500":"bg-gray-400",n?"w-8 h-4":"w-10 h-5"),children:(0,t.jsx)("div",{className:(0,V.clsx)("absolute rounded-full bg-white transition-all shadow-md",n?"top-0.5 size-3":"top-0.5 size-4",e?n?"left-[18px]":"left-[22px]":"left-0.5")})})}let ek=({rule:e,searchQuery:r})=>{let[a,n]=(0,m.useState)(!1),s=A(r)&&P(eb(e),r).matches,i=a||s;return 0===e.declarations.length?null:(0,t.jsxs)("div",{className:"border rounded text-xs overflow-hidden border-gray-200/70 dark:border-white/10",children:[(0,t.jsxs)("button",{onClick:()=>{s||n(e=>!e)},disabled:s,className:"w-full flex items-center justify-between pl-0.5 pr-2 py-1.5 gap-2 transition-colors text-left hover:bg-gray-50 dark:hover:bg-gray-800",children:[(0,t.jsx)("code",{className:"text-[11px] font-mono truncate flex-1 bg-transparent dark:bg-transparent text-gray-800 dark:text-gray-200",title:e.selector,children:e.selector}),(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsx)(L.ChevronDownIcon,{strokeWidth:2,className:(0,V.clsx)("size-3 transition-transform duration-200",i&&"rotate-180")})})]}),i&&(0,t.jsx)("div",{className:"border-t py-2 px-1 bg-gray-100/5 overflow-x-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none] border-gray-200/70 dark:border-white/10",children:(0,t.jsx)("div",{className:"w-fit",children:e.declarations.map(e=>(0,t.jsxs)("code",{className:"text-[10px] font-mono whitespace-nowrap rounded-none bg-transparent! block",children:[(0,t.jsx)("span",{className:"text-purple-600 dark:text-purple-400",children:e.property}),(0,t.jsx)("span",{className:"text-gray-500",children:": "}),(0,t.jsx)("span",{className:"text-blue-600 dark:text-blue-400",children:e.value})]},e.key))})})]})},ew=({file:e,onToggleFile:r,searchQuery:a})=>{let[n,s]=(0,m.useState)(!1),[i,l]=(0,m.useState)(!1),o=(0,m.useMemo)(()=>ey(e.content),[e.content]),d=(0,m.useMemo)(()=>ev(e.path,o),[e.path,o]),c=A(a)&&P(d,a).matches,u=n||c,x=(0,m.useCallback)(t=>{t.stopPropagation(),navigator.clipboard.writeText(e.content),l(!0),setTimeout(()=>l(!1),1500)},[e.content]),g=(0,m.useCallback)(t=>{t.stopPropagation();let r=new Blob([e.content],{type:"text/css"}),a=URL.createObjectURL(r),n=document.createElement("a");n.href=a,n.download=e.path.split("/").pop()||"custom.css",document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(a)},[e.content,e.path]);return(0,t.jsxs)("div",{className:(0,V.clsx)("border-b last-of-type:border-b-0 overflow-hidden border-gray-200/70 dark:border-white/10",!e.enabled&&"opacity-60"),children:[(0,t.jsxs)("div",{onClick:()=>{c||s(e=>!e)},className:"w-full flex items-center justify-between p-2 gap-2 overflow-hidden cursor-pointer hover:bg-gray-900/5 dark:hover:bg-gray-200/10",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 flex-1 min-w-0 text-left",children:[(0,t.jsx)(L.ChevronDownIcon,{strokeWidth:2,className:(0,V.clsx)("size-3.5 transition-transform duration-200 shrink-0",u&&"rotate-180")}),(0,t.jsx)("span",{className:"text-xs font-mono truncate",title:e.path,children:e.path})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[(0,t.jsx)("button",{onClick:x,className:"p-1 rounded transition-colors bg-gray-100 dark:bg-gray-800 hover:bg-gray-200 dark:hover:bg-gray-700",title:"Copy CSS",children:i?(0,t.jsx)(N.Check2Icon,{strokeWidth:2,className:"size-3.5 text-green-500"}):(0,t.jsx)(M.DuplicateIcon,{strokeWidth:2,className:"size-3.5 opacity-60"})}),(0,t.jsx)("button",{onClick:g,className:"p-1 rounded transition-colors bg-gray-100 dark:bg-gray-800 hover:bg-gray-200 dark:hover:bg-gray-700",title:"Download CSS",children:(0,t.jsx)(ef,{strokeWidth:2,className:"size-3.5 opacity-60"})}),(0,t.jsx)(ej,{size:"small",enabled:e.enabled,onToggle:()=>r(e.index)})]})]}),u&&(0,t.jsx)("div",{className:"border-t p-2 space-y-2 max-h-[280px] overflow-y-auto border-gray-200/70 dark:border-white/10",children:0===o.length?(0,t.jsx)("div",{className:"text-xs text-gray-500 italic",children:"No CSS rules found"}):o.map(r=>(0,t.jsx)(ek,{rule:r,searchQuery:a},`${e.index}-${r.ruleIndex}`))})]})},eC=({cssFiles:e,onToggleFile:r,searchQuery:a})=>null===e?null:0===e.length?(0,t.jsx)("div",{className:"text-xs font-mono text-gray-500 italic p-4",children:"No custom CSS files found"}):(0,t.jsx)("div",{className:"flex flex-col overflow-hidden",children:e.map(e=>(0,t.jsx)(ew,{file:e,onToggleFile:r,searchQuery:a},e.index))}),eN=["*",".","✦","✧","+","·","°","˚","⋆","✺"],eL=[45,12,200,280,330,140,175],eM=()=>eN[Math.floor(Math.random()*eN.length)]??"*",eV=(e,t)=>({kind:"rocket",x:e*(.15+.7*Math.random()),y:t,vx:(Math.random()-.5)*1.5,vy:-(9+3*Math.random()),alpha:1,size:16,char:"|",hue:eL[Math.floor(Math.random()*eL.length)]??45,targetY:t*(.15+.3*Math.random())}),eS=e=>{let t=44+Math.floor(40*Math.random()),r=[];for(let a=0;a{let[e,r]=(0,m.useState)(!1),a=(0,m.useRef)(null),n=(0,m.useRef)([]),s=(0,m.useRef)(0),i=(0,m.useRef)(0),l=(0,m.useRef)(0),o=(0,m.useRef)(0),d=(0,m.useCallback)(()=>{let e=a.current;if(!e)return;let t=e.getContext("2d");if(!t)return;let r=window.devicePixelRatio||1;e.width=Math.floor(window.innerWidth*r),e.height=Math.floor(window.innerHeight*r),e.style.width=`${window.innerWidth}px`,e.style.height=`${window.innerHeight}px`,t.setTransform(r,0,0,r,0,0)},[]),c=(0,m.useCallback)(e=>{let t=a.current,d=t?.getContext("2d");if(!t||!d){s.current=0;return}let u=window.innerWidth,x=window.innerHeight,m=Math.min((e-i.current)/16.67,4);i.current=e,l.current>0&&(o.current+=m,o.current>=18&&(o.current=0,l.current-=1,n.current.push(eV(u,x)))),d.clearRect(0,0,u,x),d.textAlign="center",d.textBaseline="middle";let g=[];for(let e of n.current){if("rocket"===e.kind){if(e.vy+=.045*m,e.x+=e.vx*m,e.y+=e.vy*m,e.y<=e.targetY||e.vy>=0){g.push(...eS(e));continue}}else if(e.vy+=.045*m,e.vx*=.985,e.vy*=.985,e.x+=e.vx*m,e.y+=e.vy*m,e.alpha-=.011*m,e.alpha<=0)continue;d.globalAlpha=Math.max(0,e.alpha),d.font=`${e.size}px monospace`,d.fillStyle=`hsl(${e.hue} 90% ${"rocket"===e.kind?75:62}%)`,d.fillText(e.char,e.x,e.y),g.push(e)}d.globalAlpha=1,n.current=g,g.length>0||l.current>0?s.current=requestAnimationFrame(c):(d.clearRect(0,0,u,x),s.current=0,r(!1))},[]),u=(0,m.useCallback)(()=>{l.current+=12,n.current.push(eV(window.innerWidth,window.innerHeight)),r(!0),a.current&&!s.current&&(d(),i.current=performance.now(),s.current=requestAnimationFrame(c))},[c,d]);return(0,m.useEffect)(()=>{if(!e)return;d(),s.current||(i.current=performance.now(),s.current=requestAnimationFrame(c));let t=()=>d();return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),s.current&&cancelAnimationFrame(s.current),s.current=0}},[e,c,d]),{launch:u,canvas:e?(0,g.createPortal)((0,t.jsx)("canvas",{ref:a,"aria-hidden":"true",className:"fixed inset-0 z-999999 pointer-events-none"}),document.body):null}},eH=()=>{let{launch:e,canvas:r}=eI();return(0,t.jsxs)("div",{className:"flex flex-col gap-2 py-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("div",{className:"flex flex-col gap-0.5 flex-1",children:(0,t.jsx)("span",{className:"text-xs font-mono text-gray-500 dark:text-gray-400",children:"Fireworks"})}),(0,t.jsx)("button",{onClick:e,className:"shrink-0 ml-3 px-2 py-1 text-[10px] font-mono rounded-md transition-colors duration-150 bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-200 hover:bg-gray-200 dark:hover:bg-gray-700",children:"Launch"})]}),r]})},eA="mintlify-dev-panel",eT={},eP=!1,eD="right",eZ="light",eE=()=>{let[e,r]=(0,m.useState)(""),a=(0,m.useDeferredValue)(e),n=(0,m.useRef)(null),[s,i]=(0,m.useState)(eP),l=e=>{eP=e,i(e)},[o,c]=(0,m.useState)(eD),[u,x]=(0,m.useState)(eZ),{ref:g,onPointerDown:h,isPositioned:f}=(({localStorageKey:e,dragThreshold:t=es,offsetTop:r=ea,offsetOther:a=en,onDragStart:n,defaultSide:s="right",defaultVertical:i="bottom"})=>{let l=(0,m.useRef)(null),[o,d]=(0,m.useState)(!1),[c,u]=(0,m.useState)(s),x=(0,m.useRef)(!1),g=(0,m.useRef)(null),h=(0,m.useRef)({state:"idle"}),p=(0,m.useRef)(null),f=(0,m.useRef)({x:0,y:0}),y=(0,m.useRef)({x:0,y:0}),b=(0,m.useRef)(0),v=(0,m.useRef)([]),j=(e,t,r)=>Math.max(t,Math.min(r,e)),k=(0,m.useRef)(s),w=e=>{if(!l.current)return 0;let t=l.current.offsetWidth,r=window.innerWidth-document.documentElement.clientWidth;return"right"===e?window.innerWidth-r-a-t:a},C=()=>{if(!l.current)return{x:0,y:0};let e=w(s),t=l.current.getBoundingClientRect();return{x:e,y:"bottom"===i?window.innerHeight-t.height-a:r}};(0,m.useEffect)(()=>{let e=()=>{if(!l.current)return;let e=l.current.getBoundingClientRect().height,t=w(k.current),n=window.innerHeight-a-e,s=j(y.current.y,r,n);y.current={x:t,y:s},l.current.style.translate=`${t}px ${s}px`};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[r,a]),(0,m.useEffect)(()=>()=>{g.current?.disconnect(),null!==p.current&&(p.current(),p.current=null)},[]);let N=()=>{"drag"===h.current.state&&l.current?.releasePointerCapture(h.current.pointerId);let e="drag"===h.current.state;h.current=e?{state:"drag-end"}:{state:"idle"},null!==p.current&&(p.current(),p.current=null),e||l.current?.removeEventListener("click",M),v.current=[],document.body.style.userSelect=""},L=e=>{l.current&&(y.current=e,l.current.style.translate=`${e.x}px ${e.y}px`)},M=e=>{"drag-end"===h.current.state&&(e.preventDefault(),e.stopPropagation(),h.current={state:"idle"},l.current?.removeEventListener("click",M))},V=e=>{if("press"===h.current.state){let r=e.clientX-f.current.x,a=e.clientY-f.current.y;Math.sqrt(r*r+a*a)>=t&&(n?.(),h.current={state:"drag",pointerId:e.pointerId},l.current?.setPointerCapture(e.pointerId),document.body.style.userSelect="none")}if("drag"!==h.current.state||!l.current)return;let s={x:e.clientX,y:e.clientY},i=s.x-f.current.x,o=s.y-f.current.y;f.current=s;let d=l.current.getBoundingClientRect(),c=d.width,u=d.height,x=window.innerWidth-document.documentElement.clientWidth,m=window.innerWidth-x-a-c,g=window.innerHeight-a-u;L({x:eo(y.current.x+i,[a,m]),y:eo(y.current.y+o,[r,g])});let p=Date.now();p-b.current>=10&&(v.current=[...v.current.slice(-5),{position:s,timestamp:p}]),b.current=p},S=()=>{if("drag"!==h.current.state||!l.current)return void N();let t=(e=>{if(e.length<2)return{x:0,y:0};let t=e[0],r=e[e.length-1],a=(r?.timestamp??0)-(t?.timestamp??0);return 0===a?{x:0,y:0}:{x:1e3*(((r?.position.x??0)-(t?.position.x??0))/a),y:1e3*(((r?.position.y??0)-(t?.position.y??0))/a)}})(v.current),n=l.current.getBoundingClientRect(),s=n.height,i=n.width,o=n.left+i/2+((e,t=.998)=>e/1e3*t/(1-t))(t.x){let a=l.current;if(!a)return;u(r);let n=s=>{if("translate"===s.propertyName){y.current=t,k.current=r,a.style.transition="",a.removeEventListener("transitionend",n);var i=t.y;try{localStorage.setItem(e,JSON.stringify({side:r,y:i}))}catch(e){console.error("Failed to save widget position:",e)}}};a.style.transition="translate 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",a.addEventListener("transitionend",n),L(t)})({x:d,y:x},o)};return{ref:t=>{g.current?.disconnect(),g.current=null,l.current=t,t&&(x.current||(x.current=!0,(t=>{try{let r=localStorage.getItem(e);if(r){let e=JSON.parse(r);k.current=e.side;let a=w(e.side);y.current={x:a,y:e.y},t.style.translate=`${a}px ${e.y}px`}else{let{x:e,y:r}=C();k.current=s,y.current={x:e,y:r},t.style.translate=`${e}px ${r}px`}}catch(a){console.error("Failed to load widget position:",a);let{x:e,y:r}=C();k.current=s,y.current={x:e,y:r},t.style.translate=`${e}px ${r}px`}u(k.current),d(!0)})(t)),g.current=new ResizeObserver(()=>{(()=>{if(!l.current||"right"!==k.current)return;let e=w("right");y.current={x:e,y:y.current.y},l.current.style.translate=`${e}px ${y.current.y}px`})()}),g.current.observe(t))},onPointerDown:e=>{0===e.button&&(l.current&&(l.current.style.transition=""),f.current={x:e.clientX,y:e.clientY},h.current={state:"press"},window.addEventListener("pointermove",V),window.addEventListener("pointerup",S),null!==p.current&&(p.current(),p.current=null),p.current=()=>{window.removeEventListener("pointermove",V),window.removeEventListener("pointerup",S)},l.current?.addEventListener("click",M))},isPositioned:o,side:c}})({localStorageKey:"mintlify-dev-panel-position",defaultSide:"right",defaultVertical:"bottom"}),y=((e,t)=>({top:{container:"top-0 left-0 right-0 h-[60vh] border-b",transform:t?"translate-y-0":"-translate-y-full"},bottom:{container:"bottom-0 left-0 right-0 h-[60vh] border-t",transform:t?"translate-y-0":"translate-y-full"},left:{container:"top-0 left-0 bottom-0 w-[400px] border-r",transform:t?"translate-x-0":"-translate-x-full"},right:{container:"top-0 right-0 bottom-0 w-[400px] border-l",transform:t?"translate-x-0":"translate-x-full"}})[e])(o,s),b=(0,m.useContext)(d.SearchContext),C=(0,m.useContext)(p.DeploymentMetadataContext),N=(0,m.useContext)(p.DocsConfigContext),{flags:L,overrides:M,isEnabled:V}=(0,m.useContext)(j.FlagContext),{openApiReferenceData:I}=(0,m.useContext)(ee.OpenApiReferenceContext),H=(0,et.usePlaygroundInputsStore)(e=>e.inputs),T=(0,et.useApiPlaygroundInputs)(),{pageMetadata:D}=(0,m.useContext)(p.PageContext),Z=N.docsConfig??eT,E=N.docsNavWithMetadata??eT,{cssFiles:z,toggleFile:O}=(()=>{let[e,t]=(0,m.useState)(null);return(0,m.useEffect)(()=>{let e=document.querySelectorAll("style[data-custom-css-index]"),r=[];e.forEach(e=>{let t=parseInt(e.dataset.customCssIndex??"0",10),a=e.dataset.customCssPath??`css-file-${t}`,n=e.textContent,s="not all"!==e.media;r.push({index:t,path:a,content:n,enabled:s})}),t(r)},[]),{cssFiles:e,toggleFile:(0,m.useCallback)(e=>{let r=document.querySelector(`style[data-custom-css-index="${e}"]`);if(!r)return;let a="not all"!==r.media;r.media=a?"not all":"",t(t=>t?.map(t=>t.index===e?{...t,enabled:!a}:t)??null)},[])}})(),R=(0,m.useMemo)(()=>({operation:I.operation,dependencies:I.dependencies}),[I.dependencies,I.operation]),B=(0,m.useMemo)(()=>({flattened:H,unflattened:T}),[H,T]),G=(0,m.useMemo)(()=>[I.operation,I.dependencies,...I.originalFileLocation?[I.originalFileLocation]:[]],[I.dependencies,I.operation,I.originalFileLocation]),U=(0,m.useMemo)(()=>z?.map(e=>ev(e.path,ey(e.content)))??[],[z]),X=(0,m.useMemo)(()=>L.getAllToggles().map(({name:e,enabled:t})=>{if(!v.IS_DEV)return[e,t?"enabled":"disabled"];let r=V(e)?"enabled":"disabled",a=void 0!==M[e]?"local":t?"default":void 0;return a?[e,r,a]:[e,r]}),[L,V,M]),Y=(0,m.useMemo)(()=>({devPanelSettings:P({position:o,theme:u},a,"Dev Panel Settings"),pageOverrides:P(["default","wide","custom","center","frame","assistant"],a,"Page Overrides"),customCss:P(U,a,"Custom CSS"),searchData:P(b,a,"Search Data"),deploymentMetadata:P(C,a,"Deployment Metadata"),docsConfig:P(Z,a,"Docs Config"),docsNavWithMetadata:P(E,a,"Docs Nav With Metadata"),pageMetadata:P(D,a,"Page Metadata"),featureFlags:P(X,a,"Feature Flags"),apiReferenceData:P(G,a,"Api Reference Data"),apiPlaygroundInputs:P(B,a,"Api Playground Inputs"),actions:P(["chaos string","fireworks"],a,"Actions")}),[B,G,U,a,C,Z,E,X,D,o,b,u]),ei=A(a),el=e=>ei?e:void 0;if((0,m.useEffect)(()=>{let e=e=>{e.shiftKey&&e.ctrlKey&&e.metaKey&&"m"===e.key.toLowerCase()&&("true"===(0,Q.getItem)(eA)?((0,Q.setItem)(eA,"false"),l(!1)):((0,Q.setItem)(eA,"true"),l(!0)))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[s]),"true"!==(0,Q.getItem)(eA))return null;let ed=document.documentElement.classList.contains("dark");return(0,t.jsxs)(J,{theme:u,toggleSheet:()=>l(!s),isOpen:s,currentPosition:y,buttonRef:g,onPointerDown:h,isButtonPositioned:f,children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("label",{htmlFor:"dev-panel-search",className:"sr-only",children:"Search dev panel"}),(0,t.jsx)(er,{"aria-hidden":"true",className:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-gray-400 dark:text-gray-500",strokeWidth:2}),(0,t.jsx)("input",{ref:n,id:"dev-panel-search",type:"text",role:"searchbox",value:e,onChange:e=>r(e.target.value),placeholder:"Search dev panel",className:"w-full rounded-lg border border-gray-200 bg-white py-2 pl-8 pr-8 font-mono text-xs text-gray-900 outline-hidden transition-colors placeholder:text-gray-400 focus:border-primary dark:border-gray-700 dark:bg-gray-900 dark:text-gray-100 dark:placeholder:text-gray-500 dark:focus:border-primary-light"}),e&&(0,t.jsx)("button",{type:"button",onClick:()=>{r(""),n.current?.focus()},"aria-label":"Clear search",className:"absolute right-2 top-1/2 flex size-5 -translate-y-1/2 items-center justify-center rounded text-gray-400 transition-colors hover:text-gray-600 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary dark:text-gray-500 dark:hover:text-gray-300 dark:focus-visible:ring-primary-light",children:(0,t.jsx)(K.XmarkIcon,{"aria-hidden":"true",className:"size-3.5",strokeWidth:2})})]}),(0,t.jsxs)("div",{className:"font-mono text-xs text-gray-400 dark:text-gray-500",children:[w.NEXT_PUBLIC.IS_LOCAL_CLIENT&&"LOCAL ","v",k]}),(0,t.jsxs)(S,{title:"Dev Panel Settings",defaultOpen:!0,expanded:el(Y.devPanelSettings.matches),children:[(0,t.jsx)(q,{toggleTheme:()=>(e=>{eZ=e,x(e)})("dark"===u?"light":"dark"),docsAreDarkMode:ed}),(0,t.jsx)($,{position:o,setPosition:e=>{eD=e,c(e)}})]}),(0,t.jsx)(S,{title:"Page Overrides",defaultOpen:!0,expanded:el(Y.pageOverrides.matches),children:(0,t.jsx)(W,{})}),(0,t.jsx)(S,{title:"Custom CSS",defaultOpen:!1,sectionClassName:"px-0 py-0 overflow-hidden",expanded:el(Y.customCss.matches),children:(0,t.jsx)(eC,{cssFiles:z,onToggleFile:O,searchQuery:a})}),(0,t.jsx)(S,{title:"Search Data",defaultOpen:!1,expanded:el(Y.searchData.matches),children:(0,t.jsx)(F,{data:b,theme:u,matchingContainers:Y.searchData.matchingContainers})}),(0,t.jsx)(S,{title:"Deployment Metadata",defaultOpen:!1,copyText:JSON.stringify(C),expanded:el(Y.deploymentMetadata.matches),children:(0,t.jsx)(F,{data:C,theme:u,matchingContainers:Y.deploymentMetadata.matchingContainers})}),(0,t.jsx)(S,{title:"Docs Config",defaultOpen:!1,copyText:JSON.stringify(N.docsConfig),expanded:el(Y.docsConfig.matches),children:(0,t.jsx)(F,{data:Z,theme:u,matchingContainers:Y.docsConfig.matchingContainers})}),(0,t.jsx)(S,{title:"Docs Nav With Metadata",defaultOpen:!1,copyText:JSON.stringify(N.docsNavWithMetadata),expanded:el(Y.docsNavWithMetadata.matches),children:(0,t.jsx)(F,{data:E,theme:u,matchingContainers:Y.docsNavWithMetadata.matchingContainers})}),(0,t.jsx)(S,{title:"Page Metadata",defaultOpen:!1,expanded:el(Y.pageMetadata.matches),children:(0,t.jsx)(F,{data:D,theme:u,matchingContainers:Y.pageMetadata.matchingContainers})}),(0,t.jsx)(S,{title:"Feature Flags",defaultOpen:!1,expanded:el(Y.featureFlags.matches),children:(0,t.jsx)(_,{readOnly:!0})}),v.IS_DEV&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(S,{title:"Api Reference Data",defaultOpen:!1,expanded:el(Y.apiReferenceData.matches),children:[I.originalFileLocation&&(0,t.jsxs)("div",{className:"text-xs font-mono text-gray-500 dark:text-gray-400",children:["originalFileLocation:"," ",(0,t.jsx)(ep,{text:I.originalFileLocation})]}),(0,t.jsx)(F,{data:R,theme:u,matchingContainers:Y.apiReferenceData.matchingContainers})]}),(0,t.jsxs)(S,{title:"Api Playground Inputs",defaultOpen:!1,expanded:el(Y.apiPlaygroundInputs.matches),children:[(0,t.jsx)("div",{className:"text-xs font-semibold text-gray-900 dark:text-gray-100",children:"flattened"}),(0,t.jsx)(F,{data:H,theme:u,matchingContainers:Y.apiPlaygroundInputs.matchingContainers}),(0,t.jsx)("div",{className:"text-xs font-semibold text-gray-900 dark:text-gray-100",children:"unflattened"}),(0,t.jsx)(F,{data:T,theme:u,matchingContainers:Y.apiPlaygroundInputs.matchingContainers})]}),(0,t.jsx)(S,{title:"Feature Flags",defaultOpen:!1,expanded:el(Y.featureFlags.matches),children:(0,t.jsx)(_,{})}),(0,t.jsxs)(S,{title:"Actions",defaultOpen:!1,expanded:el(Y.actions.matches),children:[(0,t.jsx)(eh,{}),(0,t.jsx)(eH,{})]})]})]})},ez=["ArrowUp","ArrowUp","ArrowDown","ArrowDown","ArrowLeft","ArrowRight","ArrowLeft","ArrowRight","b","a"],eF=()=>{let{disableKonamiCode:e}=(0,m.useContext)(p.DeploymentMetadataContext),{launch:t,canvas:r}=eI(),a=(0,m.useRef)(0);return((0,m.useEffect)(()=>{if(e)return;let r=e=>{if(e.metaKey||e.ctrlKey||e.altKey||(e=>e instanceof HTMLElement&&(e.isContentEditable||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName))(e.target)){a.current=0;return}let r=1===e.key.length?e.key.toLowerCase():e.key;if(r!==ez[a.current]){a.current=+(r===ez[0]);return}a.current+=1,!(a.currentwindow.removeEventListener("keydown",r)},[t,e]),e)?null:r};var e_=e.i(196151),eO=e.i(917180);function eR(e){let{mdxSource:r,mdxSourceWithNoJs:a=r,forceIsLoading:n}=e,{pageMetadata:s}=(0,m.useContext)(p.PageContext),{userInfo:i}=(0,m.useContext)(p.AuthContext),{resolvedTheme:l}=(0,b.useTheme)(),o=(0,f.useCodeBlockThemeEnum)();return(({containJsCode:e})=>{(0,m.useEffect)(()=>{if(!e)return;let t=setTimeout(()=>{if("smooth"===getComputedStyle(document.documentElement).scrollBehavior)return;let e=window.location.hash;if(e){let t=document.getElementById(e.slice(1));t&&t.scrollIntoView({behavior:"instant",block:"start"})}});return()=>clearTimeout(t)},[e])})({containJsCode:r.compiledSource!==a.compiledSource}),(0,y.useIsomorphicLayoutEffect)(()=>{"dark"===o||"dark"===l?document.documentElement.classList.add("twoslash-dark"):document.documentElement.classList.remove("twoslash-dark")},[l]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(e_.default,{children:(0,t.jsx)(eO.MdxContent,{mdxSource:r,mdxSourceWithNoJs:a,pageMetadata:s,userInfo:i,forceIsLoading:n})}),(0,t.jsx)(eE,{}),(0,t.jsx)(eF,{}),(0,t.jsx)(h,{})]})}}]);