PageSourceSearch

https://static-2v.gitbook.com/_next/static/chunks/277-b26516843ad29f5d.js?dpl=p-581abe0bb7c943f47bbb4d9d6c8e02

js gitbook.com collected 2026-09-24 06:49:10 UTC 95,168 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[277],{5621:(e,t,r)=>{r.d(t,{DynamicTabs:()=>g});var n=r(54568),a=r(7620),i=r(95434),o=r(24017),s=r(86879),l=r(8329),c=r(62416),d=r(75235),u=r(60226),p=r(92669),h=r(21943);function g(e){var t,r;let{tabs:i,setClassName:o,className:s}=e,{activate:c}=(0,l.WM)(),[d,g]=(0,a.useState)(null),b=(0,a.useMemo)(()=>i.map(e=>e.slug),[i]),v=(0,l.pD)(b,null!=(t=null==(r=i[0])?void 0:r.slug)?t:null),{activeTabId:y,override:x}=(0,a.useMemo)(()=>{var e,t,r;let n=null!=(e=i.find(e=>e.slug===v))?e:i[0],a=d?i.find(e=>e.id===d):void 0,o=a&&a.slug===v&&a.id!==(null==n?void 0:n.id)?a:null;return{activeTabId:null!=(t=null!=(r=null==o?void 0:o.id)?r:null==n?void 0:n.id)?t:null,override:o}},[i,v,d]),k=(0,a.useCallback)(e=>{let t=i.find(t=>t.id===e);(null==t?void 0:t.slug)&&(c(t.slug),g(e),window.history.replaceState(null,"",(0,h.nk)("#".concat(t.id),window.location)))},[i,c]);return(0,n.jsxs)("div",{[u.HB]:"",className:(0,p.P)("rounded-lg","straight-corners:rounded-xs","ring-1 ring-tint-subtle ring-inset","flex min-w-0 flex-col",o,s),children:[(0,n.jsx)(f,{tabs:i,activeTabId:y,onSelect:k}),i.map((e,t)=>(0,n.jsx)(m,{tab:e,isDefault:0===t,pin:x&&e.slug===x.slug?e.id===x.id?"pinned":"unpinned":void 0},e.id))]})}let m=(0,a.memo)(function(e){let{tab:t,isDefault:r,pin:a}=e;return(0,n.jsx)("div",{[u.xj]:t.slug,...r?{[u.Lu]:""}:{},..."pinned"===a?{[u.sI]:""}:{},..."unpinned"===a?{[u.dz]:""}:{},role:"tabpanel",id:t.id,"aria-labelledby":x(t.id),className:"scroll-mt-[calc(var(--content-scroll-margin)+var(--spacing)*20)]",children:(0,n.jsx)("div",{className:"p-4",children:t.body})})}),f=(0,a.memo)(function(e){let{tabs:t,activeTabId:r,onSelect:i}=e,{containerRef:s,itemRef:l,overflowing:c,isMeasuring:d}=(0,o.Cl)(),u=(0,a.useMemo)(()=>Array.from(c,e=>{var r;let n=(r=e).startsWith("tab-")?r.slice(4):r;return t.find(e=>e.id===n)}).filter(e=>void 0!==e),[c,t]);return(0,n.jsxs)("div",{ref:s,role:"tablist",className:(0,p.P)("group/tabs","overflow-hidden","rounded-t-lg","straight-corners:rounded-t-xs","inline-flex","self-stretch","after:flex-1","after:bg-tint-12/1","[&:has(button.active-tab:last-of-type):after]:rounded-bl-md"),children:[d?(0,n.jsx)(b,{tabs:t,onSelect:i,activeTabId:r}):null,t.map(e=>c.has(x(e.id))&&!d?null:(0,n.jsx)(v,{ref:l,isActive:e.id===r,tab:e,onSelect:i},e.id)),u.length>0&&!d?(0,n.jsx)(b,{tabs:u,onSelect:i,activeTabId:r}):null]})});function b(e){let{tabs:t,onSelect:r,activeTabId:a}=e,o=(0,c.ok)();return(0,n.jsx)(s.rI,{button:(0,n.jsx)(y,{isActive:t.some(e=>e.id===a),"aria-label":(0,d.s)(o,"more"),className:"shrink-0",children:(0,n.jsx)(i.Icon,{icon:"ellipsis",className:"size-4"})}),children:t.map(e=>(0,n.jsx)(s._2,{onClick:()=>r(e.id),active:e.id===a,leadingIcon:e.icon,children:e.title},e.id))})}let v=(0,a.memo)(function(e){let{ref:t,tab:r,isActive:a,onSelect:o}=e;return(0,n.jsxs)(y,{ref:t,role:"tab","aria-selected":a,"aria-controls":r.id,id:x(r.id),onClick:()=>o(r.id),children:[r.icon&&(0,n.jsx)(i.Icon,{icon:r.icon,className:"size-4 shrink-0"}),(0,n.jsx)("span",{className:"min-w-0 truncate",children:r.title})]})});function y(e){let{isActive:t,...r}=e;return(0,n.jsx)("div",{className:(0,p.P)("relative","flex items-center","[&:has(+_.active-tab)]:rounded-br-md","[.active-tab+&]:rounded-bl-md","[.active-tab_+_:after]:rounded-br-md","after:transition-colors","after:border-r","after:absolute","after:left-[unset]","after:right-0","after:border-tint","after:top-[15%]","after:h-[70%]","after:w-px","last:after:border-transparent","text-tint","bg-tint-12/1","hover:text-tint-strong","max-w-full","shrink-0","truncate",e["aria-selected"]||e["aria-expanded"]||t?["active-tab","text-tint-strong","bg-transparent","[&.active-tab]:after:border-transparent","[:has(+_&.active-tab)]:after:border-transparent","[:has(&_+)]:after:border-transparent"]:null),children:(0,n.jsx)("button",{...r,type:"button",className:(0,p.P)("relative inline-flex max-w-full items-center gap-1.5 px-3.5 py-2 font-medium text-sm transition-[color]",e.className)})})}function x(e){return"tab-".concat(e)}},17616:(e,t,r)=>{r.d(t,{AskAICodeButton:()=>u});
1var n=r(54568),a=r(82277),i=r(83983),o=r(98888),s=r(86879),l=r(20501),c=r(62416),d=r(92669);function u(e){let{codeId:t,title:r,syntax:u,style:p}=e,h=(0,c.ok)(),g=(0,i.Ap)(),m=(0,i.C8)();return(0,l.an)(g.aiMode)?(0,n.jsx)(s.$n,{size:"xsmall",variant:"secondary",icon:(0,n.jsx)(o.yQ,{state:"default",trademark:g.trademark,className:""}),onClick:()=>{let e=(0,a.GW)(t);(null==e?void 0:e.trim())&&(m.addReference({type:"code-block",id:t,label:null!=r?r:"Code",content:e,syntax:u}),m.open(),m.focus())},className:(0,d.P)(p,"translate-y-0!","print:hidden","[[data-ai-chat]_&]:hidden"),children:(0,c.t)(h,"ask")}):null}},22965:(e,t,r)=>{r.r(t),r.d(t,{FilteredUpdate:()=>x,UpdatesFilterProvider:()=>h,UpdatesTagFilters:()=>m,useUpdatesFilter:()=>g});var n=r(54568),a=r(79748),i=r(7620),o=r(95434),s=r(43932),l=r(86879),c=r(92669),d=r(85629);let u={selectedTags:[],selectedTagSet:new Set,toggleTag:()=>{},clearTags:()=>{}},p=i.createContext(null);function h(e){let{tagSlugs:t,children:r}=e,o=(0,a.usePathname)(),s=(0,a.useRouter)(),l=(0,a.useSearchParams)(),c=i.useMemo(()=>new Set(t),[t]),u=i.useCallback(e=>(0,d.br)(e,c),[c]),h=i.useMemo(()=>{var e;return null!=(e=null==l?void 0:l.getAll(d.Vh))?e:[]},[l]),g=i.useMemo(()=>u(h),[u,h]),[m,f]=i.useState([]),b=i.useRef(m),x=i.useMemo(()=>(0,d.lx)(t),[t]);i.useLayoutEffect(()=>(document.documentElement.setAttribute(d.kC,x),()=>{document.documentElement.removeAttribute(d.kC),document.documentElement.removeAttribute(d.R_)}),[x]);let k=i.useCallback(e=>{let t=new URLSearchParams(null==l?void 0:l.toString());for(let r of(t.delete(d.Vh),u(e)))t.append(d.Vh,r);let r=t.toString(),n=window.location.hash;s.replace("".concat(o).concat(r?"?".concat(r):"").concat(n),{scroll:!1})},[o,s,u,l]);i.useEffect(()=>{v(h,g)||k(g)},[h,k,g]),i.useLayoutEffect(()=>{y(g),v(b.current,g)||(b.current=g,f(g))},[g]);let w=i.useCallback(e=>{let t=u(e(b.current));b.current=t,f(t),y(t),k(t)},[k,u]),j=i.useCallback(e=>{c.has(e)&&w(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[c,w]),S=i.useCallback(()=>{w(()=>[])},[w]),N=i.useMemo(()=>new Set(m),[m]),C=i.useMemo(()=>({selectedTags:m,selectedTagSet:N,toggleTag:j,clearTags:S}),[m,N,j,S]);return(0,n.jsx)(p.Provider,{value:C,children:r})}function g(){var e;return null!=(e=i.useContext(p))?e:u}function m(e){let{tags:t,tagsLabel:r,clearLabel:a}=e,{toggleTag:i,clearTags:s}=g();return 0===t.length?null:(0,n.jsxs)("div",{className:"shrink-0 border-b border-tint-subtle pb-4 pt-px",children:[(0,n.jsxs)("div",{className:"mb-3 ml-3 flex items-center justify-between gap-2",children:[(0,n.jsxs)("div",{className:"leading-wider flex items-center gap-1 text-xs font-semibold uppercase text-tint",children:[(0,n.jsx)(o.Icon,{icon:"tags",className:"size-3"}),r]}),(0,n.jsx)(l.$n,{variant:"blank",size:"xsmall",icon:"xmark",label:a,onClick:s,[d.EM]:"",className:"pointer-events-none invisible text-xs"})]}),(0,n.jsx)("div",{className:"flex flex-wrap gap-1.5 px-3",children:t.map(e=>(0,n.jsx)(b,{tag:e,onToggle:i},e.slug))})]})}let f="max-w-full items-center gap-1 rounded-full px-2 py-1 font-medium text-xs leading-normal transition-colors circular-corners:rounded-2xl straight-corners:rounded-xs";function b(e){let{tag:t,onToggle:r}=e,{selectedTagSet:a}=g();return(0,n.jsxs)("button",{type:"button","aria-pressed":a.has(t.slug),onClick:()=>r(t.slug),className:"inline-flex max-w-full rounded-full circular-corners:rounded-2xl straight-corners:rounded-xs not-focus-visible:outline-0 focus-visible:ring-2 focus-visible:ring-primary",children:[(0,n.jsxs)("span",{[d.ve]:t.slug,className:(0,c.P)(f,"hidden bg-primary-original text-contrast-primary-original hover:bg-primary-solid-hover"),children:[(0,n.jsx)(s.g,{tag:t}),(0,n.jsx)("span",{className:"truncate",children:t.label})]}),(0,n.jsxs)("span",{[d.hi]:t.slug,className:(0,c.P)(f,"hidden bg-tint-5 text-tint-strong opacity-8 hover:bg-tint-hover hover:opacity-11"),children:[(0,n.jsx)(s.g,{tag:t}),(0,n.jsx)("span",{className:"truncate",children:t.label})]}),(0,n.jsxs)("span",{[d.Tk]:t.slug,className:(0,c.P)(f,"flex bg-tint-5 text-tint-strong hover:bg-tint-hover"),children:[(0,n.jsx)(s.g,{tag:t}),(0,n.jsx)("span",{className:"truncate",children:t.label})]})]})}function v(e,t){return e.length===t.length&&e.every((e,r)=>e===t[r])}function y(e){"u">typeof document&&(e.length>0?document.documentElement.setAttribute(d.R_,e.join(" ")):document.documentElement.removeAttribute(d.R_))}function x(e){let{tagSlugs:t,className:r,children:a}=e;return(0,n.jsx)("div",{className:r,[d.or]:t.join(" "),children:a})}},23635:(e,t,r)=>{r.r(t),r.d(t,{AnnotationPopover:()=>i});var n=r(54568),a=r(86879);function i(e){let{children:t,body:r}=e;return(0,n.jsx)(a.m_,{label:r,pinOnClick:!0,popupProps:{role:"definition"},className:"bg-tint-base px-4 py-3 text-sm text-tint-strong shadow-lg shadow-tint-12/4 ring-1 ring-tint-subtle dark:shadow-tint-1",arrow:{className:"fill-tint-1"},children:(0,n.jsx)("dfn",{"data-annotation":"",className:"cursor-help underline decoration-dotted decoration-1 underline-offset-2",tabIndex:0,children:t})})}},24370:(e,t,r)=>{r.d(t,{CopyCodeButton:()=>c});var n=r(54568),a=r(7620),i=r(82277),o=r(86879),s=r(62416),l=r(92669);
1function c(e){let{codeId:t,style:r}=e,c=(0,s.ok)(),[d,u]=a.useState(!1);return a.useEffect(()=>{if(!d)return;let e=setTimeout(()=>{u(!1)},1e3);return()=>{clearTimeout(e)}},[d]),(0,n.jsx)(o.$n,{size:"xsmall",variant:"secondary",onClick:()=>{let e=(0,i.GW)(t);null!==e&&(navigator.clipboard.writeText(e),u(!0))},className:(0,l.P)(r,"translate-y-0!","print:hidden"),children:(0,s.t)(c,d?"code_copied":"code_copy")})}},27980:(e,t,r)=>{function n(){return a||(a=!0,Promise.all([r.e(2395),r.e(9182)]).then(r.t.bind(r,59182,19)).then(()=>{document.body.classList.add("katex-loaded")})),null}r.r(t),r.d(t,{default:()=>n});let a=!1},30116:(e,t,r)=>{r.d(t,{Details:()=>s});var n=r(54568),a=r(7620),i=r(24017),o=r(92669);function s(e){let{children:t,id:r,className:s}=e,l=a.useRef(null),[c,d]=a.useState(!1),u=(0,i.QZ)();return a.useEffect(()=>{if(!u||!l.current)return;if(u===r)return void d(!0);let e=document.getElementById(u);d(!!(e&&l.current.contains(e)))},[u,r]),(0,n.jsx)("details",{ref:l,id:r,open:e.open||c,className:(0,o.P)(s,"group/expandable","bg-tint-base","border","border-b-0","border-tint-subtle","mt-0!","mb-0","first:mt-5!","first:rounded-t-lg","[:not(&)_+_&]:mt-5!","[:not(&)_+_&]:rounded-t-lg","[&:not(:has(+_&))]:mb-5","[&:not(:has(+_&))]:rounded-b-lg","[&:not(:has(+_&))]:border-b"),children:t})}},30132:(e,t,r)=>{r.d(t,{s:()=>o});var n=r(7620),a=r(36017),i=r(64690);function o(e){let{visitorClaims:t,variables:r}=e;return n.useMemo(()=>{let e=new a.$7,n=(0,i.M3)({visitorClaims:t,variables:r});return t=>{try{var r;return(0,a.jZ)(null!=(r=e.evaluate(t,n))?r:"")}catch(e){return console.error("Failed to evaluate expression:",t,e),"{{".concat(t,"}}")}}},[r,t])}},30140:(e,t,r)=>{r.r(t),r.d(t,{ElementTextInput:()=>s});var n=r(88276),a=r(47982),i=r(54568),o=r(80827);function s(e){var t,r,s;let{element:l}=e,c=(0,n.d)(),d=null!=(t=null!=(r=(0,a.i)(c.state,l.state))?r:l.initialValue)?t:"",u=e=>{c.setState({[l.state]:e.target.value})};return l.multiline?(0,i.jsx)("textarea",{disabled:l.disabled,className:o("contentkit-textinput"),value:d,placeholder:l.placeholder,onChange:u,rows:4}):(0,i.jsx)("input",{type:null!=(s=l.inputType)?s:"text",disabled:l.disabled,className:o("contentkit-textinput"),value:d,placeholder:l.placeholder,onChange:u})}},30285:(e,t,r)=>{r.r(t),r.d(t,{OpenAPIBlockLazy:()=>i});var n=r(54568);let a=(0,r(42925).default)(()=>Promise.all([r.e(9383),r.e(13)]).then(r.bind(r,10013)).then(e=>e.OpenAPIBlockClient),{loadableGenerated:{webpack:()=>[10013]},ssr:!0});function i(e){return(0,n.jsx)(a,{...e})}},35501:(e,t,r)=>{r.d(t,{HeadingRevealWrapper:()=>g});var n=r(54568),a=r(7620),i=r(92669);let o="data-heading-reveal-wrapper",s=null,l=new Set;function c(e){let t=e.target;t instanceof Element&&t.closest("[".concat(o,"]"))||h(null)}function d(e){return l.add(e),1===l.size&&document.addEventListener("pointerup",c),()=>{l.delete(e),0===l.size&&document.removeEventListener("pointerup",c)}}function u(){return s}function p(){return null}function h(e){if(s!==e)for(let t of(s=e,l))t()}function g(e){let{as:t,id:r,className:s,children:l,...c}=e,g=(0,a.useSyncExternalStore)(d,u,p)===r;return(0,n.jsx)(t,{id:r,className:(0,i.P)(s,g&&"hash-revealed"),onPointerUp:e=>{if("mouse"===e.pointerType&&window.matchMedia("(hover: hover)").matches)return;let t=e.target;t instanceof Element&&t.closest('a, button, input, select, textarea, [role="button"]')||h(g?null:r)},[o]:!0,...c,children:l})}},36017:(e,t,r)=>{r.d(t,{$7:()=>Y,QC:()=>Q,jZ:()=>S});var n,a,i,o,s,l,c,d,u,p=r(8831),h=r(28012),g=r(80226),m=r(92842),f=r(91651),b=r(63699),v=r(16981),y=r(97711),x=r(277),k=r(28973),w=r(66550),j=class e extends Error{constructor(t,r,n){super(t),(0,m._)(this,"location",void 0),(0,m._)(this,"token",void 0),Error.captureStackTrace&&Error.captureStackTrace(this,e),this.name="ExpressionError",this.location=r,this.token=n}};function S(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null==e?t:"string"==typeof e?e:"number"==typeof e||"boolean"==typeof e?e.toString():t}function N(e){return!!e}let C=((n={}
1).Boolean="boolean",n.Number="number",n.String="string",n.Object="object",n.Array="array",n.Function="function",n.Union="union",n.Undefined="undefined",n.Null="null",n);function _(e){switch(e.type){case C.String:case C.Number:case C.Boolean:case C.Array:case C.Object:case C.Function:case C.Union:case C.Undefined:case C.Null:return e;default:throw Error("Unknown symbol type: ".concat(e.type))}}function E(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:C.Boolean,...e}}function P(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:C.Number,...e}}function R(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return T(C.String,e)}function O(e){return{type:C.Object,...e}}function A(e){return T(C.Array,e)}function I(e){return{type:C.Function,...e}}function z(e){return{...e,optional:!0}}function M(e){return{type:C.Union,...e}}function U(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:C.Undefined,...e}}function L(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:C.Null,...e}}function T(e,t){let r={type:e,...t};return Object.defineProperty(r,"properties",{get(){var e,t;return r.type===C.Array?F(r)?null==(e=W[C.Array])?void 0:e.call(W,r).properties:{}:(null==(t=W[r.type])?void 0:t.properties)||{}}}),Object.defineProperty(r,"methods",{get(){var e,t;return r.type===C.Array?F(r)?null==(e=W[C.Array])?void 0:e.call(W,r).methods:[]:(null==(t=W[r.type])?void 0:t.methods)||[]}}),r}let W={[C.String]:{properties:{length:P({name:"length",description:"The length data property of a String value contains the length of the string in UTF-16 code units.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length"})},methods:[I({name:"at",description:"Takes an integer value and returns the item at that index, allowing for positive and negative integers.\n            Negative integers count back from the last item in the string.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/at",args:[P({name:"index",description:"The index (position) of the string character to be returned"})],returns:M({description:"A String consisting of the single UTF-16 code unit located at the specified position.\n                Returns undefined if the given index can not be found.",members:[R(),U()]})}),I({name:"startsWith",description:"Returns true if the given characters are found at the beginning of the string, including when searchString \n            is an empty string. Otherwise returns false.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith",args:[R({name:"searchString",description:'The characters to be searched for at the start of this string. Cannot be a regex.\n                    All values that are not regexes are coerced to strings, so omitting it or passing undefined causes startsWith() to search for \n                    the string "undefined", which is rarely what you want.'}),z(P({name:"position",description:"The start position at which searchString is expected to be found \n                    (the index of searchString's first character). Defaults to 0."}))],returns:E({description:"true if the given characters are found at the beginning of the string, including when searchString is an empty string; \n                otherwise, false."})}),I({name:"endsWith",description:"Returns true if the sequence of elements of searchString converted to a String is the same as the corresponding \n            elements of this object (converted to a String) starting at endPosition – length(this). Otherwise returns false.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith",args:[R({name:"searchString",description:'The characters to be searched for at the end of str. Cannot be a regex.\n                    All values that are not regexes are coerced to strings, so omitting it or passing undefined causes endsWith() to search for \n                    the string "undefined", which is rarely what you want.'}),z(P({name:"endPosition",description:"The end position at which searchString is expected to be found \n                    (the index of searchString's last character plus 1). Defaults to str.length."}))],returns:E({description:"true if the given characters are found at the end of the string, including when searchString is an empty string; \n                otherwise, false."})}),I({name:"includes",description:"Returns true if searchString appears as a substring of the result of converting this object to a String, at one or more positions \n            that are greater than or equal to position; otherwise, returns false.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes",args:[R({name:"searchString",description:'A string to be searched for within str. Cannot be a regex. All values that are not regexes are coerced to strings, so omitting it \n                or passing undefined causes includes() to search for the string "undefined", which is rarely what you want.'}),z(P({name:"position",description:"The position within the string at which to begin searching for searchString. (Defaults to 0.)"}))],returns:E({description:"true if the search string is found anywhere within the given string, including when searchString is an empty string; \n                otherwise, false."})}),I({name:"toLowerCase",description:"Returns the value of the string converted to lower case. toLowerCase() does not affect the value of the string str itself.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase",args:[],returns:R({description:"A new string representing the calling string converted to lower case."})}),I({name:"toUpperCase",description:"Returns the value of the string converted to uppercase. toUpperCase() does not affect the value of the string str itself.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase",args:[],returns:R({description:"A new string representing the calling string converted to upper case."})}),I({name:"trim",description:"Returns new string representing str stripped of whitespace from both its beginning and end.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trim",args:[],returns:R({description:"A new string representing str stripped of whitespace from both its beginning and end."})})]},[C.Array]:e=>({properties:{length:P({name:"length",description:"The length data property of an Array instance represents the number of elements in that array.\n                The value is an unsigned, 32-bit integer that is always numerically greater than the highest index in the array.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/length"})},methods:[I({name:"at",description:"Takes an integer value and returns the item at that index, allowing for positive and negative integers. \n                Negative integers count back from the last item in the array.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at",args:[P({name:"index",description:"Zero-based index of the array element to be returned, converted to an integer. \n                        Negative index counts back from the end of the array — if index < 0, index + array.length is accessed."})],returns:M({description:"The element in the array matching the given index. Always returns undefined if index < -array.length or index >= array.length \n                    without attempting to access the corresponding property.",members:[e.items,U()]})}),I({name:"includes",description:"Determines whether an array includes a certain value among its entries, returning true or false as appropriate.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes",args:[{...e.items,name:"searchElement",description:"The value to be searched for within the array."},z(P({name:"fromIndex",description:"The position within the string at which to begin searching for searchString. (Defaults to 0.)"}))],returns:E({description:"true if the value searchElement is found within the array (or the part of the array indicated by the index fromIndex, if specified)."})}),I({name:"some",description:"Tests whether at least one element in the array passes the test implemented by the provided function.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some",args:[I({name:"callback",description:"A function that tests each element of the array.",args:[{...e.items,name:"element",description:"The current element being processed in the array."}],returns:E({description:"true if the callback function returns a truthy value for at least one element in the array."})})],returns:E({description:"true if the callback function returns a truthy value for at least one element in the array."})}),I({name:"every",description:"Tests whether all elements in the array pass the test implemented by the provided function.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every",args:[I({name:"callback",description:"A function that tests each element of the array.",args:[{...e.items,name:"element",description:"The current element being processed in the array."}],returns:E({description:"true if the callback function returns a truthy value for all elements in the array."})})],returns:E({description:"true if the callback function returns a truthy value for all elements in the array."})})]})};function F(e){return e.type===C.Array}
1var B=class e extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,e),this.name="SymbolError"}},q=(a=new WeakMap,i=new WeakMap,o=class e{merge(t){return new e({...(0,p._)(this,i),...(0,p._)(t,i)})}toString(){return JSON.stringify((0,p._)(this,a),null,2)}static inferSymbolFromValue(t,r){if(Array.isArray(t)){if(0===t.length)return A({items:U()});let n=e.inferSymbolFromValue(t.at(0));if(t.length>1){let r=e.inferSymbolFromValue(t.at(1));if(n.type!==r.type)throw new B("Array with mixin items types are not supported")}return A({name:r,items:n})}if(void 0===t)return U({name:r});if(null===t)return L({name:r});let n=typeof t;switch(n){case"string":return R({name:r});case"number":return P({name:r});case"boolean":return E({name:r});case"object":return O({name:r,properties:Object.entries(t).reduce((t,r)=>{let[n,a]=r;return t[n]=e.inferSymbolFromValue(a,n),t},{}),methods:[]});default:throw new B("Unsupported symbol type ".concat(n))}}static inferSymbolFromJSONSchema(t,r){switch(t.type){case"string":return R({name:r,...t.description?{description:t.description}:{},...t.enum?{enum:t.enum.filter(N).map(e=>e.toString())}:{}});case"number":case"integer":return P({name:r,...t.description?{description:t.description}:{}});case"boolean":return E({name:r,...t.description?{description:t.description}:{}});case"null":return L({name:r,...t.description?{description:t.description}:{}});case"object":return(0,f._)(e,o,er).call(o,t,r);case"array":return(0,f._)(e,o,en).call(o,t,r);default:throw Error("Unsupported schema type: ".concat(t.type))}}generateSymbolRefPath(e){return e.join(".")}addSymbol(e,t){var r,n;let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=this.generateSymbolRefPath(e),l=e.slice(0,-1).join(".");if((0,p._)(this,a)[s])throw new B('Symbol "'.concat(s,'" already exists.'));o&&((0,p._)(this,i)[s]=t),(0,p._)(this,a)[s]={definition:_(t),ref:s,parentRef:l||void 0,childrenRefs:[]},l&&(0,p._)(this,a)[l]&&(0,p._)(this,a)[l].childrenRefs&&(0,p._)(this,a)[l].childrenRefs.push(s),((r=t).type===C.Object||r.type===C.Array||r.type===C.String)&&Object.entries(t.properties).forEach(t=>{let[r,n]=t;n.type===C.Object?this.addSymbols({[r]:n},e,!1):this.addSymbol([...e,r],n,!1)}),((n=t).type===C.Object||n.type===C.Array||n.type===C.String)&&t.methods.forEach(t=>{this.addSymbol([...e,t.name],t,!1)})}addSymbols(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];for(let[n,a]of Object.entries(e)){let e=[...t,n];this.addSymbol(e,a,r)}}getSymbolInfo(e){var t;let r,n=Array.isArray(e)?e.join("."):e,i=(0,p._)(this,a)[n];return i?(r=_((t=i).definition),{...t,definition:r}):void 0}getMatchingSymbolsKeys(e){let t=new RegExp("^".concat(e.map(e=>e.includes("*")?"".concat(e.split("*")[0],"([^.]+)?"):e).join("\\."),"$"));return Object.keys((0,p._)(this,a)).filter(e=>t.test(e)).filter(N)}constructor(e={}){(0,h._)(this,a,{writable:!0,value:void 0}),(0,h._)(this,i,{writable:!0,value:void 0}),(0,g._)(this,a,{}),(0,g._)(this,i,{}),this.addSymbols(e)}});let J=[{operator:"==",description:"Checks whether two values are equal.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality"},{operator:"!=",description:"Checks whether two values are unequal.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality"},{operator:"===",description:"Checks whether two values are equal (strict comparison).",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality"},{operator:"!==",description:"Checks whether two values are unequal (strict comparison).",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_inequality"},{operator:"<",description:"Checks if the left value is less than the right value.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Less_than"},{operator:"<=",description:"Checks if the left value is less than or equal to the right value.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Less_than_or_equal"},{operator:">
1",description:"Checks if the left value is greater than the right value.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Greater_than"},{operator:">=",description:"Checks if the left value is greater than or equal to the right value.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Greater_than_or_equal"},{operator:"in",description:"Checks if a property exists in an object or if a value is in an array.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/in"}],D=[{operator:"&&",description:"Logical AND operator; returns true if both operands are true.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_AND"},{operator:"||",description:"Logical OR operator; returns true if at least one operand is true.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_OR"}],$=[{operator:"?",description:"Conditional (ternary) operator; returns one of two values based on a condition.",link:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator"}];var V=(s=new WeakMap,l=new WeakMap,class{getSuggestions(e,t,r){if(!e.length)return[];try{var n,a,i;let{result:o,invalidNodes:l}=(0,p._)(this,s).parse(e,{loose:!0}),c=k.hx(o,t,(e,r)=>K(r,t));if(!c){if(t>o.end){let e=l.length>0?null==(n=l[0])?void 0:n.expression:o;if(!e)return[];let t=k.hx(e,e.end,(t,r)=>K(r,e.end));if(!t)return[];let{node:i}=t;if(a=i,!("type"in a))throw Error("Unexpected node type ".concat(i.type));return this.getOperatorSuggestionsForNode(e,i,o.end,r)}return[]}let{node:d}=c;if(i=d,!("type"in i))throw Error("Unexpected node type ".concat(d.type));return this.getSuggestionsForNode(o,d,e,t,r)}catch(e){return(0,p._)(this,l).error("Error while computing autocomplete suggestions",e),[]}}getSuggestionsForNode(e,t,r,n,a){let i=t;if("Identifier"===t.type||"Literal"===t.type){let r=G(t,e);i=r&&!["ExpressionStatement","LogicalExpression","ConditionalExpression"].includes(r.type)?r:t}switch(i.type){case"Identifier":case"MemberExpression":{var o,s;let e=this.getSymbolsPathPartsForMemberExpressionNode(i,n),t=a.getMatchingSymbolsKeys(e),r=[];for(let e of t){let t=a.getSymbolInfo(e);t&&r.push({type:"symbol",symbol:t})}if(1===r.length)return(null==(o=e.at(-1))?void 0:o.replace(/\*$/,""))!==(null==(s=r[0])?void 0:s.symbol.definition.name)?r:[];return r}case"AssignmentExpression":case"UnaryExpression":return this.getOperatorSuggestionsForNode(e,i,n,a);case"BinaryExpression":{let{left:t,right:o}=i,s=J.some(e=>e.operator===i.operator);if(n>r.indexOf(i.operator,t.end)+i.operator.length&&s&&K(o,n))return this.getLiteralValueSuggestionsForNode(i,n,a);return this.getOperatorSuggestionsForNode(e,i,n,a)}case"ConditionalExpression":{let{consequent:t,alternate:o}=i;if(K(t,n))return this.getSuggestionsForNode(e,t,r,n,a);if(K(o,n))return this.getSuggestionsForNode(e,o,r,n,a)}}return[]}getSymbolsPathPartsForMemberExpressionNode(e,t,r){var n;let a=null==(n=null==r?void 0:r.withWildcardMatches)||n,i=[];switch(e.type){case"MemberExpression":{let r=e.property;if(!H(r))return[];let n=this.getSymbolsPathPartFromMemberProperty(r,t);n&&i.push(a?"".concat(n,"*"):n);let o=e.object;for(;o;){let e="property"in o?o.property:o,r=H(e)?this.getSymbolsPathPartFromMemberProperty(e,t):void 0;r&&i.unshift(r),o="object"in o?o.object:void 0}}break;case"Identifier":{let r=this.getSymbolsPathPartFromMemberProperty(e,t);r&&i.push(a?"".concat(r,"*"):r);break}default:w(e)}return i}getSymbolsPathPartFromMemberProperty(e,t){switch(e.type){case"Identifier":if((0,v.Dw)(e))return"*";return K(e,t)?e.name.slice(0,t):e.name;case"Literal":{if((0,v.Dw)(e)||!e.value)return"*";let r=String(e.value);return K(e,t)?r.slice(0,t):r}default:w(e)}}getLiteralValueSuggestionsForNode(e,t,r){let{left:n,right:a}=e;if("MemberExpression"!==n.type&&"Identifier"!==n.type||"Identifier"!==a.type&&"Literal"!==a.type)return[];let i=this.getSymbolsPathPartsForMemberExpressionNode(n,t,{withWildcardMatches:!1}),o="MemberExpression"===n.type&&n.computed,s=r.getSymbolInfo(o?i.slice(0,-1):i);if(!s)return[];switch(s.definition.type){case C.Boolean:{let e=[{type:"literal-value",value:{kind:"direct",type:C.Boolean,data:!0}},{type:"literal-value",value:{kind:"direct",type:C.Boolean,data:!1}}];return(0,v.Dw)(a)?e:e.filter(e=>{var t;let r=String(e.value.data),n="Identifier"===a.type?a.name:null!=(t=a.raw)?t:"";return r!==n&&r.startsWith(n)})}case C.String:{if(!s.definition.enum)return[];let e=(()=>{var e;if("Identifier"===a.type)return a.name;let t=null!=(e=a.raw)?e:"";return/^(['"])(.*)\1$/.test(t)?null:t.replaceAll(/["']/g,"")})();if(null===e)return[];return((0,v.Dw)(a)?s.definition.enum:s.definition.enum.filter(t=>t.startsWith(e))).map(e=>({type:"literal-value",value:{kind:"direct",type:C.String,data:e}}))}case C.Array:var l;return o?[{type:"literal-value",value:{kind:"in-array",srcSymbol:s.definition,matchedLiteralString:(0,v.Dw)(a)?"":"Identifier"===a.type?a.name:null!=(l=a.raw)?l:""}}]:[];default:return[]}}getOperatorSuggestionsForNode(e,t,r,n){if("Literal"===t.type){var a;if((null==(a=G(t,e))?void 0:a.type)==="BinaryExpression")return[...D,...$].map(e=>({type:"operator",...e}));let r=q.inferSymbolFromValue(t.raw);return this.getOperatorSuggestionsForSymbol(r)}let i=t;if("Identifier"===t.type){let r=G(t,e);i=r&&"ExpressionStatement"!==r.type?r:t}switch(i.type){case"MemberExpression":{let e=this.getSymbolsPathPartsForMemberExpressionNode(i,r,{withWildcardMatches:!1}),t=n.getSymbolInfo(e);return t?this.getOperatorSuggestionsForSymbol(t.definition):[]}case"AssignmentExpression":case"BinaryExpression":case"UnaryExpression":{let e=i.operator;return[...J,...D].filter(t=>t.operator.startsWith(e)).filter(t=>t.operator!==e).map(e=>({type:"operator",...e}))}default:return[]}}getOperatorSuggestionsForSymbol(e){switch(e.type){case C.Number:case C.Boolean:case C.Null:case C.Undefined:case C.Object:case C.Array:{let t=J.slice(0,4);return(e.type===C.Boolean?[...t,...D,...$]:t).map(e=>({type:"operator",...e}))}case C.String:return J.map(e=>({type:"operator",...e}));case C.Function:return this.getOperatorSuggestionsForSymbol(e.returns);case C.Union:return e.members.reduce((e,t)=>
1(e.push(...this.getOperatorSuggestionsForSymbol(t)),e),[]);default:w(e)}}constructor(e,t=console){(0,h._)(this,s,{writable:!0,value:void 0}),(0,h._)(this,l,{writable:!0,value:void 0}),(0,g._)(this,s,e),(0,g._)(this,l,t)}});function G(e,t){let r;return k.ai(t,{[e.type]:(t,n,a)=>{t.start===e.start&&t.end===e.end&&(r=a[a.length-2])}}),r}function H(e){return"Identifier"===e.type||"Literal"===e.type}function K(e,t){return t>=e.start&&t<=e.end}function Q(e){let t=[],r=RegExp("\\{\\{(.*?)\\}\\}","gs"),n=0;for(let o of e.matchAll(r)){var a,i;let r=null!=(a=o.index)?a:0,s=r+o[0].length;r>n&&t.push({type:"text",value:e.slice(n,r),start:n,end:r}),t.push({type:"expression",value:(null!=(i=o[1])?i:"").trim(),start:r+2,end:s-2}),n=s}return n<e.length&&t.push({type:"text",value:e.slice(n),start:n,end:e.length}),t}let{evaluate:X,variables:Z}=x;var Y=(c=new WeakMap,d=new WeakMap,u=new WeakMap,class{evaluate(e,t){try{let r=this.parse(e);if(r.invalidNodes.length>0)throw new j("Invalid nodes found when parsing");return X.sync(r.result,t,{functions:!0,withMembers:!0,generate:y.cM})}catch(e){throw new j(e instanceof Error?e.message:"Unexpected error")}}safeEvaluate(e,t){try{return{value:this.evaluate(e,t)}}catch(t){if((0,p._)(this,u).error("Error while evaluating expression ".concat(e),t),t instanceof j)return{value:void 0,error:t};return{value:void 0,error:new j(t instanceof Error?t.message:"Unexpected error")}}}evaluateBoolean(e,t){if(0===e.trim().length)return!0;let r=this.safeEvaluate(e,t);return void 0===r.error&&!!r.value}evaluateBooleanAll(e,t){return 0===e.length||e.every(e=>this.evaluateBoolean(e,t))}parseTemplate(e){let t=Q(e),r=[];for(let e of t)if("expression"===e.type)try{let{invalidNodes:t}=this.parse(e.value);t.length>0&&r.push(new j("Invalid expression"))}catch(e){r.push(e)}return{parts:t,errors:r}}evaluateTemplate(e,t){let{parts:r}=this.parseTemplate(e);return r.map(e=>"text"===e.type?e.value:S(this.evaluate(e.value,t),"")).join("")}getVariables(e){try{let t=this.parse(e);if(t.invalidNodes.length>0)throw new j("Invalid nodes found when parsing");return Z(t.result,{functions:!0,withMembers:!0,generate:y.cM})}catch(t){return(0,p._)(this,u).error("Error while parsing expression ".concat(e," to get variables"),t),[]}}parse(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{loose:!1};try{let r=t.loose?(0,v.qg)(e,{...(0,p._)(this,c)}):(0,b.qg)(e,{...(0,p._)(this,c)});if(!r.body||0===r.body.length)throw new j("Empty or invalid expression");let n=r.body.findIndex(e=>ee(e)),[a]=r.body.splice(n,1);if(!a||!ee(a))throw new j("Empty or invalid expression");let i=r.body.filter(et);return{result:a.expression,invalidNodes:i}}catch(t){if(t instanceof SyntaxError)throw function(e,t){let r=t.loc;if(!r)return new j(t.message);let n="".concat(t.message.replace(/\s*\(\d+:\d+\)$/,"")," at ").concat(e.split("\n").length>1?"line ".concat(r.line,", "):"","char ").concat(r.column),a=function(e,t){let r=(0,b.OH)(e,{ecmaVersion:"latest",locations:!0});try{for(let e of r){if(!e.loc)continue;let{start:r,end:n}=e.loc,a=t.line===r.line,i=t.column>=r.column&&t.column<n.column;if(a&&i)return e}}catch(e){return}}(e,r);return a?new j(n,r,a):new j(n,r)}(e,t);if(t instanceof j)throw t;throw new j("Unexpected error")}}autocomplete(e,t,r){return{suggestions:(0,p._)(this,d).getSuggestions(e,t,r)}}generate(e){throw Error("Not yet implemented")}constructor(e=console){(0,h._)(this,c,{writable:!0,value:void 0}),(0,h._)(this,d,{writable:!0,value:void 0}),(0,h._)(this,u,{writable:!0,value:void 0}),(0,g._)(this,c,{ecmaVersion:"latest",sourceType:"script",allowHashBang:!1,locations:!0}),(0,g._)(this,d,new V(this,e)),(0,g._)(this,u,e)}});function ee(e){return"ExpressionStatement"===e.type}function et(e){return!["ImportDeclaration","ExportNamedDeclaration","ExportDefaultDeclaration","ExportAllDeclaration"].includes(e.type)}function er(e,t){let r={};return e.properties&&Object.entries(e.properties).forEach(e=>{let[t,n]=e;r[t]=o.inferSymbolFromJSONSchema(n,t)}),O({name:t,properties:r,...e.description?{description:e.description}:{},methods:[]})}function en(e,t){if(e.items){let r=o.inferSymbolFromJSONSchema(e.items,"".concat(t||"","_item"));return A({name:t,...e.description?{description:e.description}:{},items:r})}return A({name:t,...e.description?{description:e.description}:{},items:U()})}},42430:(e,t,r)=>{r.d(t,{Oe:()=>function e(t){switch(t.object){case"text":return t.leaves.map(e=>e.text).join("");case"document":case"fragment":case"block":case"inline":if(!("nodes"in t))return"";return t.nodes.map(t=>e(t)).join("");default:(0,n.default)(t)}}}),r(54568);var n=r(66550);r(7620),r(86879)},43126:(e,t,r)=>{r.d(t,{InlineActionButton:()=>c});var n=r(54568),a=r(83983),i=r(86879),o=r(82385),s=r(62416);let l={xsmall:"small",small:"small",medium:"medium",large:"large"};function c(e){var t,r;let{action:c,query:d,buttonProps:u}=e,{assistants:p}=(0,a.OD)(),h=(0,a.J4)(),g=(0,o.f3)(),m=(0,s.ok)(),f=e=>{if("ask"===c){var t;null==(t=p[0])||t.open(e||d)}else"search"===c&&g(t=>({...t,ask:null,scope:"default",query:null!=e?e:d,open:!0}))},b="ask"===c&&"gitbook-assistant"===u.icon&&p.length>0?null==(t=p[0])?void 0:t.icon:u.icon;if(!d)return(0,n.jsx)(i.pd,{inline:!0,label:u.label,sizing:l[null!=(r=u.size)?r:"medium"],className:"inline-flex max-w-full grow",submitButton:{label:(0,s.si)(m,"ask"===c?"send":"search")},clearButton:{className:"text-[1em]"},maxLength:"ask"===c?2048:512,disabled:"ask"===c&&h.responding,"aria-busy":"ask"===c&&h.responding,leading:b,keyboardShortcut:!1,onSubmit:e=>f(e),containerStyle:{width:"".concat(u.label?u.label.toString().length+10:20,"ch")}});let v="ask"===c?'Ask "'.concat(d,'"'):'Search for "'.concat(d,'"');return(0,n.jsx)(i.$n,{...u,onClick:()=>f(d),label:v,children:v!==u.label?u.label:null})}},44828:(e,t,r)=>{r.d(t,{Bc:()=>a,qQ:()=>function e(t){return t.map(t=>{switch(t.type){case"plain":return t.content;case"shiki":return t.token.content;case"annotation":return e(t.children)}}).join("")},PQ:()=>s,Lj:()=>c,Cr:()=>l,J0:()=>o,jy:()=>function e(t,r){let n=[],a=r;for(let r of t){if(a<=0)break;let t=function e(t){switch(t.type){case"plain":return t.content.length;case"shiki":return t.token.content.length;case"annotation":return t.children.reduce((t,r)=>t+e(r),0)}}(r);if(t<=a){n.push(r),a-=t;continue}n.push(function(t,r){switch(t.type){case"plain":return{type:"plain",content:t.content.slice(0,r)};case"shiki":{let e=t.token,n=e.content.slice(0,r),a={...e,content:n};return"number"==typeof e.start&&(a.end=e.start+n.length),{type:"shiki",token:a}}case"annotation":return{...t,children:e(t.children,r)}}}(r,a)),a=0}return n}});var n=r(68786);
1let a={light:n.Gsh.DefaultLight,dark:n.Gsh.DefaultDark},i=/[ \t]*(?:(?:\/\/|#|--|;)\s*\[!code\s+(\+\+|--)\]|<!--\s*\[!code\s+(\+\+|--)\]\s*-->|\/\*\s*\[!code\s+(\+\+|--)\]\s*\*\/)\s*$/;function o(e){var t,r;let n=i.exec(e);return n?{diff:"++"===(null!=(t=null!=(r=n[1])?r:n[2])?t:n[3])?"added":"deleted",markerStart:n.index}:null}function s(e){let t=[];return c(e,t),t.sort((e,t)=>e.start-t.start),t}function l(e,t){let r=e();if(!r)return[];let n=t.filter(e=>{let{inline:t}=e;return t.start>=r.start&&t.start<r.end}),a=r,i=[],o=()=>{let t=n.shift();if(!t)return void i.push({type:"shiki",token:a});let[r,s]=u(a,t.inline.start);if(r&&i.push({type:"shiki",token:r}),!s)throw Error("expect afterBefore to not be empty");a=s;let l=[];for(;a.end<t.inline.end;){l.push({type:"shiki",token:a});let t=e();if(!t)throw Error("expect token to not be empty");a=t}let[c,d]=u(a,t.inline.end);if(!c)throw Error("expect inside to not be empty");l.push({type:"shiki",token:c}),i.push({type:"annotation",body:t.body,children:l}),d&&(a=d,o())};return o(),i}function c(e,t,r){let n="";return e.nodes.forEach((a,i)=>{let o=function e(t,r,n,a){let i="";for(let l of t.nodes)if("text"===l.object)i+=l.leaves.map(e=>e.text).join("").replace(/\r/g,"");else switch(l.type){case"annotation":{let t=r+i.length;i+=e(l,r+i.length,n,a);let o=r+i.length;n&&n.push({inline:l,start:t,end:o});break}case"expression":{var o,s;let e=r+i.length,t=null!=(o=null==a||null==(s=a.evaluateInlineExpression)?void 0:s.call(a,l.data.expression))?o:"";i+=t;let c=e+t.length;n&&n.push({inline:l,start:e,end:c})}}return i}(a,n.length,t,r);n+=o,i<e.nodes.length-1&&(n+="\n")}),n}function d(e,t,r){return{...e,start:e.start+t,end:e.start+t+r,content:e.content.slice(t,t+r)}}function u(e,t){if(t<e.start||t>e.end)throw Error("index (".concat(t,") out of bound (").concat(e.start,":").concat(e.end,")"));let r=d(e,0,t-e.start),n=d(e,t-e.start,e.end-t);return[p(r)?null:r,p(n)?null:n]}function p(e){return e.start===e.end}},45269:(e,t,r)=>{r.d(t,{MermaidCodeBlockLazy:()=>i});var n=r(54568);let a=(0,r(42925).default)(()=>Promise.all([r.e(2356),r.e(8327)]).then(r.bind(r,28327)).then(e=>e.MermaidCodeBlock),{loadableGenerated:{webpack:()=>[28327]},ssr:!0});function i(e){return(0,n.jsx)(a,{...e})}},46816:(e,t,r)=>{r.d(t,{ElementModal:()=>l});var n=r(88276),a=r(7620),i=r(54568),o=r(80827),s=r(95434);function l(e){let{element:t,subtitle:r,children:l}=e,c=(0,n.d)(),[d,u]=a.useState(!1);a.useEffect(()=>{u(!0)},[]);let p=async()=>{await c.dispatchAction({action:"@ui.modal.close",returnValue:t.returnValue||{}})};return(0,i.jsx)("div",{className:o("contentkit-modal-backdrop"),onClick:p,children:(0,i.jsxs)("div",{className:o("contentkit-modal",d?"contentkit-modal-opened":null),onClick:e=>{e.stopPropagation()},children:[(0,i.jsxs)("div",{className:o("contentkit-modal-header","contentkit-modal-header-with-close"),children:[(0,i.jsxs)("div",{className:"contentkit-modal-header-content",children:[t.title?(0,i.jsx)("h1",{className:o("contentkit-modal-title"),children:t.title}):null,r?(0,i.jsx)("div",{className:"contentkit-modal-subtitle",children:r}):null]}),(0,i.jsx)("button",{type:"button","aria-label":"Close",className:"contentkit-modal-close",onClick:p,children:(0,i.jsx)(s.Icon,{icon:"xmark",className:"contentkit-modal-close-icon"})})]}),(0,i.jsx)("div",{className:o("contentkit-modal-body"),children:l}),(0,i.jsx)("div",{className:"contentkit-modal-footer",children:(0,i.jsx)("button",{type:"button",className:"contentkit-button contentkit-button-confirm contentkit-button-style-secondary",onClick:p,children:"Cancel"})})]})})}},46994:(e,t,r)=>{r.r(t),r.d(t,{StickyViewGrid:()=>s});var n=r(54568),a=r(7620),i=r(12147),o=r(92669);function s(e){return e.stickyHeader?(0,n.jsx)(c,{...e}):(0,n.jsx)(l,{...e})}function l(e){let{className:t,header:r,tableClassName:a,withTableRole:i=!0,children:s}=e;return(0,n.jsx)("div",{className:t,children:(0,n.jsx)("div",{role:i?"table":void 0,className:"group/table relative flex w-full min-w-0 max-w-full flex-col rounded-lg border-tint-subtle",children:(0,n.jsx)("div",{className:"w-full min-w-0 overflow-x-auto overflow-y-hidden overscroll-x-none border-tint-subtle",children:(0,n.jsxs)("div",{className:(0,o.P)("flex","flex-col",null!=a?a:"w-fit"),children:[r,s]})})})})}function c(e){let{className:t,header:r,tableClassName:s,withTableRole:l=!0,children:c}=e,d=(0,a.useRef)(null),u=(0,a.useRef)(null),p=(0,a.useRef)(null),h=(0,a.useRef)(null),g=(0,a.useCallback)(e=>{let t=p.current;if(!t)return;let r=e.deltaX||(e.shiftKey&&e.deltaY?e.deltaY:0);0!==r&&(t.scrollLeft+=r,e.preventDefault())},[]);(0,a.useEffect)(()=>{let e=u.current;if(e)return e.addEventListener("wheel",g,{passive:!1}),()=>{e.removeEventListener("wheel",g)}},[g]);let m=(0,a.useCallback)(()=>{let e=d.current,t=p.current,r=h.current;e&&t&&r&&(e.style.setProperty("--table-sticky-scroll-left","".concat(-t.scrollLeft,"px")),e.style.setProperty("--table-sticky-table-width","".concat(r.scrollWidth,"px")),e.dataset.scrollable="".concat(t.scrollWidth>t.clientWidth+1))},[]);(0,a.useLayoutEffect)(()=>{m()},[m]),(0,i.F)(m,p),(0,a.useEffect)(()=>{let e=p.current,t=h.current;if(!e&&!t)return;let r=new ResizeObserver(m);return e&&r.observe(e),t&&r.observe(t),()=>{r.disconnect()}},[m]);let f=null!=s?s:"w-fit";return(0,n.jsx)("div",{className:t,children:(0,n.jsxs)("div",{ref:d,className:"group/table relative flex w-full min-w-0 max-w-full flex-col rounded-lg border-tint-subtle data-[scrollable=true]:border","data-scrollable":"false",role:l?"table":void 0,children:[r?(0,n.jsx)("div",{ref:u,className:(0,o.P)("sticky z-20 w-full min-w-0 max-w-full overflow-hidden rounded-t-[inherit]","[top:var(--toc-top-offset,var(--outline-top-offset,0px))]"),children:(0,n.jsx)("div",{className:(0,o.P)("flex","flex-col",f,"[transform:translateX(var(--table-sticky-scroll-left,0px))]"),style:{width:"var(--table-sticky-table-width)"},children:r})}):null,(0,n.jsx)("div",{ref:p,className:"w-full min-w-0 overflow-x-auto overflow-y-hidden overscroll-x-none border-tint-subtle group-data-[scrollable=true]/table:mx-px group-data-[scrollable=true]/table:rounded-none group-data-[scrollable=true]/table:border-0",children:(0,n.jsx)("div",{ref:h,className:(0,o.P)("flex","flex-col",f),children:c})})]})})}},47018:(e,t,r)=>{r.d(t,{PrintButton:()=>a});var n=r(54568);function a(e){return(0,n.jsx)("button",{...e,"data-testid":"print-button",onClick:()=>window.print()})}},47982:(e,t,r)=>{function n(e,t){let r=e[t];return"string"==typeof r?r:"number"==typeof r?"".concat(r):void 0}r.d(t,{N:()=>function e(t,r){if(Array.isArray(r))return r.map(r=>e(t,r));let n="object"==typeof r&&null!==r?Object.getPrototypeOf(r):void 0;if(n!==Object.prototype&&null!==n)return r;if("$state"in r&&"string"==typeof r.$state)return t[r.$state];let a={};return Object.entries(r).forEach(r=>{let[n,i]=r;a[n]=e(t,i)}),a},i:()=>n})},48895:(e,t,r)=>{r.d(t,{PageControlButtons:()=>u});var n=r(54568),a=r(7620),i=r(95434);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new URLSearchParams({});return(null==e?void 0:e.page)?t.set("page",e.page):t.delete("page"),(null==e?void 0:e.only)?t.set("only","yes"):t.delete("only"),(null==e?void 0:e.limit)&&t.set("limit",String(e.limit)),(null==e?void 0:e.back)&&t.set("back",String(e.back)),t}var s=r(24017),l=r(86879),c=r(62416),d=r(92669);function u(e){var t;let{params:r,pageIds:u,total:p,trademark:h}=e,g=(0,c.ok)(),m=a.useMemo(()=>u.map(e=>e[1]),[u]),f=(0,s.W1)(m,{threshold:0,enabled:!0}),b=(f?m.indexOf(f):0)+1,v=null==(t=u[b-1])?void 0:t[0];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:(0,d.P)("fixed","left-12","bottom-12","flex","flex-col","gap-2","print:hidden","z-50"),children:[r.only?null:(0,n.jsx)(l.$n,{href:"?".concat(o({...r,page:v,only:!0}).toString()),variant:"secondary",label:(0,c.si)(g,"pdf_mode_only_page")}),(0,n.jsx)(l.$n,{href:"?".concat(o({...r,page:void 0,only:!1}).toString()),variant:"secondary",label:(0,c.si)(g,"pdf_mode_all")}),h?(0,n.jsx)("div",{className:(0,d.P)("mt-5"),children:h}):null]}),(0,n.jsxs)("div",{className:(0,d.P)("fixed","right-12","bottom-12","flex","flex-col","items-end","gap-2","print:hidden","z-50"),children:[p!==u.length?(0,n.jsxs)("div",{role:"banner",className:(0,d.P)("flex","flex-row","items-start","mb-5","bg-yellow-100","border-yellow-400","text-yellow-800","shadow-xs","border","rounded-md","p-4","max-w-sm"),children:[(0,n.jsx)(i.Icon,{icon:"triangle-exclamation",className:(0,d.P)("size-6","mr-3","mt-1")})," ",(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{children:(0,c.t)(g,"pdf_limit_reached",p,u.length)}),(0,n.jsx)("div",{children:(0,n.jsx)("a",{href:"?".concat(o({...r,page:void 0,only:!1,limit:r.limit+50}).toString()),className:(0,d.P)("underline"),children:(0,c.t)(g,"pdf_limit_reached_continue",50)})})]})]}):null,(0,n.jsx)("div",{className:(0,d.P)("flex","flex-row","items-center","justify-center","text-lg","text-tint","px-6","py-2","bg-slate-100","rounded-full","shadow-xs","border-slate-300","border"),children:(0,c.t)(g,"pdf_page_of",b,u.length)})]})]})}},54493:(e,t,r)=>{r.d(t,{q:()=>n});let n={"default-light":a({name:"default-light",type:"light",bg:"inherit",fg:"inherit",colors:{basic:{comment:"rgb(var(--neutral-9))",string:"rgb(var(--success-10))",constant:"rgb(var(--warning-10))",escape:"rgb(var(--success-10))"},keyword:{default:"rgb(var(--danger-10))",operator:"rgb(var(--tint-11))",regexpOperator:"rgb(var(--primary-10))",regexpQuantifier:"rgb(var(--warning-10))"},variable:{default:"rgb(var(--tint-12))",language:"rgb(var(--danger-10))",parameter:"rgb(var(--warning-10))"},function:{default:"rgb(var(--primary-10))",support:"rgb(var(--primary-10))"},type:{custom:"rgb(var(--primary-10))",primitive:"rgb(var(--warning-10))",other:"rgb(var(--tint-12))",classMeta:"rgb(var(--tint-12))"},entity:{tag:"rgb(var(--warning-10))",attributeId:"rgb(var(--primary-10))",label:"rgb(var(--danger-10))"},markup:{default:"rgb(var(--primary-10))",code:"rgb(var(--success-10))",link:"rgb(var(--primary-10))",linkUrl:"rgb(var(--warning-10))",separator:"rgb(var(--tint-7))"},diff:{inserted:"rgb(var(--success-10))",deleted:"rgb(var(--danger-10))",changed:"rgb(var(--tint-12))"},other:{punctuation:"rgb(var(--tint-11))",preprocessor:"rgb(var(--danger-10))",default:"rgb(var(--tint-11))",invali
1d:"rgb(var(--danger-10))"}}}),"default-dark":a({name:"default-dark",type:"dark",bg:"inherit",fg:"inherit",colors:{basic:{comment:"rgb(var(--neutral-9))",string:"rgb(var(--success-11))",constant:"rgb(var(--warning-11))",escape:"rgb(var(--success-11))"},keyword:{default:"rgb(var(--danger-11))",operator:"rgb(var(--tint-11))",regexpOperator:"rgb(var(--primary-11))",regexpQuantifier:"rgb(var(--warning-11))"},variable:{default:"rgb(var(--tint-12))",language:"rgb(var(--danger-11))",parameter:"rgb(var(--warning-11))"},function:{default:"rgb(var(--primary-11))",support:"rgb(var(--primary-11))"},type:{custom:"rgb(var(--primary-11))",primitive:"rgb(var(--warning-11))",other:"rgb(var(--tint-12))",classMeta:"rgb(var(--tint-12))"},entity:{tag:"rgb(var(--warning-11))",attributeId:"rgb(var(--primary-11))",label:"rgb(var(--danger-11))"},markup:{default:"rgb(var(--primary-11))",code:"rgb(var(--success-11))",link:"rgb(var(--primary-11))",linkUrl:"rgb(var(--warning-11))",separator:"rgb(var(--tint-7))"},diff:{inserted:"rgb(var(--success-11))",deleted:"rgb(var(--danger-11))",changed:"rgb(var(--tint-12))"},other:{punctuation:"rgb(var(--tint-12))",preprocessor:"rgb(var(--danger-11))",default:"rgb(var(--tint-12))",invalid:"rgb(var(--danger-11))"}}}),"monochrome-light":a({name:"monochrome-light",type:"light",bg:"inherit",fg:"inherit",colors:{basic:{comment:"rgb(var(--tint-9))",string:"rgb(var(--primary-12))",constant:"rgb(var(--primary-11))",escape:"rgb(var(--tint-12))"},keyword:{default:"rgb(var(--primary-10))",operator:"rgb(var(--primary-11))",regexpOperator:"rgb(var(--primary-10))",regexpQuantifier:"rgb(var(--primary-11))"},variable:{default:"rgb(var(--tint-12))",language:"rgb(var(--primary-10))",parameter:"rgb(var(--tint-11))"},function:{default:"rgb(var(--primary-9))",support:"rgb(var(--primary-9))"},type:{custom:"rgb(var(--primary-10))",primitive:"rgb(var(--primary-11))",other:"rgb(var(--primary-10))",classMeta:"rgb(var(--tint-12))"},entity:{tag:"rgb(var(--primary-11))",attributeId:"rgb(var(--primary-9))",label:"rgb(var(--primary-10))"},markup:{default:"rgb(var(--primary-10))",code:"rgb(var(--tint-12))",link:"rgb(var(--primary-10))",linkUrl:"rgb(var(--primary-11))",separator:"rgb(var(--tint-7))"},diff:{inserted:"rgb(var(--success-11))",deleted:"rgb(var(--danger-11))",changed:"rgb(var(--tint-12))"},other:{punctuation:"rgb(var(--tint-10))",preprocessor:"rgb(var(--primary-10))",default:"rgb(var(--primary-11))",invalid:"rgb(var(--danger-11))"}}}),"monochrome-dark":a({name:"monochrome-dark",type:"dark",bg:"inherit",fg:"inherit",colors:{basic:{comment:"rgb(var(--tint-9))",string:"rgb(var(--primary-12))",constant:"rgb(var(--primary-11))",escape:"rgb(var(--tint-12))"},keyword:{default:"rgb(var(--primary-11))",operator:"rgb(var(--primary-11))",regexpOperator:"rgb(var(--primary-10))",regexpQuantifier:"rgb(var(--primary-11))"},variable:{default:"rgb(var(--tint-12))",language:"rgb(var(--primary-10))",parameter:"rgb(var(--tint-9))"},function:{default:"rgb(var(--primary-9))",support:"rgb(var(--primary-9))"},type:{custom:"rgb(var(--primary-10))",primitive:"rgb(var(--primary-11))",other:"rgb(var(--primary-10))",classMeta:"rgb(var(--tint-12))"},entity:{tag:"rgb(var(--primary-11))",attributeId:"rgb(var(--primary-9))",label:"rgb(var(--primary-10))"},markup:{default:"rgb(var(--primary-10))",code:"rgb(var(--tint-12))",link:"rgb(var(--primary-10))",linkUrl:"rgb(var(--primary-11))",separator:"rgb(var(--tint-7))"},diff:{inserted:"rgb(var(--success-11))",deleted:"rgb(var(--danger-11))",changed:"rgb(var(--tint-12))"},other:{punctuation:"rgb(var(--tint-10))",preprocessor:"rgb(var(--primary-10))",default:"rgb(var(--primary-11))",invalid:"rgb(var(--danger-11))"}}})};function a(e){let{name:t,type:r,bg:n,fg:a,colors:i}=e;return{name:t,type:r,bg:n,fg:a,settings:[{scope:["comment","punctuation.definition.comment"],settings:{foreground:i.basic.comment}},{scope:["constant.language"],settings:{foreground:i.basic.constant}},{scope:["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent","keyword.other.unit","constant.sha.git-rebase"],settings:{foreground:i.basic.constant}},{scope:["constant.regexp"],settings:{foreground:i.basic.constant}},{scope:["constant.character","constant.other.option"],settings:{foreground:i.basic.constant}},{scope:["constant.character.escape"],settings:{foreground:i.basic.escape}},{scope:["constant.other","constant.other.color","constant.other.symbol","constant.other.placeholder","constant.other.character-class.regexp","constant.character.set.regexp","constant.character.character-class.regexp","constant.other.character-class.set.regexp"],settings:{foreground:i.basic.constant}},{scope:["variable.other.constant"],settings:{foreground:i.basic.constant}},{scope:["string","meta.embedded.assembly","string.tag","string.value","string.regexp","meta.preprocessor.string","support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color","punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","supp
1ort.other.parenthesis.regexp"],settings:{foreground:i.basic.string}},{scope:["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],settings:{foreground:i.variable.parameter}},{scope:["keyword.control","source.cpp keyword.operator.new","keyword.operator.delete","keyword.other.using","keyword.other.directive.using","keyword.other.operator","entity.name.operator","keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],settings:{foreground:i.keyword.default}},{scope:["storage","storage.type","storage.modifier","keyword.operator.noexcept","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],settings:{foreground:i.keyword.default}},{scope:["keyword"],settings:{foreground:i.keyword.default}},{scope:["keyword.operator"],settings:{foreground:i.keyword.operator}},{scope:["keyword.operator.or.regexp","keyword.control.anchor.regexp"],settings:{foreground:i.keyword.regexpOperator}},{scope:["keyword.operator.quantifier.regexp"],settings:{foreground:i.keyword.regexpQuantifier}},{scope:["variable.language"],settings:{foreground:i.variable.language}},{scope:["variable.parameter"],settings:{foreground:i.variable.parameter}},{scope:["variable","meta.definition.variable.name","support.variable","entity.name.variable","meta.object-literal.key"],settings:{foreground:i.variable.default}},{scope:["meta.function-call","meta.method-call","entity.name.function","entity.name.method","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal","keyword.other.special-method"],settings:{foreground:i.function.default}},{scope:["support.function","support.function.git-rebase"],settings:{foreground:i.function.support}},{scope:["entity.name.type","entity.name.class","entity.other.inherited-class"],settings:{foreground:i.type.custom}},{scope:["support.type.primitive","storage.type.primitive","support.type.builtin","entity.name.type.primitive","support.type"],settings:{foreground:i.type.primitive}},{scope:["support.class","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.json","punctuation.separator.namespace.ruby"],settings:{foreground:i.type.other}},{scope:["meta.class"],settings:{foreground:i.type.classMeta}},{scope:["support.constant.dom","variable.other.object","variable.other.object.property","entity.name.class.jsx","support.class.builtin"],settings:{foreground:i.variable.parameter}},{scope:["entity.name.tag","entity.other.attribute-name","support.type.vendored.property-name","support.type.property-name","source.css variable","source.coffee.embedded","meta.structure.dictionary.key.python"],settings:{foreground:i.entity.tag}},{scope:["entity.other.attribute-name.id","punctuation.definition.entity"],settings:{foreground:i.entity.attributeId}},{scope:["punctuation","punctuation.definition.tag","punctuation.definition.quote.begin.markdown","punctuation.definition.list.begin.markdown","punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],settings:{foreground:i.other.punctuation}},{scope:["markup.underline.link","string.other.link","punctuation.definition.string.end.markdown","punctuation.definition.string.begin.markdown"],settings:{foreground:i.markup.link}},{scope:["meta.link"],settings:{foreground:i.markup.linkUrl}},{scope:["meta.preprocessor","entity.name.function.preprocessor","meta.preprocessor.numeric"],settings:{foreground:i.other.preprocessor}},{scope:["markup.inserted","markup.inserted.diff"],settings:{foreground:i.diff.inserted}},{scope:["markup.deleted","markup.deleted.diff"],settings:{foreground:i.diff.deleted}},{scope:["markup.changed","markup.changed.diff","meta.diff.header"],settings:{foreground:i.diff.changed}},{scope:["markup.bold","punctuation.definition.bold"],settings:{foreground:i.markup.default,fontStyle:"bold"}},{scope:["markup.italic","punctuation.definition.italic"],settings:{foreground:i.markup.default,fontStyle:"italic"}},{scope:["markup.raw.inline"],settings:{foreground:i.markup.code}},{scope:["markup.heading","markup.heading punctuation.definition.heading","entity.name.section","header","markup.list","markup.quote","markup.underline","markup.strikethrough"],settings:{foreground:i.markup.default}},{scope:["meta.separator"],settings:{background:i.markup.separator,foreground:a}},{scope:["entity.name.label"],settings:{foreground:i.entity.label}},{scope:["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python","storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],settings:{foreground:i.other.default}},{scope:["invalid"],settings:{foreground:i.other.invalid}}]}}},58819:(e,t,r)=>{r.r(t),r.d(t,{ElementButton:()=>l});var n=r(88276),a=r(7620),i=r(54568),o=r(80827),s=r(95434);function l(e){var t;let{element:r,icon:l,trailingIcon:d}
1=e,u=(0,n.d)(),[p,h]=a.useState(!1),[g,m]=a.useState(!1),f=a.useCallback(async e=>{h(!0);try{return e instanceof Promise?await e:await e()}finally{h(!1)}},[]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{type:"button",title:r.tooltip,className:o("contentkit-button","contentkit-button-style-".concat(null!=(t=r.style)?t:"secondary")),onClick:e=>{if(!r.disabled&&!p){if(e.stopPropagation(),e.preventDefault(),r.confirm&&!g)return void m(!0);f(async()=>await u.dispatchAction(r.onPress))}},children:p?(0,i.jsx)(s.Icon,{icon:"spinner",className:"contentkit-button-loading"}):(0,i.jsxs)(i.Fragment,{children:[l,r.label?(0,i.jsx)("span",{className:"contentkit-button-label",children:r.label}):null,d]})}),r.confirm&&g?(0,i.jsx)(c,{open:g,...r.confirm,onConfirm:()=>{m(!1),f(async()=>await u.dispatchAction(r.onPress))},onCancel:()=>m(!1)}):null]})}function c(e){let{open:t,onCancel:r,onConfirm:n,style:a,title:s,text:l,confirm:c}=e;return(0,i.jsx)("div",{className:"contentkit-modal-backdrop",onClick:r,children:(0,i.jsxs)("div",{className:o("contentkit-modal contentkit-modal-confirm",t?"contentkit-modal-opened":null),onClick:e=>{e.stopPropagation()},children:[(0,i.jsxs)("div",{className:"contentkit-modal-header",children:[s?(0,i.jsx)("h1",{className:"contentkit-modal-title",children:s}):null,l?(0,i.jsx)("div",{className:"contentkit-modal-subtitle",children:l}):null]}),(0,i.jsxs)("div",{className:"contentkit-modal-footer",children:[(0,i.jsx)("button",{type:"button",className:"contentkit-button contentkit-button-style-secondary",onClick:r,children:"Cancel"}),(0,i.jsx)("button",{type:"button",className:o("contentkit-button","contentkit-button-style-".concat(null!=a?a:"primary")),onClick:n,children:null!=c?c:"OK"})]})]})})}},63437:(e,t,r)=>{r.d(t,{PromptClient:()=>j});var n=r(54568),a=r(7620),i=r(95434);let o=[{id:"claude",label:"Claude",icon:"claude",getURL:e=>"claude://code/new?q=".concat(encodeURIComponent(e))},{id:"codex",label:"Codex",icon:"chatgpt",getURL:e=>"codex://new?prompt=".concat(encodeURIComponent(e))},{id:"cursor",label:"Cursor",icon:"cursor",getURL:e=>"cursor://anysphere.cursor-deeplink/prompt?text=".concat(encodeURIComponent(e))}];var s=r(64099);let l="@gitbook/prompt-action",c="copy",d=c,u=!1,p=new Set;function h(){let e=(0,s._S)(l,c);return"copy"===e||o.some(t=>t.id===e)?e:c}function g(){for(let e of p)e()}function m(){u||(u=!0,d=h(),window.addEventListener("storage",e=>{(null===e.key||e.key===l)&&(d=h(),g())}))}function f(e){return m(),p.add(e),e(),()=>{p.delete(e)}}function b(e){m(),d!==e&&(d=e,(0,s.AP)(l,e),g())}var v=r(86879),y=r(62416),x=r(92669);function k(e){let{prompt:t,openInAIProviders:r}=e,i=(0,y.ok)(),s=a.useSyncExternalStore(f,()=>d,()=>c),[l,u]=a.useState(!1);a.useEffect(()=>{if(!l)return;let e=setTimeout(()=>{u(!1)},1e3);return()=>{clearTimeout(e)}},[l]);let p=()=>{navigator.clipboard.writeText(t),u(!0)},h=r&&t?s:"copy",g="copy"===h?null:function(e){let t=o.find(t=>t.id===e);if(!t)throw Error("Unknown AI agent: ".concat(e));return t}(h),m=g?(0,n.jsx)(v.$n,{variant:"secondary",size:"xsmall",icon:g.icon,label:(0,y.si)(i,"open_in",g.label),href:g.getURL(t),target:"_self"}):(0,n.jsx)(v.$n,{variant:"secondary",size:"xsmall",icon:l?"check":"copy",label:l?(0,y.si)(i,"code_copied"):(0,y.si)(i,"prompt_copy"),disabled:!t,onClick:p});return(0,n.jsx)("div",{className:"relative z-20 flex shrink-0 items-center gap-2",children:r?(0,n.jsxs)(v.e2,{children:[m,(0,n.jsxs)(v.rI,{align:"end",className:"!min-w-48 max-w-max",button:(0,n.jsx)(v.$n,{label:(0,y.si)(i,"more"),size:"xsmall",variant:"secondary",truncate:!1,disabled:!t,children:(0,n.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,n.jsx)(w,{}),(0,n.jsx)(v.oJ,{className:"size-text-sm"})]})}),children:[(0,n.jsx)(v._2,{active:"copy"===h,leadingIcon:"copy",onClick:()=>{b("copy"),p()},children:(0,y.si)(i,"prompt_copy")}),o.map(e=>(0,n.jsx)(v._2,{active:h===e.id,leadingIcon:e.icon,href:e.getURL(t),target:"_self",onClick:()=>b(e.id),children:(0,y.si)(i,"open_in",e.label)},e.id))]})]}):m})}function w(){return(0,n.jsx)("span",{className:"flex items-center",children:o.map((e,t)=>(0,n.jsx)("span",{className:(0,x.P)("flex size-4 shrink-0 items-center justify-center rounded-full border border-tint bg-tint-base",t>0&&"-ms-1.5"),children:(0,n.jsx)(i.Icon,{icon:e.icon,className:"size-2.5"})},e.id))})}
1function j(e){let{contentIcon:t,description:r,openInAIProviders:o=!1,defaultExpanded:s="hidden",prompt:l,children:c}=e,d=(0,y.ok)(),u=a.useId(),[p,h]=a.useState("full"===s),g="partial"===s,m=g||p;return a.useEffect(()=>{h("full"===s)},[s]),(0,n.jsxs)("div",{className:(0,x.P)("relative flex w-full flex-col overflow-hidden circular-corners:rounded-2xl rounded-corners:rounded-xl straight-corners:rounded-xs text-tint-strong","border border-tint-subtle contrast-more:border-tint","transition",m?"bg-tint depth-subtle:shadow-xs":"bg-tint-base"),children:[(0,n.jsxs)("div",{className:(0,x.P)("group/prompt-header relative flex min-h-9 flex-row items-center justify-between gap-4 p-3 transition-colors",!g&&(p?"hover:bg-tint-hover":"hover:bg-tint-subtle")),children:[g?null:(0,n.jsx)("button",{type:"button","aria-controls":u,"aria-expanded":p,"aria-label":(0,y.si)(d,"view"),className:(0,x.P)("absolute inset-0 z-10 cursor-pointer outline-hidden","focus-visible:ring-2 focus-visible:ring-primary-hover"),disabled:!l,onClick:()=>h(e=>!e)}),(0,n.jsxs)("div",{className:"pointer-events-none relative z-0 flex min-w-0 flex-row items-center gap-2 text-tint-strong",children:[g?null:(0,n.jsx)(v.oJ,{open:p,orientation:"right-to-down",className:"size-3 shrink-0 text-tint-subtle transition-colors group-hover/prompt-header:text-tint-strong"}),t?(0,n.jsx)(i.Icon,{icon:t,className:"size-4 shrink-0"}):null,(0,n.jsx)("span",{className:"min-w-0 truncate",children:r})]}),(0,n.jsx)(k,{prompt:l,openInAIProviders:o})]}),g||p?(0,n.jsx)("div",{id:u,className:"border-t border-tint-subtle bg-tint-base",children:c}):null]})}},63901:(e,t,r)=>{r.d(t,{ClientCodeBlock:()=>j});var n=r(54568),a=r(7620),i=r(14983);r(93571);var o=r(30132),s=r(66550),l=r(23635),c=r(17616),d=r(24370),u=r(92669);let p=(0,a.forwardRef)(function(e,t){let{block:r,style:i,theme:o,"aria-busy":s,isPrint:l,embedded:p}=e,g=!!r.data.lineNumbers&&r.nodes.length>1,m="wrap"===r.data.overflow,b=r.data.title,v=!!(b&&!p),y=o.lines.length<=1&&!m,x=(0,a.useId)(),k=e.id||x,w=f(o.bg),j=f(o.fg),S=p?void 0:w;return(0,n.jsxs)("div",{ref:t,id:k,"aria-busy":s,className:(0,u.P)("group/codeblock shiki relative flex shrink flex-col overflow-hidden print:overflow-visible",!p&&"circular-corners:rounded-2xl rounded-corners:rounded-xl straight-corners:rounded-xs",!p&&"[&:has([data-codeblock-focus]:focus)]:ring-2 [&:has([data-codeblock-focus]:focus)]:ring-primary-hover",i),"data-color-scheme":"".concat(o.themes.light.type," ").concat(o.themes.dark.type),children:[(0,n.jsx)("span",{"data-codeblock-focus":!0,tabIndex:-1,"aria-hidden":!0,className:"pointer-events-none absolute size-0 outline-none"}),(0,n.jsx)("div",{className:"flex items-center justify-start gap-2 text-sm",children:v?(0,n.jsx)("div",{className:"straight-corners:rounded-t-xs relative top-px z-20 inline-flex items-center justify-center border border-b-0 border-tint-subtle bg-tint-subtle px-3 py-2 text-xs leading-none tracking-wide text-tint theme-bold-tint:bg-tint-base theme-muted:bg-tint-base rounded-corners:rounded-t-lg circular-corners:rounded-t-xl contrast-more:border-tint contrast-more:bg-tint-base [html.theme-bold.sidebar-filled_&]:bg-tint-base",style:{backgroundColor:null==w?void 0:w.color,...null==w?void 0:w.vars,color:null==j?void 0:j.color,...null==j?void 0:j.vars},children:b}):null}),(0,n.jsxs)("div",{className:"relative flex min-h-0 flex-col",children:[p?null:(0,n.jsxs)("div",{className:(0,u.P)("absolute right-2 z-2 flex items-center gap-1.5 font-sans leading-none opacity-0 group-hover/codeblock:opacity-11 has-[button:focus-visible]:opacity-11",y?"inset-y-0":"top-2"),children:[l?null:(0,n.jsx)(c.AskAICodeButton,{codeId:k,title:b,syntax:r.data.syntax,style:"backdrop-blur-md"}),(0,n.jsx)(d.CopyCodeButton,{codeId:k,style:"backdrop-blur-md"})]}),(0,n.jsx)("pre",{className:(0,u.P)("relative overflow-auto py-2.5 text-tint-strong print:overflow-visible",p?"bg-tint-base":"border border-tint-subtle bg-tint-subtle theme-bold-tint:bg-tint-base theme-muted:bg-tint-base contrast-more:border-tint contrast-more:bg-tint-base",!p&&"circular-corners:rounded-2xl rounded-corners:rounded-xl straight-corners:rounded-xs depth-subtle:shadow-xs",v&&"rounded-ss-none!"),style:{backgroundColor:null==S?void 0:S.color,...null==S?void 0:S.vars,color:null==j?void 0:j.color,...null==j?void 0:j.vars},children:(0,n.jsx)("code",{className:(0,u.P)("table max-h-full w-fit min-w-full [counter-reset:line] print:max-h-none print:whitespace-pre-wrap",m&&"whitespace-pre-wrap","[[aria-expanded=false]_&]:mask-b-from-50%"),children:o.lines.map((e,t)=>(0,n.jsx)(h,{bg:S,embedded:p,fg:j,line:e,isLast:t===o.lines.length-1,withLineNumbers:g},t))})})]})]})});function h(e){let{line:t,isLast:r,withLineNumbers:a,bg:i,embedded:o,fg:s}=e,l=!!(o&&!t.diff&&!t.highlighted),c={color:null==s?void 0:s.color,...null==s?void 0:s.vars,backgroundColor:null==i?void 0:i.color,...null==i?void 0:i.vars};return(0,n.jsxs)("span",{className:(0,u.P)("highlight-line",l&&"bg-transparent! hover:bg-tint-subtle!","added"===t.diff&&"diff-added","deleted"===t.diff&&"diff-deleted",t.highlighted&&"highlighted"),"aria-label":"added"===t.diff?"Added line":"deleted"===t.diff?"Removed line":void 0,style:c,children:[a&&(0,n.jsx)("span",{className:"highlight-line-number",style:c}
1),(0,n.jsxs)("span",{className:"highlight-line-content",children:[(0,n.jsx)(g,{tokens:t.tokens}),!r&&"\n"]})]})}function g(e){let{tokens:t}=e;return t.map((e,t)=>(0,n.jsx)(m,{token:e},t))}function m(e){let{token:t}=e;switch(t.type){case"annotation":return(0,n.jsx)(l.AnnotationPopover,{body:t.body,children:(0,n.jsx)(g,{tokens:t.children})});case"plain":return t.content;case"shiki":if(!t.token.htmlStyle)return t.token.content;return(0,n.jsx)("span",{style:t.token.htmlStyle,children:t.token.content});default:(0,s.default)(t)}}function f(e){if(!e)return;let t=e.split(";"),r=t[0],n=t.slice(1).reduce((e,t)=>{let[r,n]=t.split(":");return r&&n&&(e[r]=n),e},{});return{color:r,vars:Object.keys(n).length>0?n:void 0}}var b=r(74729),v=r(64690),y=r(53819),x=r(12147),k=r(86879),w=r(62416);function j(e){var t;let{block:s,mode:l,style:c,inlines:d,inlineExprVariables:u,themes:h,embedded:g}=e,m=(0,a.useRef)(null),f=(0,a.useRef)(!1),[k,w]=(0,a.useState)(!1),j=(0,v.uw)()(),N=(0,o.s)({visitorClaims:j,variables:u}),C=(0,a.useMemo)(()=>(0,b.$)(s,d,{evaluateInlineExpression:N,themes:h}),[s,d,N,h]),[_,E]=(0,a.useState)(null),[P,R]=(0,a.useState)(!1);(0,a.useEffect)(()=>{Promise.all([r.e(3934),r.e(888)]).then(r.bind(r,90888)).then(e=>{let{preloadHighlight:t}=e;return t(s,h)})},[s,h]);let O=(0,a.useRef)(!1),A=(0,i._6)(()=>{O.current=!1,f.current&&w(!0)},100);(0,x.F)(()=>{O.current=!0,A()},(0,a.useRef)(window)),(0,y.z)(m,(e,t)=>{f.current=e,!O.current&&e&&(t(),w(!0))},{rootMargin:"200px"}),(0,a.useEffect)(()=>{if(k){let e=!1;return R(!0),Promise.all([r.e(3934),r.e(888)]).then(r.bind(r,90888)).then(t=>{let{highlight:r}=t;r(s,d,{evaluateInlineExpression:N,themes:h}).then(t=>{e||(E(t),R(!1))})}),()=>{e=!0}}E(null)},[k,s,d,N,h]);let I=s.data.expandable,z=null!=(t=null==_?void 0:_.lines.length)?t:C.lines.length,M=s.data.collapsedLineCount||10,U=!!(I&&"print"!==l&&z>M),L=(0,a.useId)(),T=(0,n.jsx)(p,{ref:m,"aria-busy":P,block:s,style:c,theme:null!=_?_:C,id:L,isPrint:"print"===l,embedded:g});return U?(0,n.jsx)(S,{theme:null!=_?_:C,controls:L,collapsedLineCount:M,style:c,children:T}):T}function S(e){let{children:t,controls:r,theme:i,collapsedLineCount:o,style:s}=e,[l,c]=(0,a.useState)(!1),d=(0,w.ok)();return(0,n.jsxs)("div",{className:(0,u.P)("group/codeblock-expandable relative",s),"data-follow-color-scheme":"true","aria-expanded":l,children:[(0,n.jsx)("div",{className:(0,u.P)(l?"":"[&_pre]:h-[calc(2rem+var(--line-count)*var(--line-height))] [&_pre]:overflow-y-hidden"),style:{"--line-count":o,"--line-height":"1.25rem"},children:t}),(0,n.jsx)("div",{className:"pointer-events-none absolute bottom-2 flex w-full justify-center",children:(0,n.jsx)(k.$n,{icon:(0,n.jsx)(k.oJ,{open:l}),size:"xsmall",variant:"secondary",type:"button",onClick:()=>c(!l),className:"z-1 bg-tint! pointer-events-auto my-2 text-sm text-primary opacity-0 focus:opacity-11 group-hover/codeblock-expandable:opacity-11","aria-expanded":l,"aria-controls":r,children:l?(0,w.t)(d,"code_block_expanded"):(0,w.t)(d,"code_block_collapsed",i.lines.length)})})]})}},64690:(e,t,r)=>{function n(e){var t,r;let{visitorClaims:n,variables:a}=e;return{...n||{},space:{vars:null!=(t=a.space)?t:{}},...a.page?{page:{vars:null!=(r=a.page)?r:{}}}:{}}}r.d(t,{M3:()=>n,uw:()=>a.useAdaptiveVisitor});var a=r(75451)},68975:(e,t,r)=>{r.d(t,{ImagesLoadingStatus:()=>s});var n=r(54568),a=r(66550),i=r(7620),o=r(75235);function s(e){let{language:t}=e,r=function(){let[e,t]=i.useState(null),[r,n]=i.useState(0),a=i.useRef(new WeakSet),o=i.useRef(0),s=i.useCallback(()=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame(()=>{let e=Array.from(document.images);t(e.length),n(e.filter(e=>e.complete).length)})},[]);i.useEffect(()=>()=>cancelAnimationFrame(o.current),[]);let l=i.useCallback(e=>{e.forEach(e=>{e.complete||a.current.has(e)||("eager"!==e.loading&&console.warn('An image is not in "eager" mode',e),a.current.add(e),e.addEventListener("load",s),e.addEventListener("error",s))})},[s]);return(i.useEffect(()=>{let e;s(),l(Array.from(document.images));let t=new MutationObserver(t=>{cancelAnimationFrame(e),e=requestAnimationFrame(()=>{let e=[],r=!1;for(let n of t)"childList"===n.type&&(n.removedNodes.length>
10&&(r=!0),n.addedNodes.forEach(t=>{if(t instanceof HTMLImageElement)e.push(t),r=!0;else if(t instanceof HTMLElement){let n=Array.from(t.getElementsByTagName("img"));n.length>0&&(e.push(...n),r=!0)}}));e.length>0&&l(e),r&&s()})});return t.observe(document.body,{childList:!0,subtree:!0}),()=>{cancelAnimationFrame(e),t.disconnect(),Array.from(document.images).forEach(e=>{e.removeEventListener("load",s),e.removeEventListener("error",s)})}},[l,s]),null===e)?{status:"pending"}:{status:e===r?"ready":"loading",totalImages:e,loadedImages:r}}();return(0,n.jsx)("p",{className:"text-right text-xs text-slate-500","data-visual-test":"removed",children:(()=>{switch(r.status){case"pending":return null;case"loading":return(0,o.s)(t,"pdf_images_loading","".concat(r.loadedImages),"".concat(r.totalImages));case"ready":return(0,o.s)(t,"pdf_images_loaded");default:(0,a.default)(r)}})()})}},69781:(e,t,r)=>{r.d(t,{ElementCard:()=>o});var n=r(88276),a=r(54568),i=r(80827);function o(e){let{element:t,children:r,icon:o,hint:s,buttons:l}=e,c=(0,n.d)();return(0,a.jsxs)("div",{className:i("contentkit-card",t.onPress?"contentkit-card-pressable":null),onClick:()=>{t.onPress&&c.dispatchAction(t.onPress)},children:[t.title?(0,a.jsxs)("div",{className:i("contentkit-card-header"),children:[o?(0,a.jsx)("div",{className:i("contentkit-card-icon"),children:o}):null,(0,a.jsxs)("div",{className:i("contentkit-card-header-content"),children:[(0,a.jsx)("div",{className:i("contentkit-card-title"),children:t.title}),s?(0,a.jsx)("div",{className:i("contentkit-card-hint"),children:s}):null]}),l&&l.length>0?(0,a.jsx)("div",{className:i("contentkit-card-buttons"),children:l}):null]}):null,r?(0,a.jsx)("div",{className:i("contentkit-card-body"),children:r}):null]})}},70669:(e,t,r)=>{r.d(t,{InlineLinkTooltip:()=>l});var n=r(54568),a=r(7620),i=r(95434),o=r(86879),s=r(92669);function l(e){let{isExternal:t,target:r,breadcrumbs:l,children:c}=e;return(0,n.jsxs)(o.z8,{children:[(0,n.jsx)(o.d0,{children:c}),(0,n.jsxs)(o.jc,{className:"p-4",children:[(0,n.jsxs)("div",{className:"flex flex-col",children:[l&&l.length>0?(0,n.jsx)("div",{className:"mb-1 flex grow flex-wrap items-center gap-x-2 gap-y-0.5 text-xs font-semibold uppercase leading-tight tracking-wide text-tint",children:l.map((e,t)=>{var r;let l=e.href?o.ah:"div";return(0,n.jsxs)(a.Fragment,{children:[0!==t?(0,n.jsx)(i.Icon,{icon:"chevron-right",className:"size-3 text-tint-subtle"}):null,(0,n.jsxs)(l,{className:(0,s.P)("flex gap-1",e.href&&"links-default:text-tint no-underline hover:underline contrast-more:underline contrast-more:decoration-current"),href:null!=(r=e.href)?r:"#",children:[e.icon?(0,n.jsx)("span",{className:"mt-0.5 text-tint-subtle empty:hidden",children:e.icon}):null,e.label]})]},e.label)})}):null,(0,n.jsxs)("div",{className:(0,s.P)("flex gap-2 leading-snug",t&&"wrap-anywhere text-sm"),children:[r.icon?(0,n.jsx)("div",{className:"mt-1 text-tint-subtle empty:hidden",children:r.icon}):null,(0,n.jsx)("h5",{className:"font-semibold",children:r.text})]})]}),r.subText?(0,n.jsx)("p",{className:"mt-1 text-sm text-tint",children:r.subText}):null]})]})}},73531:(e,t,r)=>{r.d(t,{ContentKitWithClientContext:()=>u});var n=r(54568),a=r(79748),i=r(7620),o=r(86622),s=r(64690),l=r(24017),c=r(62337);let d=["q","ask","scope","section"];function u(e){let{canAccessVisitorClaims:t,page:r,linkerData:u,...p}=e,h=(0,a.useRouter)(),{onNavigationClick:g}=i.useContext(l.Qp),m=(0,s.uw)(),f=i.useMemo(()=>(0,c.k_)(u),[u]),b=i.useCallback(e=>{g(e),h.push(e)},[g,h]),v=t?m():null,y=i.useMemo(()=>({getVisitorContext:t?()=>{var e;return{visitor:null!=(e=null==v?void 0:v.visitor)?e:null}}:void 0,getPageContext:r?()=>({page:r}):void 0,navigate:e=>{let{path:t,anchor:r,query:n}=e,a=new URLSearchParams(Object.entries(null!=n?n:{}).filter(e=>{let[t]=e;return d.includes(t)})).toString();b(f.toPathInSite(t)+(a?"?".concat(a):"")+(r?"#".concat(r):""))}}),[t,v,r,f,b]);return(0,n.jsx)(o.ContentKit,{...p,clientContext:y})}},74380:(e,t,r)=>{r.d(t,{ElementWebframe:()=>l});var n=r(88276),a=r(47982),i=r(7620),o=r(54568),s=r(95434);function l(e){var t;let{element:r}=e,[a,l]=i.useState(!1),c=(0,n.d)(),u=i.useRef(null),[p,h]=i.useState({}),g=i.useRef(!1),m=i.useRef([]),f=i.useCallback(e=>{let t=new URL(r.source.url);if(c.security.firstPartyDomains.includes(t.host))if(g.current){var n;if(!u.current)return;null==(n=u.current.contentWindow)||n.postMessage(e,"".concat(t.protocol,"//").concat(t.host))}else m.current.push(e)},[r.source.url,c.security]);i.useEffect(()=>{let e=e=>{if(!u.current)return;let t=e.data;if(!URL.canParse(e.origin))return;let r=new URL(e.origin);if(!c.security.firstPartyDomains.includes(r.host))return;let n=u.current.contentWindow;if(n&&e.source===n){if("string"==typeof t)try{let e=JSON.parse(t);if("iframe.resize"===e.context&&"number"==typeof e.height){let t=u.current.clientWidth,r=e.height;h({aspectRatio:t/r,height:r})}}catch(e){return}if(t.action)switch(t.action.action){case"@webframe.ready":g.current=!0,m.current.forEach(e
1=>{f(e)}),m.current=[];break;case"@webframe.resize":h(e=>({aspectRatio:void 0!==t.action.size.aspectRatio?Number(t.action.size.aspectRatio):e.aspectRatio,height:void 0!==t.action.size.height?Number(t.action.size.height):void 0!==t.action.size.maxHeight?Number(t.action.size.maxHeight):e.height}));break;case"@webframe.navigate":var a,i;"string"==typeof t.action.path&&(null==(i=c.clientContext)||null==(a=i.navigate)||a.call(i,{path:t.action.path,anchor:"string"==typeof t.action.anchor?t.action.anchor:void 0,query:t.action.query}));break;default:c.dispatchAction(t.action)}}};return window.addEventListener("message",e),l(!0),()=>{window.removeEventListener("message",e)}},[c,f]),i.useEffect(()=>{let e={cancelled:!1};return d({elementData:r.data,rendererState:c.state,clientContext:c.clientContext,sendMessage:f,abort:e}),()=>{e.cancelled=!0}},[r.data,c.state,c.clientContext,f]);let b=p.height?Math.max(p.height,32):void 0,v=p.aspectRatio||r.aspectRatio||((null==(t=u.current)?void 0:t.clientWidth)&&b?u.current.clientWidth/b:void 0);if(!a)return(0,o.jsx)(s.Icon,{icon:"spinner",className:"contentkit-button-loading",style:{height:b}});let y=!v&&b;return(0,o.jsx)("iframe",{ref:u,src:r.source.url,title:r.source.url,allowFullScreen:!0,allow:"clipboard-write",className:"contentkit-webframe h-full w-full max-w-full border-none",style:{aspectRatio:v,height:y?b:void 0,maxHeight:b}})}async function c(e){var t,r;return await Promise.all([null==e||null==(t=e.getVisitorContext)?void 0:t.call(e),null==e||null==(r=e.getPageContext)?void 0:r.call(e)])}async function d(e){let t,{elementData:r,rendererState:n,clientContext:i,sendMessage:o,abort:s}=e,l=(t={},r&&Object.entries(r).forEach(e=>{let[r,i]=e;t[r]=(0,a.N)(n,i)}),t),d=await c(i);if(!s.cancelled){for(let e of d)e&&Object.assign(l,e);Object.keys(l).length>0&&o({state:l})}}},74729:(e,t,r)=>{r.d(t,{$:()=>s});var n=r(4509),a=r(54493),i=r(44828),o=r(42430);function s(e,t,r){var s,l,c,d;let u=Array.from(t);return{themes:{light:null!=(s=null!=(l=n.p.find(e=>{var t;return e.id===(null==r||null==(t=r.themes)?void 0:t.light)}))?l:Object.values(a.q).find(e=>{var t;return e.name===(null==r||null==(t=r.themes)?void 0:t.light)}))?s:{type:"light"},dark:null!=(c=null!=(d=n.p.find(e=>{var t;return e.id===(null==r||null==(t=r.themes)?void 0:t.dark)}))?d:Object.values(a.q).find(e=>{var t;return e.name===(null==r||null==(t=r.themes)?void 0:t.dark)}))?c:{type:"dark"}},lines:e.nodes.map(e=>{var t;let n=e.nodes.map(e=>{var t,n,a;if("text"===e.object)return{type:"plain",content:(0,o.Oe)(e)};if("expression"===e.type)return{type:"plain",content:null!=(n=null==r||null==(a=r.evaluateInlineExpression)?void 0:a.call(r,e.data.expression))?n:""};let i=u.shift();return{type:"annotation",body:null!=(t=null==i?void 0:i.body)?t:null,children:[{type:"plain",content:(0,o.Oe)(e)}]}}),a=(0,i.J0)((0,i.qQ)(n));return{highlighted:!!e.data.highlighted,diff:null!=(t=null==a?void 0:a.diff)?t:null,tokens:a?(0,i.jy)(n,a.markerStart):n}})}}},75661:(e,t,r)=>{r.d(t,{DownloadButton:()=>i});var n=r(54568),a=r(45601);function i(e){let{downloadUrl:t,filename:r,...i}=e;return(0,n.jsx)(a.Button,{...i,onClick:e=>{e.preventDefault(),o(t,r)}})}async function o(e,t){let r=await fetch(e),n=await r.blob(),a=URL.createObjectURL(n),i=document.createElement("a");i.href=a,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(a)}},80454:(e,t,r)=>{r.r(t),r.d(t,{TableSearchEmpty:()=>m,TableSearchInput:()=>g,TableSearchProvider:()=>p,TableSearchRecord:()=>y,TableSearchTableBody:()=>x,TableSelectionFilter:()=>f});var n=r(54568),a=r(7620),i=r(95434),o=r(60226);function s(e,t){let r=[];for(let n of e){let e,a=1/0;for(let r of n.options){let i=(0,o.hU)(r.label||r.value);if(!i)continue;let s=t.indexOf(i);s>=0&&s<a&&(a=s,e={column:n.id,value:r.value,label:r.label||r.value,slug:i})}e&&r.push(e)}return r}var l=r(86879),c=r(62416),d=r(92669);let u=a.createContext(null);function p(e){var t;let r,i,l,{records:c=[],recordGroups:d=[],selectColumns:p=[]}=e,[h,g]=a.useState(""),[m,f]=a.useState(()=>({})),[b,v]=a.useState(()=>new Set),y=(r=(t=p).map(e=>"".concat(e.id,":").concat(e.options.map(e=>"".concat(e.value,"=").concat(e.label)).join("|"))).join(";"),i=a.useCallback(()=>s(t,o.sq.getState().slugs).map(e=>"".concat(e.column,"=").concat(e.value)).sort().join(","),[r]),l=a.useSyncExternalStore(o.sq.subscribe,i,i),a.useMemo(()=>s(t,o.sq.getState().slugs),[l])),x=a.useRef([]),k=a.useCallback((e,t)=>{x.current=x.current.filter(t=>t!==e),f(r=>{let n=new Set(r[e]);n.has(t)?n.delete(t):n.add(t);let a={...r};return 0===n.size?delete a[e]:a[e]=n,a})},[]),w=a.useCallback(e=>{v(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})},[]);a.useEffect(()=>{let e=x.current;x.current=y.map(e=>e.column),f(t=>(function(e,t,r){if(0===t.length&&0===r.length)return e;let n={...e};for(let e of t)delete n[e];for(let e of r)n[e.column]=new Set([e.value]);return n})(t,e,y))},[y]);let j=a.useMemo(()=>y.filter(e=>{let t=m[e.column];return(null==t?void 0:t.size)===1&&t.has(e.value)}),[y,m]),S=a.useCallback(()=>{for(let e of j)o.sq.deactivate(e.slug)},[j]),N=a.useMemo(()=>(function(e){let{records:t,recordGroups:r=[],query:n,selectedOptions:a,checkedColumns:i}=e;if(!(""!==n.trim()||Object.keys(a).length>0||i.size>0))return null;let o=new Set;for(let e of t)(function(e,t,r,n,a,i){if(""!==n.trim()&&!function(e,t){let r=t.trim();return!r||e.toLowerCase().includes(r.toLowerCase())}(e,n))return!1;
1for(let[e,r]of Object.entries(a)){if(0===r.size)continue;let n=null==t?void 0:t[e];if(!(n&&n.some(e=>r.has(e))))return!1}for(let e of i)if((null==r?void 0:r[e])!==!0)return!1;return!0})(e.searchText,e.selectValues,e.checkboxValues,n,a,i)&&o.add(e.id);let s=!0;for(;s;)for(let e of(s=!1,r))if(e.some(e=>o.has(e)))for(let t of e)o.has(t)||(o.add(t),s=!0);return o})({records:c,recordGroups:d,query:h,selectedOptions:m,checkedColumns:b}),[c,d,h,m,b]),C=null!==N&&c.length>0&&0===N.size,_=a.useMemo(()=>({query:h,setQuery:g,selectedOptions:m,toggleOption:k,checkedColumns:b,toggleCheckbox:w,visibleIds:N,isEmpty:C,slugFilter:j,clearSlugFilter:S}),[h,m,k,b,w,N,C,j,S]);return(0,n.jsx)(u.Provider,{value:_,children:e.children})}function h(){let e=a.useContext(u);if(!e)throw Error("useTableSearch must be used within a <TableSearchProvider>");return e}function g(e){let{selectColumns:t=[],checkboxColumns:r=[]}=e,a=(0,c.ok)(),{query:i,setQuery:o}=h(),s=t.length>0||r.length>0;return(0,n.jsx)(l.pd,{label:(0,c.si)(a,"search"),value:i,onValueChange:o,leading:"magnifying-glass",clearButton:!0,sizing:"small",keyboardShortcut:!1,className:(0,d.P)("w-full",e.className),trailing:s?(0,n.jsxs)("div",{className:"flex items-center gap-1",onClick:e=>e.stopPropagation(),children:[t.map(e=>(0,n.jsx)(b,{column:e},e.id)),r.map(e=>(0,n.jsx)(v,{column:e},e.id))]}):void 0})}function m(e){let t=(0,c.ok)(),{query:r,isEmpty:a}=h();if(!a)return null;let i=r.trim();return(0,n.jsx)("div",{className:(0,d.P)("mx-auto py-8 text-center text-sm text-tint",e.className),children:i?(0,c.si)(t,"search_no_results_for",i):(0,c.si)(t,"search_no_results")})}function f(e){let t=(0,c.ok)(),{slugFilter:r,clearSlugFilter:a}=h();return 0===r.length?null:(0,n.jsxs)("div",{className:(0,d.P)("flex flex-wrap items-center gap-2 text-sm text-tint",e.className),children:[(0,n.jsx)(i.Icon,{icon:"filter",className:"size-3 shrink-0"}),(0,n.jsx)("span",{children:(0,c.si)(t,"table_filtered_by_selection",r.map(e=>e.label).join(", "))}),(0,n.jsx)(l.$n,{variant:"blank",size:"xsmall",icon:"xmark",iconOnly:!0,label:(0,c.si)(t,"table_clear_selection"),onClick:a})]})}function b(e){var t;let{column:r}=e,a=(0,c.ok)(),{selectedOptions:o,toggleOption:s}=h(),d=o[r.id],u=null!=(t=null==d?void 0:d.size)?t:0,p=r.label.trim()||(0,c.si)(a,"search_scope_title");return(0,n.jsx)(l.rI,{align:"end",button:(0,n.jsx)(l.$n,{variant:"blank",size:"xsmall",active:u>0,label:u>1?"".concat(p," \xb7 ").concat(u):p,trailing:(0,n.jsx)(i.Icon,{icon:"chevron-down",className:"size-3"})}),children:r.options.map(e=>{var t;let a=null!=(t=null==d?void 0:d.has(e.value))&&t;return(0,n.jsx)(l._2,{active:a,leadingIcon:a?"check":void 0,closeOnClick:!1,onClick:()=>s(r.id,e.value),children:e.label||e.value},e.value)})})}function v(e){let{column:t}=e,r=(0,c.ok)(),{checkedColumns:a,toggleCheckbox:i}=h(),o=a.has(t.id),s="table-search-checkbox-".concat(t.id),d=t.label.trim()||(0,c.si)(r,"search_scope_title");return(0,n.jsxs)("label",{htmlFor:s,className:"flex cursor-pointer select-none items-center gap-1.5 px-2 text-sm text-tint",children:[(0,n.jsx)(l.Sc,{id:s,size:"small",checked:o,onCheckedChange:()=>i(t.id)}),d]})}function y(e){let{recordId:t,visibleClassName:r,className:a,children:i,...o}=e,{visibleIds:s}=h(),l=null===s||s.has(t);return(0,n.jsx)("div",{className:(0,d.P)(l?r:"hidden",a),...o,children:i})}function x(e){let{recordIds:t,children:r,...a}=e,{visibleIds:i}=h();return null===i||t.some(e=>i.has(e))?(0,n.jsx)("tbody",{...a,children:r}):null}},82277:(e,t,r)=>{r.d(t,{GW:()=>i,ax:()=>a});let n=/\$\$__X-GITBOOK-PREFILL\[(.+?)\]__\$\$/g;function a(e){let{key:t,code:r,syntax:a}=e;return{key:t,object:"block",type:"code",data:{syntax:a},nodes:r.split("\n").map(e=>{let t=[],r=0;for(let i of e.matchAll(n)){var a;let[n,o]=i,s=null!=(a=i.index)?a:0;s>r&&t.push({object:"text",leaves:[{object:"leaf",text:e.slice(r,s),marks:[]}]}),o&&t.push({object:"inline",type:"expression",data:{expression:o},isVoid:!0}),r=s+n.length}return r<e.length&&t.push({object:"text",leaves:[{object:"leaf",text:e.slice(r),marks:[]}]}),{object:"block",type:"code-line",data:{},nodes:t}})}}function i(e){var t,r;let n,a,i=null==(t=document.getElementById(e))?void 0:t.querySelector("code");return i?(r=i,n="",(a=e=>{e instanceof HTMLBRElement?n+="\n":e instanceof HTMLSpanElement?e.classList.contains("ew")?n+="\n":n+=e.innerText:e instanceof HTMLElement?e.childNodes.forEac
1h(a):n+=e.textContent})(r),n):null}},82389:(e,t,r)=>{r.d(t,{SelectActionButton:()=>s});var n=r(54568),a=r(86879),i=r(8329),o=r(60226);function s(e){let{value:t,buttonProps:r}=e,{activate:s}=(0,i.WM)(),l=(0,o.hU)(t),c='Select "'.concat(l,'"');return(0,n.jsx)(a.$n,{...r,disabled:!l,onClick:()=>s(l),label:c,children:c!==r.label?r.label:null})}},85629:(e,t,r)=>{r.d(t,{EM:()=>h,KK:()=>s,Kr:()=>l,R_:()=>a,Tk:()=>p,Vh:()=>n,br:()=>c,hi:()=>u,kC:()=>i,lx:()=>g,or:()=>o,ve:()=>d}),r(42430);let n="tag",a="data-updates-tag-filter",i="data-updates-filter-key",o="data-update-tags",s="data-tag-section",l=20;function c(e,t){let r=[],n=new Set;for(let a of e){let e=a.trim();!(!e||n.has(e))&&!(r.length>=l)&&t.has(e)&&(r.push(e),n.add(e))}return r}let d="data-tag-chip-selected",u="data-tag-chip-unselected-dimmed",p="data-tag-chip-unselected-plain",h="data-updates-tag-clear";function g(e){let t=[...new Set(e)].sort().join(" "),r=0x811c9dc5;for(let e=0;e<t.length;e++)r^=t.charCodeAt(e),r=Math.imul(r,0x1000193);return(r>>>0).toString(36)}},86622:(e,t,r)=>{r.d(t,{ContentKit:()=>s});var n=r(88276),a=r(47982),i=r(7620),o=r(54568);function s(e){var t;let{renderContext:r,security:l,clientContext:c,initialInput:d,initialOutput:u,children:p,render:h,onAction:g,onComplete:m}=e,[f,b]=i.useState({input:d,children:p,output:u,state:null!=(t=u.state)?t:{}}),[v,y]=i.useState(null),x=i.useCallback(async e=>{var t;let n={...f.input,...(null==(t=f.output)?void 0:t.props)?{props:f.output.props}:{},...e,state:{...f.input.state,...f.state,...e.state}},a=await h({renderContext:r,request:n}),i=a.output;if(i){if("complete"===i.type)return null==m?void 0:m(i.returnValue);b(e=>({input:n,children:a.children,output:i,state:e.state}))}},[b,f,h,m]),k=i.useMemo(()=>({security:l,clientContext:c,state:f.state,setState:e=>{b(t=>({...t,state:{...t.state,...e}}))},update:x,dispatchAction:async function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=(0,a.N)(f.state,e);switch(t&&(null==g||g(n)),n.action){case"@ui.modal.open":{let e={componentId:n.componentId,props:n.props,context:f.input.context,action:n},t=await h({renderContext:r,request:e});t.output&&("element"===t.output.type||!t.output.type)&&y({mode:"modal",initialInput:e,initialOutput:t.output,initialChildren:t.children});break}case"@ui.url.open":window.open(n.url,"_blank");break;default:await x({action:n})}}}),[x,l,c,f.state,f.input.context,b,h]),w=i.useCallback(async e=>{"@ui.modal.close"===e.action&&(x({action:e}),y(null))},[x]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.S.Provider,{value:k,children:f.children}),v?(0,o.jsx)(s,{renderContext:r,security:l,clientContext:c,initialInput:v.initialInput,initialOutput:v.initialOutput,render:h,onAction:w,children:v.initialChildren}):null]})}},88276:(e,t,r)=>{r.d(t,{S:()=>a,d:()=>i});var n=r(7620);let a=n.createContext(null);function i(){let e=n.useContext(a);if(!e)throw Error("ContentKit component should be wrapped in <ContentKit>");return e}},88314:(e,t,r)=>{r.d(t,{TableHoverTable:()=>o});var n=r(54568),a=r(7620);let i="td[data-table-row-start][data-table-row-end]";function o(e){let{onMouseOver:t,onMouseLeave:r,...o}=e,l=(0,a.useRef)(null),c=(0,a.useRef)(new Set),d=()=>{for(let e of c.current)e.removeAttribute("data-table-hovered");c.current.clear(),l.current=null};return(0,n.jsx)("table",{...o,onMouseOver:e=>{null==t||t(e);let r=e.target;if(!(r instanceof Element))return void d();let n=r.closest(i);if(!n||!e.currentTarget.contains(n))return void d();if(l.current===n)return;let a=s(n);if(!a)return void d();let o=new Set;for(let t of e.currentTarget.querySelectorAll(i)){let e=s(t),r=null!==e&&e.rowStart<=a.rowEnd&&a.rowStart<=e.rowEnd;t.toggleAttribute("data-table-hovered",r),r&&o.add(t)}for(let e of c.current)o.has(e)||e.removeAttribute("data-table-hovered");l.current=n,c.current=o},onMouseLeave:e=>{null==r||r(e),d()}})}function s(e){let t=Number(e.dataset.tableRowStart),r=Number(e.dataset.tableRowEnd);return Number.isInteger(t)&&Number.isInteger(r)&&!(r<t)?{rowStart:t,rowEnd:r}:null}},89705:(e,t,r)=>{r.d(t,{ElementMarkdownClient:()=>s});var n=r(88276),a=r(47982),i=r(7620),o=r(54568);function s(e){let{element:t,initialMarkdown:r=t.content,renderMarkdown:s,children:l}=e,[c,d]=i.useState(null),u=(0,a.N)((0,n.d)().state,t.content);return i.useEffect(()=>{if(r===u)return void d(null);let e=!1;return(async()=>{let t=await s(u);e||d(t)})(),()=>{e=!0}},[r,u]),(0,o.jsx)(o.Fragment,{children:c||l})}},93571:(e,t,r)=>{r.d(t,{InlineExpressionValue:()=>s});var n=r(54568),a=r(7620),i=r(30132),o=r(64690);function s(e){let{expression:t,variables:r}=e,s=(0,o.uw)()(),l=(0,i.s)({visitorClaims:s,variables:r}),c=(0,a.useMemo)(()=>l(t),[t,l]);return(0,n.jsx)(n.Fragment,{children:c})}},99059:(e,t,r)=>{r.d(t,{MathJaXLazy:()=>o});var n=r(7620),a=r(54568);let i=n.lazy(()=>r.e(1961).then(r.bind(r,1961)));
1function o(e){return(0,a.jsx)(n.Suspense,{fallback:e.fallback,children:(0,a.jsx)(i,{...e})})}}}]);

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