1import{q as j,u as s,A as C,T as U,h as R,x as G,g as w}from"./esnext-vendor.BBoIVOQW.js";import{iJ as A,a9 as Q,aU as L,aK as X,aL as Y,av as Z,u as $,aM as ee,iI as te,jn as T,jo as ne,jp as O,eI as re,eJ as oe,eH as ae,cl as h,cm as se,jq as ce,jr as ie,aS as le,js as ue}from"./hydrate.Tsur0pib.js";import{kL as fe,bz as pe,S as de}from"./addresses-is-address-empty.ZJ1ThpFy.js";import"./app.CUBUOQtX.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 ge(c){const r=A(),{active:u,setActive:i}=r||{},{onHide:f}=c,o=j(()=>{i?.(!1),typeof f=="function"&&f()},[i,f]);if(r){r.setActivatorAttributes({"aria-expanded":r.active,"aria-controls":c.id}),r.attach("onClick",()=>{u&&o(),i?.(!u)});const{children:d}=c;return s(F,{...c,onHide:o,open:u,children:Q(d)&&s(L,{children:d})})}return s(F,{...c})}const F=X(Y(function({blockSize:r="auto",children:u,connector:i,offset:f,id:o,inlineSize:d="auto",keepMounted:v=!1,maxBlockSize:y="none",maxInlineSize:K="none",minBlockSize:V="0",minInlineSize:B="0",onHide:S,onShow:q,padding:D="base",positionArea:b="block-start",open:t=!1}){const P=A(),{getInteraction:E}=Z(),_=C(t),I=C(t),l=C(null),{popover:{connector:H="arrow",cornerRadius:J}}=$(),N=i??H,{className:z,style:W}=ee({blockSize:r,inlineSize:d,padding:D,maxBlockSize:y,maxInlineSize:K,minBlockSize:V,minInlineSize:B}),n=U(()=>{if(P)return P.activatorRef.current??null;if(o){const a=E(o);if(te(a)&&a.invokerRef?.current)return a.invokerRef.current}return null},[E,o,P]),p=j(()=>{S?.()},[S]);return R(()=>{const a=e=>{const g=T(l.current),m=ne(e),k=O(n);e.target instanceof Node&&document.contains(e.target)&&!l.current?.contains(e.target)&&!n?.contains(e.target)&&(g||!m)&&(k||!O(e.target))&&t&&p()};return document.addEventListener("click",a),()=>{document.removeEventListener("click",a)}},[n,p,t]),R(()=>{const a=e=>{if(!t)return;const g=n&&re(n),m=l.current&&oe(l.current),k=l.current&&ae(l.current),M=T(l.current);switch(e.key){case"Escape":case"Esc":M&&(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(k)&&!e.shiftKey&&(e.preventDefault(),g?.focus(),p());break}}};return t&&document.addEventListener("keydown",a,!1),!_.current&&t&&q?.(),_.current=t,t&&(I.current=!0),()=>{document.removeEventListener("keydown",a,!1)}},[n,p,q,t]),!t&&!(v&&I.current)?null:s(se,{activator:n,offset:f??N==="arrow"?15:5,positionArea:b,preventOverflow:!0,id:o,hidden:!t,children:s(ve,{positionArea:b,connector:N,cornerRadius:J,popoverRef:l,responsiveClassNames:z,responsiveStyle:W,children:u})})},{overlayType:"popover"}),{focusActivatorWhenClosing:!0});function ve({children:c,positionArea:r,connector:u,cornerRadius:i,popoverRef:f,responsiveClassNames:o,responsiveStyle:d}){const v=G(ce),y=v?ie(v.position,v.alignment):fe(r);return s(L,{children:s("div",{className:w(x.Popover,x.popoverPlacementVariant[y],x.popoverConnectorVariant[u]),ref:f,style:{...i!=null&&{borderRadius:pe(i)}},children:s("div",{className:w(x.Content,o),style:d,children:s(le,{children:c})})})})}function ke(){return de(ue)}const me="p97qJ",Ce={RedirectionNotice:me};export{ge as P,Ce as s,ke as u};
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.