vendor: 15,751 bytes, line 1
1import{r as g,j as B}from"./index-CtZS8l_c.js";import{P as et,c as bt,e as Le,f as ft,d as Te}from"./index-D4tpkXB-.js";import{u as pt}from"./utils-B8Uf5R-g.js";import{r as Me,R as Ne}from"./index-BhnloFaF.js";function gt(t){const e=g.useRef(t);return g.useEffect(()=>{e.current=t}),g.useMemo(()=>(...n)=>e.current?.(...n),[])}function Fe(t,e=globalThis?.document){const n=gt(t);g.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return e.addEventListener("keydown",o,{capture:!0}),()=>e.removeEventListener("keydown",o,{capture:!0})},[n,e])}var We="DismissableLayer",Ot="dismissableLayer.update",ke="dismissableLayer.pointerDownOutside",$e="dismissableLayer.focusOutside",Bt,Jt=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_e=g.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...f}=t,a=g.useContext(Jt),[l,d]=g.useState(null),h=l?.ownerDocument??globalThis?.document,[,u]=g.useState({}),m=pt(e,x=>d(x)),p=Array.from(a.layers),[v]=[...a.layersWithOutsidePointerEventsDisabled].slice(-1),w=p.indexOf(v),A=l?p.indexOf(l):-1,b=a.layersWithOutsidePointerEventsDisabled.size>0,y=A>=w,E=ze(x=>{const P=x.target,M=[...a.branches].some(C=>C.contains(P));!y||M||(r?.(x),s?.(x),x.defaultPrevented||c?.())},h),R=Ie(x=>{const P=x.target;[...a.branches].some(C=>C.contains(P))||(i?.(x),s?.(x),x.defaultPrevented||c?.())},h);return Fe(x=>{A===a.layers.size-1&&(o?.(x),!x.defaultPrevented&&c&&(x.preventDefault(),c()))},h),g.useEffect(()=>{if(l)return n&&(a.layersWithOutsidePointerEventsDisabled.size===0&&(Bt=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),a.layersWithOutsidePointerEventsDisabled.add(l)),a.layers.add(l),Ht(),()=>{n&&a.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Bt)}},[l,h,n,a]),g.useEffect(()=>()=>{l&&(a.layers.delete(l),a.layersWithOutsidePointerEventsDisabled.delete(l),Ht())},[l,a]),g.useEffect(()=>{const x=()=>u({});return document.addEventListener(Ot,x),()=>document.removeEventListener(Ot,x)},[]),B.jsx(et.div,{...f,ref:m,style:{pointerEvents:b?y?"auto":"none":void 0,...t.style},onFocusCapture:bt(t.onFocusCapture,R.onFocusCapture),onBlurCapture:bt(t.onBlurCapture,R.onBlurCapture),onPointerDownCapture:bt(t.onPointerDownCapture,E.onPointerDownCapture)})});_e.displayName=We;var Be="DismissableLayerBranch",He=g.forwardRef((t,e)=>{const n=g.useContext(Jt),o=g.useRef(null),r=pt(e,o);return g.useEffect(()=>{const i=o.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),B.jsx(et.div,{...t,ref:r})});He.displayName=Be;function ze(t,e=globalThis?.document){const n=gt(t),o=g.useRef(!1),r=g.useRef(()=>{});return g.useEffect(()=>{const i=c=>{if(c.target&&!o.current){let f=function(){Qt(ke,n,a,{discrete:!0})};const a={originalEvent:c};c.pointerType==="touch"?(e.removeEventListener("click",r.current),r.current=f,e.addEventListener("click",r.current,{once:!0})):f()}else e.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),e.removeEventListener("pointerdown",i),e.removeEventListener("click",r.current)}},[e,n]),{onPointerDownCapture:()=>o.current=!0}}function Ie(t,e=globalThis?.document){const n=gt(t),o=g.useRef(!1);return g.useEffect(()=>{const r=i=>{i.target&&!o.current&&Qt($e,n,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",r),()=>e.removeEventListener("focusin",r)},[e,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ht(){const t=new CustomEvent(Ot);document.dispatchEvent(t)}function Qt(t,e,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&r.addEventListener(t,e,{once:!0}),o?Le(r,i):r.dispatchEvent(i)}const je=["top","right","bottom","left"],q=Math.min,$=Math.max,ut=Math.round,at=Math.floor,V=t=>({x:t,y:t}),Ve={left:"right",right:"left",bottom:"top",top:"bottom"};function Pt(t,e,n){return $(t,q(e,n))}function Y(t,e){return typeof t=="function"?t(e):t}function U(t){return t.split("-")[0]}function nt(t){return t.split("-")[1]}function Dt(t){return t==="x"?"y":"x"}function Lt(t){return t==="y"?"height":"width"}function j(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function Tt(t){return Dt(j(t))}function Xe(t,e,n){n===void 0&&(n=!1);const o=nt(t),r=Tt(t),i=Lt(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=dt(s)),[s,dt(s)]}function Ye(t){const e=dt(t);return[Ct(t),e,Ct(e)]}function Ct(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const zt=["left","right"],It=["right","left"],Ue=["top","bottom"],Ke=["bottom","top"];function qe(t,e,n){switch(t){case"top":case"bottom":return n?e?It:zt:e?zt:It;case"left":case"right":return e?Ue:Ke;default:return[]}}function Ze(t,e,n,o){const r=nt(t);let i=qe(U(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(Ct)))),i}function dt(t){const e=U(t);return Ve[e]+t.slice(e.length)}function Ge(t){return{top:0,right:0,bottom:0,left:0,...t}}function te(t){return typeof t!="number"?Ge(t):{top:t,right:t,bottom:t,left:t}}function ht(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function jt(t,e,n){let{reference:o,floating:r}=t;const i=j(e),s=Tt(e),c=Lt(s),f=U(e),a=i==="y",l=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,h=o[c]/2-r[c]/2;let u;switch(f){case"top":u={x:l,y:o.y-r.height};break;case"bottom":u={x:l,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:d};break;case"left":u={x:o.x-r.width,y:d};break;default:u={x:o.x,y:o.y}}switch(nt(e)){case"start":u[s]-=h*(n&&a?-1:1);break;case"end":u[s]+=h*(n&&a?-1:1);break}return u}async function Je(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:f}=t,{boundary:a="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:h=!1,padding:u=0}=Y(e,t),m=te(u),v=c[h?d==="floating"?"reference":"floating":d],w=ht(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:a,rootBoundary:l,strategy:f})),A=d==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),y=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},E=ht(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:A,offsetParent:b,strategy:f}):A);return{top:(w.top-E.top+m.top)/y.y,bottom:(E.bottom-w.bottom+m.bottom)/y.y,left:(w.left-E.left+m.left)/y.x,right:(E.right-w.right+m.right)/y.x}}const Qe=50,tn=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=s.detectOverflow?s:{...s,detectOverflow:Je},f=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:l,y:d}=jt(a,o,f),h=o,u=0;const m={};for(let p=0;p<i.length;p++){const v=i[p];if(!v)continue;const{name:w,fn:A}=v,{x:b,y,data:E,reset:R}=await A({x:l,y:d,initialPlacement:o,placement:h,strategy:r,middlewareData:m,rects:a,platform:c,elements:{reference:t,floating:e}});l=b??l,d=y??d,m[w]={...m[w],...E},R&&u<Qe&&(u++,typeof R=="object"&&(R.placement&&(h=R.placement),R.rects&&(a=R.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):R.rects),{x:l,y:d}=jt(a,h,f)),p=-1)}return{x:l,y:d,placement:h,strategy:r,middlewareData:m}},en=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:f}=e,{element:a,padding:l=0}=Y(t,e)||{};if(a==null)return{};const d=te(l),h={x:n,y:o},u=Tt(r),m=Lt(u),p=await s.getDimensions(a),v=u==="y",w=v?"top":"left",A=v?"bottom":"right",b=v?"clientHeight":"clientWidth",y=i.reference[m]+i.reference[u]-h[u]-i.floating[m],E=h[u]-i.reference[u],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let x=R?R[b]:0;(!x||!await(s.isElement==null?void 0:s.isElement(R)))&&(x=c.floating[b]||i.floating[m]);const P=y/2-E/2,M=x/2-p[m]/2-1,C=q(d[w],M),F=q(d[A],M),W=C,D=x-p[m]-F,S=x/2-p[m]/2+P,k=Pt(W,S,D),L=!f.arrow&&nt(r)!=null&&S!==k&&i.reference[m]/2-(S<W?C:F)-p[m]/2<0,T=L?S<W?S-W:S-D:0;return{[u]:h[u]+T,data:{[u]:k,centerOffset:S-k-T,...L&&{alignmentOffset:T}},reset:L}}}),nn=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:f,elements:a}=e,{mainAxis:l=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...v}=Y(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=U(r),A=j(c),b=U(c)===c,y=await(f.isRTL==null?void 0:f.isRTL(a.floating)),E=h||(b||!p?[dt(c)]:Ye(c)),R=m!=="none";!h&&R&&E.push(...Ze(c,p,m,y));const x=[c,...E],P=await f.detectOverflow(e,v),M=[];let C=((o=i.flip)==null?void 0:o.overflows)||[];if(l&&M.push(P[w]),d){const S=Xe(r,s,y);M.push(P[S[0]],P[S[1]])}if(C=[...C,{placement:r,overflows:M}],!M.every(S=>S<=0)){var F,W;const S=(((F=i.flip)==null?void 0:F.index)||0)+1,k=x[S];if(k&&(!(d==="alignment"?A!==j(k):!1)||C.every(O=>j(O.placement)===A?O.overflows[0]>0:!0)))return{data:{index:S,overflows:C},reset:{placement:k}};let L=(W=C.filter(T=>T.overflows[0]<=0).sort((T,O)=>T.overflows[1]-O.overflows[1])[0])==null?void 0:W.placement;if(!L)switch(u){case"bestFit":{var D;const T=(D=C.filter(O=>{if(R){const N=j(O.placement);return N===A||N==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(N=>N>0).reduce((N,I)=>N+I,0)]).sort((O,N)=>O[1]-N[1])[0])==null?void 0:D[0];T&&(L=T);break}case"initialPlacement":L=c;break}if(r!==L)return{reset:{placement:L}}}return{}}}};function Vt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Xt(t){return je.some(e=>t[e]>=0)}const on=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:o}=e,{strategy:r="referenceHidden",...i}=Y(t,e);switch(r){case"referenceHidden":{const s=await o.detectOverflow(e,{...i,elementContext:"reference"}),c=Vt(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Xt(c)}}}case"escaped":{const s=await o.detectOverflow(e,{...i,altBoundary:!0}),c=Vt(s,n.floating);return{data:{escapedOffsets:c,escaped:Xt(c)}}}default:return{}}}}},ee=new Set(["left","top"]);async function rn(t,e){const{placement:n,platform:o,elements:r}=t,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=U(n),c=nt(n),f=j(n)==="y",a=ee.has(s)?-1:1,l=i&&f?-1:1,d=Y(e,t);let{mainAxis:h,crossAxis:u,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof m=="number"&&(u=c==="end"?m*-1:m),f?{x:u*l,y:h*a}:{x:h*a,y:u*l}}const sn=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=e,f=await rn(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+f.x,y:i+f.y,data:{...f,placement:s}}}}},cn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r,platform:i}=e,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:w=>{let{x:A,y:b}=w;return{x:A,y:b}}},...a}=Y(t,e),l={x:n,y:o},d=await i.detectOverflow(e,a),h=j(U(r)),u=Dt(h);let m=l[u],p=l[h];if(s){const w=u==="y"?"top":"left",A=u==="y"?"bottom":"right",b=m+d[w],y=m-d[A];m=Pt(b,m,y)}if(c){const w=h==="y"?"top":"left",A=h==="y"?"bottom":"right",b=p+d[w],y=p-d[A];p=Pt(b,p,y)}const v=f.fn({...e,[u]:m,[h]:p});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[u]:s,[h]:c}}}}}},an=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:c=0,mainAxis:f=!0,crossAxis:a=!0}=Y(t,e),l={x:n,y:o},d=j(r),h=Dt(d);let u=l[h],m=l[d];const p=Y(c,e),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(f){const b=h==="y"?"height":"width",y=i.reference[h]-i.floating[b]+v.mainAxis,E=i.reference[h]+i.reference[b]-v.mainAxis;u<y?u=y:u>E&&(u=E)}if(a){var w,A;const b=h==="y"?"width":"height",y=ee.has(U(r)),E=i.reference[d]-i.floating[b]+(y&&((w=s.offset)==null?void 0:w[d])||0)+(y?0:v.crossAxis),R=i.reference[d]+i.reference[b]+(y?0:((A=s.offset)==null?void 0:A[d])||0)-(y?v.crossAxis:0);m<E?m=E:m>R&&(m=R)}return{[h]:u,[d]:m}}}},ln=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:s,elements:c}=e,{apply:f=()=>{},...a}=Y(t,e),l=await s.detectOverflow(e,a),d=U(r),h=nt(r),u=j(r)==="y",{width:m,height:p}=i.floating;let v,w;d==="top"||d==="bottom"?(v=d,w=h===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(w=d,v=h==="end"?"top":"bottom");const A=p-l.top-l.bottom,b=m-l.left-l.right,y=q(p-l[v],A),E=q(m-l[w],b),R=!e.middlewareData.shift;let x=y,P=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(P=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(x=A),R&&!h){const C=$(l.left,0),F=$(l.right,0),W=$(l.top,0),D=$(l.bottom,0);u?P=m-2*(C!==0||F!==0?C+F:$(l.left,l.right)):x=p-2*(W!==0||D!==0?W+D:$(l.top,l.bottom))}await f({...e,availableWidth:P,availableHeight:x});const M=await s.getDimensions(c.floating);return m!==M.width||p!==M.height?{reset:{rects:!0}}:{}}}};function wt(){return typeof window<"u"}function ot(t){return ne(t)?(t.nodeName||"").toLowerCase():"#document"}function _(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function X(t){var e;return(e=(ne(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ne(t){return wt()?t instanceof Node||t instanceof _(t).Node:!1}function H(t){return wt()?t instanceof Element||t instanceof _(t).Element:!1}function K(t){return wt()?t instanceof HTMLElement||t instanceof _(t).HTMLElement:!1}function Yt(t){return!wt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _(t).ShadowRoot}function st(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=z(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&r!=="inline"&&r!=="contents"}function fn(t){return/^(table|td|th)$/.test(ot(t))}function yt(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const un=/transform|translate|scale|rotate|perspective|filter/,dn=/paint|layout|strict|content/,G=t=>!!t&&t!=="none";let At;function Mt(t){const e=H(t)?z(t):t;return G(e.transform)||G(e.translate)||G(e.scale)||G(e.rotate)||G(e.perspective)||!Nt()&&(G(e.backdropFilter)||G(e.filter))||un.test(e.willChange||"")||dn.test(e.contain||"")}function hn(t){let e=Z(t);for(;K(e)&&!tt(e);){if(Mt(e))return e;if(yt(e))return null;e=Z(e)}return null}function Nt(){return At==null&&(At=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),At}function tt(t){return/^(html|body|#document)$/.test(ot(t))}function z(t){return _(t).getComputedStyle(t)}function xt(t){return H(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Z(t){if(ot(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Yt(t)&&t.host||X(t);return Yt(e)?e.host:e}function oe(t){const e=Z(t);return tt(e)?t.ownerDocument?t.ownerDocument.body:t.body:K(e)&&st(e)?e:oe(e)}function it(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=oe(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=_(r);if(i){const c=St(s);
vendor: 5,070 bytes, line 1
1return e.concat(s,s.visualViewport||[],st(r)?r:[],c&&n?it(c):[])}else return e.concat(r,it(r,[],n))}function St(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function re(t){const e=z(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=K(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,c=ut(n)!==i||ut(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function Ft(t){return H(t)?t:t.contextElement}function Q(t){const e=Ft(t);if(!K(e))return V(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=re(e);let s=(i?ut(n.width):n.width)/o,c=(i?ut(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const mn=V(0);function ie(t){const e=_(t);return!Nt()||!e.visualViewport?mn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function pn(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==_(t)?!1:e}function J(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=Ft(t);let s=V(1);e&&(o?H(o)&&(s=Q(o)):s=Q(t));const c=pn(i,n,o)?ie(i):V(0);let f=(r.left+c.x)/s.x,a=(r.top+c.y)/s.y,l=r.width/s.x,d=r.height/s.y;if(i){const h=_(i),u=o&&H(o)?_(o):o;let m=h,p=St(m);for(;p&&o&&u!==m;){const v=Q(p),w=p.getBoundingClientRect(),A=z(p),b=w.left+(p.clientLeft+parseFloat(A.paddingLeft))*v.x,y=w.top+(p.clientTop+parseFloat(A.paddingTop))*v.y;f*=v.x,a*=v.y,l*=v.x,d*=v.y,f+=b,a+=y,m=_(p),p=St(m)}}return ht({width:l,height:d,x:f,y:a})}function vt(t,e){const n=xt(t).scrollLeft;return e?e.left+n:J(X(t)).left+n}function se(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-vt(t,n),r=n.top+e.scrollTop;return{x:o,y:r}}function gn(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=X(o),c=e?yt(e.floating):!1;if(o===s||c&&i)return n;let f={scrollLeft:0,scrollTop:0},a=V(1);const l=V(0),d=K(o);if((d||!d&&!i)&&((ot(o)!=="body"||st(s))&&(f=xt(o)),d)){const u=J(o);a=Q(o),l.x=u.x+o.clientLeft,l.y=u.y+o.clientTop}const h=s&&!d&&!i?se(s,f):V(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-f.scrollLeft*a.x+l.x+h.x,y:n.y*a.y-f.scrollTop*a.y+l.y+h.y}}function wn(t){return Array.from(t.getClientRects())}function yn(t){const e=X(t),n=xt(t),o=t.ownerDocument.body,r=$(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=$(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+vt(t);const c=-n.scrollTop;return z(o).direction==="rtl"&&(s+=$(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}const Ut=25;function xn(t,e){const n=_(t),o=X(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,f=0;if(r){i=r.width,s=r.height;const l=Nt();(!l||l&&e==="fixed")&&(c=r.offsetLeft,f=r.offsetTop)}const a=vt(o);if(a<=0){const l=o.ownerDocument,d=l.body,h=getComputedStyle(d),u=l.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,m=Math.abs(o.clientWidth-d.clientWidth-u);m<=Ut&&(i-=m)}else a<=Ut&&(i+=a);return{width:i,height:s,x:c,y:f}}function vn(t,e){const n=J(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=K(t)?Q(t):V(1),s=t.clientWidth*i.x,c=t.clientHeight*i.y,f=r*i.x,a=o*i.y;return{width:s,height:c,x:f,y:a}}function Kt(t,e,n){let o;if(e==="viewport")o=xn(t,n);else if(e==="document")o=yn(X(t));else if(H(e))o=vn(e,n);else{const r=ie(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return ht(o)}function ce(t,e){const n=Z(t);return n===e||!H(n)||tt(n)?!1:z(n).position==="fixed"||ce(n,e)}function bn(t,e){const n=e.get(t);if(n)return n;let o=it(t,[],!1).filter(c=>H(c)&&ot(c)!=="body"),r=null;const i=z(t).position==="fixed";let s=i?Z(t):t;for(;H(s)&&!tt(s);){const c=z(s),f=Mt(s);!f&&c.position==="fixed"&&(r=null),(i?!f&&!r:!f&&c.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||st(s)&&!f&&ce(t,s))?o=o.filter(l=>l!==s):r=c,s=Z(s)}return e.set(t,o),o}function An(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?yt(e)?[]:bn(e,this._c):[].concat(n),o],c=Kt(e,s[0],r);let f=c.top,a=c.right,l=c.bottom,d=c.left;for(let h=1;h<s.length;h++){const u=Kt(e,s[h],r);f=$(u.top,f),a=q(u.right,a),l=q(u.bottom,l),d=$(u.left,d)}return{width:a-d,height:l-f,x:d,y:f}}function Rn(t){const{width:e,height:n}=re(t);return{width:e,height:n}}function En(t,e,n){const o=K(e),r=X(e),i=n==="fixed",s=J(t,!0,i,e);let c={scrollLeft:0,scrollTop:0};const f=V(0);function a(){f.x=vt(r)}if(o||!o&&!i)if((ot(e)!=="body"||st(r))&&(c=xt(e)),o){const u=J(e,!0,i,e);f.x=u.x+e.clientLeft,f.y=u.y+e.clientTop}else r&&a();i&&!o&&r&&a();const l=r&&!o&&!i?se(r,c):V(0),d=s.left+c.scrollLeft-f.x-l.x,h=s.top+c.scrollTop-f.y-l.y;return{x:d,y:h,width:s.width,height:s.height}}function Rt(t){return z(t).position==="static"}function qt(t,e){if(!K(t)||z(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return X(t)===n&&(n=n.ownerDocument.body),n}function ae(t,e){const n=_(t);if(yt(t))return n;if(!K(t)){let r=Z(t);for(;r&&!tt(r);){if(H(r)&&!Rt(r))return r;r=Z(r)}return n}let o=qt(t,e);for(;o&&fn(o)&&Rt(o);)o=qt(o,e);return o&&tt(o)&&Rt(o)&&!Mt(o)?n:o||hn(t)||n}
vendor: 4,187 bytes, line 1
1const On=async function(t){const e=this.getOffsetParent||ae,n=this.getDimensions,o=await n(t.floating);return{reference:En(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Pn(t){return z(t).direction==="rtl"}const Cn={convertOffsetParentRelativeRectToViewportRelativeRect:gn,getDocumentElement:X,getClippingRect:An,getOffsetParent:ae,getElementRects:On,getClientRects:wn,getDimensions:Rn,getScale:Q,isElement:H,isRTL:Pn};function le(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Sn(t,e){let n=null,o;const r=X(t);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),i();const a=t.getBoundingClientRect(),{left:l,top:d,width:h,height:u}=a;if(c||e(),!h||!u)return;const m=at(d),p=at(r.clientWidth-(l+h)),v=at(r.clientHeight-(d+u)),w=at(l),b={rootMargin:-m+"px "+-p+"px "+-v+"px "+-w+"px",threshold:$(0,q(1,f))||1};let y=!0;function E(R){const x=R[0].intersectionRatio;if(x!==f){if(!y)return s();x?s(!1,x):o=setTimeout(()=>{s(!1,1e-7)},1e3)}x===1&&!le(a,t.getBoundingClientRect())&&s(),y=!1}try{n=new IntersectionObserver(E,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(E,b)}n.observe(t)}return s(!0),i}function Dn(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=o,a=Ft(t),l=r||i?[...a?it(a):[],...e?it(e):[]]:[];l.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const d=a&&c?Sn(a,n):null;let h=-1,u=null;s&&(u=new ResizeObserver(w=>{let[A]=w;A&&A.target===a&&u&&e&&(u.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=u)==null||b.observe(e)})),n()}),a&&!f&&u.observe(a),e&&u.observe(e));let m,p=f?J(t):null;f&&v();function v(){const w=J(t);p&&!le(p,w)&&n(),p=w,m=requestAnimationFrame(v)}return n(),()=>{var w;l.forEach(A=>{r&&A.removeEventListener("scroll",n),i&&A.removeEventListener("resize",n)}),d?.(),(w=u)==null||w.disconnect(),u=null,f&&cancelAnimationFrame(m)}}const Ln=sn,Tn=cn,Mn=nn,Nn=ln,Fn=on,Zt=en,Wn=an,kn=(t,e,n)=>{const o=new Map,r={platform:Cn,...n},i={...r.platform,_c:o};return tn(t,e,{...r,platform:i})};var $n=typeof document<"u",_n=function(){},lt=$n?g.useLayoutEffect:_n;function mt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,r;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!mt(t[o],e[o]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&t.$$typeof)&&!mt(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function fe(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Gt(t,e){const n=fe(t);return Math.round(e*n)/n}function Et(t){const e=g.useRef(t);return lt(()=>{e.current=t}),e}function Bn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:f,open:a}=t,[l,d]=g.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,u]=g.useState(o);mt(h,o)||u(o);const[m,p]=g.useState(null),[v,w]=g.useState(null),A=g.useCallback(O=>{O!==R.current&&(R.current=O,p(O))},[]),b=g.useCallback(O=>{O!==x.current&&(x.current=O,w(O))},[]),y=i||m,E=s||v,R=g.useRef(null),x=g.useRef(null),P=g.useRef(l),M=f!=null,C=Et(f),F=Et(r),W=Et(a),D=g.useCallback(()=>{if(!R.current||!x.current)return;const O={placement:e,strategy:n,middleware:h};F.current&&(O.platform=F.current),kn(R.current,x.current,O).then(N=>{const I={...N,isPositioned:W.current!==!1};S.current&&!mt(P.current,I)&&(P.current=I,Me.flushSync(()=>{d(I)}))})},[h,e,n,F,W]);lt(()=>{a===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[a]);const S=g.useRef(!1);lt(()=>(S.current=!0,()=>{S.current=!1}),[]),lt(()=>
vendor: 4,733 bytes, line 1
1{if(y&&(R.current=y),E&&(x.current=E),y&&E){if(C.current)return C.current(y,E,D);D()}},[y,E,D,C,M]);const k=g.useMemo(()=>({reference:R,floating:x,setReference:A,setFloating:b}),[A,b]),L=g.useMemo(()=>({reference:y,floating:E}),[y,E]),T=g.useMemo(()=>{const O={position:n,left:0,top:0};if(!L.floating)return O;const N=Gt(L.floating,l.x),I=Gt(L.floating,l.y);return c?{...O,transform:"translate("+N+"px, "+I+"px)",...fe(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:I}},[n,c,L.floating,l.x,l.y]);return g.useMemo(()=>({...l,update:D,refs:k,elements:L,floatingStyles:T}),[l,D,k,L,T])}const Hn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:r}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?Zt({element:o.current,padding:r}).fn(n):{}:o?Zt({element:o,padding:r}).fn(n):{}}}},zn=(t,e)=>{const n=Ln(t);return{name:n.name,fn:n.fn,options:[t,e]}},In=(t,e)=>{const n=Tn(t);return{name:n.name,fn:n.fn,options:[t,e]}},jn=(t,e)=>({fn:Wn(t).fn,options:[t,e]}),Vn=(t,e)=>{const n=Mn(t);return{name:n.name,fn:n.fn,options:[t,e]}},Xn=(t,e)=>{const n=Nn(t);return{name:n.name,fn:n.fn,options:[t,e]}},Yn=(t,e)=>{const n=Fn(t);return{name:n.name,fn:n.fn,options:[t,e]}},Un=(t,e)=>{const n=Hn(t);return{name:n.name,fn:n.fn,options:[t,e]}};var Kn="Arrow",ue=g.forwardRef((t,e)=>{const{children:n,width:o=10,height:r=5,...i}=t;return B.jsx(et.svg,{...i,ref:e,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:B.jsx("polygon",{points:"0,0 30,0 15,10"})})});ue.displayName=Kn;var qn=ue;function Zn(t){const[e,n]=g.useState(void 0);return ft(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,c;if("borderBoxSize"in i){const f=i.borderBoxSize,a=Array.isArray(f)?f[0]:f;s=a.inlineSize,c=a.blockSize}else s=t.offsetWidth,c=t.offsetHeight;n({width:s,height:c})});return o.observe(t,{box:"border-box"}),()=>o.unobserve(t)}else n(void 0)},[t]),e}var Wt="Popper",[de,lo]=Te(Wt),[Gn,he]=de(Wt),me=t=>{const{__scopePopper:e,children:n}=t,[o,r]=g.useState(null);return B.jsx(Gn,{scope:e,anchor:o,onAnchorChange:r,children:n})};me.displayName=Wt;var pe="PopperAnchor",ge=g.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:o,...r}=t,i=he(pe,n),s=g.useRef(null),c=pt(e,s),f=g.useRef(null);return g.useEffect(()=>{const a=f.current;f.current=o?.current||s.current,a!==f.current&&i.onAnchorChange(f.current)}),o?null:B.jsx(et.div,{...r,ref:c})});ge.displayName=pe;var kt="PopperContent",[Jn,Qn]=de(kt),we=g.forwardRef((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:a=[],collisionPadding:l=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:u="optimized",onPlaced:m,...p}=t,v=he(kt,n),[w,A]=g.useState(null),b=pt(e,rt=>A(rt)),[y,E]=g.useState(null),R=Zn(y),x=R?.width??0,P=R?.height??0,M=o+(i!=="center"?"-"+i:""),C=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},F=Array.isArray(a)?a:[a],W=F.length>0,D={padding:C,boundary:F.filter(eo),altBoundary:W},{refs:S,floatingStyles:k,placement:L,isPositioned:T,middlewareData:O}=Bn({strategy:"fixed",placement:M,whileElementsMounted:(...rt)=>Dn(...rt,{animationFrame:u==="always"}),elements:{reference:v.anchor},middleware:[zn({mainAxis:r+P,alignmentAxis:s}),f&&In({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?jn():void 0,...D}),f&&Vn({...D}),Xn({...D,apply:({elements:rt,rects:_t,availableWidth:Pe,availableHeight:Ce})=>{const{width:Se,height:De}=_t.reference,ct=rt.floating.style;ct.setProperty("--radix-popper-available-width",`${Pe}px`),ct.setProperty("--radix-popper-available-height",`${Ce}px`),ct.setProperty("--radix-popper-anchor-width",`${Se}px`),ct.setProperty("--radix-popper-anchor-height",`${De}px`)}}),y&&Un({element:y,padding:c}),no({arrowWidth:x,arrowHeight:P}),h&&Yn({strategy:"referenceHidden",...D})]}),[N,I]=ve(L),$t=gt(m);ft(()=>{T&&$t?.()},[T,$t]);const be=O.arrow?.x,Ae=O.arrow?.y,Re=O.arrow?.centerOffset!==0,[Ee,Oe]=g.useState();return ft(()=>{w&&Oe(window.getComputedStyle(w).zIndex)},[w]),B.jsx("div",{ref:S.setFloating,"data-radix-popper-content-wrapper":"",style:{...k,transform:T?k.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ee,"--radix-popper-transform-origin":[O.transformOrigin?.x,O.transformOrigin?.y].join(" "),...O.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:B.jsx(Jn,{scope:n,placedSide:N,onArrowChange:E,arrowX:be,arrowY:Ae,shouldHideArrow:Re,children:B.jsx(et.div,{"data-side":N,"data-align":I,...p,ref:b,style:{...p.style,animation:T?void 0:"none"}})})})});
vendor: 1,650 bytes, lines 1-2
1we.displayName=kt;var ye="PopperArrow",to={top:"bottom",right:"left",bottom:"top",left:"right"},xe=g.forwardRef(function(e,n){const{__scopePopper:o,...r}=e,i=Qn(ye,o),s=to[i.placedSide];return B.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:B.jsx(qn,{...r,ref:n,style:{...r.style,display:"block"}})})});xe.displayName=ye;function eo(t){return t!==null}var no=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:r}=e,s=r.arrow?.centerOffset!==0,c=s?0:t.arrowWidth,f=s?0:t.arrowHeight,[a,l]=ve(n),d={start:"0%",center:"50%",end:"100%"}[l],h=(r.arrow?.x??0)+c/2,u=(r.arrow?.y??0)+f/2;let m="",p="";return a==="bottom"?(m=s?d:`${h}px`,p=`${-f}px`):a==="top"?(m=s?d:`${h}px`,p=`${o.floating.height+f}px`):a==="right"?(m=`${-f}px`,p=s?d:`${u}px`):a==="left"&&(m=`${o.floating.width+f}px`,p=s?d:`${u}px`),{data:{x:m,y:p}}}});function ve(t){const[e,n="center"]=t.split("-");return[e,n]}var fo=me,uo=ge,ho=we,mo=xe,oo="Portal",ro=g.forwardRef((t,e)=>{const{container:n,...o}=t,[r,i]=g.useState(!1);ft(()=>i(!0),[]);const s=n||r&&globalThis?.document?.body;return s?Ne.createPortal(B.jsx(et.div,{...o,ref:e}),s):null});ro.displayName=oo;export{uo as A,ho as C,_e as D,ro as P,fo as R,mo as a,Zn as b,lo as c,gt as u}; 2//# sourceMappingURL=index-BccVpCep.js.map
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.