1import{q as e,u as n,g as r,T as t,h as a,x as o,m as i}from"./2c1ab0fe.Bywc2Brn.js";import{aZ as c,a_ as s,a$ as l,b0 as p,b1 as u,aQ as d,K as v,b2 as f,b3 as m,b4 as h,b5 as S,b6 as b,b7 as k,b8 as g,b9 as x,ba as q,aE as E,bb as y,bc as z,bd as _}from"./164ad2e3.Bn4mVc0u.js";import{aU as w,aV as I}from"./9dba8418.nSn06qNc.js";import"./app.B7Ohb9rB.js";var R={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 A(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(B,{...r,onHide:p,open:a,children:s(e)&&n(l,{children:e})})}return n(B,{...r})}const B=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:I="0",onHide:R,onShow:A,padding:B="base",positionArea:N="block-start",open:j=!1}){const P=c(),{getInteraction:V}=d(),K=r(j),L=r(j),D=r(null),{popover:{connector:H="arrow",cornerRadius:T}}=v(),M=s??H,{className:O,style:Q}=f({blockSize:o,inlineSize:u,padding:B,maxBlockSize:z,maxInlineSize:_,minBlockSize:w,minInlineSize:I}),U=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]),W=e(()=>{R?.()},[R]);return a(()=>{const e=e=>{const n=h(D.current),r=S(e),t=b(U);!(e.target instanceof Node&&document.contains(e.target))||D.current?.contains(e.target)||U?.contains(e.target)||!n&&r||!t&&b(e.target)||!j||W()};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[U,W,j]),a(()=>{const e=e=>{if(!j)return;const n=U&&k(U),r=D.current&&g(D.current),t=D.current&&x(D.current),a=h(D.current);switch(e.key){case"Escape":case"Esc":a&&(W(),U?.focus());break;case"Tab":q(U)&&e.shiftKey?W():q(U)?(e.preventDefault(),r?.focus()):q(r)&&e.shiftKey?(e.preventDefault(),U?.focus(),W()):q(t)&&!e.shiftKey&&(e.preventDefault(),n?.focus(),W())}};return j&&document.addEventListener("keydown",e,!1),!K.current&&j&&A?.(),K.current=j,j&&(L.current=!0),()=>{document.removeEventListener("keydown",e,!1)}},[U,W,A,j]),j||y&&L.current?n(E,{activator:U,offset:l??"arrow"===M?15:5,positionArea:N,preventOverflow:!0,id:p,hidden:!j,children:n(C,{positionArea:N,connector:M,cornerRadius:T,popoverRef:D,responsiveClassNames:O,responsiveStyle:Q,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(R.Popover,R.popoverPlacementVariant[d],R.popoverConnectorVariant[t]),ref:c,style:{...null!=a&&{borderRadius:I(a)}},children:n("div",{className:i(R.Content,s),style:p,children:n(_,{children:e})})})})}export{A 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.