(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,45082,821200,287525,e=>{"use strict";e.s([],45082),e.s(["default",()=>l],821200);var t=e.i(843476),r=e.i(857866),n=e.i(476781),i=e.i(568258),a=e.i(296548);function l({title:e,isActive:l=!0,icon:o,iconType:s,children:d}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:(0,a.cn)("flex text-sm items-center gap-1.5 leading-6 font-semibold whitespace-nowrap pt-3 pb-2.5 -mb-px max-w-max border-b",l?"text-primary dark:text-primary-light border-current":"text-gray-900 border-transparent hover:border-gray-300 dark:text-gray-200 dark:hover:border-gray-700"),"data-component-part":"tab-button","data-active":l,"data-testid":`tab-${(0,r.getTitleText)(e)}`,children:[o&&(0,t.jsx)(i.ComponentIcon,{icon:o,iconType:s,className:(0,a.cn)("h-4 w-4 shrink-0",l?"bg-primary dark:bg-primary-light":"bg-gray-900 dark:bg-gray-200",n.Classes.TabIcon),overrideColor:!0})," ",e]}),d?(0,t.jsx)("div",{className:"prose dark:prose-invert","data-component-part":"tab-content",children:d}):null]})}e.s(["default",()=>y],287525);var o=e.i(895849),s=e.i(75048),d=e.i(271645),u=e.i(807898),c=e.i(599182),p=e.i(319129),m=e.i(866285);let f="Tab Title",h=e=>d.Children.toArray(e).flatMap(e=>(0,d.isValidElement)(e)&&e.type===d.Fragment?h(e.props.children):[e]),g=e=>(0,d.isValidElement)(e)?"string"==typeof e.type?`<${e.type}>`:"A component child":`Text ("${String(e).trim().slice(0,40)}")`;function y({children:e,defaultTabIndex:i=0,onClickTab:y,className:x,borderBottom:b,sync:v=!0}){let w=(0,d.useRef)(null),C=(0,d.useRef)(null),k=(0,d.useRef)([]),{tabChildren:E,skippedChildren:T}=(0,d.useMemo)(()=>{let t=[],r=[];for(let n of h(e))(0,d.isValidElement)(n)&&n.type===l?t.push(n):r.push(g(n));return{tabChildren:t,skippedChildren:r}},[e]),I=(0,d.useRef)("");(0,d.useEffect)(()=>{let e=T.join("\n");if(I.current!==e)for(let t of(I.current=e,T))console.warn(`${t} cannot be a child of and was skipped.`)},[T]);let j=(0,d.useMemo)(()=>(e=>{let t=(0,m.slugifyWithCounter)();return e.map(e=>{if(e.props?.id)return e.props.id;let n=(0,r.getTitleText)(e.props?.title)||f;return(0,p.slugify)(n,t)})})(E),[E]),_=(0,d.useMemo)(()=>E.map(e=>(0,r.getTitleText)(e.props.title)),[E]),S=Math.min(Math.max(i,0),Math.max(E.length-1,0)),N=(0,d.useCallback)(e=>{if(!C.current)return null;let t=CSS.escape(e),r=C.current.querySelector(`#${t}`);if(!r)return null;let n=C.current.children;for(let e=0;e{if(P.current)return;let e=window.location.hash.substring(1);if(!e)return;P.current=!0;let t=setTimeout(()=>{("smooth"!==getComputedStyle(document.documentElement).scrollBehavior||"complete"===document.readyState)&&(0,o.scrollElementIntoView)({shouldReturnEarly:!!D?.current,element:document.getElementById(e),postScrollCallback(){D&&(D.current=!0)}})},10);return()=>{clearTimeout(t)}},[D]),(0,d.useEffect)(()=>{let e=null,t=()=>{let t=window.location.hash.substring(1);t&&(e=setTimeout(()=>{(0,o.scrollElementIntoView)({shouldReturnEarly:!!D?.current,element:document.getElementById(t),postScrollCallback(){D&&(D.current=!0)}})},10))};return window.addEventListener("hashchange",t),()=>{window.removeEventListener("hashchange",t),null!==e&&clearTimeout(e)}},[D]),(0,d.useEffect)(()=>{E.length>0&&L>E.length-1&&M({index:E.length-1,updateHash:!1,updateSync:!1,updatePersist:!1})},[E.length,L,M]);let A=(0,d.useRef)(null);(0,d.useEffect)(()=>{let e=A.current,t=w.current;if(A.current=null,null===e||!t)return;let r=requestAnimationFrame(()=>{let r=t.getBoundingClientRect().top-e;r&&((e,t)=>{let r={top:t,behavior:"instant"};e?e.scrollBy(r):window.scrollBy(r)})((e=>{for(let t=e;t&&t!==document.body;t=t.parentElement){let{overflowY:e}=getComputedStyle(t);if(("auto"===e||"scroll"===e)&&t.scrollHeight>t.clientHeight)return t}return null})(t.parentElement),r)});return()=>cancelAnimationFrame(r)},[L]);let O=(0,d.useCallback)((e,t=!0)=>{e!==L&&(A.current=w.current?.getBoundingClientRect().top??null,M({index:e,updateHash:t,updatePersist:!1}))},[L,M]);return(0,t.jsxs)("div",{className:(0,a.cn)(n.Classes.Tabs,"tabs tab-container",b&&"border-b border-gray-200 dark:border-gray-200/10 pb-6"),children:[(0,t.jsx)("ul",{ref:w,role:"tablist",className:(0,a.cn)("not-prose mb-6 pb-[1px] flex-none min-w-full overflow-auto border-b border-gray-200 gap-x-6 flex dark:border-gray-200/10",x),"data-component-part":"tabs-list",children:E.map((e,r)=>(0,t.jsx)("li",{ref:e=>{k.current[r]=e},id:j[r],role:"tab","aria-selected":r===L,"aria-controls":`panel-${j[r]}-${r}`,tabIndex:r===L?0:-1,className:"cursor-pointer",onClick:e=>{e.stopPropagation(),O(r,e.isTrusted)},onKeyDown:e=>{if(!e.ctrlKey&&!e.metaKey&&!e.altKey){if("ArrowLeft"===e.key||"ArrowRight"===e.key||"Home"===e.key||"End"===e.key){e.preventDefault();let t="ArrowLeft"===e.key?(r-1+E.length)%E.length:"ArrowRight"===e.key?(r+1)%E.length:"Home"===e.key?0:E.length-1;O(t),setTimeout(()=>{k.current[t]?.focus()},0);return}("Enter"===e.key||" "===e.key)&&(e.preventDefault(),O(r))}},"data-child-tab-ids":e.props?.[c.CHILD_TAB_IDS_ATTRIBUTE],"data-child-heading-ids":e.props?.[c.CHILD_HEADING_IDS_ATTRIBUTE],children:(0,t.jsx)(l,{title:e.props?.title??f,icon:e.props?.icon,iconType:e.props?.iconType,isActive:r===L})},`${j[r]}-${r}`))}),(0,t.jsx)("div",{ref:C,children:E.map((e,r)=>(0,t.jsx)("div",{id:`panel-${j[r]}-${r}`,role:"tabpanel","aria-labelledby":j[r],tabIndex:0,className:(0,a.cn)('prose dark:prose-invert overflow-x-auto [&_[data-table-wrapper]]:![--page-padding:0px] [&_[role="listitem"]]:pl-4',"[&>:first-child:not(p)]:mt-0 [&>:first-child:not(p)_img]:mt-0 [&>:first-child[data-table-wrapper]]:pt-0!",e.props?.className,r!==L&&"hidden"),"data-component-part":"tab-content",children:e.props?.children},`${j[r]}-${r}`))})]})}},25871,e=>{"use strict";e.s(["Tab",()=>t.default]);var t=e.i(821200)},963899,e=>{"use strict";e.s(["Tabs",()=>t.default]);var t=e.i(287525)},196151,e=>{"use strict";e.s(["default",()=>n]);var t=e.i(271645);class r extends t.default.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.log({error:e,errorInfo:t})}render(){return this.state.hasError?null:this.props.children}}let n=r},163061,e=>{"use strict";e.s(["LinkIcon",()=>t]);let t=(0,e.i(930733).default)("LinkIcon",[["path",{d:"M8.50001 6.827C8.14801 6.995 7.81801 7.225 7.52701 7.517L7.51701 7.527C6.13601 8.908 6.13601 11.146 7.51701 12.527L9.69201 14.702C11.073 16.083 13.311 16.083 14.692 14.702L14.702 14.692C16.083 13.311 16.083 11.073 14.702 9.692L13.771 8.761",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M9.50002 11.173C9.85202 11.005 10.182 10.775 10.473 10.483L10.483 10.473C11.864 9.092 11.864 6.854 10.483 5.473L8.30802 3.298C6.92702 1.917 4.68902 1.917 3.30802 3.298L3.29802 3.308C1.91702 4.689 1.91702 6.927 3.29802 8.308L4.22902 9.239",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined")},685891,337435,573119,e=>{"use strict";e.s(["OptionDropdown",()=>o],685891);var t=e.i(843476),r=e.i(343590),n=e.i(476781),i=e.i(568258),a=e.i(296548),l=e.i(271645);let o=({options:e,selectedIndex:o,onSelectOption:s,noBackground:d})=>{let u=(0,r.useSelectedLocale)(),c=(0,l.useId)(),p=`opt-dd-${c.replace(/:/g,"")}`,m=e.map((e,t)=>`#${p}:has(option[value="${t}"]:checked) ~ [data-idx="${t}"] { display: flex; }`).join("\n");return(0,t.jsx)("div",{className:(0,a.cn)(n.Classes.OptionDropdown,"inline-flex relative mr-0!"),children:(0,t.jsxs)("div",{className:(0,a.cn)("font-mono text-xs font-medium inline-block! leading-4! items-center rounded-md [&>div]:ml-1.5 text-gray-600 dark:text-gray-200 py-0.5",!d&&"bg-gray-100/50 dark:bg-white/5"),children:[(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:m}}),(0,t.jsxs)("div",{className:"group relative inline-flex!",children:[(0,t.jsx)("select",{id:p,"aria-label":u["aria.selectSchemaType"],className:"absolute inset-0 w-full h-full flex opacity-0 cursor-pointer focus:outline-0",onChange:e=>s?.(e.target.selectedIndex),value:o,children:e.map((e,r)=>(0,t.jsx)("option",{value:r,children:e},r))}),e.map((e,r)=>(0,t.jsx)("span",{"data-idx":r,"aria-hidden":"true",className:"hidden bg-transparent text-right pl-0.5 pr-8 group-hover:text-gray-950 dark:group-hover:text-white group-focus-within:text-gray-950 dark:group-focus-within:text-white overflow-wrap-anywhere max-w-96",children:e},r))]}),(0,t.jsx)(i.default,{icon:"angle-down",iconType:"solid",className:"absolute top-1/2 -translate-y-1/2 right-4 h-2.5 w-2.5 shrink-0 bg-gray-500 dark:bg-gray-400 pointer-events-none"})]})})};e.s(["removeParamFieldDefault",()=>c,"setParamFieldDefault",()=>u],337435);let s={query:{},path:{},header:{},body:{},cookie:{}},d={query:{},path:{},header:{},body:{},cookie:{}};function u(e,t,r){s[e][t]=r,d[e][t]=(d[e][t]??0)+1}function c(e,t){let r=(d[e][t]??0)-1;if(r>0){d[e][t]=r;return}delete d[e][t],delete s[e][t]}e.s(["parseDefaultByType",()=>p],573119);let p=(e,t)=>{if(void 0===t||!e)return t;let r=e.toLowerCase();if(r.endsWith("[]")){let e=r.slice(0,-2),n=t=>p(e,t);try{let e=JSON.parse(t);if(Array.isArray(e))return e.map(e=>n(String(e)))}catch{}return t.split(",").map(e=>n(e.trim()))}switch(r){case"number":case"integer":{let e=Number(t);return Number.isNaN(e)?t:e}case"bool":case"boolean":if("true"===t.toLowerCase())return!0;if("false"===t.toLowerCase())return!1;return t;case"object":try{return JSON.parse(t)}catch{return t}default:return t}}},786475,e=>{"use strict";e.s(["DeprecatedPill",()=>g,"GenericParam",()=>b,"InfoPill",()=>f,"ParamField",()=>y,"RequiredPill",()=>h]);var t=e.i(843476),r=e.i(685891),n=e.i(343590),i=e.i(476781),a=e.i(337435),l=e.i(573119),o=e.i(193726),s=e.i(895849),d=e.i(819701),u=e.i(75048),c=e.i(163061),p=e.i(296548),m=e.i(271645);function f({children:e,prefix:r,className:n}){return(0,t.jsxs)("div",{className:(0,p.cn)("flex items-center gap-1 rounded-md bg-stone-100/50 px-2 py-0.5 font-medium text-stone-600 dark:bg-white/5 dark:text-stone-200 break-all",n),"data-component-part":"field-info-pill",children:[r&&(0,t.jsx)("span",{className:"text-stone-400 dark:text-stone-500",children:r}),(0,t.jsx)("span",{children:e})]})}function h(){let e=(0,n.useSelectedLocale)();return(0,t.jsx)("div",{className:"px-2 py-0.5 rounded-md bg-red-100/50 dark:bg-red-400/10 text-red-600 dark:text-red-300 font-medium whitespace-nowrap","data-component-part":"field-required-pill",children:e["api.required"]})}function g(){let e=(0,n.useSelectedLocale)();return(0,t.jsx)("div",{className:"px-2 py-0.5 rounded-md bg-amber-100/50 dark:bg-amber-400/10 text-amber-700 dark:text-amber-300 font-medium whitespace-nowrap","data-component-part":"field-deprecated-pill",children:e["api.deprecated"]})}function y({query:e,path:r,body:n,header:i,children:o,default:s,type:d,location:u,required:c=!1,deprecated:p=!1,hidden:f=!1,id:h,pre:g,post:y,className:x}){let v=e||r||n||i;return((0,m.useEffect)(()=>{if(!v||void 0===s)return;let t=e?"query":r?"path":n?"body":i?"header":void 0;if(!t)return;let o=(0,l.parseDefaultByType)(d,"string"==typeof s?s:JSON.stringify(s));return(0,a.setParamFieldDefault)(t,v,o),()=>{(0,a.removeParamFieldDefault)(t,v)}},[v,s,d,e,r,n,i]),null==v)?null:(0,t.jsx)(b,{name:v,defaultValue:s,type:d,location:u,required:c,deprecated:p,hidden:f,id:h,pre:g,post:y,className:x,children:o})}function x({name:e,typeLabel:i,location:a,required:l,deprecated:y,fieldType:x,defaultValue:b,typeOptions:v,selectedTypeOptionIndex:w,onSelectTypeOption:C,parentName:k,id:E,pre:T,post:I,style:j}){let{hasScrolledToAnchorRef:_}=(0,m.useContext)(u.EndpointLocationContext),S=(0,n.useSelectedLocale)(),N=(0,m.useRef)(null),[L,M]=(0,m.useState)(!1),[D,P]=(0,m.useState)(!1),A=(0,m.useRef)(null),O=E??(0,d.buildRecursiveParamFieldId)(x,e,k);(0,m.useEffect)(()=>()=>{A.current&&clearTimeout(A.current)},[]);let R=(0,m.useCallback)(()=>{if(!O)return;let e=window.location.href.split("#")[0]+"#"+O;window.location.hash=O,(0,o.copyToClipboard)(e).then(e=>{"success"===e&&(P(!0),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{P(!1)},2e3))})},[O]);(0,m.useEffect)(()=>{let e=N.current;if(!e)return;function t(){M((e?.offsetHeight??0)>28)}t();let r=new ResizeObserver(t);return r.observe(e),()=>{r.unobserve(e)}},[]),(0,m.useEffect)(()=>{(0,s.scrollElementIntoView)({id:O,shouldReturnEarly:!!_?.current||!O||!!k,checkIfShouldScroll:(e,t)=>t===O,preScrollCallback(){_&&(_.current=!0)}})},[_,O,k]);let F=k?"deepObject"===j?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-gray-500 dark:text-gray-400",children:k}),e,(0,t.jsx)("span",{className:"text-gray-500 dark:text-gray-400",children:"]"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-gray-500 dark:text-gray-400",children:k}),e]}):e;return null==e?null:(0,t.jsx)("div",{className:(0,p.cn)("flex font-mono text-sm group/param-head param-head break-all relative"),id:O,children:(0,t.jsx)("div",{className:"flex-1 flex flex-col content-start py-0.5 mr-5",children:(0,t.jsxs)("div",{className:"flex items-center flex-wrap gap-2",children:[O&&(0,t.jsxs)("div",{className:"absolute -top-1.5",children:[(0,t.jsxs)("a",{href:`#${O}`,className:(0,p.cn)(k?"ml-[-2.1rem]":"-ml-10","flex items-center opacity-0 border-0 group-hover/param-head:opacity-100 focus:opacity-100 focus:outline-0 py-2 [.expandable-content_&]:ml-[-2.1rem] group/link"),"aria-label":`${S["aria.navigateToHeader"]}: ${e}`,onClick:R,children:["​",(0,t.jsx)("div",{className:"size-6 rounded-md flex items-center justify-center shadow-xs text-gray-400 dark:text-white/50 dark:bg-background-dark dark:brightness-[1.35] dark:ring-1 dark:hover:brightness-150 bg-white ring-1 ring-gray-400/30 dark:ring-gray-700/25 hover:ring-gray-400/60 dark:hover:ring-white/20 group-focus/link:border-2 group-focus/link:border-primary dark:group-focus/link:border-primary-light",children:(0,t.jsx)(c.LinkIcon,{"aria-hidden":"true",className:"size-3 shrink-0",strokeWidth:2})})]}),(0,t.jsx)("span",{role:"status",className:"sr-only",children:D?S.copied:""})]}),T?.map((e,r)=>(0,t.jsx)("div",{className:"px-2 py-0.5 rounded-md bg-gray-100/50 dark:bg-white/5 text-gray-600 dark:text-gray-200","data-component-part":"field-meta-pre",children:e},r)),(k||e)&&(0,t.jsx)("button",{type:"button",className:"font-semibold text-primary dark:text-primary-light cursor-pointer overflow-wrap-anywhere text-left","data-component-part":"field-name",onClick:R,children:F}),(0,t.jsxs)("div",{ref:N,className:(0,p.cn)("inline items-center gap-2 text-xs font-medium [&_div]:inline [&_div]:mr-2",L?"[&_div]:leading-6":"[&_div]:leading-5"),"data-component-part":"field-meta",children:[v&&v.length>1&&C?(0,t.jsx)(r.OptionDropdown,{options:v,selectedIndex:w,onSelectOption:C}):i&&(0,t.jsx)(f,{children:i}),a&&(0,t.jsx)(f,{children:a}),null!=b&&(0,t.jsx)(f,{prefix:S["api.default"],children:"string"==typeof b?""===b?'""':b:JSON.stringify(b)}),l&&(0,t.jsx)(h,{}),y&&(0,t.jsx)(g,{}),I?.map((e,r)=>(0,t.jsx)("div",{className:"px-2 py-0.5 rounded-md bg-gray-100/50 dark:bg-white/5 text-gray-600 dark:text-gray-200","data-component-part":"field-meta-post",children:e},r))]})]})})},O)}function b({name:e,type:r,location:n,defaultValue:a,required:l=!1,deprecated:o=!1,hidden:s=!1,id:d,pre:u,post:c,children:f,className:h}){let g=(0,m.useMemo)(()=>{if("object"==typeof a&&null!=a&&Object.values(a).some(e=>"object"==typeof e))return null;let e=JSON.stringify(a);return e&&e.length>0&&e.length<50?e:null},[a]);return s?null:(0,t.jsxs)("div",{className:(0,p.cn)(i.Classes.Field,"pt-2.5 pb-5 my-2.5 border-gray-50 dark:border-gray-800/50 border-b",h),children:[(0,t.jsx)(x,{name:e,typeLabel:r,location:n,required:l,deprecated:o,defaultValue:g,id:d,pre:u,post:c}),f&&(0,t.jsx)("div",{className:"mt-4 prose-sm prose-gray dark:prose-invert [&_.prose>p:first-child]:mt-0 [&_.prose>p:last-child]:mb-0","data-component-part":"field-content",children:f})]})}},491066,e=>{"use strict";e.s(["useHasMdxCodeExample",()=>n,"useMdxCodeExampleData",()=>r]);var t=e.i(693619);let r=e=>{let[{codeExamples:r}]=(0,t.useMDXContent)();return r[e]},n=()=>{let[{codeExamples:e}]=(0,t.useMDXContent)();return!!e.request||!!e.response}},590803,e=>{"use strict";function t(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}e.s(["isElementDisabled",()=>t])},652853,552439,e=>{"use strict";e.s(["TRIAL_ENTITLEMENTS",()=>o,"checkAccess",()=>s],652853),e.s(["DAY_IN_MILLISECONDS",()=>i,"HOUR_IN_MILLISECONDS",()=>n,"MINUTE_IN_MILLISECONDS",()=>r,"SECOND_IN_MILLISECONDS",()=>t,"TWO_WEEKS_IN_MILLISECONDS",()=>a,"isOrgLessThanTwoWeeksOld",()=>l],552439);let t=1e3,r=6e4,n=36e5,i=864e5,a=12096e5;function l(e){return!!e&&Date.now()-new Date(e).getTime(){"use strict";e.s(["visit",()=>d],784801),e.s(["CONTINUE",()=>a,"EXIT",()=>l,"SKIP",()=>o,"visitParents",()=>s],733644),e.s(["convert",()=>t],457579);let t=function(e){var i,a;if(null==e)return n;if("function"==typeof e)return r(e);if("object"==typeof e){return Array.isArray(e)?function(e){let n=[],i=-1;for(;++i":"")+")"})}return f;function f(){var m;let f,h,g,y=i;if((!r||u(t,d,p[p.length-1]||void 0))&&(y=Array.isArray(m=n(t,p))?m:"number"==typeof m?[a,m]:null==m?i:[m])[0]===l)return y;if("children"in t&&t.children&&t.children&&y[0]!==o)for(h=(s?t.children.length:-1)+c,g=p.concat(t);h>-1&&h{"use strict";e.s(["useCodeBlockThemeEnum",()=>a,"useCodeBlockThemeObject",()=>l]);var t=e.i(91557),r=e.i(590280),n=e.i(951378),i=e.i(271645);let a=()=>{let{isLivePreview:e,getDocsConfigOverrides:a,livePreviewUpdateId:l}=(0,i.useContext)(r.LivePreviewContext),{docsConfig:o}=(0,i.useContext)(t.DocsConfigContext);return(0,i.useMemo)(()=>{let t=a(),r=t?.styling?.codeblocks,i=e&&r?r:o?.styling?.codeblocks;return(0,n.getCodeStylingEnum)(i)},[e,a,l,o])},l=()=>{let{isLivePreview:e,getDocsConfigOverrides:n,livePreviewUpdateId:a}=(0,i.useContext)(r.LivePreviewContext),{docsConfig:l}=(0,i.useContext)(t.DocsConfigContext);return(0,i.useMemo)(()=>{let t=n(),r=t?.styling?.codeblocks;return e&&r?r:l?.styling?.codeblocks},[e,n,a,l])}},193726,e=>{"use strict";async function t(e){e||console.warn("Called copyToClipboard() with empty text");try{return await navigator.clipboard.writeText(e),"success"}catch(e){return console.error("Failed to copy: ",e),"error"}}e.s(["copyToClipboard",()=>t])},769728,e=>{"use strict";e.s(["useIsomorphicLayoutEffect",()=>t]);let t=e.i(271645).useLayoutEffect},650809,e=>{"use strict";e.s(["useGetShikiHighlightedHtml",()=>i]);var t=e.i(769728),r=e.i(271645),n=e.i(615824);function i(e){let i=(0,n.getShikiHighlightedHtml)(e),[a,l]=(0,r.useState)(i instanceof Promise?void 0:i);return(0,t.useIsomorphicLayoutEffect)(()=>{if(void 0===a)return(0,n.onShikiSettled)(()=>{let t=(0,n.getShikiHighlightedHtml)(e);t instanceof Promise||l(t)})},[e,a]),(0,t.useIsomorphicLayoutEffect)(()=>{if(!(i instanceof Promise))return void l(i);let e=!1;return async function(){if(!(i instanceof Promise))return l(i);try{let t=await i;e||l(t)}catch(t){console.error(t),e||l(void 0)}}(),()=>{e=!0}},[e,i]),a}},45143,e=>{"use strict";e.s(["DropdownMenu",()=>a,"DropdownMenuContent",()=>o,"DropdownMenuItem",()=>s,"DropdownMenuTrigger",()=>l]);var t=e.i(843476),r=e.i(451512),n=e.i(628083),i=e.i(296548);let a=e=>(0,t.jsx)(r.Menu.Root,{modal:!1,...e}),l=({className:e,children:n,...a})=>(0,t.jsx)(r.Menu.Trigger,{className:(0,i.cn)("group disabled:pointer-events-none [&>span]:line-clamp-1 rounded-lg overflow-hidden group focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-primary dark:focus-visible:outline-primary-light","flex items-center py-0.5 gap-1 text-sm text-gray-950/50 dark:text-white/50 group-hover:text-gray-950/70 dark:group-hover:text-white/70",e),...a,children:n}),o=({align:e="start",side:n="bottom",sideOffset:a=4,alignOffset:l,collisionAvoidance:o,className:s,...d})=>(0,t.jsx)(r.Menu.Portal,{children:(0,t.jsx)(r.Menu.Positioner,{className:"z-50 data-anchor-hidden:invisible",align:e,alignOffset:l,collisionAvoidance:o,collisionPadding:16,side:n,sideOffset:a,children:(0,t.jsx)(r.Menu.Popup,{style:{textRendering:"geometricPrecision"},className:(0,i.cn)("origin-(--transform-origin) outline-none 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 max-w-(--available-width) min-w-(--anchor-width) overflow-y-auto rounded-2xl border-standard text-gray-950/70 dark:text-white/70","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",s),...d})})}),s=({className:e,isSelected:a,children:l,...o})=>(0,t.jsxs)(r.Menu.Item,{...void 0!==a&&{role:"menuitemradio","aria-checked":a},"data-active":a||void 0,style:{fontWeight:"normal !important"},className:(0,i.cn)("flex items-center justify-between px-2 py-1 gap-2 text-sm rounded-xl group hover:bg-background-dark/[0.03] dark:hover:bg-background-light/[0.03] focus-visible:bg-background-dark/5 dark:focus-visible:bg-background-light/5 relative w-full cursor-pointer select-none outline-0 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-primary dark:focus-visible:outline-primary-light data-disabled:pointer-events-none data-disabled:cursor-default data-disabled:opacity-50",a?"text-primary dark:text-primary-light font-medium":"text-gray-950/50 dark:text-white/50 hover:text-gray-950/75 dark:hover:text-white/75 focus-visible:text-gray-950/75 dark:focus-visible:text-white/75",e),...o,children:[l,(0,t.jsx)(n.Check2Icon,{"aria-hidden":"true",className:(0,i.cn)("size-3.5 text-primary dark:text-primary-light shrink-0",!a&&"opacity-0"),strokeWidth:2.5})]})},561945,e=>{"use strict";e.s(["ChevronExpandYIcon",()=>t]);let t=(0,e.i(930733).default)("ChevronExpandYIcon",[["path",{d:"M12.5 6.25L9 2.75L5.5 6.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M12.5 11.75L9 15.25L5.5 11.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined")},744198,e=>{"use strict";e.s(["ActiveCodeTabContext",()=>t]);let t=(0,e.i(271645).createContext)(!0)},599182,428558,319129,e=>{"use strict";e.s(["AVOIDED_PAGE_MODES",()=>m,"CHILD_HEADING_IDS_ATTRIBUTE",()=>h,"CHILD_TAB_IDS_ATTRIBUTE",()=>f,"HEADING_LEVELS",()=>p,"generateComponentId",()=>c,"remarkComponentIds",()=>g],599182);var t=e.i(866285),r=e.i(784801);e.s(["cleanHeadingId",()=>s,"safeCleanHeadingId",()=>d,"slugify",()=>u],319129),e.s(["createMdxJsxAttribute",()=>n,"getTableOfContentsTitle",()=>o,"getTitleMarkdownText",()=>i,"getUnicodeId",()=>a],428558);let n=(e,t)=>({type:"mdxJsxAttribute",name:e,value:t});function i(e,t){let r=e.data,n=r&&"mintlifyTitleMarkdown"in r?r.mintlifyTitleMarkdown:void 0;return n&&"object"==typeof n&&"text"in n&&"string"==typeof n.text?n.text:t}function a(e){return encodeURIComponent(e.toLowerCase().trim().replace(/\s+/g,"-"))}let l=[],o=(e,t=1,r=l)=>{var n;if("name"in e&&"Update"===e.name){let t=e.attributes.find(e=>"name"in e&&"label"===e.name&&"string"==typeof e.value);return null!=(n=null==t?void 0:t.value)?n:""}let i=r[t-1],a="text"===e.type,s="inlineCode"===e.type,d=(null==i?void 0:i.type)!=="mdxJsxFlowElement",u=i&&"value"in i&&"string"==typeof i.value&&!i.value.startsWith("{t+=o(e,r,n)}),t}return""},s=e=>decodeURIComponent("string"==typeof e?e.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"):e).replace(/[?,;:!'"()[\]{}]/g,"").replace(/\p{Emoji_Modifier}|\p{Emoji_Modifier_Base}|\p{Emoji_Presentation}|\p{Extended_Pictographic}|[\u200D\uFE0E\uFE0F]/gu,""),d=e=>{try{return s(e)}catch(t){return e}};function u(e,r=(0,t.slugifyWithCounter)()){let n=a(e);return/%[0-9A-F]{2}/.test(n)?r(n,{decamelize:!1,preserveCharacters:["%","_"],lowercase:!1}):r(n,{decamelize:!1,preserveCharacters:["_"]})}function c(e,r){let n=(0,t.default)(e.replace(":","-"),{decamelize:!1});return null!=r&&r>0?`${n}-${r}`:n}let p=[1,2,3,4],m=["custom","frame"],f="data-child-tab-ids",h="data-child-heading-ids",g=e=>a=>{var l;let s=(0,t.slugifyWithCounter)(),d=(0,t.slugifyWithCounter)(),g=m.includes(null!=(l=null==e?void 0:e.mode)?l:"");(0,r.visit)(a,"heading",e=>{if(!g&&p.includes(e.depth)){let t=u(o(e),s),r=[n("level",e.depth),n("id",t)];e.attributes=r,e.type="mdxJsxFlowElement",e.name="Heading"}});let y=new Map,x=new Map,b=new Set;(0,r.visit)(a,"mdxJsxFlowElement",e=>{var t;if("Tab"!==e.name)return;let r=null==(t=e.attributes.find(e=>"name"in e&&"id"===e.name))?void 0:t.value;r&&"string"==typeof r&&b.add(r)});let v=e=>{var t,r,n,a;if("mdxJsxFlowElement"===e.type&&"Tab"===e.name){let n=null==(t=e.attributes.find(e=>"name"in e&&"id"===e.name))?void 0:t.value;if(n&&"string"==typeof n)y.set(e,n);else{let t=null==(r=e.attributes.find(e=>"name"in e&&"title"===e.name))?void 0:r.value;if(t&&"string"==typeof t){let r=i(e,t),n=u(r,d);for(;b.has(n);)n=u(r,d);b.add(n),y.set(e,n)}}}else if("mdxJsxFlowElement"===e.type&&("Heading"===e.name||["h1","h2","h3","h4"].includes(null!=(n=e.name)?n:""))){let t=null==(a=e.attributes.find(e=>"name"in e&&"id"===e.name))?void 0:a.value;t&&"string"==typeof t&&x.set(e,t)}if("children"in e)for(let t of e.children)v(t)},w=e=>{if("mdxJsxFlowElement"===e.type&&"Tab"===e.name){let t=y.get(e);if(t){e.attributes.some(e=>"name"in e&&"id"===e.name)||e.attributes.push(n("id",t));let r=[];for(let t of e.children){let e=C(t,"Tab");r.push(...e)}if(r.length>0)try{e.attributes.push(n(f,JSON.stringify(r)))}catch(e){}let i=C(e,"Heading");if(i.length>0)try{e.attributes.push(n(h,JSON.stringify(i)))}catch(e){}}for(let t of e.children)w(t)}else if("children"in e)for(let t of e.children)w(t)},C=(e,t)=>{let r=[];if("mdxJsxFlowElement"===e.type&&("Tab"===t?"Tab"===e.name:(e=>{var t;return"mdxJsxFlowElement"===e.type&&("Heading"===e.name||["h1","h2","h3","h4"].includes(null!=(t=e.name)?t:""))})(e))){let n="Tab"===t?y.get(e):x.get(e);n&&r.push(n)}else if("children"in e)for(let n of e.children)r.push(...C(n,t));return r};v(a),w(a);let k=new Map;(0,r.visit)(a,"mdxJsxFlowElement",e=>{var t;if("Accordion"!==e.name)return;let r=e.attributes.find(e=>"name"in e&&"title"===e.name);if(!r||"string"!=typeof r.value||!r.value||e.attributes.some(e=>"name"in e&&"id"===e.name))return;let a=i(e,r.value),l=c(a),o=null!=(t=k.get(l))?t:0;k.set(l,o+1),e.attributes.push(n("id",c(a,o)))});let E=new Map;(0,r.visit)(a,"mdxJsxFlowElement",e=>{var t;if("View"!==e.name)return;let r=e.attributes.find(e=>"name"in e&&"title"===e.name);if(!r||"string"!=typeof r.value||!r.value||e.attributes.some(e=>"name"in e&&"id"===e.name))return;let i=r.value,a=c(i),l=null!=(t=E.get(a))?t:0;E.set(a,l+1),e.attributes.push(n("id",c(i,l)))})}},693619,607071,913919,e=>{"use strict";e.s(["useMDXContent",()=>x],693619),e.s(["MDXContentContext",()=>h,"MDXContentProvider",()=>y],913919);var t=e.i(843476),r=e.i(803333);function n(e){let t=e.replace(/^\?/,"").split("&").find(e=>"tags"===e.split("=",1)[0]);if(void 0===t)return;let r=t.indexOf("="),n=-1===r?"":t.slice(r+1),i=new Set;for(let e of n.split(",")){let t=new URLSearchParams(`tag=${e}`).get("tag")?.trim();t&&i.add(t)}return i}function i(e,t){let r=new URLSearchParams(e);r.delete("tags");let n=r.toString()?[r.toString()]:[];if(t.length>0){let e=t.map(e=>new URLSearchParams({tag:e}).toString().slice(4));n.push(`tags=${e.join(",")}`)}return n.join("&")}e.s(["buildChangelogFilterQueryString",()=>i,"parseChangelogFilterTags",()=>n],607071);var a=e.i(42143),l=e.i(599182),o=e.i(898892),s=e.i(618566),d=e.i(271645),u=e.i(91557),c=e.i(590280);let p={headings:[],apiBaseIndex:0,codeExamples:{},pageMetadata:{},selectedBodyContentType:void 0,selectedResponseContentType:void 0,tableOfContents:[],changelogFilters:[],multiViewItems:[]},m={changelogFilters:p.changelogFilters,codeExamples:p.codeExamples,endpoint:void 0,multiViewItems:p.multiViewItems,tableOfContents:p.tableOfContents},f=(e,t)=>{switch(t.type){case"set_state":return{...e,...t.payload};case"register_heading":let{id:r,top:n}=t.payload;return{...e,headings:[...e.headings.filter(e=>r!==e.id),{id:r,top:n}]};case"unregister_heading":return{...e,headings:e.headings.filter(e=>t.payload!==e.id)};case"set_selected_body_content_type":return{...e,selectedBodyContentType:t.payload};case"set_selected_response_content_type":return{...e,selectedResponseContentType:t.payload};case"set_api_base_index":return{...e,apiBaseIndex:t.payload};case"toggle_multi_view_change":{let r=e.multiViewItems.map(e=>({...e,active:e.title===t.payload.title}));return{...e,multiViewItems:r}}}},h=(0,d.createContext)([p,()=>null]);function g(){let e=(0,s.useSearchParams)()?.toString()??"",[{changelogFilters:t},r]=(0,d.useContext)(h);return(0,d.useLayoutEffect)(()=>{if(0===t.length)return;let e=n(window.location.search)??new Set,i=t.map(t=>({...t,active:e.has(t.tag)}));i.some((e,r)=>!!t[r]?.active!==e.active)&&r({type:"set_state",payload:{changelogFilters:i}})},[t,r,e]),null}function y({children:e}){let n=function(){let{pageMetadata:e,mdxExtracts:t}=(0,d.useContext)(u.PageContext),{basePath:n="",isLivePreview:i,liveMetadata:s,liveMdxExtracts:h,livePreviewUpdateId:g}=(0,d.useContext)(c.LivePreviewContext),y=(0,r.useCurrentPath)(),x=(0,d.useMemo)(()=>{if(!i||!y)return e;let t=(0,a.normalizeLivePreviewPath)(y,n),r=s.get(t);return r?{...e,...r}:e},[n,y,i,e,s,g]),b=(0,d.useMemo)(()=>{if(!i||!y)return t;let e=(0,a.normalizeLivePreviewPath)(y,n),r=h.get(e);return r||t},[n,y,i,t,h,g]),v=Object.keys(b?.endpoint?.request.body??{})[0],w=(e=>{let t=(0,d.useReducer)(f,e??{},e=>{let t={...p,...e};if(0===t.multiViewItems.length)return t;let r=new Map;return t.multiViewItems=t.multiViewItems.map(e=>{if(e.id)return e;let t=(0,l.generateComponentId)(e.title),n=r.get(t)??0;return r.set(t,n+1),{...e,id:(0,l.generateComponentId)(e.title,n)}}),t.multiViewItems=t.multiViewItems.map((e,t)=>({...e,active:0===t})),t}),[{multiViewItems:r},n]=t;return(0,d.useLayoutEffect)(()=>{if(0!==r.length)try{let e=window.location.hash.substring(1),t=e?r.find(t=>t.id===e):void 0;if(t){t.active||n({type:"toggle_multi_view_change",payload:t});return}let i=window.localStorage.getItem("code");if(i){let e=r.find(e=>e.title===i);e&&!e.active&&n({type:"toggle_multi_view_change",payload:e})}}catch{console.error("Error syncing multi view items with URL hash or code language preference")}},[]),t})({pageMetadata:x,selectedBodyContentType:v,...b}),[,C]=w,k=(0,d.useRef)({pageMetadata:x,mdxExtracts:b});return(0,d.useEffect)(()=>{if(!i)return;let e=k.current;(0,o.default)(e.pageMetadata,x)&&(0,o.default)(e.mdxExtracts,b)||(k.current={pageMetadata:x,mdxExtracts:b},C({type:"set_state",payload:{...m,pageMetadata:x,selectedBodyContentType:v,...b}}))},[C,b,x,v,i]),(0,d.useMemo)(()=>w,[w])}();return(0,t.jsxs)(h.Provider,{value:n,children:[(0,t.jsx)(d.Suspense,{fallback:null,children:(0,t.jsx)(g,{})}),e]})}h.displayName="MDXContentContext";let x=()=>(0,d.useContext)(h)}]);