PageSourceSearch

https://www.zinc.com/docs/_next/static/chunks/5fcac5b892a41b66.js?dpl=dpl_DoF4dNXTDRaTJU5TAfKMv16xUsmu

js zinc.com collected 2026-10-09 17:41:39 UTC 29,614 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,784801,457579,733644,e=>{"use strict";e.s(["visit",()=>d],784801),e.s(["CONTINUE",()=>a,"EXIT",()=>i,"SKIP",()=>s,"visitParents",()=>l],733644),e.s(["convert",()=>t],457579);let t=function(e){var n,a;if(null==e)return o;if("function"==typeof e)return r(e);if("object"==typeof e){return Array.isArray(e)?function(e){let o=[],n=-1;for(;++n<e.length;)o[n]=t(e[n]);return r(function(...e){let t=-1;for(;++t<o.length;)if(o[t].apply(this,e))return!0;return!1})}(e):(n=e,r(function(e){let t;for(t in n)if(e[t]!==n[t])return!1;return!0}))}if("string"==typeof e){return a=e,r(function(e){return e&&e.type===a})}throw Error("Expected function, string, or object as test")};function r(e){return function(t,r,o){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof r?r:void 0,o||void 0))}}function o(){return!0}let n=[],a=!0,i=!1,s="skip";function l(e,r,o,l){let d;"function"==typeof r&&"function"!=typeof o?(l=o,o=r):d=r;let c=t(d),u=l?-1:1;(function e(t,d,p){let h=t&&"object"==typeof t?t:{};if("string"==typeof h.type){let e="string"==typeof h.tagName?h.tagName:"string"==typeof h.name?h.name:void 0;Object.defineProperty(f,"name",{value:"node ("+t.type+(e?"<"+e+">":"")+")"})}return f;function f(){var h;let f,g,y,b=n;if((!r||c(t,d,p[p.length-1]||void 0))&&(b=Array.isArray(h=o(t,p))?h:"number"==typeof h?[a,h]:null==h?n:[h])[0]===i)return b;if("children"in t&&t.children&&t.children&&b[0]!==s)for(g=(l?t.children.length:-1)+u,y=p.concat(t);g>-1&&g<t.children.length;){if((f=e(t.children[g],g,y)())[0]===i)return f;g="number"==typeof f[1]?f[1]:g+u}return b}})(e,void 0,[])()}function d(e,t,r,o){let n,a,i;"function"==typeof t&&"function"!=typeof r?(a=void 0,i=t,n=r):(a=t,i=r,n=o),l(e,a,function(e,t){let r=t[t.length-1],o=r?r.children.indexOf(e):void 0;return i(e,o,r)},n)}},834386,e=>{"use strict";function t(e){return e.startsWith("/")&&!e.startsWith("//")||e.startsWith("#")||e.startsWith("./")||e.startsWith("../")}e.s(["isInternalHref",()=>t])},995047,e=>{"use strict";e.s(["DynamicLink",()=>u]);var t=e.i(843476),r=e.i(91557),o=e.i(590280),n=e.i(476781),a=e.i(834386),i=e.i(432686),s=e.i(428681),l=e.i(179862),d=e.i(522016),c=e.i(271645);function u({href:e,ref:u,onMouseEnter:p,onMouseLeave:h,style:f,className:g,class:y,children:b,onClick:x,onInternalLinkClick:k,target:m,rel:C,allowTarget:v=!1,noLinkClass:S=!1,node:j,...w}){let{docsConfig:N}=(0,c.useContext)(r.DocsConfigContext),E=g??y,{getLivePreviewHref:T,requestContentEarly:A}=(0,c.useContext)(o.LivePreviewContext),_=v?m:void 0,B=v?C:void 0,L=(e,t)=>{let r=_??e;if(!r)return B?{rel:B}:{};let o=B??t;if(!_&&!B||"_blank"!==r)return{target:r,rel:o};let n=new Set(o?o.split(/\s+/).filter(Boolean):[]);return n.add("noopener"),n.add("noreferrer"),{target:r,rel:[...n].join(" ")}},I=t=>{let r=0===t.button&&!t.metaKey&&!t.ctrlKey&&!t.shiftKey&&!t.altKey;e&&r&&A?.(e),k?.(),x?.(t)};if(e&&(0,a.isInternalHref)(e)){if(e.startsWith("/")){let r=T(N?.seo?.trailingSlash?function(e){let t=/^([^?#]*)([?#].*)?$/.exec(e),r=(0,s.replaceSlashIndex)(t?.[1]??e)||"/",o=t?.[2]??"";return(0,i.addTrailingSlash)(`${r}${o}`,{skipFileExtensions:!1})}(e):e);return(0,t.jsx)(d.default,{href:r,ref:u,passHref:!0,onMouseEnter:p,onMouseLeave:h,style:f,className:(0,l.cn)(S?void 0:n.Classes.Link,E)||void 0,onClick:I,...L(),...w,children:b})}return(0,t.jsx)("a",{href:e,ref:u,onMouseEnter:p,onMouseLeave:h,style:f,className:(0,l.cn)(S?void 0:n.Classes.Link,E)||void 0,onClick:I,...L(),...w,children:b})}return(0,t.jsx)("a",{href:e,...L("_blank","noreferrer"),ref:u,onMouseEnter:p,onMouseLeave:h,style:f,className:(0,l.cn)(S?void 0:n.Classes.Link,E)||void 0,onClick:x,...w,children:b})}},652853,552439,e=>{"use strict";e.s(["TRIAL_ENTITLEMENTS",()=>s,"checkAccess",()=>l],652853),e.s(["DAY_IN_MILLISECONDS",()=>n,"HOUR_IN_MILLISECONDS",()=>o,"MINUTE_IN_MILLISECONDS",()=>r,"SECOND_IN_MILLISECONDS",()=>t,"TWO_WEEKS_IN_MILLISECONDS",()=>a,"isOrgLessThanTwoWeeksOld",()=>i],552439);let t=1e3,r=6e4,o=36e5,n=864e5,a=12096e5;function i(e){return!!e&&Date.now()-new Date(e).getTime()<a}let s=["AI_CHAT","ANALYTICS","CUSTOM_SUBPATH","PREVIEW_DEPLOYMENTS","SOURCE_CHECK_LINK_ROT","SOURCE_CHECK_VALE_SPELLCHECK","MCP_ENDPOINTS","MCP_AUTH"];function l({entitlements:e,org:t,entitlementToCheck:r,allowTrialAccess:o=!1}){var n;return(null==(n=null==e?void 0:e[r])?void 0:n.status)==="ENABLED"||!!(o&&t&&s.includes(r))&&i(t.createdAt)}},193726,e=>{"use strict";
1async function t(e){e||console.warn("Called copyToClipboard() with empty text");try{return await navigator.clipboard.writeText(e),"success"}catch(e){return console.error("Failed to copy: ",e),"error"}}e.s(["copyToClipboard",()=>t])},650809,e=>{"use strict";e.s(["useGetShikiHighlightedHtml",()=>n]);var t=e.i(769728),r=e.i(271645),o=e.i(615824);function n(e){let n=(0,o.getShikiHighlightedHtml)(e),[a,i]=(0,r.useState)(n instanceof Promise?void 0:n);return(0,t.useIsomorphicLayoutEffect)(()=>{if(void 0===a)return(0,o.onShikiSettled)(()=>{let t=(0,o.getShikiHighlightedHtml)(e);t instanceof Promise||i(t)})},[e,a]),(0,t.useIsomorphicLayoutEffect)(()=>{if(!(n instanceof Promise))return void i(n);let e=!1;return async function(){if(!(n instanceof Promise))return i(n);try{let t=await n;e||i(t)}catch(t){console.error(t),e||i(void 0)}}(),()=>{e=!0}},[e,n]),a}},769728,e=>{"use strict";e.s(["useIsomorphicLayoutEffect",()=>t]);let t=e.i(271645).useLayoutEffect},885401,e=>{"use strict";e.s(["useCodeBlockThemeEnum",()=>a,"useCodeBlockThemeObject",()=>i]);var t=e.i(91557),r=e.i(590280),o=e.i(951378),n=e.i(271645);let a=()=>{let{isLivePreview:e,getDocsConfigOverrides:a,livePreviewUpdateId:i}=(0,n.useContext)(r.LivePreviewContext),{docsConfig:s}=(0,n.useContext)(t.DocsConfigContext);return(0,n.useMemo)(()=>{let t=a(),r=t?.styling?.codeblocks,n=e&&r?r:s?.styling?.codeblocks;return(0,o.getCodeStylingEnum)(n)},[e,a,i,s])},i=()=>{let{isLivePreview:e,getDocsConfigOverrides:o,livePreviewUpdateId:a}=(0,n.useContext)(r.LivePreviewContext),{docsConfig:i}=(0,n.useContext)(t.DocsConfigContext);return(0,n.useMemo)(()=>
1{let t=o(),r=t?.styling?.codeblocks;return e&&r?r:i?.styling?.codeblocks},[e,o,a,i])}},640389,102208,543535,e=>{"use strict";e.s(["CodeSnippetFeedbackContext",()=>w,"CodeSnippetFeedbackProvider",()=>N],640389);var t=e.i(843476),r=e.i(91557),o=e.i(343590),n=e.i(206558),a=e.i(803333),i=e.i(111048),s=e.i(476781);async function l(){if("function"==typeof window.alloy)try{let e=await Promise.race([window.alloy("getIdentity"),new Promise(e=>setTimeout(()=>e(void 0),2e3))]);return e?.identity?.ECID||void 0}catch{return}}async function d(){return await l()??function(){try{let e=document.cookie.match(/AMCV_[^=]+=([^;]+)/),t=e?.[1]&&decodeURIComponent(e[1]).match(/MCMID\|(\d+)/);return t?t[1]:void 0}catch{return}}()}e.s(["FEEDBACK_REQUEST_TIMEOUT_MS",()=>h,"createGithubEditUrl",()=>u,"createGithubIssueUrl",()=>p,"forwardFeedback",()=>g,"getFeedbackSubmitResult",()=>f],102208);var c=e.i(868643);function u(e,t,r){let{owner:o,repo:n,deployBranch:a,contentDirectory:i}=t;return`https://github.com/${o}/${n}/edit/${a}/${function(e,t,r){var o;let n=(o=(0,c.optionallyRemoveLeadingSlash)(t??"")).endsWith("/")?o.slice(0,-1):o;if(r){let e=(0,c.optionallyRemoveLeadingSlash)(r);if(e&&e.includes("."))return n&&e!==n&&!e.startsWith(`${n}/`)?`${n}/${e}`:e}return`${n?`${n}/`:""}${(0,c.optionallyRemoveLeadingSlash)(e)||"index"}.mdx`}(e,i,r)}`}function p(e,t){let{owner:r,repo:o}=t;return`https://github.com/${r}/${o}/issues/new?title=Issue on docs&body=Path: ${e||"index"}`}let h=1e4;function f(e){return e?.status===422?"rejected":e?.ok?"accepted":"failed"}async function g(e,{path:t,helpful:r,reason:o,comment:n}){try{let a=await d(),i=`[${t}] [${r?"helpful":"not helpful"}] [${o}]${n?` ${n}`:""}`.slice(0,1e4);await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"omit",body:JSON.stringify({feedback_id:crypto.randomUUID(),...a&&{mcid:a},content:i})})}catch(e){console.error("Error forwarding feedback:",e)}}var y=e.i(179862),b=e.i(271645),x=e.i(411088);let k=({code:e,...l})=>{let d=(0,a.useCurrentPath)(),{subdomain:c}=(0,b.useContext)(r.DeploymentMetadataContext),{feedback:u,setFeedback:p,setFeedbackModalOpen:g,feedbackModalOpen:k,isCodeSnippetFeedbackEnabled:m,status:C,setStatus:v}=(0,b.useContext)(w),S=(0,b.useRef)(null),j=(0,o.useSelectedLocale)(),{reportIncorrectCode:N,pleaseProvideDetailsOfTheIncorrectCode:E,whatIsWrongWithThisCode:T,submit:A,cancel:_}=j,B=!m||!u||"submitting"===C||"rejected"===C;(0,b.useEffect)(()=>{if(k){let e=S.current;e&&(e.focus(),e.setSelectionRange(e.value.length,e.value.length))}else S.current?.blur()},[k]);let L=async()=>{let t=u.trim();if(B||!c||!t)return;let r={code:e,filename:l.filename,lang:l.language,path:d,feedback:t};v("submitting");let o=f(await fetch(`${n.NEXT_PUBLIC.BASE_PATH}/_mintlify/feedback/${c}/code-snippet-feedback`,{method:"POST",body:JSON.stringify(r),signal:AbortSignal.timeout(h)}).catch(()=>void 0));if("accepted"!==o)return void v(o);v("idle"),p(""),g(!1)};return(0,t.jsxs)("div",{className:(0,y.cn)("flex flex-col gap-y-3",s.Classes.CodeSnippetFeedbackForm),children:[(0,t.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,t.jsx)("span",{className:(0,y.cn)(s.Classes.CodeSnippetFeedbackFormTitle,"text-sm font-medium text-gray-900 dark:text-gray-100"),children:N}),(0,t.jsx)("p",{className:(0,y.cn)(s.Classes.CodeSnippetFeedbackFormDescription,"text-sm text-gray-600 dark:text-gray-400"),children:E})]}),(0,t.jsx)(x.default,{id:i.Ids.CodeSnippetFeedbackTextArea,ref:S,autoComplete:"off",placeholder:T,"aria-label":T,value:u,onChange:e=>{p(e.target.value),v("idle")},readOnly:"submitting"===C,cacheMeasurements:!1,minRows:3,className:(0,y.cn)(s.Classes.CodeSnippetFeedbackTextArea,"my-2 text-sm w-full py-2 px-3 bg-background-light dark:bg-background-dark border border-gray-200 dark:border-gray-800 rounded-xt focus:outline-0 focus:border-gray-300 dark:focus:border-gray-700 text-gray-900 dark:text-gray-100 placeholder:text-gray-600/70 dark:placeholder:text-gray-400/70","rejected"===C&&"border-red-500 dark:border-red-500"),maxRows:8,style:{resize:"none"}}),("rejected"===C||"failed"===C)&&(0,t.jsx)("p",{className:"-mt-4 text-xs text-red-500",children:j["rejected"===C?"feedback.inappropriateContent":"feedback.submitFailed"]}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)("button",{type:"button",className:"text-sm rounded-xl px-3 py-1.5 bg-background-light dark:bg-background-dark border border-gray-200 dark:border-gray-800 hover:border-gray-300 dark:hover:border-gray-700 text-gray-900 dark:text-gray-100 disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>{v("idle"),p(""),g(!1)},disabled:"submitting"===C,children:_}),(0,t.jsx)("button",{type:"button",onClick:L,disabled:B,className:(0,y.cn)(s.Classes.CodeSnippetFeedbackFormSubmitButton,"text-white rounded-xl px-3 py-1.5 bg-primary dark:bg-primary-dark disabled:opacity-50 disabled:cursor-not-allowed"),children:(0,t.jsx)("span",{className:"text-sm text-white dark:text-white text-center font-medium",children:A})})]})]})};var m=e.i(501982),C=e.i(721999),v=e.i(652853),S=e.i(174080),j=e.i(39839);let w=(0,b.createContext)({feedbackModalOpen:!1,setFeedbackModalOpen:()=>{},isCodeSnippetFeedbackEnabled:!1,feedback:"",setFeedback:()=>{},status:"idle",setStatus:()=>{}}),N=({children:e,code:o,...n})=>{let[a,i]=(0,b.useState)(!1),[l,d]=(0,b.useState)(""),[c,u]=(0,b.useState)("idle"),p=(0,j.useMediaQuery)("(max-width: 1024px)"),h=(0,b.useRef)(null),{entitlements:f}=(0,b.useContext)(r.DeploymentMetadataContext),g=(0,v.checkAccess)({entitlements:f,entitlementToCheck:"CODE_SNIPPET_FEEDBACK"})&&!n.hideCodeSnippetFeedbackButton&&!!o,x=()=>"function"==typeof e?e({feedbackModalOpen:a,anchorRef:h}):e;return g?(0,t.jsxs)(w.Provider,{value:{feedbackModalOpen:a,setFeedbackModalOpen:i,feedback:l,setFeedback:d,status:c,setStatus:u,isCodeSnippetFeedbackEnabled:g},children:[x(),"undefined"!=typeof document&&(0,S.createPortal)((0,t.jsx)(m.Popover,{open:a,onOpenChange:i,children:(0,t.jsx)(m.PopoverContent,{anchor:h,positionerClassName:C.zIndex.Popup,side:p?"bottom":"right",align:p?"center":"start",className:(0,y.cn)(s.Classes.CodeSnippetFeedbackPopoverContent,"w-80 p-4 bg-white dark:bg-codeblock rounded-2xl border border-gray-950/10 dark:border-white/10"),children:(0,t.jsx)(k,{code:o,...n})})}),document.body)]}):x()};e.s(["extractCodeBlockBaseProps",()=>T],543535);let E={language:!0,filename:!0,icon:!0,lang:!0,lines:!0,wrap:!0,expandable:!0,highlight:!0,focus:!0,numberOfLines:!0,hideAskAssistantButton:!0,hideCodeSnippetFeedbackButton:!0,isSmallText:!0,nocopy:!0},T=e=>{if(!e)return{};let t={};
1return Object.keys(E).forEach(r=>{void 0!==e[r]&&(t[r]=e[r])}),t}},962730,e=>{"use strict";e.s(["AskAssistantCodeBlockButton",()=>f]);var t=e.i(843476),r=e.i(91557),o=e.i(343590),n=e.i(865420),a=e.i(395671),i=e.i(885401),s=e.i(803333),l=e.i(111048),d=e.i(477222),c=e.i(346089),u=e.i(179862),p=e.i(271645),h=e.i(453778);function f(e){let{hasChatPermissions:r,assistantConfig:o}=(0,p.useContext)(d.SearchContext);return r&&e.code&&!e.hideAskAssistantButton&&o?.askAiOnCodeBlock!==!1?(0,t.jsx)(g,{...e}):null}function g({code:e,className:f,...g}){let{hasChatPermissions:y}=(0,p.useContext)(d.SearchContext),{isChatSheetOpen:b,onChatSheetToggle:x}=(0,p.useContext)(d.ChatAssistantContext),{subdomain:k}=(0,p.useContext)(r.DeploymentMetadataContext),m=(0,o.useSelectedLocale)(),C=(0,i.useCodeBlockThemeEnum)(),v=(0,n.useAnalyticsContext)("docs.code_block.ask_ai"),S=(0,s.useCurrentPath)(),j=(0,p.useMemo)(()=>{let t=g.language||g.lang||"",r=e??"";return`lang-${t}-code-${r.slice(0,20)}`.replace(/[^a-zA-Z0-9_-]/g,"_")},[g.language,g.lang,e]),{payloadInput:w,setPayloadInput:N,isInProgress:E}=(0,a.useAssistantShared)();return(0,t.jsx)(h.CodeBlockTooltip,{text:m["tooltip.askAssistant"],children:(0,t.jsx)("div",{className:(0,u.cn)("z-10 select-none",f),children:(0,t.jsx)("button",{className:(0,u.cn)("size-6.5 flex items-center justify-center rounded-md group/ask-assistant-button","system"===C&&"[.code-block:not(:has([data-fade-overlay]))_[data-floating-buttons]_&]:bg-gray-100 dark:[.code-block:not(:has([data-fade-overlay]))_[data-floating-buttons]_&]:bg-gray-800","dark"===C&&"[.code-block:not(:has([data-fade-overlay]))_[data-floating-buttons]_&]:bg-gray-800"),id:l.Ids.AskAssistantCodeBlockButton,"aria-label":m["aria.askAssistant"],"data-chat-payload-element-id":j,onClick:()=>{if(E||!e||!y)return;b||x({entryPoint:"code-block"});let t=`\`\`\`${g.language||""}
2${e}
3\`\`\``,r=w.context||[];r.some(e=>e.elementId===j)||(N({context:[...r,{type:"code",value:t,path:S,elementId:j}]}),v({subdomain:k,query:t+"\n\nExplain this code snippet."}))},children:(0,t.jsx)(c.Sparkle3Icon,{"aria-hidden":"true",className:(0,u.cn)("size-4 shrink-0","system"===C&&"text-gray-400 group-hover/ask-assistant-button:text-gray-500 dark:text-white/40 dark:group-hover/ask-assistant-button:text-white/60","dark"===C&&"text-white/40 group-hover/ask-assistant-button:text-white/60")})})})})}},602148,e=>{"use strict";e.s(["useExpandable",()=>o]);var t=e.i(714953),r=e.i(271645);let o=(e,o)=>{let[n,a]=(0,r.useState)(!1),[i,s]=(0,r.useState)(0),l=(0,r.useRef)(null),d=(0,r.useRef)(null),c=(0,r.useCallback)(e=>{l.current=e;let t=d.current;t&&(t.disconnect(),e&&t.observe(e))},[]);return(0,r.useEffect)(()=>{if(!e)return;let r=o&&o<t.SMALL_EXPANDABLE_NUMBER_OF_LINES?30:40,n=new ResizeObserver(()=>{let e=l.current;e&&s(e.scrollHeight+r)});return d.current=n,l.current&&n.observe(l.current),()=>{n.disconnect(),d.current=null}},[e,o]),{isExpanded:n,calculatedHeight:i,contentRef:c,toggleExpanded:()=>a(e=>!e)}}},857866,e=>{"use strict";e.s(["getNodeText",()=>t,"getTitleText",()=>r]);let t=e=>"string"==typeof e||"number"==typeof e?e.toString():e instanceof Array?e.map(t).join(""):e&&"object"==typeof e&&"props"in e&&e.props&&"object"==typeof e.props&&"children"in e.props?t(e.props.children):"",r=e=>"string"==typeof e||"number"==typeof e||null!=e&&"object"==typeof e&&"type"in e&&e.type===Symbol.for("react.fragment")?t(e):""},453778,497171,714953,34567,e=>{"use strict";e.s(["CodeBlock",()=>I,"CodeBlockTooltip",()=>F,"CopyIconButton",()=>O,"CopyToClipboardButton",()=>M,"isCodeBlockFlagEnabled",()=>L],453778);var t=e.i(843476),r=e.i(772803),o=e.i(640389),n=e.i(343590),a=e.i(885401),i=e.i(476781),s=e.i(568258),l=e.i(543535),d=e.i(628083),c=e.i(760391),u=e.i(179862),p=e.i(271645),h=e.i(193726),f=e.i(962730);e.s(["BaseCodeBlock",()=>E,"SMALL_EXPANDABLE_NUMBER_OF_LINES",()=>N],714953);var g=e.i(590280),y=e.i(602148),b=e.i(152537);e.s(["getCodeString",()=>m,"useCalculateCodeLines",()=>C],497171);var x=e.i(857866),k=e.i(306864);function m(e,t,r=!1){return(t?.includes(k.SHIKI_CLASSNAME)||function e(t){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let r of t)if(e(r))return!0}if("props"in t&&t.props&&"object"==typeof t.props){if("className"in t.props&&"string"==typeof t.props.className&&t.props.className.includes(k.SHIKI_CLASSNAME))return!0;
3if("children"in t.props)return e(t.props.children)}return!1}(e))&&!r?"":(0,x.getNodeText)(e)}function C(e,t){return(0,p.useMemo)(()=>void 0!==t?t:e?function(e){if(!e||"string"!=typeof e)return 0;let t=e.match(/<span class="line/g);return t?t.length:0}(e):void 0,[e,t])}var v=e.i(650809),S=e.i(930733);let j=(0,S.default)("DotsIcon",[["path",{d:"M9 9.5C9.27614 9.5 9.5 9.27614 9.5 9C9.5 8.72386 9.27614 8.5 9 8.5C8.72386 8.5 8.5 8.72386 8.5 9C8.5 9.27614 8.72386 9.5 9 9.5Z",fill:"currentColor",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M3.25 9.5C3.52614 9.5 3.75 9.27614 3.75 9C3.75 8.72386 3.52614 8.5 3.25 8.5C2.97386 8.5 2.75 8.72386 2.75 9C2.75 9.27614 2.97386 9.5 3.25 9.5Z",fill:"currentColor",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M14.75 9.5C15.0261 9.5 15.25 9.27614 15.25 9C15.25 8.72386 15.0261 8.5 14.75 8.5C14.4739 8.5 14.25 8.72386 14.25 9C14.25 9.27614 14.4739 9.5 14.75 9.5Z",fill:"currentColor",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined"),w=e=>"transparent"===e||void 0===e,N=7,E=(0,p.forwardRef)(({expandable:e=!1,shouldHighlight:r=!0,children:o,isParentCodeGroup:n,isSmallText:s,numberOfLines:l,...d},c)=>{let{focus:h,highlight:f,lang:x,language:S,className:j,wrap:E,lines:A}=d,{isLivePreview:_}=(0,p.useContext)(g.LivePreviewContext),B=m(o,d.className,_),L=B.split("\n").some((e,t,r)=>t>0&&/[─-╿]/.test(e)&&/[─-╿]/.test(r[t-1]??"")),I=(0,a.useCodeBlockThemeEnum)(),P=(0,a.useCodeBlockThemeObject)(),{isExpanded:M,calculatedHeight:O,contentRef:F,toggleExpanded:D}=(0,y.useExpandable)(e,l),$={},R=[],H=[];if(h)try{R=JSON.parse(h)}catch{R=[]}if(f)try{H=JSON.parse(f)}catch{H=[]}H.length>0&&($.highlightedLines=H),R.length>0&&($.focusedLines=R);let U=x||S,K=(0,v.useGetShikiHighlightedHtml)(U?{codeString:B,codeBlockTheme:P,language:r?U:"text",opts:$}:{codeString:B,codeBlockTheme:P,className:r?j:"lang-text",opts:$});l=C(K,l);let z=((e,t,r)=>{let o="dark"===e?{light:k.DEFAULT_DARK_BG,dark:k.DEFAULT_DARK_BG}:{light:k.DEFAULT_LIGHT_BG,dark:k.DEFAULT_DARK_BG};return t?((e,t)=>{let r=e.split('style="');if(r.length<2)return t;let o=r[1]?.split("background-color:")[1]?.split(";")[0],n=r[1]?.split("--shiki-dark-bg:")[1]?.split(";")[0];return{light:w(o)?t.light:o,dark:w(n)?t.dark:n}})(t,o):r?((e,t)=>e&&"object"==typeof e&&"props"in e&&e.props&&"object"==typeof e.props&&"style"in e.props&&"object"==typeof e.props.style&&e.props.style&&"object"==typeof e.props.style&&"backgroundColor"in e.props.style&&"string"==typeof e.props.style.backgroundColor&&"--shiki-dark-bg"in e.props.style&&"string"==typeof e.props.style["--shiki-dark-bg"]?{light:w(e.props.style.backgroundColor)?t.light:e.props.style.backgroundColor,dark:w(e.props.style["--shiki-dark-bg"])?t.dark:e.props.style["--shiki-dark-bg"]}:t)(r,o):o})(I,K,o),W=R.length>0,G=H.length>0,V=!!K&&/class="[^"]*\bline-diff\b/.test(K),Z=e?M:!!n;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(b.ScrollArea,{ref:c,className:(0,u.cn)("w-0 min-w-full max-w-full h-full dark:bg-codeblock text-sm",L?"leading-[1.2]":"leading-6","transition-[height] duration-300 ease-in-out code-block-background","**:ring-0 **:outline-0 **:focus:ring-0 **:focus:outline-0",d.filename?"rounded-xt":"rounded-2xl","system"===I?"bg-white":"bg-codeblock",E&&"code-block-wrap whitespace-pre-wrap",A&&"has-line-numbers",W&&"has-focused",G&&"has-highlighted"),"data-component-part":"code-block-root",style:{fontVariantLigatures:"none",height:e?M?`${O}px`:`${l&&l<N?45:190}px`:n?"100%":"auto",backgroundColor:z?.light,"--shiki-dark-bg":z?.dark},children:[(0,t.jsx)(b.ScrollAreaViewport,{className:(0,u.cn)("py-3.5 px-4",E&&"overflow-x-hidden!",!Z&&"overflow-y-hidden!"),children:(0,t.jsx)(b.ScrollAreaContent,{className:"min-w-full! h-full children:my-0! children:shadow-none! children:bg-transparent!",children:(0,t.jsx)(()=>K?(0,t.jsx)("div",{suppressHydrationWarning:!0,ref:F,className:(0,u.cn)("font-mono",E?"whitespace-pre-wrap":"whitespace-pre",n&&"flex-none text-sm",n&&!e&&"h-full",s&&"text-xs",L?"leading-[1.2]":s?"leading-[1.35rem]":"leading-6"),...n&&{"data-component-part":"code-group-tab-content"},dangerouslySetInnerHTML:{__html:K}},I):(0,t.jsx)("div",{suppressHydrationWarning:!0,ref:F,className:(0,u.cn)("font-mono",E?"whitespace-pre-wrap":"whitespace-pre",n&&"flex-none text-sm",n&&!e&&"h-full",s&&"text-xs",L?"leading-[1.2]":s?"leading-[1.35rem]":"leading-6"),...n&&{"data-component-part":"code-group-tab-content"},children:o}),{})})}),!E&&(0,t.jsx)(b.ScrollAreaScrollbar,{orientation:"horizontal"}),Z&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b.ScrollAreaScrollbar,{orientation:"vertical"}),(0,t.jsx)(b.ScrollAreaCorner,{})]})]}),!G&&!e&&0===R.length&&!V&&(0,t.jsx)("div",{className:(0,u.cn)(i.Classes.CodeBlockFadeOverlay,"print:hidden"),"data-fade-overlay":!0,"aria-hidden":!0,style:{"--fade-color-light":z?.light,"--fade-color-dark":z?.dark}}),e&&(0,t.jsx)(T,{isExpanded:M,toggleExpanded:D,numberOfLines:l})]})});function T({numberOfLines:e,isExpanded:r,toggleExpanded:o}){return e?(0,t.jsx)("div",{"data-component-part":"code-block-footer",className:"px-3 py-1 flex items-center text-xs font-medium text-gray-500 dark:text-gray-400 hover:text-gray-600 dark:hover:text-gray-300",children:(0,t.jsxs)("button",{"data-component-part":"code-block-footer-button",className:"flex-1 gap-1.5 flex items-center py-1.5",onClick:o,children:[(0,t.jsx)(j,{"aria-hidden":"true",strokeWidth:2,className:"size-3.5 shrink-0 text-gray-500 dark:text-gray-400"}),r?"Collapse":`See all ${e} line${1===e?"":"s"}`]})}):null}E.displayName="BaseCodeBlock",e.s(["CodeSnippetFeedbackButton",()=>B],34567);var A=e.i(111048);let _=(0,S.default)("OctagonWarningIcon",[["path",{d:"M9 5.431V9.569",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M9 11.417C8.449 11.417 8 11.866 8 12.417C8 12.968 8.449 13.417 9 13.417C9.551 13.417 10 12.968 10 12.417C10 11.866 9.551 11.417 9 11.417Z",fill:"currentColor",stroke:"none"}],["path",{d:"M10.968 2.25H7.03301C6.50301 2.25 5.99401 2.461 5.61901 2.836L2.83701 5.618C2.46201 5.993 2.25101 6.502 2.25101 7.032V10.967C2.25101 11.497 2.46201 12.006 2.83701 12.381L5.61901 15.163C5.99401 15.538 6.50301 15.749 7.03301 15.749H10.968C11.498 15.749 12.007 15.538 12.382 15.163L15.164 12.381C15.539 12.006 15.75 11.497 15.75 10.967V7.032C15.75 6.502 15.539 5.993 15.164 5.618L12.382 2.836C12.007 2.461 11.498 2.25 10.968 2.25Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined");function B({className:e}){let r=(0,a.useCodeBlockThemeEnum)(),{isCodeSnippetFeedbackEnabled:i,setFeedbackModalOpen:s}
3=(0,p.useContext)(o.CodeSnippetFeedbackContext),l=(0,n.useSelectedLocale)();return i?(0,t.jsx)(F,{text:l["tooltip.reportIncorrectCode"],children:(0,t.jsx)("div",{className:(0,u.cn)("z-10 select-none",e),children:(0,t.jsx)("button",{className:(0,u.cn)("size-6.5 flex items-center justify-center rounded-md group/code-snippet-feedback-button","system"===r&&"[.code-block:not(:has([data-fade-overlay]))_[data-floating-buttons]_&]:bg-gray-100 dark:[.code-block:not(:has([data-fade-overlay]))_[data-floating-buttons]_&]:bg-gray-800","dark"===r&&"[.code-block:not(:has([data-fade-overlay]))_[data-floating-buttons]_&]:bg-gray-800"),id:A.Ids.CodeSnippetFeedbackButton,"aria-label":l["aria.reportIncorrectCode"],onClick:()=>s(!0),children:(0,t.jsx)(_,{"aria-hidden":"true",className:(0,u.cn)("size-4 shrink-0","system"===r&&"text-gray-400 group-hover/code-snippet-feedback-button:text-gray-500 dark:text-white/40 dark:group-hover/code-snippet-feedback-button:text-white/60","dark"===r&&"text-white/40 group-hover/code-snippet-feedback-button:text-white/60")})})})}):null}let L=e=>!0===e||"true"===e,I=function(e){let{filename:r,onCopied:n,children:s,className:d,icon:c,isSmallText:h,hideAskAssistantButton:g,nocopy:y,...b}=e,k=(0,p.useRef)(null),m=(0,x.getNodeText)(s),C=L(y),v=e=>C?null:(0,t.jsx)(M,{textToCopy:m,codeBlockRef:k,onCopied:n,...e}),S=(0,a.useCodeBlockThemeEnum)(),j=!!r||!!c;return(0,t.jsx)(o.CodeSnippetFeedbackProvider,{code:m,...(0,l.extractCodeBlockBaseProps)(e),children:({feedbackModalOpen:o,anchorRef:n})=>(0,t.jsxs)("div",{className:(0,u.cn)(i.Classes.CodeBlock,"mt-5 mb-8 not-prose rounded-2xl relative group min-w-0 print:print-color-exact","system"===S&&"text-gray-950 bg-gray-50 dark:bg-white/5 dark:text-gray-50 codeblock-light border border-gray-950/10 dark:border-white/10 dark:twoslash-dark","dark"===S&&"text-gray-50 bg-codeblock dark:bg-white/5 ring-1 ring-transparent dark:ring-white/[0.14] codeblock-dark twoslash-dark dark:twoslash-dark",j?"p-0.5":"bg-transparent dark:bg-transparent",o&&"border border-primary dark:border-primary-light",d),ref:n,...j?{"data-has-header":""}:{"data-has-floating-buttons":""},...b,children:[j?(0,t.jsxs)(P,{filename:r,icon:c,children:[(0,t.jsx)(B,{}),(0,t.jsx)(v,{}),(0,t.jsx)(f.AskAssistantCodeBlockButton,{code:m,...(0,l.extractCodeBlockBaseProps)(e)})]}):(0,t.jsxs)("div",{"data-floating-buttons":!0,className:(0,u.cn)("absolute top-3 right-4 flex items-center gap-1.5 print:hidden",(!0===e.wrap||"string"==typeof e.wrap&&"true"===e.wrap)&&"opacity-0 group-hover:opacity-100 group-focus-within:opacity-100"),children:[(0,t.jsx)(B,{}),(0,t.jsx)(v,{}),(0,t.jsx)(f.AskAssistantCodeBlockButton,{code:m,...(0,l.extractCodeBlockBaseProps)(e)})]}),(0,t.jsx)(E,{isSmallText:h,hideAskAssistantButton:g,ref:k,...e})]})})};function P({filename:e,icon:r,children:o}){let n=(0,a.useCodeBlockThemeEnum)();return(0,t.jsxs)("div",{className:"flex text-gray-400 text-xs rounded-t-[14px] leading-6 font-medium pl-4 pr-2.5 py-1","data-component-part":"code-block-header",children:[(0,t.jsxs)("div",{className:(0,u.cn)("grow-0 flex items-center gap-1.5 text-gray-700 dark:text-gray-300 min-w-0","dark"===n&&"text-gray-300"),"data-component-part":"code-block-header-filename",children:[r&&(0,t.jsx)(s.ComponentIcon,{icon:r,iconType:"regular",className:(0,u.cn)("size-3.5 bg-gray-500 dark:bg-gray-400",i.Classes.CodeBlockIcon),overrideColor:!0}),(0,t.jsx)("span",{className:"truncate min-w-0",title:e,children:e})]}),(0,t.jsx)("div",{className:"flex-1 flex items-center justify-end gap-1.5 print:hidden",children:o})]})}function M({textToCopy:e,codeBlockRef:r,onCopied:o,className:n,showTooltip:a=!0}){let i=e.trim(),[s,l]=(0,p.useState)(!1),[d,c]=(0,p.useState)(!1);if((0,p.useEffect)(()=>{navigator.clipboard?c(!1):(console.warn("The browser's Clipboard API is unavailable. The Clipboard API is only available on HTTPS."),c(!0))},[]),!i||d)return null;let u=async()=>{let e=i;if(r?.current){let t=r.current.textContent?.trim();t&&(e=t)}let t=await (0,h.copyToClipboard)(e);o&&o(t,e),"success"===t&&(l(!0),setTimeout(()=>{l(!1)},2e3))};return(0,t.jsx)(O,{onClick:u,isCopiedActive:s,className:n,showTooltip:a})}function O({onClick:e,isCopiedActive:r,showTooltip:o=!0,className:s}
3){let l=(0,n.useSelectedLocale)(),p=(0,a.useCodeBlockThemeEnum)(),h=(0,t.jsx)("button",{className:(0,u.cn)("size-6.5 flex items-center justify-center rounded-md group/copy-button","system"===p&&"[.code-block:not(:has([data-fade-overlay]))_[data-floating-buttons]_&]:bg-gray-100 dark:[.code-block:not(:has([data-fade-overlay]))_[data-floating-buttons]_&]:bg-gray-800","dark"===p&&"[.code-block:not(:has([data-fade-overlay]))_[data-floating-buttons]_&]:bg-gray-800",s),onClick:e,"data-testid":"copy-code-button","aria-label":l["aria.copyCodeBlock"],children:r?(0,t.jsx)(d.Check2Icon,{"aria-hidden":"true",strokeWidth:2,className:(0,u.cn)("size-4 shrink-0","system"===p&&"text-primary dark:text-primary-light","dark"===p&&"text-primary-light")}):(0,t.jsx)(c.DuplicateIcon,{"aria-hidden":"true",className:(0,u.cn)("size-4 shrink-0","system"===p&&"text-gray-400 group-hover/copy-button:text-gray-500 dark:text-white/40 dark:group-hover/copy-button:text-white/60","dark"===p&&"text-white/40 group-hover/copy-button:text-white/60")})}),f=(0,t.jsx)("span",{role:"status",className:"sr-only",children:r?l.copied:""}),g=(0,t.jsxs)("div",{className:(0,u.cn)(i.Classes.CodeBlockCopyButton,"z-10 select-none"),children:[h,f]});return o?(0,t.jsx)(F,{text:r?l["tooltip.copied"]:l["tooltip.copy"],children:g}):g}function F({text:e,children:o}){return(0,t.jsx)(r.TooltipProvider,{delay:100,children:(0,t.jsxs)(r.Tooltip,{children:[(0,t.jsx)(r.TooltipTrigger,{render:o}),(0,t.jsx)(r.TooltipContent,{side:"top",className:"text-xs px-1.5 py-0.5 bg-primary-dark dark:bg-primary-dark text-tooltip-foreground border-0 dark:border-0",showArrow:!1,children:e})]})})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.