1import{q as e,u as n,g as r,T as t,h as a,B as o,m as i}from"./2c1ab0fe.qpvfywqb.js";import{b2 as c,b3 as s,b4 as l,b5 as p,b6 as u,aV as d,J as v,b7 as f,b8 as m,b9 as h,ba as b,bb as S,bc as k,bd as g,be as x,bf as q,aJ as E,bg as y,bh as z,bi as _}from"./164ad2e3.DcJn775M.js";import{a_ as w,a$ as B}from"./4b4bc88f.DkycdxSK.js";import"./app.DH8n-1bp.js";var I={Content:"xhuvqpk xhuvqpj _1fragem108 _1fragem10n _1fragemzt _1fragem112 _1fragemup _1fragemv4 _1fragemws _1fragem131 _1fragem133",Popover:"xhuvqp1 xhuvqp0 _1fragemws _1fragemy5 _1fragem133",popoverConnectorVariant:{arrow:"xhuvqp5",none:"xhuvqp6"},popoverPlacementVariant:{blockStart:"xhuvqp7",blockStartSpanInlineEnd:"xhuvqp8",blockStartSpanInlineStart:"xhuvqp9",blockEnd:"xhuvqpa",blockEndSpanInlineEnd:"xhuvqpb",blockEndSpanInlineStart:"xhuvqpc",inlineStart:"xhuvqpd",inlineStartSpanBlockEnd:"xhuvqpe",inlineStartSpanBlockStart:"xhuvqpf",inlineEnd:"xhuvqpg",inlineEndSpanBlockEnd:"xhuvqph",inlineEndSpanBlockStart:"xhuvqpi"}};function R(r){const t=c(),{active:a,setActive:o}=t||{},{onHide:i}=r,p=e(()=>{o?.(!1),"function"==typeof i&&i()},[o,i]);if(t){t.setActivatorAttributes({"aria-expanded":t.active,"aria-controls":r.id}),t.attach("onClick",()=>{a&&p(),o?.(!a)});const{children:e}=r;return n(A,{...r,onHide:p,open:a,children:s(e)&&n(l,{children:e})})}return n(A,{...r})}const A=p(u(function({blockSize:o="auto",children:i,connector:s,offset:l,id:p,inlineSize:u="auto",keepMounted:y=!1,maxBlockSize:z="none",maxInlineSize:_="none",minBlockSize:w="0",minInlineSize:B="0",onHide:I,onShow:R,padding:A="base",positionArea:N="block-start",open:j=!1}){const P=c(),{getInteraction:V}=d(),L=r(j),D=r(j),H=r(null),{popover:{connector:K="arrow",cornerRadius:J}}=v(),T=s??K,{className:M,style:O}=f({blockSize:o,inlineSize:u,padding:A,maxBlockSize:z,maxInlineSize:_,minBlockSize:w,minInlineSize:B}),W=t(()=>{if(P)return P.activatorRef.current??null;if(p){const e=V(p);if(m(e)&&e.invokerRef?.current)return e.invokerRef.current}return null},[V,p,P]),$=e(()=>{I?.()},[I]);return a(()=>{const e=e=>{const n=h(H.current),r=b(e),t=S(W);!(e.target instanceof Node&&document.contains(e.target))||H.current?.contains(e.target)||W?.contains(e.target)||!n&&r||!t&&S(e.target)||!j||$()};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[W,$,j]),a(()=>{const e=e=>{if(!j)return;const n=W&&k(W),r=H.current&&g(H.current),t=H.current&&x(H.current),a=h(H.current);switch(e.key){case"Escape":case"Esc":a&&($(),W?.focus());break;case"Tab":q(W)&&e.shiftKey?$():q(W)?(e.preventDefault(),r?.focus()):q(r)&&e.shiftKey?(e.preventDefault(),W?.focus(),$()):q(t)&&!e.shiftKey&&(e.preventDefault(),n?.focus(),$())}};return j&&document.addEventListener("keydown",e,!1),!L.current&&j&&R?.(),L.current=j,j&&(D.current=!0),()=>{document.removeEventListener("keydown",e,!1)}},[W,$,R,j]),j||y&&D.current?n(E,{activator:W,offset:l??"arrow"===T?15:5,positionArea:N,preventOverflow:!0,id:p,hidden:!j,children:n(C,{positionArea:N,connector:T,cornerRadius:J,popoverRef:H,responsiveClassNames:M,responsiveStyle:O,children:i})}):null},{overlayType:"popover"}),{focusActivatorWhenClosing:!0});function C({children:e,positionArea:r,connector:t,cornerRadius:a,popoverRef:c,responsiveClassNames:s,responsiveStyle:p}){const u=o(y),d=u?z(u.position,u.alignment):w(r);return n(l,{children:n("div",{className:i(I.Popover,I.popoverPlacementVariant[d],I.popoverConnectorVariant[t]),ref:c,style:{...null!=a&&{borderRadius:B(a)}},children:n("div",{className:i(I.Content,s),style:p,children:n(_,{children:e})})})})}export{R as P};
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.