(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,382229,e=>{"use strict";e.s(["AssistantLayoutScript",()=>a]);var t=e.i(843476),n=e.i(859465),i=e.i(271645),r=e.i(915476);function a({hasChatPermissions:e}){let a=(0,i.useContext)(n.AssistantUiContext);return(0,t.jsx)("script",{dangerouslySetInnerHTML:{__html:(0,r.getAssistantScript)(e,"assistant-ui-v2"===a)}})}},836770,e=>{"use strict";e.s(["ManagedConsentContext",()=>n,"useManagedConsent",()=>i]);var t=e.i(271645);let n=(0,t.createContext)({managed:!1}),i=()=>(0,t.useContext)(n)},540345,e=>{"use strict";e.s(["ConsentProvider",()=>c],540345);var t=e.i(843476),n=e.i(91557),i=e.i(770703),r=e.i(271645),a=e.i(836770);function s({transcend:e,children:n}){let i=e.analyticsPurpose??"Analytics",[s,o]=(0,r.useState)(),c=(0,r.useRef)(void 0),l=(0,r.useCallback)(e=>{let t=!0===c.current;c.current=e,o(e),t&&!e&&window.location.reload()},[]);(0,r.useEffect)(()=>{let e,t=!0,n=()=>{e&&l(e.isConsented(new Set([i])))};return window.airgap?.ready(i=>{t&&(e=i,i.addEventListener("consent-resolution",n),i.addEventListener("consent-change",n),n())}),()=>{t=!1,e?.removeEventListener("consent-resolution",n),e?.removeEventListener("consent-change",n)}},[i,l]);let u=(0,r.useMemo)(()=>({managed:!0,measurementConsent:s}),[s]);return(0,t.jsx)(a.ManagedConsentContext.Provider,{value:u,children:n})}let o=(0,i.default)(()=>e.A(353183).then(e=>e.ConsentManager),{loadableGenerated:{modules:[180689]},ssr:!1}),c=({privacy:e,children:i})=>{let{docsConfig:c}=(0,r.useContext)(n.DocsConfigContext),l=e?.consentBanner,u=c?.integrations?.transcend,d=c?.integrations?.onetrust,h=!u&&!d&&!!l?.enabled,p=l?.categories,[g,f]=(0,r.useState)(!1),m=(0,r.useMemo)(()=>({managed:h,measurementConsent:g}),[h,g]);return u?(0,t.jsx)(s,{transcend:u,children:i}):!h||d?(0,t.jsx)(t.Fragment,{children:i}):(0,t.jsxs)(a.ManagedConsentContext.Provider,{value:m,children:[(0,t.jsx)(o,{categories:p,onMeasurementConsentChange:f}),i]})}},92097,e=>{"use strict";e.s(["HotReloader",()=>h],92097);var t=e.i(843476),n=e.i(271645);let i=["top-left","top-right","bottom-left","bottom-right"],r=(e,t=.999)=>e/1e3*t/(1-t);var a=e.i(296548);let s=()=>(0,t.jsxs)("span",{"aria-hidden":!0,className:"inline-flex",children:[(0,t.jsx)("span",{className:"[animation:widget-ellipsis-fade_1.2s_infinite]",children:"."}),(0,t.jsx)("span",{className:"[animation:widget-ellipsis-fade_1.2s_infinite] [animation-delay:0.2s]",children:"."}),(0,t.jsx)("span",{className:"[animation:widget-ellipsis-fade_1.2s_infinite] [animation-delay:0.4s]",children:"."})]}),o=()=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",className:"shrink-0 opacity-50 transition-opacity duration-(--duration-short) group-hover/cross:opacity-90","aria-hidden":!0,children:[(0,t.jsx)("line",{x1:"9.333",y1:"2.667",x2:"2.667",y2:"9.333",stroke:"#FFFFFF",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("line",{x1:"2.667",y1:"2.667",x2:"9.333",y2:"9.333",stroke:"#FFFFFF",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),c=()=>(0,t.jsxs)("svg",{width:"20",height:"20",viewBox:"2.28 2.28 7.6 7.6",xmlns:"http://www.w3.org/2000/svg",className:"shrink-0","aria-hidden":!0,children:[(0,t.jsx)("path",{d:"M9.309 5.276V3.202C9.309 2.98 9.129 2.802 8.909 2.802H6.838C6.512 2.802 6.19 2.867 5.891 2.989 5.591 3.116 5.317 3.296 5.088 3.528L5.072 3.544C4.77 3.85 4.554 4.23 4.444 4.649 4.641 4.598 4.843 4.572 5.047 4.569 5.588 4.562 6.12 4.737 6.551 5.062 6.941 5.352 7.237 5.751 7.398 6.213 7.566 6.68 7.586 7.189 7.46 7.67 7.876 7.56 8.259 7.343 8.564 7.041L8.581 7.026C8.81 6.796 8.993 6.522 9.119 6.222 9.244 5.923 9.306 5.6 9.306 5.276H9.309Z",fill:"#FFFFFF99"}),(0,t.jsx)("path",{d:"M4.382 5.24C4.386 4.604 4.639 3.994 5.086 3.538L3.361 5.262C3.354 5.269 3.349 5.272 3.342 5.278 2.922 5.696 2.668 6.256 2.627 6.846 2.588 7.398 2.733 7.944 3.041 8.4 3.07 8.443 3.149 8.458 3.194 8.416L4.25 7.362C4.581 7.032 4.684 6.54 4.527 6.101 4.427 5.827 4.38 5.536 4.382 5.24Z",fill:"#FFFFFF"}),(0,t.jsx)("path",{d:"M8.571 7.024C8.24 7.349 7.826 7.574 7.378 7.673 6.924 7.773 6.456 7.744 6.02 7.59 6.02 7.59 6.017 7.59 6.013 7.59 5.573 7.432 5.082 7.536 4.752 7.863L3.696 8.916C3.651 8.961 3.658 9.034 3.712 9.07 4.167 9.376 4.714 9.523 5.264 9.484 5.856 9.443 6.411 9.189 6.831 8.768L6.848 8.752 8.571 7.028V7.024Z",fill:"#FFFFFF"})]}),l=({status:e})=>{let{ref:l,onPointerDown:u,corner:d,isPositioned:h}=(({storageKey:e,padding:t=20,defaultCorner:a="bottom-left"})=>{let s=(0,n.useRef)(null),[o,c]=(0,n.useState)(a),[l,u]=(0,n.useState)(!1),d=(0,n.useRef)({state:"idle"}),h=(0,n.useRef)(null),p=(0,n.useRef)(null),g=(0,n.useRef)(null),f=(0,n.useRef)({x:0,y:0}),m=(0,n.useRef)({x:0,y:0}),v=(0,n.useRef)(0),y=(0,n.useRef)([]),w=(0,n.useRef)(a);(0,n.useEffect)(()=>{try{let t=localStorage.getItem(e),n=i.find(e=>e===t);n&&(w.current=n,c(n))}catch{}u(!0)},[e]),(0,n.useEffect)(()=>()=>{h.current?.(),h.current=null},[]);let x=e=>{s.current&&(m.current=e,s.current.style.translate=`${e.x}px ${e.y}px`)},I=()=>{p.current&&(s.current?.removeEventListener("click",p.current),p.current=null)},E=()=>{g.current&&(s.current?.removeEventListener("transitionend",g.current),g.current=null)},b=e=>{"drag-end"===d.current.state&&(e.preventDefault(),e.stopPropagation(),d.current={state:"idle"}),I()},S=e=>{if("press"===d.current.state){let t=e.clientX-f.current.x,n=e.clientY-f.current.y;Math.sqrt(t*t+n*n)>=5&&(d.current={state:"drag",pointerId:e.pointerId},s.current?.setPointerCapture(e.pointerId),s.current?.classList.add("widget-grabbing"),document.body.style.userSelect="none",document.body.style.webkitUserSelect="none")}if("drag"!==d.current.state)return;let t={x:e.clientX,y:e.clientY},n=t.x-f.current.x,i=t.y-f.current.y;f.current=t,x({x:m.current.x+n,y:m.current.y+i});let r=Date.now();r-v.current>=10&&(y.current=[...y.current.slice(-5),{position:t,timestamp:r}]),v.current=r},_=()=>{let n=(e=>{if(e.length<2)return{x:0,y:0};let t=e[0],n=e[e.length-1];if(!t||!n)return{x:0,y:0};let i=n.timestamp-t.timestamp;return 0===i?{x:0,y:0}:{x:(n.position.x-t.position.x)/i*1e3,y:(n.position.y-t.position.y)/i*1e3}})(y.current),a="drag"===d.current.state;if("drag"===d.current.state&&s.current?.releasePointerCapture(d.current.pointerId),d.current="drag"===d.current.state?{state:"drag-end"}:{state:"idle"},h.current?.(),h.current=null,y.current=[],s.current?.classList.remove("widget-grabbing"),document.body.style.removeProperty("user-select"),document.body.style.removeProperty("-webkit-user-select"),!a)return void I();let{x:o,y:l}=m.current;if(0===o&&0===l)return void s.current?.style.removeProperty("translate");(t=>{let n=s.current;if(!n)return;E();let i=i=>{"translate"===i.propertyName&&(n.style.transition="",E(),(t=>{setTimeout(()=>{s.current?.style.removeProperty("translate"),m.current={x:0,y:0},w.current=t,c(t);try{localStorage.setItem(e,t)}catch{}})})(t.corner))};n.style.transition="translate 491.22ms var(--timing-bounce)",g.current=i,n.addEventListener("transitionend",i),x(t.translation)})((({x:e,y:n})=>{let r=(()=>{let e=2*t,n=s.current?.offsetWidth??0,i=s.current?.offsetHeight??0,r=window.innerWidth-document.documentElement.clientWidth,a=window.innerHeight-document.documentElement.clientHeight,o=t=>{let s=t.includes("right"),o=t.includes("bottom");return{x:s?window.innerWidth-r-e-n:0,y:o?window.innerHeight-a-e-i:0}},c=o(w.current),l=e=>({x:e.x-c.x,y:e.y-c.y});return{"top-left":l(o("top-left")),"top-right":l(o("top-right")),"bottom-left":l(o("bottom-left")),"bottom-right":l(o("bottom-right"))}})(),a=w.current,o=1/0;for(let t of i){let i=r[t],s=Math.sqrt((e-i.x)**2+(n-i.y)**2);s{0===e.button&&(E(),s.current&&(s.current.style.transition=""),f.current={x:e.clientX,y:e.clientY},d.current={state:"press"},window.addEventListener("pointermove",S),window.addEventListener("pointerup",_),window.addEventListener("pointercancel",_),h.current?.(),h.current=()=>{window.removeEventListener("pointermove",S),window.removeEventListener("pointerup",_),window.removeEventListener("pointercancel",_)},I(),p.current=b,s.current?.addEventListener("click",b))},corner:o,isPositioned:l}})({storageKey:"mintlify-hot-reloader-corner",padding:20,defaultCorner:"bottom-left"}),p=d.startsWith("top")?"top":"bottom",g=d.endsWith("right")?"right":"left",f=(0,n.useRef)(null),m=(0,n.useRef)(null),{width:v,height:y}=(e=>{let[t,i]=(0,n.useState)({width:0,height:0});return(0,n.useEffect)(()=>{let t=e.current;if(!t)return;let n=new ResizeObserver(e=>{let t=e[0];if(!t)return;let n=t.borderBoxSize[0];if(n)i({width:n.inlineSize,height:n.blockSize});else{let e=t.target.getBoundingClientRect();i({width:e.width,height:e.height})}});return n.observe(t),()=>n.disconnect()},[e]),t})(f),[w,x]=(0,n.useState)(!1),[I,E]=(0,n.useState)(e);I!==e&&(E(e),x(!1));let b="error"===e,S="default"!==e&&!w;return(0,t.jsxs)("div",{ref:l,onPointerDown:u,role:"status","aria-live":"polite",className:(0,a.cn)("fixed z-999 flex h-11 w-fit touch-none items-center cursor-grab","[--timing:cubic-bezier(0.23,0.88,0.26,0.92)] [--duration-short:150ms] [--duration-long:250ms]",h?"opacity-100":"pointer-events-none opacity-0"),style:{[p]:20,[g]:20,"--timing-bounce":"linear(0 0%, 0.005871 1%, 0.022058 2%, 0.046612 3%, 0.077823 4%, 0.114199 5%, 0.154441 6%, 0.197431 7%, 0.242208 8%, 0.287959 9%, 0.333995 10%, 0.379743 11%, 0.424732 12%, 0.46858 13%, 0.510982 14%, 0.551702 15%, 0.590564 16%, 0.627445 17%, 0.662261 18%, 0.694971 19%, 0.725561 20%, 0.754047 21%, 0.780462 22%, 0.804861 23%, 0.82731 24%, 0.847888 25%, 0.866679 26%, 0.883775 27%, 0.899272 28%, 0.913267 29%, 0.925856 30%, 0.937137 31%, 0.947205 32%, 0.956153 33%, 0.96407 34%, 0.971043 35%, 0.977153 36%, 0.982479 37%, 0.987094 38%, 0.991066 39%, 0.994462 40%, 0.997339 41%, 0.999755 42%, 1.001761 43%, 1.003404 44%, 1.004727 45%, 1.00577 46%, 1.006569 47%, 1.007157 48%, 1.007563 49%, 1.007813 50%, 1.007931 51%, 1.007939 52%, 1.007855 53%, 1.007697 54%, 1.007477 55%, 1.00721 56%, 1.006907 57%, 1.006576 58%, 1.006228 59%, 1.005868 60%, 1.005503 61%, 1.005137 62%, 1.004776 63%, 1.004422 64%, 1.004078 65%, 1.003746 66%, 1.003429 67%, 1.003127 68%, 1.00284 69%, 1.002571 70%, 1.002318 71%, 1.002082 72%, 1.001863 73%, 1.00166 74%, 1.001473 75%, 1.001301 76%, 1.001143 77%, 1.001 78%, 1.000869 79%, 1.000752 80%, 1.000645 81%, 1.00055 82%, 1.000464 83%, 1.000388 84%, 1.000321 85%, 1.000261 86%, 1.000209 87%, 1.000163 88%, 1.000123 89%, 1.000088 90%)"},children:[(0,t.jsx)("style",{children:` @keyframes widget-ellipsis-fade { 0%, 60%, 100% { opacity: 0.2; } 30% { opacity: 1; } } @keyframes widget-slot-machine-enter { 0% { transform: translateY(0.8em); opacity: 0; } 50% { opacity: 0.8; } 100% { transform: translateY(0); opacity: 1; } } @media (prefers-reduced-motion) { [data-widget-label], [data-widget-ellipsis] span { animation-duration: 0ms !important; } } .widget-grabbing { cursor: grabbing; } .widget-grabbing > * { pointer-events: none; } `}),(0,t.jsx)("div",{ref:m,tabIndex:-1,className:(0,a.cn)("[font-synthesis:none] flex items-center overflow-clip rounded-[500px] [box-shadow:0_0_0_1px_#FFFFFF33,#0000000D_0px_2px_6px,#0000001A_0px_8px_24px] outline-none antialiased","scale-100 will-change-[scale,width,background] [transition:width_var(--duration-long)_var(--timing),height_var(--duration-long)_var(--timing),background_var(--duration-short)_ease,scale_var(--duration-short)_var(--timing)] active:scale-95",b?"bg-[oklch(47%_0.157_37.3)]":"bg-[oklch(14.7%_0.004_49.3)]"),style:{width:0===v?"auto":v,height:0===y?"auto":y},children:(0,t.jsxs)("div",{ref:f,className:"flex shrink-0 items-center p-1",children:[(0,t.jsx)("div",{className:"flex shrink-0 items-center justify-center gap-1.75 overflow-clip rounded-[500px] bg-[#FFFFFF33] p-1.5 [outline:2px_solid_oklch(100%_0_0/10%)]",children:(0,t.jsx)(c,{})}),S&&(0,t.jsxs)("div",{className:(0,a.cn)("flex items-center gap-2 py-1.5",b?"pr-1.5 pl-2.5":"px-2.5"),children:[(0,t.jsxs)("div",{"data-widget-label":!0,className:(0,a.cn)("text-sm/5 font-medium whitespace-nowrap text-[#FFFFFFCC] select-none","[animation:widget-slot-machine-enter_150ms_cubic-bezier(0,0,0.2,1)_forwards]"),children:[b?"Compile error":"Compiling",!b&&(0,t.jsx)("span",{"data-widget-ellipsis":!0,children:(0,t.jsx)(s,{})})]},e),b&&(0,t.jsx)("button",{"aria-label":"Collapse error badge",onClick:()=>{x(!0),m.current?.focus()},className:"group/cross relative flex cursor-pointer items-center justify-center rounded-[500px] p-1 transition-colors duration-(--duration-short) after:absolute after:-inset-2 after:rounded-[500px] hover:bg-[#FFFFFF33] focus-visible:ring-2 focus-visible:ring-white focus-visible:outline-hidden",children:(0,t.jsx)(o,{})})]})]})})]})};var u=e.i(618566);let d=e=>{let t=e.split(/[?#]/)[0]??e;try{t=decodeURIComponent(t)}catch{}return(t=t.replace(/\/+$/,"")).startsWith("/")||(t=`/${t}`),t.endsWith("/index")&&(t=t.slice(0,-6)),""===t?"/":t.toLowerCase()},h=()=>{let[i,r]=(0,n.useState)(!1),[a,s]=(0,n.useState)(new Set),o=(0,n.useRef)(void 0),c=(0,n.useRef)(void 0),h=(0,n.useRef)(void 0),p=(0,u.usePathname)(),g=(0,n.useCallback)(()=>{c.current&&(clearTimeout(c.current),c.current=void 0),h.current&&(clearTimeout(h.current),h.current=void 0)},[]),f=(0,n.useCallback)(()=>{c.current&&(clearTimeout(c.current),c.current=void 0),r(!0),h.current||(h.current=setTimeout(()=>{o.current=void 0,r(!1),h.current=void 0},2e4))},[]),m=(0,n.useCallback)(e=>{if("string"!=typeof e?.path)return;let t=d(e.path);if(!1===e.active)return void(!0===e.error?(s(e=>{if(e.has(t))return e;let n=new Set(e);return n.add(t),n}),(t===o.current||t===d(window.location.pathname))&&(o.current=void 0,g(),r(!1))):s(e=>{if(!e.has(t))return e;let n=new Set(e);return n.delete(t),n}));void 0!==o.current&&!0===e.active&&t===o.current&&f()},[f,g]),v=(0,n.useRef)(0);(0,n.useEffect)(()=>{let e=()=>{v.current=Date.now()+1e3};document.addEventListener("pointerdown",e,!0),document.addEventListener("keydown",e,!0);let t=window.fetch;return window.fetch=(e,n)=>{try{let t=new Headers(n?.headers??(e instanceof Request?e.headers:void 0)),i=t.has("rsc"),r=t.has("next-router-prefetch")||"prefetch"===t.get("purpose");if(i&&!r&&Date.now(){o.current!==e&&(o.current=e,g(),c.current=setTimeout(f,250))})(e))}}}catch{}return t.call(window,e,n)},()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("keydown",e,!0),window.fetch=t}},[g,f]),(0,n.useEffect)(()=>{o.current=void 0,v.current=0,g(),r(!1)},[p,g]),(0,n.useEffect)(()=>g,[g]),((t,i)=>{let r=(0,u.useRouter)();(0,n.useEffect)(()=>{let n,a=!1;return(async()=>{let{default:s}=await e.A(622025);a||(console.warn("Connected to Socket.io"),(n=s()).on("connect",()=>{i()}),n.on("reload",()=>{console.warn("Received change, reloading page now"),r.refresh()}),n.on("compiling",e=>{t(e)}))})(),()=>{a=!0,n?.disconnect()}},[r,t,i])})(m,(0,n.useCallback)(()=>{s(e=>0===e.size?e:new Set)},[]));let y=a.has(d(p??"/"));return(0,t.jsx)(l,{status:y?"error":i?"compiling":"default"})}},973254,e=>{"use strict";e.s(["LivePreviewFavicon",()=>i]);var t=e.i(590280),n=e.i(271645);function i(){let{isLivePreview:e,getDocsConfigOverrides:i,docsConfigVersion:r}=(0,n.useContext)(t.LivePreviewContext),a=e?i():void 0,s="string"==typeof a?.favicon?a.favicon:void 0;return(0,n.useEffect)(()=>{if(!s)return;let e=document.querySelectorAll('link[rel="icon"], link[rel="shortcut icon"]'),t=[];for(let n of e)n instanceof HTMLLinkElement&&(t.push({link:n,href:n.href}),n.href=s);return()=>{for(let{link:e,href:n}of t)e.href=n}},[s,r]),null}},864506,e=>{"use strict";e.s(["NavbarTransitionScript",()=>a]);var t=e.i(843476),n=e.i(590280),i=e.i(271645);let r=(function(e){let t,n=(t="navbar-transition","maple"===e&&(t+="-maple"),t);function i(){let e=!1;e=window.scrollY>50;let t=document.getElementById(n);t&&t.hasAttribute("data-is-opaque")&&t.setAttribute("data-is-opaque",`${!!e}`)}let r=function(){let e=document.createElement("style"),t=`#${n}`;return e.appendChild(document.createTextNode(`${t},${t} *,${t} *::before,${t} *::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`)),document.head.appendChild(e),function(){window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}}();function a(){window.removeEventListener("scroll",i),document.removeEventListener("DOMContentLoaded",i),i(),r()}window.addEventListener("scroll",i,{passive:!0}),document.addEventListener("DOMContentLoaded",i),("requestAnimationFrame"in globalThis?requestAnimationFrame:setTimeout)(i),"complete"===document.readyState?a():window.addEventListener("load",a,{once:!0})}).toString();function a({theme:e}){let{isLivePreview:a,getDocsConfigOverrides:s}=(0,i.useContext)(n.LivePreviewContext),o=s(),c=o?.theme,l=a&&c?c:e,u=(0,i.useMemo)(()=>`(${r})("${l}")`,[l]);return(0,t.jsx)("script",{id:"_mintlify-navbar-transition-script",dangerouslySetInnerHTML:{__html:u},suppressHydrationWarning:!0})}},529058,e=>{"use strict";let t;e.s(["LocalStorageAndAnalyticsProviders",()=>ea],529058);var n=e.i(843476),i=e.i(447939),r=e.i(3303);function a({adobe:e}){return e?.launchUrl?(0,n.jsx)(r.default,{strategy:"afterInteractive",src:e.launchUrl,id:"adobe-launch",async:!0}):null}function s(e){return JSON.stringify(e).replace(//g,"\\u003e").replace(/\//g,"\\u002f")}function o(e){return encodeURIComponent(e)}function c({clarity:e}){if(!e?.projectId)return null;let t=s(e.projectId);return(0,n.jsx)(r.default,{strategy:"afterInteractive",id:"clarity-init",type:"text/javascript",dangerouslySetInnerHTML:{__html:` (function(c,l,a,r,i){ c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)}; var t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i; var y=l.getElementsByTagName(r)[0];if(y&&y.parentNode){y.parentNode.insertBefore(t,y);}else{l.head.appendChild(t);} })(window, document, "clarity", "script", ${t}); `}})}function l({clearbit:e}){return e?.publicApiKey?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(r.default,{strategy:"afterInteractive",src:`https://tag.clearbitscripts.com/v1/${e.publicApiKey}/tags.js`})}):null}function u({customScripts:e}){let t=e?.filter(e=>"beforeInteractive"!==e.strategy);return t?.length?(0,n.jsx)(n.Fragment,{children:t.map((e,t)=>(0,n.jsx)(r.default,{src:e.src,strategy:e.strategy??"afterInteractive"},`${e.src}-${t}`))}):null}function d({ga4:e}){if(!e?.measurementId)return null;let t=s(e.measurementId),i=o(e.measurementId);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.default,{strategy:"afterInteractive",src:`https://www.googletagmanager.com/gtag/js?id=${i}`}),(0,n.jsx)(r.default,{strategy:"afterInteractive",id:"ga4",dangerouslySetInnerHTML:{__html:` window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', ${t}, { page_path: window.location.pathname, }); `}})]})}function h({gtm:e}){if(!e?.tagId)return null;let t=s(e.tagId),i=o(e.tagId);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.default,{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',${t});`}}),(0,n.jsx)("noscript",{dangerouslySetInnerHTML:{__html:``}})]})}function p({heap:e}){if(!e?.appId)return null;let t=s(e.appId);return(0,n.jsx)(r.default,{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-1){n.push({__t:"bpc",c:location.href,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{let{docsConfig:t}=(0,y.useContext)(v.DocsConfigContext);if(!m.IS_PROD)return null;let i=t?.integrations?.customScripts;return(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a,{adobe:t?.integrations?.adobe}),(0,n.jsx)(c,{clarity:t?.integrations?.clarity}),(0,n.jsx)(l,{clearbit:t?.integrations?.clearbit}),(0,n.jsx)(d,{ga4:t?.integrations?.ga4}),(0,n.jsx)(h,{gtm:t?.integrations?.gtm}),(0,n.jsx)(p,{heap:t?.integrations?.heap}),(0,n.jsx)(g,{koala:t?.integrations?.koala}),(0,n.jsx)(f,{plausible:t?.integrations?.plausible}),(0,n.jsx)(w,{segment:t?.integrations?.segment})]}),(0,n.jsx)(u,{customScripts:i})]})};function I({onetrust:e}){return m.IS_PROD&&e?.domainScript?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.default,{id:"onetrust",src:e.scriptSource||"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js","data-domain-script":e.domainScript,strategy:"afterInteractive",charSet:"UTF-8"}),(0,n.jsx)(r.default,{id:"onetrust-wrapper",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:` window.OptanonWrapper = window.OptanonWrapper || function OptanonWrapper() {}; `}})]}):null}class E{}var b=e.i(206558),S=e.i(565410);class _ extends E{initialized=!1;eventQueue=[];posthog=null;init(t,n=!1){t.apiKey&&e.A(644985).then(e=>{e.default.init(t.apiKey,{api_host:t.apiHost||"https://ph.mintlify.com",ui_host:"https://us.posthog.com",capture_pageview:!1,disable_session_recording:!n,...t.apiKey===b.NEXT_PUBLIC.POSTHOG_KEY&&{cross_subdomain_cookie:!0},loaded:e=>{m.IS_PROD||e.opt_out_capturing(),this.posthog=e,this.initialized=!0,this.eventQueue.forEach(({eventName:e,eventProperties:t})=>{this.captureEvent(e,t)}),this.eventQueue=[]}})}).catch(e=>{console.error("Failed to load PostHog",e)})}captureEvent(e,t={}){if(this.initialized)return void this.posthog?.capture(e,{...t});this.eventQueue.push({eventName:e,eventProperties:{...t}})}createEventListener(e){return async t=>{this.captureEvent(e,t)}}onRouteChange(e,t){this.captureEvent("$pageview"),this.captureEvent(`$${S.PAGE_VIEW_EVENT}`)}}class k{constructor(e=10,t=5e3){this.queue=[],this.isProcessing=!1,this.batchSize=e,this.flushInterval=t}enqueue(e){this.queue.push({event:e,timestamp:Date.now(),retryCount:0})}shouldFlush(){return this.queue.length>=this.batchSize}getBatch(){return this.queue.splice(0,this.batchSize)}requeueEvents(e){let t=e.map(e=>Object.assign(Object.assign({},e),{retryCount:e.retryCount+1}));this.queue.unshift(...t)}startPeriodicFlush(e){this.flushTimer&&clearInterval(this.flushTimer),this.flushTimer=setInterval(()=>{this.queue.length>0&&!this.isProcessing&&(this.isProcessing=!0,e().finally(()=>{this.isProcessing=!1}))},this.flushInterval)}size(){return this.queue.length}}class C{constructor(e){this.storage=e,this.identity=this.loadOrCreateIdentity()}loadOrCreateIdentity(){let e=this.storage.get(C.KEYS.ANONYMOUS_ID),t=this.storage.get(C.KEYS.USER_ID),n=this.storage.get(C.KEYS.SESSION_ID,"session"),i=e;i||(i=this.generateId("anon"),this.storage.set(C.KEYS.ANONYMOUS_ID,i));let r=n;return r||(r=this.generateId("session"),this.storage.set(C.KEYS.SESSION_ID,r,"session")),{anonymousId:i,userId:t||void 0,sessionId:r}}generateId(e){return`${e}_${Date.now()}_${Math.random().toString(36).substring(2,9)}`}identify(e){e&&"string"==typeof e&&(this.identity.userId=e,this.storage.set(C.KEYS.USER_ID,e))}reset(){let e=this.generateId("anon"),t=this.generateId("session");this.identity={anonymousId:e,userId:void 0,sessionId:t},this.storage.set(C.KEYS.ANONYMOUS_ID,e),this.storage.remove(C.KEYS.USER_ID),this.storage.set(C.KEYS.SESSION_ID,t,"session")}getIdentity(){return Object.assign({},this.identity)}getAnonymousId(){return this.identity.anonymousId}getUserId(){return this.identity.userId}getSessionId(){return this.identity.sessionId}}C.KEYS={ANONYMOUS_ID:"mintlify_anonymous_id",USER_ID:"mintlify_user_id",SESSION_ID:"mintlify_session_id"};let j={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},L=new Uint8Array(16),A=[];for(let e=0;e<256;++e)A.push((e+256).toString(16).slice(1));let P=function(e,n,i){if(j.randomUUID&&!n&&!e)return j.randomUUID();var r=e,a=i;let s=(r=r||{}).random??r.rng?.()??function(){if(!t){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");t=crypto.getRandomValues.bind(crypto)}return t(L)}();if(s.length<16)throw Error("Random bytes length must be >= 16");if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,n){if((a=a||0)<0||a+16>n.length)throw RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`);for(let e=0;e<16;++e)n[a+e]=s[e];return n}return function(e,t=0){return(A[e[t+0]]+A[e[t+1]]+A[e[t+2]]+A[e[t+3]]+"-"+A[e[t+4]]+A[e[t+5]]+"-"+A[e[t+6]]+A[e[t+7]]+"-"+A[e[t+8]]+A[e[t+9]]+"-"+A[e[t+10]]+A[e[t+11]]+A[e[t+12]]+A[e[t+13]]+A[e[t+14]]+A[e[t+15]]).toLowerCase()}(s)};class T{buildEvent(e,t,n,i){let r=Object.assign({},t),a={event_id:P(),subdomain:i,anon_id:n.anonymousId,session_id:n.sessionId,event:e,created_at:new Date().toISOString()};n.userId&&(a.user_id=n.userId);{a.path=window.location.pathname,a.referrer=document.referrer;let e=window.location.search;e&&(r.$current_url_search=e);let t=window.location.hash;t&&(r.$current_url_hash=t),r.$current_url=window.location.href,r.$viewport_height=window.innerHeight.toString(),r.$viewport_width=window.innerWidth.toString()}if("undefined"!=typeof navigator&&(a.user_agent=navigator.userAgent,r.$browser_language=navigator.language,"connection"in navigator)){let e=navigator.connection;e&&(r.$network_connection_type=e.effectiveType)}"undefined"!=typeof screen&&(r.$screen_height=screen.height.toString(),r.$screen_width=screen.width.toString());try{r.$timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}return Object.keys(r).length>0&&(a.properties=r),a}buildBatchPayload(e){return JSON.stringify({events:e,timestamp:Date.now()})}}class F{getStorage(e){try{return"session"===e?sessionStorage:localStorage}catch(e){return null}}get(e,t="local"){try{let n=this.getStorage(t);return(null==n?void 0:n.getItem(e))||null}catch(e){return null}}set(e,t,n="local"){try{let i=this.getStorage(n);null==i||i.setItem(e,t)}catch(e){console.warn(`Failed to set item in ${n}Storage`)}}remove(e,t="local"){try{let n=this.getStorage(t);null==n||n.removeItem(e)}catch(e){console.warn(`Failed to remove item from ${t}Storage`)}}}class R{constructor(){this.isUnloading=!1,this.setupPageLifecycleHandlers()}setupPageLifecycleHandlers(){let e=()=>{this.isUnloading=!0};window.addEventListener("beforeunload",e),window.addEventListener("pagehide",e),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&(this.isUnloading=!0)})}send(e,t){var n,i,r,a;return n=this,i=void 0,r=void 0,a=function*(){if(this.isUnloading&&"undefined"!=typeof navigator&&"sendBeacon"in navigator&&navigator.sendBeacon(e,t))return new Response("",{status:202});let n=yield fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:t});if(!n.ok){let e=Error(`HTTP ${n.status}`);throw e.status=n.status,e}return n},new(r||(r=Promise))(function(e,t){function s(e){try{c(a.next(e))}catch(e){t(e)}}function o(e){try{c(a.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(s,o)}c((a=a.apply(n,i||[])).next())})}}var N=function(e,t,n,i){return new(n||(n=Promise))(function(r,a){function s(e){try{c(i.next(e))}catch(e){a(e)}}function o(e){try{c(i.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,o)}c((i=i.apply(e,t||[])).next())})};class ${constructor(e){this.config=Object.assign({batchSize:10,flushInterval:5e3,maxRetries:3},e),this.transportManager=new R,this.payloadBuilder=new T,this.storageManager=new F,this.identityManager=new C(this.storageManager),this.eventQueue=new k(this.config.batchSize,this.config.flushInterval),this.eventQueue.startPeriodicFlush(()=>this.flushEvents()),this.setupPageLifecycleHandlers()}trackEvent(e){return N(this,arguments,void 0,function*(e,t={}){let n=this.identityManager.getIdentity(),i=Object.entries(t).reduce((e,[t,n])=>(e[t]="string"==typeof n?n:JSON.stringify(n),e),{}),r=this.payloadBuilder.buildEvent(e,i,n,this.config.subdomain);this.eventQueue.enqueue(r),this.eventQueue.shouldFlush()&&(yield this.flushEvents())})}flushEvents(){return N(this,void 0,void 0,function*(){let e=this.eventQueue.getBatch();if(0===e.length)return;let t=e.map(e=>e.event),n=this.payloadBuilder.buildBatchPayload(t);try{yield this.transportManager.send(this.config.apiEndpoint,n)}catch(i){let t=i.status;if(400===t||401===t||403===t||404===t||413===t)return;let n=e.filter(e=>{var t;return e.retryCount<(null!=(t=this.config.maxRetries)?t:3)});n.length>0&&this.eventQueue.requeueEvents(n)}})}setupPageLifecycleHandlers(){let e=()=>{this.forceFlush()};window.addEventListener("beforeunload",e),window.addEventListener("pagehide",e),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&this.forceFlush()})}forceFlush(){return N(this,void 0,void 0,function*(){yield this.flushEvents()})}identify(e){this.identityManager.identify(e)}reset(){this.identityManager.reset()}getQueueLength(){return this.eventQueue.size()}getSessionId(){return this.identityManager.getSessionId()}getAnonymousId(){return this.identityManager.getAnonymousId()}getUserId(){return this.identityManager.getUserId()}}class O extends E{initialized=!1;subdomain;isAtlas;mintlifySdk;constructor(e,t){super(),this.subdomain=e,this.isAtlas=t,this.mintlifySdk=new $({apiEndpoint:`${b.NEXT_PUBLIC.BASE_PATH}/_mintlify/api/v1/e`,subdomain:this.subdomain})}init(){this.initialized=!0}captureEvent(e){return async t=>{this.mintlifySdk.trackEvent(e,t)}}createEventListener(e){return this.initialized?this.captureEvent(e):async function(e){}}onRouteChange(e,t){let n={subdomain:this.subdomain,title:"undefined"!=typeof document?document.title:""};this.mintlifySdk.trackEvent(S.PAGE_VIEW_EVENT,n),this.isAtlas&&this.mintlifySdk.trackEvent("docs.atlas_content.view",n)}}class M extends E{init(e){}createEventListener(e){return async function(t){window._satellite&&window._satellite.track(e,t)}}onRouteChange(e,t){window._satellite&&window._satellite.track("page_view")}}class z extends E{initialized=!1;eventQueue=[];track=(e,t)=>{"string"==typeof e&&t&&this.eventQueue.push({eventName:e,eventProperties:t})};init(t){if(!t.apiKey)return;let{apiKey:n}=t;e.A(366555).then(e=>{this.initialized||(e.init(n),this.track=e.track,this.initialized=!0,this.eventQueue.forEach(({eventName:e,eventProperties:t})=>{this.track(e,t)}),this.eventQueue=[])}).catch(e=>{this.track=()=>{},console.error(e)})}createEventListener(e){return(async function(t){this.track(e,t)}).bind(this)}onRouteChange(e,t){t.shallow||(this.track("page_view",{url:e}),this.track(S.PAGE_VIEW_EVENT,{url:e}))}}class D extends E{projectId;init(e){this.projectId=e.projectId}createEventListener(e){return this.projectId&&"clarity"in window&&"function"==typeof window.clarity?async function(t){try{window.clarity("event",e)}catch(e){console.warn("Failed to track Clarity event:",e)}}:async function(e){}}onRouteChange(e,t){}}class U extends E{initialized=!1;trackPageview;init(t){if(!t.siteId)return;let{siteId:n}=t;e.A(291239).then(e=>{this.initialized||(e.load(n),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()}}class H extends E{measurementId;init(e){this.measurementId=e.measurementId}createEventListener(e){return this.measurementId&&"gtag"in window?async function(t){window.gtag("event",e,{})}:async function(e){}}onRouteChange(e){this.measurementId&&"gtag"in window&&window.gtag("config",this.measurementId,{page_path:e})}}class B extends E{appId;init(e){this.appId=e.appId}trackEvent(e,t={}){if(this.appId&&window.heap&&"function"==typeof window.heap.track)try{window.heap.track(e,t)}catch(e){console.warn("Failed to track Heap event:",e)}}createEventListener(e){return async t=>{this.trackEvent(e,t)}}onRouteChange(e,t){this.trackEvent("pageview",{path:e}),this.trackEvent(S.PAGE_VIEW_EVENT,{path:e})}}class Q extends E{initialized=!1;eventQueue=[];track=(e,t)=>{e&&t&&"object"==typeof t&&this.eventQueue.push({eventName:e,eventProperties:t})};init(t){if(!t.writeKey)return;let{writeKey:n,apiHost:i}=t;e.A(863050).then(e=>{if(!this.initialized){let t=e.HtEventsBrowser.load({writeKey:n},{apiHost:i||"us-east-1.hightouch-events.com"});this.track=t.track,this.initialized=!0,this.eventQueue.forEach(({eventName:e,eventProperties:t})=>{this.track(e,t)}),this.eventQueue=[]}}).catch(e=>{this.track=()=>{},console.error(e)})}createEventListener(e){return(async function(t){this.track(e,t)}).bind(this)}onRouteChange(e,t){t.shallow||this.track(S.PAGE_VIEW_EVENT,{url:e})}}class K extends E{initialized=!1;eventQueue=[];hotjar;init(t){if(!t.hjid||!t.hjsv)return;let n=parseInt(t.hjid,10),i=parseInt(t.hjsv,10);e.A(929176).then(e=>{this.initialized||(this.hotjar=e.hotjar,this.hotjar.initialize(n,i),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){}}class W extends E{trackEvent;eventQueue=[];init(t){t.appId&&e.A(307612).then(e=>{e.default.init(t.appId),this.trackEvent=e.default.track,this.eventQueue.forEach(({eventName:e,eventProperties:t})=>{this.trackEvent?.(e,t)}),this.eventQueue=[]}).catch(e=>{console.error("Failed to load LogRocket",e)})}captureEvent(e,t={}){if(this.trackEvent)return void this.trackEvent(e,t);this.eventQueue.push({eventName:e,eventProperties:{...t}})}createEventListener(e){return async t=>this.captureEvent(e,t)}onRouteChange(e,t){}}let q={us:"https://api.mixpanel.com",eu:"https://api-eu.mixpanel.com",in:"https://api-in.mixpanel.com"};class V extends E{initialized=!1;waitTracking=[];mixpanel={track:(e,t)=>{this.waitTracking.push({name:e,properties:t})}};init(t){t.projectToken?e.A(777785).then(e=>{if(!this.initialized){let n=e.default;n.init(t.projectToken,{secure_cookie:!0,api_host:q[t.region??"us"]}),this.initialized=!0,this.mixpanel=n,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}),this.mixpanel.track(S.PAGE_VIEW_EVENT,{path:e})}}class Y extends E{initialized=!1;eventQueue=[];pirsch;init(t){if(!t.id)return;let n=t.id;e.A(838687).then(e=>{this.initialized||(this.pirsch=new e.Pirsch({identificationCode:n}),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()}}class G extends E{initialized=!1;eventQueue=[];track=(e,t)=>{e&&t&&"object"==typeof t&&this.eventQueue.push({eventName:e,eventProperties:t})};init(t){if(!t.key)return;let{key:n,cdnUrl:i}=t,r=i?.replace(/\/$/,"");e.A(210729).then(e=>{if(!this.initialized){let t=new e.AnalyticsBrowser;t.load({writeKey:n,...r?{cdnURL:r}:{}}),this.track=t.track,this.initialized=!0,this.eventQueue.forEach(({eventName:e,eventProperties:t})=>{this.track(e,t)}),this.eventQueue=[]}}).catch(e=>{this.track=()=>{},console.error(e)})}createEventListener(e){return(async function(t){this.track(e,t)}).bind(this)}onRouteChange(e,t){t.shallow||this.track(S.PAGE_VIEW_EVENT,{url:e})}}class X{analyticsIntegrations=[];constructor(e,t){let n=!!e?.adobe?.launchUrl,i=!!e?.clarity?.projectId,r=!!e?.amplitude?.apiKey,a=!!e?.fathom?.siteId,s=!!e?.ga4?.measurementId,o=!!e?.heap?.appId,c=!!e?.hightouch?.writeKey,l=!!(e?.hotjar?.hjid&&e.hotjar.hjsv),u=!!e?.logrocket?.appId,d=!!e?.mixpanel?.projectToken,h=!!e?.pirsch?.id,p=!!e?.posthog?.apiKey,g=!!e?.segment?.key;if(n&&e?.adobe){let t=new M;t.init(e.adobe),this.analyticsIntegrations.push(t)}if(i&&e?.clarity){let t=new D;t.init(e.clarity),this.analyticsIntegrations.push(t)}if(r&&e?.amplitude){let t=new z;t.init(e.amplitude),this.analyticsIntegrations.push(t)}if(a&&e?.fathom){let t=new U;t.init(e.fathom),this.analyticsIntegrations.push(t)}if(s&&e?.ga4){let t=new H;t.init(e.ga4),this.analyticsIntegrations.push(t)}if(o&&e?.heap){let t=new B;t.init(e.heap),this.analyticsIntegrations.push(t)}if(c&&e?.hightouch){let t=new Q;t.init(e.hightouch),this.analyticsIntegrations.push(t)}if(l&&e?.hotjar){let t=new K;t.init(e.hotjar),this.analyticsIntegrations.push(t)}if(u&&e?.logrocket){let t=new W;t.init(e.logrocket),this.analyticsIntegrations.push(t)}if(d&&e?.mixpanel){let t=new V;t.init(e.mixpanel),this.analyticsIntegrations.push(t)}if(h&&e?.pirsch){let t=new Y;t.init(e.pirsch),this.analyticsIntegrations.push(t)}if(p&&e?.posthog){let t=new _,n=e.posthog.sessionRecording??!0;t.init(e.posthog,n),this.analyticsIntegrations.push(t)}if(t){let{subdomain:e,isAtlas:n}=t,i=new O(e,n);i.init(),this.analyticsIntegrations.push(i)}if(g&&e?.segment){let t=new G;t.init(e.segment),this.analyticsIntegrations.push(t)}}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(n=>n.onRouteChange(e,t))}}var Z=e.i(803333),J=e.i(618566),ee=e.i(836770);let et=(e,t)=>{let n=(e=>{let t=new Set([e]),n=/^C0*(\d+)$/i.exec(e),i=/^\d+$/.exec(e);if(null!==n&&t.add(String(Number(n[1]))),null!==i){let n=String(Number(e));t.add(n),t.add(`C${n.padStart(4,"0")}`)}return t})(t);return e.some(e=>n.has(e.trim()))};function en({frontchat:e}){return e?.snippetId?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.default,{strategy:"beforeInteractive",src:"https://chat-assets.frontapp.com/v1/chat.bundle.js"}),(0,n.jsx)(r.default,{id:"frontchat",strategy:"afterInteractive",children:`window.FrontChat('init', {chatId: '${e.snippetId}', useDefaultLauncher: true});`})]}):null}let ei=()=>{let{docsConfig:e}=(0,y.useContext)(v.DocsConfigContext);return m.IS_PROD?(0,n.jsx)(en,{frontchat:e?.integrations?.frontchat}):null};var er=e.i(392146);function ea({children:e,subdomain:t,isAtlas:r}){let{docsConfig:a}=(0,y.useContext)(v.DocsConfigContext),s=a?.integrations?.telemetry?.enabled===!1,o=(e=>{let t=e?.integrations?.onetrust,n=t?.categoryId||"C0002",i=e?.integrations?.cookies?.key,r=e?.integrations?.cookies?.value,a=void 0!==e&&void 0===t&&e.integrations?.cookies===void 0,[s,o]=(0,y.useState)(a);return(0,y.useEffect)(()=>{if(void 0===e)return void o(!1);if(void 0!==t){let e=e=>{o((void 0===e?void 0:((e,t)=>{let n="detail"in e?e.detail:void 0;return Array.isArray(n)?et(n.map(String),t):"string"==typeof n?et(n.split(","),t):void 0})(e,n))??(e=>{let t=window.OnetrustActiveGroups;return"string"==typeof t&&et(t.split(","),e)})(n))},t=t=>e(t);return e(),window.addEventListener("OneTrustGroupsUpdated",t),()=>{window.removeEventListener("OneTrustGroupsUpdated",t)}}let a=e=>{o("ACCEPT"===e.ANALYTICS)},s=()=>{let e=window.Osano?.cm;return!!e&&(o(e.analytics),e.addEventListener("osano-cm-consent-saved",a),!0)};if(s())return()=>{window.Osano?.cm?.removeEventListener("osano-cm-consent-saved",a)};let c=()=>{e.integrations?.cookies!==void 0&&void 0!==i&&void 0!==r?o((window.localStorage.getItem(i)||"")===r):o(e.integrations?.cookies===void 0)},l=e.integrations?.cookies!==void 0&&(void 0===i||void 0===r);if(void 0!==window.Osano||l){o(!1);let e=!1,t=()=>{s()&&(e=!0,clearInterval(n))},n=setInterval(t,250),i=setTimeout(()=>{if(clearInterval(n),!e){if(l){n=setInterval(t,2e3);return}c()}},1e4);return()=>{clearInterval(n),clearTimeout(i),e&&window.Osano?.cm?.removeEventListener("osano-cm-consent-saved",a)}}c()},[e,n,t,i,r]),s})(a),{managed:c,measurementConsent:l}=(0,ee.useManagedConsent)(),u=c?!!l:o,d=function(e,t,n,i,r){let a=(0,J.usePathname)(),s=(0,Z.useCurrentPath)(),[o,c]=(0,y.useState)(!1),[l,u]=(0,y.useState)(),d=(0,y.useRef)(!0),h=(0,y.useRef)(s);return h.current=s,(0,y.useEffect)(()=>{let a;if(n||!i||!m.IS_PROD){o&&(u(void 0),c(!1));return}o||(t&&(a={subdomain:t,isAtlas:r??!1}),u(new X(e,a)),c(!0))},[o,e,t,n,i,r]),(0,y.useEffect)(()=>{!i&&o&&(u(void 0),c(!1))},[i,o]),(0,y.useEffect)(()=>{l&&(l.onRouteChange(h.current,{initialLoad:d.current}),d.current=!1)},[a,l]),l}(a?.integrations??{},t,s,u,r),h=!c||u,p=(0,y.useRef)(u);return(0,y.useEffect)(()=>{let e=p.current;p.current=u,c||!0!==e||u||window.location.reload()},[c,u]),(0,n.jsx)(i.AnalyticsProvider,{value:{analyticsMediator:d},children:(0,n.jsxs)(er.LocalStorageContextController,{cookiesEnabled:u,children:[(0,n.jsx)(I,{onetrust:a?.integrations?.onetrust}),(0,n.jsx)(ei,{}),h&&(0,n.jsx)(x,{analyticsEnabled:u}),e]})})}},197336,e=>{"use strict";e.s(["default",()=>v],197336);var t=e.i(843476),n=e.i(271645),i=Object.defineProperty,r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,o=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t)=>{for(var n in t||(t={}))a.call(t,n)&&o(e,n,t[n]);if(r)for(var n of r(t))s.call(t,n)&&o(e,n,t[n]);return e},l=(e,t)=>{let n="[react-use-intercom]";switch(e){case"info":default:console.log(`${n} ${t}`);break;case"warn":console.warn(`${n} ${t}`);break;case"error":console.error(`${n} ${t}`)}},u="undefined"==typeof window,d=e=>(Object.keys(e).forEach(t=>{e[t]&&"object"==typeof e[t]?d(e[t]):void 0===e[t]&&delete e[t]}),e),h=(e,...t)=>{if(!u&&window.Intercom)return window.Intercom.apply(null,[e,...t]);l("error",`${e} Intercom instance is not initalized yet`)},p=n.createContext(void 0),g=e=>c({company_id:e.companyId,name:e.name,created_at:e.createdAt,plan:e.plan,monthly_spend:e.monthlySpend,user_count:e.userCount,size:e.size,website:e.website,industry:e.industry},e.customAttributes),f=e=>d(c(c({},(e=>({custom_launcher_selector:e.customLauncherSelector,alignment:e.alignment,vertical_padding:e.verticalPadding,horizontal_padding:e.horizontalPadding,hide_default_launcher:e.hideDefaultLauncher,session_duration:e.sessionDuration,action_color:e.actionColor,background_color:e.backgroundColor}))(e)),(e=>{var t;return c({email:e.email,user_id:e.userId,created_at:e.createdAt,name:e.name,phone:e.phone,last_request_at:e.lastRequestAt,unsubscribed_from_emails:e.unsubscribedFromEmails,language_override:e.languageOverride,utm_campaign:e.utmCampaign,utm_content:e.utmContent,utm_medium:e.utmMedium,utm_source:e.utmSource,utm_term:e.utmTerm,avatar:e.avatar&&(e=>({type:e.type,image_url:e.imageUrl}))(e.avatar),user_hash:e.userHash,company:e.company&&g(e.company),companies:null==(t=e.companies)?void 0:t.map(g)},e.customAttributes)})(e))),m=e=>{var{appId:t,autoBoot:i=!1,autoBootProps:o,children:d,onHide:g,onShow:m,onUnreadCountChange:v,onUserEmailSupplied:y,shouldInitialize:w=!u,apiBase:x,initializeDelay:I}=e,E=((e,t)=>{var n={};for(var i in e)a.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&r)for(var i of r(e))0>t.indexOf(i)&&s.call(e,i)&&(n[i]=e[i]);return n})(e,["appId","autoBoot","autoBootProps","children","onHide","onShow","onUnreadCountChange","onUserEmailSupplied","shouldInitialize","apiBase","initializeDelay"]);let b=n.useRef(!1),S=n.useRef(!1),_=Object.keys(E).filter(e=>!e.startsWith("data-"));_.length>0&&l("warn",`some invalid props were passed to IntercomProvider. Please check following props: ${_.join(", ")}.`);let k=n.useCallback(e=>{if(!window.Intercom&&!w)return void l("warn","Intercom instance is not initialized because `shouldInitialize` is set to `false` in `IntercomProvider`");let n=c(c({app_id:t},x&&{api_base:x}),e&&f(e));window.intercomSettings=n,h("boot",n),b.current=!0},[x,t,w]),[C,j]=n.useState(!1),L=n.useCallback(()=>{j(!1),g&&g()},[g,j]),A=n.useCallback(()=>{j(!0),m&&m()},[m,j]);u||!w||S.current||(((e,t=0)=>{var n=window,i=n.Intercom;if("function"==typeof i)i("reattach_activator"),i("update",n.intercomSettings);else{var r=document,a=function(){a.c(arguments)};a.q=[],a.c=function(e){a.q.push(e)},n.Intercom=a;var s=function(){setTimeout(function(){var t=r.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://widget.intercom.io/widget/"+e;var n=r.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)},t)};"complete"===document.readyState?s():n.attachEvent?n.attachEvent("onload",s):n.addEventListener("load",s,!1)}})(t,I),h("onHide",L),h("onShow",A),h("onUserEmailSupplied",y),v&&h("onUnreadCountChange",v),i&&k(o),S.current=!0);let P=n.useCallback((e,t)=>window.Intercom||w?b.current?t():void l("warn",`"${e}" was called but Intercom has not booted yet. Please call 'boot' before calling '${e}' or set 'autoBoot' to true in the IntercomProvider.`):void l("warn","Intercom instance is not initialized because `shouldInitialize` is set to `false` in `IntercomProvider`"),[w]),T=n.useCallback(()=>{b.current&&(h("shutdown"),delete window.intercomSettings,b.current=!1)},[]),F=n.useCallback(()=>{b.current&&(h("shutdown"),delete window.Intercom,delete window.intercomSettings,b.current=!1)},[]),R=n.useCallback(()=>{P("update",()=>{h("update",{last_request_at:Math.floor(new Date().getTime()/1e3)})})},[P]),N=n.useCallback(e=>{P("update",()=>{if(!e)return void R();let t=f(e);window.intercomSettings=c(c({},window.intercomSettings),t),h("update",t)})},[P,R]),$=n.useCallback(()=>{P("hide",()=>{h("hide")})},[P]),O=n.useCallback(()=>{P("show",()=>h("show"))},[P]),M=n.useCallback(()=>{P("showMessages",()=>{h("showMessages")})},[P]),z=n.useCallback(e=>{P("showNewMessage",()=>{e?h("showNewMessage",e):h("showNewMessage")})},[P]),D=n.useCallback(()=>P("getVisitorId",()=>h("getVisitorId")),[P]),U=n.useCallback(e=>{P("startTour",()=>{h("startTour",e)})},[P]),H=n.useCallback(e=>{P("startChecklist",()=>{h("startChecklist",e)})},[P]),B=n.useCallback((e,t)=>{P("trackEvent",()=>{t?h("trackEvent",e,t):h("trackEvent",e)})},[P]),Q=n.useCallback(e=>P("showArticle",()=>{h("showArticle",e)}),[P]),K=n.useCallback(e=>P("showSpace",()=>{h("showSpace",e)}),[P]),W=n.useCallback(e=>{P("startSurvey",()=>{h("startSurvey",e)})},[P]),q=n.useCallback(e=>P("showNews",()=>{h("showNews",e)}),[P]),V=n.useMemo(()=>({boot:k,shutdown:T,hardShutdown:F,update:N,hide:$,show:O,isOpen:C,showMessages:M,showNewMessage:z,getVisitorId:D,startTour:U,startChecklist:H,trackEvent:B,showArticle:Q,startSurvey:W,showSpace:K,showNews:q}),[k,T,F,N,$,O,C,M,z,D,U,H,B,Q,W,K,q]);return n.createElement(p.Provider,{value:V},d)};function v(e){let{appId:n,children:i}=e;return void 0===n?(0,t.jsx)(t.Fragment,{children:i}):(0,t.jsx)(m,{...e,appId:n})}},601054,e=>{"use strict";e.s(["ChatAssistantContext",()=>t.ChatAssistantContext,"DEBOUNCE_TIME_IN_MS",()=>t.DEBOUNCE_TIME_IN_MS,"DesktopSearchEntry",()=>i.DesktopSearchEntry,"SearchButton",()=>n.SearchButton,"SearchContext",()=>t.SearchContext,"SearchProvider",()=>t.SearchProvider,"hasSearchEntry",()=>i.hasSearchEntry]);var t=e.i(477222),n=e.i(584542),i=e.i(311844)},87732,e=>{"use strict";e.s(["AssistantLayoutWrapper",()=>h]);var t=e.i(843476),n=e.i(915476),i=e.i(859465),r=e.i(91557),a=e.i(237978),s=e.i(202225),o=e.i(271645),c=e.i(39839),l=e.i(736118),u=e.i(477222),d=e.i(785023);function h({children:e}){let h=(0,o.useContext)(i.AssistantUiContext),{isChatSheetOpen:p}=(0,o.useContext)(u.ChatAssistantContext),{hasChatPermissions:g}=(0,o.useContext)(u.SearchContext),{docsConfig:f}=(0,o.useContext)(r.DocsConfigContext),{originalPageMode:m,pageModeOverride:v}=(0,a.usePageModeOverride)(),y="assistant"===(void 0===v?m:v||void 0),w=(0,c.useMediaQuery)("(max-width: 1024px)"),[x,I]=(0,o.useState)(!1),[E,b]=(0,o.useState)(!1),[S]=(0,s.useLocalStorage)(n.ASSISTANT_WIDTH_KEY,d.CHAT_SHEET_MIN_WIDTH);(0,o.useEffect)(()=>{I(!0),b(w)},[w]),(0,o.useEffect)(()=>{x&&document.documentElement.removeAttribute("data-assistant-defaulted")},[x]),(0,o.useLayoutEffect)(()=>{if(!x)return;let e=document.documentElement;if(E||y||"assistant-ui-v2"===h){e.style.setProperty(n.ASSISTANT_WIDTH_CSS_VAR,"0px"),e.setAttribute("data-assistant-state","closed");return}let t=g&&p;return e.style.setProperty(n.ASSISTANT_WIDTH_CSS_VAR,t?`${S}px`:"0px"),e.setAttribute("data-assistant-state",t?"open":"closed"),()=>{e.style.removeProperty(n.ASSISTANT_WIDTH_CSS_VAR),e.setAttribute("data-assistant-state","closed")}},[x,E,y,g,p,S,h]);let _=x&&!E;return(0,t.jsxs)("div",{className:"max-lg:contents lg:flex lg:w-full","data-docs-theme":f?.theme,"data-assistant-layout":h,children:[(0,t.jsx)("div",{className:"max-lg:contents lg:flex-1 lg:min-w-0 lg:overflow-x-clip",children:e}),g&&!y&&(0,t.jsx)(l.ChatAssistantSheet,{hidden:_&&!p})]})}},28330,e=>{"use strict";e.s(["SkipToContent",()=>r]);var t=e.i(843476),n=e.i(343590),i=e.i(111048);function r(){let e=(0,n.useSelectedLocale)();return(0,t.jsx)("a",{href:`#${i.Ids.ContentArea}`,className:"sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-50 focus:p-2 focus:text-sm focus:bg-background-light dark:focus:bg-background-dark focus:rounded-md focus:outline-primary dark:focus:outline-primary-light",children:e["aria.skipToMainContent"]})}}]);