MCP TODO Checklist Server

!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="70ad2c35-c0e6-4281-8a23-1b252404766f",e._sentryDebugIdIdentifier="sentry-dbid-70ad2c35-c0e6-4281-8a23-1b252404766f")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6208],{59768:function(e,t,r){"use strict";let a=(0,r(2784).createContext)({analyticsMediator:void 0});a.displayName="AnalyticsContext",t.Z=a},44964:function(e,t,r){"use strict";r.r(t);var a=r(52322),n=r(29487);r(2784),t.default=({children:e})=>{var t,r,i;return(null===(t=e.props)||void 0===t?void 0:t.dangerouslySetInnerHTML)?(0,a.jsx)(a.Fragment,{children:(null===(r=e.props.dangerouslySetInnerHTML)||void 0===r?void 0:r.__html)?(0,a.jsx)(n.Z,{html:null===(i=e.props.dangerouslySetInnerHTML)||void 0===i?void 0:i.__html}):e}):null}},14806:function(e,t,r){"use strict";r.d(t,{u:function(){return s}});var a=r(52322),n=r(18941),i=r(2784);function s({tip:e,children:t}){return t?(0,a.jsx)(n.zt,{delayDuration:0,children:(0,a.jsxs)(n.fC,{children:[(0,a.jsx)(n.xz,{children:(0,i.isValidElement)(t)?t:(0,a.jsx)("span",{className:"underline decoration-dotted decoration-2 underline-offset-4 decoration-gray-400 dark:decoration-gray-500",children:t})}),(0,a.jsx)(n.h_,{children:(0,a.jsx)(n.VY,{collisionPadding:8,className:"z-50 bg-tooltip max-w-[16rem] text-center text-gray-50 text-xs px-1.5 py-1 rounded-lg border border-gray-50 dark:border-gray-500",children:e})})]})}):null}},17943:function(e,t,r){"use strict";r.d(t,{AG:function(){return s},EV:function(){return c},TQ:function(){return i},Wj:function(){return l},XK:function(){return n},YO:function(){return d},ZF:function(){return o}});var a=r(65289);let n="production"===a.lC,i="development"===a.lC,s=6e4,l=864e5,o=12096e5,d=36e5,c="/mintlify-oauth-callback"},63326:function(e,t,r){"use strict";r.d(t,{E:function(){return a}});let a=(0,r(2784).createContext)({apiReferenceData:{},pageMetadata:{}});a.displayName="ConfigContext"},35216:function(e,t,r){"use strict";r.d(t,{S:function(){return n},u:function(){return i}});var a=r(2784);let n=(0,a.createContext)({route:"",pathname:"",query:{},asPath:"",basePath:"",isLocaleDomain:!1,push:async()=>!0,replace:async()=>!1,reload:()=>{},back:()=>{},forward:()=>{},prefetch:async()=>{},beforePopState:()=>{},events:{on:()=>{},off:()=>{},emit:()=>{}},isFallback:!1,isReady:!0,isPreview:!1});function i(){return(0,a.useContext)(n)}},26215:function(e,t,r){"use strict";r.d(t,{kH:function(){return f},YW:function(){return y},Oo:function(){return b}});var a,n,i=r(52322),s=r(2784),l=r(26741),o=r(8547),d=r(91364),c=r(69971),u=r(90557),h=r(99263);function p(e,t,r,a){return e.filter(e=>!!((!e.isDefaultHidden||e===t)&&(void 0===e.version||e.version===a)&&((0,h.Z)(e.url)||r.has(e)))).map(e=>{var a;return{...e,href:(0,h.Z)(e.url)?e.url:(null===(a=r.get(e))||void 0===a?void 0:a.href)??"/",isActive:e===t}})}function m(e,t){let r;if(e){for(let n of e){var a;if((0,h.Z)(n.url))continue;let e=g((a=n.url).endsWith("/")?a:`${a}/`);t.startsWith(e)&&(void 0===r||e.length>r[1].length)&&(r=[n,e])}return null==r?void 0:r[0]}}function g(e){return e.startsWith("/")?e:`/${e}`}(a=n||(n={}))[a.EXACT=0]="EXACT",a[a.PATH=1]="PATH",a[a.GROUP=2]="GROUP",a[a.NONE=3]="NONE";var x=r(63326),v=r(35216);let f=(0,s.createContext)({selectedVersion:"",setSelectedVersion:()=>{},filteredNavigation:[],anchors:[],tabs:[],navIsOpen:!1,setNavIsOpen:()=>!1,selectedLocale:void 0,setSelectedLocale:()=>{},isLocalizationEnabled:!1}),y=({children:e,versionOptions:t})=>{var r,a,n;let d=(0,v.u)(),h=(0,l.J)(),y=(0,o.c)(),[b,j]=(0,s.useState)(!1),k=e=>(null==e?void 0:e.every(e=>"object"==typeof e&&"locale"in e))??!1,[w,L]=(0,s.useState)(k(t)?null===(r=t[0])||void 0===r?void 0:r.locale:void 0),V=k(t)?t.map(e=>e.locale):void 0,C="string"==typeof(null==t?void 0:t[0])?t[0]:(null==t?void 0:null===(a=t[0])||void 0===a?void 0:a.name)??"",N=(null==t?void 0:null===(n=t.find(e=>"object"==typeof e&&e.default))||void 0===n?void 0:n.name)??C,{navWithMetadata:M,mintConfig:H}=(0,s.useContext)(x.E),Z=M?function(e,t,r){for(let a of e){let e=function e(t,r,a){if((0,c.t)(t)){for(let n of t.pages){let i=e(n,r,t.version??a);if(i)return i}return}if(t.href===r)return t.version??a}(a,t,r);if(e)return e}return r}(M,h,N):N,[E,S]=(0,s.useState)(Z),{filteredDecoratedNav:O,tabsWithHref:T,anchorsWithHref:I,firstHrefInVersion:P}=(0,s.useMemo)(()=>(function({currentPath:e,currentVersion:t,decoratedNav:r=[],tabs:a,anchors:n,versions:i,primaryTab:s,topAnchor:l,userGroups:o}){var d,h;let x=new Map,v=new Map,f=new Map,y=m(a,g(e)),b=m(n,g(e)),j=null==i?void 0:i.map(e=>"string"==typeof e?e:e.name),k=r.map(r=>(function r(i,s,l=!1){if((0,c.t)(i)){let t=i.pages.some(t=>(0,u.l)(t)&&t.href===e),a=i.pages.map(e=>r(e,i.version??s,t)).filter(e=>void 0!==e);return a.length?{...i,pages:a}:void 0}if(!function(e,t){let r=Array.isArray(e.groups)&&e.groups.every(e=>"string"==typeof e)?e.groups:void 0;return!r||r.some(e=>t.has(e))}(i,o))return;let d=i.version??s;if(function(e,t,r,a,n,i,s){let l=void 0!==t?[t]:i??[];if(e===a){for(let t of l)s.set(t,{href:e,matchLevel:0});return}if(void 0!==n&&void 0!==t){let r=s.get(t);(void 0===r||1<r.matchLevel)&&function(e,t){let r=e.split("/").filter(Boolean),a=t.split("/").filter(Boolean);if(r.length!==a.length||r.length<2||r.at(-1)!==a.at(-1))return!1;let n=!1;for(let e=0;e<r.length-1;e++)if(r[e]!==a[e]){if(n)return!1;n=!0}return!0}(e,a)&&s.set(t,{href:e,matchLevel:1})}if(r){for(let t of l){let r=s.get(t);(void 0===r||2<r.matchLevel)&&s.set(t,{href:e,matchLevel:2})}return}for(let t of l)s.has(t)||s.set(t,{href:e,matchLevel:3})}(i.href,d,l,e,t,j,x),void 0!==d&&d!==t)return;let h=m(a,i.href),p=m(n,i.href),g=v.get(h);if((void 0===g||void 0===p&&!0===g.inAnchor)&&v.set(h,{href:i.href,inAnchor:!!p}),h===y&&(f.has(p)||f.set(p,{href:i.href}),p===b))return i})(r,r.version)).filter(e=>void 0!==e),w=a&&p(a,y,v,t),L=null===(d=v.get(void 0))||void 0===d?void 0:d.href;w&&(!(null==s?void 0:s.isDefaultHidden)||void 0===y)&&L&&w.unshift({name:"Documentation",...s,url:L,href:L,isActive:void 0===y});let V=n&&p(n,b,f,t),C=null===(h=f.get(void 0))||void 0===h?void 0:h.href;return V&&null==a&&C&&V.unshift({name:"Documentation",...l,url:C,href:C,isActive:void 0===b}),{firstHrefInVersion:x,tabsWithHref:w??[],anchorsWithHref:V??[],filteredDecoratedNav:k}})({currentPath:h,currentVersion:E,decoratedNav:M,tabs:null==H?void 0:H.tabs,anchors:null==H?void 0:H.anchors,versions:null==H?void 0:H.versions,topAnchor:null==H?void 0:H.topAnchor,primaryTab:null==H?void 0:H.primaryTab,userGroups:new Set(y)}),[h,E,M,null==H?void 0:H.tabs,null==H?void 0:H.anchors,null==H?void 0:H.versions,null==H?void 0:H.topAnchor,null==H?void 0:H.primaryTab,y]),_=(0,s.useCallback)(e=>{var t;if(e===E)return;S(e);let r=null===(t=P.get(e))||void 0===t?void 0:t.href;null!=r&&r!=h&&d.push(r)},[E,P,h,d]);return(0,s.useEffect)(()=>{if(b)return d.events.on("routeChangeComplete",e),()=>{d.events.off("routeChangeComplete",e)};function e(){j(!1)}},[b,d.events]),(0,i.jsx)(f.Provider,{value:{selectedVersion:E,setSelectedVersion:_,filteredNavigation:O,anchors:I,tabs:T,navIsOpen:b,setNavIsOpen:j,selectedLocale:w,setSelectedLocale:L,locales:V,isLocalizationEnabled:void 0!=V},children:e})};function b(){let{selectedLocale:e}=(0,s.useContext)(f);return(0,s.useMemo)(()=>(0,d.K)(e),[e])}f.displayName="NavigationContext"},65289:function(e,t,r){"use strict";r.d(t,{F9:function(){return s},GW:function(){return n},lC:function(){return i}});var a=r(34406);a.env.REVALIDATION_TOKEN,a.env.INTERNAL_ANALYTICS_WRITE_KEY;let n=a.env.BASE_PATH||"";a.env.HOST_NAME;let i="production";a.env.IS_MULTI_TENANT,a.env.VERCEL;let s={SENTRY_DSN:a.env.NEXT_PUBLIC_SENTRY_DSN,ENV:"production",TRIEVE_API_KEY:"tr-Ef0O1GG473PDFHfclCabtti5n0mHNolw",AUTH_ENABLED:a.env.NEXT_PUBLIC_AUTH_ENABLED}},33:function(e,t,r){"use strict";r.d(t,{O:function(){return i}});var a=r(2784),n=r(59768);let i=e=>{let{analyticsMediator:t}=(0,a.useContext)(n.Z);return(0,a.useMemo)(()=>t?t.createEventListener(e):e=>Promise.resolve(),[t,e])}},25827:function(e,t,r){"use strict";r.d(t,{Pg:function(){return h},cI:function(){return u},hF:function(){return p}});var a=r(78067),n=r(71509),i=r(2784),s=r(63326);let l=e=>{try{let t=(0,n.Z)(e);return`${t.red} ${t.green} ${t.blue}`}catch{return"0 0 0"}},o=(e,t)=>{if(t)return l(t);let r=(0,n.Z)(e),i=(0,a.mJ)({r:9,g:9,b:11,a:1},{r:r.red,g:r.green,b:r.blue,a:.02});return`${i.r} ${i.g} ${i.b}`},d=(e,t)=>{let r=(0,n.Z)(t),i=(0,a.mJ)({r:e.red,g:e.green,b:e.blue,a:.6},{r:r.red,g:r.green,b:r.blue,a:.95});return`${i.r} ${i.g} ${i.b}`},c=e=>{let t={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},r=(0,n.Z)(e);return{50:d(r,t[50]),100:d(r,t[100]),200:d(r,t[200]),300:d(r,t[300]),400:d(r,t[400]),500:d(r,t[500]),600:d(r,t[600]),700:d(r,t[700]),800:d(r,t[800]),900:d(r,t[900]),950:d(r,t[950])}};function u(){let{docsConfig:e}=(0,i.useContext)(s.E);return(0,i.useMemo)(()=>{var t,r,a,n;let i=(null==e?void 0:e.colors.primary)??"#16A34A",s=(null==e?void 0:e.colors.light)??"#4ADE80",d=(null==e?void 0:e.colors.dark)??"#166534",u=h(null==e?void 0:e.colors.primary);return{primary:l(i),primaryLight:l(s),primaryDark:l(d),backgroundLight:l((null==e?void 0:null===(r=e.background)||void 0===r?void 0:null===(t=r.color)||void 0===t?void 0:t.light)??"#ffffff"),backgroundDark:o(s,null==e?void 0:null===(n=e.background)||void 0===n?void 0:null===(a=n.color)||void 0===a?void 0:a.dark),anchorDefault:u,gray:c(i)}},[e])}function h(e){return null==e||"string"==typeof e?e:e.via?`linear-gradient(45deg, ${e.from}, ${e.via}, ${e.to})`:`linear-gradient(45deg, ${e.from}, ${e.to})`}function p(e){return e.split(" ").join(", ")}},26741:function(e,t,r){"use strict";r.d(t,{J:function(){return s}});var a=r(2784),n=r(63326),i=r(35216);function s(){let e=(0,i.u)(),{subdomain:t}=(0,a.useContext)(n.E);return(0,a.useMemo)(()=>e.asPath.replace(`/_sites/${t}`,"").split(/[?#]/)[0]??"/",[e.asPath,t])}},8547:function(e,t,r){"use strict";r.d(t,{c:function(){return i}});var a=r(2784),n=r(63326);let i=()=>{let{userInfo:e}=(0,a.useContext)(n.E);return(0,a.useMemo)(()=>{if(e)return[...e.groups??[],"*"]},[e])}},40629:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var a=r(52322),n=r(45847),i=r.n(n),s=r(2784),l=r(63326),o=r(80657),d=r(71766),c=r.n(d);let u=e=>e?e.source?(0,a.jsx)(c(),{id:"73a0779d925c2c5f",dynamic:[e.family,e.source,e.format,e.weight],children:`@font-face{font-family:"${e.family}";src:url("${e.source}")format("${e.format}");font-weight:${e.weight}}`}):(0,a.jsx)("link",{href:`https://fonts.googleapis.com/css2?family=${e.family.replace(/\s+/g,"+")}:wght@${e.weight??"400;500;600;700;800"}&display=swap`,rel:"stylesheet"}):null;function h(){let{docsConfig:e}=(0,s.useContext)(l.E);if(!(null==e?void 0:e.fonts))return null;let t=(0,o.Z)(e.fonts,"heading"),r=(0,o.Z)(e.fonts,"body"),n=u(t),d=u(r);return(0,a.jsxs)(a.Fragment,{children:[n,d,(0,a.jsx)(i(),{strategy:"beforeInteractive",id:"font",dangerouslySetInnerHTML:{__html:` document.documentElement.style.setProperty('--font-family-headings-custom', '${(null==t?void 0:t.family)??""}'); document.documentElement.style.setProperty('--font-weight-headings-custom', '${(null==t?void 0:t.weight)??""}'); document.documentElement.style.setProperty('--font-family-body-custom', '${(null==r?void 0:r.family)??""}'); document.documentElement.style.setProperty('--font-weight-body-custom', '${(null==r?void 0:r.weight)??""}'); `}})]})}},93842:function(e,t,r){"use strict";r.d(t,{v:function(){return i}});var a=r(52322),n=r(25827);function i(){let e=(0,n.cI)(),t=`:root { --primary: ${e.primary}; --primary-light: ${e.primaryLight}; --primary-dark: ${e.primaryDark}; --background-light: ${e.backgroundLight}; --background-dark: ${e.backgroundDark}; --gray-50: ${e.gray[50]}; --gray-100: ${e.gray[100]}; --gray-200: ${e.gray[200]}; --gray-300: ${e.gray[300]}; --gray-400: ${e.gray[400]}; --gray-500: ${e.gray[500]}; --gray-600: ${e.gray[600]}; --gray-700: ${e.gray[700]}; --gray-800: ${e.gray[800]}; --gray-900: ${e.gray[900]}; --gray-950: ${e.gray[950]}; }`;return(0,a.jsx)("style",{children:t})}},55785:function(e,t,r){"use strict";r.d(t,{Q:function(){return s},U:function(){return i}});var a=r(52322),n=r(20237);function i({children:e,className:t}){return(0,a.jsx)(n.U,{components:{p:({children:e})=>(0,a.jsx)("p",{className:"whitespace-pre-line",children:e})},className:t,children:e})}let s=({children:e,className:t})=>{let r="text-base font-medium";return(0,a.jsx)(n.U,{components:{h1:({children:e})=>(0,a.jsx)("h1",{className:r,children:e}),h2:({children:e})=>(0,a.jsx)("h2",{className:r,children:e}),h3:({children:e})=>(0,a.jsx)("h3",{className:r,children:e}),h4:({children:e})=>(0,a.jsx)("h4",{className:r,children:e}),h5:({children:e})=>(0,a.jsx)("h5",{className:r,children:e}),h6:({children:e})=>(0,a.jsx)("h6",{className:r,children:e})},className:t,children:e})}},74857:function(e,t,r){"use strict";r.d(t,{$:function(){return s}});var a=r(52322),n=r(45847),i=r.n(n);let s=({modeToggleDefault:e})=>(0,a.jsx)(i(),{id:"mode-toggle",strategy:"beforeInteractive",dangerouslySetInnerHTML:{__html:` try { if (localStorage.isDarkMode === 'true') { document.documentElement.classList.add('dark'); } else if (localStorage.isDarkMode === 'false') { document.documentElement.classList.remove('dark'); } else if ((${(null==e).toString()} && !('isDarkMode' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches) || ${("dark"===e).toString()}) { document.documentElement.classList.add('dark'); } else { document.documentElement.classList.remove('dark'); } } catch (_) {} `}})},17770:function(e,t,r){"use strict";r.d(t,{Z:function(){return lm}});var a,n,i,s,l,o,d=r(52322),c=r(20999),u=r(5632),h=r(45847),p=r.n(h),m=r(2784),g=r(59768);function x({clearbit:e}){return(null==e?void 0:e.publicApiKey)?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(p(),{strategy:"afterInteractive",src:`https://tag.clearbitscripts.com/v1/${e.publicApiKey}/tags.js`})}):null}function v({ga4:e}){return(null==e?void 0:e.measurementId)?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(p(),{strategy:"afterInteractive",src:`https://www.googletagmanager.com/gtag/js?id=${e.measurementId}`}),(0,d.jsx)(p(),{strategy:"afterInteractive",id:"ga4",dangerouslySetInnerHTML:{__html:` window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '${e.measurementId}', { page_path: window.location.pathname, }); `}})]}):null}function f({gtm:e}){return(null==e?void 0:e.tagId)?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(p(),{id:"gtm",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:` (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','${e.tagId}');`}}),(0,d.jsx)("noscript",{children:(0,d.jsx)("iframe",{src:`https://www.googletagmanager.com/ns.html?id=${e.tagId}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]}):null}function y({heap:e}){return(null==e?void 0:e.appId)?(0,d.jsx)(p(),{id:"heap",type:"text/javascript",dangerouslySetInnerHTML:{__html:` window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src="https://cdn.heapanalytics.com/js/heap-"+e+".js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(r,a);for(var n=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["addEventProperties","addUserProperties","clearEventProperties","identify","resetIdentity","removeEventProperty","setEventProperties","track","unsetEventProperty"],o=0;o<p.length;o++)heap[p[o]]=n(p[o])}; heap.load("${e.appId}"); `}}):null}function b({koala:e}){return(null==e?void 0:e.publicApiKey)?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(p(),{strategy:"afterInteractive",id:"koala",dangerouslySetInnerHTML:{__html:` !(function (t) { if (window.ko) return; (window.ko = []), [ "identify", "track", "removeListeners", "open", "on", "off", "qualify", "ready", ].forEach(function (t) { ko[t] = function () { var n = [].slice.call(arguments); return n.unshift(t), ko.push(n), ko; }; }); var n = document.createElement("script"); (n.async = !0), n.setAttribute( "src", "https://cdn.getkoala.com/v1/${e.publicApiKey}/sdk.js" ), (document.body || document.head).appendChild(n); })(); `}})}):null}function j({plausible:e}){return(null==e?void 0:e.domain)?(0,d.jsx)(p(),{strategy:"afterInteractive","data-domain":e.domain,src:`https://${e.server??"plausible.io"}/js/script.js`}):null}var k=r(17943),w=r(63326);function L({segment:e}){return(null==e?void 0:e.key)?(0,d.jsx)(p(),{strategy:"afterInteractive",id:"segment",dangerouslySetInnerHTML:{__html:` !function(){var i="analytics",analytics=window[i]=window[i]||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","screen","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"];analytics.factory=function(e){return function(){if(window[i].initialized)return window[i][e].apply(window[i],arguments);var n=Array.prototype.slice.call(arguments);if(["track","screen","alias","group","page","identify"].indexOf(e)>-1){var c=document.querySelector("link[rel='canonical']");n.push({__t:"bpc",c:c&&c.getAttribute("href")||void 0,p:location.pathname,u:location.href,s:location.search,t:document.title,r:document.referrer})}n.unshift(e);analytics.push(n);return analytics}};for(var n=0;n<analytics.methods.length;n++){var key=analytics.methods[n];analytics[key]=analytics.factory(key)}analytics.load=function(key,n){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.setAttribute("data-global-segment-analytics-key",i);t.src="https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(t,r);analytics._loadOptions=n};analytics._writeKey="${e.key}";;analytics.SNIPPET_VERSION="5.2.0"; analytics.load("${e.key}"); analytics.page(); }}();`}}):null}var V=()=>{var e,t,r,a,n,i,s;let{docsConfig:l}=(0,m.useContext)(w.E);return k.XK?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(x,{clearbit:null==l?void 0:null===(e=l.integrations)||void 0===e?void 0:e.clearbit}),(0,d.jsx)(v,{ga4:null==l?void 0:null===(t=l.integrations)||void 0===t?void 0:t.ga4}),(0,d.jsx)(f,{gtm:null==l?void 0:null===(r=l.integrations)||void 0===r?void 0:r.gtm}),(0,d.jsx)(y,{heap:null==l?void 0:null===(a=l.integrations)||void 0===a?void 0:a.heap}),(0,d.jsx)(b,{koala:null==l?void 0:null===(n=l.integrations)||void 0===n?void 0:n.koala}),(0,d.jsx)(j,{plausible:null==l?void 0:null===(i=l.integrations)||void 0===i?void 0:i.plausible}),(0,d.jsx)(L,{segment:null==l?void 0:null===(s=l.integrations)||void 0===s?void 0:s.segment})]}):null},C=r(63197);class N{}class M extends N{init(e,t=!1){e.apiKey&&(this.initialized=!0,C.ZP.init(e.apiKey,{api_host:e.apiHost||"https://app.posthog.com",capture_pageview:!1,disable_session_recording:!t,loaded:e=>{k.XK||e.opt_out_capturing()}}))}captureEvent(e){return async t=>{C.ZP.capture(e,{...t})}}createEventListener(e){return this.initialized?this.captureEvent(e):async function(e){}}onRouteChange(e,t){C.ZP.capture("$pageview")}constructor(...e){super(...e),this.initialized=!1}}class H extends M{constructor(e){super(),this.initialized=!1,this.subdomain=e}captureEvent(e){return async t=>{C.ZP.capture(e,{...t,subdomain:this.subdomain})}}onRouteChange(e,t){C.ZP.capture("$pageview",{subdomain:this.subdomain,title:document.title})}}class Z extends N{init(e){if(!e.apiKey)return;let{apiKey:t}=e;r.e(3058).then(r.bind(r,63058)).then(e=>{this.initialized||(e.init(t),this.track=e.track,this.initialized=!0)}).catch(e=>{this.track=void 0,console.error(e)})}createEventListener(e){return this.initialized&&this.track?(async function(t){this.track&&this.track(e,t)}).bind(this):async function(e){}}onRouteChange(e,t){this.initialized&&this.track&&!t.shallow&&this.track("page_view",{url:e})}constructor(...e){super(...e),this.initialized=!1}}class E extends N{init(e){if(!e.siteId)return;let{siteId:t}=e;r.e(6653).then(r.bind(r,16653)).then(e=>{this.initialized||(e.load(t),this.trackPageview=e.trackPageview,this.initialized=!0)}).catch(e=>{console.error(e)})}createEventListener(e){return()=>Promise.resolve()}onRouteChange(e,t){this.trackPageview&&!t.shallow&&this.trackPageview()}constructor(...e){super(...e),this.initialized=!1}}class S extends N{init(e){this.measurementId=e.measurementId}createEventListener(e){return this.measurementId&&window.gtag?async function(t){window.gtag("event",e,{})}:async function(e){}}onRouteChange(e){this.measurementId&&window.gtag&&window.gtag("config",this.measurementId,{page_path:e})}}class O extends N{init(e){if(!e.hjid||!e.hjsv)return;let t=parseInt(e.hjid,10),a=parseInt(e.hjsv,10);r.e(1330).then(r.t.bind(r,91330,23)).then(e=>{this.initialized||(this.hotjar=e.hotjar,this.hotjar.initialize(t,a),this.initialized=!0,this.eventQueue.forEach(e=>{this.hotjar&&this.hotjar.event(e)}))}).catch(e=>{console.error(e)})}createEventListener(e){return(async function(t){this.hotjar?this.hotjar.event(e):this.eventQueue.push(e)}).bind(this)}onRouteChange(e,t){}constructor(...e){super(...e),this.initialized=!1,this.eventQueue=[]}}var T=r(76954),I=r.n(T);class P extends N{init(e){if(e.appId)try{!this.initialized&&e.appId&&(I().init(e.appId),this.trackEvent=I().track,this.initialized=!0)}catch(e){console.error(e)}}createEventListener(e){if(this.initialized){let t=this.trackEvent;return async function(r){t&&t(e,r)}}return async function(e){}}onRouteChange(e,t){}constructor(...e){super(...e),this.initialized=!1}}class _ extends N{init(e){e.projectToken?r.e(1915).then(r.t.bind(r,24542,23)).then(t=>{if(!this.initialized){let r=t.default;r.init(e.projectToken,{secure_cookie:!0}),this.initialized=!0,this.mixpanel=r,this.waitTracking.forEach(e=>{this.mixpanel.track(e.name,e.properties)})}}).catch(e=>{console.error(e)}):this.mixpanel.track=(e,t)=>{}}createEventListener(e){return(async function(t){this.mixpanel.track(e,t)}).bind(this)}onRouteChange(e){this.mixpanel.track("pageview",{path:e})}constructor(...e){super(...e),this.initialized=!1,this.waitTracking=[],this.mixpanel={track:(e,t)=>{this.waitTracking.push({name:e,properties:t})}}}}class A extends N{init(e){if(!e.id)return;let t=e.id;r.e(4442).then(r.t.bind(r,24442,23)).then(e=>{this.initialized||(this.pirsch=new e.Pirsch({identificationCode:t}),this.initialized=!0,this.eventQueue.forEach(({eventName:e,eventProperties:t})=>{this.pirsch&&this.pirsch.event(e,void 0,t)}))}).catch(e=>{console.error(e)})}createEventListener(e){return(async function(t){this.pirsch?this.pirsch.event(e,void 0,t):this.eventQueue.push({eventName:e,eventProperties:t})}).bind(this)}onRouteChange(e){this.pirsch&&this.pirsch.hit()}constructor(...e){super(...e),this.initialized=!1,this.eventQueue=[]}}class ${constructor(e,t){var r,a,n,i,s,l,o,d;this.analyticsIntegrations=[];let c=!!(null==e?void 0:null===(r=e.amplitude)||void 0===r?void 0:r.apiKey),u=!!(null==e?void 0:null===(a=e.fathom)||void 0===a?void 0:a.siteId),h=!!(null==e?void 0:null===(n=e.ga4)||void 0===n?void 0:n.measurementId),p=!!((null==e?void 0:null===(i=e.hotjar)||void 0===i?void 0:i.hjid)&&e.hotjar.hjsv),m=!!(null==e?void 0:null===(s=e.logrocket)||void 0===s?void 0:s.appId),g=!!(null==e?void 0:null===(l=e.mixpanel)||void 0===l?void 0:l.projectToken),x=!!(null==e?void 0:null===(o=e.pirsch)||void 0===o?void 0:o.id),v=!!(null==e?void 0:null===(d=e.posthog)||void 0===d?void 0:d.apiKey);if(c&&(null==e?void 0:e.amplitude)){let t=new Z;t.init(e.amplitude),this.analyticsIntegrations.push(t)}if(u&&(null==e?void 0:e.fathom)){let t=new E;t.init(e.fathom),this.analyticsIntegrations.push(t)}if(h&&(null==e?void 0:e.ga4)){let t=new S;t.init(e.ga4),this.analyticsIntegrations.push(t)}if(p&&(null==e?void 0:e.hotjar)){let t=new O;t.init(e.hotjar),this.analyticsIntegrations.push(t)}if(m&&(null==e?void 0:e.logrocket)){let t=new P;t.init(e.logrocket),this.analyticsIntegrations.push(t)}if(g&&(null==e?void 0:e.mixpanel)){let t=new _;t.init(e.mixpanel),this.analyticsIntegrations.push(t)}if(x&&(null==e?void 0:e.pirsch)){let t=new A;t.init(e.pirsch),this.analyticsIntegrations.push(t)}if(v&&(null==e?void 0:e.posthog)){let t=new M;t.init(e.posthog,!0),this.analyticsIntegrations.push(t)}if(t&&!v){let{internalAnalyticsWriteKey:e,subdomain:r}=t,a=new H(r);a.init({apiKey:e}),this.analyticsIntegrations.push(a)}}createEventListener(e){let t=this.analyticsIntegrations.map(t=>t.createEventListener(e));return async function(e){t.forEach(t=>t(e))}}onRouteChange(e,t){this.analyticsIntegrations.forEach(r=>r.onRouteChange(e,t))}}var B=r(35216),z=r(25237),q=r.n(z),F=r(39097),R=r.n(F),D=r(55463),W=r(18149),U=r.n(W),G=r(33);let J=["brands","duotone","light","regular","sharp-duotone-solid","sharp-light","sharp-regular","sharp-solid","sharp-thin","solid","thin"];var K=r(40489);function Y({style:e,icon:t,iconType:r,className:a,color:n}){let i=t&&["42-group","500px","accessible-icon","accusoft","adn","adversal","affiliatetheme","airbnb","algolia","alipay","amazon","amazon-pay","amilia","android","angellist","angrycreative","angular","app-store","app-store-ios","apper","apple","apple-pay","artstation","asymmetrik","atlassian","audible","autoprefixer","avianex","aviato","aws","bandcamp","battle-net","behance","bilibili","bimobject","bitbucket","bitcoin","bity","black-tie","blackberry","blogger","blogger-b","bluesky","bluetooth","bluetooth-b","bootstrap","bots","brave","brave-reverse","btc","buffer","buromobelexperte","buy-n-large","buysellads","canadian-maple-leaf","cc-amazon-pay","cc-amex","cc-apple-pay","cc-diners-club","cc-discover","cc-jcb","cc-mastercard","cc-paypal","cc-stripe","cc-visa","centercode","centos","chrome","chromecast","cloudflare","cloudscale","cloudsmith","cloudversify","cmplid","codepen","codiepie","confluence","connectdevelop","contao","cotton-bureau","cpanel","creative-commons","creative-commons-by","creative-commons-nc","creative-commons-nc-eu","creative-commons-nc-jp","creative-commons-nd","creative-commons-pd","creative-commons-pd-alt","creative-commons-remix","creative-commons-sa","creative-commons-sampling","creative-commons-sampling-plus","creative-commons-share","creative-commons-zero","critical-role","css3","css3-alt","cuttlefish","d-and-d","d-and-d-beyond","dailymotion","dart-lang","dashcube","debian","deezer","delicious","deploydog","deskpro","dev","deviantart","dhl","diaspora","digg","digital-ocean","discord","discourse","dochub","docker","draft2digital","dribbble","dropbox","drupal","dyalog","earlybirds","ebay","edge","edge-legacy","elementor","ello","ember","empire","envira","erlang","ethereum","etsy","evernote","expeditedssl","facebook","facebook-f","facebook-messenger","fantasy-flight-games","fedex","fedora","figma","firefox","firefox-browser","first-order","first-order-alt","firstdraft","flickr","flipboard","flutter","fly","font-awesome","fonticons","fonticons-fi","fort-awesome","fort-awesome-alt","forumbee","foursquare","free-code-camp","freebsd","fulcrum","galactic-republic","galactic-senate","get-pocket","gg","gg-circle","git","git-alt","github","github-alt","gitkraken","gitlab","gitter","glide","glide-g","gofore","golang","goodreads","goodreads-g","google","google-drive","google-pay","google-play","google-plus","google-plus-g","google-scholar","google-wallet","gratipay","grav","gripfire","grunt","guilded","gulp","hacker-news","hackerrank","hashnode","hips","hire-a-helper","hive","hooli","hornbill","hotjar","houzz","html5","hubspot","ideal","imdb","instagram","instalod","intercom","internet-explorer","invision","ioxhost","itch-io","itunes","itunes-note","java","jedi-order","jenkins","jira","joget","joomla","js","jsfiddle","jxl","kaggle","keybase","keycdn","kickstarter","kickstarter-k","korvue","laravel","lastfm","leanpub","less","letterboxd","line","linkedin","linkedin-in","linode","linux","lyft","magento","mailchimp","mandalorian","markdown","mastodon","maxcdn","mdb","medapps","medium","medrt","meetup","megaport","mendeley","meta","microblog","microsoft","mintbit","mix","mixcloud","mixer","mizuni","modx","monero","napster","neos","nfc-directional","nfc-symbol","nimblr","node","node-js","npm","ns8","nutritionix","octopus-deploy","odnoklassniki","odysee","old-republic","opencart","openid","opensuse","opera","optin-monster","orcid","osi","padlet","page4","pagelines","palfed","patreon","paypal","perbyte","periscope","phabricator","phoenix-framework","phoenix-squadron","php","pied-piper","pied-piper-alt","pied-piper-hat","pied-piper-pp","pinterest","pinterest-p","pix","pixiv","playstation","product-hunt","pushed","python","qq","quinscape","quora","r-project","raspberry-pi","ravelry","react","reacteurope","readme","rebel","red-river","reddit","reddit-alien","redhat","renren","replyd","researchgate","resolving","rev","rocketchat","rockrms","rust","safari","salesforce","sass","schlix","screenpal","scribd","searchengin","sellcast","sellsy","servicestack","shirtsinbulk","shoelace","shopify","shopware","signal-messenger","simplybuilt","sistrix","sith","sitrox","sketch","skyatlas","skype","slack","slideshare","snapchat","soundcloud","sourcetree","space-awesome","speakap","speaker-deck","spotify","square-behance","square-dribbble","square-facebook","square-font-awesome","square-font-awesome-stroke","square-git","square-github","square-gitlab","square-google-plus","square-hacker-news","square-instagram","square-js","square-lastfm","square-letterboxd","square-odnoklassniki","square-pied-piper","square-pinterest","square-reddit","square-snapchat","square-steam","square-threads","square-tumblr","square-twitter","square-upwork","square-viadeo","square-vimeo","square-web-awesome","square-web-awesome-stroke","square-whatsapp","square-x-twitter","square-xing","square-youtube","squarespace","stack-exchange","stack-overflow","stackpath","staylinked","steam","steam-symbol","sticker-mule","strava","stripe","stripe-s","stubber","studiovinari","stumbleupon","stumbleupon-circle","superpowers","supple","suse","swift","symfony","teamspeak","telegram","tencent-weibo","the-red-yeti","themeco","themeisle","think-peaks","threads","tiktok","trade-federation","trello","tumblr","twitch","twitter","typo3","uber","ubuntu","uikit","umbraco","uncharted","uniregistry","unity","unsplash","untappd","ups","upwork","usb","usps","ussunnah","vaadin","viacoin","viadeo","viber","vimeo","vimeo-v","vine","vk","vnv","vuejs","watchman-monitoring","waze","web-awesome","webflow","weebly","weibo","weixin","whatsapp","whmcs","wikipedia-w","windows","wirsindhandwerk","wix","wizards-of-the-coast","wodu","wolf-pack-battalion","wordpress","wordpress-simple","wpbeginner","wpexplorer","wpforms","wpressr","x-twitter","xbox","xing","y-combinator","yahoo","yammer","yandex","yandex-international","yarn","yelp","yoast","youtube","zhihu"].includes(t.toLowerCase())?"brands":r??"regular";return(0,d.jsx)("svg",{className:a,style:{WebkitMaskImage:`url(https://mintlify.b-cdn.net/v6.6.0/${i}/${t}.svg)`,WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center",backgroundColor:n,...e}})}function Q({icon:e,iconType:t,className:r,style:a,color:n,overrideColor:i}){return t&&!J.includes(t)?(console.log(`Invalid iconType ${t} expected a string equal to one of: brands, duotone, light, regular, sharp-solid, solid, thin`),null):(0,d.jsx)(Y,{icon:e,iconType:t,className:(0,K.Z)(r,!n&&!i&&"bg-gray-800 dark:bg-gray-100"),style:a,color:n})}var X=r(45265),ee=r(31519);function et(e){return!!e&&function e(t){if("object"!=typeof t||null===t)return!1;if("tabs"in t)return!0;if(Array.isArray(t))return t.some(t=>e(t));for(let r of er)if("object"==typeof t&&r in t&&e(t[r]))return!0;return!1}(e.navigation)}let er=["versions","anchors","dropdowns","languages","groups","pages"];var ea=function({id:e,title:t,description:r,open:a,setOpen:n,icon:i,coverClass:s}){let{docsConfig:l}=(0,m.useContext)(w.E),o=et(l);return(0,d.jsxs)("button",{onClick:()=>n(!a),className:(0,X.cn)("relative not-prose flex flex-row items-center content-center w-full",s),"aria-controls":e+" accordion children","aria-expanded":a,children:[(0,d.jsx)("div",{id:e,className:(0,X.cn)("absolute",o?"-top-[8rem]":"-top-[4.5rem]")}),(0,d.jsx)("div",{className:"mr-0.5",children:(0,d.jsx)(Y,{icon:"caret-right",iconType:"solid",className:(0,X.cn)("h-3 w-3 transition bg-gray-700 dark:bg-gray-400",a&&"duration-200 rotate-90 -mt-1",!a&&"duration-75")})}),i?(0,d.jsx)("div",{className:"h-4 w-4 fill-gray-800 dark:fill-gray-100 text-gray-800 dark:text-gray-100",children:i}):null,(0,d.jsxs)("div",{className:"leading-tight text-left",children:[(0,d.jsx)("p",{className:"m-0 font-medium text-gray-900 dark:text-gray-200",children:t}),r?(0,d.jsx)("p",{className:"m-0 text-gray-900 dark:text-gray-200",children:r}):null]})]})};let en=(0,m.createContext)({parentIds:[]});function ei({title:e,description:t,defaultOpen:r=!1,icon:a,onChange:n,variant:i="rounded",children:s}){let l="string"==typeof e?(0,D.Z)(e.replace(":","-"),{decamelize:!1}):void 0,o=window.location.hash.substring(1).split(":"),c=(0,m.useContext)(en),[u,h]=(0,m.useState)(()=>{var e;return!!l&&(e=c.parentIds,!o||0===o.length||r?r:!!U()(e,o.slice(0,o.indexOf(l)))&&o.indexOf(l)===e.length)});function p(e,t){let r=e.join(t);(0,ee.v)(`https://${window.location.host}${window.location.pathname}#${r}`),window.history.pushState(null,"",`#${r}`)}(0,m.useEffect)(()=>{if(l&&u&&o&&o[o.length-1]===l&&U()(c.parentIds,o.slice(0,o.indexOf(l)))){let e=document.getElementById(l);e&&(history.scrollRestoration="manual",e.scrollIntoView())}},[]);let{parentClass:g,coverClass:x,contentClass:v}="minimalist"===i?{parentClass:"",coverClass:"[&>div]:ml-2 py-1 text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-200",contentClass:"mt-2 pt-1 mb-4 mx-[7px] px-4 border-l border-gray-100 dark:border-gray-800/50"}:{parentClass:"border-standard rounded-2xl mb-3 overflow-hidden bg-background-light dark:bg-codeblock",coverClass:"py-4 px-5 space-x-2 hover:bg-gray-100 hover:dark:bg-gray-800 rounded-t-xl",contentClass:"mt-2 mb-4 mx-6"};return(0,d.jsx)(en.Provider,{value:{...c,parentIds:[...c.parentIds,...void 0!=l?[l]:[]]},children:(0,d.jsxs)("div",{role:"button",className:g,children:[(0,d.jsx)(ea,{id:l,title:e,description:t,open:u,setOpen:e=>{h(e),e&&l?p([...c.parentIds,l],":"):c.parentIds.length>0?p(c.parentIds,":"):window.history.pushState(null,""," "),n&&n(e)},icon:a,coverClass:x}),(0,d.jsx)("div",{id:l+" accordion children",className:(0,X.cn)(v,!u&&"hidden"),children:s})]},"string"==typeof e?e:"accordion")})}function es({children:e,icon:t,className:r,childrenClassName:a}){return(0,d.jsxs)("div",{className:(0,K.W)("my-4 px-5 py-4 overflow-hidden rounded-2xl flex gap-3",r),children:[(0,d.jsx)("div",{className:"mt-0.5 w-4",children:t}),(0,d.jsx)("div",{className:(0,K.W)("text-sm prose min-w-0",a),children:e})]})}var el=r(99263);(a=s||(s={})).Navbar="navbar",a.Header="header",a.SearchBarEntry="search-bar-entry",a.SearchBarEntryMobile="search-bar-entry-mobile",a.RequestExample="request-example",a.ResponseExample="response-example",a.TopbarCtaButton="topbar-cta-button",a.Sidebar="sidebar",a.Footer="footer",a.SidebarContent="sidebar-content",a.NavigationItems="navigation-items",a.ContentContainer="content-container",a.ContentSideLayout="content-side-layout",a.TableOfContents="table-of-contents",a.TableOfContentsContent="table-of-contents-content",(n=l||(l={})).Card="card",n.Eyebrow="eyebrow";var eo=r(3190);function ed({title:e,icon:t,img:r,className:a,children:n,horizontal:i,as:s,mRef:o,cta:c,...u}){var h;let p=s||void 0!=u.href?"a":"div",m=(0,el.Z)(u.href??""),g="string"==typeof t,x=r?(null===(h=r.match(/\/([^\/]+)\.[^.]+$/))||void 0===h?void 0:h[1])??"":"",v=(0,d.jsx)(d.Fragment,{children:t?g?(0,d.jsx)("img",{src:t,alt:e,className:"h-6 w-6 object-cover object-center"}):(0,d.jsx)("div",{className:"h-6 w-6 fill-gray-800 dark:fill-gray-100 text-gray-800 dark:text-gray-100",children:t}):null});return(0,d.jsxs)(p,{className:(0,X.cn)(l.Card,"block not-prose font-normal group relative my-2 ring-2 ring-transparent rounded-2xl bg-white dark:bg-background-dark border border-gray-950/10 dark:border-white/10 overflow-hidden w-full",u.href&&"cursor-pointer",a),...m?{target:"_blank",rel:"noreferrer"}:{},...u,ref:o,children:[r&&(0,d.jsx)("img",{src:r,alt:x,className:"w-full object-cover object-center"}),(0,d.jsxs)("div",{className:(0,X.cn)("px-6 py-5",i&&"flex items-center space-x-3"),children:[v,(0,d.jsxs)("div",{children:[(0,d.jsx)("h2",{className:(0,X.cn)("font-semibold text-base text-gray-800 dark:text-white",null!=t&&!i&&"mt-4"),children:e}),(0,d.jsx)("div",{className:(0,X.cn)("mt-1 font-normal text-sm leading-6",e?"text-gray-600 dark:text-gray-400":"text-gray-700 dark:text-gray-300",i&&"leading-6 mt-0"),children:n}),u.href&&c&&(0,d.jsx)("div",{className:"mt-8",children:(0,d.jsxs)("button",{className:"text-gray-600 gap-2 dark:text-gray-400 hover:text-primary-light dark:hover:text-primary-light text-sm font-medium flex flex-row items-center group-hover:text-primary-light group-hover:dark:text-primary-light",children:[c,(0,d.jsx)(eo.LZ,{className:"h-6"})]})})]})]})]})}var ec=r(40178);let eu=e=>{let[t,r]=(0,m.useState)(!1),[a,n]=(0,m.useState)(0),i=(0,m.useRef)(null);return(0,m.useEffect)(()=>{i.current&&e&&n(i.current.scrollHeight+60)},[e]),{isExpanded:t,calculatedHeight:a,contentRef:i,toggleExpanded:()=>r(e=>!e)}},eh=e=>{let t=["scrollbar-thin scrollbar-thumb-rounded"];return"system"===e&&t.push("scrollbar-track-gray-200 scrollbar-thumb-black/15 hover:scrollbar-thumb-black/20 active:scrollbar-thumb-black/20 dark:scrollbar-track-gray-800 dark:scrollbar-thumb-white/20 dark:hover:scrollbar-thumb-white/25 dark:active:scrollbar-thumb-white/25"),("dark"===e||void 0==e)&&t.push("scrollbar-thumb-white/20 dark:scrollbar-thumb-white/20 hover:scrollbar-thumb-white/25 dark:hover:scrollbar-thumb-white/25 active:scrollbar-thumb-white/25 dark:active:scrollbar-thumb-white/25"),t},ep=e=>"string"==typeof e||"number"==typeof e?e.toString():e instanceof Array?e.map(ep).join(""):e&&"object"==typeof e&&"props"in e&&e.props&&"object"==typeof e.props&&"children"in e.props?ep(e.props.children):"",em=(0,m.forwardRef)(function({filename:e,onCopied:t,children:r,className:a,expandable:n=!1,...i},s){var l;let{docsConfig:o}=(0,m.useContext)(w.E),{isExpanded:c,calculatedHeight:u,contentRef:h,toggleExpanded:p}=eu(n),g=e=>(0,d.jsx)(ex,{textToCopy:ep(r),onCopied:t,...e}),x=null==o?void 0:null===(l=o.styling)||void 0===l?void 0:l.codeblocks;return(0,d.jsxs)("div",{className:(0,X.cn)("mt-5 mb-8 not-prose rounded-2xl relative","system"===x&&"text-gray-950 bg-white dark:bg-codeblock dark:text-gray-50 ring-1 ring-gray-950/10 dark:ring-gray-800/50 codeblock-light",("dark"===x||void 0==x)&&"text-gray-50 bg-[#0F1117] dark:bg-codeblock dark:ring-1 dark:ring-gray-800/50 codeblock-dark",a),ref:s,...i,children:[e?(0,d.jsx)(eg,{filename:e,children:(0,d.jsx)(g,{})}):(0,d.jsx)(g,{className:"absolute mt-0.5 top-4 right-4"}),(0,d.jsxs)("div",{className:(0,X.cn)("min-w-full relative text-sm leading-6 children:!my-0 children:!shadow-none children:!bg-transparent","transition-[height] duration-300 ease-in-out"),style:{fontVariantLigatures:"none",height:n?c?`${u}px`:"100px":"auto"},children:[(0,d.jsx)("div",{ref:h,className:(0,X.cn)("overflow-x-auto h-full p-5",c?"overflow-y-auto":"overflow-y-hidden",...eh(x)),children:r}),n&&(0,d.jsx)("div",{className:(0,X.cn)("absolute left-0 z-[10] right-0 flex justify-center items-end",c?"bottom-0 rounded-b-xl":"rounded-xl h-full top-0 bg-transparent","system"===x?"bg-gradient-to-b from-transparent to-background-light dark:from-transparent dark:to-background-dark":"bg-gradient-to-b from-transparent to-black/80"),children:(0,d.jsxs)("button",{onClick:p,className:(0,X.cn)("flex items-center gap-2 rounded-lg px-2 py-1.5 text-sm backdrop-blur-sm","system"===x?"bg-gray-500/20 text-gray-900 dark:bg-white/20 dark:text-white":"bg-white/20 text-white",c?"mb-6":"mb-8"),children:[(0,d.jsx)(ec.Z,{className:(0,X.cn)("size-3 transition-transform duration-400",c&&"rotate-180")}),c?"Collapse code":"Expand code"]})})]})]})});function eg({filename:e,children:t}){var r;let{docsConfig:a}=(0,m.useContext)(w.E),n=null==a?void 0:null===(r=a.styling)||void 0===r?void 0:r.codeblocks;return(0,d.jsxs)("div",{className:(0,X.cn)("flex rounded-t-2xl text-gray-400 text-xs leading-6 border-b font-medium","system"===n&&"bg-gray-100/40 dark:bg-black/40 border-gray-200/50 dark:border-gray-800",("dark"===n||void 0==n)&&"bg-black/40 border-gray-900/80"),children:[(0,d.jsx)("div",{className:(0,X.cn)("flex-none border-b px-4 pt-2.5 pb-2 flex items-center","system"===n&&"text-primary dark:text-primary-light border-primary dark:border-primary-light",("dark"===n||void 0==n)&&"text-primary-light border-primary-light"),children:e}),(0,d.jsx)("div",{className:"flex-1 mr-4 flex items-center justify-end",children:t})]})}function ex({textToCopy:e,onCopied:t,className:r}){let[a,n]=(0,m.useState)(!1),[i,s]=(0,m.useState)(!0);if((0,m.useEffect)(()=>{navigator.clipboard?s(!1):(console.warn("The browser's Clipboard API is unavailable. The Clipboard API is only available on HTTPS."),s(!0))},[]),!e||i)return null;let l=async()=>{let r=await (0,ee.v)(e);t&&t(r,e),"success"===r&&(n(!0),setTimeout(()=>{n(!1)},2e3))};return(0,d.jsx)(ev,{onClick:l,isCopiedActive:a,className:r})}function ev({onClick:e,isCopiedActive:t,className:r}){var a;let{docsConfig:n}=(0,m.useContext)(w.E),i=null==n?void 0:null===(a=n.styling)||void 0===a?void 0:a.codeblocks;return(0,d.jsxs)("div",{className:(0,X.cn)("group z-10 relative",r),children:[(0,d.jsx)("button",{className:"h-7 w-7 flex items-center justify-center rounded-md backdrop-blur",onClick:e,"data-testid":"copy-code-button","aria-label":"Copy the contents from the code block",children:t?(0,d.jsx)("svg",{className:(0,X.cn)("system"===i&&"fill-primary dark:fill-primary-light",("dark"===i||void 0==i)&&"fill-primary-light"),width:"16",height:"11",viewBox:"0 0 16 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M14.7813 1.21873C15.0751 1.51248 15.0751 1.98748 14.7813 2.2781L6.53135 10.5312C6.2376 10.825 5.7626 10.825 5.47197 10.5312L1.21885 6.28123C0.925098 5.98748 0.925098 5.51248 1.21885 5.22185C1.5126 4.93123 1.9876 4.9281 2.27822 5.22185L5.99697 8.9406L13.7188 1.21873C14.0126 0.924976 14.4876 0.924976 14.7782 1.21873H14.7813Z"})}):(0,d.jsx)(Y,{icon:"clone",className:(0,X.cn)("w-4 h-4","system"===i&&"bg-gray-400 group-hover:bg-gray-500 dark:bg-white/40 dark:group-hover:bg-white/60",("dark"===i||void 0==i)&&"bg-white/40 group-hover:bg-white/60")})}),(0,d.jsx)(ef,{text:t?"Copied!":"Copy"})]})}function ef({text:e}){return(0,d.jsx)("div",{className:"absolute top-11 left-1/2 transform -translate-x-1/2 -translate-y-1/2 hidden group-hover:block text-white rounded-lg px-1.5 py-0.5 text-xs bg-primary-dark",children:e})}function ey({filename:e,children:t,expandable:r}){let a=(0,G.O)("code_block_copy");return(0,d.jsx)(em,{filename:e,expandable:(null==r?void 0:r.toLowerCase())==="true",onCopied:(e,t)=>a({code:t}),children:t})}var eb=r(62671),ej=r(36383);let ek=(e,t)=>{let[r,a]=(0,ej._)(e,t),[n,i]=(0,m.useState)(!1);return(0,m.useEffect)(()=>{i(!0)},[]),[(0,m.useMemo)(()=>n?r:t,[n,r,t]),a,n]},ew=(0,m.forwardRef)(function({children:e,onCopied:t,onChange:r,isSmallText:a,className:n,...i},s){var l,o,c;let{docsConfig:u}=(0,m.useContext)(w.E),h=m.Children.toArray(e),[p,g,x]=ek("code",""),[v,f]=(0,m.useState)(0);if((0,m.useEffect)(()=>{if(p){let e=h.findIndex(e=>e.props.filename===p);e>=0&&f(e)}},[p]),!e||!x)return null;if(0===h.length)return console.warn("CodeGroup has no children, expected at least one CodeBlock child."),null;let y=null==u?void 0:null===(l=u.styling)||void 0===l?void 0:l.codeblocks;return(0,d.jsxs)(eb.O.Group,{ref:s,as:"div",className:(0,X.cn)("flex flex-col not-prose relative overflow-hidden rounded-2xl ring-1 ring-gray-200 dark:ring-gray-800/50","system"===y&&"bg-white/60 dark:bg-codeblock dark:codeblock-dark text-gray-950 dark:text-gray-50 codeblock-light",("dark"===y||void 0==y)&&"bg-[#0F1117] dark:bg-codeblock text-gray-50 codeblock-dark",n),selectedIndex:v,onChange:e=>{var t;let a=null===(t=h[e])||void 0===t?void 0:t.props.filename;a&&g(a),r&&r(e)},...i,children:[(0,d.jsxs)("div",{className:(0,X.cn)("relative border-b","system"===y&&"border-gray-200/50 dark:border-gray-900/80 bg-gray-100/40 dark:bg-codeblock",("dark"===y||void 0==y)&&"border-gray-900/80 bg-[#0F1117] dark:bg-codeblock"),children:[(0,d.jsx)(eb.O.List,{className:(0,X.cn)("text-xs leading-6 rounded-t-xl flex overflow-x-auto overflow-y-hidden mr-12",...eh(y),n),children:({selectedIndex:e})=>(0,d.jsx)(d.Fragment,{children:h.map((t,r)=>(0,d.jsx)(eL,{myIndex:r,selectedIndex:e,tabsLength:h.length,children:t.props.filename},t.props.filename+"TabItem"+r))})}),(0,d.jsx)("div",{className:"flex h-full absolute top-0 pr-4 right-0 rounded-tr z-10",children:(0,d.jsx)("div",{className:"flex items-center justify-center h-[42px]",children:(0,d.jsx)(ex,{textToCopy:ep(null===(c=h[v])||void 0===c?void 0:null===(o=c.props)||void 0===o?void 0:o.children),onCopied:t})})})]}),(0,d.jsx)(eb.O.Panels,{className:"flex flex-1 overflow-hidden",children:h.map(e=>(0,d.jsx)(eb.O.Panel,{className:(0,X.cn)("flex-none p-5 min-w-full text-sm overflow-x-auto w-full",...eh(y),a?"text-xs leading-[1.35rem]":"leading-6"),style:{fontVariantLigatures:"none"},children:e.props.children},e.props.filename))})]})});function eL({children:e,selectedIndex:t,myIndex:r,tabsLength:a}){var n;let{docsConfig:i}=(0,m.useContext)(w.E),s=t===r,l=null==i?void 0:null===(n=i.styling)||void 0===n?void 0:n.codeblocks;return(0,d.jsxs)(eb.O,{className:(0,X.cn)("group flex items-center relative px-2 pt-2.5 pb-2 outline-none whitespace-nowrap font-medium",s&&"system"===l&&"text-primary dark:text-primary-light",s&&("dark"===l||void 0==l)&&"text-primary-light",!s&&"system"===l&&"text-gray-500 dark:text-gray-400",!s&&("dark"===l||void 0==l)&&"text-gray-400"),children:[(0,d.jsx)("div",{className:(0,X.cn)("px-2 rounded-lg z-10",a>1&&"system"===l&&"group-hover:bg-gray-200/50 dark:group-hover:bg-gray-700/60 group-hover:text-primary dark:group-hover:text-primary-light",a>1&&("dark"===l||void 0==l)&&"group-hover:bg-gray-700/60 group-hover:text-primary-light"),children:e}),s&&(0,d.jsx)("div",{className:"absolute inset-0 border-b pointer-events-none border-primary dark:border-primary-light"})]})}function eV({children:e,isSmallText:t}){let r=(0,G.O)("code_block_copy");return(0,d.jsx)(ew,{isSmallText:t,onCopied:(e,t)=>r({code:t}),children:e})}var eC=r(44964);let eN=q()(()=>Promise.resolve().then(r.bind(r,44964)),{loadableGenerated:{webpack:()=>[44964]},loading:()=>(0,d.jsx)("p",{children:"Loading..."}),ssr:!1}),eM="expandable-content";function eH({title:e,defaultOpen:t=!1,onChange:r,lazy:a,children:n}){let[i,s]=(0,m.useState)(t),[l,o]=(0,m.useState)(t||!a),c=(0,G.O)("expandable_open"),u=(0,G.O)("expandable_close"),h=(0,m.useRef)(null),p=e=>{let t=e.closest(`.${eM}`);for(;t;){var r;let e=t.previousElementSibling;"false"===e.getAttribute("aria-expanded")&&e.click(),t=(null===(r=t.parentElement)||void 0===r?void 0:r.closest(`.${eM}`))??null}};(0,m.useEffect)(()=>{let e=()=>{let e=window.location.hash;if(!e)return;let t=document.getElementById(e.substring(1));t&&h.current&&h.current.contains(t)&&(s(!0),p(t),requestAnimationFrame(()=>{t.scrollIntoView()}))};return e(),window.addEventListener("hashchange",e),()=>{window.removeEventListener("hashchange",e)}},[]);let g=t=>{o(!0),r&&r(t),t?c({title:e}):u({title:e})};return(0,d.jsxs)("div",{role:"listitem",className:"mt-4 border-standard rounded-xl ",children:[(0,d.jsxs)("button",{onClick:()=>{s(!i),g(!i)},className:(0,K.Z)("not-prose text-sm flex flex-row items-center content-center w-full text-gray-600 hover:text-gray-900 dark:text-gray-300 dark:hover:text-gray-200 py-3 px-3.5 hover:bg-gray-50/50 dark:hover:bg-white/5 rounded-t-xl",!i&&"rounded-b-xl"),"aria-controls":"Children attributes","aria-expanded":i,children:[(0,d.jsx)(Y,{icon:"angle-right",className:(0,X.cn)("h-2.5 w-2.5 bg-zinc-400 transition-transform",i&&"rotate-90")}),(0,d.jsx)("div",{className:"ml-3 leading-tight text-left",children:(0,d.jsxs)("p",{className:"m-0",children:[i?"Hide":"Show"," ",e||"child attributes"]})})]}),(0,d.jsx)("div",{id:e+"Children",ref:h,className:(0,K.Z)(eM,"mx-3 px-2 border-t border-gray-100 dark:border-white/10",!i&&"hidden"),children:l&&n})]},e)}var eZ=r(20324),eE=r(31354);let eS={headings:[],apiBaseIndex:0,codeExamples:{},apiPlaygroundInputs:{server:{},path:{},query:{},header:{},cookie:{},body:void 0},pageMetadata:{},selectedBodyContentType:void 0,selectedResponseContentType:void 0,tableOfContents:[]},eO=(e,t)=>{switch(t.type){case"set_state":return{...e,...t.payload};case"register_heading":let{id:r,top:a}=t.payload;return{...e,headings:[...e.headings.filter(e=>r!==e.id),{id:r,top:a}]};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"set_api_playground_inputs":return{...e,apiPlaygroundInputs:t.payload}}},eT=e=>(0,m.useReducer)(eO,{...eS,...e}),eI=(0,m.createContext)([eS,()=>null]);eI.displayName="MDXContentContext";let eP=()=>(0,m.useContext)(eI);function e_(e){let[t,r]=(0,m.useState)(),a=e?e.top:void 0;return(0,m.useEffect)(()=>{if(void 0===a)return;let e=a+window.pageYOffset;e!==t&&r(e)},[a,t]),t}function eA({level:e,id:t,children:r,className:a="",hidden:n=!1,style:i={},...s}){let l=`h${e}`,[o,c]=eP(),[u,h]=(0,m.useState)(null),[p]=(0,eE.E)(h),g=e_(u),x=(0,m.useCallback)(()=>{(0,ee.v)(`https://${window.location.host}${window.location.pathname}#${t}`),window.location.hash=t;let e=document.getElementById(t);e&&e.scrollIntoView()},[t]),v=!!o;return(0,m.useEffect)(()=>{if(v)return void 0!==g&&c({type:"register_heading",payload:{id:t,top:g}}),()=>{c({type:"unregister_heading",payload:t})}},[g,t,v,c]),(0,d.jsxs)(l,{className:(0,K.Z)("flex whitespace-pre-wrap group",a,{"text-2xl sm:text-3xl mt-8":"h1"===l}),id:t,ref:p,style:{...n?{marginBottom:0}:{},...i},...s,children:[!n&&(0,d.jsx)("div",{className:"absolute",children:(0,d.jsxs)("a",{href:`#${t}`,className:"-ml-10 flex items-center opacity-0 border-0 group-hover:opacity-100","aria-label":"Navigate to header",onClick:x,children:["​",(0,d.jsx)("div",{className:"w-6 h-6 text-gray-400 rounded-md flex items-center justify-center zinc-box bg-white ring-1 ring-gray-400/30 dark:ring-gray-700/25 hover:ring-gray-400/60 dark:hover:ring-white/20",children:(0,d.jsx)(eo.xP,{})})]})}),(0,d.jsx)("span",{className:(0,K.Z)("cursor-pointer",n&&"sr-only"),onClick:x,children:r})]})}let e$=q()(()=>Promise.all([r.e(7324),r.e(4602),r.e(7623)]).then(r.bind(r,97623)).then(e=>e.Mermaid),{loadableGenerated:{webpack:()=>[97623]},ssr:!1}),eB=({options:e,selectedIndex:t,onSelectOption:r})=>(0,d.jsxs)("div",{className:"px-2 py-0.5 font-mono text-xs font-medium flex items-center rounded-md space-x-1.5 bg-gray-100/70 dark:bg-white/10 text-gray-600 dark:text-gray-200",children:[(0,d.jsx)("select",{className:"bg-transparent focus:outline-0 cursor-pointer",onChange:e=>null==r?void 0:r(e.target.selectedIndex),value:t,children:e.map((e,t)=>(0,d.jsx)("option",{value:t,children:e},t))}),(0,d.jsx)(Y,{icon:"angle-down",className:"h-2 w-2 bg-gray-600 dark:bg-gray-200"})]});function ez({children:e,prefix:t,className:r}){return(0,d.jsxs)("div",{className:(0,X.cn)("flex items-center px-2 py-0.5 rounded-md bg-gray-100/50 dark:bg-white/5 text-gray-600 dark:text-gray-200 font-medium",r),children:[t&&(0,d.jsx)("span",{className:"text-gray-400 dark:text-gray-500",children:t}),(0,d.jsx)("div",{children:e})]})}function eq(){return(0,d.jsx)("span",{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",children:"required"})}function eF(){return(0,d.jsx)("span",{className:"px-2 py-0.5 rounded-md bg-amber-100/50 dark:bg-amber-400/10 text-amber-600 dark:text-amber-300 font-medium",children:"deprecated"})}function eR({name:e,typeLabel:t,location:r,required:a,deprecated:n,fieldType:i,defaultValue:s,typeOptions:l,selectedTypeOptionIndex:o,onSelectTypeOption:c,parentName:u,id:h}){let p=h??(0,D.Z)(`${i?`${i}-`:""}${u?`${u}-`:""}${e}`,{decamelize:!0}),g=(0,m.useCallback)(()=>{p&&((0,ee.v)(window.location.href.split("#")[0]+"#"+p),window.location.hash=p)},[p]);return(0,d.jsx)(d.Fragment,{children:e&&(0,d.jsx)("div",{className:"flex font-mono text-sm group/param-head param-head",id:p,children:(0,d.jsx)("div",{className:"flex-1 flex content-start py-0.5 mr-5",children:(0,d.jsxs)("div",{className:"flex items-center flex-wrap gap-2",children:[p&&(0,d.jsx)("div",{className:"absolute",children:(0,d.jsxs)("a",{href:`#${p}`,className:(0,X.cn)(u?"-ml-[2.1rem]":"-ml-10","flex items-center opacity-0 border-0 group-hover/param-head:opacity-100 py-2 [.expandable-content_&]:-ml-[2.1rem]"),"aria-label":"Navigate to header",onClick:g,children:["​",(0,d.jsx)("div",{className:"w-6 h-6 text-gray-400 rounded-md flex items-center justify-center zinc-box bg-white ring-1 ring-gray-400/30 dark:ring-gray-700/25 hover:ring-gray-400/60 dark:hover:ring-white/20",children:(0,d.jsx)(eo.xP,{})})]})}),(0,d.jsxs)("div",{className:"font-semibold text-primary dark:text-primary-light cursor-pointer",onClick:g,children:[(0,d.jsx)("span",{className:"text-gray-500 dark:text-gray-400",children:u}),e]}),(0,d.jsxs)("div",{className:"flex items-center space-x-2 text-xs font-medium",children:[l&&l.length>1&&c?(0,d.jsx)(eB,{options:l,selectedIndex:o,onSelectOption:c}):t&&(0,d.jsx)(ez,{children:t}),r&&(0,d.jsx)(ez,{children:r}),null!=s&&(0,d.jsx)(ez,{prefix:"default:",children:"string"==typeof s?s:JSON.stringify(s)}),a&&(0,d.jsx)(eq,{}),n&&(0,d.jsx)(eF,{})]})]})})})})}function eD({name:e,type:t,location:r,defaultValue:a,required:n=!1,deprecated:i=!1,hidden:s=!1,id:l,children:o}){let c=(0,m.useMemo)(()=>{if("object"==typeof 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,d.jsxs)("div",{className:"pt-2.5 pb-5 my-2.5 border-gray-50 dark:border-gray-800/50 border-b",children:[(0,d.jsx)(eR,{name:e,typeLabel:t,location:r,required:n,deprecated:i,defaultValue:c,id:l}),o&&(0,d.jsx)("div",{className:"mt-4 prose-sm prose-gray dark:prose-invert [&_.prose>p:first-child]:mt-0 [&_.prose>p:last-child]:mb-0",children:o})]})}var eW=r(48090);let eU=(e,t)=>{let r=0,a=0,n="";for(;a<t.length;)e[r]!=t[a]||r==e.length?n+=t[a]:r++,a++;return{result:n,from:r,to:a}},eG=(e,t)=>e.reduce((e,r)=>(e.some(e=>t(r,e))||e.push(r),e),[]),eJ=(e,t)=>{let r=(0,m.useRef)(null),[a,n]=(0,m.useState)(!1),[i,s]=(0,m.useState)(!1),l=(0,m.useRef)([]),o=i||t;(0,m.useEffect)(()=>{var e;(null===(e=r.current)||void 0===e?void 0:e.innerHTML)===""&&n(!0)},[]),(0,m.useEffect)(()=>{s(!0)},[]);let d=(0,m.useRef)(0);return(0,m.useEffect)(()=>{if(e){var t;if(void 0!=r.current&&r.current.innerHTML.length>0&&(r.current.children.length>1||((null===(t=r.current.children[0])||void 0===t?void 0:t.innerHTML.length)??0)>0)){l.current=[...l.current,r.current.innerHTML.trim()];let e=eG(l.current,(e,t)=>e==t);if(l.current=e,e.length>1){let t=e.map((t,r)=>{let a=e[r-1]&&e[r-1];return{html:t,diff:e[r-1]&&a&&{expected:eU(t,a),actual:eU(a,t)}}});e.length>d.current&&(d.current=e.length,console.warn(`⚠️Found hydration mismatch.`,t))}}}}),(0,m.useEffect)(()=>{e&&(!o||a)&&console.warn("⚠️Avoiding hydration client rerender")},[e,r,a,o]),{render:a||o,ref:r}},eK=({children:e,as:t,hydrateRerender:r=!1,printConsoleWarnings:a=k.TQ,...n})=>{let{render:i,ref:s}=eJ(a,r),l=t||typeof m.Fragment;return i?(0,m.createElement)(l,{...n,ref:s},e):(0,m.createElement)(l,{...n,ref:s,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:(0,eW.Dq)((0,d.jsx)(d.Fragment,{children:e}))}})},eY=e=>(0,d.jsx)(eK,{as:"span",...e}),eQ=({stepNumber:e=1,icon:t,iconType:r,title:a,children:n,titleSize:i="p",isLast:s=!1})=>{let l="string"==typeof t?(0,d.jsx)(Q,{icon:t,iconType:r,className:"h-3.5 w-3.5 bg-gray-800 dark:bg-white",overrideColor:!0}):void 0===t?e:t;return(0,d.jsxs)("div",{role:"listitem",className:"relative flex items-start pb-2",children:[(0,d.jsx)("div",{className:(0,K.Z)("absolute w-px h-[calc(100%-2.75rem)] top-[2.75rem]",s?"bg-transparent bg-gradient-to-b from-gray-200 dark:from-white/10 via-80% to-transparent":"bg-gray-200/70 dark:bg-white/10")}),(0,d.jsx)("div",{className:"absolute ml-[-14px] py-2",children:(0,d.jsx)("div",{className:"w-7 h-7 shrink-0 rounded-lg bg-gray-100 dark:text-white dark:bg-[#26292E] text-sm text-gray-800 font-semibold flex items-center justify-center",children:l})}),(0,d.jsxs)("div",{className:"w-full overflow-hidden pl-12 pr-px",children:[{p:(0,d.jsx)("p",{className:"mt-2 font-semibold prose dark:prose-invert text-gray-900 dark:text-gray-200",children:a}),h2:(0,d.jsx)("h2",{className:"mt-2",children:a}),h3:(0,d.jsx)("h3",{className:"mt-2",children:a})}[i],(0,d.jsx)("div",{children:n})]})]})};function eX({title:e,isActive:t=!0,children:r}){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("button",{className:(0,K.W)("flex text-sm leading-6 font-semibold whitespace-nowrap pt-3 pb-2.5 -mb-px max-w-max border-b",t?"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"),children:e}),r?(0,d.jsx)("div",{className:"prose dark:prose-dark",children:r}):null]})}function e0({children:e,defaultTabIndex:t=0,onClickTab:r,className:a}){var n,i;let[s,l]=(0,m.useState)(t),o=m.Children.toArray(e),c=null===(i=o[s])||void 0===i?void 0:null===(n=i.props)||void 0===n?void 0:n.children;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("ul",{className:(0,K.Z)("not-prose mb-6 pb-[1px] flex-none min-w-full overflow-auto border-b border-gray-200 space-x-6 flex dark:border-gray-200/10",a),children:o.map((e,t)=>{var a;return(0,d.jsx)("li",{className:"cursor-pointer",onClick:()=>{l(t),null==r||r(t)},children:(0,d.jsx)(eX,{title:(null===(a=e.props)||void 0===a?void 0:a.title)??"Tab Title",isActive:t===s})},e.key)})}),(0,d.jsx)("div",{className:"prose dark:prose-dark",children:c})]})}var e1=r(14806);let e2=(0,m.forwardRef)(({children:e,label:t,id:r,description:a,className:n,...i},s)=>{let[l,o]=eP(),[c,u]=(0,m.useState)(null),[h]=(0,eE.E)(u),p=e_(c),g=!!l;(0,m.useEffect)(()=>{if(g)return void 0!==p&&o({type:"register_heading",payload:{id:r,top:p}}),()=>{o({type:"unregister_heading",payload:r})}},[p,r,g,o]);let x=(0,m.useCallback)(()=>{(0,ee.v)(`https://${window.location.host}${window.location.pathname}#${r}`),window.location.hash=r;let e=document.getElementById(r);e&&e.scrollIntoView()},[r]);return(0,d.jsxs)("div",{className:(0,X.cn)("flex flex-col relative items-start w-full lg:flex-row gap-2 lg:gap-6 py-8 update-container",n),ref:s,id:r,...i,children:[(0,d.jsxs)("div",{className:"lg:sticky top-[var(--scroll-mt)] group flex flex-col w-full lg:w-[160px] items-start flex-shrink-0 justify-start",children:[(0,d.jsx)("div",{className:"absolute",children:(0,d.jsxs)("a",{href:`#${r}`,className:"-ml-10 flex items-center opacity-0 border-0 group-hover:opacity-100","aria-label":"Navigate to changelog",children:["​",(0,d.jsx)("div",{className:"w-6 h-6 text-gray-400 rounded-md flex items-center justify-center zinc-box bg-white ring-1 ring-gray-400/30 dark:ring-gray-700/25 hover:ring-gray-400/60 dark:hover:ring-white/20",children:(0,d.jsx)(eo.xP,{})})]})}),(0,d.jsx)("div",{className:"cursor-pointer px-2 py-1 rounded-lg text-sm flex items-center flex-grow-0 justify-center font-medium bg-primary/10 text-primary dark:text-primary-light",onClick:x,children:t}),a&&(0,d.jsx)("div",{className:"px-1 text-secondary dark:text-secondary-light mt-3 text-sm",children:a})]}),(0,d.jsx)("div",{className:"flex-1 overflow-hidden px-0.5",ref:h,children:(0,d.jsx)("div",{className:"prose-sm",children:e})})]})});e2.displayName="Update";let e4=q()(()=>r.e(2208).then(r.bind(r,12208)).then(e=>e.default),{loadableGenerated:{webpack:()=>[12208]},ssr:!1}),e5=({children:e,noZoom:t})=>t?(0,d.jsx)(d.Fragment,{children:e}):(0,d.jsx)(e4,{wrapElement:"span",zoomMargin:50,children:e}),e3={Accordion:function({title:e,description:t,defaultOpen:r=!1,icon:a,iconType:n,children:i}){let s=(0,G.O)("accordion_open"),l=(0,G.O)("accordion_close"),o="string"==typeof a?(0,d.jsx)(Q,{icon:a,iconType:n,className:"w-4 h-4"}):a;return(0,d.jsx)(ei,{title:e,description:t,defaultOpen:r,onChange:t=>{t?s({title:e}).catch(console.error):l({title:e}).catch(console.error)},icon:o,children:i})},AccordionGroup:function({children:e}){return(0,d.jsx)("div",{className:"[&>div]:border-0 [&>div]:rounded-none [&>div>button]:rounded-none [&>div]:mb-0 overflow-hidden mt-0 mb-3 rounded-xl prose prose-gray dark:prose-invert divide-y divide-inherit border dark:border-gray-800/50",children:e})},Heading:eA,Card:function({title:e,icon:t,iconType:r,color:a,horizontal:n,href:i,img:s,children:l,disabled:o,cta:c}){let u="string"==typeof t?(0,d.jsx)(Q,{icon:t,iconType:r,color:a,className:"h-6 w-6 bg-primary dark:bg-primary-light",overrideColor:!0}):t;o&&(i=void 0);let h={className:(0,X.cn)(i&&"hover:!border-primary dark:hover:!border-primary-light"),title:e,icon:u,img:s,horizontal:n,href:i,children:l,cta:c},p=(0,m.forwardRef)((e,t)=>(0,d.jsx)(ed,{...e,mRef:t}));return(p.displayName="RefCard",i&&(i.startsWith("/")||i.startsWith("#")))?(0,d.jsx)(R(),{href:i,passHref:!0,legacyBehavior:!0,children:(0,d.jsx)(p,{...h})}):(0,d.jsx)(ed,{...h})},CardGroup:function({children:e,cols:t=2,className:r}){let a="";switch(t){case 1:a="sm:grid-cols-1";break;case 2:a="sm:grid-cols-2";break;case 3:a="sm:grid-cols-3";break;case 4:a="sm:grid-cols-4";break;default:a=""}return(0,d.jsx)("div",{className:(0,K.Z)("not-prose grid gap-x-4",a,r),children:e})},Check:function({children:e}){return(0,d.jsx)(es,{icon:(0,d.jsx)("svg",{className:"text-green-600 dark:text-green-400/80 w-3.5 h-auto",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512","aria-label":"Check",children:(0,d.jsx)("path",{d:"M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"})}),className:"border border-emerald-500/20 bg-emerald-50/50 dark:border-emerald-500/30 dark:bg-emerald-500/10",childrenClassName:"text-emerald-900 dark:text-emerald-200",children:e})},CodeGroup:eV,CodeBlock:ey,CustomCode:q()(()=>Promise.all([r.e(6487),r.e(8917),r.e(6139),r.e(5922)]).then(r.bind(r,25922)).then(e=>e.CustomCode),{loadableGenerated:{webpack:()=>[25922]},ssr:!1}),CustomComponent:eC.default,DynamicCustomComponent:eN,Expandable:eH,Frame:function({as:e="div",caption:t,style:r,className:a,containerClassName:n,children:i,hint:s}){return(0,d.jsxs)("div",{className:n,children:[void 0!==s&&(0,d.jsxs)("div",{className:"not-prose mb-4 flex items-center space-x-2",children:[(0,d.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",className:"flex-none w-4 h-4 fill-gray-400 dark:fill-gray-300",children:(0,d.jsx)("path",{d:"M224 320c0 17.69 14.33 32 32 32h64c17.67 0 32-14.31 32-32s-14.33-32-32-32h-64C238.3 288 224 302.3 224 320zM267.6 256H352c17.67 0 32-14.31 32-32s-14.33-32-32-32h-80v40C272 240.5 270.3 248.5 267.6 256zM272 160H480c17.67 0 32-14.31 32-32s-14.33-32-32-32h-208.8C271.5 98.66 272 101.3 272 104V160zM320 416c0-17.69-14.33-32-32-32H224c-17.67 0-32 14.31-32 32s14.33 32 32 32h64C305.7 448 320 433.7 320 416zM202.1 355.8C196 345.6 192 333.3 192 320c0-5.766 1.08-11.24 2.51-16.55C157.4 300.6 128 269.9 128 232V159.1C128 151.2 135.2 144 143.1 144S160 151.2 159.1 159.1l0 69.72C159.1 245.2 171.3 271.1 200 271.1C222.1 271.1 240 254.1 240 232v-128C240 81.91 222.1 64 200 64H136.6C103.5 64 72.03 80 52.47 106.8L26.02 143.2C9.107 166.5 0 194.5 0 223.3V312C0 387.1 60.89 448 136 448h32.88C163.4 438.6 160 427.7 160 416C160 388.1 178 364.6 202.1 355.8z"})}),(0,d.jsx)("p",{className:"text-gray-700 text-sm font-medium dark:text-gray-200",children:s})]}),(0,d.jsxs)(e,{style:r,className:"p-2 not-prose relative bg-gray-50/50 rounded-2xl overflow-hidden dark:bg-gray-800/25",children:[(0,d.jsx)("div",{style:{backgroundPosition:"10px 10px"},className:"absolute inset-0 bg-grid-neutral-200/20 [mask-image:linear-gradient(0deg,#fff,rgba(255,255,255,0.6))] dark:bg-grid-white/5 dark:[mask-image:linear-gradient(0deg,rgba(255,255,255,0.1),rgba(255,255,255,0.5))]"}),(0,d.jsx)("div",{className:(0,eZ.m6)("relative rounded-xl overflow-hidden flex justify-center",a),children:i}),t&&(0,d.jsx)("div",{className:(0,eZ.m6)("relative rounded-2xl flex justify-center mt-3 pt-0 px-8 pb-2 text-sm text-gray-700 dark:text-gray-400",a),children:(0,d.jsx)("p",{children:t})}),(0,d.jsx)("div",{className:(0,K.W)("absolute inset-0 pointer-events-none border border-black/5 rounded-2xl dark:border-white/5")})]})]})},Info:function({children:e}){return(0,d.jsx)(es,{icon:(0,d.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"flex-none w-5 h-5 text-zinc-400 dark:text-zinc-300","aria-label":"Info",children:(0,d.jsx)("path",{d:"M8 0C3.58125 0 0 3.58125 0 8C0 12.4187 3.58125 16 8 16C12.4187 16 16 12.4187 16 8C16 3.58125 12.4187 0 8 0ZM8 14.5C4.41563 14.5 1.5 11.5841 1.5 8C1.5 4.41594 4.41563 1.5 8 1.5C11.5844 1.5 14.5 4.41594 14.5 8C14.5 11.5841 11.5844 14.5 8 14.5ZM9.25 10.5H8.75V7.75C8.75 7.3375 8.41563 7 8 7H7C6.5875 7 6.25 7.3375 6.25 7.75C6.25 8.1625 6.5875 8.5 7 8.5H7.25V10.5H6.75C6.3375 10.5 6 10.8375 6 11.25C6 11.6625 6.3375 12 6.75 12H9.25C9.66406 12 10 11.6641 10 11.25C10 10.8359 9.66563 10.5 9.25 10.5ZM8 6C8.55219 6 9 5.55219 9 5C9 4.44781 8.55219 4 8 4C7.44781 4 7 4.44687 7 5C7 5.55313 7.44687 6 8 6Z"})}),className:"border border-zinc-500/20 bg-zinc-50/50 dark:border-zinc-500/30 dark:bg-zinc-500/10",childrenClassName:"text-zinc-900 dark:text-zinc-200",children:e})},Icon:function({icon:e,iconType:t,color:r,size:a}){return(0,d.jsx)("p",{className:"icon",children:(0,d.jsx)(Q,{icon:e,iconType:t,color:r,style:{width:a||16,height:a||16},className:(0,X.cn)(!r&&"bg-primary dark:bg-primary-light","icon")})})},Link:R(),Note:function({children:e}){return(0,d.jsx)(es,{icon:(0,d.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4 text-sky-500","aria-label":"Note",children:(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 1.3C10.14 1.3 12.7 3.86 12.7 7C12.7 10.14 10.14 12.7 7 12.7C5.48908 12.6974 4.0408 12.096 2.97241 11.0276C1.90403 9.9592 1.30264 8.51092 1.3 7C1.3 3.86 3.86 1.3 7 1.3ZM7 0C3.14 0 0 3.14 0 7C0 10.86 3.14 14 7 14C10.86 14 14 10.86 14 7C14 3.14 10.86 0 7 0ZM8 3H6V8H8V3ZM8 9H6V11H8V9Z"})}),className:"border border-sky-500/20 bg-sky-50/50 dark:border-sky-500/30 dark:bg-sky-500/10",childrenClassName:"text-sky-900 dark:text-sky-200",children:e})},ParamField:function({query:e,path:t,body:r,header:a,children:n,default:i,type:s,location:l,required:o=!1,deprecated:c=!1,hidden:u=!1,id:h}){let p=e||t||r||a;return null==p?null:(0,d.jsx)(eD,{name:p,defaultValue:i,type:s,location:l,required:o,deprecated:c,hidden:u,id:h,children:n})},RequestExample:function({children:e}){return(0,d.jsx)("div",{className:"block xl:hidden mt-8",id:s.RequestExample,children:(0,d.jsx)(eV,{children:e})})},ResponseExample:function({children:e}){return(0,d.jsx)("div",{className:"block xl:hidden mt-8",id:s.ResponseExample,children:(0,d.jsx)(eV,{children:e})})},ResponseField:function({name:e,type:t,hidden:r,default:a,required:n,deprecated:i,children:s,id:l}){return(0,d.jsx)(eD,{name:e,type:t,hidden:r,defaultValue:a,required:n,deprecated:i,id:l,children:s})},Step:eQ,Steps:({children:e,titleSize:t})=>(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{role:"list",className:(0,K.Z)("ml-3.5 mt-10 mb-6"),children:Array.isArray(e)?e.map(({props:r},a)=>(0,d.jsx)(eQ,{...r,stepNumber:r.stepNumber??a+1,titleSize:t||"p",isLast:a===e.length-1},`${r.title} + ${a}`)):e})}),Tab:eX,Tabs:e0,Tip:function({children:e}){return(0,d.jsx)(es,{icon:(0,d.jsx)("svg",{width:"11",height:"14",viewBox:"0 0 11 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-emerald-600 dark:text-emerald-400/80 w-3.5 h-auto","aria-label":"Tip",children:(0,d.jsx)("path",{d:"M3.12794 12.4232C3.12794 12.5954 3.1776 12.7634 3.27244 12.907L3.74114 13.6095C3.88471 13.8248 4.21067 14 4.46964 14H6.15606C6.41415 14 6.74017 13.825 6.88373 13.6095L7.3508 12.9073C7.43114 12.7859 7.49705 12.569 7.49705 12.4232L7.50055 11.3513H3.12521L3.12794 12.4232ZM5.31288 0C2.52414 0.00875889 0.5 2.26889 0.5 4.78826C0.5 6.00188 0.949566 7.10829 1.69119 7.95492C2.14321 8.47011 2.84901 9.54727 3.11919 10.4557C3.12005 10.4625 3.12175 10.4698 3.12261 10.4771H7.50342C7.50427 10.4698 7.50598 10.463 7.50684 10.4557C7.77688 9.54727 8.48281 8.47011 8.93484 7.95492C9.67728 7.13181 10.1258 6.02703 10.1258 4.78826C10.1258 2.15486 7.9709 0.000106649 5.31288 0ZM7.94902 7.11267C7.52078 7.60079 6.99082 8.37878 6.6077 9.18794H4.02051C3.63739 8.37878 3.10743 7.60079 2.67947 7.11294C2.11997 6.47551 1.8126 5.63599 1.8126 4.78826C1.8126 3.09829 3.12794 1.31944 5.28827 1.3126C7.2435 1.3126 8.81315 2.88226 8.81315 4.78826C8.81315 5.63599 8.50688 6.47551 7.94902 7.11267ZM4.87534 2.18767C3.66939 2.18767 2.68767 3.16939 2.68767 4.37534C2.68767 4.61719 2.88336 4.81288 3.12521 4.81288C3.36705 4.81288 3.56274 4.61599 3.56274 4.37534C3.56274 3.6515 4.1515 3.06274 4.87534 3.06274C5.11719 3.06274 5.31288 2.86727 5.31288 2.62548C5.31288 2.38369 5.11599 2.18767 4.87534 2.18767Z"})}),className:"border border-emerald-500/20 bg-emerald-50/50 dark:border-emerald-500/30 dark:bg-emerald-500/10",childrenClassName:"text-emerald-900 dark:text-emerald-200",children:e})},Tooltip:e1.u,SnippetGroup:function(e){return(0,d.jsx)(eV,{...e})},Warning:function({children:e}){return(0,d.jsx)(es,{icon:(0,d.jsx)("svg",{className:"flex-none w-5 h-5 text-amber-400 dark:text-amber-300/80",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-label":"Warning",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),className:"border border-amber-500/20 bg-amber-50/50 dark:border-amber-500/30 dark:bg-amber-500/10",childrenClassName:"text-amber-900 dark:text-amber-200",children:e})},Latex:function({children:e}){return(0,d.jsx)("span",{className:"latex-style inline text-inherit p-0",children:e})},ZoomImage:e5,Mermaid:e$,Update:e2,pre:e=>(0,d.jsx)(eK,{as:"pre",...e}),code:e=>(0,d.jsx)(eK,{as:"code",...e}),span:eY},e6=()=>{let e=(0,B.u)();(0,m.useEffect)(()=>{let t;let a=!1;return(async()=>{let{default:n}=await r.e(7413).then(r.bind(r,17413));a||(t=n()).on("reload",()=>{e.reload()})})(),()=>{a=!0,null==t||t.disconnect()}},[e])},e7=()=>(e6(),(0,d.jsx)(d.Fragment,{}));var e8=r(26215),e9=r(65289),te=r(10084),tt=r(36023),tr=r.n(tt),ta=r(21805),tn=r(55654),ti=r.n(tn);let ts="mintlify-auth-key";function tl(e,t){let r=td(),a=JSON.stringify(t),n=tr().AES.encrypt(a,r).toString();localStorage.setItem(e,n)}function to(e,t){let r=td(),a=localStorage.getItem(e);if(null!=a)try{let e=tr().AES.decrypt(a,r).toString(tr().enc.Utf8),n=JSON.parse(e);if(!t||t(n))return n}catch(e){console.log(`unable to decrypt stored credentials: ${e}`)}}let td=()=>{let e=ta.Z.get(ts);if(void 0!==e)return e;let t=ti()();return ta.Z.set(ts,t,{secure:"https:"===location.protocol,sameSite:"strict"}),t},tc="mintlify-user-info";function tu(e){if(!e)return null;let t=to(tc,tp);if(!t)return null;let r="shared-session"===e.type?k.Wj:k.ZF,a=t.data.expiresAt?1e3*t.data.expiresAt:t.retrievedAt+r;return Date.now()>a||e.invalidatedAt&&e.invalidatedAt>t.retrievedAt?null:t.data}function th(e){return!!e&&"object"==typeof e&&(!("expiresAt"in e)||"number"==typeof e.expiresAt)&&(!("groups"in e)||Array.isArray(e.groups)&&e.groups.every(e=>"string"==typeof e))&&(!("content"in e)||!!e.content&&"object"==typeof e.content)&&(!("apiPlaygroundInputs"in e)||!!e.apiPlaygroundInputs&&"object"==typeof e.apiPlaygroundInputs&&(!("header"in e.apiPlaygroundInputs)||!!e.apiPlaygroundInputs.header&&"object"==typeof e.apiPlaygroundInputs.header)&&(!("cookie"in e.apiPlaygroundInputs)||!!e.apiPlaygroundInputs.cookie&&"object"==typeof e.apiPlaygroundInputs.cookie)&&(!("query"in e.apiPlaygroundInputs)||!!e.apiPlaygroundInputs.query&&"object"==typeof e.apiPlaygroundInputs.query)&&(!("server"in e.apiPlaygroundInputs)||!!e.apiPlaygroundInputs.server&&"object"==typeof e.apiPlaygroundInputs.server))}function tp(e){return!!e&&"object"==typeof e&&"retrievedAt"in e&&"number"==typeof e.retrievedAt&&"data"in e&&th(e.data)}async function tm(e,t,a){let n;let[i,s]=function(e){if(tg(e))return[e,null];let t=new URLSearchParams(e),r=t.get("jwt");return r&&tg(r)?[r,t.get("anchor")]:[null,null]}(location.hash.slice(1));if(!i){let t=tu(e);if(t){a(t);return}localStorage.removeItem(tc);return}let{importSPKI:l,jwtVerify:o}=await r.e(7160).then(r.bind(r,57160));for(let t of e.signingKeys)try{let e=178===t.publicKey.length?"ES256":"EdDSA",r=await l(t.publicKey,e),{payload:a}=await o(i,r);for(let e of["aud","exp","iat","iss","jti","nbf","sub"])delete a[e];n=a;break}catch(e){console.error(e)}th(n)&&a(n);let d=s?`#${s}`:"";await t.replace(`${location.pathname}${location.search}${d}`)}function tg(e){var t;return e.startsWith("ey")&&(null===(t=e.match(/\./g))||void 0===t?void 0:t.length)===2}var tx=r(59224);let tv="mintlify-pkce-code-verifier";async function tf(e,t){let{code_challenge:r,code_verifier:a}=await (0,tx.ZP)(),n=new URL(e.authorizationUrl);n.searchParams.append("response_type","code"),n.searchParams.append("client_id",e.clientId),n.searchParams.append("redirect_uri",window.location.origin+t+k.EV),e.scopes.length&&n.searchParams.append("scope",e.scopes.join(" ")),n.searchParams.append("code_challenge",r),n.searchParams.append("code_challenge_method","S256");let i=new Date(Date.now()+10*k.AG);ta.Z.set(tv,a,{secure:!0,expires:i}),window.location.href=n.href}async function ty(e,t,r){let a=new URL(window.location.href),n=a.searchParams.get("code");if(!n){let t=tu(e);if(t){r(t);return}localStorage.removeItem(tc);return}let i=await tb(e,n);th(i)&&r(i),a.search="",await t.push(a)}async function tb(e,t){let r,a;let n=ta.Z.get(tv);if(!n){console.error("missing code verifier");return}try{r=await tj(e,t,n)}catch(e){console.error(`unable to complete oauth exchange request: ${e}`);return}try{let t=await fetch(e.apiUrl,{headers:{Authorization:`Bearer ${r}`}});a=await t.json()}catch(e){console.error(`unable to complete oauth api request: ${e}`);return}return a}async function tj(e,t,r){let a=new URL(e.tokenUrl);a.searchParams.append("grant_type","authorization_code"),a.searchParams.append("client_id",e.clientId),a.searchParams.append("redirect_uri",window.location.origin),a.searchParams.append("code",t),a.searchParams.append("code_verifier",r);let n=await fetch(a,{method:"POST"}),{access_token:i}=await n.json();if("string"!=typeof i)throw Error("unable to parse access_token from oauth exchange response");return i}async function tk(e,t){let r;let a=tu(e);if(a){t(a);return}localStorage.removeItem(tc);try{let t=await fetch(e.apiUrl,{credentials:"include"});if(!t.ok)return;r=await t.json()}catch{return}th(r)&&t(r)}var tw=r(81438);function tL(e){let{appId:t,children:r}=e;return void 0===t?(0,d.jsx)(d.Fragment,{children:r}):(0,d.jsx)(tw.H,{...e,appId:t})}function tV({frontchat:e}){return(null==e?void 0:e.snippetId)?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(p(),{strategy:"beforeInteractive",src:"https://chat-assets.frontapp.com/v1/chat.bundle.js"}),(0,d.jsx)(p(),{id:"frontchat",strategy:"afterInteractive",children:`window.FrontChat('init', {chatId: '${e.snippetId}', useDefaultLauncher: true});`})]}):null}function tC({osano:e}){return(null==e?void 0:e.scriptSource)&&e.scriptSource.startsWith("https://cmp.osano.com/")&&e.scriptSource.endsWith("/osano.js")?(0,d.jsx)(p(),{strategy:"beforeInteractive",id:"osano",src:e.scriptSource}):null}var tN=()=>{var e;let{docsConfig:t}=(0,m.useContext)(w.E);return k.XK?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(function(){var e;return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(tC,{osano:null==t?void 0:null===(e=t.integrations)||void 0===e?void 0:e.osano})})},{}),(0,d.jsx)(tV,{frontchat:null==t?void 0:null===(e=t.integrations)||void 0===e?void 0:e.frontchat})]}):null},tM=r(26741);let tH=()=>{let[e]=eP();return{isWide:(0,m.useMemo)(()=>"wide"===e.pageMetadata.mode,[e.pageMetadata.mode]),isCenter:(0,m.useMemo)(()=>"center"===e.pageMetadata.mode,[e.pageMetadata.mode]),isCustom:(0,m.useMemo)(()=>"custom"===e.pageMetadata.mode,[e.pageMetadata.mode])}};function tZ({className:e}){let{mintConfig:t}=(0,m.useContext)(w.E),r="w-auto h-7 relative object-contain";return"object"==typeof(null==t?void 0:t.logo)?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("img",{className:(0,X.cn)(r,"block dark:hidden",e),src:t.logo.light,alt:"light logo"}),(0,d.jsx)("img",{className:(0,X.cn)(r,"hidden dark:block",e),src:t.logo.dark,alt:"dark logo"})]}):(null==t?void 0:t.logo)?(0,d.jsx)("img",{className:(0,X.cn)(r,e),src:t.logo,alt:"logo"}):(null==t?void 0:t.name)?(0,d.jsx)("div",{className:(0,X.cn)("inline-block text-2xl sm:text-3xl font-extrabold text-gray-900 tracking-tight dark:text-gray-200",e),children:t.name}):(0,d.jsx)(d.Fragment,{})}let tE=(e,t)=>{var r;return(null==e?void 0:null===(r=e[t])||void 0===r?void 0:r.status)==="ENABLED"};function tS(e){var t;return"string"==typeof e.logo?"/":(null===(t=e.logo)||void 0===t?void 0:t.href)||"/"}var tO=r(19456);let tT=[{value:"system",icon:eo.rc},{value:"light",icon:eo.NW},{value:"dark",icon:tO.Z}],tI=()=>{var e,t;let{docsConfig:r}=(0,m.useContext)(w.E),[a,n]=(0,m.useState)((null==r?void 0:null===(e=r.appearance)||void 0===e?void 0:e.default)??"system");return((0,m.useEffect)(()=>{let e=()=>{var e;let t=localStorage.getItem("isDarkMode");t?"true"===t?n("dark"):"false"===t&&n("light"):n("system"),null===(e=document.getElementById("navbar-transition"))||void 0===e||e.classList.remove("transition-colors","duration-500")};return e(),window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}},[n]),(null==r?void 0:null===(t=r.appearance)||void 0===t?void 0:t.strict)===!0)?null:(0,d.jsx)("div",{className:"flex items-center gap-2",children:tT.map(e=>(0,d.jsx)("button",{"aria-label":`Switch to ${e.value} theme`,"data-testid":`mode-switch-${e.value}`,className:(0,X.cn)("p-1.5 rounded-lg",e.value===a?"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!==a&&("system"===e.value?(localStorage.removeItem("isDarkMode"),window.dispatchEvent(new Event("storage")),window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")):"dark"===e.value?(document.documentElement.classList.add("dark"),window.localStorage.isDarkMode="true"):(document.documentElement.classList.remove("dark"),window.localStorage.isDarkMode="false"),window.dispatchEvent(new Event("storage")))},children:(0,d.jsx)(e.icon,{className:"size-4"})},e.value))})},tP=({type:e,url:t,iconClassName:r})=>{let a="website"===e||null==e?"earth-americas":e;return("x"===a&&(a="x-twitter"),"discord"!==a&&"earth-americas"!==a&&"facebook"!==a&&"github"!==a&&"hacker-news"!==a&&"instagram"!==a&&"linkedin"!==a&&"medium"!==a&&"slack"!==a&&"telegram"!==a&&"twitter"!==a&&"x-twitter"!==a&&"youtube"!==a)?null:(0,d.jsxs)("a",{href:t,target:"_blank",children:[(0,d.jsx)("span",{className:"sr-only",children:e}),(0,d.jsx)(Y,{icon:a,iconType:"solid",className:(0,X.cn)("w-5 h-5 bg-gray-500 dark:bg-gray-600 hover:bg-gray-600 dark:hover:bg-gray-500",r)})]})},t_=({isAdvanced:e,className:t})=>{var r;let{docsConfig:a}=(0,m.useContext)(w.E),n=null==a?void 0:null===(r=a.footer)||void 0===r?void 0:r.socials;if(!n)return null;let i=e?"":"bg-gray-400 dark:bg-gray-500 hover:bg-gray-500 dark:hover:bg-gray-400",s=(0,X.cn)("flex",e?"gap-3 min-w-[140px] ":"gap-6");return Array.isArray(n)?(0,d.jsx)("div",{className:(0,X.cn)(s,t),children:n.map(e=>(0,d.jsx)(tP,{url:e.url,type:e.type,iconClassName:i},e.url))}):"object"==typeof n?(0,d.jsx)("div",{className:(0,X.cn)(s,t),children:Object.entries(n).map(([e,t])=>(0,d.jsx)(tP,{url:t,type:e,iconClassName:i},t))}):null},tA=()=>{var e;let{docsConfig:t}=(0,m.useContext)(w.E),r=null==t?void 0:null===(e=t.footer)||void 0===e?void 0:e.links,a=1===(null==r?void 0:r.length);return r?(0,d.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=>(0,d.jsx)("div",{className:(0,X.cn)("flex flex-col gap-4 flex-1 whitespace-nowrap",a?"max-w-full":"w-full md:items-center"),children:(0,d.jsxs)("div",{className:(0,X.cn)("flex gap-4 flex-col",a?"md:flex-row md:items-center md:gap-8 md:justify-center":""),children:[e.header&&!a&&(0,d.jsx)("p",{className:"text-sm font-semibold text-gray-950 dark:text-white mb-1",children:e.header}),e.items.map(e=>(0,d.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))}):null},t$=({isAdvanced:e})=>{let{subdomain:t,entitlements:r}=(0,m.useContext)(w.E),{poweredByMintlify:a}=(0,e8.Oo)(),n=(0,G.O)("ai_chat_citation_click");return tE(r,"REMOVE_BRANDING")?null:e?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"h-[1px] w-full bg-gray-100 dark:bg-white/5"}),(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("div",{className:"sm:flex",children:(0,d.jsx)("a",{href:`https://mintlify.com/preview-request?utm_campaign=poweredBy&utm_medium=docs&utm_source=${t}`,target:"_blank",rel:"noreferrer",className:"text-sm text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300",onClick:()=>n({subdomain:t}).catch(console.error),children:a})}),(0,d.jsx)(tI,{})]})]}):(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{className:"flex items-center justify-between",children:(0,d.jsx)("div",{className:"sm:flex",children:(0,d.jsx)("a",{href:`https://mintlify.com/preview-request?utm_campaign=poweredBy&utm_medium=docs&utm_source=${t}`,target:"_blank",rel:"noreferrer",className:"text-sm text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300",onClick:()=>n({subdomain:t}).catch(console.error),children:a})})})})},tB=()=>(0,d.jsxs)("footer",{id:s.Footer,className:"flex gap-12 justify-between pt-10 border-t border-gray-100 sm:flex dark:border-gray-800/50 pb-28",children:[(0,d.jsx)(t_,{}),(0,d.jsx)(t$,{})]}),tz=()=>{var e,t,r,a;let{mintConfig:n,docsConfig:i}=(0,m.useContext)(w.E),{isCustom:l}=tH(),o=(0,B.u)(),c=(null==n?void 0:null===(e=n.footer)||void 0===e?void 0:e.links)&&n.footer.links.length<=3?"column":"row",u=(null==n?void 0:null===(t=n.footer)||void 0===t?void 0:t.links)&&1===n.footer.links.length,h=(null==n?void 0:n.layout)==="sidenav"||(null==n?void 0:n.layout)==="solidSidenav"?0:et(i)?7.1:4;(0,m.useEffect)(()=>{let e=document.getElementById(s.Navbar),t=document.getElementById(s.Sidebar),r=document.getElementById(s.Footer),a=document.getElementById(s.TableOfContentsContent),n=()=>{if(!r)return;let n=r.getBoundingClientRect().top,i=window.innerHeight-n;t&&(i>0?(t.style.top=`-${i}px`,t.style.height=`${window.innerHeight}px`):(t.style.top=`${h}rem`,t.style.height="auto")),a&&e&&(i>0?a.style.top=l?`${e.clientHeight-i}px`:`${40+e.clientHeight-i}px`:a.style.top="")};return window.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n)}},[l,h,n]);let p=null==n?void 0:null===(a=n.footer)||void 0===a?void 0:null===(r=a.links)||void 0===r?void 0:r.every(e=>e.title);return(0,d.jsx)("footer",{id:s.Footer,className:"flex flex-col items-center mx-auto border-t border-gray-100 dark:border-gray-800/50",children:(0,d.jsxs)("div",{className:"flex w-full flex-col gap-12 justify-between px-8 py-16 md:py-20 lg:py-28 max-w-[984px] z-0",children:[(0,d.jsxs)("div",{className:(0,X.cn)("flex flex-col md:flex-row gap-8 justify-between",!u&&" min-h-[76px]"),children:[(0,d.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,d.jsxs)(R(),{href:n?tS(n):"/",onContextMenu:e=>{e.preventDefault(),o.push(n?tS(n):"/")},children:[(0,d.jsxs)("span",{className:"sr-only",children:[null==n?void 0:n.name," home page"]}),(0,d.jsx)(tZ,{className:"max-w-48 h-[26px]"})]}),(0,d.jsx)(t_,{isAdvanced:!0,className:(0,X.cn)("h-fit","column"===c?p?"md:hidden justify-end":"hidden":p?"flex justify-end md:justify-start":"hidden md:flex justify-end md:justify-start")})]}),(0,d.jsx)(tA,{}),"column"===c&&(0,d.jsx)(t_,{isAdvanced:!0,className:(0,X.cn)("hidden md:flex justify-end")})]}),!p&&(0,d.jsx)(t_,{isAdvanced:!0,className:"md:hidden justify-start"}),(0,d.jsx)(t$,{isAdvanced:!0})]})})},tq={Popup:"z-40",PrimaryNav:"z-30",SecondaryNav:"z-20",Control:"z-10"},tF=m.useLayoutEffect;var tR=r(49442),tD=r(5111),tW=r(85750),tU=r(69971),tG=r(54073),tJ=r.n(tG),tK=r(38880);let tY=["Ctrl ","Control"],tQ=["⌘","Command"],tX=(e,t,r)=>{let a=(0,m.useCallback)(a=>{a.key===e&&(r||a.metaKey||a.ctrlKey)&&(a.preventDefault(),null==t||t())},[t,e,r]);(0,m.useEffect)(()=>(addEventListener("keydown",a),()=>removeEventListener("keydown",a)),[a])};var t0=r(43433),t1=r(8547);let t2="search_api_key",t4=()=>{let e=ta.Z.get(t2);if(!e)return{key:null,expiresAt:null};try{let t=JSON.parse(e);return{key:t.key,expiresAt:t.expiresAt}}catch{return{key:null,expiresAt:null}}},t5=(e,t)=>{ta.Z.set(t2,JSON.stringify({key:e,expiresAt:t}),{expires:new Date(t),secure:!0,sameSite:"strict"})},t3=e=>{let t=new Set,r=new Set;for(let a of e)t.has(a)?r.add(a):t.add(a);return r};var t6=r(92983);let t7=e=>{let t,r,a;let n=e.trim().split(/\s+/);if(!(n.length>3)){if(n[0]&&n[1]&&n[2])[t,r,a]=n;else{if(!n[0]||!n[1])return;[r,a]=n}if(!r||["get","put","post","delete","patch","options","head","trace"].includes(r=r.toLowerCase()))return{method:r,endpoint:a,filename:t}}};var t8=r(56839);let t9=e=>{switch(null==e?void 0:e.toUpperCase()){case"GET":return"bg-[#2AB673]";case"POST":return"bg-[#3064E3]";case"PUT":return"bg-[#C28C30]";case"DELETE":return"bg-[#CB3A32]";case"OPTIONS":return"bg-[#9341FB]";case"HEAD":return"bg-[#2BDADA]";case"PATCH":return"bg-[#DA622B]";case"TRACE":return"bg-[#BD30D3]";default:return"bg-gray-600"}},re=e=>{switch(null==e?void 0:e.toUpperCase()){case"GET":return"text-[#2AB673] bg-[#2AB673]/10 border-[#2AB673]/30";case"POST":return"text-[#3064E3] bg-[#3064E3]/10 border-[#3064E3]/30";case"PUT":return"text-[#C28C30] bg-[#C28C30]/10 border-[#C28C30]/30";case"DELETE":return"text-[#CB3A32] bg-[#CB3A32]/10 border-[#CB3A32]/30";case"OPTIONS":return"text-[#9341FB] bg-[#9341FB]/10 border-[#9341FB]/30";case"HEAD":return"text-[#2BDADA] bg-[#2BDADA]/10 border-[#2BDADA]/30";case"PATCH":return"text-[#DA622B] bg-[#DA622B]/10 border-[#DA622B]/30";case"TRACE":return"text-[#BD30D3] bg-[#BD30D3]/10 border-[#BD30D3]/30";default:return"text-gray-600 bg-gray-600/10 border-gray-600/30"}},rt=e=>{switch(null==e?void 0:e.toUpperCase()){case"GET":return"text-green-600 dark:text-green-500";case"POST":return"text-blue-600 dark:text-blue-500";case"PUT":return"text-yellow-600 dark:text-yellow-500";case"DELETE":return"text-red-600 dark:text-red-500";case"PATCH":return"text-orange-600 dark:text-orange-500";default:return"text-gray-600 dark:text-gray-500"}},rr=e=>{switch(null==e?void 0:e.toUpperCase()){case"GET":return"bg-green-400/20 text-green-700 dark:bg-green-400/20 dark:text-green-400";case"POST":return"bg-blue-400/20 text-blue-700 dark:bg-blue-400/20 dark:text-blue-400";case"PUT":return"bg-yellow-400/20 text-yellow-700 dark:bg-yellow-400/20 dark:text-yellow-400";case"DELETE":return"bg-red-400/20 text-red-700 dark:bg-red-400/20 dark:text-red-400";case"PATCH":return"bg-orange-400/20 text-orange-700 dark:bg-orange-400/20 dark:text-orange-400";default:return"bg-gray-400/20 text-gray-700 dark:bg-gray-400/20 dark:text-gray-400"}},ra=e=>{let t=null==e?void 0:e.toUpperCase();return"DELETE"===t?"DEL":t},rn=m.forwardRef(({className:e,method:t,...r},a)=>{let n=t.toUpperCase(),i=rt(n),s=rr(n);return(0,d.jsx)("div",{ref:a,className:(0,X.cn)("rounded-lg font-bold px-1.5 py-0.5 text-sm leading-5",i,s,e),...r,children:n})});rn.displayName="MethodPill";let ri=(0,X.cn)("truncate","text-base leading-[26px] text-gray-700 dark:text-gray-300","[&_mark_b]:font-medium [&_mark_b]:text-md [&_mark]:bg-transparent [&_mark_b]:text-primary dark:[&_mark_b]:text-primary-light","[&_span.font-medium]:text-primary dark:[&_span.font-medium]:text-primary-light");function rs({isActive:e,header:t,description:r,metadata:a,duplicatedHeaders:n}){let i=a&&"openapi"in a?String(a.openapi):void 0,s=i?t7(i):void 0,l=!!(null==n?void 0:n.has(t)),o=a?rd(a,t,l):[t];return(0,d.jsxs)("div",{className:(0,X.cn)("cursor-pointer relative rounded-xl flex gap-4 px-4 py-2 items-center",e&&"bg-gray-50 dark:bg-white/5"),children:[(0,d.jsxs)("div",{className:"flex flex-col w-[calc(100%-16px-20px)]",children:[(0,d.jsxs)("div",{className:"flex gap-1 items-center",children:[s&&(0,d.jsx)(rn,{method:s.method,className:"text-xs"}),(0,d.jsx)(ro,{crumbs:o})]}),r&&(0,d.jsx)("p",{className:(0,X.cn)("text-sm truncate w-full text-gray-500 [&_mark]:text-gray-500 [&_mark]:bg-transparent","[&_mark_b]:font-normal [&_mark_b]:text-primary dark:[&_mark_b]:text-primary-light","[&_b_mark]:font-normal [&_b_mark]:text-primary dark:[&_b_mark]:text-primary-light","[&_span.font-medium]:text-primary dark:[&_span.font-medium]:text-primary-light"),dangerouslySetInnerHTML:{__html:r}})]}),(0,d.jsx)("div",{className:"size-5",children:(0,d.jsx)(t8.Z,{size:20,className:(0,X.cn)("text-transparent",e&&"text-primary dark:text-primary-light")})})]})}function rl(){return(0,d.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor",className:"mx-0.5 flex-shrink-0",children:(0,d.jsx)("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})})}function ro({crumbs:e}){return(0,d.jsx)("div",{className:"flex items-center",children:e.map((e,t)=>(0,d.jsxs)("div",{className:"flex items-center",children:[!!t&&(0,d.jsx)(rl,{}),(0,d.jsx)("div",{className:ri,dangerouslySetInnerHTML:{__html:e.trim()}})]},t))})}let rd=(e,t,r)=>{let a="title"in e&&"string"==typeof e.title?e.title:void 0,n="breadcrumbs"in e&&Array.isArray(e.breadcrumbs)?e.breadcrumbs:void 0;return n?r?(n.at(-1)===a?n.slice(0,-1):n).concat([t]).slice(-3):n.at(-1)!==a?n.concat([t]).slice(-2):[t]:[t]},rc=({query:e})=>{let{canYouTellMeAbout:t}=(0,e8.Oo)();return(0,d.jsx)(tW.h.Option,{value:"chat",className:"last:mb-2",children:({active:r})=>(0,d.jsxs)("div",{className:(0,X.cn)("rounded-xl cursor-pointer select-none flex items-center justify-between gap-2 px-4 py-2",r&&"bg-gray-50 dark:bg-white/5"),children:[(0,d.jsxs)("div",{className:"flex gap-4 items-center",children:[(0,d.jsx)(eo.kT.Ready,{}),(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsxs)("span",{className:"break-all font-medium",children:[(0,d.jsxs)("span",{className:"text-gray-700 dark:text-gray-300",children:[t," "]}),(0,d.jsx)("span",{className:"text-primary dark:text-primary-light",children:e})]}),(0,d.jsx)("span",{className:"text-sm text-gray-500",children:"Use AI to answer your question"})]})]}),(0,d.jsx)("div",{className:"size-5",children:(0,d.jsx)(t8.Z,{size:20,className:(0,X.cn)("text-transparent",r&&"text-primary dark:text-primary-light")})})]})},"chat")};rc.displayName="SuggestChatOption";let ru=q()(()=>r.e(2626).then(r.bind(r,32626)).then(e=>e.Chat),{loadableGenerated:{webpack:()=>[32626]}}),rh=(0,m.createContext)({onOpen:()=>{},hasChatPermissions:!1,searchPrompt:"Search..."});function rp({subdomain:e,hasChatPermissions:t=!1,children:r}){var a;let n=(0,B.u)(),{docsConfig:i,navWithMetadata:s,trieve:l}=(0,m.useContext)(w.E),{searchOrAsk:o,search:c}=(0,e8.Oo)(),{selectedVersion:u}=(0,m.useContext)(e8.kH),h=(null==i?void 0:null===(a=i.search)||void 0===a?void 0:a.prompt)??(t?o:c),p=(0,m.useMemo)(()=>(function(e){let t=new Map;return e.forEach(e=>(function e(t,r,a){var n,i;if((0,tU.t)(r))r.pages.forEach(n=>{var i;return e(t,n,null!==(i=r.version)&&void 0!==i?i:a)});else{let e=null!==(n=r.version)&&void 0!==n?n:a;t.set("/"===(i=r.href).charAt(0)?i.substring(1):i,e)}})(t,e)),t})(s??[]),[s]),[g,x]=(0,m.useState)(!1),[v,f]=(0,m.useState)(""),[y,b]=(0,m.useState)([]),[j,L]=(0,m.useState)(),[V,C]=(0,m.useState)(!1),[N,M]=(0,m.useState)(),H=(0,G.O)("search_result_click"),Z=(0,G.O)("chat_enter"),E=(0,G.O)("search_close"),{search:S}=function(){let{trieve:e}=(0,m.useContext)(w.E),t=(0,t1.c)(),[r,a]=(0,m.useState)(()=>{if(!e9.F9.AUTH_ENABLED)return e9.F9.TRIEVE_API_KEY||"";let{key:e}=t4();return e||""});return(0,m.useEffect)(()=>{let e;if(!e9.F9.AUTH_ENABLED)return;let t=async()=>{if(e9.F9.AUTH_ENABLED)try{let e=await fetch("/_mintlify/api/search-api-key",{method:"POST"}),t=await e.json(),r=Date.now()+k.YO;t5(t.key,r),a(t.key)}catch(e){console.error("Failed to fetch search API key",e)}},{key:r,expiresAt:n}=t4(),i=(n||Date.now()+k.YO)-Date.now();r||t();let s=setTimeout(()=>{t(),e=setInterval(()=>void t(),k.YO-k.AG)},Math.max(0,i-k.AG));return()=>{clearTimeout(s),clearInterval(e)}},[]),{search:(0,m.useCallback)(async a=>(null==e?void 0:e.datasetId)?await (0,t0.k)({datasetId:e.datasetId,query:a,groups:t,apiKey:r}):[],[null==e?void 0:e.datasetId,t,r])}}(),O="cli"===e9.F9.ENV,T=(0,m.useCallback)(()=>x(!0),[]),I=(0,m.useCallback)(()=>x(!1),[]),P=(0,m.useCallback)(()=>x(e=>!e),[]),[_,A]=(0,m.useState)(!1);tX("k",P),(0,m.useEffect)(()=>{g||(C(!1),A(!1))},[g]),(0,m.useEffect)(()=>{(async()=>{if(Object.keys(n.query).includes(t6.O)&&e){let e=n.query[t6.O];e&&"string"==typeof e&&e!==N&&(M(e),P(),C(!0))}})()},[n.query,e,N,P]);let $=(0,m.useMemo)(()=>tJ()(async t=>{if(f(t),!t||null==e){b([]);return}if(null==l?void 0:l.datasetId){let e=(await S(t)).filter(e=>{let t=p.get(e.page);return!t||t===u});b(e),L(t3(e.map(e=>e.header)));return}},20),[p,u,e,null==l?void 0:l.datasetId,S]),z=(0,m.useCallback)(async(e,t)=>{if("chat"===e){C(!0),await Z({query:t});return}H({query:t,path:e.link,section:e.header}),await n.push(e.link),I(),E({query:t,numHits:y.length}).catch(console.error),f(""),b([])},[I,n,Z,E,H,y.length]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(rh.Provider,{value:{onOpen:T,hasChatPermissions:t,searchPrompt:h},children:r}),(0,d.jsx)(tR.u.Root,{show:g,as:m.Fragment,afterLeave:()=>{f(""),b([])},appear:!0,children:(0,d.jsxs)(tD.V,{as:"div",className:(0,X.cn)(tq.Popup,"relative"),onClose:()=>{I(),V||E({query:v,numHits:y.length}).catch(console.error)},children:[(0,d.jsx)(tR.u.Child,{as:m.Fragment,enter:"ease-out duration-100",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-50",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,d.jsx)("div",{className:"fixed inset-0 bg-background-dark/20 transition-opacity backdrop-blur-sm"})}),(0,d.jsx)("div",{className:"fixed inset-0 w-screen h-screen z-10 overflow-y-auto p-4 sm:p-6 md:p-12",children:(0,d.jsx)(tR.u.Child,{as:m.Fragment,enter:"ease-out duration-100",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-50",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,d.jsx)(tD.V.Panel,{className:"flex flex-col mx-auto max-w-[640px] transform overflow-hidden border border-gray-200 dark:border-white/10 bg-background-light dark:bg-background-dark shadow-search rounded-search",children:V?(0,d.jsx)(ru,{message:v,sharedSessionId:N,onBack:()=>C(!1),onClose:()=>I()}):(0,d.jsxs)(tW.h,{onChange:e=>z(e,v),value:v,children:[(0,d.jsxs)("div",{className:(0,X.cn)("p-2 relative z-10 border-b border-transparent h-18 transition",_&&"border-gray-200 dark:border-white/10"),children:[O?(0,d.jsx)("div",{className:"flex items-center rounded-xl border border-gray-200 dark:border-white/10 bg-background-light dark:bg-background-dark h-full w-full outline-none text-gray-950/50 dark:text-white/50 tracking-tight pl-12 pr-14",children:(0,d.jsx)("span",{children:"Not available on local preview"})}):(0,d.jsx)(tW.h.Input,{className:(0,X.cn)("peer rounded-xl border border-gray-200 dark:border-white/10 bg-background-light dark:bg-background-dark h-full w-full outline-none text-gray-950 dark:text-white placeholder:text-gray-400 placeholder:dark:text-white/50 tracking-tight pl-12 pr-14 focus:border-slate-950 dark:focus:border-white transition",!_&&v&&"shadow-search"),autoFocus:!0,placeholder:h,onChange:e=>{$(e.target.value)},autoComplete:"off",onKeyDown:e=>{(y.length>0||v&&t)&&"Tab"===e.key&&(e.preventDefault(),e.currentTarget.setSelectionRange(e.currentTarget.value.length,e.currentTarget.value.length)),"Escape"===e.key&&(I(),E({query:v,numHits:y.length}).catch(console.error))}}),(0,d.jsx)(tK.Z,{size:18,className:"absolute left-6 top-1/2 -translate-y-1/2 text-gray-950 dark:text-white opacity-50 peer-focus:opacity-100 peer-disabled:opacity-30"}),v&&(0,d.jsx)("div",{className:"top-1/2 -translate-y-1/2 absolute right-6 flex items-center justify-center rounded-md gap-1 px-1.5 py-1.5 bg-gray-950/5 dark:bg-white/5 text-zinc-950/70 dark:text-white/70 font-medium text-xs leading-[9px]",children:"ESC"})]}),v&&(0,d.jsxs)(tW.h.Options,{static:!0,className:"max-h-[648px] overflow-y-auto mx-2",onScroll:e=>{e.currentTarget.scrollTop?A(!0):A(!1)},children:[t&&(0,d.jsx)(rc,{query:v}),y.length>0&&(0,d.jsx)(d.Fragment,{children:y.map(e=>(0,d.jsx)(tW.h.Option,{value:e,className:"last:mb-2",children:({active:t})=>(0,d.jsx)(rs,{isActive:t,header:e.header,description:e.content,metadata:e.metadata,duplicatedHeaders:j})},e.id))})]})]})})})})]})})]})}function rm(){let{searchPrompt:e}=(0,m.useContext)(rh);return(0,d.jsx)("div",{className:"hidden lg:block mx-px relative flex-1 bg-white dark:bg-gray-900 pointer-events-auto rounded-xl min-w-0",children:(0,d.jsx)(rg,{className:"w-full flex items-center text-sm leading-6 rounded-xl py-1.5 pl-3.5 pr-3 shadow-sm text-gray-400 dark:text-white/50 bg-background-light dark:bg-background-dark dark:brightness-[1.1] dark:ring-1 dark:hover:brightness-[1.25] ring-1 ring-gray-400/20 hover:ring-gray-600/25 dark:ring-gray-600/30 dark:hover:ring-gray-500/30 focus:outline-primary justify-between truncate gap-2 min-w-[43px]",id:s.SearchBarEntry,children:({actionKey:t})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex items-center gap-3 min-w-[42px]",children:[(0,d.jsx)(tK.Z,{size:16,className:"min-w-4 flex-none text-gray-700 hover:text-gray-800 dark:text-gray-300 hover:dark:text-gray-200"}),(0,d.jsx)("div",{className:"truncate min-w-0",children:e})]}),t&&(0,d.jsxs)("span",{className:"flex-none text-xs font-semibold",children:[t[0],"K"]})]})})})}function rg({className:e,children:t,id:r}){let a=function(){let[e,t]=(0,m.useState)();return(0,m.useEffect)(()=>{"undefined"!=typeof navigator&&(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?t(tQ):t(tY))},[]),e}(),{onOpen:n}=(0,m.useContext)(rh);return(0,d.jsx)("button",{type:"button",onClick:n,className:e,id:r,children:"function"==typeof t?t({actionKey:a}):t})}rh.displayName="SearchContext";var rx=r(25827);function rv({href:e,ref:t,onMouseEnter:r,onMouseLeave:a,style:n,className:i,children:s}){return(null==e?void 0:e.startsWith("/"))||(null==e?void 0:e.startsWith("#"))?(0,d.jsx)(R(),{href:e,ref:t,passHref:!0,onMouseEnter:r,onMouseLeave:a,style:n,className:i,children:s}):(null==e?void 0:e.startsWith("./"))||(null==e?void 0:e.startsWith("../"))?(0,d.jsx)("a",{href:e,ref:t,onMouseEnter:r,onMouseLeave:a,style:n,className:i,children:s}):(0,d.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",ref:t,onMouseEnter:r,onMouseLeave:a,style:n,className:i,children:s})}let rf=({name:e,href:t,icon:r="book-open",iconType:a="duotone",isActive:n,color:i})=>{let[s,l]=(0,m.useState)(!1),o=null==i?void 0:i.includes("linear-gradient");return(0,d.jsxs)(rv,{href:t,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:n&&o?{color:i}:{},className:(0,X.cn)("pl-4 group flex items-center lg:text-sm lg:leading-6 mb-5 sm:mb-4",n?["font-semibold",o?"":"text-primary dark:text-primary-light"]:"font-medium text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300"),children:[(0,d.jsx)("div",{style:(n||s)&&i?{background:i}:{},className:(0,X.cn)("mr-4 rounded-md p-1",!i&&"group-hover:bg-primary",n?[i?"":"bg-primary"]:"zinc-box group-hover:brightness-100 group-hover:ring-0 ring-1 ring-gray-950/5 dark:ring-gray-700/40"),children:(0,d.jsx)(Y,{icon:r.toLowerCase(),iconType:a,className:(0,X.cn)("h-4 w-4 secondary-opacity group-hover:fill-primary-dark group-hover:bg-white",n?"bg-white":"bg-gray-400 dark:bg-gray-500")})}),e??t]})};function ry(){let{anchors:e}=(0,m.useContext)(e8.kH),{anchorDefault:t}=(0,rx.cI)();return(0,d.jsx)(d.Fragment,{children:e.map(e=>(0,d.jsx)("li",{className:"list-none",children:(0,d.jsx)(rf,{href:e.href,name:e.name,icon:e.icon,iconType:e.iconType,color:(0,rx.Pg)(e.color)??t,isActive:e.isActive})},e.name))})}var rb=r(90557);let rj=e=>`${1+.75*e}rem`,rk=(e,t)=>{let r={container:(0,X.cn)("rounded-xl",t?"bg-primary/10 text-primary font-semibold dark:text-primary-light dark:bg-primary-light/10":"hover:bg-gray-600/5 dark:hover:bg-gray-200/5 text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300"),card:(0,X.cn)("lg:ml-4 border-l",t?"border-primary dark:border-primary-light bg-primary/10 text-primary font-semibold dark:text-primary-light dark:bg-primary-light/10":"border-gray-950/5 dark:border-white/10 hover:bg-gray-600/5 dark:hover:bg-gray-200/5 text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300"),border:(0,X.cn)("lg:ml-4 border-l",t?"border-primary dark:border-primary-light text-primary font-semibold dark:text-primary-light":"border-gray-950/5 dark:border-white/10 hover:border-gray-950/20 dark:hover:border-white/20 text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300"),undecorated:(0,X.cn)(t?"border-primary dark:border-primary-light text-primary font-semibold dark:text-primary-light":"border-gray-950/5 dark:border-white/10 hover:border-gray-950/20 dark:hover:border-white/20 text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300")};return null==e&&(e="container"),(0,X.cn)("group mt-2 lg:mt-0 flex items-center pr-3 py-1.5 cursor-pointer focus:outline-primary dark:focus:outline-primary-light space-x-3",r[e])};function rw(e){var t;return(null===(t=e.split("?")[0])||void 0===t?void 0:t.split("#")[0])??""}function rL(e,t){return t.pages.some(t=>(0,tU.t)(t)?rL(e,t):t.href===rw(e))}let rV=({group:e,level:t,mobile:r})=>{var a;let n=(0,B.u)(),i=(0,tM.J)(),{mintConfig:s}=(0,m.useContext)(w.E),[l,o]=(0,m.useState)(!!rL(i,e)),{group:c,pages:u}=e;return((0,m.useEffect)(()=>{rL(i,e)&&o(!0)},[i,e]),c)?(0,d.jsxs)("li",{children:[(0,d.jsxs)("div",{className:rk(null==s?void 0:null===(a=s.sidebar)||void 0===a?void 0:a.items,!1),style:{paddingLeft:rj(t)},onClick:()=>{let t=u[0];!r&&!l&&t&&(0,rb.l)(t)&&!rL(i,e)&&n.push(t.href),o(!l)},children:[e.icon&&(0,d.jsx)(Y,{icon:e.icon,iconType:e.iconType||"regular",className:(0,X.cn)("h-4 w-4 bg-gray-400 dark:bg-gray-500")}),(0,d.jsx)("div",{children:c}),(0,d.jsx)("svg",{width:"3",height:"24",viewBox:"0 -9 3 24",className:(0,X.cn)("transition-transform text-gray-400 overflow-visible group-hover:text-gray-600 dark:text-gray-600 dark:group-hover:text-gray-400",l&&"duration-75 rotate-90"),children:(0,d.jsx)("path",{d:"M0 0L3 3L0 6",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})]}),l&&(0,d.jsx)("ul",{children:u.map(e=>{let a=(0,tU.t)(e)?e.group:e.href;return(0,d.jsx)(rO,{entry:e,level:t+1,mobile:r},a)})})]}):null},rC=e=>{let t=e.indexOf("?");t>-1&&(e=e.substring(0,t));let r=e.split("/"),a=r[r.length-1].split("-").join(" ");return(a=a.split("_").join(" ")).charAt(0).toUpperCase()+a.slice(1)},rN=["description","og:site_name","og:title","og:description","og:image","og:locale","og:logo","article:publisher","twitter:title","twitter:description","twitter:url","twitter:image","twitter:site","og:image:width","og:image:height","robots"];function rM(e){return e.title||e.sidebarTitle||rC(e.href||"")}function rH(e){return e.sidebarTitle||e.title||rC(e.href||"")}function rZ(e,t){let r=rM(e);return r&&t?r+" - "+t:t||r}function rE(e){return!e||e.startsWith("/")?e.substring(1):e}function rS(e,t){return null!=e&&null!=t&&"string"==typeof e&&"string"==typeof t&&rE(e)===rE(t)}let rO=(0,m.forwardRef)(function({entry:e,level:t=0,mobile:r=!1},a){var n;let i;let{mintConfig:s}=(0,m.useContext)(w.E),l=(0,tM.J)();if(null==e)return null;if((0,tU.t)(e))return(0,d.jsx)(rV,{group:e,level:t,mobile:r});let{href:o,api:c,openapi:u,url:h}=e,p=rS(o,rw(l)),g=c||u,x=rH(e);if(g){let e=t7(g);void 0!=e&&(i=e.method)}return(0,d.jsx)("li",{ref:a,id:h||o||"/",className:"scroll-m-4 first:scroll-m-20",children:(0,d.jsxs)(R(),{href:h||o||"/",className:rk(null==s?void 0:null===(n=s.sidebar)||void 0===n?void 0:n.items,p),style:{paddingLeft:rj(t)},target:h&&"_blank",children:[g&&!0!==e.hideApiMarker&&i&&(0,d.jsx)("span",{className:"w-8 flex items-center",children:(0,d.jsx)("span",{className:(0,X.cn)("px-1 py-0.5 rounded-md text-[0.55rem] leading-tight font-bold",p?`${t9(i)} text-white`:rr(i)),children:ra(i)})}),e.icon&&(0,d.jsx)(Y,{icon:e.icon,iconType:e.iconType||"regular",className:(0,X.cn)("h-4 w-4",p?"bg-primary dark:bg-primary-light":"bg-gray-400 dark:bg-gray-500")}),(0,d.jsxs)("div",{className:"flex-1 flex items-center space-x-2.5",children:[(0,d.jsx)("div",{children:x}),h&&(0,d.jsx)(eo.BL,{}),e.tag&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 mr-2 rounded-md text-[0.7rem] text-primary-dark dark:text-primary-light leading-tight font-semibold bg-primary/10",children:e.tag})]})]})})});function rT({nav:e,mobile:t}){let{mintConfig:r}=(0,m.useContext)(w.E);return(0,d.jsx)(d.Fragment,{children:e.map(({group:e,pages:a},n)=>(0,d.jsxs)("div",{className:(0,K.Z)({"mt-12 lg:mt-8":!(0===n&&((null==r?void 0:r.anchors)==null||0===r.anchors.length))}),children:[(0,d.jsx)("h5",{className:"pl-4 mb-3.5 lg:mb-2.5 font-semibold text-gray-900 dark:text-gray-200",children:e}),(0,d.jsx)("ul",{children:a.map((e,r)=>(0,d.jsx)(rO,{entry:e,mobile:t},r))})]},n)).filter(Boolean)})}function rI(){let{tabs:e}=(0,m.useContext)(e8.kH);return(0,d.jsx)("ul",{className:"mb-12",children:e.map(e=>(0,d.jsx)("li",{children:(0,d.jsx)(rf,{href:e.href,name:e.name,isActive:e.isActive})},e.name))})}var rP=r(11001),r_=r(81395),rA=r(91698),r$=r(83030);let rB=e=>(0,d.jsx)(rA.fC,{modal:!1,...e});rB.displayName=rA.fC.displayName;let rz=m.forwardRef(({className:e,children:t,...r},a)=>(0,d.jsx)(rA.xz,{ref:a,className:(0,X.cn)("group bg-background-light dark:bg-background-dark disabled:pointer-events-none [&>span]:line-clamp-1 rounded-lg overflow-hidden group outline-none","flex items-center py-0.5 gap-1 text-sm text-zinc-950/50 dark:text-white/50 group-hover:text-zinc-950/70 dark:group-hover:text-white/70",e),...r,children:t}));rz.displayName=rA.xz.displayName,rA.Uv;let rq=m.forwardRef(({className:e,sideOffset:t=4,...r},a)=>(0,d.jsx)(rA.Uv,{children:(0,d.jsx)(rA.VY,{ref:a,sideOffset:t,collisionPadding:16,align:"start",className:(0,X.cn)("bg-background-light dark:bg-background-dark p-1 relative z-50 max-h-96 max-w-[var(--radix-dropdown-menu-content-available-width)] min-w-[var(--radix-dropdown-menu-trigger-width)] shadow-lg shadow-zinc-950/[0.03] overflow-y-auto rounded-lg border-standard text-zinc-950/70 dark:text-white/70","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));rq.displayName=rA.VY.displayName;let rF=m.forwardRef(({className:e,isSelected:t,...r},a)=>(0,d.jsxs)(rA.ck,{ref:a,className:(0,X.cn)("flex items-center justify-between px-2 py-1 gap-2 text-sm rounded-md group hover:bg-background-dark/[0.03] dark:hover:bg-background-light/[0.03] relative w-full cursor-pointer select-none outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:cursor-default data-[disabled]:opacity-50",t?"text-primary dark:text-primary-light font-medium":"text-zinc-950/50 dark:text-white/50",e),...r,children:[r.children,(0,d.jsx)(r$.Z,{className:(0,X.cn)("size-3.5 text-primary dark:text-primary-light",!t&&"opacity-0"),strokeWidth:2.5})]}));rF.displayName=rA.ck.displayName;var rR=r(91364);let rD=e=>{let t=new Intl.Locale((0,rR.s)(e)).region;return(0,d.jsx)("img",{className:"w-full h-full rounded-full",alt:t,src:`https://purecatamphetamine.github.io/country-flag-icons/1x1/${t}.svg`})};function rW(){let{mintConfig:e}=(0,m.useContext)(w.E),t=null==e?void 0:e.versions,{selectedLocale:r,setSelectedLocale:a,locales:n,setSelectedVersion:i}=(0,m.useContext)(e8.kH),[s,l]=(0,m.useState)(!1);(0,m.useEffect)(()=>{r&&document.documentElement.lang!==r&&(document.documentElement.lang=r)},[r]);let o=(0,m.useMemo)(()=>null==n?void 0:n.map(e=>{var r;return{label:(null===(r=t.find(t=>t.locale===e))||void 0===r?void 0:r.name)??e,value:e,icon:(0,d.jsxs)("div",{className:"relative w-4 h-4 rounded-full",children:[rD(e),(0,d.jsx)("div",{className:"absolute top-0 left-0 w-full h-full border rounded-full bg-primary-light/10 border-black/10"})]})}}),[n,t]);if(!o)return null;let c=o.find(e=>e.value===r),u=e=>{a(e);let r=t.find(t=>t.locale===e);r&&i(r.name)};return(0,d.jsxs)(rB,{open:s,onOpenChange:l,children:[(0,d.jsxs)(rz,{className:"text-xs text-gray-500 dark:text-gray-400 leading-5 font-semibold border border-gray-200 dark:border-gray-800 hover:border-gray-300 dark:hover:border-gray-700 rounded-full py-1 pl-2 pr-3 flex items-center whitespace-nowrap",children:[null==c?void 0:c.icon,(0,d.jsx)("p",{className:"truncate pl-0.5 pr-0.5",children:null==c?void 0:c.label}),s?(0,d.jsx)(rP.Z,{size:12,strokeWidth:2.5}):(0,d.jsx)(r_.Z,{size:12,strokeWidth:2.5})]}),(0,d.jsx)(rq,{className:"min-w-36",children:o.map(e=>{let t=e.value===(null==c?void 0:c.value);return(0,d.jsxs)(rF,{onSelect:()=>u(e.value),className:(0,X.cn)("flex justify-start gap-2 p-1.5 text-xs font-medium",t&&"font-semibold"),isSelected:t,children:[e.icon,e.label]},e.value)})})]})}let rU=e=>"string"==typeof e?e:e.name;function rG({options:e,onChange:t,defaultOption:r,selectedOptionClass:a}){let[n,i]=(0,m.useState)(!1),s=r,l=Array.isArray(e)&&e.length>0;null==r&&l&&(s=e[0]);let[o,c]=(0,m.useState)(s);if(!l)return null;let u=e=>{if("object"==typeof e&&e.url){window.open(e.url,"_blank");return}c(e),t&&t(e)};return(0,d.jsxs)(rB,{open:n,onOpenChange:i,children:[(0,d.jsxs)(rz,{className:"text-xs gap-1.5 text-gray-500 dark:text-gray-400 leading-5 font-semibold border border-gray-200 dark:border-gray-800 hover:border-gray-300 dark:hover:border-gray-700 rounded-full py-1 px-3 flex items-center space-x-2 whitespace-nowrap",children:[o&&rU(o),n?(0,d.jsx)(rP.Z,{size:12,strokeWidth:2.5}):(0,d.jsx)(r_.Z,{size:12,strokeWidth:2.5})]}),(0,d.jsx)(rq,{className:"min-w-36",children:e.map((e,t)=>{let r=rU(e),n=!!o&&r===rU(o);return(0,d.jsx)(rF,{onSelect:()=>u(e),isSelected:n,className:(0,X.cn)("flex justify-between gap-2 p-1.5 text-xs",n?(0,X.cn)("text-primary dark:text-primary-light font-semibold",a):"font-medium"),children:rU(e)},`option-${t}`)})})]})}function rJ(){var e;let{mintConfig:t}=(0,m.useContext)(w.E),r=(null==t?void 0:null===(e=t.versions)||void 0===e?void 0:e.filter(Boolean))||[],{selectedVersion:a,setSelectedVersion:n}=(0,m.useContext)(e8.kH);return a?(0,d.jsx)(rG,{options:r,onChange:e=>{n("object"==typeof e?e.name:e)},defaultOption:a,selectedOptionClass:"text-primary dark:text-primary-light"}):null}function rK(){let{isLocalizationEnabled:e}=(0,m.useContext)(e8.kH);return(0,d.jsx)("div",{className:"flex items-center gap-x-2",children:(0,d.jsx)(e?rW:rJ,{})})}function rY({mobile:e=!1}){var t,r,a;let n=(0,tM.J)(),{filteredNavigation:i}=(0,m.useContext)(e8.kH),{mintConfig:l}=(0,m.useContext)(w.E),o=(0,m.useRef)(),c=(0,m.useRef)(),u=(0,m.useRef)(null),h=i.reduce((e,{pages:t})=>e+t.length,0);tF(()=>{function e(){c.current=o.current}if(o.current){if(o.current===c.current){e();return}e();let t=u.current?function(e){for(;e&&e!==document.body&&!function(e){let t=window.getComputedStyle(e),r=t.overflowX,a=t.overflowY,n=e.clientHeight<e.scrollHeight,i=e.clientWidth<e.scrollWidth;return n&&("auto"===a||"scroll"===a)||i&&("auto"===r||"scroll"===r)}(e)&&e.parentElement;)e=e.parentElement;return e}(u.current):document.body,r=t.getBoundingClientRect(),a=o.current.getBoundingClientRect(),n=o.current.offsetTop,i=n-r.height+a.height;(t.scrollTop>n||t.scrollTop<i)&&(t.scrollTop=n-r.height/2+a.height/2)}},[n]);let p=(null==l?void 0:l.layout)==="sidenav"||(null==l?void 0:l.layout)==="solidSidenav";return(0,d.jsxs)("div",{ref:u,className:"relative lg:text-sm lg:leading-6",children:[!e&&!p&&(0,d.jsx)("div",{className:(0,X.cn)("sticky top-0 h-8",(null==l?void 0:l.backgroundImage)==null&&(null==l?void 0:null===(t=l.background)||void 0===t?void 0:t.style)==null&&"bg-gradient-to-b from-background-light dark:from-background-dark")}),p&&!e&&(0,d.jsxs)("div",{className:"pl-4 mt-5 mb-10 flex-1 flex items-center gap-x-4",children:[(0,d.jsxs)(R(),{href:tS(l),onContextMenu:e=>{e.preventDefault()},children:[(0,d.jsxs)("span",{className:"sr-only",children:[l.name," home page"]}),(0,d.jsx)(tZ,{})]}),(0,d.jsx)(rK,{})]}),(null==l?void 0:null===(r=l.search)||void 0===r?void 0:r.location)==="side"&&(0,d.jsx)("div",{className:(0,X.cn)("lg:mb-8",rk(null===(a=l.sidebar)||void 0===a?void 0:a.items,!1).includes("ml-4")&&"pl-3.5"),children:(0,d.jsx)(rm,{})}),(0,d.jsxs)("div",{id:s.NavigationItems,children:[(null==l?void 0:l.anchors)!=null&&l.anchors.length>0&&(0,d.jsx)(ry,{}),(null==l?void 0:l.tabs)!=null&&l.tabs.length>0&&e&&(0,d.jsx)(rI,{}),h>0&&(0,d.jsx)(rT,{nav:i,mobile:e})]})]})}let rQ=()=>{let{navIsOpen:e,setNavIsOpen:t}=(0,m.useContext)(e8.kH);return(0,d.jsx)(tR.u.Root,{show:e,as:m.Fragment,afterLeave:()=>{t(!1)},appear:!0,children:(0,d.jsxs)(tD.V,{as:"div",open:e,onClose:()=>t(!1),className:(0,X.cn)(tq.Popup,"fixed inset-0 overflow-y-auto lg:hidden"),children:[(0,d.jsx)(tD.V.Overlay,{className:"fixed inset-0 bg-black/20 backdrop-blur-sm dark:bg-background-dark/80"}),(0,d.jsx)(tR.u.Child,{as:m.Fragment,enter:"transition ease-in-out duration-300 transform",enterFrom:"-translate-x-full",enterTo:"translate-x-0",leave:"transition ease-in-out duration-300 transform",leaveFrom:"translate-x-0",leaveTo:"-translate-x-full",children:(0,d.jsxs)("div",{className:"relative bg-white w-[19rem] min-h-full py-7 pl-6 pr-8 dark:bg-background-dark",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>t(!1),className:(0,X.cn)(tq.Control,"absolute top-5 right-5 w-8 h-8 flex items-center justify-center fill-gray-500 hover:fill-gray-600 dark:fill-gray-400 dark:hover:fill-gray-300"),children:[(0,d.jsx)("span",{className:"sr-only",children:"Close navigation"}),(0,d.jsx)(eo.h8,{})]}),(0,d.jsx)(rY,{mobile:!0})]})})]})})};function rX(e){let t=document.querySelectorAll(`[id="${e}"]`);if(1===t.length&&t[0]instanceof HTMLElement){let e=t[0];r.e(6106).then(r.bind(r,16106)).then(t=>{let{default:r}=t;r(e,{scrollMode:"if-needed",boundary:e=>e.id!==s.SidebarContent})}).catch(()=>"Error auto scroll the sidebar")}}function r0({children:e}){var t;let{pageMetadata:r,docsConfig:a,mintConfig:n}=(0,m.useContext)(w.E),i=(0,tM.J)(),l=(0,B.u)(),o="center"===r.mode,c="wide"===r.mode,u="custom"===r.mode,h=(null==n?void 0:n.layout)==="sidenav"||(null==n?void 0:n.layout)==="solidSidenav";(0,m.useEffect)(()=>rX(i),[]),(0,m.useEffect)(()=>(l.events.on("routeChangeComplete",e=>rX(e)),()=>l.events.off("routeChangeComplete",e=>rX(e))),[l.events]);let p=(0,m.useMemo)(()=>{var e;return(null==a?void 0:null===(e=a.footer)||void 0===e?void 0:e.links)&&a.footer.links.length>0},[a]);return(0,d.jsxs)(d.Fragment,{children:[u?e:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:(0,X.cn)(o?"max-w-3xl":"max-w-8xl","px-4 mx-auto lg:px-8 min-h-screen"),children:[!o&&(0,d.jsxs)("div",{className:(0,X.cn)(h?tq.PrimaryNav:tq.SecondaryNav,"hidden lg:block fixed bottom-0 right-auto w-[18rem]",et(a)&&!h?"top-[7.1rem]":"top-[4rem]",h&&"-ml-4 border-r top-0 border-gray-500/5 dark:border-gray-50/5",(null==n?void 0:null===(t=n.topbar)||void 0===t?void 0:t.style)==="gradient"&&"border-gray-500/10 dark:border-gray-50/10"),id:s.Sidebar,children:[(null==n?void 0:n.layout)==="solidSidenav"&&(0,d.jsx)("div",{className:"absolute inset-0 -left-[999rem] bg-gray-950/[0.03] dark:bg-white/[0.03]"}),(0,d.jsx)("div",{className:"absolute inset-0 z-10 stable-scrollbar-gutter overflow-auto pr-8 pb-10",id:s.SidebarContent,children:(0,d.jsx)(rY,{})})]}),(0,d.jsx)("div",{className:(0,X.cn)(c&&"max-w-6xl"),id:s.ContentContainer,children:e})]}),p&&(0,d.jsx)(tz,{})]}),(0,d.jsx)(rQ,{})]})}let r1=e=>{var t;return!!((null==e?void 0:e.layout)!=="topnav"&&(null==e?void 0:null===(t=e.search)||void 0===t?void 0:t.location)!=="top")};function r2({name:e,href:t,isActive:r}){return(0,d.jsxs)(rv,{className:(0,X.cn)("group relative h-full flex items-center",r?"text-gray-800 dark:text-gray-200 font-semibold":"font-medium text-gray-600 dark:text-gray-400 group-hover:text-gray-800 dark:group-hover:text-gray-300"),href:t,children:[e,(0,d.jsx)("div",{className:(0,X.cn)("absolute bottom-0 h-[1.5px] w-full",r?"bg-primary dark:bg-primary-light":"group-hover:bg-gray-200 dark:group-hover:bg-gray-700")})]})}function r4(){let{tabs:e}=(0,m.useContext)(e8.kH);return(0,d.jsx)("div",{className:"h-full flex text-sm space-x-6",children:e.map(e=>(0,d.jsx)(r2,{name:e.name,href:e.href,isActive:e.isActive},e.name))})}function r5(){var e;let{mintConfig:t}=(0,m.useContext)(w.E);return(null==t?void 0:null===(e=t.modeToggle)||void 0===e?void 0:e.isHidden)?null:(0,d.jsxs)("button",{onClick:()=>(function(){var e;let t=document.documentElement.classList.toggle("dark");window.localStorage.isDarkMode=t,window.dispatchEvent(new Event("storage")),null===(e=document.getElementById("navbar-transition"))||void 0===e||e.classList.remove("transition-colors","duration-500")})(),className:"group p-2 flex items-center justify-center","aria-label":"Toggle dark mode",children:[(0,d.jsx)(eo.NW,{className:"h-4 w-4 block text-gray-400 dark:hidden group-hover:text-gray-600"}),(0,d.jsx)(tO.Z,{className:"h-4 w-4 hidden dark:block text-gray-500 dark:group-hover:text-gray-300"})]})}var r3=r(76501),r6=r.n(r3);function r7({button:e,className:t}){let a=(0,G.O)("cta_click"),[n,i]=(0,m.useState)(),s=(0,m.useMemo)(()=>r6()(e.url),[e.url]),l=(0,m.useCallback)(async()=>{if(null==s)return;let e=await r.e(3077).then(r.bind(r,83077)).then(e=>e.default),{data:t}=await e.get(`https://api.github.com/repos/${s.user}/${s.repo}`);i(t)},[s]);return((0,m.useEffect)(()=>{l().catch(console.error)},[l]),null==s)?null:(0,d.jsx)("li",{className:(0,X.cn)("cursor-pointer",t),children:(0,d.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer",onClick:()=>a({url:e.url,type:"github"}),className:"group flex items-center rounded-md hover:text-primary dark:hover:text-primary-light",children:(0,d.jsxs)("div",{className:"flex items-center gap-1.5 h-8",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(eo.ET,{className:"size-4"}),(0,d.jsxs)("span",{className:"text-sm font-medium text-gray-700 dark:text-gray-300 group-hover:text-primary dark:group-hover:text-primary-light",children:[s.user,"/",s.repo]})]}),n&&(0,d.jsxs)("div",{className:"flex items-center gap-1.5 ml-1",children:[(0,d.jsx)(Y,{className:"size-3.5",icon:"star",iconType:"regular",color:"currentColor"}),(0,d.jsx)("span",{className:"text-sm",children:n.stargazers_count.toLocaleString()})]})]})})})}function r8({button:e}){let t=(0,G.O)("cta_click");return"github"===e.type?(0,d.jsx)(r7,{className:"hidden lg:flex",button:e}):e.url&&e.name?(0,d.jsx)("li",{className:"whitespace-nowrap hidden lg:flex",id:s.TopbarCtaButton,children:(0,d.jsxs)(R(),{href:e.url,target:"_blank",className:"group px-4 py-1.5 relative inline-flex items-center text-sm font-medium",onClick:()=>t({name:e.name,url:e.url,type:"button"}),children:[(0,d.jsx)("span",{className:(0,X.cn)("absolute inset-0 bg-primary-dark dark:bg-primary-light/10 border-primary-light/30 rounded-full dark:border group-hover:opacity-[0.9] dark:group-hover:border-primary-light/60","roundedRectangle"===e.style&&"rounded-xl")}),(0,d.jsxs)("div",{className:"mr-0.5 space-x-2.5 flex items-center",children:[(0,d.jsx)("span",{className:(0,X.cn)(tq.Control," text-white dark:text-primary-light"),children:e.name}),(0,d.jsx)(eo.LZ,{className:(0,X.cn)("text-white/90 dark:text-primary-light",!1===e.arrow&&"hidden")})]})]})}):null}let r9="whitespace-nowrap font-medium text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300",ae=()=>{var e;let{mintConfig:t,userAuth:r,userInfo:a}=(0,m.useContext)(w.E),{basePath:n}=(0,B.u)(),i=(0,G.O)("header_nav_item_click"),s=(0,m.useMemo)(()=>{if(a||!r)return null;switch(r.type){case"jwt":return(0,d.jsx)(R(),{href:r.loginUrl,className:r9,children:"Log In"});case"shared-session":if(!r.loginUrl)return null;return(0,d.jsx)(R(),{href:r.loginUrl,className:r9,children:"Log In"});case"oauth":return(0,d.jsx)("button",{onClick:()=>tf(r,n),className:r9,children:"Log In"})}},[r,a,n]),l=(0,m.useCallback)((e,t)=>i({name:e,url:t}),[i]);return(0,d.jsxs)(d.Fragment,{children:[null==t?void 0:null===(e=t.topbarLinks)||void 0===e?void 0:e.map(e=>{let t=(0,el.Z)(e.url),{name:r}=e;return t?(0,d.jsx)("li",{children:(0,d.jsx)("a",{href:e.url,className:r9,onClick:()=>l(r,e.url),target:"_blank",children:r})},r):(0,d.jsx)("li",{children:(0,d.jsx)(R(),{href:e.url||"/",className:r9,onClick:()=>l(r,e.url),children:r})},r)}),s&&(0,d.jsx)("li",{children:s},"login"),(null==t?void 0:t.topbarCtaButton)&&(0,d.jsx)(at,{button:t.topbarCtaButton}),(null==t?void 0:t.topbarCtaButton)&&(0,d.jsx)(r8,{button:t.topbarCtaButton})]})};function at({button:e}){let t=(0,G.O)("cta_click");return"github"===e.type?(0,d.jsx)(r7,{className:"flex lg:hidden",button:e}):e.url&&e.name?(0,d.jsx)("li",{className:"block lg:hidden",children:(0,d.jsx)(R(),{href:e.url,className:r9,onClick:()=>t({name:e.name,url:e.url,type:"button"}),children:e.name})}):null}let ar=({topbarDialogOpen:e,setTopbarDialogOpen:t})=>(0,d.jsx)(tR.u.Root,{show:e,as:m.Fragment,afterLeave:()=>{t(!1)},appear:!0,children:(0,d.jsxs)(tD.V,{as:"div",open:e,onClose:()=>t(!1),className:(0,X.cn)(tq.Popup,"fixed inset-0 overflow-y-auto lg:hidden"),children:[(0,d.jsx)(tD.V.Overlay,{className:"fixed inset-0 bg-gray-500/25 transition-opacity backdrop-blur-sm"}),(0,d.jsx)(tR.u.Child,{as:m.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,d.jsxs)("div",{className:"relative float-right bg-white w-[16rem] rounded-md m-2 py-7 px-8 dark:bg-background-dark",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>t(!1),className:(0,X.cn)(tq.Control,"absolute top-5 right-5 w-8 h-8 flex items-center justify-center fill-gray-500 hover:fill-gray-600 dark:fill-gray-400 dark:hover:fill-gray-300"),children:[(0,d.jsx)("span",{className:"sr-only",children:"Close"}),(0,d.jsx)(eo.Tw,{})]}),(0,d.jsx)("nav",{className:"text-sm",children:(0,d.jsx)("ul",{className:"items-center space-y-4",children:(0,d.jsx)(ae,{})})})]})})]})}),aa="border-b border-gray-500/5 dark:border-gray-300/[0.06]";function an({title:e,section:t,mode:r}){var a,n,i,l;let o=(0,B.u)(),{docsConfig:c,mintConfig:u}=(0,m.useContext)(w.E),{navIsOpen:h,setNavIsOpen:p}=(0,m.useContext)(e8.kH),{search:g}=(0,e8.Oo)(),[x,v]=(0,m.useState)(!1),[f,y]=(0,m.useState)(!1),b=et(c);(0,m.useEffect)(()=>{function e(){!x&&window.scrollY>50?v(!0):x&&window.scrollY<=50&&v(!1)}return e(),window.addEventListener("scroll",e,{passive:!0}),b&&window.document.documentElement.classList.add("lg:[--scroll-mt:9.5rem]"),()=>{window.removeEventListener("scroll",e)}},[x,b]);let j=(null==u?void 0:u.layout)==="topnav",k="custom"===r,L="center"===r,V=r1(u);return(0,d.jsxs)("div",{id:s.Navbar,className:(0,X.cn)(j?tq.PrimaryNav:tq.SecondaryNav,"fixed lg:sticky top-0 w-full"),children:[(0,d.jsx)("div",{id:"navbar-transition",className:(0,X.cn)("absolute w-full h-full backdrop-blur flex-none transition-colors duration-500",j&&aa,x?"bg-background-light supports-backdrop-blur:bg-background-light/95 dark:bg-background-dark/75":"supports-backdrop-blur:bg-background-light/60 dark:bg-transparent")}),(null==u?void 0:null===(a=u.topbar)||void 0===a?void 0:a.style)==="gradient"&&j&&(0,d.jsx)(ai,{isTopPrimaryNav:j}),(0,d.jsx)("div",{className:(0,X.cn)("max-w-8xl mx-auto relative",!j&&!k&&!L&&"lg:pl-[19rem]"),children:(0,d.jsxs)("div",{className:(0,X.cn)(!j&&"relative"),children:[!j&&(0,d.jsx)("div",{className:(0,X.cn)("absolute w-full h-full",aa)}),(null==u?void 0:null===(n=u.topbar)||void 0===n?void 0:n.style)==="gradient"&&!j&&(0,d.jsx)(ai,{isTopPrimaryNav:j}),(0,d.jsxs)("div",{className:(0,X.cn)("relative"),children:[(0,d.jsx)("div",{className:(0,X.cn)("flex items-center lg:px-12 h-16 min-w-0",!j&&(null==u?void 0:null===(i=u.search)||void 0===i?void 0:i.location)==="side"&&"lg:h-12",!j&&aa,b?"mx-4 lg:mx-0":"px-4"),children:(0,d.jsxs)("div",{className:(0,X.cn)("h-full relative flex-1 flex items-center gap-x-4 min-w-0",j&&aa,!b&&"lg:border-none"),children:[(0,d.jsxs)("div",{className:(0,X.cn)("flex-1 flex items-center gap-x-4",!j&&!k&&!L&&"lg:hidden"),children:[(0,d.jsxs)(R(),{href:u?tS(u):"/",onContextMenu:e=>{e.preventDefault(),o.push(u?tS(u):"/")},children:[(0,d.jsxs)("span",{className:"sr-only",children:[null==c?void 0:c.name," home page"]}),(0,d.jsx)(tZ,{})]}),(0,d.jsx)(rK,{})]}),b&&V&&(0,d.jsx)("div",{className:"hidden lg:flex h-full items-center text-sm",children:(0,d.jsx)(r4,{})}),(null==u?void 0:null===(l=u.search)||void 0===l?void 0:l.location)==="top"&&(0,d.jsx)(rm,{}),(0,d.jsxs)("div",{className:"flex-1 relative hidden lg:flex items-center ml-auto justify-end space-x-4",children:[(0,d.jsx)("nav",{className:"text-sm",children:(0,d.jsx)("ul",{className:"flex space-x-6 items-center",children:(0,d.jsx)(ae,{})})}),(0,d.jsx)("div",{className:"flex items-center",children:(0,d.jsx)(r5,{})})]}),(0,d.jsxs)("div",{className:"flex lg:hidden items-center gap-2",children:[(0,d.jsxs)(rg,{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:s.SearchBarEntryMobile,children:[(0,d.jsx)("span",{className:"sr-only",children:g}),(0,d.jsx)(Y,{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,d.jsx)("button",{"aria-label":"More actions",className:"h-7 w-5 flex items-center justify-end",onClick:()=>y(!0),children:(0,d.jsx)(Y,{icon:"ellipsis-vertical",iconType:"solid",className:"h-4 w-4 bg-gray-500 dark:bg-gray-400 hover:bg-gray-600 dark:hover:bg-gray-300"})}),(0,d.jsx)(ar,{topbarDialogOpen:f,setTopbarDialogOpen:y})]})]})}),(0,d.jsxs)("div",{className:"flex items-center h-14 py-4 px-5 lg:hidden",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>p(!h),className:"text-gray-500 hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300",children:[(0,d.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,d.jsx)(eo.Oq,{})]}),e&&(0,d.jsxs)("div",{className:"ml-4 flex text-sm leading-6 whitespace-nowrap min-w-0 space-x-3",children:[t&&(0,d.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,d.jsx)("span",{children:t}),(0,d.jsx)(eo.LZ,{className:"fill-gray-400"})]}),(0,d.jsx)("div",{className:"font-semibold text-gray-900 truncate dark:text-gray-200",children:e})]})]})]}),b&&!V&&(0,d.jsx)("div",{className:(0,X.cn)("hidden lg:flex px-12 h-12"),children:(0,d.jsx)(r4,{})})]})})]})}let ai=({isTopPrimaryNav:e})=>(0,d.jsx)("div",{className:(0,X.cn)("absolute bg-gradient-to-t from-primary/5 to-transparent dark:from-primary-light/[0.03]",e&&"-left-8",e?"inset-0":"inset-y-0 w-full")});function as(e){return!!(e&&e.hasOwnProperty("group")&&e.hasOwnProperty("pages"))}function al(e,t){for(let r of t){let t=function e(t,r){for(let a of t.pages)if(as(a)){let t=e(a,r);if(t)return t}else if(rS(a,r))return t.group;return""}(r,e);if(t)return t}return""}let ao=({children:e})=>{let t=(0,tM.J)(),{mintConfig:r,pageMetadata:a}=(0,m.useContext)(w.E);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(an,{title:a.title,section:al(t,(null==r?void 0:r.navigation)??[]),mode:a.mode}),(0,d.jsx)(r0,{children:e})]})};var ad=r(40629),ac=r(97729),au=r.n(ac);let ah=({shouldIndex:e,origin:t,basePath:r})=>{let a=t+r+(0,tM.J)();return(0,d.jsxs)(au(),{children:[(0,d.jsx)("meta",{name:"og:url",content:a},"og:url"),(0,d.jsx)("link",{rel:"canonical",href:a}),!1===e&&(0,d.jsx)("meta",{name:"robots",content:"noindex"})]})};var ap=r(93842);let am=({favicons:e,mintConfig:t,metaTagsDict:r})=>(0,d.jsxs)(au(),{children:[e.icons.map(e=>(0,d.jsx)("link",{rel:e.rel,type:e.type,sizes:e.sizes,href:e.href},e.href)),(0,d.jsx)("meta",{name:"msapplication-config",content:e.browserconfig}),(0,d.jsx)("meta",{name:"apple-mobile-web-app-title",content:t.name}),(0,d.jsx)("meta",{name:"application-name",content:t.name}),(0,d.jsx)("meta",{name:"theme-color",content:"#ffffff"}),(0,d.jsx)("meta",{name:"msapplication-TileColor",content:t.colors.primary}),(0,d.jsx)("meta",{name:"theme-color",content:"#ffffff"}),(0,d.jsx)("link",{rel:"sitemap",type:"application/xml",href:`${e9.GW}/sitemap.xml`}),Object.entries(r).map(([e,t])=>(0,d.jsx)("meta",{name:e,content:t},e)),(0,d.jsx)("title",{children:r["og:title"]})]});var ag=({className:e})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("svg",{className:(0,K.Z)("h-3.5 w-3.5 block",e),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,d.jsx)("path",{d:"M506.3 417l-213.3-364C284.8 39 270.4 32 256 32C241.6 32 227.2 39 218.1 53l-213.2 364C-10.59 444.9 9.851 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM52.58 432L255.1 84.8L459.4 432H52.58zM256 337.1c-17.36 0-31.44 14.08-31.44 31.44c0 17.36 14.11 31.44 31.48 31.44s31.4-14.08 31.4-31.44C287.4 351.2 273.4 337.1 256 337.1zM232 184v96C232 293.3 242.8 304 256 304s24-10.75 24-24v-96C280 170.8 269.3 160 256 160S232 170.8 232 184z"})}),(0,d.jsx)("svg",{className:"h-3.5 w-3.5 hidden group-hover:block fill-gray-500 dark:fill-gray-400 group-hover:fill-gray-700 dark:group-hover:fill-gray-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,d.jsx)("path",{d:"M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z"})})]}),ax=({className:e})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("svg",{className:(0,K.Z)("h-3.5 w-3.5 block",e),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,d.jsx)("path",{d:"M58.57 323.5L362.7 19.32C387.7-5.678 428.3-5.678 453.3 19.32L492.7 58.75C495.8 61.87 498.5 65.24 500.9 68.79C517.3 93.63 514.6 127.4 492.7 149.3L188.5 453.4C187.2 454.7 185.9 455.1 184.5 457.2C174.9 465.7 163.5 471.1 151.1 475.6L30.77 511C22.35 513.5 13.24 511.2 7.03 504.1C.8198 498.8-1.502 489.7 .976 481.2L36.37 360.9C40.53 346.8 48.16 333.9 58.57 323.5L58.57 323.5zM82.42 374.4L59.44 452.6L137.6 429.6C143.1 427.7 149.8 424.2 154.6 419.5L383 191L320.1 128.1L92.51 357.4C91.92 358 91.35 358.6 90.8 359.3C86.94 363.6 84.07 368.8 82.42 374.4L82.42 374.4z"})}),(0,d.jsx)("svg",{className:"h-3.5 w-3.5 hidden group-hover:block fill-gray-500 dark:fill-gray-400 group-hover:fill-gray-700 dark:group-hover:fill-gray-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,d.jsx)("path",{d:"M362.7 19.3L314.3 67.7 444.3 197.7l48.4-48.4c25-25 25-65.5 0-90.5L453.3 19.3c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L421.7 220.3 291.7 90.3z"})})]});(i=o||(o={}))[i.Edit=0]="Edit",i[i.Alert=1]="Alert";var av=({href:e,type:t})=>{let{suggestEdits:r,raiseIssue:a}=(0,e8.Oo)();return(0,d.jsxs)(R(),{href:e,className:"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-400 hover:dark:border-gray-500",target:"_blank",rel:"noopener noreferrer",children:[1===t&&(0,d.jsx)(ag,{className:"fill-current"}),0===t&&(0,d.jsx)(ax,{className:"fill-current"}),0===t&&(0,d.jsx)("small",{className:"text-sm leading-4",children:r}),1===t&&(0,d.jsx)("small",{className:"text-sm leading-4",children:a})]})},af=r(76635),ay=r.n(af);function ab(){return(0,d.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",className:"fill-current",children:(0,d.jsx)("path",{d:"M10.1187 14.9124C8.925 15.253 7.67813 14.5624 7.3375 13.3687L7.15938 12.7437C7.04375 12.3374 6.83438 11.9624 6.55 11.6499L4.94688 9.8874C4.66875 9.58115 4.69062 9.10615 4.99687 8.82803C5.30312 8.5499 5.77813 8.57178 6.05625 8.87803L7.65938 10.6405C8.1 11.1249 8.42188 11.703 8.6 12.3312L8.77812 12.9562C8.89062 13.353 9.30625 13.5843 9.70625 13.4718C10.1063 13.3593 10.3344 12.9437 10.2219 12.5437L10.0437 11.9187C9.86562 11.2968 9.58437 10.7093 9.2125 10.1843C9.05 9.95615 9.03125 9.65615 9.15938 9.40615C9.2875 9.15615 9.54375 8.9999 9.825 8.9999H14C14.275 8.9999 14.5 8.7749 14.5 8.4999C14.5 8.2874 14.3656 8.10303 14.175 8.03115C13.9438 7.94365 13.7688 7.7499 13.7094 7.50928C13.65 7.26865 13.7125 7.01553 13.875 6.83115C13.9531 6.74365 14 6.62803 14 6.4999C14 6.25615 13.825 6.05303 13.5938 6.00928C13.3375 5.95928 13.1219 5.78115 13.0312 5.53428C12.9406 5.2874 12.9813 5.0124 13.1438 4.80615C13.2094 4.72178 13.25 4.61553 13.25 4.49678C13.25 4.2874 13.1187 4.10303 12.9312 4.03115C12.5719 3.89053 12.3781 3.50303 12.4812 3.13115C12.4937 3.09053 12.5 3.04365 12.5 2.99678C12.5 2.72178 12.275 2.49678 12 2.49678H8.95312C8.55937 2.49678 8.17188 2.6124 7.84375 2.83115L5.91563 4.11553C5.57188 4.34678 5.10625 4.25303 4.875 3.90615C4.64375 3.55928 4.7375 3.09678 5.08437 2.86553L7.0125 1.58115C7.5875 1.19678 8.2625 0.993652 8.95312 0.993652H12C13.0844 0.993652 13.9656 1.85615 14 2.93115C14.4563 3.29678 14.75 3.85928 14.75 4.49365C14.75 4.63428 14.7344 4.76865 14.7094 4.8999C15.1906 5.26553 15.5 5.84365 15.5 6.49365C15.5 6.69678 15.4688 6.89365 15.4125 7.07803C15.775 7.44678 16 7.94678 16 8.4999C16 9.60303 15.1063 10.4999 14 10.4999H11.1156C11.2625 10.8249 11.3875 11.1624 11.4844 11.5062L11.6625 12.1312C12.0031 13.3249 11.3125 14.5718 10.1187 14.9124ZM1 11.9999C0.446875 11.9999 0 11.553 0 10.9999V3.9999C0 3.44678 0.446875 2.9999 1 2.9999H3C3.55313 2.9999 4 3.44678 4 3.9999V10.9999C4 11.553 3.55313 11.9999 3 11.9999H1Z"})})}function aj(){return(0,d.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",className:"fill-current",children:(0,d.jsx)("path",{d:"M10.1187 1.08741C8.925 0.746789 7.67813 1.43741 7.3375 2.63116L7.15938 3.25616C7.04375 3.66241 6.83438 4.03741 6.55 4.34991L4.94688 6.11241C4.66875 6.41866 4.69062 6.89366 4.99687 7.17179C5.30312 7.44991 5.77813 7.42804 6.05625 7.12179L7.65938 5.35929C8.1 4.87491 8.42188 4.29679 8.6 3.66866L8.77812 3.04366C8.89062 2.64679 9.30625 2.41554 9.70625 2.52804C10.1063 2.64054 10.3344 3.05616 10.2219 3.45616L10.0437 4.08116C9.86562 4.70304 9.58437 5.29054 9.2125 5.81554C9.05 6.04366 9.03125 6.34366 9.15938 6.59366C9.2875 6.84366 9.54375 6.99991 9.825 6.99991H14C14.275 6.99991 14.5 7.22491 14.5 7.49991C14.5 7.71241 14.3656 7.89679 14.175 7.96866C13.9438 8.05616 13.7688 8.24992 13.7094 8.49054C13.65 8.73117 13.7125 8.98429 13.875 9.16866C13.9531 9.25616 14 9.37179 14 9.49991C14 9.74366 13.825 9.94679 13.5938 9.99054C13.3375 10.0405 13.1219 10.2187 13.0312 10.4624C12.9406 10.7062 12.9813 10.9843 13.1438 11.1905C13.2094 11.2749 13.25 11.3812 13.25 11.4999C13.25 11.7093 13.1187 11.8937 12.9312 11.9655C12.5719 12.1062 12.3781 12.4937 12.4812 12.8655C12.4937 12.9062 12.5 12.953 12.5 12.9999C12.5 13.2749 12.275 13.4999 12 13.4999H8.95312C8.55937 13.4999 8.17188 13.3843 7.84375 13.1655L5.91563 11.8812C5.57188 11.6499 5.10625 11.7437 4.875 12.0905C4.64375 12.4374 4.7375 12.8999 5.08437 13.1312L7.0125 14.4155C7.5875 14.7999 8.2625 15.003 8.95312 15.003H12C13.0844 15.003 13.9656 14.1405 14 13.0655C14.4563 12.6999 14.75 12.1374 14.75 11.503C14.75 11.3624 14.7344 11.228 14.7094 11.0968C15.1906 10.7312 15.5 10.153 15.5 9.50304C15.5 9.29991 15.4688 9.10304 15.4125 8.91866C15.775 8.55304 16 8.05304 16 7.49991C16 6.39679 15.1063 5.49991 14 5.49991H11.1156C11.2625 5.17491 11.3875 4.83741 11.4844 4.49366L11.6625 3.86866C12.0031 2.67491 11.3125 1.42804 10.1187 1.08741ZM1 5.99991C0.446875 5.99991 0 6.44679 0 6.99991V13.9999C0 14.553 0.446875 14.9999 1 14.9999H3C3.55313 14.9999 4 14.553 4 13.9999V6.99991C4 6.44679 3.55313 5.99991 3 5.99991H1Z"})})}function ak({type:e,label:t,feedbackSent:r,setFeedbackSent:a}){let[n,i]=(0,m.useState)(!1),s=(0,G.O)("thumb_vote");return(0,d.jsxs)("button",{className:(0,K.Z)("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-400 hover:dark:border-gray-500",n&&("Yes"===e?"!border-green-600/40 !text-green-600 dark:!border-green-300/40 dark:!text-green-300":"!border-red-700/40 !text-red-700 dark:!border-red-300/40 dark:!text-red-300")),onClick:()=>{r||(a(!0),i(!0),s({vote:e}),i(!1))},children:["Yes"===e?(0,d.jsx)(aj,{}):(0,d.jsx)(ab,{}),(0,d.jsx)("small",{className:"text-sm font-normal leading-4 ",children:ay().startCase(t)})]})}let aw={YES:"Yes",NO:"No"};function aL(){var e;let t,r;let[a,n]=(0,m.useState)(!1),{mintConfig:i,feedback:s}=(0,m.useContext)(w.E),l=(0,tM.J)(),{yes:c,no:u,wasThisPageHelpful:h}=(0,e8.Oo)();return(l&&(null==i?void 0:null===(e=i.repo)||void 0===e?void 0:e.github)&&!i.repo.github.isPrivate&&(t=function(e,t){let{owner:r,repo:a,deployBranch:n,contentDirectory:i}=t;return`https://github.com/${r}/${a}/edit/${n}/${i?`${i}/`:""}${rE(e)}.mdx`}(l,i.repo.github),r=function(e,t){let{owner:r,repo:a}=t;return`https://github.com/${r}/${a}/issues/new?title=Issue on docs&body=Path: ${e}`}(l,i.repo.github)),(null==s?void 0:s.edits)||(null==s?void 0:s.issues)||(null==s?void 0:s.thumbs))?(0,d.jsx)("div",{className:"pb-16 w-full",children:(0,d.jsxs)("div",{className:(0,K.Z)("flex flex-col gap-y-4","xl:flex-col xl:gap-6","min-[1400px]:flex-row",s.thumbs&&"md:flex-row md:justify-end"),children:[s.thumbs&&(0,d.jsxs)("div",{className:(0,K.Z)("flex flex-row gap-5 items-center grow justify-between ","md:justify-start","xl:justify-between","min-[1400px]:justify-start"),children:[(0,d.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:h}),(0,d.jsxs)("div",{className:"flex flex-row gap-3 items-center",children:[(0,d.jsx)(ak,{type:aw.YES,label:c,feedbackSent:a,setFeedbackSent:n}),(0,d.jsx)(ak,{type:aw.NO,label:u,feedbackSent:a,setFeedbackSent:n})]})]}),(0,d.jsxs)("div",{className:"flex flex-row gap-3 justify-end",children:[s.edits&&t&&(0,d.jsx)(av,{type:o.Edit,href:t}),s.issues&&r&&(0,d.jsx)(av,{type:o.Alert,href:r})]})]})}):null}var aV=r(26736),aC=r(18476),aN=r.n(aC);r(62363);let aM=()=>{var e;let{apiReferenceData:t}=(0,m.useContext)(w.E);return(0,m.useMemo)(()=>{var e;let r=null===(e=t.schemaData)||void 0===e?void 0:e.example;if(void 0!=r)return JSON.stringify(r,null,2)},[null===(e=t.schemaData)||void 0===e?void 0:e.example])};var aH=r(86741);function aZ({language:e,children:t}){let r=e&&aN().languages[e];return(0,d.jsx)("pre",{children:(0,d.jsx)("code",{children:"string"==typeof t&&r?(0,aH.ZP)(aN().highlight(t,r,e)):t})})}let aE=()=>{let e=aM();return null==e?null:(0,d.jsx)(eV,{isSmallText:!0,children:(0,d.jsx)(ey,{filename:"Example",children:(0,d.jsx)(aZ,{language:"json",children:e})},"schema-example")})};r(58650),r(35586),r(83701),r(64883),r(23502),r(84999),r(71109),r(82625),r(63083);let aS={curl:"bash",golang:"go",js:"javascript",sh:"bash",ts:"typescript"},aO={bash:"cURL",c:"C","c#":"C#","c++":"C++",go:"Go",java:"Java",javascript:"JavaScript",php:"PHP",python:"Python",typescript:"TypeScript",ruby:"Ruby"},aT={filename:"cURL",snippet:{target:"shell"},language:"bash"},aI={filename:"Python",snippet:{target:"python",client:"requests"},language:"python"},aP={filename:"JavaScript",snippet:{target:"javascript",client:"fetch"},language:"javascript"},a_={filename:"PHP",snippet:{target:"php",client:"curl"},language:"php"},aA={filename:"Go",snippet:{target:"go"},language:"go"},a$={filename:"Java",snippet:{target:"java"},language:"java"},aB=[aT,aI,aP,a_,aA,a$],az={bash:aT,python:aI,javascript:aP,php:a_,go:aA,java:a$},aq=e=>{let t=e.toLowerCase();return aS[t]??t},aF=()=>{let e=(0,m.useContext)(w.E);return(0,m.useMemo)(()=>{var t,r,a;return(null===(a=e.mintConfig)||void 0===a?void 0:null===(r=a.api)||void 0===r?void 0:null===(t=r.playground)||void 0===t?void 0:t.mode)??"show"},[e.mintConfig])},aR=()=>{let{apiReferenceData:{endpoint:e}}=(0,m.useContext)(w.E);return e},aD=()=>void 0!==aR(),aW=()=>{let e=aR(),[{endpoint:t}]=eP();return(0,m.useMemo)(()=>e??t,[e,t])},aU=()=>void 0!==aW(),aG=()=>{var e;let t=aW(),{mintConfig:r}=(0,m.useContext)(w.E);return(0,m.useMemo)(()=>{var e,a;let n=null==t?void 0:null===(e=t.servers)||void 0===e?void 0:e.map(({url:e})=>e);if(n&&n.length>0)return n;let i=null==r?void 0:null===(a=r.api)||void 0===a?void 0:a.baseUrl;return"string"==typeof i?[i]:i},[null==t?void 0:t.servers,null==r?void 0:null===(e=r.api)||void 0===e?void 0:e.baseUrl])},aJ=()=>{let[e]=eP();return(0,m.useMemo)(()=>e.apiPlaygroundInputs,[e.apiPlaygroundInputs])},aK=e=>{let[{codeExamples:t}]=eP();return t[e]},aY=()=>{let[{codeExamples:e}]=eP();return!!e.request||!!e.response},aQ=({code:e})=>{let t=(0,G.O)("code_block_copy");return(0,d.jsx)("div",{className:"flex items-center pr-4","data-testid":"code-group-select-copy-button",children:(0,d.jsx)(ex,{textToCopy:e,onCopied:(e,r)=>t({code:r})})})},aX=({selectedOption:e,setSelectedOption:t,options:r})=>{var a;let n=r.length>1,{docsConfig:i}=(0,m.useContext)(w.E),s=null==i?void 0:null===(a=i.styling)||void 0===a?void 0:a.codeblocks;return(0,d.jsxs)(rB,{children:[(0,d.jsx)(rz,{disabled:!n,className:(0,X.cn)("select-none bg-transparent p-2 text-xs font-medium min-w-16 flex-1 dark:bg-transparent","system"===s&&"text-primary dark:text-primary-light",("dark"===s||void 0==s)&&"text-primary-light"),children:(0,d.jsxs)("div",{className:"flex gap-1.5 items-center px-2 py-1 group-hover:hover:bg-primary-light/10 rounded-lg min-w-12",children:[(0,d.jsx)("p",{className:"truncate",children:e}),n&&(0,d.jsx)(r_.Z,{size:12,className:"min-w-3"})]})}),(0,d.jsx)(rq,{className:(0,X.cn)("p-1 overflow-y-auto","system"===s&&"border border-gray-200 bg-gray-50 dark:bg-[#0F1117]",("dark"===s||void 0==s)&&"border-none bg-[#0F1117]"),children:r.map((r,a)=>(0,d.jsx)(rF,{onSelect:()=>t(r),className:(0,X.cn)("py-1.5 text-xs","system"===s&&"hover:text-primary hover:bg-primary/10 dark:hover:text-primary-light dark:hover:bg-primary-light/10",("dark"===s||void 0==s)&&"hover:text-primary-light hover:bg-primary-light/10",r===e&&"text-primary dark:text-primary-light font-medium",r!==e&&"system"===s&&"text-gray-500 dark:text-white/50",r!==e&&("dark"===s||void 0==s)&&"text-white/50"),children:r},a))})]})},a0=({snippets:e})=>{var t;let{docsConfig:r}=(0,m.useContext)(w.E),a=Object.keys(e),[n,i]=(0,m.useState)(a[0]),s=void 0!==n?e[n]:void 0,l=s?Object.keys(s):void 0,[o,c]=(0,m.useState)(l&&l[0]),u=null==r?void 0:null===(t=r.styling)||void 0===t?void 0:t.codeblocks,h=o&&(null==l?void 0:l.includes(o))?o:null==l?void 0:l[0],p=void 0!==s&&void 0!==h?s[h]:void 0;return(0,d.jsxs)("div",{className:(0,X.cn)("text-xs leading-6 rounded-xl ring-1 ring-gray-200 dark:ring-gray-800/50 not-prose overflow-hidden relative max-w-full min-w-full","system"===u&&"bg-gray-100/50 dark:bg-codeblock",("dark"===u||void 0==u)&&"bg-[#0F1117] dark:bg-codeblock"),"data-testid":"code-group-select",children:[(0,d.jsxs)("div",{className:(0,X.cn)("flex justify-between text-xs leading-6 border-b rounded-t-xl w-full","system"===u&&"bg-gray-100 dark:bg-codeblock border-gray-200/50 dark:border-gray-800",("dark"===u||void 0==u)&&"bg-black/40 border-gray-900/80"),children:[(0,d.jsx)(aX,{selectedOption:n,setSelectedOption:i,options:a,"data-testid":"code-group-select-group"}),(0,d.jsxs)("div",{className:"flex overflow-hidden",children:[l&&(0,d.jsx)(aX,{selectedOption:h,setSelectedOption:c,options:l,"data-testid":"code-group-select-option"}),(0,d.jsx)(aQ,{code:(null==p?void 0:p.code)??""})]})]}),(0,d.jsx)("div",{className:(0,X.cn)("not-prose rounded-b-xl p-5 min-w-full max-w-0 overflow-x-auto max-h-[calc(100%-44px)] w-full scrollbar-track-transparent scrollbar-thin scrollbar-thumb-rounded text-xs leading-[1.35rem]","system"===u&&"text-gray-950 dark:text-gray-50 scrollbar-thumb-black/20 dark:scrollbar-thumb-white/10 codeblock-light",("dark"===u||void 0==u)&&"text-gray-50 scrollbar-thumb-white/25 dark:scrollbar-thumb-white/10 codeblock-dark"),children:(0,d.jsx)(aZ,{language:null==p?void 0:p.language,children:null==p?void 0:p.code})})]})},a1=({snippets:e,...t})=>(0,d.jsx)(eV,{isSmallText:!0,...t,children:e.map(({code:e,...t})=>(0,d.jsx)(ey,{filename:t.filename,children:(0,d.jsx)(aZ,{language:t.language,children:e})},t.filename))}),a2={headers:[],method:"GET",url:"",httpVersion:"HTTP/1.1",queryString:[],headersSize:-1,cookies:[],bodySize:-1};var a4=r(48834).Buffer;let a5=({endpoint:e,baseUrl:t,contentType:a,setResult:n,setIsFetching:i})=>{var s,l,o,d;let c=(0,G.O)("api_playground_call"),{basePath:u}=(0,B.u)(),h=aJ(),{mintConfig:p}=(0,m.useContext)(w.E),g=(null==p?void 0:null===(l=p.api)||void 0===l?void 0:null===(s=l.auth)||void 0===s?void 0:s.method)==="cobo",x=(null==p?void 0:null===(d=p.api)||void 0===d?void 0:null===(o=d.playground)||void 0===o?void 0:o.disableProxy)??!1;return(0,m.useCallback)(async()=>{i(!0);let s=await r.e(3077).then(r.bind(r,83077)).then(e=>e.default),l=a3(e.path,h.path),o=a7(a6(t,h.server),l),d=a8(h.header,a);g&&(d=l.startsWith("/v1")?await a9(e,h,d):await ne(e.method,l,h.body,h.query,d));let p={method:e.method,url:o,header:d,body:h.body,cookie:h.cookie,query:h.query};try{if(x){let e=await nt(p);n({error:!1,response:{status:e.status,statusText:e.statusText,headers:e.headers,data:e.data}})}else{let{data:e}=await s.post(`${u}/api/request`,p);n(e)}}catch(e){n({error:!0,errorMessage:"unable to complete request"}),console.error(e)}i(!1),c({request:p})},[i,e,h,t,a,g,c,x,n,u])},a3=(e,t)=>Object.entries(t).reduce((e,[t,r])=>void 0==r?e:e.replace(`{${t}}`,encodeURIComponent(r.toString())),e),a6=(e,t)=>{let r=e;return Object.entries(t).forEach(([e,t])=>{t&&(r=r.replace(`{${e}}`,t))}),r},a7=(e,t)=>e.replace(/\/$/,"")+"/"+t.replace(/^\//,""),a8=(e,t)=>Object.keys(e).some(e=>"content-type"===e.toLowerCase())?e:{...e,"content-type":t},a9=async(e,t,a)=>{let n=a["API-SECRET"],{getCoboV1CustodyGeneratedKeys:i}=await Promise.all([r.e(5121),r.e(162)]).then(r.bind(r,63089)),s={...a,...i(e.method,e.path,n,t.body||t.query)};return delete s["API-SECRET"],s},ne=async(e,t,a,n,i)=>{let{getCoboV2CustodyGeneratedKeys:s}=await r.e(8230).then(r.bind(r,28230)),l=i["BIZ-API-KEY"];return"string"==typeof l?s(l,e,t,a,n):{}},nt=async e=>(await r.e(3077).then(r.bind(r,83077)).then(e=>e.default))({url:e.url,method:e.method,params:e.query,data:e.body,headers:e.header,paramsSerializer:{indexes:null},validateStatus:()=>!0,transformResponse:e=>a4.from(e).toString("base64")}),nr=(e,t)=>{if(void 0!==e){if("multipart/form-data"===t||"application/x-www-form-urlencoded"===t){if(!e||"object"!=typeof e)return;return{mimeType:t,params:Object.entries(e).flatMap(([e,t])=>{var r;return[{name:e,value:"object"==typeof t?JSON.stringify(t,void 0,2):null==t?void 0:null===(r=t.toString)||void 0===r?void 0:r.call(t)}]})}}return"string"==typeof e&&t&&function(e){let t=e.toLowerCase();return t.startsWith("text/")||t.endsWith("+xml")||t.endsWith("/xml")}(t)?{mimeType:t,text:e}:{mimeType:"application/json",text:JSON.stringify(e,null,2)}}},na=(e,t,r)=>{var a;let n=[],i=new Set;return Object.entries(t).filter(e=>null!=e[1]).forEach(([e,t])=>{i.add(e),n.push({name:e,value:t.toString()})}),Object.entries(e.request.parameters.header).filter(([e,t])=>t.schema[0].required).forEach(([e])=>{i.has(e)||n.push({name:e,value:`<${e.toLowerCase()}>`})}),Object.entries((null===(a=e.request.security[0])||void 0===a?void 0:a.parameters.header)??[]).forEach(([e,t])=>{i.has(e)||n.push({name:e,value:nn(t)})}),r&&ni(n,r),n},nn=e=>{switch(e.type){case"http":return"basic"===e.scheme?"Basic <encoded-value>":"Bearer <token>";case"oauth2":return"Bearer <token>";default:return"<api-key>"}},ni=(e,t)=>{e.some(({name:e})=>"content-type"===e.toLowerCase())||e.push({name:"Content-Type",value:t})},ns=({exampleData:e,endpoint:t,baseUrl:r,inputs:a,selectedBodyContentType:n})=>{let i=nl(a),s=a3(t.path,a.path),l=na(t,a.header,n),o=nr(void 0!==a.body?a.body:e,n);return{...a2,method:t.method.toUpperCase(),url:a7(a6(r,a.server),s),queryString:i,headers:l,postData:o}},nl=e=>Object.entries(e.query).flatMap(([e,t])=>t?Array.isArray(t)?t.filter(Boolean).map(t=>({name:e,value:t.toString()})):[{name:e,value:t.toString()}]:[]);var no=r(78599),nd=r.n(no);let nc=({request:e,pathInputs:t,snippetPresets:r=aB})=>{let a={},n=e.url.replace(/:{[^{}]+}/g,e=>{let t=":62437";return a[t]=e,t}).replace(/{[^{}]+}/g,e=>{let r=t[e.slice(1,e.length-1)];if(r&&("string"!=typeof r||r.length>0))return`${encodeURIComponent(r.toString())}`;let n=ti()();return a[n]=e,n}),i=new(nd())({...e,url:n});return r.map(e=>{let{filename:t,snippet:r,language:n}=e,{target:s,client:l}=r;return{filename:t,code:nu(a,i.convert(s,l).toString()),language:n}})},nu=(e,t)=>Object.entries(e).reduce((e,[t,r])=>e.replace(t,r),t),nh=({baseUrl:e,endpoint:t,inputs:r,requestExampleLanguages:a})=>{let[n]=Object.entries(t.request.body);if(void 0===n)return(0,d.jsx)(np,{endpoint:t,baseUrl:e,inputs:r,requestExampleLanguages:a});let[i,s]=n,l=Object.values(s.examples)[0];return void 0===l?null:Object.keys(s.examples).length>1?(0,d.jsx)(nm,{endpoint:t,selectedBodyContentType:i,baseUrl:e,inputs:r,examples:s.examples}):(0,d.jsx)(np,{endpoint:t,selectedBodyContentType:i,baseUrl:e,inputs:r,exampleValue:l.value,requestExampleLanguages:a})},np=({baseUrl:e,endpoint:t,inputs:r,selectedBodyContentType:a,exampleValue:n,requestExampleLanguages:i})=>{let s;let l=ns({baseUrl:e,endpoint:t,inputs:r,selectedBodyContentType:a,exampleData:n}),o=null==i?void 0:i.reduce((e,t)=>{let r=az[t];return r&&e.push(r),e},[]);try{s=nc({pathInputs:r.path,request:l,snippetPresets:o})}catch(e){return console.error(e),null}return(0,d.jsx)(a1,{snippets:s})},nm=({baseUrl:e,endpoint:t,inputs:r,selectedBodyContentType:a,examples:n})=>{let i={},s=r.path;for(let[l,{value:o}]of Object.entries(n)){if(!o)continue;let n=ns({baseUrl:e,endpoint:t,inputs:r,selectedBodyContentType:a,exampleData:o});try{nc({pathInputs:s,request:n}).forEach(e=>{i[e.filename]={...i[e.filename],[l]:e}})}catch(e){return console.error(e),null}}return(0,d.jsx)(a0,{snippets:i})},ng=["bash","python","javascript","php","go","java"],nx=({endpoint:e,baseUrl:t,inputs:r,apiPlaygroundMode:a,lang:n})=>{if(t&&"simple"!==a&&"hide"!==a)try{let[a]=Object.entries(e.request.body),i=ns({baseUrl:t,endpoint:e,inputs:r,exampleData:null==a?void 0:a[1].examples[0],selectedBodyContentType:null==a?void 0:a[0]}),s=az[n];if(void 0==s)return;let[l]=nc({request:i,pathInputs:r.path,snippetPresets:[s]});if(l)return{label:"Interactive Example",lang:l.language,source:l.code}}catch(e){}},nv=({codeSamples:e,endpoint:t,baseUrl:r,inputs:a,apiPlaygroundMode:n,requestExampleLanguages:i})=>{let s=r&&"simple"!==n&&"hide"!==n,l=i??[];return e=e.map(e=>({...e,lang:aq(e.lang)})),void 0===i&&(e.forEach(e=>{l.includes(e.lang)||l.push(e.lang)}),s&&ng.forEach(e=>{l.includes(e)||l.push(e)})),l.reduce((i,s)=>{let l=aO[s]??s,o=e.filter(e=>e.lang===s),d=i[l]??{};if(0===o.length){let e=nx({baseUrl:r,endpoint:t,inputs:a,apiPlaygroundMode:n,lang:s});e&&nf(e,s,l,d,!0)}else o.forEach(e=>{l=aO[s]??e.label??s,nf(e,s,l,d,!1)});return Object.keys(d).length>0&&(i[l]=d),i},{})},nf=(e,t,r,a,n)=>{""in a&&(a["Example 1"]=a[""],delete a[""]);let i=Object.keys(a).length,s=e.label??(i>0?`Example ${i+1}`:"");a[s]={filename:n?r:s||r,language:t,code:e.source}},ny=e=>{let t=nv(e);if(Object.values(t).every(e=>Object.keys(e).length<=1)){let e=Object.values(t).flatMap(e=>Object.values(e));return new Set(e.map(e=>e.filename)).size!==e.length&&(e=e.map(e=>({...e,filename:aO[e.language]??e.language}))),(0,d.jsx)(a1,{snippets:e})}return(0,d.jsx)(a0,{snippets:t})},nb=({data:e})=>{var t;return(0,d.jsx)(eV,{isSmallText:!0,children:null===(t=e.children)||void 0===t?void 0:t.map((e,t)=>(0,d.jsx)(ey,{filename:e.filename,children:(0,d.jsx)(eY,{children:(0,aH.ZP)(e.html??"")})},(e.filename??"")+t))})},nj=()=>{var e,t,r;let a=aK("request"),n=aW(),i=aJ(),[{apiBaseIndex:s}]=eP(),l=aF(),o=aG(),{docsConfig:c}=(0,m.useContext)(w.E),u=(null==o?void 0:o[s])??(null==o?void 0:o[0]),h=null==n?void 0:n.request.codeSamples,p=null==c?void 0:null===(r=c.api)||void 0===r?void 0:null===(t=r.examples)||void 0===t?void 0:null===(e=t.languages)||void 0===e?void 0:e.map(aq);return void 0!==a?(0,d.jsx)(nb,{data:a}):h&&h.length>0?(0,d.jsx)(ny,{endpoint:n,inputs:i,baseUrl:u,codeSamples:h,apiPlaygroundMode:l,requestExampleLanguages:p}):void 0!==n&&void 0!==u?(0,d.jsx)(nh,{endpoint:n,inputs:i,baseUrl:u,requestExampleLanguages:p}):null},nk=(e,t)=>Object.entries(e).sort().reduce((e,[r,a])=>{var n;let i=void 0!==t&&a[t]?a[t]:Object.values(a)[0];if(void 0===i)return e[r]={"":{filename:r,code:"This response has no body data.",language:""}},e;if((null===(n=Object.values(i.examples)[0])||void 0===n?void 0:n.value)===void 0)return e[r]={"":{filename:r,code:"This response does not have an example.",language:""}},e;let s=Object.entries(i.examples).reduce((e,[t,a])=>{let n=JSON.stringify(a.value,null,2);return e[t]={filename:r,language:"json",code:n},e},{});return e[r]=s,e},{}),nw=({endpoint:e,selectedResponseContentType:t})=>{if(0===Object.keys(e.response).length||Object.values(e.response).every(e=>0===Object.keys(e).length))return null;let r=nk(e.response,t);if(Object.values(r).every(e=>Object.keys(e).length<=1)){let e=Object.values(r).flatMap(e=>Object.values(e));return(0,d.jsx)(a1,{snippets:e})}return(0,d.jsx)(a0,{snippets:r})},nL=()=>{let e=aK("response"),t=aW();return void 0!==e?(0,d.jsx)(nb,{data:e}):void 0!==t?(0,d.jsx)(nw,{endpoint:t}):null};var nV=()=>(0,d.jsxs)(aV.Z,{children:[(0,d.jsx)(nj,{}),(0,d.jsx)(nL,{}),(0,d.jsx)(aE,{})]}),nC=r(17974);let nN=["binary","base64"];function nM(e,t,r,a=5){let n=`#/components/${e}/`;if(!t.startsWith(n))return;let i=t.slice(n.length),s=null==r?void 0:r[i];return s&&"$ref"in s?a>0&&"string"==typeof s.$ref?nM(e,s.$ref,r,a-1):void 0:s}let nH=(e,t,r)=>{void 0!==t&&(r[e]=t)},nZ=(e,t,r)=>{void 0!==t[e]&&(r[e]=t[e])},nE=(e,t)=>{var r;let a=(null===(r=e.examples)||void 0===r?void 0:r[0])!==void 0?e.examples[0]:e.example;void 0!==a&&(t.example=a)},nS=e=>{var t,r;let a;if((void 0!==e.format||void 0!==e.pattern||void 0!==e.minLength||void 0!==e.maxLength||(null===(t=e.enum)||void 0===t?void 0:t.every(e=>"string"==typeof e)))&&(a="string"),void 0!==e.multipleOf||void 0!==e.minimum||void 0!==e.maximum||void 0!==e.exclusiveMinimum||void 0!==e.exclusiveMaximum||(null===(r=e.enum)||void 0===r?void 0:r.every(e=>"number"==typeof e))){if(void 0!==a)return;a="number"}if("items"in e&&void 0!==e.items||void 0!==e.minItems||void 0!==e.maxItems||void 0!==e.uniqueItems){if(void 0!==a)return;a="array"}if(void 0!==e.additionalProperties||void 0!==e.properties||void 0!==e.minProperties||void 0!==e.maxProperties){if(void 0!==a)return;a="object"}return a};function nO(e){if(!e[0])return[[]];let t=nO(e.slice(1));return e[0].flatMap(e=>t.map(t=>[...e,...t]))}let nT=(e,t,r,a)=>{nH(e,nI(t,r,e,a),r)},nI=(e,t,r,a)=>{var n;return void 0!==e[r]&&void 0!==t[r]?a(e[r],t[r]):null!==(n=e[r])&&void 0!==n?n:t[r]};function nP(e,t,r,a){let n=(function e(t,r){var a,n,i,s,l;let o;if("$ref"in t){let e=nM("schemas",t.$ref,r);if(!e)return[[{}]];o=Object.assign(Object.assign({},e),{title:null!==(a=t.title)&&void 0!==a?a:e.title,description:null!==(n=t.description)&&void 0!==n?n:e.description})}else o=t;let d=o.nullable;if(!o.oneOf&&!o.allOf&&!o.anyOf&&!Array.isArray(o.type)&&!d)return[[o]];let c=Object.assign({},o);delete c.oneOf,delete c.anyOf,delete c.allOf,delete c.not;let u=Array.isArray(c.type)?[...c.type]:[c.type];d&&!u.includes("null")&&u.push("null");let h=Object.keys(c).length>0?[u.map(e=>[Object.assign(Object.assign({},c),{type:e})])]:[],p=null===(i=o.oneOf)||void 0===i?void 0:i.map(t=>e(t,r)),m=null===(s=o.anyOf)||void 0===s?void 0:s.map(t=>e(t,r)),g=null===(l=o.allOf)||void 0===l?void 0:l.map(t=>e(t,r)),x=p?[p.flat()]:[],v=m?[m.flat()]:[],f=g?[nO(g)]:[];return nO([...x,...v,...f,...h])})(e,t).flatMap(e=>{try{let n=e.reduce((e,r)=>{var n,i,s,l;let o=r.type;if("integer"===e.type&&"number"===o?o="integer":"number"===e.type&&"integer"===o?e.type="integer":void 0===e.type&&void 0!==o?e.type=o:void 0!==e.type&&void 0===o&&(o=e.type),e.type!==o)throw Error(`${e.type} vs ${o}`);for(let t of[e,r])"number"==typeof t.exclusiveMaximum&&(void 0===t.maximum||t.maximum>=t.exclusiveMaximum?(t.maximum=t.exclusiveMaximum,t.exclusiveMaximum=!0):t.exclusiveMaximum=void 0),"number"==typeof t.exclusiveMinimum&&(void 0===t.minimum||t.minimum<=t.exclusiveMinimum?(t.minimum=t.exclusiveMinimum,t.exclusiveMinimum=!0):t.exclusiveMinimum=void 0);nZ("title",r,e),nZ("description",r,e),nZ("format",r,e),nZ("default",r,e),nZ("const",r,e),nT("multipleOf",r,e,nC),nT("maxLength",r,e,Math.min),nT("minLength",r,e,Math.max),nT("maxItems",r,e,Math.min),nT("minItems",r,e,Math.max),nT("maxProperties",r,e,Math.min),nT("minProperties",r,e,Math.max),nT("required",r,e,(e,t)=>t.concat(e.filter(e=>!t.includes(e)))),nT("enum",r,e,(e,t)=>t.filter(t=>e.includes(t))),nT("readOnly",r,e,(e,t)=>e&&t),nT("writeOnly",r,e,(e,t)=>e&&t),nT("deprecated",r,e,(e,t)=>e||t);let d=nI(r,e,"maximum",Math.min),c=nI(r,e,"minimum",Math.max);nH("exclusiveMaximum",(e.maximum===d?e.exclusiveMaximum:void 0)||(r.maximum===d?r.exclusiveMaximum:void 0),e),nH("exclusiveMinimum",(e.minimum===c?e.exclusiveMinimum:void 0)||(r.minimum===c?r.exclusiveMinimum:void 0),e),nH("maximum",d,e),nH("minimum",c,e);let u=(null===(n=e.examples)||void 0===n?void 0:n[0])!==void 0?e.examples[0]:e.example,h=(null===(i=r.examples)||void 0===i?void 0:i[0])!==void 0?r.examples[0]:r.example;if(u&&h&&"object"==typeof u&&"object"==typeof h?e.example=Object.assign(Object.assign({},u),h):nH("example",void 0!==h?h:u,e),r.items){let t=null!==(s=e.items)&&void 0!==s?s:{allOf:[]};t.allOf.push(r.items),e.items=t}if(r.properties&&Object.entries(r.properties).filter(([e,r])=>{if("$ref"in r){let e=nM("schemas",r.$ref,t);if(!e)return!0;r=e}return(!r.readOnly||"request"!==a)&&(!r.writeOnly||"response"!==a)}).forEach(([t,r])=>{var a;let n=null!==(a=e.properties)&&void 0!==a?a:{},i=n[t];i?i.allOf.push(r):n[t]={allOf:[r]},e.properties=n}),!1===r.additionalProperties)e.additionalProperties=!1;else if(!1!==e.additionalProperties&&r.additionalProperties&&"object"==typeof r.additionalProperties){let t=null!==(l=e.additionalProperties)&&void 0!==l?l:{allOf:[]};t.allOf.push(r.additionalProperties),e.additionalProperties=t}return e},{});return[function(e,t){var r,a;let n={};if(nH("required",t,n),nZ("title",e,n),nZ("description",e,n),nZ("readOnly",e,n),nZ("writeOnly",e,n),nZ("deprecated",e,n),void 0===e.type){let t=nS(e);if(void 0===t)return Object.assign({type:"any"},n);e.type=t}switch(e.type){case"boolean":case"null":return nZ("default",e,n),nE(e,n),Object.assign({type:e.type},n);case"number":case"integer":if(e.enum)return nZ("default",e,n),nE(e,n),Object.assign({type:"number"===e.type?"enum<number>":"enum<integer>",enum:e.enum.filter(e=>"number"==typeof e)},n);return nZ("multipleOf",e,n),nZ("maximum",e,n),nZ("exclusiveMaximum",e,n),nZ("minimum",e,n),nZ("exclusiveMinimum",e,n),nZ("default",e,n),nE(e,n),Object.assign({type:e.type},n);case"string":if(e.enum)return nZ("default",e,n),nE(e,n),Object.assign({type:"enum<string>",enum:e.enum.filter(e=>"string"==typeof e)},n);if(e.format&&nN.includes(e.format))return Object.assign({type:"file",contentEncoding:e.format},n);return nZ("format",e,n),nZ("pattern",e,n),nZ("maxLength",e,n),nZ("minLength",e,n),nZ("default",e,n),nZ("const",e,n),nE(e,n),Object.assign({type:e.type},n);case"array":return nZ("maxItems",e,n),nZ("minItems",e,n),nZ("uniqueItems",e,n),nZ("default",e,n),nE(e,n),Object.assign({type:e.type,items:null!==(r=e.items)&&void 0!==r?r:{}},n);case"object":return nH("requiredProperties",e.required,n),nZ("additionalProperties",e,n),nZ("maxProperties",e,n),nZ("minProperties",e,n),nZ("default",e,n),nE(e,n),Object.assign({type:e.type,properties:null!==(a=e.properties)&&void 0!==a?a:{}},n);default:throw Error()}}(n,r)]}catch(e){return[]}});return n[0]?[n[0],...n.slice(1)]:[{type:"any"}]}var n_=r(55785);let nA=({markdown:e,className:t})=>(0,d.jsx)("div",{className:(0,X.cn)("prose prose-sm prose-gray dark:prose-invert",t),children:(0,d.jsx)(n_.U,{children:e})}),n$=({markdown:e,className:t})=>(0,d.jsx)("div",{className:(0,X.cn)("prose prose-sm prose-gray dark:prose-invert",t),children:(0,d.jsx)(n_.Q,{children:e})}),nB=({options:e,selectedIndex:t,onSelectOption:r})=>(0,d.jsx)("div",{className:"-mt-2",children:(0,d.jsx)(e0,{defaultTabIndex:t,onClickTab:r,className:"!border-gray-100 !mb-4 dark:!border-white/10",children:e.map(e=>(0,d.jsx)(eX,{title:e},e))})}),nz=({fieldType:e,schema:t,name:r,nullable:a,allObjects:n,location:i,selectedIndex:s,typeOptions:l,onSelectTypeOption:o,parentName:c,apiParamFieldOption:u,depth:h=0})=>{let p=nF(u,r,c,(n??!1)&&l.length>1),g=n?`object${a?" | null":""}`:l[s??0],x=Object.entries(ia(t)).sort(([e],[r])=>{var a;if(!(null===(a=t.requiredProperties)||void 0===a?void 0:a.length))return 0;let n=t.requiredProperties.includes(e);return n===t.requiredProperties.includes(r)?0:n?-1:1}).map(([t,a])=>(0,d.jsx)(n0,{fieldType:e,schemaArray:a,name:t,parentName:nq(r,c),depth:h+1},t)),v=is(t);"object"==typeof v&&x.push((0,d.jsx)(n0,{fieldType:e,schemaArray:v,name:"{key}",parentName:nq(r,c),depth:h+1},"{key}"));let f=(0,m.useCallback)(e=>{null==o||o(e)},[o]);if(void 0===r){let r=x.length>0?t.description:t.description??`The ${e} is of type \`${g}\`.`;return(0,d.jsxs)(d.Fragment,{children:[r&&(0,d.jsx)("div",{className:"pt-6 pb-4",children:(0,d.jsx)(nA,{markdown:r})}),x.length>0&&x]})}return(0,d.jsxs)("div",{className:"py-6 border-gray-100 dark:border-gray-800 border-b last:border-b-0",children:[(0,d.jsx)(eR,{name:r,location:i,required:t.required,deprecated:t.deprecated,typeLabel:g,fieldType:e,typeOptions:n?[]:l,selectedTypeOptionIndex:s,onSelectTypeOption:f,parentName:c}),(0,d.jsxs)("div",{className:(0,K.Z)({"mt-4":t.description||n&&l.length>1||x.length>0}),children:[t.description&&(0,d.jsx)(nA,{markdown:t.description}),(0,d.jsxs)("div",{className:(0,K.Z)({"mt-4 rounded-xl border border-gray-100 px-4 pb-4 pt-2 dark:border-white/10":n&&l.length>1}),children:[n&&l.length>1&&(0,d.jsx)(nB,{selectedIndex:s,options:l,onSelectOption:f}),x.length>0&&(0,d.jsx)(eH,{defaultOpen:p,lazy:h>=5,children:x})]})]})]})},nq=(e,t)=>e?`${t?`${t}`:""}${e}.`:"",nF=(e,t,r,a)=>{if(!e||"none"===e)return!1;let n=nq(t,r),i=(!r||2===r.split(".").length)&&(!n||2===n.split(".").length);return"all"===e||"topLevel"===e&&i||"topLevelOneOfs"===e&&i&&a},nR=({schema:e})=>{let t=e.exclusiveMinimum||void 0==e.exclusiveMinimum,r=e.exclusiveMaximum||void 0==e.exclusiveMaximum,a="";return(void 0!==e.maximum&&(a=`x ${r?"<":"<="} ${e.maximum}`),void 0!==e.minimum&&(a=`x ${t?">":">="} ${e.minimum}`),void 0!==e.maximum&&void 0!==e.minimum&&(a=`${e.minimum} ${t?"<":"<="} x ${r?"<":"<="} ${e.maximum}`),""===a&&void 0===e.multipleOf)?null:(0,d.jsxs)("div",{className:"prose prose-sm prose-gray dark:prose-invert mt-6",children:[a&&(0,d.jsxs)(d.Fragment,{children:["Required range: ",(0,d.jsx)("code",{children:a})]}),e.multipleOf&&(0,d.jsxs)(d.Fragment,{children:["Must be a multiple of ",(0,d.jsx)("code",{children:e.multipleOf})]})]})},nD=({schema:e,description:t})=>(0,d.jsxs)(d.Fragment,{children:[e.const&&(0,d.jsxs)("div",{className:(0,X.cn)("prose prose-sm prose-gray dark:prose-invert",t&&"mt-6"),children:["Allowed value: ",(0,d.jsx)("code",{children:`"${e.const}"`})]}),(e.minLength||e.maxLength)&&(0,d.jsx)("div",{className:(0,X.cn)("prose prose-sm prose-gray dark:prose-invert",t&&"mt-6"),children:(0,d.jsx)(nW,{minLength:e.minLength,maxLength:e.maxLength})})]}),nW=({minLength:e,maxLength:t})=>e===t?(0,d.jsxs)(d.Fragment,{children:["Required string length: ",(0,d.jsx)("code",{children:e})]}):e&&t?(0,d.jsxs)(d.Fragment,{children:["Required string length: ",(0,d.jsx)("code",{children:`${e} - ${t}`})]}):e?(0,d.jsxs)(d.Fragment,{children:["Minimum length: ",(0,d.jsx)("code",{children:e})]}):t?(0,d.jsxs)(d.Fragment,{children:["Maximum length: ",(0,d.jsx)("code",{children:t})]}):"",nU=({fieldType:e,schema:t,name:r,location:a,typeOptions:n,selectedIndex:i,onSelectTypeOption:s,parentName:l})=>{let o=n[i??0],c=t.description??(void 0===r?`The ${e} is of type \`${o}\`.`:void 0);return(0,d.jsxs)("div",{className:"py-6 border-gray-100 dark:border-gray-800 border-b last:border-b-0",children:[(0,d.jsx)(eR,{name:r,typeLabel:o,location:a,fieldType:e,required:t.required,deprecated:t.deprecated,defaultValue:t.default,typeOptions:n,selectedTypeOptionIndex:i,onSelectTypeOption:s,parentName:l}),(0,d.jsxs)("div",{className:(0,X.cn)({"mt-4":c||nG(t)}),children:[c&&(0,d.jsx)(nA,{markdown:c}),nG(t)&&(0,d.jsx)(nJ,{schema:t}),nK(t)&&(0,d.jsx)(nD,{schema:t,description:c}),nY(t)&&(0,d.jsx)(nR,{schema:t})]})]})},nG=e=>"enum<integer>"===e.type||"enum<number>"===e.type||"enum<string>"===e.type,nJ=({schema:e})=>0===e.enum.length?null:(0,d.jsxs)("div",{className:"whitespace-pre-wrap prose-sm mt-6",children:["Available options:"," ",e.enum.map((t,r)=>(0,d.jsxs)("div",{className:"inline-block",children:[(0,d.jsx)("code",{children:t}),r!==e.enum.length-1&&","," "]},`${t}-${r}`))]}),nK=e=>"string"===e.type,nY=e=>"number"===e.type||"integer"===e.type,nQ=({fieldType:e,schema:t,typeOptions:r,name:a,location:n,selectedIndex:i,onSelectTypeOption:s,parentName:l,apiParamFieldOption:o,depth:c=0})=>{let u=r[i??0],h=io(t),{originalIndices:p,typeOptionLabels:g,allObjects:x}=n3(h),[v,f]=(0,m.useState)(0),y=p[v]??0,b=(0,m.useCallback)(e=>{f(e)},[]),j=x&&g.length>1,k=(0,m.useMemo)(()=>{let e=({children:e})=>j?(0,d.jsxs)("div",{className:"mt-4 rounded-xl border border-gray-100 px-4 pb-4 pt-2 dark:border-white/10",children:[(0,d.jsx)(nB,{options:g,onSelectOption:b}),e]}):(0,d.jsx)(d.Fragment,{children:e});return e.displayName="PropFieldsContainer",e},[j,g,b]),w=h[y],[L,V]=nX(w);if(void 0===w)return null;let C=L?Object.entries(L).map(([t,r])=>(0,d.jsx)(n0,{fieldType:e,schemaArray:r,name:t,parentName:nq(a,l),depth:c+1},t)):[];"object"==typeof V&&C.push((0,d.jsx)(n0,{fieldType:e,schemaArray:V,name:"{key}",parentName:nq(a,l),depth:c+1},"{key}"));let N=void 0===a&&(j||C.length>0)||C.length>0,M=nF(o,a,l,N);return void 0===a?j||C.length?(0,d.jsx)(k,{children:C}):(0,d.jsxs)("div",{className:"pb-5 mb-5 border-gray-100 dark:border-gray-800 border-b last:border-b-0",children:[(0,d.jsx)(nA,{markdown:t.description??`The ${e} is of type \`${u}\`.`}),nG(w)&&(0,d.jsx)(nJ,{schema:w})]}):(0,d.jsxs)("div",{className:"py-6 border-gray-100 dark:border-gray-800 border-b last:border-b-0",children:[(0,d.jsx)(eR,{name:a,location:n,typeLabel:u,required:t.required,fieldType:e,deprecated:t.deprecated,typeOptions:r,selectedTypeOptionIndex:i,onSelectTypeOption:s,parentName:l}),(0,d.jsxs)("div",{className:(0,K.Z)({"mt-4":t.description||j||nG(w)||!!C.length}),children:[t.description&&(0,d.jsx)(nA,{markdown:t.description}),(0,d.jsx)(k,{children:!!C.length&&(0,d.jsx)(eH,{defaultOpen:M,lazy:c>=5,children:C})}),nG(w)&&(0,d.jsx)(nJ,{schema:w})]})]})},nX=e=>{let t=n8(),{location:r}=it();return(0,m.useMemo)(()=>e&&"object"===e.type?[ir(e,t,r),ii(e,t,r)]:[void 0,void 0],[e,t,r])},n0=({fieldType:e,schemaArray:t,name:r,location:a,parentName:n,depth:i=0})=>{var s,l,o;let{originalIndices:c,typeOptionLabels:u,nullable:h,allObjects:p}=n3(t),g=null===(o=(0,m.useContext)(w.E).mintConfig)||void 0===o?void 0:null===(l=o.api)||void 0===l?void 0:null===(s=l.paramFields)||void 0===s?void 0:s.expanded,[x,v]=(0,m.useState)(0),f=t[c[x]??0];if(!f)return null;switch(f.type){case"array":return(0,d.jsx)(nQ,{fieldType:e,schema:f,name:r,location:a,typeOptions:u,selectedIndex:x,onSelectTypeOption:v,parentName:n,apiParamFieldOption:g,depth:i});case"object":return(0,d.jsx)(nz,{fieldType:e,schema:f,name:r,nullable:h,allObjects:p,location:a,typeOptions:u,selectedIndex:x,onSelectTypeOption:v,parentName:n,apiParamFieldOption:g,depth:i});default:return(0,d.jsx)(nU,{fieldType:e,schema:f,name:r,location:a,typeOptions:u,selectedIndex:x,onSelectTypeOption:v,parentName:n})}},n1=(e,t,r)=>{let a=r?" | null":"";switch(e.type){case"null":return"null";case"array":let n=il(e,t,void 0);if(n.some(e=>"array"===e.type))return`array${a}`;let i=new Set;n.forEach(e=>i.add(n1(e,t,!1)));let s=Array.from(i);if(1===s.length)return`${s[0]}[]${a}`;if(s.every(e=>"object"!==e&&"array"!==e))return`(${s.join(" | ")})[]${a}`;return`array${a}`;default:return`${e.type}${a}`}},n2=e=>e.map(({title:e},t)=>e??`Option ${t+1}`),n4=(e,t,r,a)=>{if(e.length<=1)return[n1(e[0],t,a)];if(r)return n2(e);let n=e.map(e=>n1(e,t,a));return new Set(n).size===n.length?n:n.map((t,r)=>{var a;return((null===(a=e[r])||void 0===a?void 0:a.title)??`Option ${r+1}`)+" \xb7 "+t})},n5=(e,t)=>{if(e.every(({type:e})=>"null"===e))return{typeOptionLabels:["null"],originalIndices:[0],nullable:!0,allObjects:!1};let r=e.map((e,t)=>({schema:e,originalIndex:t})).filter(({schema:e})=>"null"!==e.type),a=e.some(e=>"null"===e.type),n=r.every(({schema:e})=>"object"===e.type);return{typeOptionLabels:n4(r.map(({schema:e})=>e),t,n,a),originalIndices:r.map(({originalIndex:e})=>e),nullable:a,allObjects:n}},n3=e=>{let t=n8();return(0,m.useMemo)(()=>n5(e,t),[e,t])},n6=()=>{let e=n7(),t=n8();if(void 0===e)return null;let{typeOptionLabels:r,originalIndices:a}=n5(e,t),n=a.map(t=>e[t]).filter(e=>void 0!==e);return void 0===n[0]?null:(0,d.jsx)("div",{children:n.length>1?(0,d.jsx)(e0,{children:n.map((e,t)=>(0,d.jsx)(eX,{title:r[t]??"",children:(0,d.jsx)(n0,{fieldType:"schema",schemaArray:[e]})},t))}):(0,d.jsx)(n0,{fieldType:"schema",schemaArray:[n[0]]})})},n7=()=>{var e;return null===(e=(0,m.useContext)(w.E).apiReferenceData.schemaData)||void 0===e?void 0:e.schemaArray},n8=()=>(0,m.useContext)(w.E).apiReferenceData.componentSchemas,n9=()=>void 0!==n7(),ie=(0,m.createContext)({}),it=()=>(0,m.useContext)(ie);function ir(e,t,r){return Object.fromEntries(Object.entries(e.properties).sort(([t],[r])=>{var a,n;let i=(null===(a=e.requiredProperties)||void 0===a?void 0:a.includes(t))??!1;return i===((null===(n=e.requiredProperties)||void 0===n?void 0:n.includes(r))??!1)?t.localeCompare(r):i?-1:1}).map(([a,n])=>{var i;return Array.isArray(n)?[a,n]:[a,nP(n,t,null===(i=e.requiredProperties)||void 0===i?void 0:i.includes(a),r)]}))}function ia(e){let t=n8(),{location:r}=it();return(0,m.useMemo)(()=>ir(e,t,r),[e,t,r])}function ii(e,t,r){return"object"!=typeof e.additionalProperties||Array.isArray(e.additionalProperties)?e.additionalProperties:nP(e.additionalProperties,t,void 0,r)}function is(e){let t=n8(),{location:r}=it();return(0,m.useMemo)(()=>ii(e,t,r),[e,t,r])}function il(e,t,r){return Array.isArray(e.items)?e.items:nP(e.items,t,void 0,r)}function io(e){let t=n8(),{location:r}=it();return(0,m.useMemo)(()=>il(e,t,r),[e,t,r])}ie.displayName="EndpointLocationContext";let id=()=>{let[,e]=eP();return(0,m.useCallback)(t=>e({type:"set_api_base_index",payload:t}),[e])},ic=()=>{let[,e]=eP();return(0,m.useCallback)(t=>e({type:"set_api_playground_inputs",payload:t}),[e])},iu=(0,m.createContext)({isSending:!1,selectedBaseUrlIndex:0,isPlaygroundExpanded:!1}),ih="mintlify-auth",ip=(e,t,r)=>{tl(ih,im(e,ig(),t,r))},im=(e,t,r,a)=>{let n={query:{...t.query},header:{...t.header},cookie:{...t.cookie}};for(let t of["query","header","cookie"])Object.keys(e.parameters[t]).forEach(e=>{var i;let s=r[t][e],l=s===(null==a?void 0:null===(i=a[t])||void 0===i?void 0:i[e])?void 0:s;n[t][e]=l});return n};function ig(){return to(ih,ix)??{query:{},header:{},cookie:{}}}let ix=e=>"object"==typeof e&&null!=e&&["header","cookie","query"].every(t=>"object"==typeof e[t]&&null!=e[t]),iv="mintlify-server-variables",iy=e=>"object"==typeof e&&null!=e&&Object.values(e).every(e=>"object"==typeof e&&null!==e&&Object.values(e).every(e=>"string"==typeof e)),ib=()=>{let e=localStorage.getItem(iv);if(e)try{let t=JSON.parse(e);if(iy(t))return t}catch(e){console.log(`unable to parse stored server variables: ${e}`)}return{}},ij=(e,t,r)=>{let a=Object.fromEntries(Object.entries(t).filter(([e,t])=>{var a;return t&&(null==r?void 0:null===(a=r.server)||void 0===a?void 0:a[e])!==t})),n=JSON.stringify({...ib(),[e]:a});localStorage.setItem(iv,n)};var ik=r(48834).Buffer;let iw=(e,t,r)=>{let a={query:{},header:{},cookie:{}};if(!e)return a;for(let n of["query","header","cookie"])Object.entries(e.parameters[n]).forEach(([e,i])=>{var s;a[n][e]=(null==t?void 0:t[n][e])??iL(null==r?void 0:null===(s=r[n])||void 0===s?void 0:s[e],i)});return a},iL=(e,t)=>{if(!e)return e;if("http"===t.type&&"basic"===t.scheme){if("object"==typeof e){let t="username"in e&&"string"==typeof e.username?e.username:"",r="password"in e&&"string"==typeof e.password?e.password:"";return`Basic ${ik.from(`${t}:${r}`).toString("base64")}`}return}return"http"===t.type&&"bearer"===t.scheme?"string"==typeof e?e.startsWith("Bearer ")?e:`Bearer ${e}`:void 0:e},iV=(e,t,r)=>{let a=null==r?void 0:r.server,n=t&&e?t[e]:void 0;return{...a,...n}},iC=(e,t)=>{switch(e){case"basic":return[{title:"Basic Auth",parameters:{header:{Authorization:{type:"http",scheme:"basic",description:"Basic authentication header of the form `Basic <encoded-value>`, where `<encoded-value>` is the base64-encoded string `username:password`."}},query:{},cookie:{}}}];case"bearer":return[{title:"Bearer Auth",parameters:{header:{Authorization:{type:"http",scheme:"bearer",description:"Bearer authentication header of the form `Bearer <token>`, where `<token>` is your auth token."}},query:{},cookie:{}}}];case"cobo":return[{title:null!=t?t:"Cobo Auth",parameters:{header:{"API-SECRET":{type:"apiKey"}},query:{},cookie:{}}}];case"key":return[{title:"API Key Auth",parameters:{header:{[null!=t?t:"Key"]:{type:"apiKey"}},query:{},cookie:{}}}]}return[]},iN=e=>{var t,r,a,n,i,s;let l=(0,m.useContext)(w.E);return(0,m.useMemo)(()=>{var t,r,a,n,i,s;return e.length>0?e:iC(null===(a=l.mintConfig)||void 0===a?void 0:null===(r=a.api)||void 0===r?void 0:null===(t=r.auth)||void 0===t?void 0:t.method,null===(s=l.mintConfig)||void 0===s?void 0:null===(i=s.api)||void 0===i?void 0:null===(n=i.auth)||void 0===n?void 0:n.name)},[e,null===(a=l.mintConfig)||void 0===a?void 0:null===(r=a.api)||void 0===r?void 0:null===(t=r.auth)||void 0===t?void 0:t.method,null===(s=l.mintConfig)||void 0===s?void 0:null===(i=s.api)||void 0===i?void 0:null===(n=i.auth)||void 0===n?void 0:n.name])};function iM(e){let[t,r]=(0,m.useState)(0),a=aD(),n=iN(e),i=a?n:e;return(0,m.useMemo)(()=>i.filter(e=>Object.values(e.parameters).some(e=>Object.keys(e).length>0)),[i])[t]}var iH=r(46336);let iZ=({endpoint:e,mode:t,onClickInteractive:r,hideBaseUrlSelector:a,hasGrayBackground:n})=>(0,d.jsxs)("div",{className:"flex items-center space-x-1.5",children:[(0,d.jsx)(iS,{endpoint:e,mode:t,hideBaseUrlSelector:a,hasGrayBackground:n}),"simple"===t?null:(0,d.jsx)(i_,{method:e.method,label:"Try it",onClick:r})]}),iE=()=>{let{baseUrlOptions:e,selectedBaseUrlIndex:t,setSelectedBaseUrlIndex:r}=(0,m.useContext)(iu);return e&&!(e.length<=1)&&r?(0,d.jsxs)("div",{className:"flex items-center gap-1 relative -mr-1",children:[(0,d.jsx)("select",{className:"bg-transparent text-sm text-gray-600 dark:text-gray-400 outline-none font-mono pr-4 cursor-pointer hover:text-gray-900 dark:hover:text-gray-300",value:t,onClick:e=>e.stopPropagation(),onChange:e=>{r(Number(e.target.value))},children:e.map((e,t)=>(0,d.jsx)("option",{value:t,children:e},e))}),(0,d.jsx)(iH.Z,{className:"absolute right-0 w-3 h-3 text-gray-400 dark:text-white/30 pointer-events-none",strokeWidth:2.5})]}):null},iS=({endpoint:e,mode:t,hideBaseUrlSelector:r,hasGrayBackground:a})=>{let[n,i]=(0,m.useState)(!1),{baseUrlOptions:s,selectedBaseUrlIndex:l}=(0,m.useContext)(iu),o=aJ(),c=(null==s?void 0:s[l])??(null==s?void 0:s[0])??"",u=async()=>{let t=a3(e.path,o.path),r=a7(a6(c,o.server),t);"success"===await (0,ee.v)(r)&&(i(!0),setTimeout(()=>{i(!1)},2e3))};return(0,d.jsxs)("div",{className:(0,X.cn)("relative flex-1 flex gap-2 min-w-0 rounded-xl items-center cursor-pointer p-1.5","simple"!=t&&"border-standard",a&&"bg-gray-50 dark:bg-white/5"),onClick:u,children:[(0,d.jsx)(rn,{method:e.method}),(0,d.jsxs)("div",{className:"flex items-center space-x-2 overflow-x-auto flex-1 no-scrollbar",children:[!0!==r&&(0,d.jsx)(iE,{}),(0,d.jsx)(iO,{endpoint:e,mode:t,isCopiedActive:n,hasGrayBackground:a})]})]})},iO=({endpoint:e,isCopiedActive:t,hasGrayBackground:r})=>{let a=(0,m.useMemo)(()=>e.path.split("/").flatMap((t,r)=>{let a=[];return r>0&&t&&a.push((0,d.jsx)(iP,{},r)),t.split("{").forEach((t,n)=>{if(t.includes("}")){let[i,s]=t.split("}");a.push((0,d.jsx)(iI,{method:e.method,children:i},`${r}-${n}-param`)),s&&a.push((0,d.jsx)(iT,{children:s},`${r}-${n}`))}else t&&a.push((0,d.jsx)(iT,{children:t},`${r}-${n}`))}),a}),[e.path,e.method]);return(0,d.jsxs)("div",{className:"group flex items-center flex-1 gap-0.5 font-mono",children:[(0,d.jsx)("div",{className:(0,X.cn)("absolute right-0 p-2 bg-background-light dark:bg-background-dark rounded-lg",r&&"bg-transparent dark:bg-transparent",t?"block":"hidden group-hover:block"),children:t?(0,d.jsx)(Y,{icon:"circle-check",iconType:"solid",className:"w-4 h-4 bg-primary dark:bg-primary-light"}):(0,d.jsx)(Y,{icon:"clone",className:"w-4 h-4 bg-gray-400 dark:bg-white/30"})}),a]})},iT=({children:e})=>(0,d.jsx)("div",{className:"text-sm font-medium text-gray-800 dark:text-white min-w-max",children:e}),iI=({children:e,method:t})=>{let r=re(t);return(0,d.jsx)("div",{className:(0,X.cn)("text-sm font-mono font-medium rounded-md px-1 border-2 min-w-max",r),children:`{${e}}`})},iP=()=>(0,d.jsx)("div",{className:"text-sm text-gray-400",children:"/"}),i_=({label:e,method:t,onClick:r,isSending:a,className:n})=>{let i=t9(t);return(0,d.jsx)("button",{className:(0,X.cn)("flex items-center justify-center px-3 h-9 text-white font-medium rounded-xl mouse-pointer disabled:opacity-70 hover:opacity-80 gap-1.5",i,n),onClick:r,disabled:a,children:a?(0,d.jsx)(Y,{icon:"spinner-third",iconType:"duotone",className:"w-4 h-4 bg-white animate-spin"}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{children:e}),(0,d.jsx)(Y,{icon:"play",iconType:"solid",className:"w-3 h-3 bg-white"})]})})};var iA=r(6856);let i$=({message:e,icon:t})=>{var r;let{docsConfig:a}=(0,m.useContext)(w.E),n=null==a?void 0:null===(r=a.styling)||void 0===r?void 0:r.codeblocks;return(0,d.jsx)("div",{className:(0,X.cn)("system"===n?"bg-response-body-auto":"bg-response-body-dark","rounded-b-xl overflow-auto"),children:(0,d.jsxs)("div",{className:"pb-8 pt-10 px-6 space-y-4 flex flex-col items-center",children:[(0,d.jsx)(Y,{icon:t,className:"h-8 w-8 bg-gray-300 dark:bg-white/20"}),(0,d.jsx)("div",{className:"text-sm text-center",children:e})]})})},iB=({data:e})=>{var t;let{docsConfig:r}=(0,m.useContext)(w.E),a=null==r?void 0:null===(t=r.styling)||void 0===t?void 0:t.codeblocks;return(0,d.jsx)("div",{className:(0,X.cn)("system"===a?"bg-response-body-auto":"bg-response-body-dark","flex p-12 items-center rounded-b-xl h-full"),children:(0,d.jsx)("audio",{controls:!0,className:"w-full",src:e.url})})},iz=e=>aN().highlight(JSON.stringify(e,null,2),aN().languages.json,"json"),iq=({data:e})=>{var t;let{docsConfig:r}=(0,m.useContext)(w.E),a=!1,n=!1,i=e.content;try{e.content.length<25e4?i=(0,aH.ZP)(iz(JSON.parse(e.content))):(n=!0,i=JSON.stringify(JSON.parse(e.content),null,2)),a=!0}catch(e){console.error(e)}let s=null==r?void 0:null===(t=r.styling)||void 0===t?void 0:t.codeblocks;return(0,d.jsx)("div",{className:(0,X.cn)("overflow-auto h-full",eh(s)),children:(0,d.jsx)("div",{className:"p-5 h-full whitespace-pre border-gray-200 dark:border-gray-700 dark:text-gray-300 font-mono text-xs leading-5",children:(0,d.jsx)("span",{className:(0,X.cn)("system"===s?"language-json-auto":"language-json-dark",a?"":"whitespace-normal",n?"too-big":""),children:i})})})},iF=({data:e})=>{var t;let{docsConfig:r}=(0,m.useContext)(w.E),a=null==r?void 0:null===(t=r.styling)||void 0===t?void 0:t.codeblocks;return(0,d.jsx)("div",{className:(0,X.cn)("system"===a?"bg-response-body-auto":"bg-response-body-dark","h-60"),children:(0,d.jsx)("img",{alt:"image response from the server",className:"p-6 w-full h-full object-scale-down",src:e.url})})},iR=({data:e})=>{if(null==e)return(0,d.jsx)(i$,{message:"No body data received from the server",icon:"brackets-curly"});switch(e.type){case"audio":return(0,d.jsx)(iB,{data:e});case"image":return(0,d.jsx)(iF,{data:e});case"other":return(0,d.jsx)(iq,{data:e})}},iD=({message:e})=>(0,d.jsx)(i$,{message:`An error occurred while making the request: ${e}`,icon:"triangle-exclamation"}),iW=({data:e})=>{var t;let{docsConfig:r}=(0,m.useContext)(w.E),a=null==r?void 0:null===(t=r.styling)||void 0===t?void 0:t.codeblocks;return(0,d.jsx)("div",{className:"w-full rounded-b-xl overflow-y-auto",children:(0,d.jsx)("table",{className:"table-fixed pb-8 w-full pt-10",children:e.flatMap(([e,t])=>(0,d.jsxs)("tr",{className:(0,X.cn)("w-full flex divide-x border-b last:border-b-0 text-xs text-gray-600 dark:text-gray-400","system"===a?"divide-gray-100 dark:divide-white/10 border-gray-100 dark:border-white/10 text-gray-600 dark:text-gray-400":"divide-white/10 border-white/10 text-gray-400"),children:[(0,d.jsx)("td",{className:"flex items-center basis-1/2 py-2 px-4 overflow-x-autotext-gray-600",children:(0,d.jsx)("div",{className:"min-w-max",children:e})}),(0,d.jsx)("td",{className:"flex items-center basis-1/2 py-2 px-4 overflow-x-auto",children:(0,d.jsx)("div",{className:"min-w-max",children:`${t}`})})]},e))})})},iU=({response:e})=>{let t=Object.entries(e.headers);return 0===t.length?(0,d.jsx)(i$,{message:"No headers received from the server",icon:"table"}):(0,d.jsx)(iW,{data:t})},iG=({data:e})=>{let[t,r]=(0,m.useState)(!1),a=iJ(e,()=>{r(!0),setTimeout(()=>{r(!1)},2e3)},e=>console.error(`unable to copy response to clipboard: ${e}`));return a?(0,d.jsx)(ev,{onClick:a,isCopiedActive:t}):null},iJ=(e,t,r)=>(0,m.useMemo)(()=>{if(e.contentType&&["image/png","text/plain"].includes(e.contentType))try{let a=new ClipboardItem({[e.contentType]:e.blob});return()=>navigator.clipboard.write([a]).then(t,r)}catch(e){console.error(`unable to create clipboard item: ${e}`)}if("other"===e.type)return()=>navigator.clipboard.writeText(e.content).then(t,r)},[e,t,r]),iK=({data:e})=>{var t;let{docsConfig:r}=(0,m.useContext)(w.E),[a,n]=(0,m.useState)(!1),i=null==r?void 0:null===(t=r.styling)||void 0===t?void 0:t.codeblocks;return e.extension?(0,d.jsxs)("a",{className:"group h-7 w-7 flex items-center justify-center cursor-pointer relative",onClick:()=>{n(!0),setTimeout(()=>{n(!1)},2e3)},href:e.url,download:`api-response.${e.extension}`,children:[a?(0,d.jsx)(Y,{icon:"circle-check",iconType:"solid",className:"h-4 w-4 bg-primary dark:bg-primary-light"}):(0,d.jsx)(Y,{icon:"arrow-down-to-line",className:(0,X.cn)("w-4 h-4","system"===i?"bg-gray-400 group-hover:bg-gray-500 dark:bg-white/40 dark:group-hover:bg-white/60":"bg-white/40 group-hover:bg-white/60")}),(0,d.jsx)(ef,{text:a?"Copied!":"Download"})]}):null},iY=({result:e,selectedSection:t,setSelectedSection:r,data:a})=>{var n;let{docsConfig:i}=(0,m.useContext)(w.E),s=null==i?void 0:null===(n=i.styling)||void 0===n?void 0:n.codeblocks;return(0,d.jsxs)("div",{className:(0,X.cn)("flex w-full px-4 py-2 space-x-3 items-center border-b border-gray-100/70 dark:border-white/5 rounded-t-xl","system"===s?"border-gray-200/50 dark:border-gray-900/80 bg-gray-100/40 dark:bg-codeblock":"border-gray-900/80"),children:[(0,d.jsx)("div",{className:"flex flex-1 space-x-4 items-center",children:(0,d.jsx)(iQ,{status:e.error?void 0:e.response.status,statusText:e.error?void 0:e.response.statusText})}),a?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i0,{selectedSection:t,setSelectedSection:r}),(0,d.jsx)(iK,{data:a}),(0,d.jsx)(iG,{data:a})]}):null]})},iQ=({status:e,statusText:t})=>{var r;let{docsConfig:a}=(0,m.useContext)(w.E),n=null==a?void 0:null===(r=a.styling)||void 0===r?void 0:r.codeblocks;return(0,d.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,d.jsx)(iX,{status:e}),(0,d.jsx)("div",{className:(0,X.cn)("text-xs","system"===n?"text-gray-800 dark:text-gray-200 font-medium":"text-gray-200 font-medium"),children:e?`${e} - ${t}`:"--"})]})},iX=({status:e})=>{let t="w-3.5 h-3.5";return void 0===e?(0,d.jsx)(Y,{icon:"triangle-exclamation",className:(0,K.Z)(t,"bg-red-600 dark:bg-red-500")}):e>=400?(0,d.jsx)(Y,{icon:"circle-x",className:(0,K.Z)(t,"bg-red-600 dark:bg-red-500")}):e>=200&&e<300?(0,d.jsx)(Y,{icon:"circle-check",className:(0,K.Z)(t,"bg-green-600 dark:bg-green-500")}):(0,d.jsx)(Y,{icon:"circle-exclamation",className:(0,K.Z)(t,"bg-orange-600 dark:bg-orange-500")})},i0=({selectedSection:e,setSelectedSection:t})=>{var r;let{docsConfig:a}=(0,m.useContext)(w.E),n=null==a?void 0:null===(r=a.styling)||void 0===r?void 0:r.codeblocks;return(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("select",{className:(0,X.cn)("pl-2.5 pr-6 py-1 rounded-lg text-xs font-medium border cursor-pointer focus:outline-0","system"===n?"text-gray-600 dark:text-gray-400 border-standard hover:bg-gray-50 dark:hover:bg-white/[0.03]":"text-gray-200 border-gray-800/50 hover:bg-gray-800/50 bg-gray-800/50"),value:e,onChange:e=>t(e.target.value),children:i2.map(e=>{var t;return(0,d.jsx)("option",{value:e,children:((null===(t=e[0])||void 0===t?void 0:t.toUpperCase())??"")+e.slice(1)},e)})}),(0,d.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-end pr-2.5",children:(0,d.jsx)(Y,{icon:"angle-down",iconType:"solid",className:(0,X.cn)("w-2.5 h-2.5","system"===n?"bg-gray-400 dark:bg-gray-500":"bg-gray-200")})})]})};var i1=r(48834).Buffer;let i2=["body","headers"],i4=({result:e,className:t})=>{var r;let{docsConfig:a}=(0,m.useContext)(w.E),[n,i]=(0,m.useState)("body"),s=i5(e),l=null==a?void 0:null===(r=a.styling)||void 0===r?void 0:r.codeblocks;return(0,d.jsx)(aV.Z,{children:(0,d.jsxs)("div",{className:(0,X.cn)("overflow-hidden w-full rounded-2xl border","system"===l?"bg-white dark:bg-codeblock border-gray-200/70 dark:border-gray-800/50 ":"bg-[#0F1117] dark:bg-codeblock border-gray-800/50",t),children:[(0,d.jsx)(iY,{selectedSection:n,setSelectedSection:i,result:e,data:s}),(0,d.jsx)(()=>(0,d.jsx)(d.Fragment,{children:e.error?(0,d.jsx)(iD,{message:e.errorMessage}):"body"===n?(0,d.jsx)(iR,{data:s}):(0,d.jsx)(iU,{response:e.response})}),{})]})})},i5=e=>(0,m.useMemo)(()=>{if(e.error||void 0==e.response.data)return;let t=i1.from(e.response.data,"base64"),r=i3(e.response.headers),a=i6(r),n=new Blob([t],{type:r}),i=URL.createObjectURL(n),s=r&&(0,iA.extension)(r)||void 0;return r&&"other"!==a?{type:a,contentType:r,blob:n,url:i,extension:s}:{type:"other",contentType:r,content:t.toString("utf-8"),blob:n,url:i,extension:s}},[e]),i3=e=>{for(let r in e)if("content-type"===r.toLowerCase()){let a=e[r];if("string"==typeof a){var t;return null===(t=a.split(";")[0])||void 0===t?void 0:t.toLowerCase()}}},i6=e=>{let[t]=(null==e?void 0:e.split("/"))??[];return"image"===t||"audio"===t?t:"other"},i7=({name:e,validationState:t,children:r})=>{let[a,n]=(0,m.useState)(!0);return(0,d.jsxs)("div",{children:[(0,d.jsxs)("button",{"aria-label":"expand input section",onClick:()=>n(e=>!e),className:(0,X.cn)("flex w-full px-4 py-2.5 items-center space-x-2.5 border-standard cursor-pointer hover:bg-gray-50 dark:hover:bg-white/5",a?"!border-b-0 border-t border-x rounded-t-2xl":"rounded-2xl"),children:[(0,d.jsx)(Y,{icon:"angle-right",iconType:"solid",className:(0,X.cn)("h-2.5 w-2.5 bg-gray-400 dark:bg-gray-500 transition-transform",a&&"rotate-90")}),(0,d.jsxs)("div",{className:"flex-1 flex items-center space-x-2",children:[(0,d.jsx)("div",{className:"text-sm font-medium text-gray-800 dark:text-gray-200 leading-6",children:e}),t?"invalid"===t?(0,d.jsx)(i8,{}):(0,d.jsx)(i9,{}):null]})]}),(0,d.jsxs)("div",{className:(0,X.cn)("bg-background-light dark:bg-background-dark flex-1 px-4 rounded-b-xl border-standard !border-t-0 divide-y divide-gray-100 dark:divide-white/10",a&&r?"":"hidden"),children:[(0,d.jsx)("div",{}),r]})]})},i8=()=>(0,d.jsx)(Y,{className:"h-4 w-4 bg-[#2AB673]",icon:"circle-check"}),i9=()=>(0,d.jsx)(Y,{className:"h-4 w-4 bg-[#CB3A32]",icon:"circle-exclamation"}),se=e=>(0,m.useMemo)(()=>st(e),[e]),st=e=>{let t;let r=[];for(let a of e)"any"===a.type?t=t??a:r.push(a);let a=sr(r,!!t);if(void 0!==t){let e={description:t.description,required:t.required};r.push({...e,type:"string"},{...e,type:"number"},{...e,type:"boolean"},{...e,type:"object",properties:{}},{...e,type:"array",items:[{type:"any"}]},{...e,type:"null"})}return r.map((e,t)=>({schema:e,label:a[t]??e.type}))},sr=(e,t)=>{let r=e.map(({type:e})=>e);return new Set(r).size!==r.length||t?e.map((e,t)=>(e.title??`Option ${t+1}`)+" \xb7 "+e.type):r};function sa(e){if(e)return e.schema.deprecated?`${e.label}, deprecated`:e.label}let sn=({options:e,selectedIndex:t,onSelectOption:r})=>{let a=e.length>1;return(0,d.jsxs)("div",{className:"relative flex items-center px-2 py-0.5 rounded-md bg-gray-100/50 dark:bg-white/5 text-gray-600 dark:text-gray-300 font-medium",children:[(0,d.jsx)("div",{className:"",children:sa(e[t])}),a&&(0,d.jsx)(Y,{icon:"angle-down",iconType:"solid",className:"h-2.5 w-2.5 bg-gray-500 dark:bg-gray-400 shrink-0 ml-1.5"}),a&&(0,d.jsx)("select",{"aria-label":"parameter type select",className:"absolute opacity-0 inset-0 cursor-pointer",onChange:e=>r(e.target.selectedIndex),value:t,children:e.map((e,t)=>(0,d.jsx)("option",{value:t,children:sa(e)},t))})]})};function si({children:e,className:t}){return(0,d.jsx)("div",{className:(0,X.cn)("rounded-full h-5 w-5 flex items-center justify-center bg-gray-50 dark:bg-white/10 text-xs font-sans font-medium text-gray-600 dark:text-gray-300",t),children:e})}let ss=({onClick:e})=>(0,d.jsx)("button",{onClick:e,className:"px-1 text-gray-400 dark:text-gray-600 hover:text-gray-600 dark:hover:text-gray-400",children:(0,d.jsx)(iH.Z,{className:"w-3.5 h-3.5",strokeWidth:2.5})}),sl=({className:e,onClick:t})=>(0,d.jsx)("button",{className:(0,X.cn)("px-1 text-gray-400 dark:text-gray-600 hover:text-gray-600 dark:hover:text-gray-400",e),onClick:t,children:(0,d.jsx)(eo.XH,{className:"w-4 h-4"})}),so=({name:e,children:t,schema:r,onClear:a,isObject:n,isArray:i,parentNames:s,arrayIndex:l,typeDropdown:o})=>{let[c,u]=(0,m.useState)(!0);return(0,d.jsx)(aV.Z,{children:(0,d.jsxs)("div",{className:(0,X.cn)("flex space-x-3 items-start",void 0!=l&&!n&&"flex items-center"),children:[void 0!=l&&(0,d.jsx)(si,{className:(0,X.cn)(n&&"mt-8"),children:l+1}),(0,d.jsxs)("div",{className:(0,X.cn)("flex-1 grid lg:grid-cols-2 gap-x-12 gap-y-4 py-5",i&&"flex flex-col",n&&"gap-y-0 flex flex-col border border-gray-50 dark:border-white/5 rounded-xl px-4 py-0 my-5",void 0!==l&&"py-1 my-2"),children:[(0,d.jsxs)("div",{className:(0,X.cn)("space-y-2",n&&"pt-8 py-5 border-b border-gray-50 dark:border-white/5",!c&&"border-none",void 0!=l&&!n&&"flex items-center"),children:[(0,d.jsxs)("div",{className:"flex items-center justify-between font-mono font-bold",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs truncate",title:s?`${s.join(".")}.${e}`:e,children:[(0,d.jsxs)("div",{className:(0,X.cn)("text-sm truncate",void 0==e&&"hidden"),children:[(0,d.jsx)("span",{className:"text-gray-500 dark:text-gray-400",children:s?`${s.join(".")}.`:""}),(0,d.jsx)("span",{className:"font-semibold text-gray-900 dark:text-gray-100",children:e})]}),void 0!=o?o:(0,d.jsx)(ez,{children:r.type}),r.required&&(0,d.jsx)(eq,{}),r.deprecated&&(0,d.jsx)(eF,{})]}),n&&(0,d.jsx)(ss,{onClick:()=>u(!c)})]}),r.description&&(0,d.jsx)(nA,{markdown:r.description,className:"text-gray-500 dark:text-gray-400"})]}),c&&(0,d.jsx)("div",{className:(0,X.cn)("grid grid-cols-1 w-full items-start divide-y divide-gray-50 dark:divide-white/5",i&&"divide-y-0"),children:t})]}),(void 0!=l||s)&&a&&(0,d.jsx)(sl,{className:(0,X.cn)(n&&"mt-8",s&&"mt-7"),onClick:()=>a()})]})})},sd=({name:e,schema:t,typeDropdown:r,value:a,setValue:n,clearValue:i,depth:s,parentNames:l})=>{let[o,c]=(0,m.useState)((null==a?void 0:a.map(ti()))??[]),u=io(t),h=(0,m.useMemo)(()=>{let e=(null==a?void 0:a.map((e,t)=>(0,d.jsx)(sj,{schemaArray:u,value:e,setValue:e=>{let r=[...a];r[t]=e,n(r)},clearValue:()=>{let e=[...a];e.splice(t,1),c(e=>{let r=[...e];return r.splice(t,1),r}),n(e)},depth:s+1,arrayIndex:t},o[t])))??[];return e.push((0,d.jsx)(sc,{label:"Add an item",className:(0,X.cn)(e.length>0&&"mt-4"),onClick:()=>{c(e=>[...e,ti()()]),n([...a??[],void 0])}},"add-button")),e},[o,u,a,n,s]);return(0,d.jsx)(so,{name:e,typeDropdown:r,schema:t,onClear:i,parentNames:l,isArray:!0,children:h})};function sc({className:e,onClick:t,label:r}){return(0,d.jsx)("div",{className:e,children:(0,d.jsxs)("button",{className:"flex text-playground-input w-fit items-center gap-x-1.5 !py-1 !px-2 hover:bg-gray-50 dark:hover:bg-white/[0.03]",onClick:t,children:[(0,d.jsx)(Y,{icon:"plus",iconType:"solid",className:"bg-gray-500 dark:bg-white/40 h-3 w-3"}),(0,d.jsx)("span",{className:"text-gray-600 dark:text-gray-200",children:r})]})})}let su=({name:e,schema:t,typeDropdown:r,value:a,setValue:n,clearValue:i,parentNames:s,arrayIndex:l})=>{let o=(0,m.useRef)(null);return(0,d.jsxs)(so,{name:e,typeDropdown:r,schema:t,onClear:i,parentNames:s,arrayIndex:l,children:[(0,d.jsx)("button",{"aria-label":"file upload button",className:(0,X.cn)("text-left flex text-playground-input",a?"!text-gray-900 dark:!text-gray-100":"!text-gray-400 dark:!text-white/30"),onClick:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.click()},children:(null==a?void 0:a.name)??t.placeholder??"Drop a file here or click to upload"}),(0,d.jsx)("input",{type:"file",onChange:e=>{var t;return n(null===(t=e.target.files)||void 0===t?void 0:t[0])},ref:o,className:"hidden"})]})},sh=({name:e,schema:t,typeDropdown:r,clearValue:a,parentNames:n,arrayIndex:i})=>(0,d.jsx)(so,{name:e,typeDropdown:r,schema:t,onClear:a,parentNames:n,arrayIndex:i,children:(0,d.jsx)("input",{className:"flex-1 min-w-0 outline-none bg-transparent text-playground-input",type:"text",placeholder:"--",contentEditable:"false",disabled:!0})}),sp=({name:e,typeDropdown:t,schema:r,value:a,setValue:n,clearValue:i,arrayIndex:s,...l})=>{let o=(0,m.useCallback)(e=>{if(0===e.target.value.length){n(void 0);return}if("integer"===r.type){let t=parseInt(e.target.value);if(isNaN(t))return;n(t)}else n(parseFloat(e.target.value))},[n,r.type]);return(0,d.jsx)(so,{name:e,typeDropdown:t,schema:r,onClear:i,parentNames:l.parentNames,arrayIndex:s,children:(0,d.jsx)("input",{className:"flex-1 min-w-0 bg-transparent outline-none text-playground-input",placeholder:r.placeholder??`enter ${e??"value"}`,onKeyDown:e=>{("e"===e.key||"."===e.key&&"integer"===r.type)&&e.preventDefault()},type:"number",value:a??"",onChange:o})})},sm=({onAddKey:e,existingKeys:t})=>{let[r,a]=(0,m.useState)(!1),[n,i]=(0,m.useState)(""),s=t.includes(n),l=n.length>0&&!s;return r?(0,d.jsx)("input",{className:(0,K.Z)("py-6 flex-1 bg-transparent outline-none text-sm text-gray-900 dark:text-gray-100 placeholder-gray-300 dark:placeholder-white/30 font-mono font-medium",s?"underline decoration-wavy decoration-red-400":""),placeholder:"Enter key of new property",type:"text",autoFocus:!0,value:n,onBlur:()=>{i(""),a(!1)},onChange:e=>i(e.target.value),onKeyDown:t=>{("Enter"===t.key||"Tab"===t.key)&&l&&e(t.currentTarget.value)},spellCheck:!1}):(0,d.jsx)(sc,{className:"py-5",onClick:()=>a(e=>!e),label:"Add new property"})},sg=({name:e,schema:t,typeDropdown:r,setValue:a,clearValue:n,value:i,depth:s,parentNames:l,arrayIndex:o})=>{let[c,u]=(0,m.useState)(ti()()),h=!1!==t.additionalProperties,p=[...Object.keys(i??{}),...Object.keys(t.properties)],g=ia(t),x=is(t),v=(0,m.useMemo)(()=>sx(g,x,i).map(({key:t,schema:r,value:n,isAdditionalProperty:o})=>{let c=void 0!==n||o?()=>{let e={...i};delete e[t],a(e)}:void 0,u=e?[...l??[],e]:void 0;return(0,d.jsx)(sj,{name:t,schemaArray:r,value:n,setValue:e=>{let r={...i};r[t]=e,a(r)},clearValue:c,depth:s+1,parentNames:u},t)}),[a,i,s,g,x,e,l]);return 0===s?v:(0,d.jsxs)(so,{name:e,typeDropdown:r,schema:t,onClear:n,isObject:!0,parentNames:l,arrayIndex:o,children:[v,h?(0,d.jsx)(sm,{onAddKey:e=>{let t={...i};t[e]=void 0,a(t),u(ti()())},existingKeys:p},c):null]})},sx=(e,t,r)=>{let a=Object.entries(e).map(([e,t])=>({key:e,schema:t,value:null==r?void 0:r[e],isAdditionalProperty:!1}));if(!1===t)return a;let n="object"==typeof t?t:[{type:"any"}];return[...a,...Object.keys(r??{}).filter(t=>!Object.keys(e).includes(t)).map(e=>({key:e,schema:n,value:null==r?void 0:r[e],isAdditionalProperty:!0}))]},sv=({name:e,schema:t,typeDropdown:r,value:a,setValue:n,clearValue:i,parentNames:s,arrayIndex:l})=>{let o="boolean"===t.type?[!0,!1]:t.enum;return(0,d.jsx)(so,{name:e,typeDropdown:r,schema:t,onClear:i,parentNames:s,arrayIndex:l,children:(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsxs)("select",{className:(0,K.Z)("relative text-playground-input w-full text-left flex-1 outline-none cursor-pointer bg-transparent",void 0!==a?"!text-gray-900 dark:!text-gray-100":"!text-gray-400 dark:!text-white/30"),value:(null==a?void 0:a.toString())??"",onChange:e=>{"boolean"===t.type?n("true"===e.target.value):n(e.target.value)},children:[(0,d.jsx)("option",{value:"",disabled:!0,children:t.placeholder??`select ${e||"option"}`}),o.map(e=>(0,d.jsx)("option",{value:e.toString(),children:e.toString()},e.toString()))]}),(0,d.jsx)(r_.Z,{className:"absolute right-2 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400 dark:text-white/30 pointer-events-none"})]})})},sf=({name:e,schema:t,typeDropdown:r,value:a,setValue:n,clearValue:i,parentNames:s,arrayIndex:l})=>{let{prefix:o,placeholder:c}=sy(t.format),u=o&&(null==a?void 0:a.startsWith(o))?a.substring(o.length):a,h=(0,m.useCallback)(e=>{n(`${o??""}${e}`)},[n,o]);return(0,d.jsx)(so,{name:e,typeDropdown:r,schema:t,onClear:i,parentNames:s,arrayIndex:l,children:(0,d.jsxs)("div",{className:"relative flex flex-1 items-center",children:[(0,d.jsx)("div",{className:"absolute left-2.5 top-0 bottom-0 flex items-center justify-center text-sm text-gray-800 dark:text-gray-100",children:o}),(0,d.jsx)("input",{className:(0,X.cn)("flex-1 min-w-0 bg-transparent outline-none text-playground-input"),style:{paddingLeft:o?.52*o.length+"rem":void 0},placeholder:t.placeholder??c??`enter ${e??"value"}`,type:"text",value:u??"",onChange:e=>h(e.target.value),spellCheck:!1})]})})},sy=e=>(null==e?void 0:e.toLowerCase())==="bearer"?{prefix:"Bearer ",placeholder:"enter bearer token"}:{},sb=({name:e,schema:t,typeDropdown:r,value:a,setValue:n,clearValue:i,parentNames:s,arrayIndex:l})=>(0,d.jsx)(so,{name:e,typeDropdown:r,schema:t,onClear:i,parentNames:s,arrayIndex:l,children:(0,d.jsx)("textarea",{className:"-mx-3.5 px-3.5 flex-1 min-h-[2.5rem] min-w-0 bg-transparent outline-none text-playground-input resize-y",rows:2,placeholder:t.placeholder??`Enter ${e??"value"}`,value:a,onChange:e=>n(e.target.value),spellCheck:!1,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off"})}),sj=({name:e,value:t,schemaArray:r,setValue:a,clearValue:n,isBody:i,depth:s=0,parentNames:l,arrayIndex:o})=>{var c;let[u,h]=(0,m.useState)(0),p=se(r),g=null===(c=p[u])||void 0===c?void 0:c.schema,x=(0,m.useCallback)(e=>{var t;(null===(t=p[e])||void 0===t?void 0:t.schema.type)==="null"?a(null):a(void 0),h(e)},[p,a]),v=(0,d.jsx)(sn,{options:p,selectedIndex:u,onSelectOption:x});return void 0===g?null:(0,d.jsx)(aV.Z,{children:(0,d.jsx)(sk,{name:e,schema:g,typeDropdown:v,value:t,setValue:a,clearValue:n,isBody:i,depth:s,parentNames:l,arrayIndex:o})})},sk=({schema:e,value:t,depth:r,isBody:a,...n})=>{switch(e.type){case"string":{let i="string"==typeof t?t:void 0;return(0,d.jsx)(a&&0===r?sb:sf,{schema:e,value:i,...n})}case"number":{let r="number"==typeof t?t:void 0;return(0,d.jsx)(sp,{schema:e,value:r,...n})}case"boolean":{let r="boolean"==typeof t?t:void 0;return(0,d.jsx)(sv,{schema:e,value:r,...n})}case"object":{let a=t&&"object"==typeof t&&!Array.isArray(t)?t:void 0;return(0,d.jsx)(sg,{schema:e,value:a,depth:r,...n})}case"integer":{let r="number"==typeof t&&t%1==0?t:void 0;return(0,d.jsx)(sp,{schema:e,value:r,...n})}case"array":{let a=Array.isArray(t)?t:void 0;return(0,d.jsx)(sd,{schema:e,value:a,depth:r,...n})}case"enum<string>":{let r="string"==typeof t?t:void 0;return(0,d.jsx)(sv,{schema:e,value:r,...n})}case"enum<number>":{let r="number"==typeof t?t:void 0;return(0,d.jsx)(sv,{schema:e,value:r,...n})}case"enum<integer>":{let r="number"==typeof t&&t%1==0?t:void 0;return(0,d.jsx)(sv,{schema:e,value:r,...n})}case"file":{let r=t instanceof File?t:void 0;return(0,d.jsx)(su,{schema:e,value:r,...n})}case"null":{let r=null===t?null:void 0;return(0,d.jsx)(sh,{schema:e,value:r,...n})}}},sw=({body:e,value:t,setValue:r})=>{let[a,n]=(0,m.useState)(0),i=Object.entries(e)[a]??Object.entries(e)[0];if(void 0===i)return null;let[s,{schemaArray:l}]=i;return(0,d.jsx)(i7,{name:"Body",children:(0,d.jsx)(sj,{schemaArray:l,value:t,setValue:r,clearValue:void 0===t?void 0:()=>r(void 0),isBody:!0})})},sL=({name:e,parameters:t,value:r,setValue:a})=>{let n=(0,m.useMemo)(()=>Object.entries(t).map(([e,t])=>{let n=r[e],i=void 0===n?void 0:()=>{let t={...r};delete t[e],a(t)};return(0,d.jsx)(sj,{name:e,schemaArray:t.schema,value:n,setValue:t=>{let n={...r};n[e]=t,a(n)},clearValue:i},e)}),[t,a,r]);return 0===n.length?null:(0,d.jsx)(i7,{name:e,children:n})};var sV=r(48834).Buffer;let sC=({security:e,inputs:t,setInputs:r})=>{let a=(0,m.useMemo)(()=>["header","query","cookie"].flatMap(a=>Object.entries(e.parameters[a]).map(([e,n])=>{let{schemaArray:i,transform:s,value:l}=sN(n,t[a][e]),o=void 0===l?void 0:()=>{let n={...t,[a]:{...t[a]}};delete n[a][e],r(n)};return(0,d.jsx)(sj,{name:e,schemaArray:i,value:l,setValue:n=>{let i={...t,[a]:{...t[a]}};i[a][e]=s(n),r(i)},clearValue:o},`${a}:${e}`)})),[e,r,t]);return(0,d.jsx)(i7,{name:"Authorization",children:a})},sN=(e,t)=>({schemaArray:sM(e),transform:sE(e),value:sZ(e,t)}),sM=e=>{let t=sH(e);switch(e.type){case"apiKey":return[{type:"string",required:!0,description:t}];case"http":return"basic"===e.scheme?[{type:"object",required:!0,description:t,properties:{username:[{type:"string"}],password:[{type:"string"}]},additionalProperties:!1}]:[{type:"string",required:!0,format:"bearer",description:t}];case"oauth2":return[{type:"string",required:!0,format:"bearer",description:t}]}},sH=e=>{switch(e.type){case"apiKey":return e.description;case"http":return e.description??("basic"===e.scheme?"Basic authentication header of the form `Basic <encoded-value>`, where `<encoded-value>` is the base64-encoded string `username:password`.":"Bearer authentication header of the form `Bearer <token>`, where `<token>` is your auth token.");case"oauth2":return e.description??"The access token received from the authorization server in the OAuth 2.0 flow."}},sZ=(e,t)=>{if("http"!==e.type||"basic"!==e.scheme||"string"!=typeof t||!t.startsWith("Basic "))return t;let r=t.slice(6),[a,n]=sV.from(r,"base64").toString("utf-8").split(":");return{username:a,password:n}},sE=e=>"http"!==e.type||"basic"!==e.scheme?e=>e:e=>{let t=e&&"object"==typeof e&&"username"in e?e.username:void 0,r=e&&"object"==typeof e&&"password"in e?e.password:void 0,a=`${t??""}:${r??""}`,n=sV.from(a).toString("base64");return`Basic ${n}`},sS=({variables:e,value:t,setValue:r})=>{let a=(0,m.useMemo)(()=>Object.entries(e).map(([e,a])=>{let n=t[e],i=void 0===n?void 0:()=>{let a={...t};delete a[e],r(a)};return(0,d.jsx)(sj,{name:e,schemaArray:[a],value:n,setValue:a=>{let n={...t};n[e]=String(a),r(n)},clearValue:i},e)}),[e,r,t]);return(0,d.jsx)(i7,{name:"Server",children:a})},sO=e=>e.reduce((e,t)=>"pages"in t?[...e,...sO(t.pages)]:"openapi"in t||"api"in t?[...e,t]:e,[]);function sT({endpoint:e,inputs:t,setInputs:r}){var a;let[{pageMetadata:n}]=eP(),i=(0,tM.J)(),s=n.title||rC(i),l=(0,B.u)(),o=iM(e.request.security),{isSending:c,selectedBaseUrlIndex:u,isPlaygroundExpanded:h,setIsPlaygroundExpanded:p,sendRequest:g,result:x}=(0,m.useContext)(iu),{filteredNavigation:v}=(0,m.useContext)(e8.kH),f=null===(a=e.servers)||void 0===a?void 0:a[u],y=sO(v).map(e=>{let t=e.openapi||e.api;if(void 0==t)return;let r=t7(t);if(void 0!=r)return{method:r.method,title:e.title,href:e.href}}).filter(e=>void 0!=e),b=null==f?void 0:f.variables;return(0,d.jsx)(tR.u.Root,{show:h,as:m.Fragment,children:(0,d.jsxs)("div",{className:(0,X.cn)(tq.Popup,"fixed inset-0 overflow-y-auto p-4 sm:p-6 md:p-12"),children:[(0,d.jsx)(tR.u.Child,{as:m.Fragment,enter:"ease-out duration-100",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-50",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,d.jsx)("div",{className:"fixed z-0 inset-0 bg-background-dark/20 transition-opacity backdrop-blur-sm",onClick:()=>null==p?void 0:p(!1)})}),(0,d.jsx)(tR.u.Child,{as:m.Fragment,enter:"ease-out duration-100",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-50",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,d.jsx)("div",{className:"flex flex-col mx-auto max-w-screen-xl transform overflow-hidden bg-background-light dark:bg-background-dark shadow-search rounded-3xl border-standard",children:(0,d.jsxs)("div",{className:"p-4",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-x-2",children:[(0,d.jsxs)(rB,{children:[(0,d.jsx)(rz,{className:"hidden lg:block",children:(0,d.jsxs)("div",{className:"flex items-center gap-x-2 border-standard rounded-xl p-1.5 pr-3 min-w-80 hover:bg-gray-50 dark:hover:bg-white/5",children:[(0,d.jsx)(rn,{method:e.method,className:(0,X.cn)("text-white",t9(e.method))}),(0,d.jsx)("div",{className:"flex-1 text-left text-sm font-medium text-gray-900 dark:text-white truncate",children:e.title||s}),(0,d.jsx)("div",{children:(0,d.jsx)(r_.Z,{className:"w-4 h-4 text-gray-500 dark:text-gray-400"})})]})}),(0,d.jsx)(rq,{className:"w-80 border border-gray-100 dark:border-white/10 rounded-xl",children:y.map(e=>{let t=e.href===l.asPath;return(0,d.jsx)(R(),{href:e.href,title:e.title,children:(0,d.jsxs)("div",{className:(0,X.cn)("flex items-center gap-x-2 hover:bg-gray-50 dark:hover:bg-white/5 rounded-xl p-1.5 group cursor-pointer",t?"bg-gray-50 dark:bg-white/5 text-primary dark:text-primary-light font-medium":"text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300"),children:[(0,d.jsx)(rn,{method:e.method,className:(0,X.cn)("font-medium px-1 py-px text-xs rounded-md",t&&`text-white ${t9(e.method)}`)}),(0,d.jsx)("div",{className:"text-sm truncate",children:e.title})]})},e.href)})})]}),(0,d.jsx)(iS,{endpoint:e,mode:"show",hasGrayBackground:!0}),(0,d.jsx)(i_,{label:"Send",method:e.method,isSending:c,onClick:g,className:"w-20"})]}),(0,d.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-x-8 gap-y-6 mt-5",children:[(0,d.jsxs)("div",{className:"col-span-1 lg:col-span-3",children:[(0,d.jsxs)("div",{className:"space-y-1",children:[(0,d.jsx)("div",{className:"text-base font-medium text-gray-900 dark:text-white",children:e.title}),n.description&&(0,d.jsx)(n$,{markdown:n.description,className:"text-sm text-gray-500 dark:text-gray-400"})]}),x&&(0,d.jsx)(i4,{result:x,className:"mt-6 block lg:hidden"}),(0,d.jsxs)("div",{className:"space-y-2 mt-6",children:[b&&Object.keys(b).length>0&&(0,d.jsx)(sS,{variables:b,value:t.server,setValue:e=>r({...t,server:e})}),o&&(0,d.jsx)(sC,{security:o,inputs:t,setInputs:r}),(0,d.jsx)(sL,{name:"Header",value:t.header,setValue:e=>r({...t,header:e}),parameters:e.request.parameters.header}),(0,d.jsx)(sL,{name:"Cookie",value:t.cookie,setValue:e=>r({...t,cookie:e}),parameters:e.request.parameters.cookie}),(0,d.jsx)(sL,{name:"Path",value:t.path,setValue:e=>r({...t,path:e}),parameters:e.request.parameters.path}),(0,d.jsx)(sL,{name:"Query",value:t.query,setValue:e=>r({...t,query:e}),parameters:e.request.parameters.query}),(0,d.jsx)(sw,{value:t.body,setValue:e=>r({...t,body:e}),body:e.request.body})]})]}),(0,d.jsxs)("div",{className:"col-span-1 lg:col-span-2 space-y-6",children:[x&&(0,d.jsx)(i4,{result:x,className:"hidden lg:block"}),(0,d.jsx)(nV,{})]})]})]})})})]})})}let sI=({endpoint:e,inputs:t,setInputs:r,mode:a})=>{var n;let{selectedBaseUrlIndex:i,setIsPlaygroundExpanded:s}=(0,m.useContext)(iu),l=null===(n=e.servers)||void 0===n?void 0:n[i],o=iM(e.request.security),{userInfo:c}=(0,m.useContext)(w.E);return function({inputs:e,setInputs:t,baseUrl:r,securityOption:a,userInfoInputs:n}){let[i,s]=(0,m.useState)(),[l,o]=(0,m.useState)();(0,m.useEffect)(()=>{s(ib()),o(ig())},[]),(0,m.useEffect)(()=>{let s=iw(a,l,n),o=iV(r,i,n);t({...s,server:o,path:e.path,body:e.body})},[i,l,n]),(0,m.useEffect)(()=>{let r=iw(a,l,n);t({...e,...r})},[a]),(0,m.useEffect)(()=>{a&&ip(a,{query:e.query,header:e.header,cookie:e.cookie},n)},[e.cookie,e.header,e.query]),(0,m.useEffect)(()=>{let a=iV(r,i,n);t({...e,server:a})},[r]),(0,m.useEffect)(()=>{r&&ij(r,e.server,n)},[e.server])}({inputs:t,setInputs:r,baseUrl:null==l?void 0:l.url,securityOption:o,userInfoInputs:null==c?void 0:c.apiPlaygroundInputs}),(0,d.jsx)(aV.Z,{children:(0,d.jsxs)("div",{className:(0,X.cn)("flex w-full flex-col bg-background-light dark:bg-background-dark border-standard rounded-2xl","simple"===a?"p-1":"p-1.5"),children:[(0,d.jsx)(iZ,{endpoint:e,mode:a,onClickInteractive:()=>null==s?void 0:s(!0),hideBaseUrlSelector:!0}),(0,d.jsx)(sT,{endpoint:e,inputs:t,setInputs:r})]})})},sP=({endpoint:e,mode:t})=>{let r=aJ(),a=ic(),n=id(),i=aG(),[s,l]=(0,m.useState)(0),[o,c]=(0,m.useState)(!1),[u,h]=(0,m.useState)(!1),[p,g]=(0,m.useState)(),[x,v]=(0,m.useState)(0),f=Object.keys(e.request.body)[x],y=(null==i?void 0:i[s])??(null==i?void 0:i[0])??"";(0,m.useEffect)(()=>{new URLSearchParams(window.location.search).has("playground")&&c(!0)},[]);let b=a5({endpoint:e,baseUrl:y,contentType:f??"application/json",setIsFetching:h,setResult:g}),j=e=>{if(c(e),e){let e=new URL(window.location.href);e.searchParams.set("playground","open"),window.history.replaceState({},"",e)}else{let e=new URL(window.location.href);e.searchParams.delete("playground"),window.history.replaceState({},"",e)}};return tX("Enter","show"===t?b:void 0),tX("Escape",o?()=>j(!1):void 0,!0),(0,d.jsx)(aV.Z,{children:(0,d.jsx)(iu.Provider,{value:{isSending:u,sendRequest:b,result:p,setSelectedBaseUrlIndex:e=>{l(e),n(e)},selectedBaseUrlIndex:s,baseUrlOptions:i,isPlaygroundExpanded:o,setIsPlaygroundExpanded:j},children:(0,d.jsx)("div",{className:"mt-6 flex w-full flex-col space-y-4",children:(0,d.jsx)(ie.Provider,{value:{location:"request"},children:(0,d.jsx)(sI,{inputs:r,setInputs:a,endpoint:e,mode:t})})})})})},s_=()=>{let e=aF(),t=aW(),r="hide"!==e&&t;return(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[r&&(0,d.jsx)(sP,{endpoint:t,mode:e}),(0,d.jsx)("div",{className:(0,X.cn)("flex flex-col gap-6 xl:hidden",!r&&"[&:not(:empty)]:mt-8"),children:(0,d.jsx)(nV,{})})]})};var sA=r(45392);function s$({children:e}){let{docsConfig:t}=(0,m.useContext)(w.E),r=et(t);return(0,d.jsx)("div",{className:(0,K.Z)("hidden xl:flex self-start sticky",r?"h-[calc(100vh-8rem-1.5rem-1.5rem)] top-[calc(8rem+1.5rem)]":"h-[calc(100vh-6.5rem-1rem)] top-[6.5rem]"),id:s.ContentSideLayout,children:e})}let sB=()=>{let[{tableOfContents:e,headings:t}]=eP(),[r,a]=(0,m.useState)(""),[n,i]=(0,m.useState)();return(0,m.useEffect)(()=>{let e=()=>{let e=window.location.hash;e&&a(e.substring(1))};return window.addEventListener("hashchange",e),e(),()=>{window.removeEventListener("hashchange",e)}},[]),(0,m.useEffect)(()=>{if(0===e.length||0===t.length)return;function a(){var e,a,s,l,o;if(window.innerHeight+scrollY===document.body.offsetHeight){let e=document.getElementById(r);if(e){let t=e.getBoundingClientRect();if(t.top>=0&&t.bottom<=window.innerHeight){i(r);return}}}let d=window.getComputedStyle(document.documentElement),c=parseFloat((null===(e=d.getPropertyValue("--scroll-mt").match(/[\d.]+/))||void 0===e?void 0:e[0])??"0");c*=parseFloat((null===(a=d.fontSize.match(/[\d.]+/))||void 0===a?void 0:a[0])??"16");let u=t.concat([]).sort((e,t)=>(e.top??0)-(t.top??0)),h=window.scrollY+c+1,p=null===(s=u[0])||void 0===s?void 0:s.id;for(let e=0;e<u.length;e++)h>=((null===(l=u[e])||void 0===l?void 0:l.top)??0)&&(p=null===(o=u[e])||void 0===o?void 0:o.id);n!=p&&i(p)}let s={capture:!0,passive:!0};return window.addEventListener("scroll",a,s),a(),()=>window.removeEventListener("scroll",a,s)},[r,n,t,e]),n},sz=()=>{let[{tableOfContents:e}]=eP(),t=sB(),{setNavIsOpen:r}=(0,m.useContext)(e8.kH),a=(0,m.useCallback)(()=>r(!1),[r]),n=(0,m.useCallback)(e=>e.slug===t||!!e.children&&e.children.findIndex(n)>-1,[t]),i=e.some(e=>e.children.length>0);return(0,m.useMemo)(()=>({closeNav:a,isActive:n,pageHasSubsections:i,tableOfContents:e}),[a,n,i,e])},sq=({section:e,isActive:t,closeNav:r,pageHasSubsections:a})=>(0,d.jsxs)(m.Fragment,{children:[(0,d.jsx)("li",{children:(0,d.jsx)("a",{href:`#${e.slug}`,onClick:r,className:(0,K.Z)("py-1 block",a?"font-medium":"",t(e)?"-ml-px font-medium text-primary dark:text-primary-light border-l border-primary dark:border-primary-light":"hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300"),children:e.title})}),e.children.map(e=>{let a=e.depth-2;return(0,d.jsx)("li",{style:{marginLeft:a+"rem"},children:(0,d.jsx)("a",{href:`#${e.slug}`,onClick:r,className:(0,K.Z)("group flex items-start py-1 whitespace-pre-wrap",t(e)?"text-primary dark:text-primary-light":"text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300"),children:e.title})},e.slug)})]},e.slug);function sF(){let{docsConfig:e}=(0,m.useContext)(w.E),{onThisPage:t}=(0,e8.Oo)(),{closeNav:r,isActive:a,pageHasSubsections:n,tableOfContents:i}=sz();return Array.isArray(i)&&0!==i.length?(0,d.jsxs)("div",{id:s.TableOfContentsContent,className:(0,K.Z)("fixed text-gray-600 text-sm leading-6 w-[16.5rem] overflow-y-auto space-y-2",et(e)?"h-[calc(100%-10rem)]":"h-[calc(100%-7rem)]"),children:[(0,d.jsxs)("div",{className:"text-gray-700 dark:text-gray-300 font-medium flex items-center space-x-2",children:[(0,d.jsx)(sR,{}),(0,d.jsx)("span",{children:t})]}),(0,d.jsx)("ul",{children:i.map(e=>(0,d.jsx)(sq,{section:e,closeNav:r,isActive:a,pageHasSubsections:n},`TableOfContentSection-${e.slug}`))})]}):null}function sR(){return(0,d.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",xmlns:"http://www.w3.org/2000/svg",className:"h-3 w-3",children:[(0,d.jsx)("path",{d:"M2.44434 12.6665H13.5554",strokeLinecap:"round",strokeLinejoin:"round"}),(0,d.jsx)("path",{d:"M2.44434 3.3335H13.5554",strokeLinecap:"round",strokeLinejoin:"round"}),(0,d.jsx)("path",{d:"M2.44434 8H7.33323",strokeLinecap:"round",strokeLinejoin:"round"})]})}let sD=({children:e})=>(0,d.jsx)("div",{className:(0,K.Z)(tq.Control,"hidden xl:flex pl-10 box-border w-[19rem]"),id:"table-of-contents",children:e}),sW=()=>(0,d.jsx)(sD,{children:(0,d.jsx)(sF,{})}),sU={img:e=>(0,d.jsx)(e5,{...e,children:(0,d.jsx)("img",{...e})}),picture:e=>(0,d.jsx)(e5,{...e,children:(0,d.jsx)("picture",{...e})}),figure:e=>(0,d.jsx)(e5,{...e,children:(0,d.jsx)("figure",{...e})})},sG=({showExample:e})=>(0,d.jsx)(sA.Z,{components:{a:rv,Heading:eA,...sU},children:e?(0,d.jsx)(s$,{children:(0,d.jsx)("div",{className:"w-[28rem] gap-6 grid grid-rows-[repeat(auto-fit,minmax(0,min-content))] grid-rows relative",children:(0,d.jsx)(nV,{})})}):(0,d.jsx)(sW,{})}),sJ=({children:e})=>{let{isWide:t,isCustom:r,isCenter:a}=tH(),n=aU(),i=aY(),s=n9(),l=!(t||r||a);return(0,d.jsxs)("div",{className:(0,X.cn)("flex flex-row gap-12 box-border w-full",r?"pt-[120px] lg:pt-0":"pt-40 lg:pt-10"),children:[(0,d.jsx)("div",{className:(0,X.cn)("relative grow box-border flex-col w-full",!r&&!a&&"mx-auto px-1 lg:pl-[23.7rem] lg:-ml-12 ",l?"xl:w-[calc(100%-28rem)]":"xl:w-[calc(100%-19rem)] xl:min-w-full"),id:"content-area",children:e}),l&&(0,d.jsx)(sG,{showExample:n||i||s})]})},sK=({title:e,subtitle:t,options:r,selectedIndex:a,onSelectOption:n})=>(0,d.jsxs)("div",{className:"flex items-baseline border-b pb-2.5 border-gray-100 dark:border-gray-800",children:[(0,d.jsx)("h4",{className:"flex-1 mb-0",children:e}),r&&r.length>1&&(0,d.jsx)(eB,{options:r,selectedIndex:a,onSelectOption:n}),(0,d.jsx)("div",{className:"flex items-center",children:t&&(0,d.jsx)("div",{className:"font-mono px-2 py-0.5 text-xs font-medium text-gray-600 dark:text-gray-300",children:t})})]}),sY=({body:e})=>{let[t,r]=(0,m.useState)(0),a=n8(),n=(0,m.useMemo)(()=>Object.entries(e).map(([e,{schemaArray:t}])=>{let{typeOptionLabels:r,originalIndices:n}=n5(t,a),i=n[0],s=void 0!==i?t[i]:void 0;return{contentTypeLabel:1===r.length&&s&&!sQ(s)?`${e} \xb7 ${r[0]}`:e,typeOptionLabels:r,originalIndices:n,schemaArray:n.map(e=>t[e])}}),[e,a])[t];if(void 0===n)return null;let i=Object.keys(e);return i[t]=n.contentTypeLabel,(0,d.jsxs)("div",{children:[i.length>1?(0,d.jsx)(sK,{title:"Body",options:i,selectedIndex:t,onSelectOption:r}):(0,d.jsx)(sK,{title:"Body",subtitle:i[0]}),n.schemaArray.length>1?(0,d.jsx)("div",{className:"mt-4 rounded-xl border border-gray-100 px-4 pt-2 dark:border-white/10",children:(0,d.jsx)(e0,{className:"!-mt-1 !border-gray-100 !mb-0 dark:!border-white/10",children:n.schemaArray.map((e,t)=>(0,d.jsx)(eX,{title:n.typeOptionLabels[t]??"",children:(0,d.jsx)(n0,{fieldType:"body",schemaArray:[e]})},t))},t)}):(0,d.jsx)(n0,{fieldType:"body",schemaArray:n.schemaArray})]})},sQ=e=>"object"===e.type&&Object.keys(e.properties).length>0,sX=({parameters:e})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s0,{title:"Headers",parameters:e.header}),(0,d.jsx)(s0,{title:"Path Parameters",parameters:e.path}),(0,d.jsx)(s0,{title:"Query Parameters",parameters:e.query}),(0,d.jsx)(s0,{title:"Cookies",parameters:e.cookie})]}),s0=({parameters:e,title:t})=>{if(0===Object.keys(e).length)return null;let r=Object.entries(e).map(([e,t])=>(0,d.jsx)(n0,{fieldType:"parameter",name:e,schemaArray:t.schema},e));return(0,d.jsxs)("div",{children:[(0,d.jsx)(sK,{title:t}),r]})},s1=({response:e})=>{let t=Object.entries(e)[0];if(!t)return null;let[r,a]=t,n=Object.entries(a)[0];if(void 0===n)return null;let[i,s]=n,l=`${r} - ${i}`,{schemaArray:o}=s,c=n2(o);return(0,d.jsxs)("div",{children:[(0,d.jsx)(sK,{title:"Response",subtitle:l}),o.length>1?(0,d.jsx)(e0,{children:o.map((e,t)=>(0,d.jsx)(eX,{title:c[t]??"",children:(0,d.jsx)(n0,{fieldType:"response",schemaArray:[e]})},t))}):(0,d.jsx)(n0,{fieldType:"response",schemaArray:o})]})},s2=({securityOptions:e})=>{let[t,r]=(0,m.useState)(0),a=(0,m.useMemo)(()=>e.map(e=>e.title),[e]),n=e[t];if(void 0===n)return null;let i=["header","query","cookie"].flatMap(e=>Object.entries(n.parameters[e]).map(([t,r])=>(0,d.jsx)(n0,{fieldType:"authorization",schemaArray:[{type:"string",description:sH(r),required:!0}],name:t,location:e},`${e}:${t}`)));return(0,d.jsxs)("div",{children:[(0,d.jsx)(sK,{title:"Authorizations",options:a,selectedIndex:t,onSelectOption:r}),i]})};var s4=()=>{let e=aR();if(void 0===e)return null;let t=e.request.security.filter(e=>Object.keys(e.parameters.cookie).length>0||Object.keys(e.parameters.header).length>0||Object.keys(e.parameters.query).length>0);return(0,d.jsxs)(d.Fragment,{children:[t.length>0&&(0,d.jsx)(s2,{securityOptions:t}),(0,d.jsx)(sX,{parameters:e.request.parameters}),(0,d.jsx)(ie.Provider,{value:{location:"request"},children:(0,d.jsx)(sY,{body:e.request.body})}),(0,d.jsx)(ie.Provider,{value:{location:"response"},children:(0,d.jsx)(s1,{response:e.response})})]})};let s5=({children:e})=>{let[{pageMetadata:t}]=eP(),{isCustom:r}=tH();return(0,d.jsxs)("div",{className:(0,X.cn)("relative",!r&&"mt-8 prose prose-gray dark:prose-invert"),children:[(0,d.jsx)(sA.Z,{components:{a:rv,Heading:eA,...sU},children:e}),t.openapi&&(0,d.jsx)(s4,{}),t["openapi-schema"]&&(0,d.jsx)(n6,{})]})},s3=e=>{let t=e[0];if(t)return"string"==typeof t?t:s3(t.pages)};function s6({description:e}){var t;let{mintConfig:r}=(0,m.useContext)(w.E),[{pageMetadata:a}]=eP(),n=(0,tM.J)(),i=al(n,(null==r?void 0:r.navigation)??[]),o=function(e,t){for(let r of t){let t=function e(t,r){let a={title:t.group,path:s3(t.pages)};for(let n of t.pages)if(as(n)){let t=e(n,r);if(t.length>0)return[a,...t]}else if(rS(n,r))return[a];return[]}(r,e);if(t.length>0)return t}return[]}(n,(null==r?void 0:r.navigation)??[]),u=a.title||rC(n);return u||e?(0,d.jsxs)("header",{id:s.Header,className:"relative",children:[(0,d.jsxs)("div",{className:"mt-0.5 space-y-2.5",children:[(null==r?void 0:null===(t=r.eyebrow)||void 0===t?void 0:t.display)==="breadcrumbs"?(0,d.jsx)(s7,{breadcrumbs:o}):i&&(0,d.jsx)("div",{className:(0,X.cn)(l.Eyebrow,"h-5 text-primary dark:text-primary-light text-sm font-semibold"),children:i}),(0,d.jsx)("div",{className:"flex items-center",children:(0,d.jsx)("h1",{className:"inline-block text-2xl sm:text-3xl font-extrabold text-gray-900 tracking-tight dark:text-gray-200",children:u})})]}),(0,d.jsx)(()=>"string"==typeof e?(0,d.jsx)("div",{className:"mt-2 text-lg prose prose-gray dark:prose-invert",children:e}):e?(0,d.jsx)("div",{className:"mt-2 text-lg prose prose-gray dark:prose-invert",children:(0,d.jsx)(c.Jg,{components:e3,...e})}):null,{})]}):null}let s7=({breadcrumbs:e})=>0===e.length?null:(0,d.jsx)("div",{className:"flex flex-row items-center gap-1.5",children:e.map((t,r)=>(0,d.jsxs)("div",{className:"inline-flex items-center gap-1.5 text-sm text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300",children:[(0,d.jsx)(R(),{href:t.path??"#",children:t.title}),r<e.length-1&&(0,d.jsx)(t8.Z,{size:12,strokeWidth:2.5,className:"text-gray-400 dark:text-gray-500"})]},t.title))}),s8=e=>s9(e),s9=e=>e.flatMap(e=>(0,tU.t)(e)?s9(e.pages):e),le=()=>{let[{pageMetadata:e}]=eP(),{prev:t,next:r}=function(){let e=(0,tM.J)(),{filteredNavigation:t}=(0,m.useContext)(e8.kH);return(0,m.useMemo)(()=>{let r=s8(t),a=r.findIndex(t=>t.href===e);return{prev:a>-1?r[a-1]:void 0,next:a>-1?r[a+1]:void 0}},[e,t])}(),a=e.hideFooterPagination?null:t,n=e.hideFooterPagination?null:r;return a||n?(0,d.jsxs)("div",{className:"mb-12 px-0.5 flex items-center text-sm font-semibold text-gray-700 dark:text-gray-200",children:[a&&(0,d.jsxs)(R(),{href:a.href,className:"flex items-center space-x-3 group",children:[(0,d.jsx)("svg",{viewBox:"0 0 3 6",className:"h-1.5 stroke-gray-400 overflow-visible group-hover:stroke-gray-600 dark:group-hover:stroke-gray-300",children:(0,d.jsx)("path",{d:"M3 0L0 3L3 6",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,d.jsx)("span",{className:"group-hover:text-gray-900 dark:group-hover:text-white",children:rH(a)})]}),n&&(0,d.jsxs)(R(),{href:n.href,className:"flex items-center ml-auto space-x-3 group",children:[(0,d.jsx)("span",{className:"group-hover:text-gray-900 dark:group-hover:text-white",children:rH(n)}),(0,d.jsx)("svg",{viewBox:"0 0 3 6",className:"rotate-180 h-1.5 stroke-gray-400 overflow-visible group-hover:stroke-gray-600 dark:group-hover:stroke-gray-300",children:(0,d.jsx)("path",{d:"M3 0L0 3L3 6",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]}):null};function lt({children:e,pageMetadata:t,description:r,mdxExtracts:a}){var n;let i=eT({pageMetadata:t,selectedBodyContentType:Object.keys((null===(n=a.endpoint)||void 0===n?void 0:n.request.body)??{})[0],...a}),{mintConfig:s}=(0,m.useContext)(w.E),l=(0,m.useMemo)(()=>{var e;return(null==s?void 0:null===(e=s.footer)||void 0===e?void 0:e.links)&&s.footer.links.length>0},[s]);return"custom"===t.mode?(0,d.jsx)(eI.Provider,{value:i,children:(0,d.jsx)(sJ,{children:(0,d.jsx)(s5,{children:e})})}):(0,d.jsx)(eI.Provider,{value:i,children:(0,d.jsxs)(sJ,{children:[(0,d.jsx)(s6,{description:r}),(0,d.jsx)(s_,{}),(0,d.jsx)(s5,{children:e}),(0,d.jsxs)("div",{className:"leading-6 mt-14",children:[(0,d.jsx)(aL,{}),(0,d.jsx)(le,{}),!l&&(0,d.jsx)(tB,{})]})]})})}var lr=r(74857),la=r(80657);let ln=(e,t)=>{let r=null==t?void 0:t.find(t=>e.startsWith(`/${t.url}/`));return r?r.name:"Documentation"},li=(e,t)=>{for(let r of t.pages)if((0,tU.t)(r)){let t=li(e,r);if(t)return t}else if(r.href===e)return t.group},ls=(e,t)=>{for(let r of t){let t=li(e,r);if(t)return t}},ll=e=>!!e&&Date.now()-new Date(e).getTime()<k.ZF,lo=async e=>{if(k.TQ||!e||C.ZP.sessionRecordingStarted())return;let{plan:t,createdAt:r}=e;("startup"===t||"enterprise"===t)&&C.ZP.startSessionRecording(),ll(r)&&C.ZP.startSessionRecording()},ld=(e,t,r)=>{switch(null==e?void 0:e.style){case"gradient":return{background:`radial-gradient(49.63% 57.02% at 58.99% -7.2%, rgba(${(0,rx.hF)(t)}, 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,rx.hF)(t)}, 0.1) 39.4%, rgba(0, 0, 0, 0) 100%)`,className:"h-[64rem]",children:(0,d.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,d.jsx)("mask",{id:`mask-${r}`,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},x:"0",y:"-80",width:"936",height:"671",children:(0,d.jsx)("ellipse",{cx:"468.373",cy:"255.536",rx:"467.627",ry:"335.114",fill:`url(#radial-${r})`})}),(0,d.jsx)("g",{mask:`url(#mask-${r})`,children:(0,d.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,d.jsx)("defs",{children:(0,d.jsxs)("radialGradient",{id:`radial-${r}`,cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(468.373 255.536) rotate(90) scale(335.114 467.627)",children:[(0,d.jsx)("stop",{stopColor:"#D9D9D9"}),(0,d.jsx)("stop",{offset:"1",stopOpacity:"0"})]})})]})};case"windows":return{background:`radial-gradient(49.63% 57.02% at 58.99% -7.2%, rgba(${(0,rx.hF)(t)}, 0.1) 39.4%, rgba(0, 0, 0, 0) 100%)`,className:"h-[64rem]",children:(0,d.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,d.jsx)("mask",{id:`mask-${r}`,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"-143",width:"936",height:"861",children:(0,d.jsx)("ellipse",{cx:"468.373",cy:"287.536",rx:"467.627",ry:"430.464",fill:`url(#radial-${r})`})}),(0,d.jsxs)("g",{mask:`url(#mask-${r})`,className:"fill-primary dark:fill-primary-light",children:[(0,d.jsx)("path",{d:"M506.419 281.855L446.417 297.931V359.885L506.419 343.71V281.855Z",fillOpacity:"0.05"}),(0,d.jsx)("path",{d:"M384.768 188.752L324.766 204.828V266.781L384.768 250.606V188.752Z",fillOpacity:"0.05"}),(0,d.jsx)("path",{d:"M263.625 347.002L203.623 363.078V425.031L263.625 408.856V347.002Z",fillOpacity:"0.05"}),(0,d.jsx)("path",{d:"M385.089 440.096L325.087 456.172V518.125L385.089 501.95V440.096Z",fillOpacity:"0.05"}),(0,d.jsx)("path",{d:"M627.756 123.527L567.754 139.603V201.557L627.756 185.382V123.527Z",fillOpacity:"0.05"}),(0,d.jsx)("path",{d:"M445.32 46.918L385.318 62.994V124.947L445.32 108.772V46.918Z",fillOpacity:"0.05"}),(0,d.jsx)("path",{d:"M749.192 279.59L689.19 295.666V357.619L749.192 341.444V279.59Z",fillOpacity:"0.05"}),(0,d.jsx)("path",{d:"M627.905 437.912L567.903 453.988V515.941L627.905 499.766V437.912Z",fillOpacity:"0.05"}),(0,d.jsx)("path",{d:"M202.491 175.656L142.489 191.732V253.685L202.491 237.511V175.656Z",fillOpacity:"0.05"}),(0,d.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,d.jsx)("defs",{children:(0,d.jsxs)("radialGradient",{id:`radial-${r}`,cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(468.373 287.536) rotate(90) scale(430.464 467.627)",children:[(0,d.jsx)("stop",{stopColor:"#D9D9D9"}),(0,d.jsx)("stop",{offset:"1",stopOpacity:"0"})]})})]})};default:return{background:void 0}}},lc=()=>{let{mintConfig:e}=(0,m.useContext)(w.E),t=(0,rx.cI)();if((null==e?void 0:e.background)==null)return null;let r=ld(e.background,t.primary,"light"),a=ld(e.background,t.primaryLight,"dark");return null==r||null==a?null:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:(0,X.cn)("block absolute dark:hidden inset-0 overflow-hidden",r.className),style:{background:r.background},children:r.children}),(0,d.jsx)("span",{className:(0,X.cn)("hidden absolute dark:block inset-0 overflow-hidden",a.className),style:{background:a.background},children:a.children})]})},lu=({backgroundImage:e})=>(0,d.jsx)("span",{className:"fixed inset-0",style:{backgroundImage:`url('${e}')`,backgroundRepeat:"no-repeat",backgroundPosition:"top right",backgroundAttachment:"fixed",WebkitTouchCallout:"none"}}),lh=({mintConfig:e})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"fixed inset-0 bg-background-light dark:bg-background-dark -z-10"}),(0,d.jsx)(lc,{}),e.backgroundImage&&(0,d.jsx)(lu,{backgroundImage:e.backgroundImage})]});var lp=r(52688);function lm({cssFiles:e,description:t,disableAiChat:r,entitlements:a,favicons:n,feedback:i,inkeep:s,internalAnalyticsWriteKey:l,jsFiles:o,mdxExtracts:h,mdxSource:x,mdxSourceWithNoJs:v,org:f,pageData:y,shouldIndex:b,subdomain:j,trieve:L,userAuth:C}){var N,M,H,Z;let E=(0,u.useRouter)(),{mintConfig:S,navWithMetadata:O,pageMetadata:T,apiReferenceData:I,docsConfig:P}=y,_=function(e,t,r){let a=(0,B.u)(),[n,i]=(0,m.useState)(!1),[s,l]=(0,m.useState)();return(0,m.useEffect)(()=>{if(k.XK&&!n){let a;r&&t&&(a={internalAnalyticsWriteKey:r,subdomain:t}),l(new $(e,a)),i(!0)}},[n,e,r,t]),(0,m.useEffect)(()=>{s&&(s.onRouteChange(a.asPath,{initialLoad:!0}),a.events.on("routeChangeComplete",(e,t)=>{s.onRouteChange(e,t)}))},[s,a]),s}(S.analytics??{},j,l),[A,z]=(0,m.useState)(""),[q,F]=(0,m.useState)(!1),R=function(e,t){let[r,a]=(0,m.useState)();return(0,m.useEffect)(()=>{let r=e=>{a(e),tl(tc,{retrievedAt:Date.now(),data:e})},n=async()=>{try{let e=await fetch("/api/user"),t=await e.json();null!=t.user&&r(t.user)}catch{}};switch(e9.F9.AUTH_ENABLED&&n(),null==e?void 0:e.type){case"shared-session":tk(e,r);return;case"jwt":tm(e,t,r);return;case"oauth":ty(e,t,r);return;case void 0:localStorage.removeItem(tc);return}},[]),r}(C,E),D="cli"===e9.F9.ENV;(function(e){let t=(0,B.u)();(0,m.useEffect)(()=>{let r=new te.Z({size:2,color:e??"#16A34A",className:"bar-of-progress",delay:100});t.events.on("routeChangeStart",()=>r.start()),t.events.on("routeChangeComplete",()=>r.finish()),t.events.on("routeChangeError",()=>r.finish())})})(S.colors.primary),lo(f);let W=(tE(a,"AI_CHAT")||ll(null==f?void 0:f.createdAt))&&!r;(0,m.useEffect)(()=>{z(window.location.origin),F(!0)},[]);let U=function(e,t,r){let a=t.metadata||{},n={charset:"utf-8","og:type":"website","og:site_name":t.name,"twitter:card":"summary_large_image","og:title":rZ(e,t.name),"twitter:title":rZ(e,t.name),"og:image":r,"twitter:image":r};return e.description&&(n["og:description"]=e.description),rN.forEach(t=>{let r=e[t]??a[t];r&&(n[t]=r)}),n}(T,S,function(e,t,r,a,n,i){var s,l,o;let d=new URL(`${e?e+i:"https://mintlify.com/docs"}/api/og`),c=rM(t),u=(e,t)=>{t&&d.searchParams.set(e,t)},h=ln(n,r.anchors),p=ls(n,a);return u("division",h),u("section",p),u("mode",null===(s=r.modeToggle)||void 0===s?void 0:s.default),u("title",c),u("description",t.description),"string"==typeof r.logo?(u("logoLight",r.logo),u("logoDark",r.logo)):(u("logoLight",null===(l=r.logo)||void 0===l?void 0:l.light),u("logoDark",null===(o=r.logo)||void 0===o?void 0:o.dark)),u("primaryColor",r.colors.primary),u("lightColor",r.colors.light),u("darkColor",r.colors.dark),d.toString()}(A,T,S,O,E.asPath,E.basePath));return(0,d.jsxs)(B.S.Provider,{value:E,children:[D&&(0,d.jsx)(e7,{}),(0,d.jsx)(tL,{appId:null===(N=S.integrations)||void 0===N?void 0:N.intercom,autoBoot:!0,children:(0,d.jsx)(w.E.Provider,{value:{mintConfig:S,docsConfig:P,navWithMetadata:O,subdomain:j,apiReferenceData:I,inkeep:s,pageMetadata:T,trieve:L,userAuth:C,userInfo:R,entitlements:a,feedback:i},children:(0,d.jsxs)(e8.YW,{versionOptions:S.versions,children:[(0,d.jsx)(ad.Z,{}),(0,d.jsxs)(g.Z.Provider,{value:{analyticsMediator:_},children:[(0,d.jsx)(ap.v,{}),(0,d.jsx)(lp.A,{}),(0,d.jsx)(am,{favicons:n,mintConfig:S,metaTagsDict:U}),(0,d.jsx)(ah,{shouldIndex:b,origin:A,basePath:E.basePath}),(0,d.jsx)(lr.$,{modeToggleDefault:null===(M=S.modeToggle)||void 0===M?void 0:M.default}),e.map(({content:e},t)=>(0,d.jsx)("style",{dangerouslySetInnerHTML:{__html:e}},t)),o.map(({content:e},t)=>(0,d.jsx)(p(),{id:t.toString(),children:e},t)),(0,d.jsx)(tN,{}),(0,d.jsx)(V,{}),(0,d.jsx)(rp,{subdomain:j,hasChatPermissions:W,children:(0,d.jsxs)("div",{className:(0,X.cn)("relative antialiased text-gray-500 dark:text-gray-400",(null===(H=(0,la.Z)(S.font,"headings"))||void 0===H?void 0:H.weight)&&"[[&_:is(h1,h2,h3,h4,h5,h6)]:font-headingsWeight",(null===(Z=(0,la.Z)(S.font,"body"))||void 0===Z?void 0:Z.weight)&&"[&_*:not(h1,h2,h3,h4,h5,h6,h1_*,h2_*,h3_*,h4_*,h5_*,h6_*)]:font-bodyWeight"),children:[(0,d.jsx)(lh,{mintConfig:S}),(0,d.jsx)(ao,{children:(0,d.jsx)(aV.Z,{children:(0,d.jsx)(lt,{pageMetadata:T,mdxExtracts:h,description:t,children:(0,d.jsx)(c.Jg,{components:e3,compiledSource:q?x.compiledSource:v.compiledSource,frontmatter:x.frontmatter,scope:{pageMetadata:T,user:(null==R?void 0:R.content)??{}}})},E.asPath)})})]})})]})]})})})]})}},52688:function(e,t,r){"use strict";r.d(t,{A:function(){return s}});var a=r(52322),n=r(2784),i=r(63326);function s(){var e;let{docsConfig:t}=(0,n.useContext)(i.E);if((null==t?void 0:null===(e=t.styling)||void 0===e?void 0:e.rounded)!=="sharp")return null;{let e=`:root { --rounded-sm: 0; --rounded: 0; --rounded-md: 0; --rounded-lg: 0; --rounded-xl: 0; --rounded-2xl: 0; --rounded-search: 0; --rounded-3xl: 0; --rounded-full: 0; }`;return(0,a.jsx)("style",{children:e})}}},3190:function(e,t,r){"use strict";r.d(t,{BL:function(){return c},ET:function(){return l},LZ:function(){return o},NW:function(){return m},Oq:function(){return d},Tw:function(){return s},XH:function(){return x},h8:function(){return u},kT:function(){return h},rc:function(){return p},xP:function(){return g}});var a=r(52322),n=r(60595),i=r(45265);let s=()=>(0,a.jsx)("svg",{className:"w-3.5 overflow-visible",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:(0,a.jsx)("path",{d:"M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"})}),l=({className:e})=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1024",height:"1024",viewBox:"0 0 1024 1024",fill:"currentColor",className:e,children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z",transform:"scale(64)"})}),o=({className:e})=>(0,a.jsx)("svg",{width:"3",height:"24",viewBox:"0 -9 3 24",className:(0,i.cn)("h-5 rotate-0 overflow-visible",e),children:(0,a.jsx)("path",{d:"M0 0L3 3L0 6",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),d=()=>(0,a.jsx)("svg",{className:"h-4",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,a.jsx)("path",{d:"M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"})}),c=()=>(0,a.jsx)("svg",{className:"h-2.5 text-gray-400 overflow-visible group-hover:text-gray-600 dark:text-gray-600 dark:group-hover:text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:(0,a.jsx)("path",{d:"M328 96c13.3 0 24 10.7 24 24V360c0 13.3-10.7 24-24 24s-24-10.7-24-24V177.9L73 409c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l231-231H88c-13.3 0-24-10.7-24-24s10.7-24 24-24H328z"})}),u=()=>(0,a.jsx)("svg",{className:"w-3.5 overflow-visible",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:(0,a.jsx)("path",{d:"M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"})}),h={Ready:()=>(0,a.jsxs)("svg",{width:"20",height:"20",className:"text-primary dark:text-primary-light",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{opacity:"0.7",d:"M11.5 2.5L12.1422 1.21554C12.2896 0.920722 12.7104 0.920722 12.8578 1.21554L13.5 2.5L14.7845 3.14223C15.0793 3.28964 15.0793 3.71036 14.7845 3.85777L13.5 4.5L12.8578 5.78446C12.7104 6.07928 12.2896 6.07928 12.1422 5.78446L11.5 4.5L10.2155 3.85777C9.92072 3.71036 9.92072 3.28964 10.2155 3.14223L11.5 2.5Z",fill:"currentColor"}),(0,a.jsx)("path",{opacity:"0.7",d:"M12.5 12.5L13.1286 10.9285C13.2627 10.5932 13.7373 10.5932 13.8714 10.9285L14.5 12.5L16.0715 13.1286C16.4068 13.2627 16.4068 13.7373 16.0715 13.8714L14.5 14.5L13.8714 16.0715C13.7373 16.4068 13.2627 16.4068 13.1286 16.0715L12.5 14.5L10.9285 13.8714C10.5932 13.7373 10.5932 13.2627 10.9285 13.1286L12.5 12.5Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M4 7L5.59751 3.80498C5.76334 3.47331 6.23666 3.47331 6.40249 3.80498L8 7L11.195 8.59751C11.5267 8.76334 11.5267 9.23666 11.195 9.40249L8 11L6.40249 14.195C6.23666 14.5267 5.76334 14.5267 5.59751 14.195L4 11L0.804984 9.40249C0.473313 9.23666 0.473312 8.76334 0.804984 8.59751L4 7Z",fill:"currentColor"})]}),Generating:()=>(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("svg",{className:"size-5 text-primary/25 dark:text-primary-light/25 animate-spin fill-primary dark:fill-primary-light",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,a.jsx)("svg",{className:"absolute top-1/2 -translate-y-1/2 left-1/2 -translate-x-1/2 text-primary dark:text-primary-light",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M3.5 3.5L4.63234 0.857869C4.77087 0.534626 5.22913 0.534626 5.36766 0.857869L6.5 3.5L9.14213 4.63234C9.46537 4.77087 9.46537 5.22913 9.14213 5.36766L6.5 6.5L5.36766 9.14213C5.22913 9.46537 4.77087 9.46537 4.63234 9.14213L3.5 6.5L0.857869 5.36766C0.534626 5.22913 0.534626 4.77087 0.857869 4.63234L3.5 3.5Z",fill:"currentColor"})})]}),Generated:()=>(0,a.jsx)("svg",{width:"20",height:"20",className:"text-primary dark:text-primary-light",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 17C13.4183 17 17 13.4183 17 9C17 4.58172 13.4183 1 9 1C4.58172 1 1 4.58172 1 9C1 13.4183 4.58172 17 9 17ZM13.0805 6.97495C13.3428 6.65437 13.2955 6.18185 12.9749 5.91955C12.6543 5.65726 12.1818 5.70451 11.9195 6.02509L7.94432 10.8837L6.03033 8.96969C5.73744 8.6768 5.26256 8.6768 4.96967 8.96969C4.67678 9.26259 4.67678 9.73746 4.96967 10.0304L7.46967 12.5304C7.6195 12.6802 7.82573 12.7596 8.03736 12.7491C8.24899 12.7385 8.44629 12.639 8.58047 12.475L13.0805 6.97495Z",fill:"currentColor"})}),Error:()=>(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 18 18",className:"text-red-600 dark:text-red-400",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 17C13.4183 17 17 13.4183 17 9C17 4.58172 13.4183 1 9 1C4.58172 1 1 4.58172 1 9C1 13.4183 4.58172 17 9 17ZM9 4.75C9.41421 4.75 9.75 5.08579 9.75 5.5V9C9.75 9.41421 9.41421 9.75 9 9.75C8.58579 9.75 8.25 9.41421 8.25 9V5.5C8.25 5.08579 8.58579 4.75 9 4.75ZM10 11.5C10 12.0523 9.55229 12.5 9 12.5C8.44771 12.5 8 12.0523 8 11.5C8 10.9477 8.44771 10.5 9 10.5C9.55229 10.5 10 10.9477 10 11.5Z",fill:"currentColor"})}),Retryable:()=>(0,a.jsx)("svg",{width:"20",height:"20",className:"text-orange-600 dark:text-orange-400",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.75681 3.09907L1.17651 13.0196C0.426579 14.3528 1.39001 16.0001 2.91966 16.0001H14.0803C15.6099 16.0001 16.5733 14.3528 15.8234 13.0196L10.2431 3.09907C9.47851 1.73976 7.52142 1.73976 6.75681 3.09907ZM8.49996 5.75013C8.91418 5.75013 9.24996 6.08592 9.24996 6.50013V10.0001C9.24996 10.4143 8.91418 10.7501 8.49996 10.7501C8.08575 10.7501 7.74996 10.4143 7.74996 10.0001V6.50013C7.74996 6.08592 8.08575 5.75013 8.49996 5.75013ZM9.49996 12.5001C9.49996 13.0524 9.05225 13.5001 8.49996 13.5001C7.94768 13.5001 7.49996 13.0524 7.49996 12.5001C7.49996 11.9478 7.94768 11.5001 8.49996 11.5001C9.05225 11.5001 9.49996 11.9478 9.49996 12.5001Z",fill:"currentColor"})}),Retry:()=>(0,a.jsx)(n.Z,{size:12,absoluteStrokeWidth:!0,strokeWidth:1.5})},p=({className:e})=>(0,a.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[(0,a.jsxs)("g",{clipPath:"url(#clip0_2736_5814)",children:[(0,a.jsx)("path",{d:"M5.11133 14.4444C5.78511 14.232 6.78066 14 8.00022 14C8.70688 14 9.72555 14.0782 10.8891 14.4444",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M8 11.7778V14.0001",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M12.6668 2.44434H3.33344C2.3516 2.44434 1.55566 3.24027 1.55566 4.22211V9.99989C1.55566 10.9817 2.3516 11.7777 3.33344 11.7777H12.6668C13.6486 11.7777 14.4446 10.9817 14.4446 9.99989V4.22211C14.4446 3.24027 13.6486 2.44434 12.6668 2.44434Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_2736_5814",children:(0,a.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]}),m=({className:e})=>(0,a.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e,children:[(0,a.jsxs)("g",{clipPath:"url(#clip0_2880_7340)",children:[(0,a.jsx)("path",{d:"M8 1.11133V2.00022",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M12.8711 3.12891L12.2427 3.75735",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M14.8889 8H14",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M12.8711 12.8711L12.2427 12.2427",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M8 14.8889V14",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M3.12891 12.8711L3.75735 12.2427",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M1.11133 8H2.00022",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M3.12891 3.12891L3.75735 3.75735",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M8.00043 11.7782C10.0868 11.7782 11.7782 10.0868 11.7782 8.00043C11.7782 5.91402 10.0868 4.22266 8.00043 4.22266C5.91402 4.22266 4.22266 5.91402 4.22266 8.00043C4.22266 10.0868 5.91402 11.7782 8.00043 11.7782Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_2880_7340",children:(0,a.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]}),g=()=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"gray",height:"12px",viewBox:"0 0 576 512",children:(0,a.jsx)("path",{d:"M0 256C0 167.6 71.6 96 160 96h72c13.3 0 24 10.7 24 24s-10.7 24-24 24H160C98.1 144 48 194.1 48 256s50.1 112 112 112h72c13.3 0 24 10.7 24 24s-10.7 24-24 24H160C71.6 416 0 344.4 0 256zm576 0c0 88.4-71.6 160-160 160H344c-13.3 0-24-10.7-24-24s10.7-24 24-24h72c61.9 0 112-50.1 112-112s-50.1-112-112-112H344c-13.3 0-24-10.7-24-24s10.7-24 24-24h72c88.4 0 160 71.6 160 160zM184 232H392c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z"})}),x=({className:e})=>(0,a.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[(0,a.jsxs)("g",{clipPath:"url(#clip0_15727_39602)",children:[(0,a.jsx)("path",{d:"M10.9798 6.62695L10.6889 12.1531C10.6454 12.9791 9.9625 13.627 9.13572 13.627H5.86517C5.03761 13.627 4.3555 12.9791 4.31195 12.1531L4.02106 6.62695",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M2.63892 4.68359H12.3611",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M5.75 4.68294V3.12739C5.75 2.69805 6.09844 2.34961 6.52778 2.34961H8.47222C8.90156 2.34961 9.25 2.69805 9.25 3.12739V4.68294",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_15727_39602",children:(0,a.jsx)("rect",{width:"14",height:"14",fill:"white",transform:"translate(0.5 0.988281)"})})})]})},92983:function(e,t,r){"use strict";r.d(t,{z:function(){return V},O:function(){return w}});var a=r(52322),n=r(2784),i=r(33),s=r(85046),l=r(45265),o=r(31519),d=r(43433),c=r(3190);let u=n.forwardRef(({className:e,message:t,isGenerating:r,isGeneratingError:n,isGeneratingErrorRetryable:i,onGeneratingErrorRetry:s,...o},d)=>(0,a.jsxs)("div",{ref:d,className:(0,l.cn)("break-all flex gap-2 px-4 py-1 items-center font-medium justify-between","text-primary dark:text-primary-light",n&&"text-red-600 dark:text-red-400",i&&"text-orange-600 dark:text-orange-400",e),...o,children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"size-5",children:n?i?(0,a.jsx)(c.kT.Retryable,{}):(0,a.jsx)(c.kT.Error,{}):r?(0,a.jsx)(c.kT.Generating,{}):(0,a.jsx)(c.kT.Generated,{})}),t]}),n&&i&&(0,a.jsxs)("button",{className:"group text-gray-500 dark:text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 text-sm cursor-pointer flex items-center gap-0.5",onClick:s,children:[(0,a.jsx)(c.kT.Retry,{}),(0,a.jsx)("p",{className:"px-1",children:"Retry"})]})]}));u.displayName="ChatItemMessage";var h=r(78320),p=r(34066),m=r(83030),g=r(9261),x=r(39097),v=r.n(x),f=r(14806),y=r(55785);let b="rounded-md px-1.5 py-1 bg-gray-100 dark:bg-white/5 hover:bg-gray-200 dark:hover:bg-white/10 cursor-pointer text-gray-500",j="rounded-md px-1.5 py-1 bg-primary dark:bg-bg-primary-light text-white dark:text-gray-950",k=n.forwardRef(({className:e,message:t,isGenerating:r,isGeneratingError:s,isRateLimited:o,formattedContent:d,citations:c,onCitationClick:u,onShareClick:x,...k},w)=>{let[L,V]=(0,n.useState)(!1),[C,N]=(0,n.useState)(!1),[M,H]=(0,n.useState)(!1),Z=(0,i.O)("ai_chat_citation_click"),E=(0,i.O)("ai_chat_feedback_positive_click"),S=(0,i.O)("ai_chat_feedback_negative_click"),O=(0,i.O)("chat_shared"),T=()=>{H(!0),setTimeout(()=>{H(!1)},2e3),x(),O({message:t}).catch(console.error)};return s?(0,a.jsx)("div",{ref:w,className:(0,l.cn)("px-4 py-2",e),...k,children:o?"You have reached your chat limit. Please try again later.":"Sorry, we could not generate a response to your question."}):r?(0,a.jsx)("div",{ref:w,className:(0,l.cn)("px-4 py-2",e),...k,children:(0,a.jsx)("div",{className:"h-4 w-2 bg-gray-400 dark:bg-white-25 animate-pulse"})}):(0,a.jsxs)("div",{ref:w,className:(0,l.cn)("flex flex-col gap-4 px-4 py-2",e),...k,children:[(0,a.jsx)(y.U,{className:"text-gray-700 dark:text-gray-300 prose prose-gray dark:prose-invert",children:d}),(0,a.jsxs)("div",{className:"flex items-end gap-2 justify-between",children:[(0,a.jsx)("div",{ref:w,className:"flex gap-2 flex-wrap",children:c.map((e,t)=>(0,a.jsx)(v(),{href:e.url,onClick:()=>{Z({index:t}).catch(console.error),u()},children:(0,a.jsx)("div",{className:"flex items-center gap-1 px-1.5 py-1 text-xs text-gray-600 dark:text-white/70 bg-gray-100 dark:bg-white/5 hover:bg-gray-200 dark:hover:bg-white/10 rounded-md",children:e.title})},e.url))}),(0,a.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,a.jsx)("div",{className:(0,l.cn)(L?j:b),onClick:()=>{L||(E({message:t}).catch(console.error),V(!0),N(!1))},children:(0,a.jsx)(h.Z,{size:12,absoluteStrokeWidth:!0,strokeWidth:1.5})}),(0,a.jsx)("div",{className:(0,l.cn)(C?j:b),onClick:()=>{C||(S({message:t}).catch(console.error),V(!1),N(!0))},children:(0,a.jsx)(p.Z,{size:12,absoluteStrokeWidth:!0,strokeWidth:1.5})}),(0,a.jsx)(f.u,{tip:"Copy shareable link",children:(0,a.jsx)("div",{className:(0,l.cn)(M?j:b),onClick:()=>{T()},children:M?(0,a.jsx)(m.Z,{size:12,absoluteStrokeWidth:!0,strokeWidth:1.5}):(0,a.jsx)(g.Z,{size:12,absoluteStrokeWidth:!0,strokeWidth:1.5})})})]})]})]})});k.displayName="ChatItemResponse";let w="share_chat",L=e=>{try{let t=JSON.parse(e??"[]");return[...new Map(t.map((e,t)=>{let r=e.metadata.title??"",a={citationNumber:t,title:e.metadata.title??"",url:(0,d.t)(e)};return[r,a]})).values()]}catch{return[]}},V=n.forwardRef(({message:e,sessionId:t,subdomain:r,version:d,userGroups:c,initialResponse:h,setSessionId:p,onGeneratingErrorRetry:m,onCitationClick:g,className:x,...v},f)=>{let[y,b]=(0,n.useState)(!0),[j,V]=(0,n.useState)(!1),[C,N]=(0,n.useState)(!1),[M,H]=(0,n.useState)(""),Z=(0,i.O)("chat_completed");(0,n.useEffect)(()=>{h&&(H(h),b(!1))},[h]),(0,n.useEffect)(()=>{if(!e)return;let a=async()=>{let a=t;if(!t){let e=await (0,s.HV)(r);e&&(p(e),a=e)}b(!0);try{let t=await (0,s.Vj)({subdomain:r,topicId:a,userMessage:e,version:d,userGroups:c,setResponse:H});t&&(429===t.status&&N(!0),V(!0))}catch(e){V(!0)}finally{b(!1)}};h||a()},[e,h]),(0,n.useEffect)(()=>{if(!y&&!j&&M.length){let[r,a]=M.split("||");Z({query:e,content:r??"",citations:L(a),sessionId:t})}},[y]);let E=(0,n.useCallback)(async()=>{if(t){let e=await (0,s.Cx)(r,t);if(e){let t=`${window.location.origin}${window.location.pathname}?${w}=${e}`;await (0,o.v)(t)}}},[t,r]);return(0,a.jsxs)("div",{ref:f,className:(0,l.cn)("py-3 flex flex-col border border-gray-200 dark:border-white/10 rounded-2xl",x),...v,children:[(0,a.jsx)(u,{message:e,isGenerating:!M.length,isGeneratingError:j,isGeneratingErrorRetryable:j,onGeneratingErrorRetry:m}),(0,a.jsx)(k,{message:e,isGenerating:!M.length,isGeneratingError:j,isRateLimited:C,formattedContent:M.split("||")[0]??"",citations:y?[]:L(M.split("||")[1]),onCitationClick:g,onShareClick:E})]})});V.displayName="TrieveChatItem"},85046:function(e,t,r){"use strict";r.d(t,{Cx:function(){return c},HV:function(){return l},Vj:function(){return d},xt:function(){return u}});var a=r(17943),n=r(65289);let i=a.TQ?"-dev":"",s=(e,t,r="")=>n.F9.AUTH_ENABLED?`/_mintlify/api/chat/${e}`:`https://leaves${i}.mintlify.com/api/chat/${t}/${e}${r}`,l=async e=>{let t=await fetch(s("topic",e),{method:"POST",headers:{"Content-Type":"application/json"}});if(!t.ok)return;let r=await t.json();return r&&"object"==typeof r&&"topicId"in r&&"string"==typeof r.topicId?r.topicId:void 0},o=({userGroups:e,version:t})=>{let r={};return e&&(r.groups=e),t&&(r.version=t),Object.keys(r).length>0?{filter:r}:{}},d=async({subdomain:e,topicId:t,userMessage:r,userGroups:a,version:n,setResponse:i})=>{let l=o({userGroups:a,version:n}),d=await fetch(s("message",e),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:r,topicId:t,...l})});if(!d.ok||!d.body)return{status:d.status};let c=d.body.getReader();for(;;){let{done:e,value:t}=await c.read();if(e){i(e=>e+new TextDecoder().decode(t));return}let r=new TextDecoder().decode(t);i(e=>e+r)}},c=async(e,t)=>{try{let r=await fetch(s("topic",e,`/${t}/clone`),{method:"POST",headers:{"Content-Type":"application/json"}});if(!r.ok)return;let{newTopicId:a}=await r.json();return a}catch{return}},u=async(e,t)=>{try{let r=await fetch(s("topic",e,`/${t}/messages`),{method:"GET",headers:{"Content-Type":"application/json"}});if(!r.ok)return;let{messages:a}=await r.json();return a}catch{return}}},45265:function(e,t,r){"use strict";r.d(t,{cn:function(){return i}});var a=r(40489),n=r(20324);function i(...e){return(0,n.m6)((0,a.W)(e))}},31519:function(e,t,r){"use strict";async function a(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"}}r.d(t,{v:function(){return a}})},80657:function(e,t,r){"use strict";function a(e,t){if(e){if("family"in e)return e;if(t in e){let r=e[t];return"string"==typeof r?{family:r}:r}}}r.d(t,{Z:function(){return a}})},91364:function(e,t,r){"use strict";r.d(t,{K:function(){return u},s:function(){return h}});let a={yes:"是",no:"否",wasThisPageHelpful:"此页面对您有帮助吗?",onThisPage:"在此页面",canYouTellMeAbout:"您能告诉我关于",suggestEdits:"建议编辑",raiseIssue:"提出问题",askAFollowUpQuestion:"问一个后续问题...",searchOrAsk:"搜索或提问...",search:"搜索...",poweredByMintlify:"由Mintlify提供支持"},n={yes:"Ja",no:"Nein",wasThisPageHelpful:"War diese Seite hilfreich?",onThisPage:"Auf dieser Seite",canYouTellMeAbout:"Kannst du mir erz\xe4hlen \xfcber",suggestEdits:"\xc4nderungen vorschlagen",raiseIssue:"Problem melden",askAFollowUpQuestion:"Folgefrage stellen...",searchOrAsk:"Suchen oder fragen...",search:"Suchen...",poweredByMintlify:"Bereitgestellt von Mintlify"},i={yes:"Yes",no:"No",wasThisPageHelpful:"Was this page helpful?",onThisPage:"On this page",canYouTellMeAbout:"Can you tell me about",suggestEdits:"Suggest edits",raiseIssue:"Raise issue",askAFollowUpQuestion:"Ask a follow up question...",searchOrAsk:"Search or ask...",search:"Search...",poweredByMintlify:"Powered by Mintlify"},s={yes:"S\xed",no:"No",wasThisPageHelpful:"\xbfEsta p\xe1gina le ayud\xf3?",onThisPage:"En esta p\xe1gina",canYouTellMeAbout:"\xbfMe puedes hablar sobre",suggestEdits:"Sugerir cambios",raiseIssue:"Reportar problema",askAFollowUpQuestion:"Haga un seguimiento...",searchOrAsk:"Busca o pregunta...",search:"Busca...",poweredByMintlify:"Impulsado por Mintlify"},l={yes:"Oui",no:"Non",wasThisPageHelpful:"Cette page vous a-t-elle \xe9t\xe9 utile ?",onThisPage:"Sur cette page",canYouTellMeAbout:"Pouvez-vous me parler de",suggestEdits:"Sugg\xe9rer des modifications",raiseIssue:"Signaler un probl\xe8me",askAFollowUpQuestion:"Poser une question compl\xe9mentaire...",searchOrAsk:"Rechercher ou demander...",search:"Rechercher...",poweredByMintlify:"Propuls\xe9 par Mintlify"},o={yes:"はい",no:"いいえ",wasThisPageHelpful:"このページは役に立ちましたか?",onThisPage:"このページの内容",canYouTellMeAbout:"について教えてください",suggestEdits:"編集を提案",raiseIssue:"問題を報告",askAFollowUpQuestion:"追加の質問をする...",searchOrAsk:"検索または質問...",search:"検索...",poweredByMintlify:"Mintlifyによるサポート"},d={yes:"Sim",no:"N\xe3o",wasThisPageHelpful:"Esta p\xe1gina foi \xfatil?",onThisPage:"Nesta p\xe1gina",canYouTellMeAbout:"Voc\xea pode me falar sobre",suggestEdits:"Sugerir edi\xe7\xf5es",raiseIssue:"Reportar problema",askAFollowUpQuestion:"Fa\xe7a uma pergunta complementar...",searchOrAsk:"Pesquisar ou perguntar...",search:"Pesquisar...",poweredByMintlify:"Suportado pelo Mintlify"},c={yes:"Sim",no:"N\xe3o",wasThisPageHelpful:"Esta p\xe1gina foi \xfatil?",onThisPage:"Na p\xe1gina",canYouTellMeAbout:"Voc\xea pode me falar sobre",suggestEdits:"Sugerir edi\xe7\xf5es",raiseIssue:"Reportar problema",askAFollowUpQuestion:"Fa\xe7a uma pergunta complementar...",searchOrAsk:"Pesquise ou pergunte...",search:"Pesquisar...",poweredByMintlify:"Suportado pelo Mintlify"},u=e=>{switch(e){case"en":default:return i;case"cn":return a;case"es":return s;case"jp":return o;case"pt":return d;case"fr":return l;case"pt-BR":return c;case"de":return n}},h=e=>{switch(e){case"en":return"en-US";case"es":return"es-ES";case"cn":return"zh-CN";case"jp":return"ja-JP";case"pt":return"pt-PT";case"fr":return"fr-FR";case"pt-BR":return"pt-BR";case"de":return"de-DE"}}},43433:function(e,t,r){"use strict";r.d(t,{k:function(){return i},t:function(){return o}});var a=r(55463);let n=e=>(0,a.Z)(e,{decamelize:!1}),i=async({datasetId:e,query:t,groups:r,apiKey:a})=>{let n=2*t.trim().split(/\s+/).length,i=await fetch("https://api.mintlifytrieve.com/api/chunk/autocomplete",{method:"POST",headers:{"Content-Type":"application/json","TR-Dataset":e,Authorization:a},body:JSON.stringify({query:t,search_type:"fulltext",extend_results:!0,highlight_delimiters:["?",",",".","!","\n"],score_threshold:.2,filters:{must_not:[{field:"tag_set",match:["code"]}],...r?{should:[{field:"tag_set",match_any:[...r.map(e=>`USERAUTH:${e}`)]}]}:{}},highlight_window:10,highlight_max_num:1,highlight_max_length:n,highlight_strategy:"exactmatch",page_size:20})});return s(await i.json())},s=e=>"object"==typeof e&&("score_chunks"in e&&Array.isArray(e.score_chunks)||"chunks"in e&&Array.isArray(e.chunks))?l((e.score_chunks||e.chunks||[]).flatMap(e=>({metadata:"metadata"in e?e.metadata[0]:e.chunk,highlights:e.highlights,score:e.score})).map(({metadata:e,highlights:t,score:r})=>{if(!(null==e?void 0:e.chunk_html)||!e.link)return;let a=e.chunk_html.indexOf("\n"),n=e.chunk_html.substring(0,a),i=e.chunk_html.substring(a+1),s=t[0];return(null==s?void 0:s.startsWith(n))&&(s=s.replace(n,"")),{id:e.id,header:n,content:s?s.substring(0,100):i.substring(0,100),page:e.link,link:o(e),metadata:e.metadata,score:r}})):[],l=e=>{let t=new Map;for(let r of e)r&&(t.has(r.page)||t.set(r.page,r));return[...t.values()]},o=e=>{var t;if(!("metadata"in e&&e.metadata&&"title"in e.metadata&&"link"in e&&"string"==typeof e.link))return"";let r=e.metadata.title,a=(t=e.link).startsWith("/")?t:"/"+t;return r&&"string"==typeof r?`${a}#${n(r)}`:a}},50633:function(){},69971:function(e,t,r){"use strict";r.d(t,{t:function(){return a}});let a=e=>!!(e.hasOwnProperty("group")&&e.hasOwnProperty("pages"))},90557:function(e,t,r){"use strict";r.d(t,{l:function(){return a}});let a=e=>e.hasOwnProperty("href")}}]);