1import{s as e,u as n,l as a,T as r,m as t,E as o,v as i}from"./2c1ab0fe.GMbxnz74.js";import{aL as c,aM as s,aN as l,aO as p,aP as u,aC as d,a4 as v,aQ as f,aR as m,aS as h,aT as S,aU as k,aV as x,aW as g,aX as b,aY as q,aZ as E,a_ as y,a$ as z,b0 as _}from"./164ad2e3.BbIvMjRY.js";import{ba as w,bb as R}from"./4c290a1e.C6TDJ9Fn.js";import"./app.CepNJbvh.js";var C={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 I(a){const r=c(),{active:t,setActive:o}=r||{},{onHide:i}=a,p=e(()=>{o?.(!1),"function"==typeof i&&i()},[o,i]);if(r){r.setActivatorAttributes({"aria-expanded":r.active,"aria-controls":a.id}),r.attach("onClick",()=>{t&&p(),o?.(!t)});const{children:e}=a;return n(A,{...a,onHide:p,open:t,children:s(e)&&n(l,{children:e})})}return n(A,{...a})}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:R="0",onHide:C,onShow:I,padding:A="base",positionArea:N="block-start",open:P=!1}){const j=c(),{getInteraction:L}=d(),V=a(P),D=a(P),H=a(null),{popover:{connector:K="arrow",cornerRadius:T}}=v(),M=s??K,{className:O,style:W}=f({blockSize:o,inlineSize:u,padding:A,maxBlockSize:z,maxInlineSize:_,minBlockSize:w,minInlineSize:R}),Q=r(()=>{if(j)return j.activatorRef.current??null;if(p){const e=L(p);if(m(e)&&e.invokerRef?.current)return e.invokerRef.current}return null},[L,p,j]),U=e(()=>{C?.()},[C]);return t(()=>{const e=e=>{const n=h(H.current),a=S(e),r=k(Q);!(e.target instanceof Node&&document.contains(e.target))||H.current?.contains(e.target)||Q?.contains(e.target)||!n&&a||!r&&k(e.target)||!P||U()};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[Q,U,P]),t(()=>{const e=e=>{if(!P)return;const n=Q&&x(Q),a=H.current&&g(H.current),r=H.current&&b(H.current),t=h(H.current);switch(e.key){case"Escape":case"Esc":t&&(U(),Q?.focus());break;case"Tab":q(Q)&&e.shiftKey?U():q(Q)?(e.preventDefault(),a?.focus()):q(a)&&e.shiftKey?(e.preventDefault(),Q?.focus(),U()):q(r)&&!e.shiftKey&&(e.preventDefault(),n?.focus(),U())}};return P&&document.addEventListener("keydown",e,!1),!V.current&&P&&I?.(),V.current=P,P&&(D.current=!0),()=>{document.removeEventListener("keydown",e,!1)}},[Q,U,I,P]),P||y&&D.current?n(E,{activator:Q,offset:l??"arrow"===M?15:5,positionArea:N,preventOverflow:!0,id:p,hidden:!P,children:n(B,{positionArea:N,connector:M,cornerRadius:T,popoverRef:H,responsiveClassNames:O,responsiveStyle:W,children:i})}):null},{overlayType:"popover"}),{focusActivatorWhenClosing:!0});function B({children:e,positionArea:a,connector:r,cornerRadius:t,popoverRef:c,responsiveClassNames:s,responsiveStyle:p}){const u=o(y),d=u?z(u.position,u.alignment):w(a);return n(l,{children:n("div",{className:i(C.Popover,C.popoverPlacementVariant[d],C.popoverConnectorVariant[r]),ref:c,style:{...null!=t&&{borderRadius:R(t)}},children:n("div",{className:i(C.Content,s),style:p,children:n(_,{children:e})})})})}export{I 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.