vendor: 12,363 bytes, line 1
1import{r as C}from"./react-vendor-COiIN1cW.js";import{r as Te}from"./index-xqE9u7sF.js";import{u as tt,c as dt}from"./index-BBqyhu55.js";import{c as Tt,P as ee,k as Ie,i as bt,j as Le}from"./index-Da7VVorq.js";import{j as F}from"./query-vendor-ZgAkXfc6.js";const ke=["top","right","bottom","left"],J=Math.min,j=Math.max,ht=Math.round,at=Math.floor,X=t=>({x:t,y:t}),Ne={left:"right",right:"left",bottom:"top",top:"bottom"},_e={start:"end",end:"start"};function Pt(t,e,n){return j(t,J(e,n))}function K(t,e){return typeof t=="function"?t(e):t}function U(t){return t.split("-")[0]}function it(t){return t.split("-")[1]}function It(t){return t==="x"?"y":"x"}function Lt(t){return t==="y"?"height":"width"}const $e=new Set(["top","bottom"]);function V(t){return $e.has(U(t))?"y":"x"}function kt(t){return It(V(t))}function Fe(t,e,n){n===void 0&&(n=!1);const o=it(t),i=kt(t),r=Lt(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=pt(s)),[s,pt(s)]}function je(t){const e=pt(t);return[Et(t),e,Et(e)]}function Et(t){return t.replace(/start|end/g,e=>_e[e])}const Ht=["left","right"],Vt=["right","left"],ze=["top","bottom"],We=["bottom","top"];function Be(t,e,n){switch(t){case"top":case"bottom":return n?e?Vt:Ht:e?Ht:Vt;case"left":case"right":return e?ze:We;default:return[]}}function He(t,e,n,o){const i=it(t);let r=Be(U(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(Et)))),r}function pt(t){return t.replace(/left|right|bottom|top/g,e=>Ne[e])}function Ve(t){return{top:0,right:0,bottom:0,left:0,...t}}function ne(t){return typeof t!="number"?Ve(t):{top:t,right:t,bottom:t,left:t}}function mt(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Xt(t,e,n){let{reference:o,floating:i}=t;const r=V(e),s=kt(e),c=Lt(s),l=U(e),d=r==="y",a=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[c]/2-i[c]/2;let u;switch(l){case"top":u={x:a,y:o.y-i.height};break;case"bottom":u={x:a,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:f};break;case"left":u={x:o.x-i.width,y:f};break;default:u={x:o.x,y:o.y}}switch(it(e)){case"start":u[s]-=p*(n&&d?-1:1);break;case"end":u[s]+=p*(n&&d?-1:1);break}return u}async function Xe(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:a="viewport",elementContext:f="floating",altBoundary:p=!1,padding:u=0}=K(e,t),h=ne(u),w=c[p?f==="floating"?"reference":"floating":f],y=mt(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(w)))==null||n?w:w.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:d,rootBoundary:a,strategy:l})),v=f==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,x=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),g=await(r.isElement==null?void 0:r.isElement(x))?await(r.getScale==null?void 0:r.getScale(x))||{x:1,y:1}:{x:1,y:1},A=mt(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:x,strategy:l}):v);return{top:(y.top-A.top+h.top)/g.y,bottom:(A.bottom-y.bottom+h.bottom)/g.y,left:(y.left-A.left+h.left)/g.x,right:(A.right-y.right+h.right)/g.x}}const Ye=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let d=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:a,y:f}=Xt(d,o,l),p=o,u={},h=0;for(let w=0;w<c.length;w++){var m;const{name:y,fn:v}=c[w],{x,y:g,data:A,reset:b}=await v({x:a,y:f,initialPlacement:o,placement:p,strategy:i,middlewareData:u,rects:d,platform:{...s,detectOverflow:(m=s.detectOverflow)!=null?m:Xe},elements:{reference:t,floating:e}});a=x??a,f=g??f,u={...u,[y]:{...u[y],...A}},b&&h<=50&&(h++,typeof b=="object"&&(b.placement&&(p=b.placement),b.rects&&(d=b.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):b.rects),{x:a,y:f}=Xt(d,p,l)),w=-1)}return{x:a,y:f,placement:p,strategy:i,middlewareData:u}},qe=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:d,padding:a=0}=K(t,e)||{};if(d==null)return{};const f=ne(a),p={x:n,y:o},u=kt(i),h=Lt(u),m=await s.getDimensions(d),w=u==="y",y=w?"top":"left",v=w?"bottom":"right",x=w?"clientHeight":"clientWidth",g=r.reference[h]+r.reference[u]-p[u]-r.floating[h],A=p[u]-r.reference[u],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let R=b?b[x]:0;(!R||!await(s.isElement==null?void 0:s.isElement(b)))&&(R=c.floating[x]||r.floating[h]);const M=g/2-A/2,E=R/2-m[h]/2-1,I=J(f[y],E),N=J(f[v],E),L=I,D=R-m[h]-N,S=R/2-m[h]/2+M,$=Pt(L,S,D),T=!l.arrow&&it(i)!=null&&S!==$&&r.reference[h]/2-(S<L?I:N)-m[h]/2<0,P=T?S<L?S-L:S-D:0;return{[u]:p[u]+P,data:{[u]:$,centerOffset:S-$-P,...T&&{alignmentOffset:P}},reset:T}}}),Ke=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:d}=e,{mainAxis:a=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...w}=K(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const y=U(i),v=V(c),x=U(c)===c,g=await(l.isRTL==null?void 0:l.isRTL(d.floating)),A=p||(x||!m?[pt(c)]:je(c)),b=h!=="none";!p&&b&&A.push(...He(c,m,h,g));const R=[c,...A],M=await l.detectOverflow(e,w),E=[];let I=((o=r.flip)==null?void 0:o.overflows)||[];if(a&&E.push(M[y]),f){const S=Fe(i,s,g);E.push(M[S[0]],M[S[1]])}if(I=[...I,{placement:i,overflows:E}],!E.every(S=>S<=0)){var N,L;const S=(((N=r.flip)==null?void 0:N.index)||0)+1,$=R[S];if($&&(!(f==="alignment"?v!==V($):!1)||I.every(O=>V(O.placement)===v?O.overflows[0]>0:!0)))return{data:{index:S,overflows:I},reset:{placement:$}};let T=(L=I.filter(P=>P.overflows[0]<=0).sort((P,O)=>P.overflows[1]-O.overflows[1])[0])==null?void 0:L.placement;if(!T)switch(u){case"bestFit":{var D;const P=(D=I.filter(O=>{if(b){const k=V(O.placement);return k===v||k==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(k=>k>0).reduce((k,W)=>k+W,0)]).sort((O,k)=>O[1]-k[1])[0])==null?void 0:D[0];P&&(T=P);break}case"initialPlacement":T=c;break}if(i!==T)return{reset:{placement:T}}}return{}}}};function Yt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function qt(t){return ke.some(e=>t[e]>=0)}const Ue=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:o}=e,{strategy:i="referenceHidden",...r}=K(t,e);switch(i){case"referenceHidden":{const s=await o.detectOverflow(e,{...r,elementContext:"reference"}),c=Yt(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:qt(c)}}}case"escaped":{const s=await o.detectOverflow(e,{...r,altBoundary:!0}),c=Yt(s,n.floating);return{data:{escapedOffsets:c,escaped:qt(c)}}}default:return{}}}}},oe=new Set(["left","top"]);async function Ze(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=U(n),c=it(n),l=V(n)==="y",d=oe.has(s)?-1:1,a=r&&l?-1:1,f=K(e,t);let{mainAxis:p,crossAxis:u,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof h=="number"&&(u=c==="end"?h*-1:h),l?{x:u*a,y:p*d}:{x:p*d,y:u*a}}const Ge=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:c}=e,l=await Ze(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:s}}}}},Je=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i,platform:r}=e,{mainAxis:s=!0,crossAxis:c=!1,limiter:l={fn:y=>{let{x:v,y:x}=y;return{x:v,y:x}}},...d}=K(t,e),a={x:n,y:o},f=await r.detectOverflow(e,d),p=V(U(i)),u=It(p);let h=a[u],m=a[p];if(s){const y=u==="y"?"top":"left",v=u==="y"?"bottom":"right",x=h+f[y],g=h-f[v];h=Pt(x,h,g)}if(c){const y=p==="y"?"top":"left",v=p==="y"?"bottom":"right",x=m+f[y],g=m-f[v];m=Pt(x,m,g)}const w=l.fn({...e,[u]:h,[p]:m});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[u]:s,[p]:c}}}}}},Qe=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:d=!0}=K(t,e),a={x:n,y:o},f=V(i),p=It(f);let u=a[p],h=a[f];const m=K(c,e),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const x=p==="y"?"height":"width",g=r.reference[p]-r.floating[x]+w.mainAxis,A=r.reference[p]+r.reference[x]-w.mainAxis;u<g?u=g:u>A&&(u=A)}if(d){var y,v;const x=p==="y"?"width":"height",g=oe.has(U(i)),A=r.reference[f]-r.floating[x]+(g&&((y=s.offset)==null?void 0:y[f])||0)+(g?0:w.crossAxis),b=r.reference[f]+r.reference[x]+(g?0:((v=s.offset)==null?void 0:v[f])||0)-(g?w.crossAxis:0);h<A?h=A:h>b&&(h=b)}return{[p]:u,[f]:h}}}},tn=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:r,platform:s,elements:c}=e,{apply:l=()=>{},...d}=K(t,e),a=await s.detectOverflow(e,d),f=U(i),p=it(i),u=V(i)==="y",{width:h,height:m}=r.floating;let w,y;f==="top"||f==="bottom"?(w=f,y=p===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(y=f,w=p==="end"?"top":"bottom");const v=m-a.top-a.bottom,x=h-a.left-a.right,g=J(m-a[w],v),A=J(h-a[y],x),b=!e.middlewareData.shift;let R=g,M=A;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(M=x),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(R=v),b&&!p){const I=j(a.left,0),N=j(a.right,0),L=j(a.top,0),D=j(a.bottom,0);u?M=h-2*(I!==0||N!==0?I+N:j(a.left,a.right)):R=m-2*(L!==0||D!==0?L+D:j(a.top,a.bottom))}await l({...e,availableWidth:M,availableHeight:R});const E=await s.getDimensions(c.floating);return h!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}};function xt(){return typeof window<"u"}function rt(t){return ie(t)?(t.nodeName||"").toLowerCase():"#document"}function z(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function q(t){var e;return(e=(ie(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ie(t){return xt()?t instanceof Node||t instanceof z(t).Node:!1}function B(t){return xt()?t instanceof Element||t instanceof z(t).Element:!1}function Y(t){return xt()?t instanceof HTMLElement||t instanceof z(t).HTMLElement:!1}function Kt(t){return!xt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof z(t).ShadowRoot}const en=new Set(["inline","contents"]);function ct(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=H(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!en.has(i)}const nn=new Set(["table","td","th"]);function on(t){return nn.has(rt(t))}const rn=[":popover-open",":modal"];function wt(t){return rn.some(e=>{try{return t.matches(e)}catch{return!1}})}const sn=["transform","translate","scale","rotate","perspective"],cn=["transform","translate","scale","rotate","perspective","filter"],ln=["paint","layout","strict","content"];function Nt(t){const e=_t(),n=B(t)?H(t):t;return sn.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||cn.some(o=>(n.willChange||"").includes(o))||ln.some(o=>(n.contain||"").includes(o))}function an(t){let e=Q(t);for(;Y(e)&&!ot(e);){if(Nt(e))return e;if(wt(e))return null;e=Q(e)}return null}function _t(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const fn=new Set(["html","body","#document"]);function ot(t){return fn.has(rt(t))}function H(t){return z(t).getComputedStyle(t)}function yt(t){return B(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Q(t){if(rt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Kt(t)&&t.host||q(t);return Kt(e)?e.host:e}function re(t){const e=Q(t);return ot(e)?t.ownerDocument?t.ownerDocument.body:t.body:Y(e)&&ct(e)?e:re(e)}function st(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=re(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=z(i);if(r){const c=Mt(s);
vendor: 4,130 bytes, line 1
1return e.concat(s,s.visualViewport||[],ct(i)?i:[],c&&n?st(c):[])}return e.concat(i,st(i,[],n))}function Mt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function se(t){const e=H(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=Y(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,c=ht(n)!==r||ht(o)!==s;return c&&(n=r,o=s),{width:n,height:o,$:c}}function $t(t){return B(t)?t:t.contextElement}function nt(t){const e=$t(t);if(!Y(e))return X(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=se(e);let s=(r?ht(n.width):n.width)/o,c=(r?ht(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const un=X(0);function ce(t){const e=z(t);return!_t()||!e.visualViewport?un:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function dn(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==z(t)?!1:e}function et(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=$t(t);let s=X(1);e&&(o?B(o)&&(s=nt(o)):s=nt(t));const c=dn(r,n,o)?ce(r):X(0);let l=(i.left+c.x)/s.x,d=(i.top+c.y)/s.y,a=i.width/s.x,f=i.height/s.y;if(r){const p=z(r),u=o&&B(o)?z(o):o;let h=p,m=Mt(h);for(;m&&o&&u!==h;){const w=nt(m),y=m.getBoundingClientRect(),v=H(m),x=y.left+(m.clientLeft+parseFloat(v.paddingLeft))*w.x,g=y.top+(m.clientTop+parseFloat(v.paddingTop))*w.y;l*=w.x,d*=w.y,a*=w.x,f*=w.y,l+=x,d+=g,h=z(m),m=Mt(h)}}return mt({width:a,height:f,x:l,y:d})}function vt(t,e){const n=yt(t).scrollLeft;return e?e.left+n:et(q(t)).left+n}function le(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-vt(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function hn(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=q(o),c=e?wt(e.floating):!1;if(o===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},d=X(1);const a=X(0),f=Y(o);if((f||!f&&!r)&&((rt(o)!=="body"||ct(s))&&(l=yt(o)),Y(o))){const u=et(o);d=nt(o),a.x=u.x+o.clientLeft,a.y=u.y+o.clientTop}const p=s&&!f&&!r?le(s,l):X(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+a.x+p.x,y:n.y*d.y-l.scrollTop*d.y+a.y+p.y}}function pn(t){return Array.from(t.getClientRects())}function mn(t){const e=q(t),n=yt(t),o=t.ownerDocument.body,i=j(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=j(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+vt(t);const c=-n.scrollTop;return H(o).direction==="rtl"&&(s+=j(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:c}}const Ut=25;function gn(t,e){const n=z(t),o=q(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,c=0,l=0;if(i){r=i.width,s=i.height;const a=_t();(!a||a&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}const d=vt(o);if(d<=0){const a=o.ownerDocument,f=a.body,p=getComputedStyle(f),u=a.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,h=Math.abs(o.clientWidth-f.clientWidth-u);h<=Ut&&(r-=h)}else d<=Ut&&(r+=d);return{width:r,height:s,x:c,y:l}}const xn=new Set(["absolute","fixed"]);function wn(t,e){const n=et(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=Y(t)?nt(t):X(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=i*r.x,d=o*r.y;return{width:s,height:c,x:l,y:d}}function Zt(t,e,n){let o;if(e==="viewport")o=gn(t,n);else if(e==="document")o=mn(q(t));else if(B(e))o=wn(e,n);else{const i=ce(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return mt(o)}function ae(t,e){const n=Q(t);return n===e||!B(n)||ot(n)?!1:H(n).position==="fixed"||ae(n,e)}function yn(t,e){const n=e.get(t);if(n)return n;let o=st(t,[],!1).filter(c=>B(c)&&rt(c)!=="body"),i=null;const r=H(t).position==="fixed";let s=r?Q(t):t;for(;B(s)&&!ot(s);){const c=H(s),l=Nt(s);!l&&c.position==="fixed"&&(i=null),(r?!l&&!i:!l&&c.position==="static"&&!!i&&xn.has(i.position)||ct(s)&&!l&&ae(t,s))?o=o.filter(a=>a!==s):i=c,s=Q(s)}return e.set(t,o),o}function vn(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?wt(e)?[]:yn(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((d,a)=>{const f=Zt(e,a,i);return d.top=j(f.top,d.top),d.right=J(f.right,d.right),d.bottom=J(f.bottom,d.bottom),d.left
vendor: 4,719 bytes, line 1
1=j(f.left,d.left),d},Zt(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Cn(t){const{width:e,height:n}=se(t);return{width:e,height:n}}function An(t,e,n){const o=Y(e),i=q(e),r=n==="fixed",s=et(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const l=X(0);function d(){l.x=vt(i)}if(o||!o&&!r)if((rt(e)!=="body"||ct(i))&&(c=yt(e)),o){const u=et(e,!0,r,e);l.x=u.x+e.clientLeft,l.y=u.y+e.clientTop}else i&&d();r&&!o&&i&&d();const a=i&&!o&&!r?le(i,c):X(0),f=s.left+c.scrollLeft-l.x-a.x,p=s.top+c.scrollTop-l.y-a.y;return{x:f,y:p,width:s.width,height:s.height}}function Rt(t){return H(t).position==="static"}function Gt(t,e){if(!Y(t)||H(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return q(t)===n&&(n=n.ownerDocument.body),n}function fe(t,e){const n=z(t);if(wt(t))return n;if(!Y(t)){let i=Q(t);for(;i&&!ot(i);){if(B(i)&&!Rt(i))return i;i=Q(i)}return n}let o=Gt(t,e);for(;o&&on(o)&&Rt(o);)o=Gt(o,e);return o&&ot(o)&&Rt(o)&&!Nt(o)?n:o||an(t)||n}const bn=async function(t){const e=this.getOffsetParent||fe,n=this.getDimensions,o=await n(t.floating);return{reference:An(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Rn(t){return H(t).direction==="rtl"}const On={convertOffsetParentRelativeRectToViewportRelativeRect:hn,getDocumentElement:q,getClippingRect:vn,getOffsetParent:fe,getElementRects:bn,getClientRects:pn,getDimensions:Cn,getScale:nt,isElement:B,isRTL:Rn};function ue(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 i=q(t);function r(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();const d=t.getBoundingClientRect(),{left:a,top:f,width:p,height:u}=d;if(c||e(),!p||!u)return;const h=at(f),m=at(i.clientWidth-(a+p)),w=at(i.clientHeight-(f+u)),y=at(a),x={rootMargin:-h+"px "+-m+"px "+-w+"px "+-y+"px",threshold:j(0,J(1,l))||1};let g=!0;function A(b){const R=b[0].intersectionRatio;if(R!==l){if(!g)return s();R?s(!1,R):o=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!ue(d,t.getBoundingClientRect())&&s(),g=!1}try{n=new IntersectionObserver(A,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,x)}n.observe(t)}return s(!0),r}function Pn(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,d=$t(t),a=i||r?[...d?st(d):[],...st(e)]:[];a.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),r&&y.addEventListener("resize",n)});const f=d&&c?Sn(d,n):null;let p=-1,u=null;s&&(u=new ResizeObserver(y=>{let[v]=y;v&&v.target===d&&u&&(u.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=u)==null||x.observe(e)})),n()}),d&&!l&&u.observe(d),u.observe(e));let h,m=l?et(t):null;l&&w();function w(){const y=et(t);m&&!ue(m,y)&&n(),m=y,h=requestAnimationFrame(w)}return n(),()=>{var y;a.forEach(v=>{i&&v.removeEventListener("scroll",n),r&&v.removeEventListener("resize",n)}),f?.(),(y=u)==null||y.disconnect(),u=null,l&&cancelAnimationFrame(h)}}const En=Ge,Mn=Je,Dn=Ke,Tn=tn,In=Ue,Jt=qe,Ln=Qe,kn=(t,e,n)=>{const o=new Map,i={platform:On,...n},r={...i.platform,_c:o};return Ye(t,e,{...i,platform:r})};var Nn=typeof document<"u",_n=function(){},ft=Nn?C.useLayoutEffect:_n;function gt(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,i;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(!gt(t[o],e[o]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&t.$$typeof)&&!gt(t[r],e[r]))return!1}return!0}return t!==t&&e!==e}function de(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Qt(t,e){const n=de(t);return Math.round(e*n)/n}function Ot(t){const e=C.useRef(t);return ft(()=>{e.current=t}),e}function $n(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:c=!0,whileElementsMounted:l,open:d}=t,[a,f]=C.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[p,u]=C.useState(o);gt(p,o)||u(o);const[h,m]=C.useState(null),[w,y]=C.useState(null),v=C.useCallback(O=>{O!==b.current&&(b.current=O,m(O))},[]),x=C.useCallback(O=>{O!==R.current&&(R.current=O,y(O))},[]),g=r||h,A=s||w,b=C.useRef(null),R=C.useRef(null),M=C.useRef(a),E=l!=null,I=Ot(l),N=Ot(i),L=Ot(d),D=C.useCallback(()=>
1{if(!b.current||!R.current)return;const O={placement:e,strategy:n,middleware:p};N.current&&(O.platform=N.current),kn(b.current,R.current,O).then(k=>{const W={...k,isPositioned:L.current!==!1};S.current&&!gt(M.current,W)&&(M.current=W,Te.flushSync(()=>{f(W)}))})},[p,e,n,N,L]);ft(()=>{d===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,f(O=>({...O,isPositioned:!1})))},[d]);const S=C.useRef(!1);ft(()=>(S.current=!0,()=>{S.current=!1}),[]),ft(()=>{if(g&&(b.current=g),A&&(R.current=A),g&&A){if(I.current)return I.current(g,A,D);D()}},[g,A,D,I,E]);const $=C.useMemo(()=>({reference:b,floating:R,setReference:v,setFloating:x}),[v,x]),T=C.useMemo(()=>({reference:g,floating:A}),[g,A]),P=C.useMemo(()=>{const O={position:n,left:0,top:0};if(!T.floating)return O;const k=Qt(T.floating,a.x),W=Qt(T.floating,a.y);return c?{...O,transform:"translate("+k+"px, "+W+"px)",...de(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:W}},[n,c,T.floating,a.x,a.y]);return C.useMemo(()=>({...a,update:D,refs:$,elements:T,floatingStyles:P}),[a,D,$,T,P])}const Fn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:i}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?Jt({element:o.current,padding:i}).fn(n):{}:o?Jt({element:o,padding:i}).fn(n):{}}}},jn=(t,e)=>({...En(t),options:[t,e]}),zn=(t,e)=>({...Mn(t),options:[t,e]}),Wn=(t,e)=>({...Ln(t),options:[t,e]}),Bn=(t,e)=>({...Dn(t),options:[t,e]}),Hn=(t,e)=>({...Tn(t),options:[t,e]}),Vn=(t,e)=>({...In(t),options:[t,e]}),Xn=(t,e)=>({...Fn(t),options:[t,e]});var Yn=Object.defineProperty,G=(t,e)=>Yn(t,"name",{value:e,configurable:!0}),he="Popper",[pe,ho]=Tt(he),[qn,me]=pe(he),Kn=G(t=>{const{__scopePopper:e,children:n}=t,[o,i]=C.useState(null),[r,s]=C.useState(void 0);return F.jsx(qn,{scope:e,anchor:o,onAnchorChange:i,placementState:r,setPlacementState:s,children:n})},"Popper"),Un="PopperAnchor",Zn=C.forwardRef(G(function(e,n){const{__scopePopper:o,virtualRef:i,...r}=e,s=me(Un,o),c=C.useRef(null),l=s.onAnchorChange,d=C.useCallback(m=>{c.current=m,m&&l(m)},[l]),a=tt(n,d),f=C.useRef(null);C.useEffect(()=>{if(!i)return;const m=f.current;f.current=i.current,m!==f.current&&l(f.current)});const p=s.placementState&&Ct(s.placementState),u=p?.[0],h=p?.[1];return i?null:F.jsx(ee.div,{"data-radix-popper-side":u,"data-radix-popper-align":h,...r,ref:a})},"PopperAnchor")),ge="PopperContent",[Gn,po]=pe(ge),Jn=C.forwardRef(G(function(e,n){const{__scopePopper:o,side:i="bottom",sideOffset:r=0,align:s="center",alignOffset:c=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:u=!1,updatePositionStrategy:h="optimized",onPlaced:m,...w}=e,y=me(ge,o),[v,x]=C.useState(null),g=tt(n,x),[A,b]=C.useState(null),R=Ie(A),M=R?.width??0,E=R?.height??0,I=i+(s!=="center"?"-"+s:""),N=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},L=Array.isArray(a)?a:[a],D=L.length>0,S={padding:N,boundary:L.filter(xe),altBoundary:D},{refs:$,floatingStyles:T,placement:P,isPositioned:O,middlewareData:k}=$n({strategy:"fixed",placement:I,whileElementsMounted:G((...At)=>Pn(...At,{animationFrame:h==="always"}),"whileElementsMounted"),elements:{reference:y.anchor},middleware:[jn({mainAxis:r+E,alignmentAxis:c}),d&&zn({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Wn():void 0,...S}),d&&Bn({...S}),Hn({...S,apply:G(({elements:At,rects:Bt,availableWidth:Pe,availableHeight:Ee})=>{const{width:Me,height:De}=Bt.reference,lt=At.floating.style;lt.setProperty("--radix-popper-available-width",`${Pe}px`),lt.setProperty("--radix-popper-available-height",`${Ee}px`),lt.setProperty("--radix-popper-anchor-width",`${Me}px`),lt.setProperty("--radix-popper-anchor-height",`${De}px`)},"apply")}),A&&Xn({element:A,padding:l}),Qn({arrowWidth:M,arrowHeight:E}),u&&Vn({strategy:"referenceHidden",...S,boundary:D?S.boundary:void 0})]}),W=y.setPlacementState;bt(()=>(W(P),()=>{W(void 0)}),[P,W]);const[jt,zt]=Ct(P),Wt=Le(m);bt(()=>{O&&Wt?.()},[O,Wt]);const Ae=k.arrow?.x,be=k.arrow?.y,Re=k.arrow?.centerOffset!==0,[Oe,Se]=C.useState();return bt(()=>{v&&Se(window.getComputedStyle(v).zIndex)},[v]),F.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:O?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Oe,"--radix-popper-transform-origin":[k.transformOrigin?.x,k.transformOrigin?.y].join(" "),...k.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:F.jsx(Gn,{scope:o,placedSide:jt,placedAlign:zt,onArrowChange:b,arrowX:Ae,arrowY:be,shouldHideArrow:Re,children:F.jsx(ee.div,{"data-side":jt,"data-align":zt,...w,ref:g,style:{...w.style,animation:O?w.style?.animation:"none"}})})})},"PopperContent"));function xe(t){return t!==null}
1G(xe,"isNotNull");var Qn=G(t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:i}=e,s=i.arrow?.centerOffset!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[d,a]=Ct(n),f={start:"0%",center:"50%",end:"100%"}[a],p=(i.arrow?.x??0)+c/2,u=(i.arrow?.y??0)+l/2;let h="",m="";return d==="bottom"?(h=s?f:`${p}px`,m=`${-l}px`):d==="top"?(h=s?f:`${p}px`,m=`${o.floating.height+l}px`):d==="right"?(h=`${-l}px`,m=s?f:`${u}px`):d==="left"&&(h=`${o.floating.width+l}px`,m=s?f:`${u}px`),{data:{x:h,y:m}}}}),"transformOrigin");function Ct(t){const[e,n="center"]=t.split("-");return[e,n]}G(Ct,"getSideAndAlignFromPlacement");var mo=Kn,go=Zn,xo=Jn,to=Object.defineProperty,_=(t,e)=>to(t,"name",{value:e,configurable:!0});function eo(t){const e=t+"CollectionProvider",[n,o]=Tt(e),[i,r]=n(e,{collectionRef:{current:null},itemMap:new Map}),s=_(m=>{const{scope:w,children:y}=m,v=C.useRef(null),x=C.useRef(new Map).current;return F.jsx(i,{scope:w,itemMap:x,collectionRef:v,children:y})},"CollectionProvider");s.displayName=e;const c=t+"CollectionSlot",l=dt(c),d=C.forwardRef((m,w)=>{const{scope:y,children:v}=m,x=r(c,y),g=tt(w,x.collectionRef);return F.jsx(l,{ref:g,children:v})});d.displayName=c;const a=t+"CollectionItemSlot",f="data-radix-collection-item",p=dt(a),u=C.forwardRef((m,w)=>{const{scope:y,children:v,...x}=m,g=C.useRef(null),A=tt(w,g),b=r(a,y);return C.useEffect(()=>(b.itemMap.set(g,{ref:g,...x}),()=>void b.itemMap.delete(g))),F.jsx(p,{[f]:"",ref:A,children:v})});u.displayName=a;function h(m){const w=r(t+"CollectionConsumer",m);return C.useCallback(()=>{const v=w.collectionRef.current;if(!v)return[];const x=Array.from(v.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((b,R)=>x.indexOf(b.ref.current)-x.indexOf(R.ref.current))},[w.collectionRef,w.itemMap])}return _(h,"useCollection"),[{Provider:s,Slot:d,ItemSlot:u},h,o]}_(eo,"createCollection");var te=new WeakMap,St=class Z extends Map{static{_(this,"OrderedDict")}#t;constructor(e){super(e),this.#t=[...super.keys()],te.set(this,!0)}set(e,n){return te.get(this)&&(this.has(e)?this.#t[this.#t.indexOf(e)]=e:this.#t.push(e)),super.set(e,n),this}insert(e,n,o){const i=this.has(n),r=this.#t.length,s=Ft(e);let c=s>=0?s:r+s;const l=c<0||c>=r?-1:c;if(l===this.size||i&&l===this.size-1||l===-1)return this.set(n,o),this;const d=this.size+(i?0:1);s<0&&c++;const a=[...this.#t];let f,p=!1;for(let u=c;u<d;u++)if(c===u){let h=a[u];a[u]===n&&(h=a[u+1]),i&&this.delete(n),f=this.get(h),this.set(n,o)}else{!p&&a[u-1]===n&&(p=!0);const h=a[p?u:u-1],m=f;f=this.get(h),this.delete(h),this.set(h,m)}return this}with(e,n,o){const i=new Z(this);return i.insert(e,n,o),i}before(e){const n=this.#t.indexOf(e)-1;if(!(n<0))return this.entryAt(n)}setBefore(e,n,o){const i=this.#t.indexOf(e);return i===-1?this:this.insert(i,n,o)}after(e){let n=this.#t.indexOf(e);if(n=n===-1||n===this.size-1?-1:n+1,n!==-1)return this.entryAt(n)}setAfter(e,n,o){const i=this.#t.indexOf(e);return i===-1?this:this.insert(i+1,n,o)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#t=[],super.clear()}delete(e){const n=super.delete(e);return n&&this.#t.splice(this.#t.indexOf(e),1),n}deleteAt(e){const n=this.keyAt(e);return n!==void 0?this.delete(n):!1}at(e){const n=ut(this.#t,e);if(n!==void 0)return this.get(n)}entryAt(e){const n=ut(this.#t,e);if(n!==void 0)return[n,this.get(n)]}indexOf(e){return this.#t.indexOf(e)}keyAt(e){return ut(this.#t,e)}from(e,n){const o=this.indexOf(e);if(o===-1)return;let i=o+n;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.at(i)}keyFrom(e,n){const o=this.indexOf(e);if(o===-1)return;let i=o+n;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.keyAt(i)}find(e,n){let o=0;for(const i of this){if(Reflect.apply(e,n,[i,o,this]))return i;o++}}findIndex(e,n){let o=0;for(const i of this){if(Reflect.apply(e,n,[i,o,this]))return o;o++}return-1}filter(e,n){const o=[];let i=0;for(const r of this)Reflect.apply(e,n,[r,i,this])&&o.push(r),i++;return new Z(o)}map(e,n){const o=[];let i=0;for(const r of this)o.push([r[0],Reflect.apply(e,n,[r,i,this])]),i++;return new Z(o)}reduce(...e){const[n,o]=e;let i=0,r=o??this.at(0);for(const s of this)i===0&&e.length===1?r=s:r=Reflect.apply(n,this,[r,s,i,this]),i++;return r}reduceRight(...e){const[n,o]=e;let i=o??this.at(-1);for(let r=this.size-1;r>=0;r--){const s=this.at(r);r===this.size-1&&e.length===1?i=s:i=Reflect.apply(n,this,[i,s,r,this])}return i}toSorted(e){const n=[...this.entries()].sort(e);return new Z(n)}toReversed(){const e=new Z;for(let n=this.size-1;n>=0;n--){const o=this.keyAt(n),i=this.get(o);e.set(o,i)}return e}toSpliced(...e){const n=[...this.entries()];return n.splice(...e),new Z(n)}slice(e,n){const o=new Z;let i=this.size-1;if(e===void 0)return o;e<0&&(e=e+this.size),n!==void 0&&n>0&&(i=n-1);for(let r=e;r<=i;r++){const s=this.keyAt(r),c=this.get(s);o.set(s,c)}return o}every(e,n){let o=0;for(const i of this){if(!Reflect.apply(e,n,[i,o,this]))return!1;o++}return!0}some(e,n){let o=0;for(const i of this){if(Reflect.apply(e,n,[i,o,this]))return!0;o++}return!1}};function ut(t,e){if("at"in Array.prototype)return Array.prototype.at.call(t,e);const n=we(t,e);return n===-1?void 0:t[n]}_(ut,"at");function we(t,e){const n=t.length,o=Ft(e),i=o>=0?o:n+o;return i<0||i>=n?-1:i}_(we,"toSafeIndex");function Ft(t){return t!==t||t===0?0:Math.trunc(t)}_(Ft,"toSafeInteger");function no(t){const e=t+"CollectionProvider",[n,o]=Tt(e),[i,r]=n(e,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new St,setItemMap:_(()=>{},"setItemMap")}),s=_(({state:x,...g})=>x?F.jsx(l,{...g,state:x}):F.jsx(c,{...g}),"CollectionProvider");s.displayName=e;const c=_(x=>{const g=w();return F.jsx(l,{...x,state:g})},"CollectionInit");c.displayName=e+"Init";const l=_(x=>{const{scope:g,children:A,state:b}=x,R=C.useRef(null),[M,E]=C.useState(null),I=tt(R,E),[N,L]=b;return C.useEffect(()=>{if(!M)return;const D=Ce(()=>{});return D.observe(M,{childList:!0,subtree:!0}),()=>{D.disconnect()}},[M]),F.jsx(i,{scope:g,itemMap:N,setItemMap:L,collectionRef:I,collectionRefObject:R,collectionElement:M,children:A})},"CollectionProviderImpl");l.displayName=e+"Impl";const d=t+"CollectionSlot",a=dt(d),f=C.forwardRef((x,g)=>{const{scope:A,children:b}=x,R=r(d,A),M=tt(g,R.collectionRef);return F.jsx(a,{ref:M,children:b})});f.displayName=d;const p=t+"CollectionItemSlot",u="data-radix-collection-item",h=dt(p),m=C.forwardRef((x,g)=>{const{scope:A,children:b,...R}=x,M=C.useRef(null),[E,I]=C.useState(null),N=tt(g,M,I),L=r(p,A),{setItemMap:D}=L,S=C.useRef(R);ye(S.current,R)||(S.current=R);const $=S.current;return C.useEffect(()=>{const T=$;return D(P=>E?P.has(E)?P.set(E,{...T,element:E}).toSorted(Dt):(P.set(E,{...T,element:E}),P.toSorted(Dt)):P),()=>{D(P=>!E||!P.has(E)?P:(P.delete(E),new St(P)))}},[E,$,D]),F.jsx(h,{[u]:"",ref:N,children:b})});m.displayName=p;function w(){return C.useState(new St)}_(w,"useInitCollection");function y(x){const{itemMap:g}=r(t+"CollectionConsumer",x);return g}return _(y,"useCollection"),[{Provider:s,Slot:f,ItemSlot:m},{createCollectionScope:o,useCollection:y,useInitCollection:w}]}_(no,"createCollection");function ye(t,e){if(t===e)return!0;
1if(typeof t!="object"||typeof e!="object"||t==null||e==null)return!1;const n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(const i of n)if(!Object.prototype.hasOwnProperty.call(e,i)||t[i]!==e[i])return!1;return!0}_(ye,"shallowEqual");function ve(t,e){return!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}_(ve,"isElementPreceding");function Dt(t,e){return!t[1].element||!e[1].element?0:ve(t[1].element,e[1].element)?-1:1}_(Dt,"sortByDocumentPosition");function Ce(t){return new MutationObserver(n=>{for(const o of n)if(o.type==="childList"){t();return}})}_(Ce,"getChildListObserver");var oo=Object.defineProperty,io=(t,e)=>oo(t,"name",{value:e,configurable:!0}),ro=C.createContext(void 0);function so(t){const e=C.useContext(ro);return t||e||"ltr"}io(so,"useDirection");export{go as A,xo as C,mo as R,eo as a,ho as c,so 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.