PageSourceSearch

https://app.showfloor.ai/assets/ui-vendor-B7dXr53s.js

js showfloor.ai collected 2026-10-05 15:24:47 UTC 102,964 bytes, 53 lines download raw bytes

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