1import{q as A,u as s,A as k,T as U,h as w,x as X,g as R}from"./esnext-vendor.DDpcaSqU.js";import{aM as V,ab as Y,aN as K,aO as Z,aP as $,aC as G,a1 as J,aQ as ee,aR as te,aS as T,aT as ne,aU as O,aV as ae,aW as re,aX as oe,aY as h,aZ as se,a_ as ce,a$ as ie,b0 as le}from"./hydrate.BcfGVx0L.js";import{bf as ue,bg as fe}from"./utilities-previous.Cnwy8G2v.js";import"./app.DdDscdWN.js";var x={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 xe(c){const a=V(),{active:u,setActive:i}=a||{},{onHide:f}=c,r=A(()=>{i?.(!1),typeof f=="function"&&f()},[i,f]);if(a){a.setActivatorAttributes({"aria-expanded":a.active,"aria-controls":c.id}),a.attach("onClick",()=>{u&&r(),i?.(!u)});const{children:v}=c;return s(F,{...c,onHide:r,open:u,children:Y(v)&&s(K,{children:v})})}return s(F,{...c})}const F=Z($(function({blockSize:a="auto",children:u,connector:i,offset:f,id:r,inlineSize:v="auto",keepMounted:d=!1,maxBlockSize:y="none",maxInlineSize:L="none",minBlockSize:B="0",minInlineSize:D="0",onHide:C,onShow:S,padding:W="base",positionArea:q="block-start",open:t=!1}){const g=V(),{getInteraction:E}=G(),_=k(t),N=k(t),l=k(null),{popover:{connector:H="arrow",cornerRadius:j}}=J(),I=i??H,{className:z,style:M}=ee({blockSize:a,inlineSize:v,padding:W,maxBlockSize:y,maxInlineSize:L,minBlockSize:B,minInlineSize:D}),n=U(()=>{if(g)return g.activatorRef.current??null;if(r){const o=E(r);if(te(o)&&o.invokerRef?.current)return o.invokerRef.current}return null},[E,r,g]),p=A(()=>{C?.()},[C]);return w(()=>{const o=e=>{const b=T(l.current),m=ne(e),P=O(n);e.target instanceof Node&&document.contains(e.target)&&!l.current?.contains(e.target)&&!n?.contains(e.target)&&(b||!m)&&(P||!O(e.target))&&t&&p()};return document.addEventListener("click",o),()=>{document.removeEventListener("click",o)}},[n,p,t]),w(()=>{const o=e=>{if(!t)return;const b=n&&ae(n),m=l.current&&re(l.current),P=l.current&&oe(l.current),Q=T(l.current);switch(e.key){case"Escape":case"Esc":Q&&(p(),n?.focus());break;case"Tab":{h(n)&&e.shiftKey?p():h(n)?(e.preventDefault(),m?.focus()):h(m)&&e.shiftKey?(e.preventDefault(),n?.focus(),p()):h(P)&&!e.shiftKey&&(e.preventDefault(),b?.focus(),p());break}}};return t&&document.addEventListener("keydown",o,!1),!_.current&&t&&S?.(),_.current=t,t&&(N.current=!0),()=>{document.removeEventListener("keydown",o,!1)}},[n,p,S,t]),!t&&!(d&&N.current)?null:s(se,{activator:n,offset:f??I==="arrow"?15:5,positionArea:q,preventOverflow:!0,id:r,hidden:!t,children:s(pe,{positionArea:q,connector:I,cornerRadius:j,popoverRef:l,responsiveClassNames:z,responsiveStyle:M,children:u})})},{overlayType:"popover"}),{focusActivatorWhenClosing:!0});function pe({children:c,positionArea:a,connector:u,cornerRadius:i,popoverRef:f,responsiveClassNames:r,responsiveStyle:v}){const d=X(ce),y=d?ie(d.position,d.alignment):ue(a);return s(K,{children:s("div",{className:R(x.Popover,x.popoverPlacementVariant[y],x.popoverConnectorVariant[u]),ref:f,style:{...i!=null&&{borderRadius:fe(i)}},children:s("div",{className:R(x.Content,r),style:v,children:s(le,{children:c})})})})}export{xe 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.