PageSourceSearch

https://form-forge-sql.lovable.app/assets/ui-BvxbG1jw.js

js form-forge-sql.lovable.app collected 2026-10-03 03:31:40 UTC 106,402 bytes, 56 lines download raw bytes

vendor: 19,140 bytes, lines 1-9
1import{r as a,R as xe,a as Xe,$ as tn,b as rr}from"./vendor-C7GLl8Yh.js";var or={exports:{}},mt={};/**
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 ti=a,ni=Symbol.for("react.element"),ri=Symbol.for("react.fragment"),oi=Object.prototype.hasOwnProperty,ii=ti.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,si={key:!0,ref:!0,__self:!0,__source:!0};function ir(e,t,n){var r,o={},i=null,c=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(c=t.ref);for(r in t)oi.call(t,r)&&!si.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:ni,type:e,key:i,ref:c,props:o,_owner:ii.current}}mt.Fragment=ri;mt.jsx=ir;mt.jsxs=ir;or.exports=mt;var S=or.exports;function H(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ci(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function sr(...e){return t=>e.forEach(n=>ci(n,t))}function K(...e){return a.useCallback(sr(...e),e)}function ai(e,t=[]){let n=[];function r(i,c){const s=a.createContext(c),l=n.length;n=[...n,c];function u(p){const{scope:m,children:h,...y}=p,f=(m==null?void 0:m[e][l])||s,v=a.useMemo(()=>y,Object.values(y));return S.jsx(f.Provider,{value:v,children:h})}function d(p,m){const h=(m==null?void 0:m[e][l])||s,y=a.useContext(h);if(y)return y;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const o=()=>{const i=n.map(c=>a.createContext(c));return function(s){const l=(s==null?void 0:s[e])||i;return a.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,li(o,...t)]}function li(...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 c=r.reduce((s,{useScope:l,scopeName:u})=>{const p=l(i)[`__scope${u}`];return{...s,...p}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}var Ke=a.forwardRef((e,t)=>{const{children:n,...r}=e,o=a.Children.toArray(n),i=o.find(fi);if(i){const c=i.props.children,s=o.map(l=>l===i?a.Children.count(c)>1?a.Children.only(null):a.isValidElement(c)?c.props.children:null:l);return S.jsx(Bt,{...r,ref:t,children:a.isValidElement(c)?a.cloneElement(c,void 0,s):null})}return S.jsx(Bt,{...r,ref:t,children:n})});Ke.displayName="Slot";var Bt=a.forwardRef((e,t)=>{const{children:n,...r}=e;if(a.isValidElement(n)){const o=pi(n);return a.cloneElement(n,{...di(r,n.props),ref:t?sr(t,o):o})}return a.Children.count(n)>1?a.Children.only(null):null});Bt.displayName="SlotClone";var ui=({children:e})=>S.jsx(S.Fragment,{children:e});function fi(e){return a.isValidElement(e)&&e.type===ui}function di(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]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function pi(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function mi(e){const t=e+"CollectionProvider",[n,r]=ai(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=h=>{const{scope:y,children:f}=h,v=xe.useRef(null),g=xe.useRef(new Map).current;return S.jsx(o,{scope:y,itemMap:g,collectionRef:v,children:f})};c.displayName=t;const s=e+"CollectionSlot",l=xe.forwardRef((h,y)=>{const{scope:f,children:v}=h,g=i(s,f),w=K(y,g.collectionRef);return S.jsx(Ke,{ref:w,children:v})});l.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",p=xe.forwardRef((h,y)=>{const{scope:f,children:v,...g}=h,w=xe.useRef(null),x=K(y,w),b=i(u,f);return xe.useEffect(()=>(b.itemMap.set(w,{ref:w,...g}),()=>void b.itemMap.delete(w))),S.jsx(Ke,{[d]:"",ref:x,children:v})});p.displayName=u;function m(h){const y=i(e+"CollectionConsumer",h);return xe.useCallback(()=>{const v=y.collectionRef.current;if(!v)return[];const g=Array.from(v.querySelectorAll(`[${d}]`));return Array.from(y.itemMap.values()).sort((b,E)=>g.indexOf(b.ref.current)-g.indexOf(E.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:c,Slot:l,ItemSlot:p},m,r]}function Ml(e,t){const n=a.createContext(t),r=i=>{const{children:c,...s}=i,l=a.useMemo(()=>s,Object.values(s));return S.jsx(n.Provider,{value:l,children:c})};r.displayName=e+"Provider";function o(i){const c=a.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function hi(e,t=[]){let n=[];function r(i,c){const s=a.createContext(c),l=n.length;n=[...n,c];const u=p=>{var g;const{scope:m,children:h,...y}=p,f=((g=m==null?void 0:m[e])==null?void 0:g[l])||s,v=a.useMemo(()=>y,Object.values(y));return S.jsx(f.Provider,{value:v,children:h})};u.displayName=i+"Provider";function d(p,m){var f;const h=((f=m==null?void 0:m[e])==null?void 0:f[l])||s,y=a.useContext(h);if(y)return y;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(c=>a.createContext(c));return function(s){const l=(s==null?void 0:s[e])||i;return a.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,vi(o,...t)]}function vi(...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 c=r.reduce((s,{useScope:l,scopeName:u})=>{const p=l(i)[`__scope${u}`];return{...s,...p}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}var gi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],U=gi.reduce((e,t)=>{const n=a.forwardRef((r,o)=>{const{asChild:i,...c}=r,s=i?Ke:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(s,{...c,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function yi(e,t){e&&Xe.flushSync(()=>e.dispatchEvent(t))}function ce(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var Q=globalThis!=null&&globalThis.document?a.useLayoutEffect:()=>{};function wn({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=wi({defaultProp:t,onChange:n}),i=e!==void 0,c=i?e:r,s=ce(n),l=a.useCallback(u=>{if(i){const p=typeof u=="function"?u(e):u;p!==e&&s(p)}else o(u)},[i,e,o,s]);return[c,l]}function wi({defaultProp:e,onChange:t}){const n=a.useState(e),[r]=n,o=a.useRef(r),i=ce(t);return a.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var xi="VisuallyHidden",nn=a.forwardRef((e,t)=>S.jsx(U.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=xi;var Ll=nn,Si=tn.useId||(()=>{}),bi=0;function rn(e){const[t,n]=a.useState(Si());return Q(()=>{n(r=>r??String(bi++))},[e]),t?`radix-${t}`:""}const Ei=["top","right","bottom","left"],pe=Math.min,Z=Math.max,at=Math.round,Je=Math.floor,me=e=>({x:e,y:e}),Ci={left:"right",right:"left",bottom:"top",top:"bottom"},Pi={start:"end",end:"start"};function Vt(e,t,n){return Z(e,pe(t,n))}function ae(e,t){return typeof e=="function"?e(t):e}function le(e){return e.split("-")[0]}function _e(e){return e.split("-")[1]}function on(e){return e==="x"?"y":"x"}function sn(e){return e==="y"?"height":"width"}function he(e){return["top","bottom"].includes(le(e))?"y":"x"}function cn(e){return on(he(e))}function Ri(e,t,n){n===void 0&&(n=!1);const r=_e(e),o=cn(e),i=sn(o);let c=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(c=lt(c)),[c,lt(c)]}function Ai(e){const t=lt(e);return[Ht(e),t,Ht(t)]}function Ht(e){return e.replace(/start|end/g,t=>Pi[t])}function Oi(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:c;default:return[]}}function Ti(e,t,n,r){const o=_e(e);let i=Oi(le(e),n==="start",r);return o&&(i=i.map(c=>c+"-"+o),t&&(i=i.concat(i.map(Ht)))),i}function lt(e){return e.replace(/left|right|bottom|top/g,t=>Ci[t])}function Ni(e){return{top:0,right:0,bottom:0,left:0,...e}}function cr(e){return typeof e!="number"?Ni(e):{top:e,right:e,bottom:e,left:e}}function ut(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 xn(e,t,n){let{reference:r,floating:o}=e;const i=he(t),c=cn(t),s=sn(c),l=le(t),u=i==="y",d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let h;switch(l){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-o.width,y:p};break;default:h={x:r.x,y:r.y}}switch(_e(t)){case"start":h[c]-=m*(n&&u?-1:1);break;case"end":h[c]+=m*(n&&u?-1:1);break}return h}const Di=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:c}=n,s=i.filter(Boolean),l=await(c.isRTL==null?void 0:c.isRTL(t));let u=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=xn(u,r,l),m=r,h={},y=0;for(let f=0;f<s.length;f++){const{name:v,fn:g}=s[f],{x:w,y:x,data:b,reset:E}=await g({x:d,y:p,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:u,platform:c,elements:{reference:e,floating:t}});d=w??d,p=x??p,h={...h,[v]:{...h[v],...b}},E&&y<=50&&(y++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(u=E.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:d,y:p}=xn(u,m,l)),f=-1)}return{x:d,y:p,placement:m,strategy:o,middlewareData:h}};async function ze(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:c,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:m=!1,padding:h=0}=ae(t,e),y=cr(h),v=s[m?p==="floating"?"reference":"floating":p],g=ut(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:l})),w=p==="floating"?{x:r,y:o,width:c.floating.width,height:c.floating.height}:c.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),b=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},E=ut(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:x,strategy:l}):w);return{top:(g.top-E.top+y.top)/b.y,bottom:(E.bottom-g.bottom+y.bottom)/b.y,left:(g.left-E.left+y.left)/b.x,right:(E.right-g.right+y.right)/b.x}}const Ii=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:c,elements:s,middlewareData:l}=t,{element:u,padding:d=0}=ae(e,t)||{};if(u==null)return{};const p=cr(d),m={x:n,y:r},h=cn(o),y=sn(h),f=await c.getDimensions(u),v=h==="y",g=v?"top":"left",w=v?"bottom":"right",x=v?"clientHeight":"clientWidth",b=i.reference[y]+i.reference[h]-m[h]-i.floating[y],E=m[h]-i.reference[h],P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(u));let C=P?P[x]:0;(!C||!await(c.isElement==null?void 0:c.isElement(P)))&&(C=s.floating[x]||i.floating[y]);const R=b/2-E/2,T=C/2-f[y]/2-1,D=pe(p[g],T),F=pe(p[w],T),j=D,M=C-f[y]-F,I=C/2-f[y]/2+R,V=Vt(j,I,M),N=!l.arrow&&_e(o)!=null&&I!==V&&i.reference[y]/2-(I<j?D:F)-f[y]/2<0,_=N?I<j?I-j:I-M:0;return{[h]:m[h]+_,data:{[h]:V,centerOffset:I-V-_,...N&&{alignmentOffset:_}},reset:N}}}),_i=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:c,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:f=!0,...v}=ae(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=le(o),w=he(s),x=le(s)===s,b=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=m||(x||!f?[lt(s)]:Ai(s)),P=y!=="none";!m&&P&&E.push(...Ti(s,f,y,b));const C=[s,...E],R=await ze(t,v),T=[];let D=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&T.push(R[g]),p){const I=Ri(o,c,b);T.push(R[I[0]],R[I[1]])}if(D=[...D,{placement:o,overflows:T}],!T.every(I=>I<=0)){var F,j;const I=(((F=i.flip)==null?void 0:F.index)||0)+1,V=C[I];if(V)return{data:{index:I,overflows:D},reset:{placement:V}};let N=(j=D.filter(_=>_.overflows[0]<=0).sort((_,O)=>_.overflows[1]-O.overflows[1])[0])==null?void 0:j.placement;if(!N)switch(h){case"bestFit":{var M;const _=(M=D.filter(O=>{if(P){const W=he(O.placement);return W===w||W==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(W=>W>0).reduce((W,X)=>W+X,0)]).sort((O,W)=>O[1]-W[1])[0])==null?void 0:M[0];_&&(N=_);break}case"initialPlacement":N=s;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function Sn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function bn(e){return Ei.some(t=>e[t]>=0)}const Mi=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ae(e,t);switch(r){case"referenceHidden":{const i=await ze(t,{...o,elementContext:"reference"}),c=Sn(i,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:bn(c)}}}case"escaped":{const i=await ze(t,{...o,altBoundary:!0}),c=Sn(i,n.floating);return{data:{escapedOffsets:c,escaped:bn(c)}}}default:return{}}}}};async function Li(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),c=le(n),s=_e(n),l=he(n)==="y",u=["left","top"].includes(c)?-1:1,d=i&&l?-1:1,p=ae(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof y=="number"&&(h=s==="end"?y*-1:y),l?{x:h*d,y:m*u}:{x:m*u,y:h*d}}const $i=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:c,middlewareData:s}=t,l=await Li(t,e);return c===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:c}}}}},ki=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:c=!1,limiter:s={fn:v=>{let{x:g,y:w}=v;return{x:g,y:w}}},...l}=ae(e,t),u={x:n,y:r},d=await ze(t,l),p=he(le(o)),m=on(p);let h=u[m],y=u[p];if(i){const v=m==="y"?"top":"left",g=m==="y"?"bottom":"right",w=h+d[v],x=h-d[g];h=Vt(w,h,x)}if(c){const v=p==="y"?"top":"left",g=p==="y"?"bottom":"right",w=y+d[v],x=y-d[g];y=Vt(w,y,x)}const f=s.fn({...t,[m]:h,[p]:y});return{...f,data:{x:f.x-n,y:f.y-r,enabled:{[m]:i,[p]:c}}}}}},Fi=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:c}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=ae(e,t),d={x:n,y:r},p=he(o),m=on(p);let h=d[m],y=d[p];const f=ae(s,t),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(l){const x=m==="y"?"height":"width",b=i.reference[m]-i.floating[x]+v.mainAxis,E=i.reference[m]+i.reference[x]-v.mainAxis;h<b?h=b:h>E&&(h=E)}if(u){var g,w;const x=m==="y"?"width":"height",b=["top","left"].includes(le(o)),E=i.reference[p]-i.floating[x]+(b&&((g=c.offset)==null?void 0:g[p])||0)+(b?0:v.crossAxis),P=i.reference[p]+i.reference[x]+(b?0:((w=c.offset)==null?void 0:w[p])||0)-(b?v.crossAxis:0);y<E?y=E:y>P&&(y=P)}return{[m]:h,[p]:y}}}},ji=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:c,elements:s}=t,{apply:l=()=>{},...u}=ae(e,t),d=await ze(t,u),p=le(o),m=_e(o),h=he(o)==="y",{width:y,height:f}=i.floating;let v,g;p==="top"||p==="bottom"?(v=p,g=m===(await(c.isRTL==null?void 0:c.isRTL(s.floating))?"start":"end")?"left":"right"):(g=p,v=m==="end"?"top":"bottom");const w=f-d.top-d.bottom,x=y-d.left-d.right,b=pe(f-d[v],w),E=pe(y-d[g],x),P=!t.middlewareData.shift;let C=b,R=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=w),P&&!m){const D=Z(d.left,0),F=Z(d.right,0),j=Z(d.top,0),M=Z(d.bottom,0);h?R=y-2*(D!==0||F!==0?D+F:Z(d.left,d.right)):C=f-2*(j!==0||M!==0?j+M:Z(d.top,d.bottom))}await l({...t,availableWidth:R,availableHeight:C});const T=await c.getDimensions(s.floating);return y!==T.width||f!==T.height?{reset:{rects:!0}}:{}}}};function ht(){return typeof window<"u"}function Me(e){return ar(e)?(e.nodeName||"").toLowerCase():"#document"}function q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ie(e){var t;return(t=(ar(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ar(e){return ht()?e instanceof Node||e instanceof q(e).Node:!1}function ee(e){return ht()?e instanceof Element||e instanceof q(e).Element:!1}function oe(e){return ht()?e instanceof HTMLElement||e instanceof q(e).HTMLElement:!1}function En(e){return!ht()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof q(e).ShadowRoot}function Ge(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=te(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Wi(e){return["table","td","th"].includes(Me(e))}function vt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function an(e){const t=ln(),n=ee(e)?te(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Bi(e){let t=ve(e);for(;oe(t)&&!Ie(t);){if(an(t))return t;if(vt(t))return null;t=ve(t)}return null}function ln(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ie(e){return["html","body","#document"].includes(Me(e))}function te(e){return q(e).getComputedStyle(e)}function gt(e){return ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ve(e){if(Me(e)==="html")return e;const t=e.assignedSlot||e.parentNode||En(e)&&e.host||ie(e);return En(t)?t.host:t}function lr(e){const t=ve(e);return Ie(t)?e.ownerDocument?e.ownerDocument.body:e.body:oe(t)&&Ge(t)?t:lr(t)}function Ye(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=lr(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),c=q(o);if(i){const s=Ut(c);
vendor: 7,112 bytes, line 9
9return t.concat(c,c.visualViewport||[],Ge(o)?o:[],s&&n?Ye(s):[])}return t.concat(o,Ye(o,[],n))}function Ut(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ur(e){const t=te(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=oe(e),i=o?e.offsetWidth:n,c=o?e.offsetHeight:r,s=at(n)!==i||at(r)!==c;return s&&(n=i,r=c),{width:n,height:r,$:s}}function un(e){return ee(e)?e:e.contextElement}function Ne(e){const t=un(e);if(!oe(t))return me(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ur(t);let c=(i?at(n.width):n.width)/r,s=(i?at(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!s||!Number.isFinite(s))&&(s=1),{x:c,y:s}}const Vi=me(0);function fr(e){const t=q(e);return!ln()||!t.visualViewport?Vi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Hi(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==q(e)?!1:t}function Se(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=un(e);let c=me(1);t&&(r?ee(r)&&(c=Ne(r)):c=Ne(e));const s=Hi(i,n,r)?fr(i):me(0);let l=(o.left+s.x)/c.x,u=(o.top+s.y)/c.y,d=o.width/c.x,p=o.height/c.y;if(i){const m=q(i),h=r&&ee(r)?q(r):r;let y=m,f=Ut(y);for(;f&&r&&h!==y;){const v=Ne(f),g=f.getBoundingClientRect(),w=te(f),x=g.left+(f.clientLeft+parseFloat(w.paddingLeft))*v.x,b=g.top+(f.clientTop+parseFloat(w.paddingTop))*v.y;l*=v.x,u*=v.y,d*=v.x,p*=v.y,l+=x,u+=b,y=q(f),f=Ut(y)}}return ut({width:d,height:p,x:l,y:u})}function Ui(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",c=ie(r),s=t?vt(t.floating):!1;if(r===c||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=me(1);const d=me(0),p=oe(r);if((p||!p&&!i)&&((Me(r)!=="body"||Ge(c))&&(l=gt(r)),oe(r))){const m=Se(r);u=Ne(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x,y:n.y*u.y-l.scrollTop*u.y+d.y}}function Ki(e){return Array.from(e.getClientRects())}function Kt(e,t){const n=gt(e).scrollLeft;return t?t.left+n:Se(ie(e)).left+n}function zi(e){const t=ie(e),n=gt(e),r=e.ownerDocument.body,o=Z(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Z(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+Kt(e);const s=-n.scrollTop;return te(r).direction==="rtl"&&(c+=Z(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:c,y:s}}function Yi(e,t){const n=q(e),r=ie(e),o=n.visualViewport;let i=r.clientWidth,c=r.clientHeight,s=0,l=0;if(o){i=o.width,c=o.height;const u=ln();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:c,x:s,y:l}}function Xi(e,t){const n=Se(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=oe(e)?Ne(e):me(1),c=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:c,height:s,x:l,y:u}}function Cn(e,t,n){let r;if(t==="viewport")r=Yi(e,n);else if(t==="document")r=zi(ie(e));else if(ee(t))r=Xi(t,n);else{const o=fr(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return ut(r)}function dr(e,t){const n=ve(e);return n===t||!ee(n)||Ie(n)?!1:te(n).position==="fixed"||dr(n,t)}function Gi(e,t){const n=t.get(e);if(n)return n;let r=Ye(e,[],!1).filter(s=>ee(s)&&Me(s)!=="body"),o=null;const i=te(e).position==="fixed";let c=i?ve(e):e;for(;ee(c)&&!Ie(c);){const s=te(c),l=an(c);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ge(c)&&!l&&dr(e,c))?r=r.filter(d=>d!==c):o=s,c=ve(c)}return t.set(e,r),r}function Zi(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const c=[...n==="clippingAncestors"?vt(t)?[]:Gi(t,this._c):[].concat(n),r],s=c[0],l=c.reduce((u,d)=>{const p=Cn(t,d,o);return u.top=Z(p.top,u.top),u.right=pe(p.right,u.right),u.bottom=pe(p.bottom,u.bottom),u.left=Z(p.left,u.left),u},Cn(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function qi(e){const{width:t,height:n}=ur(e);return{width:t,height:n}}function Qi(e,t,n){const r=oe(t),o=ie(t),i=n==="fixed",c=Se(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=me(0);if(r||!r&&!i)if((Me(t)!=="body"||Ge(o))&&(s=gt(t)),r){const h=Se(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&(l.x=Kt(o));let u=0,d=0;if(o&&!r&&!i){const h=o.getBoundingClientRect();d=h.top+s.scrollTop,u=h.left+s.scrollLeft-Kt(o,h)}const p=c.left+s.scrollLeft-l.x-u,m=c.top+s.scrollTop-l.y-d;return{x:p,y:m,width:c.width,height:c.height}}function Rt(e){return te(e).position==="static"}function Pn(e,t){if(!oe(e)||te(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ie(e)===n&&(n=n.ownerDocument.body),n}function pr(e,t){const n=q(e);if(vt(e))return n;if(!oe(e)){let o=ve(e);for(;o&&!Ie(o);){if(ee(o)&&!Rt(o))return o;o=ve(o)}return n}let r=Pn(e,t);for(;r&&Wi(r)&&Rt(r);)r=Pn(r,t);return r&&Ie(r)&&Rt(r)&&!an(r)?n:r||Bi(e)||n}const Ji=async function(e){const t=this.getOffsetParent||pr,n=this.getDimensions,r=await n(e.floating);return{reference:Qi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function es(e){return te(e).direction==="rtl"}const ts={convertOffsetParentRelativeRectToViewportRelativeRect:Ui,getDocumentElement:ie,getClippingRect:Zi,getOffsetParent:pr,getElementRects:Ji,getClientRects:Ki,getDimensions:qi,getScale:Ne,isElement:ee,isRTL:es};function ns(e,t){let n=null,r;const o=ie(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function c(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:u,top:d,width:p,height:m}=e.getBoundingClientRect();if(s||t(),!p||!m)return;const h=Je(d),y=Je(o.clientWidth-(u+p)),f=Je(o.clientHeight-(d+m)),v=Je(u),w={rootMargin:-h+"px "+-y+"px "+-f+"px "+-v+"px",threshold:Z(0,pe(1,l))||1};let x=!0;function b(E){const P=E[0].intersectionRatio;if(P!==l){if(!x)return c();P?c(!1,P):r=setTimeout(()=>{c(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(b,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,w)}n.observe(e)}return c(!0),i}function rs(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=un(e),d=o||i?[...u?Ye(u):[],...Ye(t)]:[];d.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const p=u&&s?ns(u,n):null;let m=-1,h=null;c&&(h=new ResizeObserver(g=>{let[w]=g;w&&w.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let y,f=l?Se(e):null;l&&v();function v(){const g=Se(e);f&&(g.x!==f.x||g.y!==f.y||g.width!==f.width||g.height!==f.height)&&n(),f=g,y=requestAnimationFrame(v)}return n(),()=>{var g;d.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),p==null||p(),(g=h)==null||g.disconnect(),h=null,l&&cancelAnimationFrame(y)}}const os=$i,is=ki,ss=_i,cs=ji,as=Mi,Rn=Ii,ls=Fi,us=(e,t,n)=>{const r=new Map,o={platform:ts,...n},i={...o.platform,_c:r};return Di(e,t,{...o,platform:i})};var ct=typeof document<"u"?a.useLayoutEffect:a.useEffect;function ft(e,t){if(e===t)return!0;
vendor: 38,240 bytes, lines 9-46
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(!ft(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)&&!ft(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function mr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function An(e,t){const n=mr(e);return Math.round(t*n)/n}function At(e){const t=a.useRef(e);return ct(()=>{t.current=e}),t}function fs(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:c}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[d,p]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=a.useState(r);ft(m,r)||h(r);const[y,f]=a.useState(null),[v,g]=a.useState(null),w=a.useCallback(O=>{O!==P.current&&(P.current=O,f(O))},[]),x=a.useCallback(O=>{O!==C.current&&(C.current=O,g(O))},[]),b=i||y,E=c||v,P=a.useRef(null),C=a.useRef(null),R=a.useRef(d),T=l!=null,D=At(l),F=At(o),j=At(u),M=a.useCallback(()=>{if(!P.current||!C.current)return;const O={placement:t,strategy:n,middleware:m};F.current&&(O.platform=F.current),us(P.current,C.current,O).then(W=>{const X={...W,isPositioned:j.current!==!1};I.current&&!ft(R.current,X)&&(R.current=X,Xe.flushSync(()=>{p(X)}))})},[m,t,n,F,j]);ct(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(O=>({...O,isPositioned:!1})))},[u]);const I=a.useRef(!1);ct(()=>(I.current=!0,()=>{I.current=!1}),[]),ct(()=>{if(b&&(P.current=b),E&&(C.current=E),b&&E){if(D.current)return D.current(b,E,M);M()}},[b,E,M,D,T]);const V=a.useMemo(()=>({reference:P,floating:C,setReference:w,setFloating:x}),[w,x]),N=a.useMemo(()=>({reference:b,floating:E}),[b,E]),_=a.useMemo(()=>{const O={position:n,left:0,top:0};if(!N.floating)return O;const W=An(N.floating,d.x),X=An(N.floating,d.y);return s?{...O,transform:"translate("+W+"px, "+X+"px)",...mr(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:X}},[n,s,N.floating,d.x,d.y]);return a.useMemo(()=>({...d,update:M,refs:V,elements:N,floatingStyles:_}),[d,M,V,N,_])}const ds=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?Rn({element:r.current,padding:o}).fn(n):{}:r?Rn({element:r,padding:o}).fn(n):{}}}},ps=(e,t)=>({...os(e),options:[e,t]}),ms=(e,t)=>({...is(e),options:[e,t]}),hs=(e,t)=>({...ls(e),options:[e,t]}),vs=(e,t)=>({...ss(e),options:[e,t]}),gs=(e,t)=>({...cs(e),options:[e,t]}),ys=(e,t)=>({...as(e),options:[e,t]}),ws=(e,t)=>({...ds(e),options:[e,t]});var xs="Arrow",hr=a.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return S.jsx(U.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:S.jsx("polygon",{points:"0,0 30,0 15,10"})})});hr.displayName=xs;var Ss=hr;function bs(e,t=[]){let n=[];function r(i,c){const s=a.createContext(c),l=n.length;n=[...n,c];function u(p){const{scope:m,children:h,...y}=p,f=(m==null?void 0:m[e][l])||s,v=a.useMemo(()=>y,Object.values(y));return S.jsx(f.Provider,{value:v,children:h})}function d(p,m){const h=(m==null?void 0:m[e][l])||s,y=a.useContext(h);if(y)return y;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const o=()=>{const i=n.map(c=>a.createContext(c));return function(s){const l=(s==null?void 0:s[e])||i;return a.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,Es(o,...t)]}function Es(...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 c=r.reduce((s,{useScope:l,scopeName:u})=>{const p=l(i)[`__scope${u}`];return{...s,...p}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function Cs(e){const[t,n]=a.useState(void 0);return Q(()=>{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 c,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;c=u.inlineSize,s=u.blockSize}else c=e.offsetWidth,s=e.offsetHeight;n({width:c,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var fn="Popper",[vr,gr]=bs(fn),[Ps,yr]=vr(fn),wr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=a.useState(null);return S.jsx(Ps,{scope:t,anchor:r,onAnchorChange:o,children:n})};wr.displayName=fn;var xr="PopperAnchor",Sr=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=yr(xr,n),c=a.useRef(null),s=K(t,c);return a.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||c.current)}),r?null:S.jsx(U.div,{...o,ref:s})});Sr.displayName=xr;var dn="PopperContent",[Rs,As]=vr(dn),br=a.forwardRef((e,t)=>{var A,B,z,k,L,$;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:c=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:y,...f}=e,v=yr(dn,n),[g,w]=a.useState(null),x=K(t,G=>w(G)),[b,E]=a.useState(null),P=Cs(b),C=(P==null?void 0:P.width)??0,R=(P==null?void 0:P.height)??0,T=r+(i!=="center"?"-"+i:""),D=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},F=Array.isArray(u)?u:[u],j=F.length>0,M={padding:D,boundary:F.filter(Ts),altBoundary:j},{refs:I,floatingStyles:V,placement:N,isPositioned:_,middlewareData:O}=fs({strategy:"fixed",placement:T,whileElementsMounted:(...G)=>rs(...G,{animationFrame:h==="always"}),elements:{reference:v.anchor},middleware:[ps({mainAxis:o+R,alignmentAxis:c}),l&&ms({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?hs():void 0,...M}),l&&vs({...M}),gs({...M,apply:({elements:G,rects:re,availableWidth:Fe,availableHeight:je})=>{const{width:We,height:ei}=re.reference,Qe=G.floating.style;Qe.setProperty("--radix-popper-available-width",`${Fe}px`),Qe.setProperty("--radix-popper-available-height",`${je}px`),Qe.setProperty("--radix-popper-anchor-width",`${We}px`),Qe.setProperty("--radix-popper-anchor-height",`${ei}px`)}}),b&&ws({element:b,padding:s}),Ns({arrowWidth:C,arrowHeight:R}),m&&ys({strategy:"referenceHidden",...M})]}),[W,X]=Pr(N),se=ce(y);Q(()=>{_&&(se==null||se())},[_,se]);const $e=(A=O.arrow)==null?void 0:A.x,ke=(B=O.arrow)==null?void 0:B.y,ue=((z=O.arrow)==null?void 0:z.centerOffset)!==0,[Ce,we]=a.useState();return Q(()=>{g&&we(window.getComputedStyle(g).zIndex)},[g]),S.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:_?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ce,"--radix-popper-transform-origin":[(k=O.transformOrigin)==null?void 0:k.x,(L=O.transformOrigin)==null?void 0:L.y].join(" "),...(($=O.hide)==null?void 0:$.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:S.jsx(Rs,{scope:n,placedSide:W,onArrowChange:E,arrowX:$e,arrowY:ke,shouldHideArrow:ue,children:S.jsx(U.div,{"data-side":W,"data-align":X,...f,ref:x,style:{...f.style,animation:_?void 0:"none"}})})})});br.displayName=dn;var Er="PopperArrow",Os={top:"bottom",right:"left",bottom:"top",left:"right"},Cr=a.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=As(Er,r),c=Os[i.placedSide];return S.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[c]: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:S.jsx(Ss,{...o,ref:n,style:{...o.style,display:"block"}})})});Cr.displayName=Er;function Ts(e){return e!==null}var Ns=e=>({name:"transformOrigin",options:e,fn(t){var v,g,w;const{placement:n,rects:r,middlewareData:o}=t,c=((v=o.arrow)==null?void 0:v.centerOffset)!==0,s=c?0:e.arrowWidth,l=c?0:e.arrowHeight,[u,d]=Pr(n),p={start:"0%",center:"50%",end:"100%"}[d],m=(((g=o.arrow)==null?void 0:g.x)??0)+s/2,h=(((w=o.arrow)==null?void 0:w.y)??0)+l/2;let y="",f="";return u==="bottom"?(y=c?p:`${m}px`,f=`${-l}px`):u==="top"?(y=c?p:`${m}px`,f=`${r.floating.height+l}px`):u==="right"?(y=`${-l}px`,f=c?p:`${h}px`):u==="left"&&(y=`${r.floating.width+l}px`,f=c?p:`${h}px`),{data:{x:y,y:f}}}});function Pr(e){const[t,n="center"]=e.split("-");return[t,n]}var Ds=wr,Is=Sr,_s=br,Ms=Cr;function Ve(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function On(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Rr(...e){return t=>{let n=!1;const r=e.map(o=>{const i=On(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():On(e[o],null)}}}}function yt(...e){return a.useCallback(Rr(...e),e)}function Ls(e,t){const n=a.createContext(t),r=i=>{const{children:c,...s}=i,l=a.useMemo(()=>s,Object.values(s));return S.jsx(n.Provider,{value:l,children:c})};r.displayName=e+"Provider";function o(i){const c=a.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function $s(e,t=[]){let n=[];function r(i,c){const s=a.createContext(c),l=n.length;n=[...n,c];const u=p=>{var g;const{scope:m,children:h,...y}=p,f=((g=m==null?void 0:m[e])==null?void 0:g[l])||s,v=a.useMemo(()=>y,Object.values(y));return S.jsx(f.Provider,{value:v,children:h})};u.displayName=i+"Provider";function d(p,m){var f;const h=((f=m==null?void 0:m[e])==null?void 0:f[l])||s,y=a.useContext(h);if(y)return y;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(c=>a.createContext(c));return function(s){const l=(s==null?void 0:s[e])||i;return a.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,ks(o,...t)]}function ks(...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 c=r.reduce((s,{useScope:l,scopeName:u})=>{const p=l(i)[`__scope${u}`];return{...s,...p}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}var Fs=globalThis!=null&&globalThis.document?a.useLayoutEffect:()=>{},js=tn[" useId ".trim().toString()]||(()=>{}),Ws=0;function Ot(e){const[t,n]=a.useState(js());return Fs(()=>{e||n(r=>r??String(Ws++))},[e]),e||(t?`radix-${t}`:"")}var Bs=globalThis!=null&&globalThis.document?a.useLayoutEffect:()=>{},Vs=tn[" useInsertionEffect ".trim().toString()]||Bs;function Hs({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,c]=Us({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:o;{const d=a.useRef(e!==void 0);a.useEffect(()=>{const p=d.current;p!==s&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=s},[s,r])}const u=a.useCallback(d=>{var p;if(s){const m=Ks(d)?d(e):d;m!==e&&((p=c.current)==null||p.call(c,m))}else i(d)},[s,e,i,c]);return[l,u]}function Us({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return Vs(()=>{i.current=t},[t]),a.useEffect(()=>{var c;o.current!==n&&((c=i.current)==null||c.call(i,n),o.current=n)},[n,o]),[n,r,i]}function Ks(e){return typeof e=="function"}function Tt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Tn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ar(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Tn(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():Tn(e[o],null)}}}}function Or(...e){return a.useCallback(Ar(...e),e)}function zs(e){const t=Ys(e),n=a.forwardRef((r,o)=>{const{children:i,...c}=r,s=a.Children.toArray(i),l=s.find(Gs);if(l){const u=l.props.children,d=s.map(p=>p===l?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:p);return S.jsx(t,{...c,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return S.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Ys(e){const t=a.forwardRef((n,r)=>{const{children:o,...i}=n;if(a.isValidElement(o)){const c=qs(o),s=Zs(i,o.props);return o.type!==a.Fragment&&(s.ref=r?Ar(r,c):c),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xs=Symbol("radix.slottable");function Gs(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Xs}function Zs(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]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function qs(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Qs=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Tr=Qs.reduce((e,t)=>{const n=zs(`Primitive.${t}`),r=a.forwardRef((o,i)=>{const{asChild:c,...s}=o,l=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Js(e,t){e&&Xe.flushSync(()=>e.dispatchEvent(t))}function Nr(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function ec(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function tc(e,t=globalThis==null?void 0:globalThis.document){const n=ec(e);a.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 nc="DismissableLayer",zt="dismissableLayer.update",rc="dismissableLayer.pointerDownOutside",oc="dismissableLayer.focusOutside",Nn,Dr=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ir=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:c,onDismiss:s,...l}=e,u=a.useContext(Dr),[d,p]=a.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=a.useState({}),y=Or(t,C=>p(C)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=f.indexOf(v),w=d?f.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,b=w>=g,E=cc(C=>{const R=C.target,T=[...u.branches].some(D=>D.contains(R));!b||T||(o==null||o(C),c==null||c(C),C.defaultPrevented||s==null||s())},m),P=ac(C=>{const R=C.target;[...u.branches].some(D=>D.contains(R))||(i==null||i(C),c==null||c(C),C.defaultPrevented||s==null||s())},m);return tc(C=>{w===u.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},m),a.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Nn=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Dn(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Nn)}},[d,m,n,u]),a.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Dn())},[d,u]),a.useEffect(()=>{const C=()=>h({});return document.addEventListener(zt,C),()=>document.removeEventListener(zt,C)},[]),S.jsx(Tr.div,{...l,ref:y,style:{pointerEvents:x?b?"auto":"none":void 0,...e.style},onFocusCapture:Tt(e.onFocusCapture,P.onFocusCapture),onBlurCapture:Tt(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:Tt(e.onPointerDownCapture,E.onPointerDownCapture)})});Ir.displayName=nc;var ic="DismissableLayerBranch",sc=a.forwardRef((e,t)=>{const n=a.useContext(Dr),r=a.useRef(null),o=Or(t,r);return a.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),S.jsx(Tr.div,{...e,ref:o})});sc.displayName=ic;function cc(e,t=globalThis==null?void 0:globalThis.document){const n=Nr(e),r=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){_r(rc,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ac(e,t=globalThis==null?void 0:globalThis.document){const n=Nr(e),r=a.useRef(!1);return a.useEffect(()=>{const o=i=>{i.target&&!r.current&&_r(oc,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 Dn(){const e=new CustomEvent(zt);document.dispatchEvent(e)}function _r(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?Js(o,i):o.dispatchEvent(i)}function In(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Mr(...e){return t=>{let n=!1;const r=e.map(o=>{const i=In(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():In(e[o],null)}}}}function lc(...e){return a.useCallback(Mr(...e),e)}function uc(e){const t=fc(e),n=a.forwardRef((r,o)=>{const{children:i,...c}=r,s=a.Children.toArray(i),l=s.find(pc);if(l){const u=l.props.children,d=s.map(p=>p===l?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:p);return S.jsx(t,{...c,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return S.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function fc(e){const t=a.forwardRef((n,r)=>{const{children:o,...i}=n;if(a.isValidElement(o)){const c=hc(o),s=mc(i,o.props);return o.type!==a.Fragment&&(s.ref=r?Mr(r,c):c),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dc=Symbol("radix.slottable");function pc(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dc}function mc(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]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function hc(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var vc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],gc=vc.reduce((e,t)=>{const n=uc(`Primitive.${t}`),r=a.forwardRef((o,i)=>{const{asChild:c,...s}=o,l=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function _n(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var Nt="focusScope.autoFocusOnMount",Dt="focusScope.autoFocusOnUnmount",Mn={bubbles:!1,cancelable:!0},yc="FocusScope",Lr=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...c}=e,[s,l]=a.useState(null),u=_n(o),d=_n(i),p=a.useRef(null),m=lc(t,f=>l(f)),h=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let f=function(x){if(h.paused||!s)return;const b=x.target;s.contains(b)?p.current=b:fe(p.current,{select:!0})},v=function(x){if(h.paused||!s)return;const b=x.relatedTarget;b!==null&&(s.contains(b)||fe(p.current,{select:!0}))},g=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&fe(s)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const w=new MutationObserver(g);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),w.disconnect()}}},[r,s,h.paused]),a.useEffect(()=>{if(s){$n.add(h);const f=document.activeElement;if(!s.contains(f)){const g=new CustomEvent(Nt,Mn);s.addEventListener(Nt,u),s.dispatchEvent(g),g.defaultPrevented||(wc(Cc($r(s)),{select:!0}),document.activeElement===f&&fe(s))}return()=>{s.removeEventListener(Nt,u),setTimeout(()=>{const g=new CustomEvent(Dt,Mn);s.addEventListener(Dt,d),s.dispatchEvent(g),g.defaultPrevented||fe(f??document.body,{select:!0}),s.removeEventListener(Dt,d),$n.remove(h)},0)}}},[s,u,d,h]);const y=a.useCallback(f=>{if(!n&&!r||h.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,g=document.activeElement;if(v&&g){const w=f.currentTarget,[x,b]=xc(w);x&&b?!f.shiftKey&&g===b?(f.preventDefault(),n&&fe(x,{select:!0})):f.shiftKey&&g===x&&(f.preventDefault(),n&&fe(b,{select:!0})):g===w&&f.preventDefault()}},[n,r,h.paused]);return S.jsx(gc.div,{tabIndex:-1,...c,ref:m,onKeyDown:y})});Lr.displayName=yc;function wc(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(fe(r,{select:t}),document.activeElement!==n)return}function xc(e){const t=$r(e),n=Ln(t,e),r=Ln(t.reverse(),e);return[n,r]}function $r(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 Ln(e,t){for(const n of e)if(!Sc(n,{upTo:t}))return n}function Sc(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 bc(e){return e instanceof HTMLInputElement&&"select"in e}function fe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&bc(e)&&t&&e.select()}}var $n=Ec();function Ec(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=kn(e,t),e.unshift(t)},remove(t){var n;e=kn(e,t),(n=e[0])==null||n.resume()}}}function kn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Cc(e){return e.filter(t=>t.tagName!=="A")}function Fn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Pc(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Fn(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():Fn(e[o],null)}}}}function Rc(e){const t=Ac(e),n=a.forwardRef((r,o)=>{const{children:i,...c}=r,s=a.Children.toArray(i),l=s.find(Tc);if(l){const u=l.props.children,d=s.map(p=>p===l?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:p);return S.jsx(t,{...c,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return S.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Ac(e){const t=a.forwardRef((n,r)=>{const{children:o,...i}=n;if(a.isValidElement(o)){const c=Dc(o),s=Nc(i,o.props);return o.type!==a.Fragment&&(s.ref=r?Pc(r,c):c),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Oc=Symbol("radix.slottable");function Tc(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Oc}function Nc(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]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Dc(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ic=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_c=Ic.reduce((e,t)=>{const n=Rc(`Primitive.${t}`),r=a.forwardRef((o,i)=>{const{asChild:c,...s}=o,l=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Mc=globalThis!=null&&globalThis.document?a.useLayoutEffect:()=>{},Lc="Portal",kr=a.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,i]=a.useState(!1);Mc(()=>i(!0),[]);const c=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return c?rr.createPortal(S.jsx(_c.div,{...r,ref:t}),c):null});kr.displayName=Lc;var jn=globalThis!=null&&globalThis.document?a.useLayoutEffect:()=>{};function $c(e,t){return a.useReducer((n,r)=>t[n][r]??n,e)}var wt=e=>{const{present:t,children:n}=e,r=kc(t),o=typeof n=="function"?n({present:r.isPresent}):a.Children.only(n),i=yt(r.ref,Fc(o));return typeof n=="function"||r.isPresent?a.cloneElement(o,{ref:i}):null};wt.displayName="Presence";function kc(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),i=a.useRef("none"),c=e?"mounted":"unmounted",[s,l]=$c(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const u=et(r.current);i.current=s==="mounted"?u:"none"},[s]),jn(()=>{const u=r.current,d=o.current;if(d!==e){const m=i.current,h=et(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&m!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),jn(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=h=>{const f=et(r.current).includes(h.animationName);if(h.target===t&&f&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},m=h=>{h.target===t&&(i.current=et(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:a.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function et(e){return(e==null?void 0:e.animationName)||"none"}function Fc(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Fr(e){const t=jc(e),n=a.forwardRef((r,o)=>{const{children:i,...c}=r,s=a.Children.toArray(i),l=s.find(Bc);if(l){const u=l.props.children,d=s.map(p=>p===l?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:p);return S.jsx(t,{...c,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return S.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function jc(e){const t=a.forwardRef((n,r)=>{const{children:o,...i}=n;if(a.isValidElement(o)){const c=Hc(o),s=Vc(i,o.props);return o.type!==a.Fragment&&(s.ref=r?Rr(r,c):c),a.cloneElement(o,s)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Wc=Symbol("radix.slottable");function Bc(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Wc}function Vc(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]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Hc(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Uc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ze=Uc.reduce((e,t)=>{const n=Fr(`Primitive.${t}`),r=a.forwardRef((o,i)=>{const{asChild:c,...s}=o,l=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),It=0;function Kc(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Wn()),document.body.insertAdjacentElement("beforeend",e[1]??Wn()),It++,()=>{It===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),It--}},[])}function Wn(){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 Y=function(){return Y=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},Y.apply(this,arguments)};function pn(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}function jr(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 He="right-scroll-bar-position",Ue="width-before-scroll-bar",zc="with-scroll-bars-hidden",Yc="--removed-body-scroll-bar-size";function _t(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Xc(e,t){var n=a.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 Gc=typeof window<"u"?a.useLayoutEffect:a.useEffect,Bn=new WeakMap;function Wr(e,t){var n=Xc(null,function(r){return e.forEach(function(o){return _t(o,r)})});return Gc(function(){var r=Bn.get(n);if(r){var o=new Set(r),i=new Set(e),c=n.current;o.forEach(function(s){i.has(s)||_t(s,null)}),i.forEach(function(s){o.has(s)||_t(s,c)})}Bn.set(n,e)},[e]),n}function Zc(e){return e}function qc(e,t){t===void 0&&(t=Zc);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 c=t(i,r);return n.push(c),function(){n=n.filter(function(s){return s!==c})}},assignSyncMedium:function(i){for(r=!0;n.length;){var c=n;n=[],c.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var c=[];if(n.length){var s=n;n=[],s.forEach(i),c=n}var l=function(){var d=c;c=[],d.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){c.push(d),u()},filter:function(d){return c=c.filter(d),n}}}};return o}function Br(e){e===void 0&&(e={});var t=qc(null);return t.options=Y({async:!0,ssr:!1},e),t}var Vr=function(e){var t=e.sideCar,n=pn(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 a.createElement(r,Y({},n))};Vr.isSideCarExport=!0;function Hr(e,t){return e.useMedium(t),Vr}var Ur=Br(),Mt=function(){},xt=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:Mt,onWheelCapture:Mt,onTouchMoveCapture:Mt}),o=r[0],i=r[1],c=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,m=e.sideCar,h=e.noIsolation,y=e.inert,f=e.allowPinchZoom,v=e.as,g=v===void 0?"div":v,w=e.gapMode,x=pn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=m,E=Wr([n,t]),P=Y(Y({},x),o);return a.createElement(a.Fragment,null,d&&a.createElement(b,{sideCar:Ur,removeScrollBar:u,shards:p,noIsolation:h,inert:y,setCallbacks:i,allowPinchZoom:!!f,lockRef:n,gapMode:w}),c?a.cloneElement(a.Children.only(s),Y(Y({},P),{ref:E})):a.createElement(g,Y({},P,{className:l,ref:E}),s))});xt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xt.classNames={fullWidth:Ue,zeroRight:He};var Qc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Jc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qc();return t&&e.setAttribute("nonce",t),e}function ea(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ta(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var na=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Jc())&&(ea(t,n),ta(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ra=function(){var e=na();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},mn=function(){var e=ra(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},oa={left:0,top:0,right:0,gap:0},Lt=function(e){return parseInt(e||"",10)||0},ia=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[Lt(n),Lt(r),Lt(o)]},sa=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return oa;var t=ia(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])}},ca=mn(),De="data-scroll-locked",aa=function(e,t,n,r){var o=e.left,i=e.top,c=e.right,s=e.gap;return n===void 0&&(n="margin"),`
10  .`.concat(zc,` {
11   overflow: hidden `).concat(r,`;
12   padding-right: `).concat(s,"px ").concat(r,`;
13  }
14  body[`).concat(De,`] {
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(c,`px;
21    margin-left:0;
22    margin-top:0;
23    margin-right: `).concat(s,"px ").concat(r,`;
24    `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
25  }
26  
27  .`).concat(He,` {
28    right: `).concat(s,"px ").concat(r,`;
29  }
30  
31  .`).concat(Ue,` {
32    margin-right: `).concat(s,"px ").concat(r,`;
33  }
34  
35  .`).concat(He," .").concat(He,` {
36    right: 0 `).concat(r,`;
37  }
38  
39  .`).concat(Ue," .").concat(Ue,` {
40    margin-right: 0 `).concat(r,`;
41  }
42  
43  body[`).concat(De,`] {
44    `).concat(Yc,": ").concat(s,`px;
45  }
46`)},Vn=function(){var e=parseInt(document.body.getAttribute(De)||"0",10);return isFinite(e)?e:0},la=function(){a.useEffect(function(){return document.body.setAttribute(De,(Vn()+1).toString()),function(){var e=Vn()-1;e<=0?document.body.removeAttribute(De):document.body.setAttribute(De,e.toString())}},[])},Kr=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;la();var i=a.useMemo(function(){return sa(o)},[o]);return a.createElement(ca,{styles:aa(i,!t,o,n?"":"!important")})},Yt=!1;if(typeof window<"u")try{var tt=Object.defineProperty({},"passive",{get:function(){return Yt=!0,!0}});window.addEventListener("test",tt,tt),window.removeEventListener("test",tt,tt)}catch{Yt=!1}var Pe=Yt?{passive:!1}:!1,ua=function(e){return e.tagName==="TEXTAREA"},zr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ua(e)&&n[t]==="visible")},fa=function(e){return zr(e,"overflowY")},da=function(e){return zr(e,"overflowX")},Hn=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Yr(e,r);if(o){var i=Xr(e,r),c=i[1],s=i[2];if(c>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},pa=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ma=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Yr=function(e,t){return e==="v"?fa(t):da(t)},Xr=function(e,t){return e==="v"?pa(t):ma(t)},ha=function(e,t){return e==="h"&&t==="rtl"?-1:1},va=function(e,t,n,r,o){var i=ha(e,window.getComputedStyle(t).direction),c=i*r,s=n.target,l=t.contains(s),u=!1,d=c>0,p=0,m=0;do{var h=Xr(e,s),y=h[0],f=h[1],v=h[2],g=f-v-i*y;(y||g)&&Yr(e,s)&&(p+=g,m+=y),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));
vendor: 4,385 bytes, lines 46-49
46return(d&&(Math.abs(p)<1||!o)||!d&&(Math.abs(m)<1||!o))&&(u=!0),u},nt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Un=function(e){return[e.deltaX,e.deltaY]},Kn=function(e){return e&&"current"in e?e.current:e},ga=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ya=function(e){return`
47  .block-interactivity-`.concat(e,` {pointer-events: none;}
48  .allow-interactivity-`).concat(e,` {pointer-events: all;}
49`)},wa=0,Re=[];function xa(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(wa++)[0],i=a.useState(mn)[0],c=a.useRef(e);a.useEffect(function(){c.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=jr([e.lockRef.current],(e.shards||[]).map(Kn),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=a.useCallback(function(f,v){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!c.current.allowPinchZoom;var g=nt(f),w=n.current,x="deltaX"in f?f.deltaX:w[0]-g[0],b="deltaY"in f?f.deltaY:w[1]-g[1],E,P=f.target,C=Math.abs(x)>Math.abs(b)?"h":"v";if("touches"in f&&C==="h"&&P.type==="range")return!1;var R=Hn(C,P);if(!R)return!0;if(R?E=C:(E=C==="v"?"h":"v",R=Hn(C,P)),!R)return!1;if(!r.current&&"changedTouches"in f&&(x||b)&&(r.current=E),!E)return!0;var T=r.current||E;return va(T,v,f,T==="h"?x:b,!0)},[]),l=a.useCallback(function(f){var v=f;if(!(!Re.length||Re[Re.length-1]!==i)){var g="deltaY"in v?Un(v):nt(v),w=t.current.filter(function(E){return E.name===v.type&&(E.target===v.target||v.target===E.shadowParent)&&ga(E.delta,g)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}if(!w){var x=(c.current.shards||[]).map(Kn).filter(Boolean).filter(function(E){return E.contains(v.target)}),b=x.length>0?s(v,x[0]):!c.current.noIsolation;b&&v.cancelable&&v.preventDefault()}}},[]),u=a.useCallback(function(f,v,g,w){var x={name:f,delta:v,target:g,should:w,shadowParent:Sa(g)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(b){return b!==x})},1)},[]),d=a.useCallback(function(f){n.current=nt(f),r.current=void 0},[]),p=a.useCallback(function(f){u(f.type,Un(f),f.target,s(f,e.lockRef.current))},[]),m=a.useCallback(function(f){u(f.type,nt(f),f.target,s(f,e.lockRef.current))},[]);a.useEffect(function(){return Re.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Pe),document.addEventListener("touchmove",l,Pe),document.addEventListener("touchstart",d,Pe),function(){Re=Re.filter(function(f){return f!==i}),document.removeEventListener("wheel",l,Pe),document.removeEventListener("touchmove",l,Pe),document.removeEventListener("touchstart",d,Pe)}},[]);var h=e.removeScrollBar,y=e.inert;return a.createElement(a.Fragment,null,y?a.createElement(i,{styles:ya(o)}):null,h?a.createElement(Kr,{gapMode:e.gapMode}):null)}function Sa(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ba=Hr(Ur,xa);var Gr=a.forwardRef(function(e,t){return a.createElement(xt,Y({},e,{ref:t,sideCar:ba}))});Gr.classNames=xt.classNames;var Ea=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ae=new WeakMap,rt=new WeakMap,ot={},$t=0,Zr=function(e){return e&&(e.host||Zr(e.parentNode))},Ca=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Zr(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})},Pa=function(e,t,n,r){var o=Ca(t,Array.isArray(e)?e:[e]);ot[n]||(ot[n]=new WeakMap);var i=ot[n],c=[],s=new Set,l=new Set(o),u=function(p){!p||s.has(p)||(s.add(p),u(p.parentNode))};o.forEach(u);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(m){if(s.has(m))d(m);else try{var h=m.getAttribute(r),y=h!==null&&h!=="false",f=(Ae.get(m)||0)+1,v=(i.get(m)||0)+1;Ae.set(m,f),i.set(m,v),c.push(m),f===1&&y&&rt.set(m,!0),v===1&&m.setAttribute(n,"true"),y||m.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",m,g)}})};
vendor: 15,855 bytes, lines 49-53
49return d(t),s.clear(),$t++,function(){c.forEach(function(p){var m=Ae.get(p)-1,h=i.get(p)-1;Ae.set(p,m),i.set(p,h),m||(rt.has(p)||p.removeAttribute(r),rt.delete(p)),h||p.removeAttribute(n)}),$t--,$t||(Ae=new WeakMap,Ae=new WeakMap,rt=new WeakMap,ot={})}},qr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Ea(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Pa(r,o,n,"aria-hidden")):function(){return null}},St="Dialog",[Qr,$l]=$s(St),[Ra,ne]=Qr(St),Jr=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:c=!0}=e,s=a.useRef(null),l=a.useRef(null),[u,d]=Hs({prop:r,defaultProp:o??!1,onChange:i,caller:St});return S.jsx(Ra,{scope:t,triggerRef:s,contentRef:l,contentId:Ot(),titleId:Ot(),descriptionId:Ot(),open:u,onOpenChange:d,onOpenToggle:a.useCallback(()=>d(p=>!p),[d]),modal:c,children:n})};Jr.displayName=St;var eo="DialogTrigger",to=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ne(eo,n),i=yt(t,o.triggerRef);return S.jsx(Ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":gn(o.open),...r,ref:i,onClick:Ve(e.onClick,o.onOpenToggle)})});to.displayName=eo;var hn="DialogPortal",[Aa,no]=Qr(hn,{forceMount:void 0}),ro=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=ne(hn,t);return S.jsx(Aa,{scope:t,forceMount:n,children:a.Children.map(r,c=>S.jsx(wt,{present:n||i.open,children:S.jsx(kr,{asChild:!0,container:o,children:c})}))})};ro.displayName=hn;var dt="DialogOverlay",oo=a.forwardRef((e,t)=>{const n=no(dt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=ne(dt,e.__scopeDialog);return i.modal?S.jsx(wt,{present:r||i.open,children:S.jsx(Ta,{...o,ref:t})}):null});oo.displayName=dt;var Oa=Fr("DialogOverlay.RemoveScroll"),Ta=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ne(dt,n);return S.jsx(Gr,{as:Oa,allowPinchZoom:!0,shards:[o.contentRef],children:S.jsx(Ze.div,{"data-state":gn(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),be="DialogContent",io=a.forwardRef((e,t)=>{const n=no(be,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=ne(be,e.__scopeDialog);return S.jsx(wt,{present:r||i.open,children:i.modal?S.jsx(Na,{...o,ref:t}):S.jsx(Da,{...o,ref:t})})});io.displayName=be;var Na=a.forwardRef((e,t)=>{const n=ne(be,e.__scopeDialog),r=a.useRef(null),o=yt(t,n.contentRef,r);return a.useEffect(()=>{const i=r.current;if(i)return qr(i)},[]),S.jsx(so,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ve(e.onCloseAutoFocus,i=>{var c;i.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:Ve(e.onPointerDownOutside,i=>{const c=i.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&i.preventDefault()}),onFocusOutside:Ve(e.onFocusOutside,i=>i.preventDefault())})}),Da=a.forwardRef((e,t)=>{const n=ne(be,e.__scopeDialog),r=a.useRef(!1),o=a.useRef(!1);return S.jsx(so,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var c,s;(c=e.onCloseAutoFocus)==null||c.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(c))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),so=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...c}=e,s=ne(be,n),l=a.useRef(null),u=yt(t,l);return Kc(),S.jsxs(S.Fragment,{children:[S.jsx(Lr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:S.jsx(Ir,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":gn(s.open),...c,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),S.jsxs(S.Fragment,{children:[S.jsx(Ia,{titleId:s.titleId}),S.jsx(Ma,{contentRef:l,descriptionId:s.descriptionId})]})]})}),vn="DialogTitle",co=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ne(vn,n);return S.jsx(Ze.h2,{id:o.titleId,...r,ref:t})});co.displayName=vn;var ao="DialogDescription",lo=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ne(ao,n);return S.jsx(Ze.p,{id:o.descriptionId,...r,ref:t})});lo.displayName=ao;var uo="DialogClose",fo=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ne(uo,n);return S.jsx(Ze.button,{type:"button",...r,ref:t,onClick:Ve(e.onClick,()=>o.onOpenChange(!1))})});fo.displayName=uo;function gn(e){return e?"open":"closed"}var po="DialogTitleWarning",[kl,mo]=Ls(po,{contentName:be,titleName:vn,docsSlug:"dialog"}),Ia=({titleId:e})=>{const t=mo(po),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 a.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},_a="DialogDescriptionWarning",Ma=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mo(_a).contentName}}.`;return a.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Fl=Jr,jl=to,Wl=ro,Bl=oo,Vl=io,Hl=co,Ul=lo,Kl=fo,La=a.createContext(void 0);function $a(e){const t=a.useContext(La);return e||t||"ltr"}function zn(e,[t,n]){return Math.min(n,Math.max(t,e))}function ka(e){const t=a.useRef({value:e,previous:e});return a.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Fa(e,t=globalThis==null?void 0:globalThis.document){const n=ce(e);a.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 ja="DismissableLayer",Xt="dismissableLayer.update",Wa="dismissableLayer.pointerDownOutside",Ba="dismissableLayer.focusOutside",Yn,ho=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vo=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:c,onDismiss:s,...l}=e,u=a.useContext(ho),[d,p]=a.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=a.useState({}),y=K(t,C=>p(C)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=f.indexOf(v),w=d?f.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,b=w>=g,E=Ua(C=>{const R=C.target,T=[...u.branches].some(D=>D.contains(R));!b||T||(o==null||o(C),c==null||c(C),C.defaultPrevented||s==null||s())},m),P=Ka(C=>{const R=C.target;[...u.branches].some(D=>D.contains(R))||(i==null||i(C),c==null||c(C),C.defaultPrevented||s==null||s())},m);return Fa(C=>{w===u.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},m),a.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Yn=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Xn(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Yn)}},[d,m,n,u]),a.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Xn())},[d,u]),a.useEffect(()=>{const C=()=>h({});return document.addEventListener(Xt,C),()=>document.removeEventListener(Xt,C)},[]),S.jsx(U.div,{...l,ref:y,style:{pointerEvents:x?b?"auto":"none":void 0,...e.style},onFocusCapture:H(e.onFocusCapture,P.onFocusCapture),onBlurCapture:H(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:H(e.onPointerDownCapture,E.onPointerDownCapture)})});vo.displayName=ja;var Va="DismissableLayerBranch",Ha=a.forwardRef((e,t)=>{const n=a.useContext(ho),r=a.useRef(null),o=K(t,r);return a.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),S.jsx(U.div,{...e,ref:o})});Ha.displayName=Va;function Ua(e,t=globalThis==null?void 0:globalThis.document){const n=ce(e),r=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){go(Wa,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ka(e,t=globalThis==null?void 0:globalThis.document){const n=ce(e),r=a.useRef(!1);return a.useEffect(()=>{const o=i=>{i.target&&!r.current&&go(Ba,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 Xn(){const e=new CustomEvent(Xt);document.dispatchEvent(e)}function go(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?yi(o,i):o.dispatchEvent(i)}var kt=0;function za(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Gn()),document.body.insertAdjacentElement("beforeend",e[1]??Gn()),kt++,()=>{kt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),kt--}},[])}function Gn(){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 Ft="focusScope.autoFocusOnMount",jt="focusScope.autoFocusOnUnmount",Zn={bubbles:!1,cancelable:!0},Ya="FocusScope",yo=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...c}=e,[s,l]=a.useState(null),u=ce(o),d=ce(i),p=a.useRef(null),m=K(t,f=>l(f)),h=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let f=function(x){if(h.paused||!s)return;const b=x.target;s.contains(b)?p.current=b:de(p.current,{select:!0})},v=function(x){if(h.paused||!s)return;const b=x.relatedTarget;b!==null&&(s.contains(b)||de(p.current,{select:!0}))},g=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&de(s)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const w=new MutationObserver(g);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),w.disconnect()}}},[r,s,h.paused]),a.useEffect(()=>{if(s){Qn.add(h);const f=document.activeElement;if(!s.contains(f)){const g=new CustomEvent(Ft,Zn);s.addEventListener(Ft,u),s.dispatchEvent(g),g.defaultPrevented||(Xa(Ja(wo(s)),{select:!0}),document.activeElement===f&&de(s))}return()=>{s.removeEventListener(Ft,u),setTimeout(()=>{const g=new CustomEvent(jt,Zn);s.addEventListener(jt,d),s.dispatchEvent(g),g.defaultPrevented||de(f??document.body,{select:!0}),s.removeEventListener(jt,d),Qn.remove(h)},0)}}},[s,u,d,h]);const y=a.useCallback(f=>{if(!n&&!r||h.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,g=document.activeElement;if(v&&g){const w=f.currentTarget,[x,b]=Ga(w);x&&b?!f.shiftKey&&g===b?(f.preventDefault(),n&&de(x,{select:!0})):f.shiftKey&&g===x&&(f.preventDefault(),n&&de(b,{select:!0})):g===w&&f.preventDefault()}},[n,r,h.paused]);return S.jsx(U.div,{tabIndex:-1,...c,ref:m,onKeyDown:y})});yo.displayName=Ya;function Xa(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(de(r,{select:t}),document.activeElement!==n)return}function Ga(e){const t=wo(e),n=qn(t,e),r=qn(t.reverse(),e);return[n,r]}function wo(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 qn(e,t){for(const n of e)if(!Za(n,{upTo:t}))return n}function Za(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 qa(e){return e instanceof HTMLInputElement&&"select"in e}function de(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&qa(e)&&t&&e.select()}}var Qn=Qa();function Qa(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Jn(e,t),e.unshift(t)},remove(t){var n;e=Jn(e,t),(n=e[0])==null||n.resume()}}}function Jn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ja(e){return e.filter(t=>t.tagName!=="A")}var el="Portal",xo=a.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,i]=a.useState(!1);Q(()=>i(!0),[]);const c=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return c?rr.createPortal(S.jsx(U.div,{...r,ref:t}),c):null});xo.displayName=el;var So=Br(),Wt=function(){},bt=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:Wt,onWheelCapture:Wt,onTouchMoveCapture:Wt}),o=r[0],i=r[1],c=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,m=e.sideCar,h=e.noIsolation,y=e.inert,f=e.allowPinchZoom,v=e.as,g=v===void 0?"div":v,w=e.gapMode,x=pn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=m,E=Wr([n,t]),P=Y(Y({},x),o);return a.createElement(a.Fragment,null,d&&a.createElement(b,{sideCar:So,removeScrollBar:u,shards:p,noIsolation:h,inert:y,setCallbacks:i,allowPinchZoom:!!f,lockRef:n,gapMode:w}),c?a.cloneElement(a.Children.only(s),Y(Y({},P),{ref:E})):a.createElement(g,Y({},P,{className:l,ref:E}),s))});bt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bt.classNames={fullWidth:Ue,zeroRight:He};var Gt=!1;if(typeof window<"u")try{var it=Object.defineProperty({},"passive",{get:function(){return Gt=!0,!0}});window.addEventListener("test",it,it),window.removeEventListener("test",it,it)}catch{Gt=!1}var Oe=Gt?{passive:!1}:!1,tl=function(e){return e.tagName==="TEXTAREA"},bo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!tl(e)&&n[t]==="visible")},nl=function(e){return bo(e,"overflowY")},rl=function(e){return bo(e,"overflowX")},er=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Eo(e,r);if(o){var i=Co(e,r),c=i[1],s=i[2];if(c>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ol=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},il=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Eo=function(e,t){return e==="v"?nl(t):rl(t)},Co=function(e,t){return e==="v"?ol(t):il(t)},sl=function(e,t){return e==="h"&&t==="rtl"?-1:1},cl=function(e,t,n,r,o){var i=sl(e,window.getComputedStyle(t).direction),c=i*r,s=n.target,l=t.contains(s),u=!1,d=c>0,p=0,m=0;do{var h=Co(e,s),y=h[0],f=h[1],v=h[2],g=f-v-i*y;(y||g)&&Eo(e,s)&&(p+=g,m+=y),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));
vendor: 4,814 bytes, lines 53-56
53return(d&&(Math.abs(p)<1||!o)||!d&&(Math.abs(m)<1||!o))&&(u=!0),u},st=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tr=function(e){return[e.deltaX,e.deltaY]},nr=function(e){return e&&"current"in e?e.current:e},al=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ll=function(e){return`
54  .block-interactivity-`.concat(e,` {pointer-events: none;}
55  .allow-interactivity-`).concat(e,` {pointer-events: all;}
56`)},ul=0,Te=[];function fl(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(ul++)[0],i=a.useState(mn)[0],c=a.useRef(e);a.useEffect(function(){c.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=jr([e.lockRef.current],(e.shards||[]).map(nr),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=a.useCallback(function(f,v){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!c.current.allowPinchZoom;var g=st(f),w=n.current,x="deltaX"in f?f.deltaX:w[0]-g[0],b="deltaY"in f?f.deltaY:w[1]-g[1],E,P=f.target,C=Math.abs(x)>Math.abs(b)?"h":"v";if("touches"in f&&C==="h"&&P.type==="range")return!1;var R=er(C,P);if(!R)return!0;if(R?E=C:(E=C==="v"?"h":"v",R=er(C,P)),!R)return!1;if(!r.current&&"changedTouches"in f&&(x||b)&&(r.current=E),!E)return!0;var T=r.current||E;return cl(T,v,f,T==="h"?x:b,!0)},[]),l=a.useCallback(function(f){var v=f;if(!(!Te.length||Te[Te.length-1]!==i)){var g="deltaY"in v?tr(v):st(v),w=t.current.filter(function(E){return E.name===v.type&&(E.target===v.target||v.target===E.shadowParent)&&al(E.delta,g)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}if(!w){var x=(c.current.shards||[]).map(nr).filter(Boolean).filter(function(E){return E.contains(v.target)}),b=x.length>0?s(v,x[0]):!c.current.noIsolation;b&&v.cancelable&&v.preventDefault()}}},[]),u=a.useCallback(function(f,v,g,w){var x={name:f,delta:v,target:g,should:w,shadowParent:dl(g)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(b){return b!==x})},1)},[]),d=a.useCallback(function(f){n.current=st(f),r.current=void 0},[]),p=a.useCallback(function(f){u(f.type,tr(f),f.target,s(f,e.lockRef.current))},[]),m=a.useCallback(function(f){u(f.type,st(f),f.target,s(f,e.lockRef.current))},[]);a.useEffect(function(){return Te.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Oe),document.addEventListener("touchmove",l,Oe),document.addEventListener("touchstart",d,Oe),function(){Te=Te.filter(function(f){return f!==i}),document.removeEventListener("wheel",l,Oe),document.removeEventListener("touchmove",l,Oe),document.removeEventListener("touchstart",d,Oe)}},[]);var h=e.removeScrollBar,y=e.inert;return a.createElement(a.Fragment,null,y?a.createElement(i,{styles:ll(o)}):null,h?a.createElement(Kr,{gapMode:e.gapMode}):null)}function dl(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const pl=Hr(So,fl);var Po=a.forwardRef(function(e,t){return a.createElement(bt,Y({},e,{ref:t,sideCar:pl}))});Po.classNames=bt.classNames;var ml=[" ","Enter","ArrowUp","ArrowDown"],hl=[" ","Enter"],qe="Select",[Et,Ct,vl]=mi(qe),[Le,zl]=hi(qe,[vl,gr]),Pt=gr(),[gl,ge]=Le(qe),[yl,wl]=Le(qe),Ro=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:c,defaultValue:s,onValueChange:l,dir:u,name:d,autoComplete:p,disabled:m,required:h,form:y}=e,f=Pt(t),[v,g]=a.useState(null),[w,x]=a.useState(null),[b,E]=a.useState(!1),P=$a(u),[C=!1,R]=wn({prop:r,defaultProp:o,onChange:i}),[T,D]=wn({prop:c,defaultProp:s,onChange:l}),F=a.useRef(null),j=v?y||!!v.closest("form"):!0,[M,I]=a.useState(new Set),V=Array.from(M).map(N=>N.props.value).join(";");return S.jsx(Ds,{...f,children:S.jsxs(gl,{required:h,scope:t,trigger:v,onTriggerChange:g,valueNode:w,onValueNodeChange:x,valueNodeHasChildren:b,onValueNodeHasChildrenChange:E,contentId:rn(),value:T,onValueChange:D,open:C,onOpenChange:R,dir:P,triggerPointerDownPosRef:F,disabled:m,children:[S.jsx(Et.Provider,{scope:t,children:S.jsx(yl,{scope:e.__scopeSelect,onNativeOptionAdd:a.useCallback(N=>{I(_=>new Set(_).add(N))},[]),onNativeOptionRemove:a.useCallback(N=>{I(_=>{const O=new Set(_);return O.delete(N),O})},[]),children:n})}),j?S.jsxs(qo,{"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:p,value:T,onChange:N=>D(N.target.value),disabled:m,form:y,children:[T===void 0?S.jsx("option",{value:""}):null,Array.from(M)]},V):null]})})};Ro.displayName=qe;var Ao="SelectTrigger",Oo=a.forwardRef((e,t)=>
vendor: 16,856 bytes, line 56
56{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=Pt(n),c=ge(Ao,n),s=c.disabled||r,l=K(t,c.onTriggerChange),u=Ct(n),d=a.useRef("touch"),[p,m,h]=Qo(f=>{const v=u().filter(x=>!x.disabled),g=v.find(x=>x.value===c.value),w=Jo(v,f,g);w!==void 0&&c.onValueChange(w.value)}),y=f=>{s||(c.onOpenChange(!0),h()),f&&(c.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return S.jsx(Is,{asChild:!0,...i,children:S.jsx(U.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Zo(c.value)?"":void 0,...o,ref:l,onClick:H(o.onClick,f=>{f.currentTarget.focus(),d.current!=="mouse"&&y(f)}),onPointerDown:H(o.onPointerDown,f=>{d.current=f.pointerType;const v=f.target;v.hasPointerCapture(f.pointerId)&&v.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(y(f),f.preventDefault())}),onKeyDown:H(o.onKeyDown,f=>{const v=p.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&m(f.key),!(v&&f.key===" ")&&ml.includes(f.key)&&(y(),f.preventDefault())})})})});Oo.displayName=Ao;var To="SelectValue",No=a.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:c="",...s}=e,l=ge(To,n),{onValueNodeHasChildrenChange:u}=l,d=i!==void 0,p=K(t,l.onValueNodeChange);return Q(()=>{u(d)},[u,d]),S.jsx(U.span,{...s,ref:p,style:{pointerEvents:"none"},children:Zo(l.value)?S.jsx(S.Fragment,{children:c}):i})});No.displayName=To;var xl="SelectIcon",Do=a.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return S.jsx(U.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Do.displayName=xl;var Sl="SelectPortal",Io=e=>S.jsx(xo,{asChild:!0,...e});Io.displayName=Sl;var Ee="SelectContent",_o=a.forwardRef((e,t)=>{const n=ge(Ee,e.__scopeSelect),[r,o]=a.useState();if(Q(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Xe.createPortal(S.jsx(Mo,{scope:e.__scopeSelect,children:S.jsx(Et.Slot,{scope:e.__scopeSelect,children:S.jsx("div",{children:e.children})})}),i):null}return S.jsx(Lo,{...e,ref:t})});_o.displayName=Ee;var J=10,[Mo,ye]=Le(Ee),bl="SelectContentImpl",Lo=a.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:c,side:s,sideOffset:l,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:y,hideWhenDetached:f,avoidCollisions:v,...g}=e,w=ge(Ee,n),[x,b]=a.useState(null),[E,P]=a.useState(null),C=K(t,A=>b(A)),[R,T]=a.useState(null),[D,F]=a.useState(null),j=Ct(n),[M,I]=a.useState(!1),V=a.useRef(!1);a.useEffect(()=>{if(x)return qr(x)},[x]),za();const N=a.useCallback(A=>{const[B,...z]=j().map($=>$.ref.current),[k]=z.slice(-1),L=document.activeElement;for(const $ of A)if($===L||($==null||$.scrollIntoView({block:"nearest"}),$===B&&E&&(E.scrollTop=0),$===k&&E&&(E.scrollTop=E.scrollHeight),$==null||$.focus(),document.activeElement!==L))return},[j,E]),_=a.useCallback(()=>N([R,x]),[N,R,x]);a.useEffect(()=>{M&&_()},[M,_]);const{onOpenChange:O,triggerPointerDownPosRef:W}=w;a.useEffect(()=>{if(x){let A={x:0,y:0};const B=k=>{var L,$;A={x:Math.abs(Math.round(k.pageX)-(((L=W.current)==null?void 0:L.x)??0)),y:Math.abs(Math.round(k.pageY)-((($=W.current)==null?void 0:$.y)??0))}},z=k=>{A.x<=10&&A.y<=10?k.preventDefault():x.contains(k.target)||O(!1),document.removeEventListener("pointermove",B),W.current=null};return W.current!==null&&(document.addEventListener("pointermove",B),document.addEventListener("pointerup",z,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",B),document.removeEventListener("pointerup",z,{capture:!0})}}},[x,O,W]),a.useEffect(()=>{const A=()=>O(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[O]);const[X,se]=Qo(A=>{const B=j().filter(L=>!L.disabled),z=B.find(L=>L.ref.current===document.activeElement),k=Jo(B,A,z);k&&setTimeout(()=>k.ref.current.focus())}),$e=a.useCallback((A,B,z)=>{const k=!V.current&&!z;(w.value!==void 0&&w.value===B||k)&&(T(A),k&&(V.current=!0))},[w.value]),ke=a.useCallback(()=>x==null?void 0:x.focus(),[x]),ue=a.useCallback((A,B,z)=>{const k=!V.current&&!z;(w.value!==void 0&&w.value===B||k)&&F(A)},[w.value]),Ce=r==="popper"?Zt:$o,we=Ce===Zt?{side:s,sideOffset:l,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:y,hideWhenDetached:f,avoidCollisions:v}:{};return S.jsx(Mo,{scope:n,content:x,viewport:E,onViewportChange:P,itemRefCallback:$e,selectedItem:R,onItemLeave:ke,itemTextRefCallback:ue,focusSelectedItem:_,selectedItemText:D,position:r,isPositioned:M,searchRef:X,children:S.jsx(Po,{as:Ke,allowPinchZoom:!0,children:S.jsx(yo,{asChild:!0,trapped:w.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:H(o,A=>{var B;(B=w.trigger)==null||B.focus({preventScroll:!0}),A.preventDefault()}),children:S.jsx(vo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:S.jsx(Ce,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:A=>A.preventDefault(),...g,...we,onPlaced:()=>I(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:H(g.onKeyDown,A=>{const B=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!B&&A.key.length===1&&se(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let k=j().filter(L=>!L.disabled).map(L=>L.ref.current);if(["ArrowUp","End"].includes(A.key)&&(k=k.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const L=A.target,$=k.indexOf(L);k=k.slice($+1)}setTimeout(()=>N(k)),A.preventDefault()}})})})})})})});Lo.displayName=bl;var El="SelectItemAlignedPosition",$o=a.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=ge(Ee,n),c=ye(Ee,n),[s,l]=a.useState(null),[u,d]=a.useState(null),p=K(t,C=>d(C)),m=Ct(n),h=a.useRef(!1),y=a.useRef(!0),{viewport:f,selectedItem:v,selectedItemText:g,focusSelectedItem:w}=c,x=a.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&u&&f&&v&&g){const C=i.trigger.getBoundingClientRect(),R=u.getBoundingClientRect(),T=i.valueNode.getBoundingClientRect(),D=g.getBoundingClientRect();if(i.dir!=="rtl"){const L=D.left-R.left,$=T.left-L,G=C.left-$,re=C.width+G,Fe=Math.max(re,R.width),je=window.innerWidth-J,We=zn($,[J,Math.max(J,je-Fe)]);s.style.minWidth=re+"px",s.style.left=We+"px"}else{const L=R.right-D.right,$=window.innerWidth-T.right-L,G=window.innerWidth-C.right-$,re=C.width+G,Fe=Math.max(re,R.width),je=window.innerWidth-J,We=zn($,[J,Math.max(J,je-Fe)]);s.style.minWidth=re+"px",s.style.right=We+"px"}const F=m(),j=window.innerHeight-J*2,M=f.scrollHeight,I=window.getComputedStyle(u),V=parseInt(I.borderTopWidth,10),N=parseInt(I.paddingTop,10),_=parseInt(I.borderBottomWidth,10),O=parseInt(I.paddingBottom,10),W=V+N+M+O+_,X=Math.min(v.offsetHeight*5,W),se=window.getComputedStyle(f),$e=parseInt(se.paddingTop,10),ke=parseInt(se.paddingBottom,10),ue=C.top+C.height/2-J,Ce=j-ue,we=v.offsetHeight/2,A=v.offsetTop+we,B=V+N+A,z=W-B;if(B<=ue){const L=F.length>0&&v===F[F.length-1].ref.current;s.style.bottom="0px";const $=u.clientHeight-f.offsetTop-f.offsetHeight,G=Math.max(Ce,we+(L?ke:0)+$+_),re=B+G;s.style.height=re+"px"}else{const L=F.length>0&&v===F[0].ref.current;s.style.top="0px";const G=Math.max(ue,V+f.offsetTop+(L?$e:0)+we)+z;s.style.height=G+"px",f.scrollTop=B-ue+f.offsetTop}s.style.margin=`${J}px 0`,s.style.minHeight=X+"px",s.style.maxHeight=j+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[m,i.trigger,i.valueNode,s,u,f,v,g,i.dir,r]);Q(()=>x(),[x]);const[b,E]=a.useState();Q(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const P=a.useCallback(C=>{C&&y.current===!0&&(x(),w==null||w(),y.current=!1)},[x,w]);return S.jsx(Pl,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:P,children:S.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b},children:S.jsx(U.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});$o.displayName=El;var Cl="SelectPopperPosition",Zt=a.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=J,...i}=e,c=Pt(n);return S.jsx(_s,{...c,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Zt.displayName=Cl;var[Pl,yn]=Le(Ee,{}),qt="SelectViewport",ko=a.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=ye(qt,n),c=yn(qt,n),s=K(t,i.onViewportChange),l=a.useRef(0);return S.jsxs(S.Fragment,{children:[S.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),S.jsx(Et.Slot,{scope:n,children:S.jsx(U.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:H(o.onScroll,u=>{const d=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:m}=c;if(m!=null&&m.current&&p){const h=Math.abs(l.current-d.scrollTop);if(h>0){const y=window.innerHeight-J*2,f=parseFloat(p.style.minHeight),v=parseFloat(p.style.height),g=Math.max(f,v);if(g<y){const w=g+h,x=Math.min(y,w),b=w-x;p.style.height=x+"px",p.style.bottom==="0px"&&(d.scrollTop=b>0?b:0,p.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});ko.displayName=qt;var Fo="SelectGroup",[Rl,Al]=Le(Fo),Ol=a.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=rn();return S.jsx(Rl,{scope:n,id:o,children:S.jsx(U.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Ol.displayName=Fo;var jo="SelectLabel",Wo=a.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Al(jo,n);return S.jsx(U.div,{id:o.id,...r,ref:t})});Wo.displayName=jo;var pt="SelectItem",[Tl,Bo]=Le(pt),Vo=a.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...c}=e,s=ge(pt,n),l=ye(pt,n),u=s.value===r,[d,p]=a.useState(i??""),[m,h]=a.useState(!1),y=K(t,w=>{var x;return(x=l.itemRefCallback)==null?void 0:x.call(l,w,r,o)}),f=rn(),v=a.useRef("touch"),g=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return S.jsx(Tl,{scope:n,value:r,disabled:o,textId:f,isSelected:u,onItemTextChange:a.useCallback(w=>{p(x=>x||((w==null?void 0:w.textContent)??"").trim())},[]),children:S.jsx(Et.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:S.jsx(U.div,{role:"option","aria-labelledby":f,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...c,ref:y,onFocus:H(c.onFocus,()=>h(!0)),onBlur:H(c.onBlur,()=>h(!1)),onClick:H(c.onClick,()=>{v.current!=="mouse"&&g()}),onPointerUp:H(c.onPointerUp,()=>{v.current==="mouse"&&g()}),onPointerDown:H(c.onPointerDown,w=>{v.current=w.pointerType}),onPointerMove:H(c.onPointerMove,w=>{var x;v.current=w.pointerType,o?(x=l.onItemLeave)==null||x.call(l):v.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:H(c.onPointerLeave,w=>{var x;w.currentTarget===document.activeElement&&((x=l.onItemLeave)==null||x.call(l))}),onKeyDown:H(c.onKeyDown,w=>{var b;((b=l.searchRef)==null?void 0:b.current)!==""&&w.key===" "||(hl.includes(w.key)&&g(),w.key===" "&&w.preventDefault())})})})})});Vo.displayName=pt;var Be="SelectItemText",Ho=a.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,c=ge(Be,n),s=ye(Be,n),l=Bo(Be,n),u=wl(Be,n),[d,p]=a.useState(null),m=K(t,g=>p(g),l.onItemTextChange,g=>{var w;return(w=s.itemTextRefCallback)==null?void 0:w.call(s,g,l.value,l.disabled)}),h=d==null?void 0:d.textContent,y=a.useMemo(()=>S.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:f,onNativeOptionRemove:v}=u;return Q(()=>(f(y),()=>v(y)),[f,v,y]),S.jsxs(S.Fragment,{children:[S.jsx(U.span,{id:l.textId,...i,ref:m}),l.isSelected&&c.valueNode&&!c.valueNodeHasChildren?Xe.createPortal(i.children,c.valueNode):null]})});Ho.displayName=Be;var Uo="SelectItemIndicator",Ko=a.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Bo(Uo,n).isSelected?S.jsx(U.span,{"aria-hidden":!0,...r,ref:t}):null});Ko.displayName=Uo;var Qt="SelectScrollUpButton",zo=a.forwardRef((e,t)=>{const n=ye(Qt,e.__scopeSelect),r=yn(Qt,e.__scopeSelect),[o,i]=a.useState(!1),c=K(t,r.onScrollButtonChange);return Q(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=l.scrollTop>0;i(u)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?S.jsx(Xo,{...e,ref:c,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});zo.displayName=Qt;var Jt="SelectScrollDownButton",Yo=a.forwardRef((e,t)=>{const n=ye(Jt,e.__scopeSelect),r=yn(Jt,e.__scopeSelect),[o,i]=a.useState(!1),c=K(t,r.onScrollButtonChange);return Q(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<u;i(d)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?S.jsx(Xo,{...e,ref:c,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});Yo.displayName=Jt;var Xo=a.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=ye("SelectScrollButton",n),c=a.useRef(null),s=Ct(n),l=a.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return a.useEffect(()=>()=>l(),[l]),Q(()=>{var d;const u=s().find(p=>p.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[s]),S.jsx(U.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:H(o.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(r,50))}),onPointerMove:H(o.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),c.current===null&&(c.current=window.setInterval(r,50))}),onPointerLeave:H(o.onPointerLeave,()=>{l()})})}),Nl="SelectSeparator",Go=a.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return S.jsx(U.div,{"aria-hidden":!0,...r,ref:t})});Go.displayName=Nl;var en="SelectArrow",Dl=a.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Pt(n),i=ge(en,n),c=ye(en,n);return i.open&&c.position==="popper"?S.jsx(Ms,{...o,...r,ref:t}):null});Dl.displayName=en;function Zo(e){return e===""||e===void 0}var qo=a.forwardRef((e,t)=>{const{value:n,...r}=e,o=a.useRef(null),i=K(t,o),c=ka(n);return a.useEffect(()=>{const s=o.current,l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(c!==n&&d){const p=new Event("change",{bubbles:!0});d.call(s,n),s.dispatchEvent(p)}},[c,n]),S.jsx(nn,{asChild:!0,children:S.jsx("select",{...r,ref:i,defaultValue:n})})});qo.displayName="BubbleSelect";function Qo(e){const t=ce(e),n=a.useRef(""),r=a.useRef(0),o=a.useCallback(c=>{const s=n.current+c;t(s),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),i=a.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return a.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function Jo(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let c=Il(e,Math.max(i,0));o.length===1&&(c=c.filter(u=>u!==n));const l=c.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Il(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Yl=Ro,Xl=Oo,Gl=No,Zl=Do,ql=Io,Ql=_o,Jl=ko,eu=Wo,tu=Vo,nu=Ho,ru=Ko,ou=zo,iu=Yo,su=Go;export{ru as $,Is as A,mn as B,_s as C,Ul as D,jr as E,Kr as F,Hr as G,qr as H,Ml as I,ka as J,Cs as K,Xl as L,Zl as M,ou as N,Bl as O,U as P,iu as Q,Ll as R,ui as S,Hl as T,ql as U,nn as V,Ql as W,Jl as X,eu as Y,tu as Z,pn as _,K as a,nu as a0,su as a1,Yl as a2,Gl as a3,sr as a4,Q as b,H as c,yi as d,mi as e,hi as f,wn as g,gr as h,Ms as i,S as j,rn as k,Ds as l,Vl as m,Kl as n,Wl as o,Fl as p,$a as q,zn as r,Ke as s,jl as t,ce as u,Br as v,Wr as w,Y as x,Ue as y,He 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.