PageSourceSearch

https://explainers-site.vercel.app/docs/_next/static/chunks/3b63e9…?dpl=dpl_7BxUepst9VCT7wzw6VxNfFCKgbtv

js explainers-site.vercel.app collected 2026-10-03 06:56:33 UTC 103,675 bytes, 10 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,343534,e=>{"use strict";function t(e){return{isWide:"wide"===e.mode,isCenter:"center"===e.mode,isCustom:"custom"===e.mode,isFrame:"frame"===e.mode,isAssistant:"assistant"===e.mode,isApiExample:!!(e.api||e.openapi||e.asyncapi||e.graphql?.kind==="query"||e.graphql?.kind==="mutation")}}e.s(["getPageMode",()=>t])},560179,536224,e=>{"use strict";e.s(["canCopyImages",()=>d,"copyImageToClipboard",()=>u,"downloadMedia",()=>p,"fetchMedia",()=>c],560179);var t=e.i(206558);e.s(["ICO_MIME_TYPE",()=>a,"PNG_MIME_TYPE",()=>r,"mimeTypeMap",()=>n],536224);let r="image/png",a="image/x-icon",n=new Map([["ico",a],["png",r],["svg","image/svg+xml"],["gif","image/gif"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["webp","image/webp"]]);var o=e.i(431392),i=e.i(961508);let l=t.NEXT_PUBLIC.BASE_PATH,s=l.slice(1),c=async e=>{let t=e===l||e.startsWith(`${l}/`),r=e===s||e.startsWith(`${s}/`);if(e.startsWith("/")&&!t||!(0,i.isAbsoluteUrl)(e)&&/^\w/.test(e)&&!r){let t=`${l}/${e}`.split("/").filter(Boolean).join("/");e=(0,o.optionallyAddLeadingSlash)(t)}let a=await fetch(e);if(!a.ok)return a;let c=(e=>{try{let t=new URL(e,window.location.origin).pathname.match(/\.([a-zA-Z0-9]+)$/);return t?.[1]??"png"}catch{return"png"}})(e),d=n.get(c)??`image/${c}`,u=await a.blob(),p=URL.createObjectURL(u);return{blob:u,blobUrl:p,ext:c,mimeType:d}},d=()=>"navigator"in globalThis&&"clipboard"in navigator&&"write"in navigator.clipboard&&"function"==typeof navigator.clipboard.write,u=async e=>{try{let t,a=await c(e);if(a instanceof Response)throw Error(`${a.status} ${a.statusText}: Failed to fetch image`);let{mimeType:n,blob:o,blobUrl:i}=a;return t=n===r?o:await new Promise((e,t)=>{let a=new Image;a.onload=()=>((e,t,a)=>{let n=document.createElement("canvas");n.width=e.naturalWidth,n.height=e.naturalHeight;let o=n.getContext("2d");o?.drawImage(e,0,0),n.toBlob(e=>e?t(e):a(Error("Failed to convert image to PNG")),r)})(a,e,t),a.onerror=()=>t(Error("Failed to load image")),a.src=i}),URL.revokeObjectURL(i),await navigator.clipboard.write([new ClipboardItem({[r]:t})]),!0}catch(e){return console.error(e),!1}},p=async e=>{try{let t=await c(e);if(t instanceof Response)return window.open(e,"_blank","noopener,noreferrer"),!1;let{blobUrl:r,ext:a}=t,n=document.createElement("a");return n.href=r,n.download=`${(e=>{try{let t=new URL(e,window.location.origin).pathname.split("/").filter(Boolean).pop();if(!t)return"image";return t.replace(/\.[a-zA-Z0-9]+$/,"")||"image"}catch{return"image"}})(e)}.${a}`,document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r),!0}catch{return window.open(e,"_blank","noopener,noreferrer"),!1}}},633945,(e,t,r)=>{t.exports=function(e){if("string"!=typeof e)return!1;var t=e.match(a);if(!t)return!1;var r=t[1];return!!r&&!!(n.test(r)||o.test(r))};var a=/^(?:\w+:)?\/\/(\S+)$/,n=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,o=/^[^\s\.]+\.\S{2,}$/},114140,(e,t,r)=>{"use strict";var a=e.r(633945),n=/(?:(?:[^:]+:)?[/][/])?(?:.+@)?([^/]+)([/][^?#]+)/;t.exports=function(e,t){var r={};if(t=t||{},!e||(e.url&&(e=e.url),"string"!=typeof e))return null;var o=e.match(/^([\w-_]+)\/([\w-_\.]+)(?:#([\w-_\.]+))?$/),i=e.match(/^github:([\w-_]+)\/([\w-_\.]+)(?:#([\w-_\.]+))?$/),l=e.match(/^git@[\w-_\.]+:([\w-_]+)\/([\w-_\.]+)$/);if(o)r.user=o[1],r.repo=o[2],r.branch=o[3]||"master",r.host="github.com";else if(i)r.user=i[1],r.repo=i[2],r.branch=i[3]||"master",r.host="github.com";else if(l)r.user=l[1],r.repo=l[2].replace(/\.git$/i,""),r.branch="master",r.host="github.com";else{if(!a(e=e.replace(/^git\+/,"")))return null;var s=e.match(n)||[],c=s[1],d=s[2];if(!c||"github.com"!==c&&"www.github.com"!==c&&!t.enterprise)return null;var u=d.match(/^\/([\w-_]+)\/([\w-_\.]+)(\/tree\/[\%\w-_\.\/]+)?(\/blob\/[\%\w-_\.\/]+)?/);if(!u)return null;if(r.user=u[1],r.repo=u[2].replace(/\.git$/i,""),r.host=c||"github.com",u[3]&&/^\/tree\/master\//.test(u[3]))r.branch="master",r.path=u[3].replace(/\/$/,"");else if(u[3]){var p=u[3].replace(/^\/tree\//,"").match(/[\%\w-_.]*\/?[\%\w-_]+/);r.branch=p&&p[0]}else if(u[4]){var p=u[4].replace(/^\/blob\//,"").match(/[\%\w-_.]*\/?[\%\w-_]+/);r.branch=p&&p[0]}else r.branch="master"}return"github.com"===r.host?r.apiHost="api.github.com":r.apiHost=r.host
1+"/api/v3",r.tarball_url="https://"+r.apiHost+"/repos/"+r.user+"/"+r.repo+"/tarball/"+r.branch,r.clone_url="https://"+r.host+"/"+r.user+"/"+r.repo,"master"===r.branch?(r.https_url="https://"+r.host+"/"+r.user+"/"+r.repo,r.travis_url="https://travis-ci.org/"+r.user+"/"+r.repo,r.zip_url="https://"+r.host+"/"+r.user+"/"+r.repo+"/archive/master.zip"):(r.https_url="https://"+r.host+"/"+r.user+"/"+r.repo+"/blob/"+r.branch,r.travis_url="https://travis-ci.org/"+r.user+"/"+r.repo+"?branch="+r.branch,r.zip_url="https://"+r.host+"/"+r.user+"/"+r.repo+"/archive/"+r.branch+".zip"),r.path&&(r.https_url+=r.path),r.api_url="https://"+r.apiHost+"/repos/"+r.user+"/"+r.repo,r}},638702,167808,579694,464991,401819,891376,35884,267823,602875,287071,437953,311005,771693,896438,688527,179958,973469,52693,e=>{"use strict";e.s(["Accordion",()=>f],638702);var t=e.i(843476),r=e.i(857866),a=e.i(865420),n=e.i(769728),o=e.i(476781),i=e.i(568258),l=e.i(193726),s=e.i(895849),c=e.i(866285),d=e.i(179862),u=e.i(271645),p=e.i(343590),m=e.i(930733);let g=(0,m.default)("CaretDownFilledIcon",[["path",{d:"M14.0238 4.00002H3.97576C3.33776 4.00002 2.74976 4.34702 2.44276 4.90602C2.13576 5.46502 2.15576 6.14802 2.49776 6.68702L7.52176 14.61C7.84476 15.119 8.39676 15.422 8.99976 15.422C9.60276 15.422 10.1548 15.118 10.4778 14.61L15.5028 6.68602C15.8438 6.14702 15.8648 5.46402 15.5578 4.90502C15.2508 4.34602 14.6628 3.99902 14.0248 3.99902L14.0238 4.00002Z",fill:"currentColor"}]],"filled"),h=function({id:e,contentId:r,titleId:a,title:n,description:o,open:i,icon:l,coverClass:s}){let{divisions:c}=(0,u.useContext)(p.NavigationContext),m=c.tabs.length>0;return(0,t.jsxs)("summary",{className:(0,d.cn)("relative not-prose flex flex-row items-center content-center w-full cursor-pointer","list-none [&::-webkit-details-marker]:hidden",s),onMouseDown:e=>{e.detail>1&&e.preventDefault()},"aria-controls":r,"aria-expanded":i,"data-component-part":"accordion-button",children:[(0,t.jsx)("div",{id:e,className:(0,d.cn)("absolute",m?"top-[-8rem] [[data-banner-state=visible]_&]:top-[-10.5rem]":"top-[-4.5rem] [[data-banner-state=visible]_&]:top-[-7rem]")}),(0,t.jsx)("div",{className:"flex size-4 shrink-0 items-center justify-center","data-component-part":"accordion-caret-right",children:(0,t.jsx)(g,{"aria-hidden":"true",className:(0,d.cn)("size-3 shrink-0 text-gray-600 transition-transform duration-200 dark:text-gray-400",!i&&"-rotate-90")})}),l?(0,t.jsx)("div",{className:"size-4 shrink-0 fill-gray-800 dark:fill-gray-100 text-gray-800 dark:text-gray-100","data-component-part":"accordion-icon",children:l}):null,(0,t.jsxs)("div",{className:"leading-tight text-left w-full min-w-0",contentEditable:!1,"data-component-part":"accordion-title-container",children:[(0,t.jsx)("p",{id:a,className:"m-0 font-medium leading-6 text-gray-900 dark:text-gray-200","data-component-part":"accordion-title",children:n}),o?(0,t.jsx)("p",{className:"m-0 text-gray-900 dark:text-gray-200","data-component-part":"accordion-description",children:o}):null]})]})};function f({id:e,title:n,description:o,defaultOpen:l=!1,icon:s,iconType:c,children:d,className:u,_disabled:p}){let m=(0,a.useAnalyticsContext)("docs.accordion.open"),g=(0,a.useAnalyticsContext)("docs.accordion.close"),h="string"==typeof s?(0,t.jsx)(i.ComponentIcon,{icon:s,iconType:c,className:"w-4 h-4"}):s;return(0,t.jsx)(y,{id:e,title:n,description:o,defaultOpen:!0===l||"string"==typeof l&&"true"===l,onChange:e=>{let t=(0,r.getTitleText)(n)||void 0;e?m({title:t}).catch(console.error):g({title:t}).catch(console.error)},icon:h,className:u,_disabled:p,children:d})}let x=(0,u.createContext)({parentIds:[]}),b=(e,t,r)=>e[r.length]===t&&r.every((t,r)=>e[r]===t);function y({id:e,title:a,description:i,defaultOpen:p=!1,icon:m,onChange:g,variant:f="rounded",children:y,className:v,_disabled:k}){let w=(0,r.getTitleText)(a),C=e??("string"==typeof a||w?(0,c.default)(w.replace(":","-"),{decamelize:!1}):void 0),j=(0,u.useId)(),N=C?`${C}-accordion-children`:j,_=(0,u.useId)(),E=C?`${C}-accordion-title`:_,T=(0,u.useContext)(x),[I,M]=(0,u.useState)(p);(0,n.useIsomorphicLayoutEffect)(()=>
1{if(!C)return;let e=window.location.hash.substring(1).split(":");b(e,C,T.parentIds)&&(M(!0),e.length===T.parentIds.length+1&&(0,s.scrollElementIntoView)({id:C,preScrollCallback(){history.scrollRestoration="manual"}}))},[]);let S=(0,u.useRef)(T.parentIds);S.current=T.parentIds,(0,u.useEffect)(()=>{if(!C)return;let e=()=>{let e=window.location.hash.substring(1).split(":");b(e,C,S.current)&&(M(!0),e.length===S.current.length+1&&(0,s.scrollElementIntoView)({id:C,preScrollCallback(){history.scrollRestoration="manual"}}))};return window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[C]);let L=e=>`${window.location.pathname}${e?`#${e}`:""}`,{parentClass:A,coverClass:$,contentClass:P}="minimalist"===f?{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:"gap-3 px-5 py-3.5 hover:bg-gray-100 hover:dark:bg-gray-800",contentClass:"px-5 pb-3.5"};return(0,t.jsx)(x.Provider,{value:{...T,parentIds:[...T.parentIds,...void 0!=C?[C]:[]]},children:(0,t.jsxs)("details",{open:I,onKeyDownCapture:e=>{if(e.defaultPrevented)return;let t=e.target;if(("TEXTAREA"===t.tagName||"INPUT"===t.tagName)&&" "===e.key){e.preventDefault();let r=t.selectionStart??0,a=t.selectionEnd??0,n=t.value,o="TEXTAREA"===t.tagName?HTMLTextAreaElement.prototype:HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(o,"value")?.set;i?.call(t,n.slice(0,r)+" "+n.slice(a)),t.selectionStart=t.selectionEnd=r+1,t.dispatchEvent(new Event("input",{bubbles:!0}))}},onToggle:e=>{let t=e.currentTarget.open;if(t!==I){M(t);if(M(t),!k){if(t&&C)!function(e,t){if(k||"undefined"==typeof document||!document.hasFocus())return;let r=L(e.join(":"));(0,l.copyToClipboard)(r),window.history.replaceState({...window.history.state,as:r,url:r},"",r)}([...T.parentIds,C],0);else{let e=L(T.parentIds.join(":"));window.history.replaceState({...window.history.state,as:e,url:e},"",e)}g&&g(t)}}},className:(0,d.cn)(o.Classes.Accordion,A,"cursor-default",v),children:[(0,t.jsx)(h,{id:C,contentId:N,titleId:E,title:a,description:i,open:I,icon:m,coverClass:$}),(0,t.jsx)("div",{id:N,role:"region","aria-labelledby":E,className:(0,d.cn)(P,"prose prose-gray dark:prose-invert overflow-x-auto cursor-default"),"data-component-part":"accordion-content",children:y})]},w||"accordion")})}function v({children:e,className:r}){return(0,t.jsx)("div",{className:(0,d.cn)(o.Classes.AccordionGroup,"[&>details]:border-0 [&>details]:rounded-none [&>details>summary]:rounded-none [&>details]:mb-0 overflow-hidden mt-0 mb-3 rounded-2xl prose prose-gray dark:prose-invert divide-y! divide-inherit! border-standard",r),children:e})}e.s(["AccordionGroup",()=>v],167808),e.s(["CALLOUT_THEMES",()=>er,"Callout",()=>ep,"Check",()=>ed,"Danger",()=>eu,"Info",()=>ei,"Note",()=>es,"Tip",()=>ec,"Warning",()=>el],579694);let k={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32},w=e=>[e>>16&255,e>>8&255,255&e],C=e=>w(parseInt(e,16)),j=e=>{let t=Object.hasOwn(k,e)?k[e]:void 0;return void 0===t?void 0:w(t)},N=/^#([a-f0-9]{3,4}|[a-f0-9]{6}(?:[a-f0-9]{2})?)$/i,_=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,E=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,T=/^(\w+)$/,I=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,M=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,S=(e,t)=>Math.max(0,Math.min(t,e)),L=e=>[e(0),e(1),e(2)],A=(e,t)=>
1e?S(t?.01*parseFloat(e):parseFloat(e),1):1,$=e=>(Number(e)%360+360)%360,P=(e,t,r)=>{let a=e/360,n=t/100,o=r/100;if(0===n)return[255*o,255*o,255*o];let i=o<.5?o*(1+n):o+n-o*n,l=2*o-i;return L(e=>{let t=a+-(1/3*(e-1));return(t<0&&t++,t>1&&t--,6*t<1)?(l+(i-l)*6*t)*255:2*t<1?255*i:3*t<2?(l+(i-l)*(2/3-t)*6)*255:255*l})},R=(e,t,r)=>{let a=e/360,n=t/100,o=r/100,i=n+o;i>1&&(n/=i,o/=i);let l=Math.floor(6*a),s=1-o,c=6*a-l;(1&l)!=0&&(c=1-c);let d=n+c*(s-n),[u,p,m]={1:[d,s,n],2:[n,s,d],3:[n,d,s],4:[d,n,s],5:[s,n,d]}[l]??[s,d,n];return[255*u,255*p,255*m]},z=(e,t,r)=>{let a=t.exec(e);if(!a?.[1]||!a[2]||!a[3])return;let n=parseFloat(a[4]??"");return{rgb:r($(a[1]),S(parseFloat(a[2]),100),S(parseFloat(a[3]),100)),alpha:S(isNaN(n)?1:n,1)}},H=(e,t,r)=>{let a="object"==typeof e&&null!==e?String(e):e,n=("string"==typeof a?Number(`${a}16`):Number(a)+16)/116,o=Number(t)/500+n,i=n-Number(r)/200,l=n**3,s=o**3,c=i**3;return n=l>.008856?l:(n-16/116)/7.787,D(95.047*(o=s>.008856?s:(o-16/116)/7.787),100*n,108.883*(i=c>.008856?c:(i-16/116)/7.787))},D=(e,t,r)=>{let a=[e/100*3.2406+-(t/100*1.5372)+-(r/100*.4986),-(e/100*.9689)+t/100*1.8758+r/100*.0415,e/100*.0557+-(t/100*.204)+r/100*1.057];return L(e=>{let t=a[e]??0;return 255*Math.min(Math.max(0,t>.0031308?1.055*t**(1/2.4)-.055:12.92*t),1)})},F=e=>[e,e,e],V=e=>t=>e(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),B=e=>t=>e([t[0]].join()),O=["r g b",e=>e,[255,255,255]],U=new Map([O,["h s l",V(P),[360,100,100]],["h s v",V((e,t,r)=>{let a=e/60,n=t/100,o=r/100*255,i=a-Math.floor(a),l=o*(1-n),s=o*(1-n*i),c=o*(1-n*(1-i));return[[o,c,l],[s,o,l],[l,o,c],[l,s,o],[c,l,o],[o,l,s]][Math.floor(a)%6]}),[360,100,100]],["h w b",V(R),[360,100,100]],["c m y k",V((...e)=>{let t=e[3]/100;return L(r=>(1-Math.min(1,e[r]/100*(1-t)+t))*255)}),[100,100,100,100]],["x y z",V(D),[95.047,100,108.833]],["l a b",V(H),[100]],["l c h",e=>{let t=Number(e[2])/360*2*Math.PI,r=Number(e[1]);return H(e[0],r*Math.cos(t),r*Math.sin(t))}],["hex",B(e=>{let t=/[a-f0-9]{6}|[a-f0-9]{3}/i.exec(e)?.[0];return t?C(3===t.length?[...t].map(e=>e+e).join(""):t):[0,0,0]})],["keyword",B(j)],["ansi16",B(e=>{let t=Number(e),r=t%10;if(0===r||7===r)return t>50&&(r+=3.5),F(r/10.5*255);let a=(~~(t>50)+1)*.5;return L(e=>(r>>e&1)*a*255)})],["ansi256",B(e=>{let t=Number(e);if(t>=232)return F((t-232)*10+8);let r=t-16,a=r%36;return[Math.floor(r/36)/5*255,Math.floor(a/6)/5*255,a%6/5*255]})],["h c g",V((e,t,r)=>{let a=t/100,n=r/100;if(0===a)return F(255*n);let o=e/360%1*6,i=o%1,l=1-i,s={0:[1,i,0],1:[l,1,0],2:[0,1,i],3:[0,l,1],4:[i,0,1]}[Math.floor(o)]??[1,0,l],c=(1-a)*n;return L(e=>(a*s[e]+c)*255)}),[360,100,100]],["r16 g16 b16",V((...e)=>L(t=>e[t]/65535*255))],["gray",B(e=>F(Number(e)/100*255))]].map(e=>[e[0].split(" ").sort().join(""),e])),G=(e,t)=>{let r=[...Array.isArray(e)?e:[e],t],a=e=>{let t=r[e];return"number"==typeof t?S(t,255):0},n=r[3];return{rgb:[a(0),a(1),a(2)],alpha:S("number"==typeof n?n:1,1)}},W=e=>{let t=Math.round(e).toString(16).toUpperCase();return t.length<2?`0${t}`:t},q=([e,t,r])=>`#${W(e)}${W(t)}${W(r)}`,Z=({rgb:e,alpha:t},r)=>{let a=(1-t+1)/2,n=1-a;return L(t=>S(a*r[t]+n*e[t],255))},X=(0,m.default)("CheckCalloutIcon",[["path",{d:"M 15.4195 3.7055 C 15.859 4.1449 15.859 4.8551 15.4195 5.2945 L 6.4195 14.2945 C 5.9801 14.734 5.2699 14.734 4.8305 14.2945 L 0.3295 9.7945 C -0.1098 9.3551 -0.1098 8.6449 0.3295 8.2055 C 0.7689 7.766 1.4811 7.766 1.9206 8.2055 L 5.5934 11.9074 L 13.8305 3.7055 C 14.2699 3.2653 14.9801 3.2653 15.4195 3.7055 H 15.4195 z",fill:"currentColor",stroke:"none"}]],"outlined"),K=(0,m.default)("DangerCalloutIcon",[["path",{d:"M 0.6012 10.2656 c -0.4535 -0.784 -0.4535 -1.7473 0 -2.5312 L 3.7055 2.359 c 0.4535 -0.784 1.2867 -1.2656 2.1938 -1.2656 l 6.2086 0 c 0.9035 0 1.7402 0.4816 2.1938 1.2656 L 17.3988 7.7344 c 0.4535 0.784 0.4535 1.7473 0 2.5312 L 14.2945 15.641 c -0.4535 0.784 -1.2867 1.2656 -2.1938 1.2656 l -6.2086 0 c -0.9035 0 -1.7402 -0.4816 -2.1938 -1.2656 L 0.6012 10.2656 z m 1.4625 -1.6875 c -0.1512 0.2602 -0.1512 0.5836 0 0.8438 l 3.1043 5.3754 c 0.1512 0.2602 0.4289 0.4219 0.7313 0.4219 l 6.2086 0 c 0.3023 0 0.5801 -0.1617 0.7313 -0.4219 L 15.9398 9.4219 c 0.1512 -0.2602 0.1512 -0.5836 0 -0.8438 L 12.8355 3.2027 c -0.1512 -0.2602 -0.4289 -0.4219 -0.7313 -0.4219 l -6.2086 0 c -0.3023 0 -0.5801 0.1617 -0.7313 
10.4219 L 2.0602 8.5781 z M 9 4.5 c 0.4676 0 0.8438 0.3762 0.8438 0.8438 l 0 3.9375 c 0 0.4676 -0.3762 0.8438 -0.8438 0.8438 s -0.8438 -0.3762 -0.8438 -0.8438 l 0 -3.9375 c 0 -0.4676 0.3762 -0.8438 0.8438 -0.8438 z M 7.875 12.375 a 1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 1 1 -2.25 0 z",fill:"currentColor",stroke:"none"}]],"outlined"),J=(0,m.default)("InfoCalloutIcon",[["path",{d:"M 7.2 0 C 3.2231 0 0 3.2231 0 7.2 C 0 11.1768 3.2231 14.4 7.2 14.4 C 11.1768 14.4 14.4 11.1768 14.4 7.2 C 14.4 3.2231 11.1768 0 7.2 0 Z M 7.2 13.05 C 3.9741 13.05 1.35 10.4257 1.35 7.2 C 1.35 3.9743 3.9741 1.35 7.2 1.35 C 10.426 1.35 13.05 3.9743 13.05 7.2 C 13.05 10.4257 10.426 13.05 7.2 13.05 Z M 8.325 9.45 H 7.875 V 6.975 C 7.875 6.6038 7.5741 6.3 7.2 6.3 H 6.3 C 5.9288 6.3 5.625 6.6038 5.625 6.975 C 5.625 7.3462 5.9288 7.65 6.3 7.65 H 6.525 V 9.45 H 6.075 C 5.7038 9.45 5.4 9.7538 5.4 10.125 C 5.4 10.4962 5.7038 10.8 6.075 10.8 H 8.325 C 8.6977 10.8 9 10.4977 9 10.125 C 9 9.7523 8.6991 9.45 8.325 9.45 Z M 7.2 5.4 C 7.697 5.4 8.1 4.997 8.1 4.5 C 8.1 4.003 7.697 3.6 7.2 3.6 C 6.703 3.6 6.3 4.0022 6.3 4.5 C 6.3 4.9978 6.7022 5.4 7.2 5.4 Z",fill:"currentColor",stroke:"none"}]],"outlined"),Y=(0,m.default)("NoteCalloutIcon",[["path",{d:"M 9 1.6714 C 13.0371 1.6714 16.3286 4.9629 16.3286 9 C 16.3286 13.0371 13.0371 16.3286 9 16.3286 C 7.0574 16.3252 5.1953 15.552 3.8217 14.1783 C 2.448 12.8047 1.6748 10.9426 1.6714 9 C 1.6714 4.9629 4.9629 1.6714 9 1.6714 Z M 9 0 C 4.0371 0 0 4.0371 0 9 C 0 13.9629 4.0371 18 9 18 C 13.9629 18 18 13.9629 18 9 C 18 4.0371 13.9629 0 9 0 Z M 10.2857 3.8571 H 7.7143 V 10.2857 H 10.2857 V 3.8571 Z M 10.2857 11.5714 H 7.7143 V 14.1429 H 10.2857 V 11.5714 Z",fill:"currentColor",stroke:"none",fillRule:"evenodd",clipRule:"evenodd"}]],"outlined"),Q=(0,m.default)("TipCalloutIcon",[["path",{d:"M 4.0216 15.9727 C 4.0216 16.1941 4.0855 16.4101 4.2074 16.5947 L 4.81 17.4979 C 4.9946 17.7747 5.4137 18 5.7467 18 H 7.9149 C 8.2468 18 8.6659 17.775 8.8505 17.4979 L 9.451 16.5951 C 9.5543 16.439 9.6391 16.1601 9.6391 15.9727 L 9.6436 14.5945 H 4.0181 L 4.0216 15.9727 Z M 6.8308 0 C 3.2453 0.0113 0.6429 2.9171 0.6429 6.1563 C 0.6429 7.7167 1.2209 9.1392 2.1744 10.2278 C 2.7556 10.8901 3.663 12.2751 4.0104 13.443 C 4.0115 13.4518 4.0137 13.4612 4.0148 13.4706 H 9.6473 C 9.6483 13.4612 9.6505 13.4524 9.6517 13.443 C 9.9988 12.2751 10.9065 10.8901 11.4877 10.2278 C 12.4422 9.1695 13.0189 7.749 13.0189 6.1563 C 13.0189 2.7705 10.2483 0.0001 6.8308 0 Z M 10.2202 9.1449 C 9.6696 9.7724 8.9882 10.7727 8.4956 11.8131 H 5.1692 C 4.6766 10.7727 3.9953 9.7724 3.445 9.1452 C 2.7257 8.3257 2.3305 7.2463 2.3305 6.1563 C 2.3305 3.9835 4.0216 1.6964 6.7992 1.6876 C 9.3131 1.6876 11.3312 3.7058 11.3312 6.1563 C 11.3312 7.2463 10.9374 8.3257 10.2202 9.1449 Z M 6.2683 2.8127 C 4.7178 2.8127 3.4556 4.0749 3.4556 5.6254 C 3.4556 5.9364 3.7072 6.188 4.0181 6.188 C 4.3291 6.188 4.5807 5.9348 4.5807 5.6254 C 4.5807 4.6948 5.3376 3.9378 6.2683 3.9378 C 6.5792 3.9378 6.8308 3.6865 6.8308 3.3756 C 6.8308 3.0647 6.5777 2.8127 6.2683 2.8127 Z",fill:"currentColor",stroke:"none"}]],"outlined"),ee={info:{Icon:J,className:"flex-none size-5",colorClassName:"text-neutral-800 dark:text-neutral-300"},warning:{Icon:(0,m.default)("WarningCalloutIcon",[["path",{d:"M 9 6.75 v 1.5 m 0 3 h 0.0075 m -5.2035 3 h 10.392 c 1.155 0 1.8765 -1.2503 1.299 -2.25 L 10.299 3 c -0.5775 -0.9997 -2.0205 -0.9997 -2.598 0 L 2.505 12 c -0.5775 0.9997 0.144 2.25 1.299 2.25 z",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}]],"outlined"),className:"flex-none size-5",colorClassName:"text-yellow-800 dark:text-yellow-300"},note:{Icon:Y,className:"size-4",colorClassName:"text-blue-800 dark:text-blue-300"},tip:{Icon:Q,className:"size-4.5",colorClassName:"text-green-800 dark:text-green-300"},check:{Icon:X,className:"size-4",colorClassName:"text-green-800 dark:text-green-300"},danger:{Icon:K,className:"flex-none size-4",colorClassName:"text-red-800 dark:text-red-300"}},et=({type:e,colorClassName:r})=>{let{Icon:a,className:n,colorClassName:o}=ee[e];return(0,t.jsx)(a,{"aria-hidden":"true",className:(0,d.cn)(n,r??o)})},er={info:{icon:(0,t.jsx)(et,{type:"info"}),container:"border-neutral-200 bg-neutral-50 dark:border-neutral-700 dark:bg-white/10",contentText:"text-neutral-800 dark:text-neutral-300",cardSelectors:"[&_[data-component-part=card-title]]:text-neutral-900 dark:[&_[data-component-part=card-title]]:text-neutral-100 [&_[data-component-part=card-content]]:text-neutral-800 dark:[&_[data-component-part=card-content]]:text-neutral-300 [&_[data-component-part=card-icon]]:text-neutral-800 [&_[data-component-part=card-icon]]:fill-neutral-800 dark:[&_[data-component-part=card-icon]]:text-neutral-300 dark:[&_[data-component-part=card-icon]]:fill-neutral-300",iconBgClassName:"bg-neutral-800 dark:bg-neutral-300"},warning:{icon:(0,t.jsx)(et,{type:"warning"}),container:"border-yellow-200 bg-yellow-50 dark:border-yellow-900 dark:bg-yellow-600/20",contentText:"text-yellow-800 dark:text-yellow-300",cardSelectors:"[&_[data-component-part=card-title]]:text-yellow-900 dark:[&_[data-component-part=card-title]]:text-yellow-200 [&_[data-component-part=card-content]]:text-yellow-800 dark:[&_[data-component-part=card-content]]:text-yellow-300 [&_[data-component-part=card-icon]]:text-yellow-800 [&_[data-component-part=card-icon]]:fill-yellow-800 dark:[&_[data-component-part=card-icon]]:text-yellow-300 dark:[&_[data-component-part=card-icon]]:fill-yellow-300",iconBgClassName:"bg-yellow-800 dark:bg-yellow-300"},note:{icon:(0,t.jsx)(et,{type:"note"}),container:"border-blue-200 bg-blue-50 dark:border-blue-900 dark:bg-blue-600/20",contentText:"text-blue-800 dark:text-blue-300",cardSelectors:"[&_[data-component-part=card-title]]:text-blue-900 dark:[&_[data-component-part=card-title]]:text-blue-200 [&_[data-component-part=card-content]]:text-blue-800 dark:[&_[data-component-part=card-content]]:text-blue-300 [&_[data-component-part=card-icon]]:text-blue-800 [&_[data-component-part=card-icon]]:fill-blue-800 dark:[&_[data-component-part=card-icon]]:text-blue-300 dark:[&_[data-component-part=card-icon]]:fill-blue-300",iconBgClassName:"bg-blue-800 dark:bg-blue-300"},tip:{icon:(0,t.jsx)(et,{type:"tip"}),container:"border-green-200 bg-green-50 dark:border-green-900 dark:bg-green-600/20",contentText:"text-green-800 dark:text-green-300",cardSelectors:"[&_[data-component-part=card-title]]:text-green-900 dark:[&_[data-component-part=card-title]]:text-green-200 [&_[data-component-part=card-content]]:text-green-800 dark:[&_[data-component-part=card-content]]:text-green-300 [&_[data-component-part=card-icon]]:text-green-800 [&_[data-component-part=card-icon]]:fill-green-800 dark:[&_[data-component-part=card-icon]]:text-green-300 dark:[&_[data-component-part=card-icon]]:fill-green-300",iconBgClassName:"bg-green-800 dark:bg-green-300"},check:{icon:(0,t.jsx)(et,{type:"check"}),container:"border-green-200 bg-green-50 dark:border-green-900 dark:bg-green-600/20",contentText:"text-green-800 dark:text-green-300",cardSelectors:"[&_[data-component-part=card-title]]:text-green-900 dark:[&_[data-component-part=card-title]]:text-green-200 [&_[data-component-part=card-content]]:text-green-800 dark:[&_[data-component-part=card-content]]:text-green-300 [&_[data-component-part=card-icon]]:text-green-800 [&_[data-component-part=card-icon]]:fill-green-800 dark:[&_[data-component-part=card-icon]]:text-green-300 dark:[&_[data-component-part=card-icon]]:fill-green-300",iconBgClassName:"bg-green-800 dark:bg-green-300"},danger:{icon:(0,t.jsx)(et,{type:"danger"}),container:"border-red-200 bg-red-50 dark:border-red-900 dark:bg-red-600/20",contentText:"text-red-800 dark:text-red-300",cardSelectors:"[&_[data-component-part=card-title]]:text-red-900 dark:[&_[data-component-part=card-title]]:text-red-200 [&_[data-component-part=card-content]]:text-red-800 dark:[&_[data-component-part=card-content]]:text-red-300 [&_[data-component-part=card-icon]]:text-red-800 [&_[data-component-part=card-icon]]:fill-red-800 dark:[&_[data-component-part=card-icon]]:text-red-300 dark:[&_[data-component-part=card-icon]]:fill-red-300",iconBgClassName:"bg-red-800 dark:bg-red-300"}};
1function ea({children:e,icon:r,iconType:a,color:n,className:l,childrenClassName:s,calloutType:c,label:u,customStyle:p,customTextStyle:m}){let g="string"==typeof r?r.trim()?(0,t.jsx)(i.ComponentIcon,{icon:r,iconType:a,color:n,className:"size-4 m-0! shrink-0"}):null:r;return(0,t.jsxs)("div",{role:u?"note":void 0,"aria-label":u,className:(0,d.cn)(o.Classes.Callout,"my-4 px-5 py-4 overflow-hidden rounded-2xl flex gap-3",l),style:{...p,...m},"data-callout-type":c,children:[!!g&&(0,t.jsx)("div",{className:"mt-0.5 w-4","data-component-part":"callout-icon",children:g}),(0,t.jsx)("div",{className:(0,d.cn)("text-sm prose dark:prose-invert min-w-0 w-full [&_kbd]:bg-background-light dark:[&_kbd]:bg-background-dark [&_code]:text-current! [&_kbd]:text-current! [&_a]:text-current! [&_a]:border-current [&_strong]:text-current!",s),style:m,"data-component-part":"callout-content",children:e})]})}let en=e=>{let t=e?(e=>{try{if(null==e)return{rgb:[0,0,0],alpha:1};if("string"==typeof e)return(e=>{let t=(e=>{switch(e.substring(0,3).toLowerCase()){case"hsl":return z(e,I,P);case"hwb":return z(e,M,R);default:return(e=>{let t=N.exec(e)?.[1];if(t){let e=t.length<5?[...t].map(e=>e+e).join(""):t;return{rgb:C(e.slice(0,6)),alpha:e.length>6?parseInt(e.slice(6),16)/255:1}}let r=_.exec(e);if(r)return{rgb:L(e=>S(parseInt(r?.[e+1]??"",10),255)),alpha:A(r[4],r[5])};if(r=E.exec(e))return{rgb:L(e=>S(Math.round(2.55*parseFloat(r?.[e+1]??"")),255)),alpha:A(r[4],r[5])};let a=T.exec(e)?.[1];if("transparent"===a)return{rgb:[0,0,0],alpha:0};let n=a?j(a):void 0;return n&&{rgb:n,alpha:1}})(e)}})(e);if(t)return{rgb:L(e=>S(t.rgb[e],255)),alpha:t.alpha}})(e);if("object"!=typeof e&&"function"!=typeof e)return"number"==typeof e?{rgb:w(e),alpha:1}:void 0;if(Reflect.get(e,"length")>0)return G([0,1,2,3].map(t=>Reflect.get(e,t)),1);return(e=>{let t=Object.keys(e),r=1;"alpha"in e&&(t.splice(t.indexOf("alpha"),1),r="number"==typeof e.alpha?e.alpha:0);let a=U.get(t.sort().join(""));if(!a)return;let[n,o,i]=a,l=n.split(" ").map((t,r)=>{let a=Reflect.get(e,t),n=i?.[r];return void 0===n?a:360===n?$(a):S(Number(a),n)});return(r=S(r,1),a===O)?{rgb:L(e=>Number(l[e])),alpha:r}:G(o(l),r)})(e)}catch{return}})(e):void 0;if(!t)return;let r=q(t.rgb),a=(([e,t,r])=>(2126*e+7152*t+722*r)/1e4<128)(t.rgb);return{containerClassName:"border-(--callout-light-border-color,#71717a33) bg-(--callout-light-bg-color,#7171711a) dark:border-(--callout-border-color,#71717a4d) dark:bg-(--callout-bg-color,#7171711a)",childrenClassName:"text-(--callout-text-color) dark:text-(--dark-callout-text-color)",customStyle:{"--callout-light-border-color":`${r}33`,"--callout-light-bg-color":`${r}1a`,"--callout-border-color":`${r}${a?"66":"4d"}`,"--callout-bg-color":`${r}${a?"4d":"1a"}`},customTextStyle:{"--callout-text-color":q(Z(t,[0,0,0])),"--dark-callout-text-color":q(Z(t,[255,255,255]))}}};function eo({type:e,children:r,extraClassName:a,icon:n,iconType:o,color:i,className:l}){let s=(0,p.useSelectedLocale)(),c=er[e],u=en(i);return(0,t.jsx)(ea,{calloutType:e,icon:null==n||!1===n?u?(0,t.jsx)(et,{type:e,colorClassName:"text-(--callout-text-color) dark:text-(--dark-callout-text-color)"}):c.icon:n,iconType:o,color:u?i:void 0,label:s[`aria.${e}`],className:(0,d.cn)("border",u?u.containerClassName:c.container,a,l),childrenClassName:u?u.childrenClassName:c.contentText,customStyle:u?.customStyle,customTextStyle:u?.customTextStyle,children:r})}function ei({children:e,icon:r,iconType:a,color:n,className:o}){return(0,t.jsx)(eo,{type:"info",icon:r,iconType:a,color:n,className:o,children:e})}function el({children:e,icon:r,iconType:a,color:n,className:o}){return(0,t.jsx)(eo,{type:"warning",icon:r,iconType:a,color:n,extraClassName:"[&_[data-component-part='callout-icon']]:mt-px",className:o,children:e})}function es({children:e,icon:r,iconType:a,color:n,className:o}){return(0,t.jsx)(eo,{type:"note",icon:r,iconType:a,color:n,className:o,children:e})}function ec({children:e,icon:r,iconType:a,color:n,className:o}){return(0,t.jsx)(eo,{type:"tip",icon:r,iconType:a,color:n,extraClassName:"[&_[data-component-part='callout-icon']]:mt-px",className:o,children:e})}
1function ed({children:e,icon:r,iconType:a,color:n,className:o}){return(0,t.jsx)(eo,{type:"check",icon:r,iconType:a,color:n,className:o,children:e})}function eu({children:e,icon:r,iconType:a,color:n,className:o}){return(0,t.jsx)(eo,{type:"danger",icon:r,iconType:a,color:n,className:o,children:e})}function ep({children:e,icon:r,iconType:a,color:n,className:o}){let i=en(n);return(0,t.jsx)(ea,{calloutType:"callout",icon:r,iconType:a,color:i?n:void 0,className:(0,d.cn)("border",i?i.containerClassName:"border-zinc-500/20 bg-zinc-50/50 dark:border-zinc-500/30 dark:bg-zinc-500/10",o),childrenClassName:i?i.childrenClassName:"text-zinc-900 dark:text-zinc-200",customStyle:i?.customStyle,customTextStyle:i?.customTextStyle,children:e})}e.s(["Card",()=>ej],464991);var em=e.i(590280),eg=e.i(206558),eh=e.i(674987);function ef(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function ex(e){if(!e)return!1;try{return new URL(e,window.location.origin).origin!==window.location.origin}catch{return!1}}var eb=e.i(618566);function ey(e){return!eg.NEXT_PUBLIC.BASE_PATH||!e.startsWith("/")||e.startsWith("//")||e===eg.NEXT_PUBLIC.BASE_PATH||e.startsWith(eg.NEXT_PUBLIC.BASE_PATH+"/")?e:`${eg.NEXT_PUBLIC.BASE_PATH}${e}`}function ev(e){return"undefined"!=typeof navigator&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?e.metaKey:e.ctrlKey}function ek(e){let t=e;for(;t;){if(t.hasAttribute("data-client-link")){t=t.parentElement;continue}if(t.matches("a[href]"))return!0;t=t.parentElement}return!1}var ew=e.i(588420),eC=e.i(357332);function ej({title:e,icon:r,iconType:a,color:n,horizontal:o,href:l,img:s,children:c,disabled:u,cta:p,arrow:m,className:g,type:h}){let f=h?er[h]:void 0,x="string"==typeof r&&""===r.trim()?void 0:r??f?.icon,b="string"==typeof x?(0,t.jsx)(i.ComponentIcon,{icon:x,iconType:a,color:n,className:(0,d.cn)("size-6 m-0! shrink-0",f?.iconBgClassName??"bg-primary dark:bg-primary-light"),overrideColor:!0}):x;return u&&(l=void 0),(0,t.jsx)(eN,{className:(0,d.cn)(f&&(0,d.cn)(f.container,f.cardSelectors),l&&!f&&"hover:border-primary! dark:hover:border-primary-light!",g),title:e,icon:b,img:s,horizontal:o,href:l,cta:p,arrow:m,disabled:u,children:c})}function eN({title:e,icon:a,img:n,className:i,children:l,horizontal:s,arrow:c,mRef:p,cta:m,disabled:g,href:h,...f}){let x=function(e){let t=(0,u.useRef)(null),r=(0,eb.useRouter)(),{getLivePreviewHref:a,navigateWithinLivePreview:n,requestContentEarly:o}=(0,u.useContext)(em.LivePreviewContext),i=void 0===e?void 0:a(e),l=ex(e);(0,u.useEffect)(()=>{var e;if(!i||!t.current)return;let a=t.current,n=function(e,t){let r=document.createElement("a");return!function e(t,r){for(let a of Object.keys(r)){let n=r[a];if(void 0===n)continue;let o=t[a];ef(o)&&ef(n)?e(o,n):t[a]=n}}(r,t),r}(0,{href:ey(i),tabIndex:-1,ariaHidden:"true",style:{display:"contents",color:"inherit",textDecoration:"none"},dataset:{clientLink:""},...l&&{target:"_blank",rel:"noreferrer"}}),o=(e=r,t=>{let r=t.defaultPrevented,a=t.target instanceof Element?t.target.closest("a[href]"):null,n=t.currentTarget instanceof Element?t.currentTarget:null,o=null!==a&&a!==n;if(o&&ex(a.getAttribute("href")??void 0)||(t.preventDefault(),r||!o))return;let i=a.getAttribute("href");i&&(ev(t)?window.open(ey((0,eh.navHref)(i)),"_blank","noopener,noreferrer"):e.push((0,eh.navHref)(i)))});for(let e of(n.addEventListener("click",o),Array.from(a.childNodes)))n.appendChild(e);a.appendChild(n);let s=a.removeChild.bind(a),c=a.insertBefore.bind(a),d=a.appendChild.bind(a);return a.removeChild=e=>e===n?s(e):e.parentNode===n?n.removeChild(e):s(e),a.insertBefore=(e,t)=>e===n||t===n||null!==t&&t.parentNode!==n?c(e,t):n.insertBefore(e,t),a.appendChild=e=>e===n?d(e):n.appendChild(e),()=>{for(n.removeEventListener("click",o);n.firstChild;)d(n.firstChild);n.remove(),a.removeChild=s,a.insertBefore=c,a.appendChild=d}},[i,l,r]);let s=(0,u.useCallback)(t=>{if(!i||window.getSelection()?.toString()||t.target instanceof Element&&ek(t.target))return;let a=(0,eh.navHref)(i);!(t.defaultPrevented&&n?.(a))&&(ev(t)||l?window.open(ey((0,eh.navHref)(i)),"_blank","noopener,noreferrer"):(e&&o?.(e),n?.(a)||r.push((0,eh.navHref)(i))))},[e,n,o,i,l,r]),c=(0,u.useCallback)(e=>{i&&1===e.button&&(e.target instanceof Element&&ek(e.target)||(e.preventDefault(),window.open(ey((0,eh.navHref)(i)),"_blank","noopener,noreferrer")))},[i]),d=(0,u.useCallback)(t=>{if(i&&("Enter"===t.key||" "===t.key)&&(!(t.target instanceof Element)||t.target===t.currentTarget))if(t.preventDefault(),l)window.open(ey((0,eh.navHref)(i)),"_blank","noopener,noreferrer");else{e&&o?.(e);let t=(0,eh.navHref)(i);n?.(t)||r.push((0,eh.navHref)(i))}},[e,n,o,i,l,r]);return{ref:t,props:{onClick:e?s:void 0,onAuxClick:e?c:void 0,onKeyDown:e?d:void 0,tabIndex:e?0:void 0,role:e?"link":void 0},external:l}}(h),b=c??x.external,y=(0,u.useId)(),v=(0,u.useId)(),k=null!=e&&""!==e,w="string"==typeof a,C=null!=a&&!s,j=n?n.match(/\/([^\/]+)\.[^.]+$/)?.[1]??"":"",N=(0,t.jsx)(t.Fragment,{children:a?w?(0,t.jsx)("img",{src:a,alt:(0,r.getTitleText)(e),className:"size-6 object-cover object-center","data-component-part":"card-icon"}):(0,t.jsx)("div",{"aria-hidden":"true",className:"size-6 fill-gray-800 dark:fill-gray-100 text-gray-800 dark:text-gray-100 [&>svg]:size-6","data-component-part":"card-icon",children:a}):null});return(0,t.jsxs)("div",{className:(0,d.cn)(o.Classes.Card,"block font-normal group relative my-2 ring-2 ring-transparent roun
1ded-2xl bg-white dark:bg-background-dark border border-gray-950/10 dark:border-white/10 overflow-hidden w-full",h&&"cursor-pointer",i),"aria-labelledby":h?e?y:v:void 0,...x.props,...f,ref:p,children:[n&&(0,t.jsx)("img",{src:n,alt:j,className:"w-full object-cover object-center not-prose","data-component-part":"card-image"}),(0,t.jsxs)("div",{ref:x.ref,className:(0,d.cn)("px-6 py-5 relative",s&&"flex items-center gap-x-4"),"data-component-part":"card-content-container",children:[h&&(0,t.jsx)("div",{className:(0,d.cn)("absolute text-gray-400 dark:text-gray-500 group-hover:text-primary dark:group-hover:text-primary-light top-5 right-5",!b&&"hidden"),children:(0,t.jsx)(ew.ArrowUpRight2Icon,{"aria-hidden":"true",strokeWidth:2,className:"m-0.5 size-3 shrink-0"})}),N,(0,t.jsxs)("div",{className:"w-full",children:[k&&(0,t.jsx)("h2",{id:y,className:(0,d.cn)("not-prose font-semibold text-base text-gray-800 dark:text-white",C&&"mt-4"),contentEditable:!1,"data-component-part":"card-title",children:e}),(0,t.jsx)("div",{id:v,className:(0,d.cn)("prose mt-1 font-normal text-base leading-6",e?"text-gray-600 dark:text-gray-400":"text-gray-700 dark:text-gray-300",!k&&C&&"mt-4",s&&"leading-6 mt-0"),"data-component-part":"card-content",children:l}),m&&(0,t.jsx)("div",{className:"mt-8","data-component-part":"card-cta",children:(0,t.jsxs)("button",{className:(0,d.cn)("text-left text-gray-600 gap-2 dark:text-gray-400 text-sm font-medium flex flex-row items-center",!g&&"hover:text-primary dark:hover:text-primary-light group-hover:text-primary group-hover:dark:text-primary-light"),disabled:g,children:[m,(0,t.jsx)(eC.ChevronRightIcon,{"aria-hidden":"true",className:"-ml-0.5 size-2.5 shrink-0",strokeWidth:2})]})})]})]})]})}e.s(["Color",()=>eA],891376);var e_=e.i(662862),eE=e.i(628083);e.s(["Tooltip",()=>eS],401819);var eT=e.i(292346),eI=e.i(995047);let eM=new Set(["p","div","section","ul","ol","table","pre","blockquote"]);function eS({tip:e,children:r,headline:a,cta:n,href:i,triggerAriaLabel:l,className:s}){var c;let[p,m]=(0,u.useState)(!1),g=function(){try{return matchMedia("(hover: hover)").matches}catch{return!0}}(),h=(0,u.useId)(),f=(0,u.isValidElement)(r)&&"string"==typeof r.type?r.type.toLowerCase():void 0,x=(0,u.isValidElement)(r)&&"function"==typeof r.type,b="button"===f||"a"===f,y=(0,u.useRef)("");if((0,u.useEffect)(()=>{let e=[];n&&!i&&e.push('<Tooltip>: "cta" requires "href"; the call-to-action link was not rendered.'),f&&eM.has(f)&&e.push(`<${f}> cannot be a child of the <Tooltip> trigger button. Use inline content instead.`),x&&e.push("<Tooltip> wraps its children in a <button> trigger; a component child may render invalid nested interactive elements. Use plain text or a native <button>/<a> child.");let t=e.join("\n");if(t&&y.current!==t)for(let r of(y.current=t,e))console.warn(r)},[n,i,f,x]),null==r||!1===r||""===r)return null;let v=g||"a"===f?void 0:()=>{m(e=>!e)};return(0,t.jsx)(eT.Tooltip.Provider,{delay:0,children:(0,t.jsxs)(eT.Tooltip.Root,{open:p,onOpenChange:m,children:[b&&(0,u.isValidElement)(r)?(0,t.jsx)(eT.Tooltip.Trigger,{"aria-label":l,"aria-describedby":p?h:void 0,onClick:v,className:s,render:r}):(0,t.jsx)(eT.Tooltip.Trigger,{type:"button","aria-label":l,"aria-describedby":p?h:void 0,onClick:v,className:s,children:(c=r,(0,t.jsx)("span",{className:(0,d.cn)(o.Classes.Tooltip,"underline decoration-dotted decoration-2 underline-offset-4 decoration-gray-400 dark:decoration-gray-500"),children:c}))}),(0,t.jsx)(eT.Tooltip.Portal,{children:(0,t.jsx)(eT.Tooltip.Positioner,{className:"z-50",collisionPadding:8,children:(0,t.jsxs)(eT.Tooltip.Popup,{id:h,role:"tooltip",className:"max-w-[16rem] px-4 py-3 rounded-xl bg-white border border-gray-200 dark:bg-gray-950 dark:border-gray-900 space-y-1 shadow-[0_10px_16px_-3px_rgb(10_10_10/0.05),0_3px_10px_-2px_rgb(10_10_10/0.02)]","data-component-part":"tooltip-content",children:[!!a&&(0,t.jsx)("p",{className:"text-xs font-medium leading-4 text-gray-900 dark:text-gray-200","data-component-part":"tooltip-headline",children:a}),(0,t.jsx)("p",{className:"text-xs text-gray-600 dark:text-gray-400 leading-4","data-component-part":"tooltip-tip",children:e}),n&&i&&(0,t.jsxs)(eI.DynamicLink,{href:i,"data-component-part":"tooltip-cta",className:"text-gray-600 mt-2! dark:text-gray-400 hover:text-primary dark:hover:text-primary-light gap-0.5 flex items-center text-xs font-medium leading-4",children:[n,(0,t.jsx)(eC.ChevronRightIcon,{className:"size-3 shrink-0",strokeWidth:2.5,"aria-hidden":"true"})]})]})})})]})})}let eL=(0,u.createContext)("compact"),eA=({children:e,variant:r,className:a})=>{let n=r??"compact";return(0,t.jsx)(eL.Provider,{value:n,children:(0,t.jsx)("div",{"data-variant":n,className:(0,d.cn)(o.Classes.Color,"flex group","table"===n&&"flex-col gap-6","compact"===n&&"flex-row flex-wrap gap-x-2 gap-y-4",a),children:e})})};eA.Row=({children:e,title:a})=>(0,t.jsxs)("div",{className:(0,d.cn)(o.Classes.ColorRow,"flex flex-col gap-2 md:flex-row md:items-center"),children:[!!a&&(0,t.jsx)("div",{className:"md:w-[120px] w-full shrink-0",children:(0,t.jsx)("p",{className:"text-sm font-medium [letter-spacing:-0.1px] text-gray-900 dark:text-gray-200 m-0 truncate",title:(0,r.getTitleText)(a),children:a})}),(0,t.jsx)("div",{className:"flex w-full gap-1 md:gap-2",children:e})]}),eA.Item=({name:e,value:r})=>{let a=(0,p.useSelectedLocale)(),[n,i]=(0,u.useState)("idle"),s=(0,u.useRef)(null),[c,m]=(0,u.useTransition)();(0,u.useEffect)(()=>()=>{s.current&&clearTimeout(s.current)},[]);let{resolvedTheme:g}=(0,e_.useTheme)(),h=(0,u.useContext)(eL),f="string"==typeof r?r:"dark"===(g||"light")?r.dark:r.light,x="str
1ing"==typeof r?{"--swatch-light":r,"--swatch-dark":r}:{"--swatch-light":r.light,"--swatch-dark":r.dark},b=(0,t.jsx)("button",{type:"button",style:x,onClick:()=>{m(async()=>{await (0,l.copyToClipboard)(f),i("copied"),s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{i("idle")},2e3)})},className:(0,d.cn)("cursor-copy relative flex items-center justify-center rounded-lg border border-neutral-200 dark:border-neutral-800 print:print-color-exact bg-(--swatch-light) dark:bg-(--swatch-dark)","compact"===h&&"max-h-[104px] aspect-square","table"===h&&"aspect-square w-full md:h-10"),"aria-label":e||a["aria.colorSwatch"].replace("{color}",String(f)),"aria-pressed":"copied"===n,"aria-roledescription":"copied"===n?a.copied:a["tooltip.copy"],children:(0,t.jsx)(eE.Check2Icon,{"aria-hidden":!0,strokeWidth:2,className:(0,d.cn)("size-3.5 absolute inset-0 m-auto pointer-events-none transition-opacity duration-100 opacity-0 shrink-0","text-white [filter:drop-shadow(0_0_1px_rgb(0_0_0_/_0.75))_drop-shadow(0_0_2px_rgb(0_0_0_/_0.4))]","copied"===n&&"opacity-100")})});return(0,t.jsxs)("div",{className:(0,d.cn)(o.Classes.ColorItem,"compact"===h&&"flex flex-col gap-2 shrink-0","table"===h&&"w-full max-w-[50px] md:max-w-[60px]"),children:["table"===h?(0,t.jsx)(eS,{tip:f,children:b}):b,(0,t.jsx)("span",{role:"status",className:"sr-only",children:"copied"===n?a.copied:""}),"compact"===h&&(0,t.jsxs)("div",{className:"flex flex-col gap-0.5 min-w-0 w-[104px]",children:[e&&(0,t.jsx)("p",{className:"text-sm font-medium text-gray-900 dark:text-gray-200 m-0 truncate text-center",title:e,children:e}),(0,t.jsx)("p",{className:"text-xs text-gray-600 dark:text-gray-400 m-0 truncate font-mono text-center",title:f,children:f})]})]})},e.s(["CardGroup",()=>eD,"Column",()=>eH,"Columns",()=>ez],35884);var e$=e.i(243378);let eP=2,eR=({children:e,className:r,cols:a=eP})=>{let n=Number(a)||eP;return(0,t.jsx)("div",{className:(0,d.cn)(e$.Classes.Columns,"prose dark:prose-invert grid max-w-none gap-4","sm:grid-cols-[repeat(var(--cols),minmax(0,1fr))]","@2xl/columns-container:grid-cols-[repeat(var(--cols),minmax(0,1fr))] @[0px]/columns-container:grid-cols-1",r),style:{"--cols":n},children:e})};function ez({className:e,cols:r,...a}){return(0,t.jsx)(eR,{...a,cols:(e=>{let t=Math.round(Number(e));if(Number.isFinite(t)&&!(t<1))return Math.min(4,t)})(r),className:(0,d.cn)(o.Classes.CardGroup,"dark:prose-dark gap-y-0 sm:grid-cols-[repeat(var(--cols),minmax(0,1fr))]!",e)})}function eH({children:e,className:r}){return(0,t.jsx)("div",{className:(0,d.cn)("min-w-0",r),children:e})}function eD({children:e,...r}){return(0,t.jsx)(ez,{...r,children:e})}e.s(["default",()=>eV],267823);var eF=e.i(770703);let eV=(0,eF.default)(()=>e.A(978936),{loadableGenerated:{modules:[701959]},loading:()=>(0,t.jsx)("p",{children:"Loading..."}),ssr:!1});e.s(["DynamicFrame",()=>eB],602875);let eB=(0,eF.default)(()=>e.A(239757).then(e=>e.Frame),{loadableGenerated:{modules:[209875]}});e.s(["Expandable",()=>eq],287071);let eO="user_toggled_expandables",eU=()=>{try{let e=sessionStorage.getItem(eO);return e?JSON.parse(e):{}}catch(e){return{}}};var eG=e.i(75048);let eW="expandable-content";function eq({title:e,defaultOpen:r=!1,onChange:n,lazy:l,children:c,uniqueParamId:m,className:g}){let{hasScrolledToAnchorRef:h,anchor:f}=(0,u.useContext)(eG.EndpointLocationContext),x=(0,p.useSelectedLocale)(),b=!0===r||"string"==typeof r&&"true"===r,y=!!m,{isExpanded:v,onManualToggle:k,isInSessionStorage:w}=((e,t=!1)=>{let[r,a]=(0,u.useState)(!1),[n,o]=(0,u.useState)(t);return(0,u.useEffect)(()=>{if(!e)return;let t=eU();e in t&&(o(!!t[e]),a(!0))},[e]),{isExpanded:n,onManualToggle:(0,u.useCallback)(t=>{o(t),a(!0),e&&((e,t)=>{try{let r={...eU(),[e]:t};sessionStorage.setItem(eO,JSON.stringify(r))}catch(e){}})(e,t)},[e]),isInSessionStorage:r}})(m||"",b),[C,j]=(0,u.useState)(b),N=f?.startsWith("#")?f.slice(1):f,_=!!(m&&N&&(N===m||N.startsWith(`${m}-`))),[E,T]=(0,u.useState)(!1),I=_&&!h?.current&&!E,M=y?!!I||(w?v:b):C,[S,L]=(0,u.useState)(M||!l);(0,u.useLayoutEffect)(()=>{M&&!S&&L(!0)},[M,S]),(0,u.useLayoutEffect)(()=>{I&&(k(!0),T(!0))},[I,k]);let A=(0,a.useAnalyticsContext)("docs.expandable.open"),$=(0,a.useAnalyticsContext)("docs.expandable.close"),P=(0,u.useRef)(null),R=(0,u.useRef)(!!h?.current),[z,H]=(0,u.useState)(M),D=(0,u.useId)();return(0,u.useLayoutEffect)(()=>{H(M)},[M]),(0,u.useEffect)(()=>{let e=(e=!1)=>{(0,s.scrollElementIntoView)({shouldReturnEarly:!e&&R.current,checkIfShouldScroll:e=>!!P.current&&P.current.contains(e),preScrollCallback(e){h&&(h.current=!0),y?k(!0):j(!0);let t=e.closest(`.${eW}`);for(;t;){let e=t.closest("details"),r=t.previousElementSibling;e&&!e.open&&r&&r.click(),t=t.parentElement?.closest(`.${eW}`)??null}}})};e(),R.current=!0;let t=()=>e(!0);return window.addEventListener("hashchange",t),()=>{window.removeEventListener("hashchange",t)}},[y,k,h]),(0,t.jsxs)("details",{ref:P,open:M,onToggle:t=>{let r=t.currentTarget.open;H(r),r!==M&&(y?k(r):j(r),L(!0),n&&n(r),r?A({title:e}):$({title:e}))},className:(0,d.cn)(o.Classes.Expandable,"mt-4 border-standard rounded-xl [&[open]>summary]:rounded-b-none [&[open]>summary]:before:rounded-b-none",g),"data-testid":m+"-children",children:[(0,t.jsxs)("summary",{className:(0,d.cn)("not-prose text-sm flex flex-row items-center content-center w-full cursor-pointer relative focus-visible:outline-hidden before:content-[''] before:absolute before:inset-0 before:pointer-events-none before:rounded-[calc(var(--radius-xl)-1px)] focus-visible:before:outline focus-visible:before:outline-1 focus-visible:before:-outline-offset-2 focus-visible:before:outline-primary dark:focus-visible:before:outline-primary-light","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","list-none [&::-webkit-details-marker]:hidden",!M&&"rounded-b-xl"),"aria-controls":D,"aria-expanded":z,"data-component-part":"expandable-button",children:[(0,t.jsx)(i.default,{icon:"angle-right",className:(0,d.cn)("h-2.5 w-2.5 bg-zinc-400 transition-transform",M&&"rotate-90"),"data-component-part":"expandable-icon"}),(0,t.jsx)("div",{className:"ml-3 leading-tight text-left",children:(0,t.jsxs)("p",{className:"m-0",contentEditable:!1,
1children:[M?x.hide:x.show," ",e||x.childAttributes]})})]}),(0,t.jsx)("div",{id:D,className:(0,d.cn)(eW,"mx-3 px-2 border-t border-gray-100 dark:border-white/10"),"data-component-part":eW,children:S&&c})]})}e.s(["GitHub",()=>e7],437953);var eZ=e.i(395787);let eX=(0,m.default)("CodeForkIcon",[["path",{d:"M9 8.75V12.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M4.75 5.75V6.75C4.75 7.855 5.645 8.75 6.75 8.75H9H11.25C12.355 8.75 13.25 7.855 13.25 6.75V5.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M4.75 5.75C5.85457 5.75 6.75 4.85457 6.75 3.75C6.75 2.64543 5.85457 1.75 4.75 1.75C3.64543 1.75 2.75 2.64543 2.75 3.75C2.75 4.85457 3.64543 5.75 4.75 5.75Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M13.25 5.75C14.3546 5.75 15.25 4.85457 15.25 3.75C15.25 2.64543 14.3546 1.75 13.25 1.75C12.1454 1.75 11.25 2.64543 11.25 3.75C11.25 4.85457 12.1454 5.75 13.25 5.75Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M9 16.25C10.1046 16.25 11 15.3546 11 14.25C11 13.1454 10.1046 12.25 9 12.25C7.89543 12.25 7 13.1454 7 14.25C7 15.3546 7.89543 16.25 9 16.25Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined"),eK=(0,m.default)("StarIcon",[["path",{d:"M9 1.75L11.24 6.289L16.25 7.017L12.625 10.551L13.481 15.54L9 13.185L4.519 15.54L5.375 10.551L1.75 7.017L6.76 6.289L9 1.75Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined");var eJ=e.i(225913),eY=e.i(114140);let eQ=(0,eJ.cva)([o.Classes.GitHubRepo,"not-prose my-2 flex w-full flex-col overflow-hidden rounded-2xl border"],{variants:{variant:{inset:"gap-0.5 p-1",flat:"gap-2 px-4 py-3"},error:{true:"border-red-100 bg-red-50 dark:border-red-900 dark:bg-red-600/20",false:null}},compoundVariants:[{variant:"inset",error:!1,className:"border-gray-100 bg-gray-50 dark:border-white/10 dark:bg-white/5"},{variant:"flat",error:!1,className:"border-gray-100 bg-white dark:border-white/10 dark:bg-background-dark"}]}),e0=e=>{if("object"!=typeof e||null===e||!("response"in e))return;let{response:t}=e;if("object"!=typeof t||null===t||!("status"in t))return;let{status:r}=t;return"number"==typeof r?r:void 0},e1=new Map,e5=new Map,e2=new Map,e3=({className:e})=>(0,t.jsx)("span",{"aria-hidden":"true",className:(0,d.cn)("block animate-pulse repeat-2 roun
1ded-md bg-gray-200 motion-reduce:animate-none dark:bg-white/15",e)}),e4=({Icon:e,value:r,count:a,one:n,other:o})=>{let i=(0,p.useSelectedLocale)(),l=void 0===a||void 0===r?void 0:i[1===a?n:o].replace("{count}",r);return(0,t.jsxs)("span",{className:"flex items-center gap-1.5 text-gray-600 dark:text-gray-400",children:[(0,t.jsx)(e,{"aria-hidden":"true",className:"size-3 shrink-0"}),void 0===r?(0,t.jsx)(e3,{className:"my-0.5 h-4 w-8"}):(0,t.jsx)("span",{"aria-hidden":"true",className:"text-sm tabular-nums",children:r}),l&&(0,t.jsx)("span",{className:"sr-only",children:l})]})},e7=Object.assign(()=>null,{Repo:({repo:r,variant:a,className:n})=>{let o=(0,p.useSelectedLocale)(),i=(0,u.useId)(),l=(()=>{let e=(0,u.useRef)(!1);return{onPointerDown:t=>{let r=t.currentTarget;r.style.userSelect="",2===t.button&&(window.getSelection()?.isCollapsed??!0)&&(r.style.userSelect="none",e.current=!0)},onContextMenu:t=>{if(!e.current)return;e.current=!1;let r=t.currentTarget;setTimeout(()=>{r.style.userSelect=""},0)}}})(),s="flat"===a?"flat":"inset",c="inset"===s,m=(0,u.useMemo)(()=>{if(!r)return null;try{return(0,eY.default)(r)}catch{return null}},[r]),g=m?`${m.user}/${m.repo}`:void 0,[h,f]=(0,u.useState)(()=>g?e5.get(g):void 0),[x,b]=(0,u.useState)(()=>g?e2.get(g):void 0);(0,u.useEffect)(()=>{if(!m){f(void 0),b(void 0);return}let t=`${m.user}/${m.repo}`,r=e5.get(t),a=e2.get(t);if(f(r),b(a),r||a)return;let n=!1;return(t=>{let r=e1.get(t);if(r)return r;let a=e.A(966799).then(e=>e.default.get(`https://api.github.com/repos/${t}`)).then(e=>{if("number"!=typeof e.data.stargazers_count||"number"!=typeof e.data.forks_count)throw Error("Malformed repository data");return e5.set(t,e.data),e.data});return e1.set(t,a),a.catch(e=>{404===e0(e)?e2.set(t,"not-found"):e1.delete(t)}),a})(t).then(e=>{n||f(e)}).catch(e=>{n||b(404===e0(e)?"not-found":"unavailable")}),()=>{n=!0}},[m]);let y=!!r&&!m||"not-found"===x,v="unavailable"===x,k=!!m&&!h&&!x,w=y?o["github.repoDoesNotExist"]:g??o["github.noRepoAdded"],C=h?h.description:v?null:o["github.addRepoDescription"],j=h?h.stargazers_count.toLocaleString():k?void 0:"0",N=h?h.forks_count.toLocaleString():k?void 0:"0",_=g&&!y?`https://github.com/${g}`:void 0,E=y?"text-red-700 dark:text-red-300":"text-gray-950 dark:text-white",T=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:(0,d.cn)("flex min-w-0 flex-col gap-1",c&&"rounded-xl bg-background-light px-3 py-2 dark:bg-background-dark"),children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(eZ.GithubIcon,{className:(0,d.cn)("size-4 shrink-0",E)}),(0,t.jsx)("span",{id:i,title:y?void 0:g,className:(0,d.cn)("min-w-0 flex-1 truncate text-sm font-medium underline-offset-2 group-hover:underline group-focus-visible:underline",E),"data-component-part":"github-repo-title",children:w})]}),(0,t.jsx)("div",{"aria-busy":k||void 0,className:"line-clamp-3 min-h-5 text-sm text-gray-600 dark:text-gray-400","data-component-part":"github-repo-description",children:k?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(e3,{className:"my-0.5 h-4 w-2/3"}),(0,t.jsx)("span",{className:"sr-only",children:o["github.loading"]})]}):C})]}),!v&&(0,t.jsxs)("div",{"aria-busy":k||void 0,className:(0,d.cn)("flex items-center gap-4",c&&"px-3 py-1"),"data-component-part":"github-repo-stats",children:[(0,t.jsx)(e4,{Icon:eK,value:j,count:h?h.stargazers_count:k?void 0:0,one:"github.stars_one",other:"github.stars_other"}),(0,t.jsx)(e4,{Icon:eX,value:N,count:h?h.forks_count:k?void 0:0,one:"github.forks_one",other:"github.forks_other"})]})]}),I=(0,d.cn)(eQ({variant:s,error:y}),n);return _?(0,t.jsx)("a",{href:_,target:"_blank",rel:"noreferrer","aria-labelledby":i,...l,className:(0,d.cn)(I,"group focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary dark:focus-visible:outline-primary-light"),children:T}):(0,t.jsx)("div",{className:I,children:T})}});e.s(["Heading",()=>tl],896438);var e6=e.i(91557),e8=e.i(693619);e.s(["useTop",()=>te],311005);var e9=e.i(111048);function te(e){let{docsConfig:t}=(0,u.useContext)(e6.DocsConfigContext),[r,a]=(0,u.useState)(),n=e?e.top:void 0,o=t?.theme==="almond";return(0,u.useEffect)(()=>{let e;
1if(void 0!==n){if(o){let t=document.getElementById(e9.Ids.ContentContainer);t&&(e=n+t.scrollTop)}else e=n+window.pageYOffset;void 0!==e&&e!==r&&a(e)}},[n,r,o]),r}var tt=e.i(479721),tr=e.i(319129),ta=e.i(163061);function tn(e,{resize:t=!1}={}){let r=(0,u.useRef)(e);(0,u.useEffect)(()=>{r.current=e},[e]);let a=(0,u.useRef)(t);(0,u.useEffect)(()=>{a.current=t,c()},[t]);let n=(0,u.useRef)(null),o=(0,u.useCallback)(e=>{e!==n.current&&(n.current=e,l(),c())},[]),i=(0,u.useRef)(null),l=(0,u.useCallback)(({force:e=!1}={})=>{var t,a;if(!n.current)return;let o=n.current.getBoundingClientRect();if(e||(t=i.current,a=o,!t||t!==a&&to.some(e=>t[e]!==a[e]))){i.current=o;let{bottom:e,height:t,left:a,right:n,top:l,width:s,x:c,y:d}=o;r.current({bottom:e,height:t,left:a,right:n,top:l,width:s,x:c,y:d})}},[]),s=(0,u.useRef)(null),c=(0,u.useCallback)(()=>{s.current&&(s.current.disconnect(),s.current=null),n.current&&a.current&&(s.current=new ResizeObserver(()=>l()),s.current.observe(n.current))},[]);return ti(l),[o,l]}e.s(["useRect",()=>tn],771693);var to=["bottom","height","left","right","top","width","x","y"],ti="undefined"==typeof window?u.useEffect:u.useLayoutEffect;function tl({level:e,id:a,children:n,className:o="",hidden:i=!1,style:c={},noAnchor:m=!1,...g}){let{docsConfig:h}=(0,u.useContext)(e6.DocsConfigContext),f=(0,p.useSelectedLocale)(),x=`h${e}`,[b,y]=(0,e8.useMDXContent)(),[v,k]=(0,u.useState)(null),[w]=tn(k),C=te(v),j=(0,tr.cleanHeadingId)(a),N=(0,r.getNodeText)(n).trim(),_=N.length>0&&!/\s/.test(N),E=(0,u.useCallback)(()=>{m||((0,l.copyToClipboard)(`https://${window.location.host}${window.location.pathname}#${j}`),window.location.hash=j,(0,s.scrollElementIntoView)({id:j}))},[j,m]),T=!!b;return(0,u.useEffect)(()=>{if(T)return void 0!==C&&y({type:"register_heading",payload:{id:j,top:C}}),()=>{y({type:"unregister_heading",payload:j})}},[C,j,T,y]),(0,t.jsxs)(x,{className:(0,d.cn)("flex whitespace-pre-wrap group font-semibold",(0,tt.themeHeadings)({theme:h?.theme}),o,{"text-2xl sm:text-3xl mt-10":"h1"===x}),id:j,ref:w,style:{...i?{marginBottom:0}:{},...c},...g,children:[!i&&!m&&(0,t.jsx)("div",{className:"absolute",tabIndex:-1,children:(0,t.jsxs)("a",{href:`#${j}`,className:"-ml-10 flex items-center opacity-0 border-0 group-hover:opacity-100 focus:opacity-100 focus:outline-0 group/link","aria-label":f["aria.navigateToHeader"],onClick:E,children:["​",(0,t.jsx)("div",{className:"size-6 rounded-md flex items-center justify-center shadow-xs text-gray-400 dark:text-white/50 dark:bg-background-dark dark:brightness-[1.35] dark:ring-1 dark:hover:brightness-150 bg-white ring-1 ring-gray-400/30 dark:ring-gray-700/25 hover:ring-gray-400/60 dark:hover:ring-white/20 group-focus/link:border-2 group-focus/link:border-primary dark:group-focus/link:border-primary-light",children:(0,t.jsx)(ta.LinkIcon,{"aria-hidden":"true",className:"size-3 shrink-0",strokeWidth:2})})]})}),(0,t.jsx)("span",{className:(0,d.cn)(_&&"min-w-0 break-words",!m&&"cursor-pointer",i&&"sr-only"),onClick:E,children:n})]})}function ts({icon:e,src:r,iconType:a,color:n,size:l,className:s,"aria-label":c,title:u}){return(0,t.jsx)(i.ComponentIcon,{icon:e,src:r,iconType:a,color:n,"aria-label":c??u,style:{width:l??16,height:l??16,display:"inline-block",verticalAlign:"middle"},className:(0,d.cn)(o.Classes.Icon,"inline",!n&&"bg-primary dark:bg-primary-light",s)})}function tc({children:e,className:r}){return(0,t.jsx)("span",{className:(0,d.cn)("latex-style inline text-inherit p-0",r),children:e})}function td({children:e}){return(0,t.jsx)(t.Fragment,{children:e})}e.s(["Icon",()=>ts],688527),e.s(["Latex",()=>tc],179958),e.s(["MDX",()=>td],973469),e.s(["DynamicMermaid",()=>tu],52693);let tu=(0,eF.default)(()=>e.A(47440).then(e=>e.Mermaid),{loadableGenerated:{modules:[603619]},ssr:!1})},709910,e=>{"use strict";e.s(["MediaActions",()=>f,"parseMediaActions",()=>u],709910);var t=e.i(843476),r=e.i(343590),a=e.i(560179),n=e.i(628083);let o=(0,e.i(930733).default)("CloudDownloadIcon",[["path",{d:"M13.464 6.891C13.278 4.577 11.362 2.75 9 2.75C6.515 2.75 4.5 4.765 4.5 7.25C4.5 7.6 4.549 7.936 4.624 8.263C3.027 8.33 1.75 9.637 1.75 11.25C1.75 12.907 3.093 14.25 4.75 14.25H12.5C14.571 14.25 16.25 12.571 16.25 10.5C16.25 8.764 15.065 7.318 13.464 6.891Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M11.25 9.5L9 11.75L6.75 9.5",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M9 11.75V6.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined");var i=e.i(760391),l=e.i(179862),s=e.i(271645);let c=["copy","download"],d=e=>"copy"===e||"download"===e,u=e=>{if(void 0===e||!1===e)return[];if(!0===e)return c;if("string"!=typeof e)return e.filter(d);let t=e.trim().toLowerCase();return"false"===t?[]:""===t||"true"===t?c:t.split(",").map(e=>e.trim()).filter(d)},p=()=>
1{let[e,t]=(0,s.useState)(null),r=(0,s.useRef)(void 0);return(0,s.useEffect)(()=>()=>clearTimeout(r.current),[]),{outcome:e,show:e=>{t(e),clearTimeout(r.current),r.current=setTimeout(()=>t(null),2e3)}}},m=({className:e,onClick:r,...a})=>(0,t.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),r?.(e)},className:(0,l.cn)("relative flex items-center gap-1.5 rounded-lg px-2 py-1 text-xs/4 font-medium","bg-gray-50 dark:bg-gray-900 text-gray-500 dark:text-gray-400","hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-gray-700 dark:hover:text-gray-300","transition-colors duration-100","border border-gray-200 dark:border-gray-800 hover:border-gray-300 dark:hover:border-gray-700","[&>svg]:size-3 [&>svg]:shrink-0","after:absolute after:-inset-x-0.75 after:-inset-y-2","focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-primary dark:focus-visible:outline-primary-light",e),...a}),g=({src:e})=>{let o=(0,r.useSelectedLocale)(),{outcome:l,show:s}=p();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m,{"data-component-part":"media-actions-copy-button",onClick:()=>{(0,a.copyImageToClipboard)(e).then(e=>s(e?"done":"failed"))},children:["done"===l?(0,t.jsx)(n.Check2Icon,{strokeWidth:2,"aria-hidden":"true"}):(0,t.jsx)(i.DuplicateIcon,{strokeWidth:2,"aria-hidden":"true"}),"failed"===l?o.copyFailed:o["tooltip.copy"]]}),(0,t.jsx)("span",{role:"status",className:"sr-only",children:"done"===l?o.copied:"failed"===l?o.copyFailed:""})]})},h=({src:e})=>{let i=(0,r.useSelectedLocale)(),{outcome:l,show:s}=p();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m,{"data-component-part":"media-actions-download-button",onClick:()=>{(0,a.downloadMedia)(e).then(e=>{e&&s("done")})},children:["done"===l?(0,t.jsx)(n.Check2Icon,{strokeWidth:2,"aria-hidden":"true"}):(0,t.jsx)(o,{strokeWidth:2,"aria-hidden":"true"}),i["tooltip.download"]]}),(0,t.jsx)("span",{role:"status",className:"sr-only",children:"done"===l?i["aria.fileDownloaded"]:""})]})},f=({src:e,actions:r,children:a,placement:n="bottom-center",style:o})=>(0,t.jsxs)("span",{"data-component-name":"media-actions",style:o,className:(0,l.cn)("group/media relative block w-fit overflow-hidden rounded leading-none","bg-gray-50 dark:bg-gray-900","ring-1 ring-gray-900/10 dark:ring-gray-50/10","[&_img]:my-0 [&_img]:rounded-none"),children:[a,(0,t.jsxs)("span",{"data-component-part":"media-actions-buttons",className:(0,l.cn)("absolute z-10 flex items-center gap-1.5 print:hidden","pointer-events-none opacity-0 transition-opacity","group-hover/media:pointer-events-auto group-hover/media:opacity-100","has-focus-visible:pointer-events-auto has-focus-visible:opacity-100","pointer-coarse:pointer-events-auto pointer-coarse:opacity-100","bottom-center"===n&&"bottom-2 left-1/2 -translate-x-1/2","bottom-right"===n&&"bottom-2 right-2","bottom-left"===n&&"bottom-2 left-2","top-center"===n&&"top-2 left-1/2 -translate-x-1/2","top-right"===n&&"top-2 right-2","top-left"===n&&"top-2 left-2"),children:[r.includes("copy")&&(0,t.jsx)(g,{src:e}),r.includes("download")&&(0,t.jsx)(h,{src:e})]})]})},403781,(e,t,r)=>{"use strict";r.Fragment=Symbol.for("react.fragment"),r.jsxDEV=void 0},921694,(e,t,r)=>{"use strict";t.exports=e.r(403781)},917180,767498,184472,15878,e=>{"use strict";let t;e.s(["MdxContent",()=>e3],917180);var r=e.i(843476);e.s(["default",()=>eF],184472);var a=e.i(638702),n=e.i(167808),o=e.i(393789),i=e.i(579694),l=e.i(464991),s=e.i(792616),c=e.i(177986),d=e.i(891376),u=e.i(35884),p=e.i(231116),m=e.i(267823),g=e.i(602875),h=e.i(287071),f=e.i(437953),x=e.i(896438),b=e.i(688527),y=e.i(179958),v=e.i(973469),k=e.i(52693),w=e.i(709910),C=e.i(53339),j=e.i(91557),N=e.i(590280),_=e.i(343534),E=e.i(179862),T=e.i(271645);function I(e){return"number"==typeof e?{type:"pixel",value:e}:"string"==typeof e?e.endsWith("%")?{type:"percentage",value:e}:{type:"pixel",value:parseInt(e,10)}:void 0}function M({src:e,alt:t,className:a,class:n,priority:o,noZoom:i=!1,actions:l,actionsPlacement:s,width:c,height:d,"data-optimize":u,"data-opv":p,"data-og-width":m,"data-og-height":g,style:h,srcset:f,...x}){let b=I(c),y=I(d),v=I(m),k=I(g),M=function(){let{docsConfig:e}=(0,T.useContext)(j.DocsConfigContext),{pageMetadata:t}=(0,T.useContext)(j.PageContext),r=e?.theme,{isCenter:a,isWide:n,isCu
1stom:o,isFrame:i}=(0,_.getPageMode)(t);if(o)return"100vw";let l=(()=>{if(a)return 768;switch(r){case"aspen":if(i)return 1152;if(n)return 848;return 704;case"luma":if(i)return 1152;return 696;case"palm":case"willow":return n?1024:672;case"maple":return n?2500:672;case"almond":if(i||n)return 2500;return 576;case"sequoia":if(i)return 1152;if(n)return 896;return 600;default:return n?1152:1024}})();return`(max-width: ${a?768:1024}px) 100vw, ${l}px`}(),{isLivePreview:S,liveMedia:L}=(0,T.useContext)(N.LivePreviewContext),A=(0,T.useMemo)(()=>e&&"string"==typeof e?(0,N.resolveLivePreviewMediaSrc)({src:e,isLivePreview:S,liveMedia:L}):e,[e,S,L]),$=b?.type==="pixel"&&y?.type==="pixel"?`${b.value} / ${y.value}`:v?.type==="pixel"&&k?.type==="pixel"?`${v.value} / ${k.value}`:void 0,P=(0,w.parseMediaActions)(l),R=P.length>0&&!!A&&"string"==typeof A,z="string"==typeof h?.width&&h.width.endsWith("%")?h.width:void 0,H=R?b?.type==="percentage"?b.value:z:void 0,D=H&&b?.type==="percentage"?"100%":c,F=H?I(D):b,V=H&&z?{...h,width:"100%"}:h,B=(0,r.jsx)(C.ZoomImage,{noZoom:i,zoomImg:{src:A,srcSet:"",width:v?.type==="pixel"?v.value:void 0,height:k?.type==="pixel"?k.value:void 0},children:A&&"string"==typeof A&&"true"===u&&(b||y)?(0,r.jsx)("picture",{className:"contents",children:(0,r.jsx)("img",{...x,src:A,alt:t,className:(0,E.cn)("object-contain",n,a),...F?{width:F.value}:{},...y?{height:y.value}:{},decoding:"async",sizes:M,srcSet:f,"data-optimize":u,style:{...$?{aspectRatio:$}:{},...V}})}):(0,r.jsx)("img",{...x,src:A,alt:t,className:(0,E.cn)(n,a),srcSet:f,style:V,width:D,height:d,"data-optimize":u})});return R&&"string"==typeof A?(0,r.jsx)(w.MediaActions,{src:A,actions:P,placement:s,style:H?{width:H}:void 0,children:B}):B}var S=e.i(111048),L=e.i(786475),A=e.i(343590),$=e.i(693619),P=e.i(311005),R=e.i(476781),z=e.i(568258),H=e.i(193726),D=e.i(895849),F=e.i(319129),V=e.i(163061),B=e.i(771693);let O=["p","h2","h3","h4"],U=({stepNumber:e=1,icon:t,iconType:a,title:n,children:o,titleSize:i="p",noAnchor:l=!1,isLast:s=!1,id:c,className:d})=>{let[u,p]=(0,$.useMDXContent)(),m=(0,A.useSelectedLocale)(),[g,h]=(0,T.useState)(null),[f,x]=(0,T.useState)(!1),[b]=(0,B.useRect)(h),y=(0,P.useTop)(g),v=O.includes(i)?i:"p",k=["h2","h3"].includes(v),w=!!u,C=(0,F.safeCleanHeadingId)(c??""),j=(0,T.useCallback)(()=>{!l&&C&&k&&((0,H.copyToClipboard)(`${window.location.origin}${window.location.pathname}#${C}`),window.location.hash=C,(0,D.scrollElementIntoView)({id:C}))},[C,l,k]);(0,T.useEffect)(()=>{if(w&&C&&void 0!==y&&!l&&k)return p({type:"register_heading",payload:{id:C,top:y}}),()=>{p({type:"unregister_heading",payload:C})}},[y,C,w,p,l,k]),(0,T.useEffect)(()=>{C&&!l&&k&&window.location.hash.substring(1)===C&&(0,D.scrollElementIntoView)({id:C})},[]);let N=(0,T.useCallback)(e=>{k&&x(e)},[k]),_={onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),onClick:j},I="string"==typeof t?(0,r.jsx)(z.ComponentIcon,{icon:t,iconType:a,className:"size-3 bg-gray-900 dark:bg-gray-50",overrideColor:!0}):void 0===t?Number(e):t;return(0,r.jsxs)("div",{id:C||void 0,ref:b,role:"listitem",className:(0,E.cn)(R.Classes.Step,"group/step step-container relative flex items-start pb-5",d),children:[(0,r.jsx)("div",{"data-component-part":"step-line",className:(0,E.cn)("absolute w-px h-[calc(100%-2.75rem)] top-11",s?"bg-transparent bg-linear-to-b from-gray-200 dark:from-white/10 via-80% to-transparent [.step-container:has([data-component-part=step-content]:empty)_&]:hidden":"bg-gray-200/70 dark:bg-white/10"),contentEditable:!1}),(0,r.jsx)("div",{className:"absolute ml-[-13px] py-2","data-component-part":"step-number",contentEditable:!1,children:(0,r.jsxs)("div",{"data-component-part":"step-indicator",className:"group/step-indicator relative size-7 shrink-0 rounded-full bg-gray-50 dark:bg-white/10 text-xs text-gray-900 dark:text-gray-50 font-semibold flex items-center justify-center",onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:[(0,r.jsx)("div",{className:(0,E.cn)("[[data-component-part=step-indicator]:has(a:focus-visible)_&]:opacity-0",f&&"opacity-0"),children:I}),!l&&!!C&&k&&(0,r.jsx)("div",{className:"absolute","data-component-part":"step-number-anchor-link",children:(0,r.jsx)("a",{href:`#${C}`,className:(0,E.cn)("flex items-center opacity-0 border-0 focus-visible:opacity-100",f&&"opacity-100"),"aria-label":m["aria.navigateToHeader"],onClick:e=>{e.preventDefault(),j()},children:(0,r.jsx)("div",{className:"size-6 flex items-center justify-center",children:(0,r.jsx)(V.LinkIcon,{"aria-hidden":"true",className:"size-3 shrink-0",strokeWidth:2})})})})]})}),(0,r.jsxs)("div",{className:"w-full overflow-hidden pl-8 pr-px",children:[!!n&&({p:(0,r.jsx)("p",{className:"mt-2 font-semibold prose dark:prose-invert text-gray-900 dark:text-gray-200",contentEditable:!1,"data-component-part":"step-title",..._,children:n}),h2:(0,r.jsx)("h2",{className:"mt-2 cursor-pointer",contentEditable:!1,"data-component-part":"step-title",..._,children:n}),h3:(0,r.jsx)("h3",{className:"mt-2 cursor-pointer",contentEditable:!1,"data-component-part":"step-title",..._,children:n}),h4:(0,r.jsx)("h4",{className:"mt-2",contentEditable:!1,"data-component-part":"step-title",..._,children:n})})[v],(0,r.jsx)("div",{"data-component-part":"step-content",className:(0,E.cn)("prose dark:prose-invert",!n&&"mt-2"),children:o})]})]})},G=e=>T.Children.toArray(e).flatMap(e=>(0,T.isValidElement)(e)&&e.type===T.Fragment?G(e.props.children):[e]),W=e=>(0,T.isValidElement)(e)?"string"==typeof e.type?`<${e.type}>`:"A component child":`Text ("${String(e).trim().slice(0,40)}")`;var q=e.i(379841);e.i(45082);var Z=e.i(25871),X=e.i(963899),K=e.i(857866),J=e.i(995047);let Y=e=>{let t=`
2    <svg width="24" height="24" xmlns="http://www.w3.org/2000/svg">
3      <g opacity="0.5">
4        <line x1="12" y1="${7}" x2="12" y2="${17}" 
5              stroke="${e}" stroke-width="1" stroke-linecap="round"/>
6        <line x1="${7}" y1="12" x2="${17}" y2="12" 
7              stroke="${e}" stroke-width="1" stroke-linecap="round"/>
8      </g>
9    </svg>
10  `;return`data:image/svg+xml,${encodeURIComponent(t)}`},Q=Y("rgb(0 0 0 / 0.02)"),ee=Y("rgb(255 255 255 / 0.05)"),et=(0,E.cn)("bg-repeat-round bg-center [grid-area:1/1] size-full pointer-events-none select-none","bg-[size:24px_24px]","after:content-[''] after:left-0 after:absolute after:h-full after:w-[7px] dark:after:bg-gray-900 after:bg-gray-50","before:content-[''] before:right-0 before:absolute before:h-full before:w-[7px] dark:before:bg-gray-900 before:bg-gray-50");var er=e.i(401819),ea=e.i(642425);let en=(0,T.createContext)({level:1,parentId:null,highlighted:!1}),eo=()=>(0,T.useContext)(en),ei=({children:e,level:t,parentId:a,highlighted:n=!1})=>{let o=(0,T.useMemo)(()=>({level:t,parentId:a,highlighted:n}),[t,a,n]);return(0,r.jsx)(en.Provider,{value:o,children:e})},el=e=>6+(e-1)*22,es=({name:e,highlight:t=!1,className:a})=>{let{level:n,highlighted:o}=eo();return(0,r.jsxs)("div",{role:"treeitem","aria-level":n,"aria-current":t?"true":void 0,tabIndex:-1,
10className:(0,E.cn)("relative focus-visible:z-20 py-1 pr-1.5 -outline-offset-1 flex items-center gap-1.5 cursor-default font-medium",!t&&"pl-[calc(var(--padding-left)*1px)] text-gray-700 dark:text-gray-400",!t&&!o&&"hover:bg-neutral-100 dark:hover:bg-neutral-900 focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 dark:focus-visible:outline-(--color-primary)!",!t&&o&&"isolate before:absolute before:inset-y-0 before:right-0 before:-z-10 before:left-[calc(var(--highlight-left)*1px)] hover:before:bg-(--tree-highlight-bg) dark:hover:before:bg-(--tree-highlight-bg)/50 focus-visible:outline-hidden focus-visible:before:outline focus-visible:before:outline-2 focus-visible:before:-outline-offset-2 focus-visible:before:outline-(--tree-highlight-accent)",t&&"z-20 group/row pl-[calc(var(--padding-left)*1px)] text-(--tree-highlight-text) focus-visible:outline-hidden forced-colors:outline forced-colors:outline-1 forced-colors:-outline-offset-1 forced-colors:outline-[Highlight]",R.Classes.TreeFile,a),style:{"--padding-left":el(n)},children:[t&&(0,r.jsx)("span",{"aria-hidden":"true",className:"select-none absolute inset-y-0 right-0 -z-10 bg-(--tree-highlight-bg) group-hover/row:bg-(--tree-highlight-bg-hover) left-[calc(max(0px,(var(--padding-left)-14)*1px))] group-focus-visible/row:outline group-focus-visible/row:outline-2 group-focus-visible/row:-outline-offset-2 group-focus-visible/row:outline-(--tree-highlight-accent) print:print-color-exact","data-component-part":"tree-file-highlight-bg"}),t&&(0,r.jsx)("span",{"aria-hidden":"true",className:"select-none absolute inset-y-0 w-px bg-(--tree-highlight-accent) left-[calc(max(0px,(var(--padding-left)-14)*1px))] z-20 print:print-color-exact","data-component-part":"tree-file-highlight-bar"}),(0,r.jsx)(ea.FileIcon,{className:"shrink-0 select-none size-4","aria-hidden":"true","data-component-part":"tree-file-icon"}),(0,r.jsx)("span",{className:"truncate text-sm leading-5 tracking-[-0.1px]","data-component-part":"tree-file-title",title:e,children:e})]})};var ec=e.i(930733);let ed=(0,ec.default)("Folder2Icon",[["path",{d:"M13.75 5.25C14.855 5.25 15.75 6.145 15.75 7.25V12.75C15.75 13.855 14.855 14.75 13.75 14.75H4.25C3.145 14.75 2.25 13.855 2.25 12.75V4.75C2.25 3.645 3.145 2.75 4.25 2.75H6.075C6.662 2.75 7.219 3.008 7.599 3.455L9.123 5.25H13.749H13.75Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined"),eu=(0,ec.default)("Folder2OpenIcon",[["path",{d:"M5 14.75H4.25C3.145 14.75 2.25 13.855 2.25 12.75V4.75C2.25 3.645 3.145 2.75 4.25 2.75H6.075C6.662 2.75 7.219 3.008 7.599 3.455L9.123 5.25H13.749C14.854 5.25 15.749 6.145 15.749 7.25V8.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M16.148 13.27L16.991 10.14C17.248 9.187 16.53 8.25 15.543 8.25H6.15001C5.47201 8.25 4.87801 8.705 4.70201 9.36L3.76001 12.86C3.50301 13.813 4.22101 14.75 5.20801 14.75H14.217C15.121 14.75 15.913 14.143 16.148 13.27Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined"),ep=e=>Array.from(e.querySelectorAll('[role="treeitem"]')).filter(t=>t.closest('[role="tree"]')===e),em=(e,t)=>{ep(e).forEach(e=>{e.setAttribute("tabindex",e===t?"0":"-1")})},eg=({children:e,className:t})=>{let a=(0,A.useSelectedLocale)(),{highlighted:n}=eo(),o=(0,T.useRef)(null),i=(0,T.useRef)(""),l=(0,T.useRef)(null);(0,T.useEffect)(()=>{let e=o.current;if(!e)return;let t=ep(e),r=t[0];r&&em(e,t.find(e=>"0"===e.getAttribute("tabindex"))??t.find(e=>"true"===e.getAttribute("aria-current"))??r)},[e]),(0,T.useEffect)(()=>{let e=o.current;if(!e)return;let t=new MutationObserver(()=>{let t=ep(e),r=t[0];if(!r)return;let a=t.filter(e=>"0"===e.getAttribute("tabindex"));1!==a.length&&em(e,a.find(e=>e===document.activeElement)??a[0]??r)});return t.observe(e,{childList:!0,subtree:!0}),()=>{t.disconnect()}},[]),(0,T.useEffect)(()=>()=>{l.current&&clearTimeout(l.current)},[]);let s=(0,T.useCallback)(e=>{let t=o.current;e&&t&&e.closest('[role="tree"]')===t&&(em(t,e),e.focus())},[]),c=(0,T.useCallback)(e=>{let t=e.target,r=o.current;r&&t instanceof HTMLElement&&"treeitem"===t.getAttribute("role")&&t.closest('[role="tree"]')===r&&em(r,t)},[]);return(0,r.jsx)("div",{ref:o,role:"tree","aria-label":a["aria.fileTree"],onFocus:c,onKeyDown:e=>{let t=e.currentTarget,r=e.target;if(!(r instanceof HTMLElement)||"treeitem"!==r.getAttribute("role")||r.closest('[role="tree"]')!==t)return;let a=(e=>{let t=e.closest('[role="tree"]')??e;return Array.from(t.querySelectorAll('[role="treeitem"]')).filter(e=>e.closest('[role="tree"]')===t&&!((e,t)=>{let r=e=>{if(!e||e===t)return!1;if("group"===e.getAttribute("role")){let t=e.previousElementSibling;if(t?.getAttribute("aria-expanded")==="false")return!0}return r(e.parentElement)};return r(e.parentElement)})(e,t))})(t),n=a.indexOf(r),o=null!==r.getAttribute("aria-expanded"),c="true"===r.getAttribute("aria-expanded"),d=e.ctrlKey||e.metaKey||e.altKey,u=()=>{if(e.nativeEvent.isComposing)return;l.current&&clearTimeout(l.current),i.current+=e.key.toLowerCase();let t=i.current,r=n+1,o=[...a.slice(r),...a.slice(0,r)].find(e=>{let r=(e=>{let t=e.querySelector('[data-component-part="tree-folder-title"], [data-component-part="tree-file-title"]');return t?.textContent??e.textContent})(e);return r?.toLowerCase().startsWith(t)});o&&(e.preventDefault(),s(o)),l.current=setTimeout(()=>{i.current=""},500)};switch(e.key){case"ArrowDown":if(d)break;e.preventDefault(),s(a[n+1]);break;case"ArrowUp":if(d)break;e.preventDefault(),s(a[n-1]);break;case"ArrowRight":if(d)break;e.preventDefault(),o&&(c?s((e=>{let t=e.nextElementSibling;if(t?.getAttribute("role")!=="group")return null;let r=e.closest('[role="tree"]');return Array.from(t.querySelectorAll('[role="treeitem"]')).find(e=>e.closest('[role="tree"]')===r)??null})(r)):r.click());break;case"ArrowLeft":if(d)break;e.preventDefault(),o&&c?r.click():s(((e,t)=>{let r=e=>{if(!e||e===t)return null;if("group"===e.getAttribute("role")){let t=e.previousElementSibling;if(t instanceof HTMLElement&&"treeitem"===t.getAttribute("role"))return t}return r(e.parentElement)};return r(e.parentElement)})(r,t));break;case"Home":if(d)break;e.preventDefault(),s(a[0]);break;case"End":if(d)break;e.preventDefault(),s(a[a.length-1]);break;case" ":case"Enter":if(d)break;if(" "===e.key&&""!==i.current){u();break}e.preventDefault(),r.click();break;case"*":if(d)break;e.preventDefault(),((e,t)=>{let r=e=>e&&e!==t?"group"===e.getAttribute("role")||"tree"===e.getAttribute("role")?e:r(e.parentElement):null,a=r(e.parentElement)??t;return Array.from(a.querySelectorAll('[role="treeitem"][aria-expanded]')).filter(e=>(r(e.parentElement)??t)===a)}
10)(r,t).forEach(e=>{"false"===e.getAttribute("aria-expanded")&&e.click()});break;default:1!==e.key.length||d||u()}},className:(0,E.cn)("[--tree-highlight:var(--color-blue-600)] [--tree-highlight-accent:var(--tree-highlight)] [--tree-highlight-text:color-mix(in_oklab,var(--tree-highlight)_65%,black)] [--tree-highlight-bg:color-mix(in_oklab,var(--tree-highlight)_15%,white)] [--tree-highlight-bg-hover:color-mix(in_oklab,var(--tree-highlight)_25%,white)] [--tree-highlight-tint:color-mix(in_oklab,var(--tree-highlight)_7%,white)]","dark:[--tree-highlight-accent:color-mix(in_oklab,var(--tree-highlight)_65%,white)] dark:[--tree-highlight-text:color-mix(in_oklab,var(--tree-highlight)_25%,white)] dark:[--tree-highlight-bg:color-mix(in_oklab,var(--tree-highlight)_45%,black)] dark:[--tree-highlight-bg-hover:color-mix(in_oklab,var(--tree-highlight)_70%,black)] dark:[--tree-highlight-tint:color-mix(in_oklab,var(--tree-highlight)_45%,black)]",R.Classes.Tree,t),children:(0,r.jsx)(ei,{level:1,parentId:null,highlighted:n,children:e})})},eh=e=>T.Children.toArray(e).some(e=>!!(0,T.isValidElement)(e)&&(e.type===ef||e.type===es||e.type===eg||e.type===T.Fragment&&eh(e.props.children)));function ef({name:e,defaultOpen:t=!1,children:a,openable:n=!0,highlight:o=!1,className:i}){let l=(0,T.useId)(),s=`tree-folder-${l}`,c=`tree-group-${l}`,d=`tree-folder-title-${l}`,u=n&&eh(a),{level:p,highlighted:m}=eo(),[g,h]=(0,T.useState)(u&&t),f=u&&g?eu:ed;return(0,r.jsxs)("div",{role:"none",className:(0,E.cn)(o&&"relative"),style:{"--padding-left":el(p),"--highlight-left":o?Math.max(0,el(p)-14):void 0},children:[o&&(0,r.jsx)("span",{"aria-hidden":"true",className:"select-none absolute inset-y-0 right-0 bg-(--tree-highlight-tint) dark:bg-(--tree-highlight-tint)/40 left-[calc(max(0px,(var(--padding-left)-14)*1px))] print:print-color-exact","data-component-part":"tree-folder-highlight-tint"}),(0,r.jsxs)("div",{id:s,role:"treeitem","aria-level":p,"aria-expanded":u?g:void 0,"aria-owns":u&&g?c:void 0,"aria-labelledby":d,"aria-current":o?"true":void 0,tabIndex:-1,onClick:u?()=>h(e=>!e):void 0,onMouseDown:u?e=>{e.detail>1&&e.preventDefault()}:void 0,className:(0,E.cn)("relative focus-visible:z-20 py-1 pr-1.5 -outline-offset-1 flex items-center gap-1.5 font-medium",!o&&"pl-[calc(var(--padding-left)*1px)] text-gray-700 dark:text-gray-400",!o&&!m&&"hover:bg-neutral-100 dark:hover:bg-neutral-900 focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 dark:focus-visible:outline-(--color-primary)!",!o&&m&&"isolate before:absolute before:inset-y-0 before:right-0 before:-z-10 before:left-[calc(var(--highlight-left)*1px)] hover:before:bg-(--tree-highlight-bg) dark:hover:before:bg-(--tree-highlight-bg)/50 focus-visible:outline-hidden focus-visible:before:outline focus-visible:before:outline-2 focus-visible:before:-outline-offset-2 focus-visible:before:outline-(--tree-highlight-accent)",o&&"z-20 group/row pl-[calc(var(--padding-left)*1px)] text-(--tree-highlight-text) focus-visible:outline-hidden forced-colors:outline forced-colors:outline-1 forced-colors:-outline-offset-1 forced-colors:outline-[Highlight]",u?"cursor-pointer":"cursor-default",R.Classes.TreeFolder,i),children:[o&&(0,r.jsx)("span",{"aria-hidden":"true",className:"select-none absolute inset-y-0 right-0 -z-10 bg-(--tree-highlight-bg) group-hover/row:bg-(--tree-highlight-bg-hover) left-[calc(max(0px,(var(--padding-left)-14)*1px))] group-focus-visible/row:outline group-focus-visible/row:outline-2 group-focus-visible/row:-outline-offset-2 group-focus-visible/row:outline-(--tree-highlight-accent) print:print-color-exact","data-component-part":"tree-folder-highlight-bg"}),o&&(0,r.jsx)("span",{"aria-hidden":"true",className:"select-none absolute inset-y-0 w-px bg-(--tree-highlight-accent) left-[calc(max(0px,(var(--padding-left)-14)*1px))] z-20 print:print-color-exact","data-component-part":"tree-folder-highlight-bar"}),(0,r.jsx)(f,{className:"shrink-0 select-none size-4","aria-hidden":"true","data-component-part":u&&g?"tree-folder-icon-open":"tree-folder-icon-closed"}),(0,r.jsx)("span",{id:d,className:"truncate text-sm leading-5 tracking-[-0.1px]","data-component-part":"tree-folder-title",title:e,children:e})]}),u&&g&&(0,r.jsxs)("div",{id:c,role:"group",className:"relative","data-component-part":"tree-folder-children-wrapper",children:[(0,r.jsx)("div",{"aria-hidden":"true",className:"select-none absolute w-px h-full bg-neutral-200 dark:bg-neutral-800 left-[calc((var(--padding-left)+8)*1px)] z-10 print:print-color-exact","data-component-part":"tree-folder-children-line"}),(0,r.jsx)(ei,{level:p+1,parentId:s,highlighted:o||m,children:a})]})]})}let ex=Object.assign(eg,{File:es,Folder:ef}),eb=(0,T.forwardRef)(({children:e,label:t,id:a,description:n,tags:o,rss:i,className:l,...s},c)=>{let d=(0,F.safeCleanHeadingId)(a??""),[u,p]=(0,$.useMDXContent)(),m=(0,A.useSelectedLocale)(),[g,h]=(0,T.useState)(null),[f]=(0,B.useRect)(h),x=(0,P.useTop)(g),[b,y]=(0,T.useState)("idle"),v=(0,T.useRef)(null),k=(0,T.useMemo)(()=>o?.map(e=>
10e.trim()).filter(Boolean),[o]),w=!!u;(0,T.useEffect)(()=>()=>{v.current&&clearTimeout(v.current)},[]);let C=(0,T.useMemo)(()=>{if(!u.changelogFilters.length)return!0;let e=u.changelogFilters.filter(e=>e.active);return!(0!==e.length&&k?.length)||k.some(t=>e.some(e=>e.tag===t))},[u.changelogFilters,k]);(0,T.useEffect)(()=>{if(w&&d&&C&&void 0!==x)return p({type:"register_heading",payload:{id:d,top:x}}),()=>{p({type:"unregister_heading",payload:d})}},[x,d,w,p,C]);let j=(0,T.useCallback)(()=>{d&&((0,H.copyToClipboard)(`${window.location.origin}${window.location.pathname}#${d}`).then(e=>{"success"===e&&(y("copied"),v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{y("idle")},2e3))}),window.location.hash=d,(0,D.scrollElementIntoView)({id:d}))},[d]);return C?(0,r.jsxs)("div",{className:(0,E.cn)(R.Classes.Update,"flex flex-col relative items-start w-full lg:flex-row gap-2 lg:gap-6 py-8 update-container",l),ref:c,id:d||void 0,...s,children:[(0,r.jsxs)("div",{className:"lg:sticky top-(--scroll-mt) group flex flex-col w-full lg:w-[160px] items-start shrink-0 justify-start",children:[!!d&&(0,r.jsx)("div",{className:"absolute",children:(0,r.jsxs)("a",{href:`#${d}`,className:"-ml-10 flex items-center opacity-0 border-0 group-hover:opacity-100 focus:opacity-100 focus:outline-0 group/link","aria-label":`${m["aria.navigateToChangelog"]}: ${t}`,onClick:j,children:["​",(0,r.jsx)("div",{className:"size-6 rounded-md flex items-center justify-center shadow-xs text-gray-400 dark:text-white/50 dark:bg-background-dark dark:brightness-[1.35] dark:ring-1 dark:hover:brightness-150 bg-white ring-1 ring-gray-400/30 dark:ring-gray-700/25 hover:ring-gray-400/60 dark:hover:ring-white/20 group-focus/link:border-2 group-focus/link:border-primary dark:group-focus/link:border-primary-light",children:(0,r.jsx)(V.LinkIcon,{"aria-hidden":"true",className:"size-3 shrink-0",strokeWidth:2})})]})}),(0,r.jsx)("button",{type:"button",className:"cursor-pointer px-2 py-1 rounded-lg text-sm flex items-center grow-0 justify-center font-medium bg-primary/10 text-primary dark:text-primary-light",onClick:j,contentEditable:!1,"data-component-part":"update-label",children:t}),(0,r.jsx)("span",{role:"status",className:"sr-only",children:"copied"===b?m.copied:""}),!!k?.length&&(0,r.jsx)("div",{className:"px-1 flex flex-wrap gap-2 text-secondary dark:text-secondary-light mt-3 text-sm","data-component-part":"update-tag-list",children:k.map(e=>(0,r.jsx)("span",{className:"inline-block rounded-lg text-sm font-medium","data-component-part":"update-tag",children:e},e))}),n&&(0,r.jsx)("div",{className:"px-1 text-secondary dark:text-secondary-light mt-3 text-sm max-w-[160px] break-words",contentEditable:!1,"data-component-part":"update-description",children:n})]}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden px-0.5 max-w-full",ref:f,children:(0,r.jsx)("div",{className:"prose-sm","data-component-part":"update-content",children:e})})]}):null});eb.displayName="Update";var ey=e.i(734305);let ev=(0,T.forwardRef)(({children:e,title:t,className:a,...n},o)=>{let[{multiViewItems:i}]=(0,$.useMDXContent)();return i.find(e=>e.title===t)?.active?(0,r.jsx)("div",{className:(0,E.cn)(R.Classes.MultiViewItem,"prose dark:prose-dark",a),ref:o,...n,children:e}):null});ev.displayName="View",e.s(["useVisibilityViewer",()=>ej],767498);var ek=e.i(206558);let ew={signedIn:!1,groups:[]},eC=ek.NEXT_PUBLIC.AUTH_ENABLED||"cli"===ek.NEXT_PUBLIC.ENV||"development"===ek.NEXT_PUBLIC.ENV;function ej(){let{userAuth:e,userInfo:t,isFetchingUserInfo:r}=(0,T.useContext)(j.AuthContext),a=t?.groups,n=void 0!==t||!r;return(0,T.useMemo)(()=>e||eC?n?{signedIn:void 0!==t,groups:a??[]}:void 0:ew,[e,n,t,a])}var eN=e.i(620818);function e_({rule:e,children:a}){let n=ej(),o=void 0!==n&&(0,eN.matchesVisibilityAuthRule)(e,n);return(0,T.useEffect)(()=>{if(!o||!window.location.hash)return;let e=(e=>{try{return decodeURIComponent(e.slice(1))}catch{return}})(window.location.hash),r=e?document.getElementById(e):null;r&&r!==t&&(t=r,r.scrollIntoView())},[o]),o?(0,r.jsx)(r.Fragment,{children:a}):null}var eE=e.i(50270);let eT=eE.z.object({groups:eE.z.array(eE.z.string().trim().min(1)).min(1)}).strict();var eI=e.i(809700);let eM=(0,T.createContext)(void 0);function eS({delay:e=300,children:t}){return(0,r.jsx)(eI.Popover.Root,{children:(0,r.jsx)(eM.Provider,{value:(0,T.useMemo)(()=>({delay:e}),[e]),children:t})})}let eL=({children:e,href:t,target:a,rel:n,...o})=>{let i=(0,T.useContext)(eM);if(!i)throw Error("Missing Popup Context");let l=t?(0,r.jsx)("a",{href:t,rel:n,target:a,children:(0,r.jsx)("span",{className:"twoslash-hover",children:e})}):(0,r.jsx)("span",{className:"twoslash-hover",children:e});return(0,r.jsx)(eI.Popover.Trigger,{openOnHover:!0,delay:i.delay,closeDelay:i.delay,nativeButton:!1,render:l,...o})},eA=({className:e,side:t="bottom",align:a="center",sideOffset:n=4,ref:o,...i})=>{if(!(0,T.useContext)(eM))throw Error("Missing Popup Context");return(0,r.jsx)(eI.Popover.Portal,{children:(0,r.jsx)(eI.Popover.Positioner,{side:t,align:a,sideOffset:n,children:(0,r.jsx)(eI.Popover.Popup,{ref:o,className:["mint-twoslash-p
10opover",e].filter(Boolean).join(" "),initialFocus:!1,finalFocus:!1,...i})})})};var e$=e.i(522016),eP=e.i(770703);let eR=(0,eP.default)(()=>e.A(378570).then(e=>e.CustomCode),{loadableGenerated:{modules:[597573]},ssr:!1}),ez=(0,eP.default)(()=>e.A(875181).then(e=>e.Prompt),{loadableGenerated:{modules:[725144]}});function eH(e){if("number"==typeof e)return{type:"pixel",value:e};if("string"==typeof e){if(e.endsWith("%"))return{type:"percentage",value:e};let t=parseInt(e,10);if(!isNaN(t))return{type:"pixel",value:t}}}let eD=({height:e,width:t,src:a,className:n,style:o,...i})=>{let[l,s]=(0,T.useState)(!1);(0,T.useEffect)(()=>{s(!0)},[]),e=e||o?.height;let c=eH(t=t||o?.width),d=eH(e),u=c?.type==="pixel"&&d?.type==="pixel"?`${c.value} / ${d.value}`:void 0,p=!t&&!e;return(0,r.jsxs)("div",{"data-as":"iframe",className:(0,E.cn)("flex justify-center w-full"),children:[!l&&(0,r.jsx)("div",{className:(0,E.cn)("object-contain w-full",n),style:{...d?{height:d.value}:{},...c?{width:c.value}:{},...u?{aspectRatio:u}:{aspectRatio:"16/9"}}}),l&&(0,r.jsx)("iframe",{...i,title:i.title||"Embedded content",src:a,className:(0,E.cn)(p&&"w-full",n),style:{...u?{aspectRatio:u}:{aspectRatio:"16/9"},...o,...d?{height:d.value}:{},...c?{width:c.value}:{}}})]})},eF={Accordion:a.Accordion,AccordionGroup:n.AccordionGroup,Badge:o.Badge,Heading:x.Heading,Callout:i.Callout,Card:l.Card,CardGroup:u.CardGroup,Column:u.Column,Columns:u.Columns,Color:d.Color,Check:i.Check,CodeGroup:c.CodeGroup,CodeBlock:s.CodeBlock,CustomCode:eR,CustomComponent:p.default,DynamicCustomComponent:m.default,Expandable:h.Expandable,Frame:g.DynamicFrame,GitHub:f.GitHub,Github:f.GitHub,Tile:({href:e,children:t,title:a,description:n,className:o,"aria-label":i})=>{let l=null!=a&&""!==a,s=null!=n&&""!==n;return(0,r.jsxs)(J.DynamicLink,{href:e,"aria-label":i,className:(0,E.cn)(R.Classes.Tile,"flex items-center justify-center flex-col w-full min-w-0 gap-1 group cursor-pointer not-prose",o),children:[(0,r.jsxs)("div",{className:"h-[170px] w-full relative bg-gray-50 dark:bg-gray-900 rounded-2xl py-1 grid place-items-center overflow-hidden print:print-color-exact","data-component-part":"tile-children-container",children:[(0,r.jsx)("div",{"aria-hidden":"true",className:(0,E.cn)(et,"block dark:hidden print:print-color-exact"),style:{backgroundImage:`url("${Q}")`},"data-component-part":"tile-background-light"}),(0,r.jsx)("div",{"aria-hidden":"true",className:(0,E.cn)(et,"hidden dark:block print:print-color-exact"),style:{backgroundImage:`url("${ee}")`},"data-component-part":"tile-background-dark"}),(0,r.jsx)("div",{className:"size-full flex items-center justify-center p-8 [grid-area:1/1] [&_svg]:max-w-full [&_svg]:max-h-full [&_svg]:w-auto [&_svg]:h-auto","data-component-part":"tile-children-inner-container",children:t})]}),(l||s)&&(0,r.jsxs)("div",{className:"flex flex-col gap-1 p-2 items-center justify-center w-full min-w-0","data-component-part":"tile-text-container",children:[l&&(0,r.jsx)("p",{className:"text-base font-medium [letter-spacing:-0.2px] text-gray-900 dark:text-gray-200 m-0 truncate max-w-full",title:(0,K.getTitleText)(a),"data-component-part":"tile-title",children:a}),s&&(0,r.jsx)("p",{className:"text-sm [letter-spacing:-0.1px] text-gray-600 dark:text-gray-400 truncate m-0 font-normal max-w-full",title:n,"data-component-part":"tile-description",children:n})]})]})},Tree:ex,FileTree:ex,Info:i.Info,Icon:b.Icon,Link:e$.default,Note:i.Note,ParamField:L.ParamField,RequestExample:function({dropdown:e,children:t}){let a=(0,A.useSelectedLocale)();return(0,r.jsx)("div",{className:"block [html:not([data-assistant-state=open])_&]:xl:hidden mt-8",id:S.Ids.RequestExample,role:"region","aria-label":a["aria.requestExample"],children:(0,r.jsx)(c.CodeGroup,{isSmallText:!0,noMargins:!0,dropdown:e,hideCodeSnippetFeedbackButton:!0,children:t})})},ResponseExample:function({children:e,dropdown:t}){let a=(0,A.useSelectedLocale)();return(0,r.jsx)("div",{className:"block [html:not([data-assistant-state=open])_&]:xl:hidden mt-8",id:S.Ids.ResponseExample,role:"region","aria-label":a["aria.responseExample"],children:(0,r.jsx)(c.C
10odeGroup,{isSmallText:!0,noMargins:!0,dropdown:t,hideCodeSnippetFeedbackButton:!0,children:e})})},ResponseField:function({name:e,type:t,typeHref:a,hidden:n,default:o,required:i,deprecated:l,children:s,id:c,pre:d,post:u,className:p}){return(0,r.jsx)(L.GenericParam,{name:e,type:t,typeHref:a,hidden:n,defaultValue:o,required:i,deprecated:l,id:c,pre:d,post:u,className:p,children:s})},Step:U,Steps:({children:e,titleSize:t,className:a})=>{let{stepChildren:n,skippedChildren:o}=(0,T.useMemo)(()=>{let t=[],r=[];for(let a of G(e))(0,T.isValidElement)(a)&&a.type===U?t.push(a):r.push(W(a));return{stepChildren:t,skippedChildren:r}},[e]);return(0,T.useEffect)(()=>{for(let e of o)console.warn(`${e} cannot be a child of <Steps> and was skipped.`)},[o]),(0,r.jsx)("div",{role:"list",className:(0,E.cn)(R.Classes.Steps,"ml-3.5 mt-10 mb-6",a),children:n.map((e,a)=>{let{props:o}=e;return(0,r.jsx)(U,{...t&&{titleSize:t},...o,stepNumber:o.stepNumber??a+1,isLast:a===n.length-1},`${o.title} + ${a}`)})})},Tab:Z.Tab,Table:q.Table,Tabs:X.Tabs,Tip:i.Tip,Tooltip:er.Tooltip,SnippetGroup:c.SnippetGroup,Warning:i.Warning,Latex:y.Latex,MDX:v.MDX,ZoomImage:C.ZoomImage,OptimizedFrame:eD,OptimizedImage:M,OptimizedVideo:function({children:e,...t}){let{isLivePreview:a,liveMedia:n}=(0,T.useContext)(N.LivePreviewContext),o=(0,T.useMemo)(()=>{let e=t.src;return e&&"string"==typeof e?(0,N.resolveLivePreviewMediaSrc)({src:e,isLivePreview:a,liveMedia:n}):e},[t.src,a,n]);return(0,r.jsx)("video",{...t,src:o,children:e})},Mermaid:k.DynamicMermaid,Update:eb,Panel:function({children:e,className:t}){return(0,r.jsx)("div",{className:(0,E.cn)("block [html:not([data-assistant-state=open])_&]:xl:hidden",t),id:S.Ids.Panel,children:e})},Danger:i.Danger,Prompt:ez,Popup:eS,PopupContent:eA,PopupTrigger:eL,Variation:function({is:e,children:t}){let{selectedVariation:a}=(0,ey.useVariation)(),n=Array.isArray(e)?e:[e],o=n.every(e=>"string"==typeof e&&e.trim().length>0)?n.map(e=>e.trim()):[];return a&&o.includes(a)?(0,r.jsx)(r.Fragment,{children:t}):null},View:ev,Visibility:function({for:e,children:t}){if("humans"===e)return(0,r.jsx)(r.Fragment,{children:t});let a=function(e){if("signed-in"===e||"signed-out"===e)return e;let t=eT.safeParse(e);return t.success?t.data:void 0}(e);return a?(0,r.jsx)(e_,{rule:a,children:t}):null}};var eV=e.i(42143);let eB={},eO=T.default.createContext(eB);function eU(e){let t=T.default.useContext(eO);return T.default.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function eG(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(eB):e.components||eB:eU(e.components),T.default.createElement(eO.Provider,{value:t},e.children)}e.s(["MDXClient",()=>eZ],15878);var eW=e.i(921694);function eq(e){let{onError:t,...a}=e,{content:n,error:o}=function({compiledSource:e,frontmatter:t={},scope:a={},components:n,disableParentContext:o}){try{let{Content:i,mod:l}=function(e,t){let{keys:a,values:n}=function(e){let t={runMdxOptions:{useMDXComponents:e.mdxOptions?.useMDXComponents,baseUrl:e.mdxOptions?.baseUrl,jsx:r.jsx,jsxs:r.jsxs,jsxDEV:eW.jsxDEV,Fragment:r.Fragment,React:T},frontmatter:e.frontmatter,...e.scope};return{keys:Object.keys(t),values:Object.values(t)}}(t),{default:o,...i}=Reflect.construct((function(){}).constructor,a.concat(e))(...n);return{Content:o,mod:i}}(e,{frontmatter:t,scope:a,mdxOptions:{useMDXComponents:eU}});return{content:n?(0,r.jsx)(eG,{components:n,disableParentContext:o,children:(0,r.jsx)(i,{})}):(0,r.jsx)(i,{}),mod:l}}catch(e){return{content:(0,r.jsx)("div",{className:"mdx-empty"}),mod:{},error:e}}}(a);if(o&&!t)throw o;return o&&t?(0,r.jsx)(t,{error:o}):n}function eZ(e){let t={Popup:eS,PopupContent:eA,PopupTrigger:eL,...e.components};return(0,r.jsx)(eq,{...e,components:t})}"undefined"!=typeof window&&(window.requestIdleCallback||=function(e){var t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},window.cancelIdleCallback||=function(e){clearTimeout(e)});var eX=e.i(618566),eK=T;let eJ="rounded",eY={img:e=>(0,r.jsx)(M,{...e,className:(0,E.cn)(eJ,e.className)}),picture:e=>(0,r.jsx)(C.ZoomImage,{...e,children:(0,r.jsx)("picture",{className:(0,E.cn)(eJ,e.className)})}),figure:e=>(0,r.jsx)(C.ZoomImage,{...e,children:(0,r.jsx)("figure",{...e,className:(0,E.cn)(eJ,e.className)})}),p:e=>(0,r.jsx)("span",{"data-as":"p",...e}),iframe:e=>(0,r.jsx)(eD,{...e}),table:e=>(0,r.jsx)(q.Table,{...e})};class eQ extends eK.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error({error:e,errorInfo:t})}componentDidUpdate(e){this.props.resetKey&&e.resetKey!==this.props.resetKey&&this.state.hasError&&this.setState({hasError:!1})}render(){return this.state.hasError?this.props.fallback??null:this.props.children}}let e0=e=>(0,r.jsx)(J.DynamicLink,{...e,allowTarget:!0}),e1=e=>(0,r.jsx)(J.DynamicLink,{...e,allowTarget:!0,noLinkClass:!0}),e5=(0,eK.memo)(eZ);function e2(){return(0,r.jsxs)("div",{className:"animate-pulse space-y-6",children:[(0,r.jsx)("div",{className:"h-8 bg-gray-200 dark:bg-gray-700 rounded w-3/4"}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded w-full"}),(0,r.jsx)("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded w-5/6"}),(0,r.jsx)("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded w-4/6"})]}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded w-full"}),(0,r.jsx)("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded w-3/4"})]}),(0,r.jsx)("div",{className:"h-6 bg-gray-200 dark:bg-gray-700 rounded w-1/2"}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded w-full"}),(0,r.jsx)("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded w-5/6"}),(0,r.jsx)("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded w-2/3"})]})]})}let e3=({mdxSource:e,mdxSourceWithNoJs:t,pageMetadata:a,userInfo:n,forceIsLoading:o})=>{let[i,l]=(0,eK.useState)(!1),s=(0,eX.usePathname)(),{basePath:c="",currentPreviewPath:d,isLivePreview:u,getCompiledContent:p,livePreviewUpdateId:m}=(0,eK.useContext)(N.LivePreviewContext),g=(0,eK.useMemo)(()=>{let e=u?d:s;return e?(0,eV.normalizeLivePreviewPath)(e,c):""},[c,d,u,s]),h=(0,eK.useMemo)(()=>
10{if(u&&g)return p(g)},[u,g,p,m]);(0,eK.useEffect)(()=>{l(!0);let e=e=>{if(3===e.detail){let t=e.target;if(t&&t instanceof HTMLElement){let r=t.closest(":not(pre) > code");if(r){e.preventDefault();let t=window.getSelection(),a=document.createRange();a.selectNodeContents(r),t?.removeAllRanges(),t?.addRange(a)}}}};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let f=h?.mdxSource??e,b=h?.mdxSourceWithNoJs??t,y=(0,eK.useRef)({content:void 0,version:0});h!==y.current.content&&(y.current={content:h,version:y.current.version+1});let v=y.current.version,k=(0,eK.useMemo)(()=>f.compiledSource!==b.compiledSource,[f,b]),w=i&&k,C=`${g}:${w}:${h?v:"built"}`,j=(0,eK.useCallback)(({children:e,name:t})=>(0,r.jsx)(eQ,{name:t,resetKey:`${C}:${t??""}`,children:e}),[C]),_="custom"===a.mode,E=(0,eK.useMemo)(()=>({a:_?e1:e0,Heading:x.Heading,_MdxComponentBoundary:j,...eY}),[j,_]),I=(0,eK.useMemo)(()=>({...eF,_MdxComponentBoundary:j}),[j]),M=(0,eK.useMemo)(()=>({pageMetadata:a,user:n?.content??{},...w?{React:T,useState:T.useState,useEffect:T.useEffect,useRef:T.useRef,useCallback:T.useCallback,useMemo:T.useMemo,useReducer:T.useReducer,useContext:T.useContext,useLayoutEffect:T.useLayoutEffect,useImperativeHandle:T.useImperativeHandle,useDebugValue:T.useDebugValue,useDeferredValue:T.useDeferredValue,useTransition:T.useTransition,useId:T.useId,useSyncExternalStore:T.useSyncExternalStore,useInsertionEffect:T.useInsertionEffect}:{}}),[a,n?.content,w]),S=(0,eK.useMemo)(()=>({pageMetadata:a,user:n?.content??{}}),[a,n?.content]);return!0===o?(0,r.jsx)(e2,{}):(0,r.jsx)(eG,{components:E,children:(0,r.jsx)(eQ,{resetKey:C,fallback:(0,r.jsx)(e5,{components:I,compiledSource:b.compiledSource,frontmatter:b.frontmatter,scope:S}),children:(0,r.jsx)(e5,{components:I,compiledSource:w?f.compiledSource:b.compiledSource,frontmatter:f.frontmatter,scope:M})})})}},7849,266371,445193,946230,e=>{"use strict";e.s(["MdxPanel",()=>c],7849);var t=e.i(843476),r=e.i(91557),a=e.i(343590),n=e.i(476781),o=e.i(196151),i=e.i(917180),l=e.i(179862),s=e.i(271645);function c({mobile:e}){let{pageMetadata:c,panelMdxSource:d,panelMdxSourceWithNoJs:u}=(0,s.useContext)(r.PageContext),{userInfo:p}=(0,s.useContext)(r.AuthContext),m=(0,a.useSelectedLocale)();return d?(0,t.jsx)("div",{role:"complementary","aria-label":m["aria.sidePanel"],tabIndex:e?void 0:0,className:(0,l.cn)(n.Classes.Panel,"w-full xl:w-[28rem] max-w-full mb-6 relative max-h-[calc(100%-32px)]",e?"mt-8 lg:mt-0 flex flex-col gap-6 [html:not([data-assistant-state=open])_&]:xl:hidden":"overflow-y-auto"),children:(0,t.jsx)(o.default,{children:(0,t.jsx)(i.MdxContent,{mdxSource:d,mdxSourceWithNoJs:u??d,pageMetadata:c,userInfo:p})})}):null}e.s(["Api",()=>y],445193),e.s(["useChannel",()=>d],266371);let d=()=>{let{apiReferenceData:{channel:e}}=(0,s.useContext)(r.ApiReferenceContext);return(0,s.useMemo)(()=>e,[e])};var u=e.i(491066),p=e.i(615824),m=e.i(770703);let g=(0,m.default)(()=>e.A(969088).then(e=>e.AsyncApiPage),{loadableGenerated:{modules:[229816]}}),h=(0,m.default)(()=>e.A(293280).then(e=>e.GraphqlReferencePage),{loadableGenerated:{modules:[231830]}}),f=(0,m.default)(()=>e.A(189416).then(e=>e.OpenApiPage),{loadableGenerated:{modules:[333233]}}),x=(0,m.default)(()=>e.A(840049).then(e=>e.ApiExamples),{loadableGenerated:{modules:[300718]}}),b=()=>(0,u.useHasMdxCodeExample)()?(0,t.jsx)("div",{className:"mt-8 lg:mt-0 flex flex-col gap-6 [html:not([data-assistant-state=open]):has(#content-side-layout[data-api-example])_&]:xl:hidden max-h-[30rem] print:max-h-none",children:(0,t.jsx)(x,{})}):null,y=({pageMetadata:e,children:a})=>{let n=d(),{graphqlReferenceData:o}=(0,s.useContext)(r.ApiReferenceContext),i=e.api||e.openapi||e["openapi-schema"],l=e.asyncapi&&n,c=!!i||!!l||!!o;return((0,s.useEffect)(()=>{c&&(0,p.preloadShiki)()},[c]),l)?(0,t.jsx)(g,{channel:n,children:a}):o?(0,t.jsx)(h,{data:o,children:a}):i?(0,t.jsx)(f,{children:a}):(0,t.jsx)(b,{})};e.s(["Content",()=>j],946230);var v=e.i(378486),k=e.i(111048),w=e.i(343534),C=e.i(859711);let j=({pageMetadata:e,children:a})=>{let o=d(),{openApiReferenceData:i}=(0,s.useContext)(C.OpenApiReferenceContext),{graphqlReferenceData:c}=(0,s.useContext)(r.ApiReferenceContext),u=(0,v.useIsDirectoryPage)(),{isCu
10stom:p,isFrame:m}=(0,w.getPageMode)(e),g=e.openapi||e["openapi-schema"]||e.api||e.asyncapi,h=i.operation||i.schemaData||o;return c||g&&h?null:(0,t.jsx)("div",{className:(0,l.cn)(n.Classes.Content,"@container/columns-container relative",!p&&!m&&(0,l.cn)("mt-8 prose prose-gray dark:prose-invert [contain:inline-size] isolate empty:hidden",u?"mb-10":"mb-14")),"data-page-title":e.title,"data-page-href":e.href,id:k.Ids.Content,children:a})}}]);

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.