vendor: 4,314 bytes, lines 1-9
1import{r as c,a as Gt,b as mr,R as vr}from"./vendor-nUoiNgbM.js";var Xt={exports:{}},ke={};/** 2 * @license React 3 * react-jsx-runtime.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var gr=c,yr=Symbol.for("react.element"),wr=Symbol.for("react.fragment"),xr=Object.prototype.hasOwnProperty,br=gr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Er={key:!0,ref:!0,__self:!0,__source:!0};function Kt(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)xr.call(t,r)&&!Er.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:yr,type:e,key:i,ref:s,props:o,_owner:br.current}}ke.Fragment=wr;ke.jsx=Kt;ke.jsxs=Kt;Xt.exports=ke;var C=Xt.exports;function j(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Rt(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function qt(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Rt(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Rt(e[o],null)}}}}function U(...e){return c.useCallback(qt(...e),e)}function Cr(e,t){const n=c.createContext(t),r=i=>{const{children:s,...a}=i,u=c.useMemo(()=>a,Object.values(a));return C.jsx(n.Provider,{value:u,children:s})};r.displayName=e+"Provider";function o(i){const s=c.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function st(e,t=[]){let n=[];function r(i,s){const a=c.createContext(s),u=n.length;n=[...n,s];const l=d=>{const{scope:h,children:m,...v}=d,p=h?.[e]?.[u]||a,g=c.useMemo(()=>v,Object.values(v));return C.jsx(p.Provider,{value:g,children:m})};l.displayName=i+"Provider";function f(d,h){const m=h?.[e]?.[u]||a,v=c.useContext(m);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,f]}const o=()=>{const i=n.map(s=>c.createContext(s));return function(a){const u=a?.[e]||i;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return o.scopeName=e,[r,Rr(o,...t)]}function Rr(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:u,scopeName:l})=>{const d=u(i)[`__scope${l}`];return{...a,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function at(e){const t=Sr(e),n=c.forwardRef((r,o)=>{const{children:i,...s}=r,a=c.Children.toArray(i),u=a.find(Ar);if(u){const l=u.props.children,f=a.map(d=>d===u?c.Children.count(l)>1?c.Children.only(null):c.isValidElement(l)?l.props.children:null:d);return C.jsx(t,{...s,ref:o,children:c.isValidElement(l)?c.cloneElement(l,void 0,f):null})}return C.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Os=at("Slot");function Sr(e){const t=c.forwardRef((n,r)=>{const{children:o,...i}=n;if(c.isValidElement(o)){const s=Tr(o),a=Or(i,o.props);return o.type!==c.Fragment&&(a.ref=r?qt(r,s):s),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Zt=Symbol("radix.slottable");function Pr(e){const t=({children:n})=>C.jsx(C.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Zt,t}function Ar(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Zt}function Or(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Tr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Dr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],F=Dr.reduce((e,t)=>
vendor: 6,621 bytes, line 9
9{const n=at(`Primitive.${t}`),r=c.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(u,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Nr(e,t){e&&Gt.flushSync(()=>e.dispatchEvent(t))}function ee(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>t.current?.(...n),[])}function Mr(e,t=globalThis?.document){const n=ee(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Lr="DismissableLayer",et="dismissableLayer.update",_r="dismissableLayer.pointerDownOutside",Ir="dismissableLayer.focusOutside",St,Qt=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Fe=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...u}=e,l=c.useContext(Qt),[f,d]=c.useState(null),h=f?.ownerDocument??globalThis?.document,[,m]=c.useState({}),v=U(t,R=>d(R)),p=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(g),E=f?p.indexOf(f):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,x=E>=y,b=Fr(R=>{const A=R.target,D=[...l.branches].some(O=>O.contains(A));!x||D||(o?.(R),s?.(R),R.defaultPrevented||a?.())},h),S=jr(R=>{const A=R.target;[...l.branches].some(O=>O.contains(A))||(i?.(R),s?.(R),R.defaultPrevented||a?.())},h);return Mr(R=>{E===l.layers.size-1&&(r?.(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},h),c.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(St=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),Pt(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=St)}},[f,h,n,l]),c.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),Pt())},[f,l]),c.useEffect(()=>{const R=()=>m({});return document.addEventListener(et,R),()=>document.removeEventListener(et,R)},[]),C.jsx(F.div,{...u,ref:v,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:j(e.onFocusCapture,S.onFocusCapture),onBlurCapture:j(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,b.onPointerDownCapture)})});Fe.displayName=Lr;var kr="DismissableLayerBranch",Jt=c.forwardRef((e,t)=>{const n=c.useContext(Qt),r=c.useRef(null),o=U(t,r);return c.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),C.jsx(F.div,{...e,ref:o})});Jt.displayName=kr;function Fr(e,t=globalThis?.document){const n=ee(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let u=function(){en(_r,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function jr(e,t=globalThis?.document){const n=ee(e),r=c.useRef(!1);return c.useEffect(()=>{const o=i=>{i.target&&!r.current&&en(Ir,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Pt(){const e=new CustomEvent(et);document.dispatchEvent(e)}function en(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Nr(o,i):o.dispatchEvent(i)}var Ts=Fe,Ds=Jt,oe=globalThis?.document?c.useLayoutEffect:()=>{},Wr="Portal",tn=c.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=c.useState(!1);oe(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?mr.createPortal(C.jsx(F.div,{...r,ref:t}),s):null});tn.displayName=Wr;function $r(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var we=e=>{const{present:t,children:n}=e,r=Br(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),i=U(r.ref,Hr(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:i}):null};we.displayName="Presence";function Br(e){const[t,n]=c.useState(),r=c.useRef({}),o=c.useRef(e),i=c.useRef("none"),s=e?"mounted":"unmounted",[a,u]=$r(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const l=Ee(r.current);i.current=a==="mounted"?l:"none"},[a]),oe(()=>{const l=r.current,f=o.current;if(f!==e){const h=i.current,m=Ee(l);e?u("MOUNT"):m==="none"||l?.display==="none"?u("UNMOUNT"):u(f&&h!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),oe(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,d=m=>{const p=Ee(r.current).includes(m.animationName);if(m.target===t&&p&&(u("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},h=m=>{m.target===t&&(i.current=Ee(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:c.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Ee(e){return e?.animationName||"none"}function Hr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Vr({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Ur({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=ee(n),u=c.useCallback(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else o(l)},[i,e,o,a]);return[s,u]}function Ur({defaultProp:e,onChange:t}){const n=c.useState(e),[r]=n,o=c.useRef(r),i=ee(t);return c.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var zr="VisuallyHidden",nn=c.forwardRef((e,t)=>
vendor: 11,442 bytes, line 9
9C.jsx(F.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));nn.displayName=zr;var Yr=nn,Gr=vr[" useId ".trim().toString()]||(()=>{}),Xr=0;function Ue(e){const[t,n]=c.useState(Gr());return oe(()=>{n(r=>r??String(Xr++))},[e]),t?`radix-${t}`:""}const Kr=["top","right","bottom","left"],te=Math.min,W=Math.max,Ne=Math.round,Ce=Math.floor,X=e=>({x:e,y:e}),qr={left:"right",right:"left",bottom:"top",top:"bottom"},Zr={start:"end",end:"start"};function tt(e,t,n){return W(e,te(t,n))}function Z(e,t){return typeof e=="function"?e(t):e}function Q(e){return e.split("-")[0]}function he(e){return e.split("-")[1]}function ct(e){return e==="x"?"y":"x"}function lt(e){return e==="y"?"height":"width"}function ne(e){return["top","bottom"].includes(Q(e))?"y":"x"}function ut(e){return ct(ne(e))}function Qr(e,t,n){n===void 0&&(n=!1);const r=he(e),o=ut(e),i=lt(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Me(s)),[s,Me(s)]}function Jr(e){const t=Me(e);return[nt(e),t,nt(t)]}function nt(e){return e.replace(/start|end/g,t=>Zr[t])}function eo(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function to(e,t,n,r){const o=he(e);let i=eo(Q(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(nt)))),i}function Me(e){return e.replace(/left|right|bottom|top/g,t=>qr[t])}function no(e){return{top:0,right:0,bottom:0,left:0,...e}}function rn(e){return typeof e!="number"?no(e):{top:e,right:e,bottom:e,left:e}}function Le(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function At(e,t,n){let{reference:r,floating:o}=e;const i=ne(t),s=ut(t),a=lt(s),u=Q(t),l=i==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let m;switch(u){case"top":m={x:f,y:r.y-o.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}switch(he(t)){case"start":m[s]-=h*(n&&l?-1:1);break;case"end":m[s]+=h*(n&&l?-1:1);break}return m}const ro=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=At(l,r,u),h=r,m={},v=0;for(let p=0;p<a.length;p++){const{name:g,fn:y}=a[p],{x:E,y:w,data:x,reset:b}=await y({x:f,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});f=E??f,d=w??d,m={...m,[g]:{...m[g],...x}},b&&v<=50&&(v++,typeof b=="object"&&(b.placement&&(h=b.placement),b.rects&&(l=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:f,y:d}=At(l,h,u)),p=-1)}return{x:f,y:d,placement:h,strategy:o,middlewareData:m}};async function ge(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=Z(t,e),v=rn(m),g=a[h?d==="floating"?"reference":"floating":d],y=Le(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:f,strategy:u})),E=d==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},b=Le(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:E,offsetParent:w,strategy:u}):E);return{top:(y.top-b.top+v.top)/x.y,bottom:(b.bottom-y.bottom+v.bottom)/x.y,left:(y.left-b.left+v.left)/x.x,right:(b.right-y.right+v.right)/x.x}}const oo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:u}=t,{element:l,padding:f=0}=Z(e,t)||{};if(l==null)return{};const d=rn(f),h={x:n,y:r},m=ut(o),v=lt(m),p=await s.getDimensions(l),g=m==="y",y=g?"top":"left",E=g?"bottom":"right",w=g?"clientHeight":"clientWidth",x=i.reference[v]+i.reference[m]-h[m]-i.floating[v],b=h[m]-i.reference[m],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let R=S?S[w]:0;(!R||!await(s.isElement==null?void 0:s.isElement(S)))&&(R=a.floating[w]||i.floating[v]);const A=x/2-b/2,D=R/2-p[v]/2-1,O=te(d[y],D),I=te(d[E],D),k=O,N=R-p[v]-I,T=R/2-p[v]/2+A,B=tt(k,T,N),M=!u.arrow&&he(o)!=null&&T!==B&&i.reference[v]/2-(T<k?O:I)-p[v]/2<0,L=M?T<k?T-k:T-N:0;return{[m]:h[m]+L,data:{[m]:B,centerOffset:T-B-L,...M&&{alignmentOffset:L}},reset:M}}}),io=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:u,elements:l}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,...g}=Z(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=Q(o),E=ne(a),w=Q(a)===a,x=await(u.isRTL==null?void 0:u.isRTL(l.floating)),b=h||(w||!p?[Me(a)]:Jr(a)),S=v!=="none";!h&&S&&b.push(...to(a,p,v,x));const R=[a,...b],A=await ge(t,g),D=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&D.push(A[y]),d){const T=Qr(o,s,x);D.push(A[T[0]],A[T[1]])}if(O=[...O,{placement:o,overflows:D}],!D.every(T=>T<=0)){var I,k;const T=(((I=i.flip)==null?void 0:I.index)||0)+1,B=R[T];if(B)return{data:{index:T,overflows:O},reset:{placement:B}};let M=(k=O.filter(L=>L.overflows[0]<=0).sort((L,P)=>L.overflows[1]-P.overflows[1])[0])==null?void 0:k.placement;if(!M)switch(m){case"bestFit":{var N;const L=(N=O.filter(P=>{if(S){const _=ne(P.placement);return _===E||_==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(_=>_>0).reduce((_,Y)=>_+Y,0)]).sort((P,_)=>P[1]-_[1])[0])==null?void 0:N[0];L&&(M=L);break}case"initialPlacement":M=a;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Ot(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Tt(e){return Kr.some(t=>e[t]>=0)}const so=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Z(e,t);switch(r){case"referenceHidden":{const i=await ge(t,{...o,elementContext:"reference"}),s=Ot(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Tt(s)}}}case"escaped":{const i=await ge(t,{...o,altBoundary:!0}),s=Ot(i,n.floating);return{data:{escapedOffsets:s,escaped:Tt(s)}}}default:return{}}}}};async function ao(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Q(n),a=he(n),u=ne(n)==="y",l=["left","top"].includes(s)?-1:1,f=i&&u?-1:1,d=Z(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof v=="number"&&(m=a==="end"?v*-1:v),u?{x:m*f,y:h*l}:{x:h*l,y:m*f}}const co=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,u=await ao(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:s}}}}},lo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:g=>{let{x:y,y:E}=g;return{x:y,y:E}}},...u}=Z(e,t),l={x:n,y:r},f=await ge(t,u),d=ne(Q(o)),h=ct(d);let m=l[h],v=l[d];if(i){const g=h==="y"?"top":"left",y=h==="y"?"bottom":"right",E=m+f[g],w=m-f[y];m=tt(E,m,w)}if(s){const g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",E=v+f[g],w=v-f[y];v=tt(E,v,w)}const p=a.fn({...t,[h]:m,[d]:v});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[h]:i,[d]:s}}}}}},uo=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:u=!0,crossAxis:l=!0}=Z(e,t),f={x:n,y:r},d=ne(o),h=ct(d);let m=f[h],v=f[d];const p=Z(a,t),g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(u){const w=h==="y"?"height":"width",x=i.reference[h]-i.floating[w]+g.mainAxis,b=i.reference[h]+i.reference[w]-g.mainAxis;m<x?m=x:m>b&&(m=b)}if(l){var y,E;const w=h==="y"?"width":"height",x=["top","left"].includes(Q(o)),b=i.reference[d]-i.floating[w]+(x&&((y=s.offset)==null?void 0:y[d])||0)+(x?0:g.crossAxis),S=i.reference[d]+i.reference[w]+(x?0:((E=s.offset)==null?void 0:E[d])||0)-(x?g.crossAxis:0);v<b?v=b:v>S&&(v=S)}return{[h]:m,[d]:v}}}},fo=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:u=()=>{},...l}=Z(e,t),f=await ge(t,l),d=Q(o),h=he(o),m=ne(o)==="y",{width:v,height:p}=i.floating;let g,y;d==="top"||d==="bottom"?(g=d,y=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,g=h==="end"?"top":"bottom");const E=p-f.top-f.bottom,w=v-f.left-f.right,x=te(p-f[g],E),b=te(v-f[y],w),S=!t.middlewareData.shift;let R=x,A=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=E),S&&!h){const O=W(f.left,0),I=W(f.right,0),k=W(f.top,0),N=W(f.bottom,0);m?A=v-2*(O!==0||I!==0?O+I:W(f.left,f.right)):R=p-2*(k!==0||N!==0?k+N:W(f.top,f.bottom))}await u({...t,availableWidth:A,availableHeight:R});const D=await s.getDimensions(a.floating);return v!==D.width||p!==D.height?{reset:{rects:!0}}:{}}}};function je(){return typeof window<"u"}function me(e){return on(e)?(e.nodeName||"").toLowerCase():"#document"}function $(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function q(e){var t;return(t=(on(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function on(e){return je()?e instanceof Node||e instanceof $(e).Node:!1}function H(e){return je()?e instanceof Element||e instanceof $(e).Element:!1}function K(e){return je()?e instanceof HTMLElement||e instanceof $(e).HTMLElement:!1}function Dt(e){return!je()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $(e).ShadowRoot}function xe(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=V(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function po(e){return["table","td","th"].includes(me(e))}function We(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function ft(e){const t=dt(),n=H(e)?V(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ho(e){let t=re(e);for(;K(t)&&!de(t);){if(ft(t))return t;if(We(t))return null;t=re(t)}
vendor: 7,995 bytes, line 9
9return null}function dt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function de(e){return["html","body","#document"].includes(me(e))}function V(e){return $(e).getComputedStyle(e)}function $e(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function re(e){if(me(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Dt(e)&&e.host||q(e);return Dt(t)?t.host:t}function sn(e){const t=re(e);return de(t)?e.ownerDocument?e.ownerDocument.body:e.body:K(t)&&xe(t)?t:sn(t)}function ye(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=sn(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=$(o);if(i){const a=rt(s);return t.concat(s,s.visualViewport||[],xe(o)?o:[],a&&n?ye(a):[])}return t.concat(o,ye(o,[],n))}function rt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function an(e){const t=V(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=K(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Ne(n)!==i||Ne(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function pt(e){return H(e)?e:e.contextElement}function ue(e){const t=pt(e);if(!K(t))return X(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=an(t);let s=(i?Ne(n.width):n.width)/r,a=(i?Ne(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const mo=X(0);function cn(e){const t=$(e);return!dt()||!t.visualViewport?mo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$(e)?!1:t}function ie(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=pt(e);let s=X(1);t&&(r?H(r)&&(s=ue(r)):s=ue(e));const a=vo(i,n,r)?cn(i):X(0);let u=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,f=o.width/s.x,d=o.height/s.y;if(i){const h=$(i),m=r&&H(r)?$(r):r;let v=h,p=rt(v);for(;p&&r&&m!==v;){const g=ue(p),y=p.getBoundingClientRect(),E=V(p),w=y.left+(p.clientLeft+parseFloat(E.paddingLeft))*g.x,x=y.top+(p.clientTop+parseFloat(E.paddingTop))*g.y;u*=g.x,l*=g.y,f*=g.x,d*=g.y,u+=w,l+=x,v=$(p),p=rt(v)}}return Le({width:f,height:d,x:u,y:l})}function ht(e,t){const n=$e(e).scrollLeft;return t?t.left+n:ie(q(e)).left+n}function ln(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:ht(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function go(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=q(r),a=t?We(t.floating):!1;if(r===s||a&&i)return n;let u={scrollLeft:0,scrollTop:0},l=X(1);const f=X(0),d=K(r);if((d||!d&&!i)&&((me(r)!=="body"||xe(s))&&(u=$e(r)),K(r))){const m=ie(r);l=ue(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const h=s&&!d&&!i?ln(s,u,!0):X(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+f.x+h.x,y:n.y*l.y-u.scrollTop*l.y+f.y+h.y}}function yo(e){return Array.from(e.getClientRects())}function wo(e){const t=q(e),n=$e(e),r=e.ownerDocument.body,o=W(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=W(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ht(e);const a=-n.scrollTop;return V(r).direction==="rtl"&&(s+=W(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function xo(e,t){const n=$(e),r=q(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,u=0;if(o){i=o.width,s=o.height;const l=dt();(!l||l&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}return{width:i,height:s,x:a,y:u}}function bo(e,t){const n=ie(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=K(e)?ue(e):X(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,u=o*i.x,l=r*i.y;return{width:s,height:a,x:u,y:l}}function Nt(e,t,n){let r;if(t==="viewport")r=xo(e,n);else if(t==="document")r=wo(q(e));else if(H(t))r=bo(t,n);else{const o=cn(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Le(r)}function un(e,t){const n=re(e);return n===t||!H(n)||de(n)?!1:V(n).position==="fixed"||un(n,t)}function Eo(e,t){const n=t.get(e);if(n)return n;let r=ye(e,[],!1).filter(a=>H(a)&&me(a)!=="body"),o=null;const i=V(e).position==="fixed";let s=i?re(e):e;for(;H(s)&&!de(s);){const a=V(s),u=ft(s);!u&&a.position==="fixed"&&(o=null),(i?!u&&!o:!u&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||xe(s)&&!u&&un(e,s))?r=r.filter(f=>f!==s):o=a,s=re(s)}return t.set(e,r),r}function Co(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?We(t)?[]:Eo(t,this._c):[].concat(n),r],a=s[0],u=s.reduce((l,f)=>{const d=Nt(t,f,o);return l.top=W(d.top,l.top),l.right=te(d.right,l.right),l.bottom=te(d.bottom,l.bottom),l.left=W(d.left,l.left),l},Nt(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Ro(e){const{width:t,height:n}=an(e);return{width:t,height:n}}function So(e,t,n){const r=K(t),o=q(t),i=n==="fixed",s=ie(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const u=X(0);if(r||!r&&!i)if((me(t)!=="body"||xe(o))&&(a=$e(t)),r){const h=ie(t,!0,i,t);u.x=h.x+t.clientLeft,u.y=h.y+t.clientTop}else o&&(u.x=ht(o));const l=o&&!r&&!i?ln(o,a):X(0),f=s.left+a.scrollLeft-u.x-l.x,d=s.top+a.scrollTop-u.y-l.y;return{x:f,y:d,width:s.width,height:s.height}}function ze(e){return V(e).position==="static"}function Mt(e,t){if(!K(e)||V(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return q(e)===n&&(n=n.ownerDocument.body),n}function fn(e,t){const n=$(e);if(We(e))return n;if(!K(e)){let o=re(e);for(;o&&!de(o);){if(H(o)&&!ze(o))return o;o=re(o)}return n}let r=Mt(e,t);for(;r&&po(r)&&ze(r);)r=Mt(r,t);return r&&de(r)&&ze(r)&&!ft(r)?n:r||ho(e)||n}const Po=async function(e){const t=this.getOffsetParent||fn,n=this.getDimensions,r=await n(e.floating);return{reference:So(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ao(e){return V(e).direction==="rtl"}const Oo={convertOffsetParentRelativeRectToViewportRelativeRect:go,getDocumentElement:q,getClippingRect:Co,getOffsetParent:fn,getElementRects:Po,getClientRects:yo,getDimensions:Ro,getScale:ue,isElement:H,isRTL:Ao};function dn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function To(e,t){let n=null,r;const o=q(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),i();const l=e.getBoundingClientRect(),{left:f,top:d,width:h,height:m}=l;if(a||t(),!h||!m)return;const v=Ce(d),p=Ce(o.clientWidth-(f+h)),g=Ce(o.clientHeight-(d+m)),y=Ce(f),w={rootMargin:-v+"px "+-p+"px "+-g+"px "+-y+"px",threshold:W(0,te(1,u))||1};let x=!0;function b(S){const R=S[0].intersectionRatio;if(R!==u){if(!x)return s();R?s(!1,R):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!dn(l,e.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(b,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,w)}n.observe(e)}return s(!0),i}function Do(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=pt(e),f=o||i?[...l?ye(l):[],...ye(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=l&&a?To(l,n):null;let h=-1,m=null;s&&(m=new ResizeObserver(y=>{let[E]=y;E&&E.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),n()}),l&&!u&&m.observe(l),m.observe(t));let v,p=u?ie(e):null;u&&g();function g(){const y=ie(e);p&&!dn(p,y)&&n(),p=y,v=requestAnimationFrame(g)}return n(),()=>{var y;f.forEach(E=>{o&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),d?.(),(y=m)==null||y.disconnect(),m=null,u&&cancelAnimationFrame(v)}}const No=co,Mo=lo,Lo=io,_o=fo,Io=so,Lt=oo,ko=uo,Fo=(e,t,n)=>{const r=new Map,o={platform:Oo,...n},i={...o.platform,_c:r};return ro(e,t,{...o,platform:i})};var Oe=typeof document<"u"?c.useLayoutEffect:c.useEffect;function _e(e,t){if(e===t)return!0;
vendor: 17,672 bytes, line 9
9if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!_e(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!_e(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function pn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _t(e,t){const n=pn(e);return Math.round(t*n)/n}function Ye(e){const t=c.useRef(e);return Oe(()=>{t.current=e}),t}function jo(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:u,open:l}=e,[f,d]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=c.useState(r);_e(h,r)||m(r);const[v,p]=c.useState(null),[g,y]=c.useState(null),E=c.useCallback(P=>{P!==S.current&&(S.current=P,p(P))},[]),w=c.useCallback(P=>{P!==R.current&&(R.current=P,y(P))},[]),x=i||v,b=s||g,S=c.useRef(null),R=c.useRef(null),A=c.useRef(f),D=u!=null,O=Ye(u),I=Ye(o),k=Ye(l),N=c.useCallback(()=>{if(!S.current||!R.current)return;const P={placement:t,strategy:n,middleware:h};I.current&&(P.platform=I.current),Fo(S.current,R.current,P).then(_=>{const Y={..._,isPositioned:k.current!==!1};T.current&&!_e(A.current,Y)&&(A.current=Y,Gt.flushSync(()=>{d(Y)}))})},[h,t,n,I,k]);Oe(()=>{l===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[l]);const T=c.useRef(!1);Oe(()=>(T.current=!0,()=>{T.current=!1}),[]),Oe(()=>{if(x&&(S.current=x),b&&(R.current=b),x&&b){if(O.current)return O.current(x,b,N);N()}},[x,b,N,O,D]);const B=c.useMemo(()=>({reference:S,floating:R,setReference:E,setFloating:w}),[E,w]),M=c.useMemo(()=>({reference:x,floating:b}),[x,b]),L=c.useMemo(()=>{const P={position:n,left:0,top:0};if(!M.floating)return P;const _=_t(M.floating,f.x),Y=_t(M.floating,f.y);return a?{...P,transform:"translate("+_+"px, "+Y+"px)",...pn(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:Y}},[n,a,M.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:N,refs:B,elements:M,floatingStyles:L}),[f,N,B,M,L])}const Wo=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Lt({element:r.current,padding:o}).fn(n):{}:r?Lt({element:r,padding:o}).fn(n):{}}}},$o=(e,t)=>({...No(e),options:[e,t]}),Bo=(e,t)=>({...Mo(e),options:[e,t]}),Ho=(e,t)=>({...ko(e),options:[e,t]}),Vo=(e,t)=>({...Lo(e),options:[e,t]}),Uo=(e,t)=>({..._o(e),options:[e,t]}),zo=(e,t)=>({...Io(e),options:[e,t]}),Yo=(e,t)=>({...Wo(e),options:[e,t]});var Go="Arrow",hn=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return C.jsx(F.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:C.jsx("polygon",{points:"0,0 30,0 15,10"})})});hn.displayName=Go;var Xo=hn;function Ko(e){const[t,n]=c.useState(void 0);return oe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const u=i.borderBoxSize,l=Array.isArray(u)?u[0]:u;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var mt="Popper",[mn,vn]=st(mt),[qo,gn]=mn(mt),yn=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return C.jsx(qo,{scope:t,anchor:r,onAnchorChange:o,children:n})};yn.displayName=mt;var wn="PopperAnchor",xn=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=gn(wn,n),s=c.useRef(null),a=U(t,s);return c.useEffect(()=>{i.onAnchorChange(r?.current||s.current)}),r?null:C.jsx(F.div,{...o,ref:a})});xn.displayName=wn;var vt="PopperContent",[Zo,Qo]=mn(vt),bn=c.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:v,...p}=e,g=gn(vt,n),[y,E]=c.useState(null),w=U(t,ve=>E(ve)),[x,b]=c.useState(null),S=Ko(x),R=S?.width??0,A=S?.height??0,D=r+(i!=="center"?"-"+i:""),O=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},I=Array.isArray(l)?l:[l],k=I.length>0,N={padding:O,boundary:I.filter(ei),altBoundary:k},{refs:T,floatingStyles:B,placement:M,isPositioned:L,middlewareData:P}=jo({strategy:"fixed",placement:D,whileElementsMounted:(...ve)=>Do(...ve,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[$o({mainAxis:o+A,alignmentAxis:s}),u&&Bo({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Ho():void 0,...N}),u&&Vo({...N}),Uo({...N,apply:({elements:ve,rects:Ct,availableWidth:fr,availableHeight:dr})=>{const{width:pr,height:hr}=Ct.reference,be=ve.floating.style;be.setProperty("--radix-popper-available-width",`${fr}px`),be.setProperty("--radix-popper-available-height",`${dr}px`),be.setProperty("--radix-popper-anchor-width",`${pr}px`),be.setProperty("--radix-popper-anchor-height",`${hr}px`)}}),x&&Yo({element:x,padding:a}),ti({arrowWidth:R,arrowHeight:A}),h&&zo({strategy:"referenceHidden",...N})]}),[_,Y]=Rn(M),Et=ee(v);oe(()=>{L&&Et?.()},[L,Et]);const sr=P.arrow?.x,ar=P.arrow?.y,cr=P.arrow?.centerOffset!==0,[lr,ur]=c.useState();return oe(()=>{y&&ur(window.getComputedStyle(y).zIndex)},[y]),C.jsx("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:L?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:lr,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(" "),...P.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:C.jsx(Zo,{scope:n,placedSide:_,onArrowChange:b,arrowX:sr,arrowY:ar,shouldHideArrow:cr,children:C.jsx(F.div,{"data-side":_,"data-align":Y,...p,ref:w,style:{...p.style,animation:L?void 0:"none"}})})})});bn.displayName=vt;var En="PopperArrow",Jo={top:"bottom",right:"left",bottom:"top",left:"right"},Cn=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Qo(En,r),s=Jo[i.placedSide];return C.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:C.jsx(Xo,{...o,ref:n,style:{...o.style,display:"block"}})})});Cn.displayName=En;function ei(e){return e!==null}var ti=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[l,f]=Rn(n),d={start:"0%",center:"50%",end:"100%"}[f],h=(o.arrow?.x??0)+a/2,m=(o.arrow?.y??0)+u/2;let v="",p="";return l==="bottom"?(v=s?d:`${h}px`,p=`${-u}px`):l==="top"?(v=s?d:`${h}px`,p=`${r.floating.height+u}px`):l==="right"?(v=`${-u}px`,p=s?d:`${m}px`):l==="left"&&(v=`${r.floating.width+u}px`,p=s?d:`${m}px`),{data:{x:v,y:p}}}});function Rn(e){const[t,n="center"]=e.split("-");return[t,n]}var Ns=yn,ni=xn,ri=bn,oi=Cn,[Be,Ms]=st("Tooltip",[vn]),gt=vn(),Sn="TooltipProvider",ii=700,It="tooltip.open",[si,Pn]=Be(Sn),An=e=>{const{__scopeTooltip:t,delayDuration:n=ii,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=c.useRef(!0),a=c.useRef(!1),u=c.useRef(0);return c.useEffect(()=>{const l=u.current;return()=>window.clearTimeout(l)},[]),C.jsx(si,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:c.useCallback(()=>{window.clearTimeout(u.current),s.current=!1},[]),onClose:c.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:c.useCallback(l=>{a.current=l},[]),disableHoverableContent:o,children:i})};An.displayName=Sn;var On="Tooltip",[Ls,He]=Be(On),ot="TooltipTrigger",ai=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=He(ot,n),i=Pn(ot,n),s=gt(n),a=c.useRef(null),u=U(t,a,o.onTriggerChange),l=c.useRef(!1),f=c.useRef(!1),d=c.useCallback(()=>l.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),C.jsx(ni,{asChild:!0,...s,children:C.jsx(F.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:u,onPointerMove:j(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:j(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:j(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:j(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:j(e.onBlur,o.onClose),onClick:j(e.onClick,o.onClose)})})});ai.displayName=ot;var ci="TooltipPortal",[_s,li]=Be(ci,{forceMount:void 0}),pe="TooltipContent",Tn=c.forwardRef((e,t)=>{const n=li(pe,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=He(pe,e.__scopeTooltip);return C.jsx(we,{present:r||s.open,children:s.disableHoverableContent?C.jsx(Dn,{side:o,...i,ref:t}):C.jsx(ui,{side:o,...i,ref:t})})}),ui=c.forwardRef((e,t)=>{const n=He(pe,e.__scopeTooltip),r=Pn(pe,e.__scopeTooltip),o=c.useRef(null),i=U(t,o),[s,a]=c.useState(null),{trigger:u,onClose:l}=n,f=o.current,{onPointerInTransitChange:d}=r,h=c.useCallback(()=>{a(null),d(!1)},[d]),m=c.useCallback((v,p)=>{const g=v.currentTarget,y={x:v.clientX,y:v.clientY},E=mi(y,g.getBoundingClientRect()),w=vi(y,E),x=gi(p.getBoundingClientRect()),b=wi([...w,...x]);a(b),d(!0)},[d]);return c.useEffect(()=>()=>h(),[h]),c.useEffect(()=>{if(u&&f){const v=g=>m(g,f),p=g=>m(g,u);return u.addEventListener("pointerleave",v),f.addEventListener("pointerleave",p),()=>{u.removeEventListener("pointerleave",v),f.removeEventListener("pointerleave",p)}}},[u,f,m,h]),c.useEffect(()=>{if(s){const v=p=>{const g=p.target,y={x:p.clientX,y:p.clientY},E=u?.contains(g)||f?.contains(g),w=!yi(y,s);E?h():w&&(h(),l())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[u,f,s,l,h]),C.jsx(Dn,{...e,ref:i})}),[fi,di]=Be(On,{isInside:!1}),pi=Pr("TooltipContent"),Dn=c.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,u=He(pe,n),l=gt(n),{onClose:f}=u;return c.useEffect(()=>(document.addEventListener(It,f),()=>document.removeEventListener(It,f)),[f]),c.useEffect(()=>{if(u.trigger){const d=h=>{h.target?.contains(u.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[u.trigger,f]),C.jsx(Fe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:f,children:C.jsxs(ri,{"data-state":u.stateAttribute,...l,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[C.jsx(pi,{children:r}),C.jsx(fi,{scope:n,isInside:!0,children:C.jsx(Yr,{id:u.contentId,role:"tooltip",children:o||r})})]})})});Tn.displayName=pe;var Nn="TooltipArrow",hi=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=gt(n);return di(Nn,n).isInside?null:C.jsx(oi,{...o,...r,ref:t})});hi.displayName=Nn;function mi(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function vi(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function gi(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function yi(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i].x,u=t[i].y,l=t[s].x,f=t[s].y;u>r!=f>r&&n<(l-a)*(r-u)/(f-u)+a&&(o=!o)}return o}function wi(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),xi(t)}function xi(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Is=An,ks=Tn,Ge="focusScope.autoFocusOnMount",Xe="focusScope.autoFocusOnUnmount",kt={bubbles:!1,cancelable:!0},bi="FocusScope",Mn=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,u]=c.useState(null),l=ee(o),f=ee(i),d=c.useRef(null),h=U(t,p=>u(p)),m=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let p=function(w){if(m.paused||!a)return;const x=w.target;a.contains(x)?d.current=x:J(d.current,{select:!0})},g=function(w){if(m.paused||!a)return;const x=w.relatedTarget;x!==null&&(a.contains(x)||J(d.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const b of w)b.removedNodes.length>0&&J(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",g);const E=new MutationObserver(y);return a&&E.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),E.disconnect()}}},[r,a,m.paused]),c.useEffect(()=>{if(a){jt.add(m);const p=document.activeElement;if(!a.contains(p)){const y=new CustomEvent(Ge,kt);a.addEventListener(Ge,l),a.dispatchEvent(y),y.defaultPrevented||(Ei(Ai(Ln(a)),{select:!0}),document.activeElement===p&&J(a))}return()=>{a.removeEventListener(Ge,l),setTimeout(()=>{const y=new CustomEvent(Xe,kt);a.addEventListener(Xe,f),a.dispatchEvent(y),y.defaultPrevented||J(p??document.body,{select:!0}),a.removeEventListener(Xe,f),jt.remove(m)},0)}}},[a,l,f,m]);const v=c.useCallback(p=>{if(!n&&!r||m.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(g&&y){const E=p.currentTarget,[w,x]=Ci(E);w&&x?!p.shiftKey&&y===x?(p.preventDefault(),n&&J(w,{select:!0})):p.shiftKey&&y===w&&(p.preventDefault(),n&&J(x,{select:!0})):y===E&&p.preventDefault()}},[n,r,m.paused]);return C.jsx(F.div,{tabIndex:-1,...s,ref:h,onKeyDown:v})});Mn.displayName=bi;function Ei(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(J(r,{select:t}),document.activeElement!==n)return}function Ci(e){const t=Ln(e),n=Ft(t,e),r=Ft(t.reverse(),e);return[n,r]}function Ln(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ft(e,t){for(const n of e)if(!Ri(n,{upTo:t}))return n}function Ri(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Si(e){return e instanceof HTMLInputElement&&"select"in e}function J(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Si(e)&&t&&e.select()}}var jt=Pi();function Pi(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Wt(e,t),e.unshift(t)},remove(t){e=Wt(e,t),e[0]?.resume()}}}function Wt(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ai(e){return e.filter(t=>t.tagName!=="A")}var Ke=0;function Oi(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??$t()),document.body.insertAdjacentElement("beforeend",e[1]??$t()),Ke++,()=>{Ke===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ke--}},[])}function $t(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var G=function(){return G=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},G.apply(this,arguments)};function _n(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}
vendor: 5,000 bytes, lines 9-24
9function Ti(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Te="right-scroll-bar-position",De="width-before-scroll-bar",Di="with-scroll-bars-hidden",Ni="--removed-body-scroll-bar-size";function qe(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Mi(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Li=typeof window<"u"?c.useLayoutEffect:c.useEffect,Bt=new WeakMap;function _i(e,t){var n=Mi(null,function(r){return e.forEach(function(o){return qe(o,r)})});return Li(function(){var r=Bt.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||qe(a,null)}),i.forEach(function(a){o.has(a)||qe(a,s)})}Bt.set(n,e)},[e]),n}function Ii(e){return e}function ki(e,t){t===void 0&&(t=Ii);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var u=function(){var f=s;s=[],f.forEach(i)},l=function(){return Promise.resolve().then(u)};l(),n={push:function(f){s.push(f),l()},filter:function(f){return s=s.filter(f),n}}}};return o}function Fi(e){e===void 0&&(e={});var t=ki(null);return t.options=G({async:!0,ssr:!1},e),t}var In=function(e){var t=e.sideCar,n=_n(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,G({},n))};In.isSideCarExport=!0;function ji(e,t){return e.useMedium(t),In}var kn=Fi(),Ze=function(){},Ve=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Ze,onWheelCapture:Ze,onTouchMoveCapture:Ze}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,u=e.className,l=e.removeScrollBar,f=e.enabled,d=e.shards,h=e.sideCar,m=e.noIsolation,v=e.inert,p=e.allowPinchZoom,g=e.as,y=g===void 0?"div":g,E=e.gapMode,w=_n(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=h,b=_i([n,t]),S=G(G({},w),o);return c.createElement(c.Fragment,null,f&&c.createElement(x,{sideCar:kn,removeScrollBar:l,shards:d,noIsolation:m,inert:v,setCallbacks:i,allowPinchZoom:!!p,lockRef:n,gapMode:E}),s?c.cloneElement(c.Children.only(a),G(G({},S),{ref:b})):c.createElement(y,G({},S,{className:u,ref:b}),a))});Ve.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ve.classNames={fullWidth:De,zeroRight:Te};var Wi=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $i(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wi();return t&&e.setAttribute("nonce",t),e}function Bi(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Hi(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Vi=function(){var e=0,t=null;return{add:function(n){e==0&&(t=$i())&&(Bi(t,n),Hi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ui=function(){var e=Vi();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Fn=function(){var e=Ui(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},zi={left:0,top:0,right:0,gap:0},Qe=function(e){return parseInt(e||"",10)||0},Yi=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Qe(n),Qe(r),Qe(o)]},Gi=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return zi;var t=Yi(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Xi=Fn(),fe="data-scroll-locked",Ki=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` 10 .`.concat(Di,` { 11 overflow: hidden `).concat(r,`; 12 padding-right: `).concat(a,"px ").concat(r,`; 13 } 14 body[`).concat(fe,`] { 15 overflow: hidden `).concat(r,`; 16 overscroll-behavior: contain; 17 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 18 padding-left: `.concat(o,`px; 19 padding-top: `).concat(i,`px; 20 padding-right: `).concat(s,`px; 21 margin-left:0; 22 margin-top:0; 23 margin-right: `).concat(a,"px ").concat(r,`; 24 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
24")].filter(Boolean).join(""),` 25 } 26 27 .`).concat(Te,` { 28 right: `).concat(a,"px ").concat(r,`; 29 } 30 31 .`).concat(De,` { 32 margin-right: `).concat(a,"px ").concat(r,`; 33 } 34 35 .`).concat(Te," .").concat(Te,` { 36 right: 0 `).concat(r,`; 37 } 38 39 .`).concat(De," .").concat(De,` { 40 margin-right: 0 `).concat(r,`; 41 } 42 43 body[`).concat(fe,`] { 44 `).concat(Ni,": ").concat(a,`px; 45 } 46`)},Ht=function(){var e=parseInt(document.body.getAttribute(fe)||"0",10);return isFinite(e)?e:0},qi=function(){c.useEffect(function(){return document.body.setAttribute(fe,(Ht()+1).toString()),function(){var e=Ht()-1;e<=0?document.body.removeAttribute(fe):document.body.setAttribute(fe,e.toString())}},[])},Zi=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;qi();var i=c.useMemo(function(){return Gi(o)},[o]);return c.createElement(Xi,{styles:Ki(i,!t,o,n?"":"!important")})},it=!1;if(typeof window<"u")try{var Re=Object.defineProperty({},"passive",{get:function(){return it=!0,!0}});window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch{it=!1}var ae=it?{passive:!1}:!1,Qi=function(e){return e.tagName==="TEXTAREA"},jn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Qi(e)&&n[t]==="visible")},Ji=function(e){return jn(e,"overflowY")},es=function(e){return jn(e,"overflowX")},Vt=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Wn(e,r);if(o){var i=$n(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ts=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ns=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Wn=function(e,t){return e==="v"?Ji(t):es(t)},$n=function(e,t){return e==="v"?ts(t):ns(t)},rs=function(e,t){return e==="h"&&t==="rtl"?-1:1},os=function(e,t,n,r,o){var i=rs(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,u=t.contains(a),l=!1,f=s>0,d=0,h=0;do{var m=$n(e,a),v=m[0],p=m[1],g=m[2],y=p-g-i*v;(v||y)&&Wn(e,a)&&(d+=y,h+=v),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(f&&(Math.abs(d)<1||!o)||!f&&(Math.abs(h)<1||!o))&&(l=!0),l},Se=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ut=function(e){return[e.deltaX,e.deltaY]},zt=function(e){return e&&"current"in e?e.current:e},is=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ss=function(e){return` 47 .block-interactivity-`.concat(e,` {pointer-events: none;} 48 .allow-interactivity-`).concat(e,` {pointer-events: all;} 49`)},as=0,ce=[];function cs(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(as++)[0],i=c.useState(Fn)[0],s=c.useRef(e);c.useEffect(function(){s.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=Ti([e.lockRef.current],(e.shards||[]).map(zt),!0).filter(Boolean);return p.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(p,g){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var y=Se(p),E=n.current,w="deltaX"in p?p.deltaX:E[0]-y[0],x="deltaY"in p?p.deltaY:E[1]-y[1],b,S=p.target,R=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in p&&R==="h"&&S.type==="range")return!1;var A=Vt(R,S);if(!A)return!0;if(A?b=R:(b=R==="v"?"h":"v",A=Vt(R,S)),!A)return!1;if(!r.current&&"changedTouches"in p&&(w||x)&&(r.current=b),!b)return!0;var D=r.current||b;return os(D,g,p,D==="h"?w:x,!0)},[]),u=c.useCallback(function(p){var g=p;if(!(!ce.length||ce[ce.length-1]!==i)){var y="deltaY"in g?Ut(g):Se(g),E=t.current.filter(function(b){return b.name===g.type&&(b.target===g.target||g.target===b.shadowParent)&&is(b.delta,y)})[0];if(E&&E.should){g.cancelable&&g.preventDefault();return}
vendor: 4,290 bytes, line 49
49if(!E){var w=(s.current.shards||[]).map(zt).filter(Boolean).filter(function(b){return b.contains(g.target)}),x=w.length>0?a(g,w[0]):!s.current.noIsolation;x&&g.cancelable&&g.preventDefault()}}},[]),l=c.useCallback(function(p,g,y,E){var w={name:p,delta:g,target:y,should:E,shadowParent:ls(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),f=c.useCallback(function(p){n.current=Se(p),r.current=void 0},[]),d=c.useCallback(function(p){l(p.type,Ut(p),p.target,a(p,e.lockRef.current))},[]),h=c.useCallback(function(p){l(p.type,Se(p),p.target,a(p,e.lockRef.current))},[]);c.useEffect(function(){return ce.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",u,ae),document.addEventListener("touchmove",u,ae),document.addEventListener("touchstart",f,ae),function(){ce=ce.filter(function(p){return p!==i}),document.removeEventListener("wheel",u,ae),document.removeEventListener("touchmove",u,ae),document.removeEventListener("touchstart",f,ae)}},[]);var m=e.removeScrollBar,v=e.inert;return c.createElement(c.Fragment,null,v?c.createElement(i,{styles:ss(o)}):null,m?c.createElement(Zi,{gapMode:e.gapMode}):null)}function ls(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const us=ji(kn,cs);var Bn=c.forwardRef(function(e,t){return c.createElement(Ve,G({},e,{ref:t,sideCar:us}))});Bn.classNames=Ve.classNames;var fs=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},le=new WeakMap,Pe=new WeakMap,Ae={},Je=0,Hn=function(e){return e&&(e.host||Hn(e.parentNode))},ds=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Hn(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ps=function(e,t,n,r){var o=ds(t,Array.isArray(e)?e:[e]);Ae[n]||(Ae[n]=new WeakMap);var i=Ae[n],s=[],a=new Set,u=new Set(o),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};o.forEach(l);var f=function(d){!d||u.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))f(h);else try{var m=h.getAttribute(r),v=m!==null&&m!=="false",p=(le.get(h)||0)+1,g=(i.get(h)||0)+1;le.set(h,p),i.set(h,g),s.push(h),p===1&&v&&Pe.set(h,!0),g===1&&h.setAttribute(n,"true"),v||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return f(t),a.clear(),Je++,function(){s.forEach(function(d){var h=le.get(d)-1,m=i.get(d)-1;le.set(d,h),i.set(d,m),h||(Pe.has(d)||d.removeAttribute(r),Pe.delete(d)),m||d.removeAttribute(n)}),Je--,Je||(le=new WeakMap,le=new WeakMap,Pe=new WeakMap,Ae={})}},hs=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=fs(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),ps(r,o,n,"aria-hidden")):function(){return null}},yt="Dialog",[Vn,Fs]=st(yt),[ms,z]=Vn(yt),Un=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=c.useRef(null),u=c.useRef(null),[l=!1,f]=Vr({prop:r,defaultProp:o,onChange:i});return C.jsx(ms,{scope:t,triggerRef:a,contentRef:u,contentId:Ue(),titleId:Ue(),descriptionId:Ue(),open:l,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(d=>!d),[f]),modal:s,children:n})};Un.displayName=yt;var zn="DialogTrigger",Yn=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=z(zn,n),i=U(t,o.triggerRef);return C.jsx(F.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":bt(o.open),...r,ref:i,onClick:j(e.onClick,o.onOpenToggle)})});Yn.displayName=zn;var wt="DialogPortal",[vs,Gn]=Vn(wt,{forceMount:void 0}),Xn=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=z(wt,t);return C.jsx(vs,{scope:t,forceMount:n,children:c.Children.map(r,s=>C.jsx(we,{present:n||i.open,children:C.jsx(tn,{asChild:!0,container:o,children:s})}))})};Xn.displayName=wt;var Ie="DialogOverlay",Kn=c.forwardRef((e,t)=>{const n=Gn(Ie,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=z(Ie,e.__scopeDialog);return i.modal?C.jsx(we,{present:r||i.open,children:C.jsx(ys,{...o,ref:t})}):null});Kn.displayName=Ie;var gs=at("DialogOverlay.RemoveScroll"),ys=c.forwardRef((e,t)=>
vendor: 4,283 bytes, lines 49-53
49{const{__scopeDialog:n,...r}=e,o=z(Ie,n);return C.jsx(Bn,{as:gs,allowPinchZoom:!0,shards:[o.contentRef],children:C.jsx(F.div,{"data-state":bt(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),se="DialogContent",qn=c.forwardRef((e,t)=>{const n=Gn(se,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=z(se,e.__scopeDialog);return C.jsx(we,{present:r||i.open,children:i.modal?C.jsx(ws,{...o,ref:t}):C.jsx(xs,{...o,ref:t})})});qn.displayName=se;var ws=c.forwardRef((e,t)=>{const n=z(se,e.__scopeDialog),r=c.useRef(null),o=U(t,n.contentRef,r);return c.useEffect(()=>{const i=r.current;if(i)return hs(i)},[]),C.jsx(Zn,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:j(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:j(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:j(e.onFocusOutside,i=>i.preventDefault())})}),xs=c.forwardRef((e,t)=>{const n=z(se,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return C.jsx(Zn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;n.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Zn=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=z(se,n),u=c.useRef(null),l=U(t,u);return Oi(),C.jsxs(C.Fragment,{children:[C.jsx(Mn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:C.jsx(Fe,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":bt(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),C.jsxs(C.Fragment,{children:[C.jsx(bs,{titleId:a.titleId}),C.jsx(Cs,{contentRef:u,descriptionId:a.descriptionId})]})]})}),xt="DialogTitle",Qn=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=z(xt,n);return C.jsx(F.h2,{id:o.titleId,...r,ref:t})});Qn.displayName=xt;var Jn="DialogDescription",er=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=z(Jn,n);return C.jsx(F.p,{id:o.descriptionId,...r,ref:t})});er.displayName=Jn;var tr="DialogClose",nr=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=z(tr,n);return C.jsx(F.button,{type:"button",...r,ref:t,onClick:j(e.onClick,()=>o.onOpenChange(!1))})});nr.displayName=tr;function bt(e){return e?"open":"closed"}var rr="DialogTitleWarning",[js,or]=Cr(rr,{contentName:se,titleName:xt,docsSlug:"dialog"}),bs=({titleId:e})=>{const t=or(rr),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 50 51If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 52 53For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Es="DialogDescriptionWarning",Cs=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${or(Es).contentName}}.`;return c.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Ws=Un,$s=Yn,Bs=Xn,Hs=Kn,Vs=qn,Us=Qn,zs=er,Ys=nr,Rs="Separator",Yt="horizontal",Ss=["horizontal","vertical"],ir=c.forwardRef((e,t)=>{const{decorative:n,orientation:r=Yt,...o}=e,i=Ps(r)?r:Yt,a=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return C.jsx(F.div,{"data-orientation":i,...a,...o,ref:t})});ir.displayName=Rs;function Ps(e){return Ss.includes(e)}var Gs=ir;export{ni as A,Ds as B,ks as C,zs as D,Bn as E,Mn as F,Ns as G,Fs as H,Pr as I,Gs as J,Hs as O,F as P,Ts as R,Os as S,Us as T,nn as V,js as W,at as a,Vr as b,st as c,we as d,ee as e,j as f,tn as g,oe as h,Nr as i,C as j,Is as k,Vs as l,Ys as m,Bs as n,Ws as o,$s as p,Ko as q,Ue as r,vn as s,hs as t,U as u,Oi as v,Fe as w,ri as x,oi as y,qt as z};
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.