@gyramais/gyra-design 0.2.37 → 0.2.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/components/Filter/index.js +1 -1
  2. package/dist/components/Filter/index.js.map +1 -1
  3. package/dist/components/Information/index.js +1 -1
  4. package/dist/components/Information/index.js.map +1 -1
  5. package/dist/components/RuleSearchPicker/RuleSearchPicker.d.ts +3 -0
  6. package/dist/components/RuleSearchPicker/index.js +7 -7
  7. package/dist/components/RuleSearchPicker/index.js.map +1 -1
  8. package/dist/components/SegmentedToggle/index.js +7 -0
  9. package/dist/components/SegmentedToggle/index.js.map +1 -0
  10. package/dist/components/Select/index.js +45 -0
  11. package/dist/components/Select/index.js.map +1 -0
  12. package/dist/components/SelectTree/index.js +50 -0
  13. package/dist/components/SelectTree/index.js.map +1 -0
  14. package/dist/components/Selector/index.js +7 -0
  15. package/dist/components/Selector/index.js.map +1 -0
  16. package/dist/components/StatusTag/index.js +7 -0
  17. package/dist/components/StatusTag/index.js.map +1 -0
  18. package/dist/components/Stepper/index.js +7 -0
  19. package/dist/components/Stepper/index.js.map +1 -0
  20. package/dist/components/Switch/index.js +7 -0
  21. package/dist/components/Switch/index.js.map +1 -0
  22. package/dist/components/SyncChip/index.js +45 -0
  23. package/dist/components/SyncChip/index.js.map +1 -0
  24. package/dist/components/Table/index.js +45 -0
  25. package/dist/components/Table/index.js.map +1 -0
  26. package/dist/components/Tabs/index.js +7 -0
  27. package/dist/components/Tabs/index.js.map +1 -0
  28. package/dist/components/Tag/index.js +7 -0
  29. package/dist/components/Tag/index.js.map +1 -0
  30. package/dist/components/Toast/index.js +2 -0
  31. package/dist/components/Toast/index.js.map +1 -0
  32. package/dist/components/Tooltip/Tooltip.d.ts +2 -3
  33. package/dist/components/Tooltip/index.js +7 -0
  34. package/dist/components/Tooltip/index.js.map +1 -0
  35. package/dist/components/TourGuide/index.js +7 -0
  36. package/dist/components/TourGuide/index.js.map +1 -0
  37. package/dist/components/Waypoint/index.js +24 -0
  38. package/dist/components/Waypoint/index.js.map +1 -0
  39. package/dist/emails/balance-sheet-finalized/components/RuleSearchPicker/RuleSearchPicker.d.ts +3 -0
  40. package/dist/emails/balance-sheet-finalized/components/Tooltip/Tooltip.d.ts +2 -3
  41. package/dist/emails/email/components/RuleSearchPicker/RuleSearchPicker.d.ts +3 -0
  42. package/dist/emails/email/components/Tooltip/Tooltip.d.ts +2 -3
  43. package/dist/fonts/IBMPlexMono-400-latin-ext.woff2 +0 -0
  44. package/dist/fonts/IBMPlexMono-400-latin.woff2 +0 -0
  45. package/dist/fonts/IBMPlexMono-500-latin-ext.woff2 +0 -0
  46. package/dist/fonts/IBMPlexMono-500-latin.woff2 +0 -0
  47. package/dist/fonts/Inter-Variable-latin-ext.woff2 +0 -0
  48. package/dist/fonts/Inter-Variable-latin.woff2 +0 -0
  49. package/dist/fonts/Lexend-Variable-latin-ext.woff2 +0 -0
  50. package/dist/fonts/Lexend-Variable-latin.woff2 +0 -0
  51. package/package.json +1 -1
@@ -3,5 +3,5 @@
3
3
  Copyright (c) 2018 Jed Watson.
4
4
  Licensed under the MIT License (MIT), see
5
5
  http://jedwatson.github.io/classnames
6
- */d=u,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}d.exports?(t.default=t,d.exports=t):window.classNames=t}();var f=c(u.exports);function p(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function m(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function h(...e){return t=>{let n=!1;const r=e.map(e=>{const r=m(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():m(e[t],null)}}}}function g(...t){return e.useCallback(h(...t),t)}function b(t,n=[]){let r=[];const o=()=>{const n=r.map(t=>e.createContext(t));return function(r){const o=r?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...r,[t]:o}}),[r,o])}};return o.scopeName=t,[function(n,o){const s=e.createContext(o),a=r.length;r=[...r,o];const l=n=>{const{scope:r,children:o,...l}=n,c=r?.[t]?.[a]||s,d=e.useMemo(()=>l,Object.values(l));return i(c.Provider,{value:d,children:o})};return l.displayName=n+"Provider",[l,function(r,i){const l=i?.[t]?.[a]||s,c=e.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},y(o,...n)]}function y(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=r.reduce((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]}),{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}function v(t){const n=e.forwardRef((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(r),i=function(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]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==e.Fragment&&(i.ref=n?h(n,t):t),e.cloneElement(r,i)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var w=Symbol("radix.slottable");function x(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===w}var E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const r=function(t){const n=v(t),r=e.forwardRef((t,r)=>{const{children:o,...s}=t,a=e.Children.toArray(o),l=a.find(x);if(l){const t=l.props.children,o=a.map(n=>n===l?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return i(n,{...s,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return i(n,{...s,ref:r,children:o})});return r.displayName=`${t}.Slot`,r}(`Primitive.${n}`),o=e.forwardRef((e,t)=>{const{asChild:o,...s}=e,a=o?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),i(a,{...s,ref:t})});return o.displayName=`Primitive.${n}`,{...t,[n]:o}},{});function C(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}var R,k="dismissableLayer.update",O="dismissableLayer.pointerDownOutside",P="dismissableLayer.focusOutside",T=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),S=e.forwardRef((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...d}=t,u=e.useContext(T),[f,m]=e.useState(null),h=f?.ownerDocument??globalThis?.document,[,b]=e.useState({}),y=g(n,e=>m(e)),v=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=v.indexOf(w),S=f?v.indexOf(f):-1,A=u.layersWithOutsidePointerEventsDisabled.size>0,L=S>=x,z=function(t,n=globalThis?.document){const r=C(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){D(O,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...u.branches].some(e=>e.contains(t));L&&!n&&(s?.(e),l?.(e),e.defaultPrevented||c?.())},h),M=function(t,n=globalThis?.document){const r=C(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){D(P,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...u.branches].some(e=>e.contains(t))||(a?.(e),l?.(e),e.defaultPrevented||c?.())},h);return function(t,n=globalThis?.document){const r=C(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[r,n])}(e=>{S===u.layers.size-1&&(o?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},h),e.useEffect(()=>{if(f)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(R=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),N(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=R)}},[f,h,r,u]),e.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),N())},[f,u]),e.useEffect(()=>{const e=()=>b({});return document.addEventListener(k,e),()=>document.removeEventListener(k,e)},[]),i(E.div,{...d,ref:y,style:{pointerEvents:A?L?"auto":"none":void 0,...t.style},onFocusCapture:p(t.onFocusCapture,M.onFocusCapture),onBlurCapture:p(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:p(t.onPointerDownCapture,z.onPointerDownCapture)})});S.displayName="DismissableLayer";function N(){const e=new CustomEvent(k);document.dispatchEvent(e)}function D(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?function(e,t){e&&l.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}e.forwardRef((t,n)=>{const r=e.useContext(T),o=e.useRef(null),s=g(n,o);return e.useEffect(()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),i(E.div,{...t,ref:s})}).displayName="DismissableLayerBranch";var A=globalThis?.document?e.useLayoutEffect:()=>{},L=e[" useId ".trim().toString()]||(()=>{}),z=0;const M=["top","right","bottom","left"],_=Math.min,I=Math.max,W=Math.round,j=Math.floor,$=e=>({x:e,y:e}),F={left:"right",right:"left",bottom:"top",top:"bottom"};function H(e,t,n){return I(e,_(t,n))}function B(e,t){return"function"==typeof e?e(t):e}function G(e){return e.split("-")[0]}function V(e){return e.split("-")[1]}function U(e){return"x"===e?"y":"x"}function Y(e){return"y"===e?"height":"width"}function X(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function q(e){return U(X(e))}function K(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Z=["left","right"],J=["right","left"],Q=["top","bottom"],ee=["bottom","top"];function te(e,t,n,r){const o=V(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?J:Z:t?Z:J;case"left":case"right":return t?Q:ee;default:return[]}}(G(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(K)))),i}function ne(e){const t=G(e);return F[t]+e.slice(t.length)}function re(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function oe(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 ie(e,t,n){let{reference:r,floating:o}=e;const i=X(t),s=q(t),a=Y(s),l=G(t),c="y"===i,d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(V(t)){case"start":p[s]-=f*(n&&c?-1:1);break;case"end":p[s]+=f*(n&&c?-1:1)}return p}async function se(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:p=0}=B(t,e),m=re(p),h=a[f?"floating"===u?"reference":"floating":u],g=oe(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),b="floating"===u?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),v=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=oe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:y,strategy:l}):b);return{top:(g.top-w.top+m.top)/v.y,bottom:(w.bottom-g.bottom+m.bottom)/v.y,left:(g.left-w.left+m.left)/v.x,right:(w.right-g.right+m.right)/v.x}}function ae(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function le(e){return M.some(t=>e[t]>=0)}const ce=new Set(["left","top"]);function de(){return"undefined"!=typeof window}function ue(e){return me(e)?(e.nodeName||"").toLowerCase():"#document"}function fe(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function pe(e){var t;return null==(t=(me(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function me(e){return!!de()&&(e instanceof Node||e instanceof fe(e).Node)}function he(e){return!!de()&&(e instanceof Element||e instanceof fe(e).Element)}function ge(e){return!!de()&&(e instanceof HTMLElement||e instanceof fe(e).HTMLElement)}function be(e){return!(!de()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot)}function ye(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Te(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function ve(e){return/^(table|td|th)$/.test(ue(e))}function we(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const xe=/transform|translate|scale|rotate|perspective|filter/,Ee=/paint|layout|strict|content/,Ce=e=>!!e&&"none"!==e;let Re;function ke(e){const t=he(e)?Te(e):e;return Ce(t.transform)||Ce(t.translate)||Ce(t.scale)||Ce(t.rotate)||Ce(t.perspective)||!Oe()&&(Ce(t.backdropFilter)||Ce(t.filter))||xe.test(t.willChange||"")||Ee.test(t.contain||"")}function Oe(){return null==Re&&(Re="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Re}function Pe(e){return/^(html|body|#document)$/.test(ue(e))}function Te(e){return fe(e).getComputedStyle(e)}function Se(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ne(e){if("html"===ue(e))return e;const t=e.assignedSlot||e.parentNode||be(e)&&e.host||pe(e);return be(t)?t.host:t}function De(e){const t=Ne(e);return Pe(t)?e.ownerDocument?e.ownerDocument.body:e.body:ge(t)&&ye(t)?t:De(t)}function Ae(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=De(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=fe(o);if(i){const e=Le(s);return t.concat(s,s.visualViewport||[],ye(o)?o:[],e&&n?Ae(e):[])}return t.concat(o,Ae(o,[],n))}function Le(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ze(e){const t=Te(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ge(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=W(n)!==i||W(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Me(e){return he(e)?e:e.contextElement}function _e(e){const t=Me(e);if(!ge(t))return $(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ze(t);let s=(i?W(n.width):n.width)/r,a=(i?W(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Ie=$(0);function We(e){const t=fe(e);return Oe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ie}function je(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Me(e);let s=$(1);t&&(r?he(r)&&(s=_e(r)):s=_e(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==fe(e))&&t}(i,n,r)?We(i):$(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){const e=fe(i),t=r&&he(r)?fe(r):r;let n=e,o=Le(n);for(;o&&r&&t!==n;){const e=_e(o),t=o.getBoundingClientRect(),r=Te(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=i,c+=s,n=fe(o),o=Le(n)}}return oe({width:d,height:u,x:l,y:c})}function $e(e,t){const n=Se(e).scrollLeft;return t?t.left+n:je(pe(e)).left+n}function Fe(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-$e(e,n),y:n.top+t.scrollTop}}function He(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=fe(e),r=pe(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=Oe();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}const c=$e(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-o);s<=25&&(i-=s)}else c<=25&&(i+=c);return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=pe(e),n=Se(e),r=e.ownerDocument.body,o=I(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=I(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+$e(e);const a=-n.scrollTop;return"rtl"===Te(r).direction&&(s+=I(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(pe(e));else if(he(t))r=function(e,t){const n=je(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ge(e)?_e(e):$(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=We(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return oe(r)}function Be(e,t){const n=Ne(e);return!(n===t||!he(n)||Pe(n))&&("fixed"===Te(n).position||Be(n,t))}function Ge(e,t,n){const r=ge(t),o=pe(t),i="fixed"===n,s=je(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=$(0);function c(){l.x=$e(o)}if(r||!r&&!i)if(("body"!==ue(t)||ye(o))&&(a=Se(t)),r){const e=je(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const d=!o||r||i?$(0):Fe(o,a);return{x:s.left+a.scrollLeft-l.x-d.x,y:s.top+a.scrollTop-l.y-d.y,width:s.width,height:s.height}}function Ve(e){return"static"===Te(e).position}function Ue(e,t){if(!ge(e)||"fixed"===Te(e).position)return null;if(t)return t(e);let n=e.offsetParent;return pe(e)===n&&(n=n.ownerDocument.body),n}function Ye(e,t){const n=fe(e);if(we(e))return n;if(!ge(e)){let t=Ne(e);for(;t&&!Pe(t);){if(he(t)&&!Ve(t))return t;t=Ne(t)}return n}let r=Ue(e,t);for(;r&&ve(r)&&Ve(r);)r=Ue(r,t);return r&&Pe(r)&&Ve(r)&&!ke(r)?n:r||function(e){let t=Ne(e);for(;ge(t)&&!Pe(t);){if(ke(t))return t;if(we(t))return null;t=Ne(t)}return null}(e)||n}const Xe={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=pe(r),a=!!t&&we(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=$(1);const d=$(0),u=ge(r);if((u||!u&&!i)&&(("body"!==ue(r)||ye(s))&&(l=Se(r)),u)){const e=je(r);c=_e(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const f=!s||u||i?$(0):Fe(s,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+f.x,y:n.y*c.y-l.scrollTop*c.y+d.y+f.y}},getDocumentElement:pe,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?we(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Ae(e,[],!1).filter(e=>he(e)&&"body"!==ue(e)),o=null;const i="fixed"===Te(e).position;let s=i?Ne(e):e;for(;he(s)&&!Pe(s);){const t=Te(s),n=ke(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||ye(s)&&!n&&Be(e,s))?r=r.filter(e=>e!==s):o=t,s=Ne(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=He(t,i[0],o);let a=s.top,l=s.right,c=s.bottom,d=s.left;for(let e=1;e<i.length;e++){const n=He(t,i[e],o);a=I(n.top,a),l=_(n.right,l),c=_(n.bottom,c),d=I(n.left,d)}return{width:l-d,height:c-a,x:d,y:a}},getOffsetParent:Ye,getElementRects:async function(e){const t=this.getOffsetParent||Ye,n=this.getDimensions,r=await n(e.floating);return{reference:Ge(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=ze(e);return{width:t,height:n}},getScale:_e,isElement:he,isRTL:function(e){return"rtl"===Te(e).direction}};function qe(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ke(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Me(e),d=o||i?[...c?Ae(c):[],...t?Ae(t):[]]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const u=c&&a?function(e,t){let n,r=null;const o=pe(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:u,width:f,height:p}=c;if(a||t(),!f||!p)return;const m={rootMargin:-j(u)+"px "+-j(o.clientWidth-(d+f))+"px "+-j(o.clientHeight-(u+p))+"px "+-j(d)+"px",threshold:I(0,_(1,l))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||qe(c,e.getBoundingClientRect())||s(),h=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,m=null;s&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!l&&m.observe(c),t&&m.observe(t));let h=l?je(e):null;return l&&function t(){const r=je(e);h&&!qe(h,r)&&n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==u||u(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const Ze=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=G(n),a=V(n),l="y"===X(n),c=ce.has(s)?-1:1,d=i&&l?-1:1,u=B(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),l?{x:p*d,y:f*c}:{x:f*c,y:p*d}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Je=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=B(e,t),d={x:n,y:r},u=await i.detectOverflow(t,c),f=X(G(o)),p=U(f);let m=d[p],h=d[f];if(s){const e="y"===p?"bottom":"right";m=H(m+u["y"===p?"top":"left"],m,m-u[e])}if(a){const e="y"===f?"bottom":"right";h=H(h+u["y"===f?"top":"left"],h,h-u[e])}const g=l.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:s,[f]:a}}}}}},Qe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=B(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=G(o),y=X(a),v=G(a)===a,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(v||!h?[ne(a)]:function(e){const t=ne(e);return[K(e),t,K(t)]}(a)),E="none"!==m;!f&&E&&x.push(...te(a,h,m,w));const C=[a,...x],R=await l.detectOverflow(t,g),k=[];let O=(null==(r=i.flip)?void 0:r.overflows)||[];if(d&&k.push(R[b]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=V(e),o=q(e),i=Y(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ne(s)),[s,ne(s)]}(o,s,w);k.push(R[e[0]],R[e[1]])}if(O=[...O,{placement:o,overflows:k}],!k.every(e=>e<=0)){var P,T;const e=((null==(P=i.flip)?void 0:P.index)||0)+1,t=C[e];if(t){if(!("alignment"===u&&y!==X(t))||O.every(e=>X(e.placement)!==y||e.overflows[0]>0))return{data:{index:e,overflows:O},reset:{placement:t}}}let n=null==(T=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:T.placement;if(!n)switch(p){case"bestFit":{var S;const e=null==(S=O.filter(e=>{if(E){const t=X(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:S[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},et=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=B(e,t),d=await s.detectOverflow(t,c),u=G(o),f=V(o),p="y"===X(o),{width:m,height:h}=i.floating;let g,b;"top"===u||"bottom"===u?(g=u,b=f===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=u,g="end"===f?"top":"bottom");const y=h-d.top-d.bottom,v=m-d.left-d.right,w=_(h-d[g],y),x=_(m-d[b],v),E=!t.middlewareData.shift;let C=w,R=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(R=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(C=y),E&&!f){const e=I(d.left,0),t=I(d.right,0),n=I(d.top,0),r=I(d.bottom,0);p?R=m-2*(0!==e||0!==t?e+t:I(d.left,d.right)):C=h-2*(0!==n||0!==r?n+r:I(d.top,d.bottom))}await l({...t,availableWidth:R,availableHeight:C});const k=await s.getDimensions(a.floating);return m!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}},tt=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=B(e,t);switch(o){case"referenceHidden":{const e=ae(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:le(e)}}}case"escaped":{const e=ae(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:le(e)}}}default:return{}}}}},nt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=B(e,t)||{};if(null==c)return{};const u=re(d),f={x:n,y:r},p=q(o),m=Y(p),h=await s.getDimensions(c),g="y"===p,b=g?"top":"left",y=g?"bottom":"right",v=g?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],E=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let C=E?E[v]:0;C&&await(null==s.isElement?void 0:s.isElement(E))||(C=a.floating[v]||i.floating[m]);const R=w/2-x/2,k=C/2-h[m]/2-1,O=_(u[b],k),P=_(u[y],k),T=O,S=C-h[m]-P,N=C/2-h[m]/2+R,D=H(T,N,S),A=!l.arrow&&null!=V(o)&&N!==D&&i.reference[m]/2-(N<T?O:P)-h[m]/2<0,L=A?N<T?N-T:N-S:0;return{[p]:f[p]+L,data:{[p]:D,centerOffset:N-D-L,...A&&{alignmentOffset:L}},reset:A}}}),rt=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=B(e,t),d={x:n,y:r},u=X(o),f=U(u);let p=d[f],m=d[u];const h=B(a,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var b,y;const e="y"===f?"width":"height",t=ce.has(G(o)),n=i.reference[u]-i.floating[e]+(t&&(null==(b=s.offset)?void 0:b[u])||0)+(t?0:g.crossAxis),r=i.reference[u]+i.reference[e]+(t?0:(null==(y=s.offset)?void 0:y[u])||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[u]:m}}}},ot=(e,t,n)=>{const r=new Map,o={platform:Xe,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:se},l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=ie(c,r,l),f=r,p=0;const m={};for(let n=0;n<i.length;n++){const h=i[n];if(!h)continue;const{name:g,fn:b}=h,{x:y,y:v,data:w,reset:x}=await b({x:d,y:u,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});d=null!=y?y:d,u=null!=v?v:u,m[g]={...m[g],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(c=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:d,y:u}=ie(c,f,l))),n=-1)}return{x:d,y:u,placement:f,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};var it="undefined"!=typeof document?n:function(){};function st(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!st(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;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!st(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function at(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lt(e,t){const n=at(e);return Math.round(t*n)/n}function ct(t){const n=e.useRef(t);return it(()=>{n.current=t}),n}const dt=(e,t)=>{const n=Ze(e);return{name:n.name,fn:n.fn,options:[e,t]}},ut=(e,t)=>{const n=Je(e);return{name:n.name,fn:n.fn,options:[e,t]}},ft=(e,t)=>{const n=Qe(e);return{name:n.name,fn:n.fn,options:[e,t]}},pt=(e,t)=>{const n=et(e);return{name:n.name,fn:n.fn,options:[e,t]}},mt=(e,t)=>{const n=tt(e);return{name:n.name,fn:n.fn,options:[e,t]}},ht=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?nt({element:n.current,padding:r}).fn(t):{}:n?nt({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};var gt=e.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return i(E.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:i("polygon",{points:"0,0 30,0 15,10"})})});gt.displayName="Arrow";var bt=gt;var yt="Popper",[vt,wt]=b(yt),[xt,Et]=vt(yt),Ct=t=>{const{__scopePopper:n,children:r}=t,[o,s]=e.useState(null);return i(xt,{scope:n,anchor:o,onAnchorChange:s,children:r})};Ct.displayName=yt;var Rt="PopperAnchor",kt=e.forwardRef((t,n)=>{const{__scopePopper:r,virtualRef:o,...s}=t,a=Et(Rt,r),l=e.useRef(null),c=g(n,l),d=e.useRef(null);return e.useEffect(()=>{const e=d.current;d.current=o?.current||l.current,e!==d.current&&a.onAnchorChange(d.current)}),o?null:i(E.div,{...s,ref:c})});kt.displayName=Rt;var Ot="PopperContent",[Pt,Tt]=vt(Ot),St=e.forwardRef((t,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:s=0,align:a="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:u=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:b="optimized",onPlaced:y,...v}=t,w=Et(Ot,r),[x,R]=e.useState(null),k=g(n,e=>R(e)),[O,P]=e.useState(null),T=function(t){const[n,r]=e.useState(void 0);return A(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;r({width:o,height:i})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)},[t]),n}(O),S=T?.width??0,N=T?.height??0,D=o+("center"!==a?"-"+a:""),L="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},z=Array.isArray(f)?f:[f],M=z.length>0,_={padding:L,boundary:z.filter(Lt),altBoundary:M},{refs:I,floatingStyles:W,placement:j,isPositioned:$,middlewareData:F}=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:d,open:u}=t,[f,p]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[m,h]=e.useState(o);st(m,o)||h(o);const[g,b]=e.useState(null),[y,v]=e.useState(null),w=e.useCallback(e=>{e!==R.current&&(R.current=e,b(e))},[]),x=e.useCallback(e=>{e!==k.current&&(k.current=e,v(e))},[]),E=s||g,C=a||y,R=e.useRef(null),k=e.useRef(null),O=e.useRef(f),P=null!=d,T=ct(d),S=ct(i),N=ct(u),D=e.useCallback(()=>{if(!R.current||!k.current)return;const e={placement:n,strategy:r,middleware:m};S.current&&(e.platform=S.current),ot(R.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};A.current&&!st(O.current,t)&&(O.current=t,l.flushSync(()=>{p(t)}))})},[m,n,r,S,N]);it(()=>{!1===u&&O.current.isPositioned&&(O.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);const A=e.useRef(!1);it(()=>(A.current=!0,()=>{A.current=!1}),[]),it(()=>{if(E&&(R.current=E),C&&(k.current=C),E&&C){if(T.current)return T.current(E,C,D);D()}},[E,C,D,T,P]);const L=e.useMemo(()=>({reference:R,floating:k,setReference:w,setFloating:x}),[w,x]),z=e.useMemo(()=>({reference:E,floating:C}),[E,C]),M=e.useMemo(()=>{const e={position:r,left:0,top:0};if(!z.floating)return e;const t=lt(z.floating,f.x),n=lt(z.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...at(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,c,z.floating,f.x,f.y]);return e.useMemo(()=>({...f,update:D,refs:L,elements:z,floatingStyles:M}),[f,D,L,z,M])}({strategy:"fixed",placement:D,whileElementsMounted:(...e)=>Ke(...e,{animationFrame:"always"===b}),elements:{reference:w.anchor},middleware:[dt({mainAxis:s+N,alignmentAxis:c}),u&&ut({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?{fn:rt(H).fn,options:[H,B]}:void 0,..._}),u&&ft({..._}),pt({..._,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${r}px`),s.setProperty("--radix-popper-anchor-width",`${o}px`),s.setProperty("--radix-popper-anchor-height",`${i}px`)}}),O&&ht({element:O,padding:d}),zt({arrowWidth:S,arrowHeight:N}),h&&mt({strategy:"referenceHidden",..._})]});var H,B;const[G,V]=Mt(j),U=C(y);A(()=>{$&&U?.()},[$,U]);const Y=F.arrow?.x,X=F.arrow?.y,q=0!==F.arrow?.centerOffset,[K,Z]=e.useState();return A(()=>{x&&Z(window.getComputedStyle(x).zIndex)},[x]),i("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:$?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:i(Pt,{scope:r,placedSide:G,onArrowChange:P,arrowX:Y,arrowY:X,shouldHideArrow:q,children:i(E.div,{"data-side":G,"data-align":V,...v,ref:k,style:{...v.style,animation:$?void 0:"none"}})})})});St.displayName=Ot;var Nt="PopperArrow",Dt={top:"bottom",right:"left",bottom:"top",left:"right"},At=e.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Tt(Nt,n),s=Dt[o.placedSide];return i("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:i(bt,{...r,ref:t,style:{...r.style,display:"block"}})})});function Lt(e){return null!==e}At.displayName=Nt;var zt=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,s=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[l,c]=Mt(n),d={start:"0%",center:"50%",end:"100%"}[c],u=(o.arrow?.x??0)+s/2,f=(o.arrow?.y??0)+a/2;let p="",m="";return"bottom"===l?(p=i?d:`${u}px`,m=-a+"px"):"top"===l?(p=i?d:`${u}px`,m=`${r.floating.height+a}px`):"right"===l?(p=-a+"px",m=i?d:`${f}px`):"left"===l&&(p=`${r.floating.width+a}px`,m=i?d:`${f}px`),{data:{x:p,y:m}}}});function Mt(e){const[t,n="center"]=e.split("-");return[t,n]}var _t=Ct,It=kt,Wt=St,jt=At;var $t=t=>{const{present:n,children:r}=t,o=function(t){const[n,r]=e.useState(),o=e.useRef(null),i=e.useRef(t),s=e.useRef("none"),a=t?"mounted":"unmounted",[l,c]=function(t,n){return e.useReducer((e,t)=>n[e][t]??e,t)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=Ft(o.current);s.current="mounted"===l?e:"none"},[l]),A(()=>{const e=o.current,n=i.current;if(n!==t){const r=s.current,o=Ft(e);if(t)c("MOUNT");else if("none"===o||"none"===e?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}},[t,c]),A(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const s=Ft(o.current).includes(CSS.escape(r.animationName));if(r.target===n&&s&&(c("ANIMATION_END"),!i.current)){const r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},a=e=>{e.target===n&&(s.current=Ft(o.current))};return n.addEventListener("animationstart",a),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",a),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:e.useCallback(e=>{o.current=e?getComputedStyle(e):null,r(e)},[])}}(n),i="function"==typeof r?r({present:o.isPresent}):e.Children.only(r),s=g(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof r||o.isPresent?e.cloneElement(i,{ref:s}):null};function Ft(e){return e?.animationName||"none"}$t.displayName="Presence";var Ht=e[" useInsertionEffect ".trim().toString()]||A;function Bt({prop:t,defaultProp:n,onChange:r=()=>{},caller:o}){const[i,s,a]=function({defaultProp:t,onChange:n}){const[r,o]=e.useState(t),i=e.useRef(r),s=e.useRef(n);return Ht(()=>{s.current=n},[n]),e.useEffect(()=>{i.current!==r&&(s.current?.(r),i.current=r)},[r,i]),[r,o,s]}({defaultProp:n,onChange:r}),l=void 0!==t,c=l?t:i;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=l},[l,o])}const d=e.useCallback(e=>{if(l){const n=function(e){return"function"==typeof e}(e)?e(t):e;n!==t&&a.current?.(n)}else s(e)},[l,t,s,a]);return[c,d]}var Gt=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Vt=e.forwardRef((e,t)=>i(E.span,{...e,ref:t,style:{...Gt,...e.style}}));Vt.displayName="VisuallyHidden";var Ut=Vt,[Yt]=b("Tooltip",[wt]),Xt=wt(),qt="TooltipProvider",Kt=700,Zt="tooltip.open",[Jt,Qt]=Yt(qt),en=t=>{const{__scopeTooltip:n,delayDuration:r=Kt,skipDelayDuration:o=300,disableHoverableContent:s=!1,children:a}=t,l=e.useRef(!0),c=e.useRef(!1),d=e.useRef(0);return e.useEffect(()=>{const e=d.current;return()=>window.clearTimeout(e)},[]),i(Jt,{scope:n,isOpenDelayedRef:l,delayDuration:r,onOpen:e.useCallback(()=>{window.clearTimeout(d.current),l.current=!1},[]),onClose:e.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>l.current=!0,o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:e.useCallback(e=>{c.current=e},[]),disableHoverableContent:s,children:a})};en.displayName=qt;var tn="Tooltip",[nn,rn]=Yt(tn),on=t=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:s,onOpenChange:a,disableHoverableContent:l,delayDuration:c}=t,d=Qt(tn,t.__scopeTooltip),u=Xt(n),[f,p]=e.useState(null),m=function(t){const[n,r]=e.useState(L());return A(()=>{r(e=>e??String(z++))},[t]),n?`radix-${n}`:""}(),h=e.useRef(0),g=l??d.disableHoverableContent,b=c??d.delayDuration,y=e.useRef(!1),[v,w]=Bt({prop:o,defaultProp:s??!1,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(Zt))):d.onClose(),a?.(e)},caller:tn}),x=e.useMemo(()=>v?y.current?"delayed-open":"instant-open":"closed",[v]),E=e.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,w(!0)},[w]),C=e.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),R=e.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,w(!0),h.current=0},b)},[b,w]);return e.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),i(_t,{...u,children:i(nn,{scope:n,contentId:m,open:v,stateAttribute:x,trigger:f,onTriggerChange:p,onTriggerEnter:e.useCallback(()=>{d.isOpenDelayedRef.current?R():E()},[d.isOpenDelayedRef,R,E]),onTriggerLeave:e.useCallback(()=>{g?C():(window.clearTimeout(h.current),h.current=0)},[C,g]),onOpen:E,onClose:C,disableHoverableContent:g,children:r})})};on.displayName=tn;var sn="TooltipTrigger",an=e.forwardRef((t,n)=>{const{__scopeTooltip:r,...o}=t,s=rn(sn,r),a=Qt(sn,r),l=Xt(r),c=g(n,e.useRef(null),s.onTriggerChange),d=e.useRef(!1),u=e.useRef(!1),f=e.useCallback(()=>d.current=!1,[]);return e.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),i(It,{asChild:!0,...l,children:i(E.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...o,ref:c,onPointerMove:p(t.onPointerMove,e=>{"touch"!==e.pointerType&&(u.current||a.isPointerInTransitRef.current||(s.onTriggerEnter(),u.current=!0))}),onPointerLeave:p(t.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:p(t.onPointerDown,()=>{s.open&&s.onClose(),d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:p(t.onFocus,()=>{d.current||s.onOpen()}),onBlur:p(t.onBlur,s.onClose),onClick:p(t.onClick,s.onClose)})})});an.displayName=sn;var[ln,cn]=Yt("TooltipPortal",{forceMount:void 0}),dn="TooltipContent",un=e.forwardRef((e,t)=>{const n=cn(dn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=rn(dn,e.__scopeTooltip);return i($t,{present:r||a.open,children:a.disableHoverableContent?i(gn,{side:o,...s,ref:t}):i(fn,{side:o,...s,ref:t})})}),fn=e.forwardRef((t,n)=>{const r=rn(dn,t.__scopeTooltip),o=Qt(dn,t.__scopeTooltip),s=e.useRef(null),a=g(n,s),[l,c]=e.useState(null),{trigger:d,onClose:u}=r,f=s.current,{onPointerInTransitChange:p}=o,m=e.useCallback(()=>{c(null),p(!1)},[p]),h=e.useCallback((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);c(i),p(!0)},[p]);return e.useEffect(()=>()=>m(),[m]),e.useEffect(()=>{if(d&&f){const e=e=>h(e,f),t=e=>h(e,d);return d.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[d,f,h,m]),e.useEffect(()=>{if(l){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=d?.contains(t)||f?.contains(t),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const s=t[e],a=t[i],l=s.x,c=s.y,d=a.x,u=a.y;c>r!=u>r&&n<(d-l)*(r-c)/(u-c)+l&&(o=!o)}return o}(n,l);r?m():o&&(m(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,f,l,u,m]),i(gn,{...t,ref:a})}),[pn,mn]=Yt(tn,{isInside:!1}),hn=function(e){const t=({children:e})=>i(s,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=w,t}("TooltipContent"),gn=e.forwardRef((t,n)=>{const{__scopeTooltip:r,children:o,"aria-label":s,onEscapeKeyDown:l,onPointerDownOutside:c,...d}=t,u=rn(dn,r),f=Xt(r),{onClose:p}=u;return e.useEffect(()=>(document.addEventListener(Zt,p),()=>document.removeEventListener(Zt,p)),[p]),e.useEffect(()=>{if(u.trigger){const e=e=>{const t=e.target;t?.contains(u.trigger)&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[u.trigger,p]),i(S,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:a(Wt,{"data-state":u.stateAttribute,...f,...d,ref:n,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[i(hn,{children:o}),i(pn,{scope:r,isInside:!0,children:i(Ut,{id:u.contentId,role:"tooltip",children:s||o})})]})})});un.displayName=dn;var bn="TooltipArrow";e.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Xt(n);return mn(bn,n).isInside?null:i(jt,{...o,...r,ref:t})}).displayName=bn;var yn=en,vn=on,wn=an,xn=un;function En(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=En(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Cn=e=>{const t=Pn(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Rn(n,t)||On(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},Rn=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Rn(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},kn=/^\[(.+)\]$/,On=e=>{if(kn.test(e)){const t=kn.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Pn=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Dn(Object.entries(e.classGroups),n).forEach(([e,n])=>{Tn(n,r,e,t)}),r},Tn=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Sn(t,e)).classGroupId=n)}if("function"==typeof e)return Nn(e)?void Tn(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{Tn(o,Sn(t,e),n,r)})})},Sn=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Nn=e=>e.isThemeGetter,Dn=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,An=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},Ln=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,s=e=>{const n=[];let s,a=0,l=0;for(let c=0;c<e.length;c++){let d=e[c];if(0===a){if(d===o&&(r||e.slice(c,c+i)===t)){n.push(e.slice(l,c)),l=c+i;continue}if("/"===d){s=c;continue}}"["===d?a++:"]"===d&&a--}const c=0===n.length?e:e.substring(l),d=c.startsWith("!");return{modifiers:n,hasImportantModifier:d,baseClassName:d?c.substring(1):c,maybePostfixModifierPosition:s&&s>l?s-l:void 0}};return n?e=>n({className:e,parseClassName:s}):s},zn=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},Mn=/\s+/;function _n(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=In(e))&&(r&&(r+=" "),r+=t);return r}const In=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=In(e[r]))&&(n&&(n+=" "),n+=t);return n};function Wn(e,...t){let n,r,o,i=function(a){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:An(e.cacheSize),parseClassName:Ln(e),...Cn(e)}))(l),r=n.cache.get,o=n.cache.set,i=s,s(a)};function s(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(Mn);let a="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{modifiers:l,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:u}=n(t);let f=Boolean(u),p=r(f?d.substring(0,u):d);if(!p){if(!f){a=t+(a.length>0?" "+a:a);continue}if(p=r(d),!p){a=t+(a.length>0?" "+a:a);continue}f=!1}const m=zn(l).join(":"),h=c?m+"!":m,g=h+p;if(i.includes(g))continue;i.push(g);const b=o(p,f);for(let e=0;e<b.length;++e){const t=b[e];i.push(h+t)}a=t+(a.length>0?" "+a:a)}return a})(e,n);return o(e,i),i}return function(){return i(_n.apply(null,arguments))}}const jn=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},$n=/^\[(?:([a-z-]+):)?(.+)\]$/i,Fn=/^\d+\/\d+$/,Hn=new Set(["px","full","screen"]),Bn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Vn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Un=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xn=e=>Kn(e)||Hn.has(e)||Fn.test(e),qn=e=>cr(e,"length",dr),Kn=e=>Boolean(e)&&!Number.isNaN(Number(e)),Zn=e=>cr(e,"number",Kn),Jn=e=>Boolean(e)&&Number.isInteger(Number(e)),Qn=e=>e.endsWith("%")&&Kn(e.slice(0,-1)),er=e=>$n.test(e),tr=e=>Bn.test(e),nr=new Set(["length","size","percentage"]),rr=e=>cr(e,nr,ur),or=e=>cr(e,"position",ur),ir=new Set(["image","url"]),sr=e=>cr(e,ir,pr),ar=e=>cr(e,"",fr),lr=()=>!0,cr=(e,t,n)=>{const r=$n.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},dr=e=>Gn.test(e)&&!Vn.test(e),ur=()=>!1,fr=e=>Un.test(e),pr=e=>Yn.test(e),mr=Wn(()=>{const e=jn("colors"),t=jn("spacing"),n=jn("blur"),r=jn("brightness"),o=jn("borderColor"),i=jn("borderRadius"),s=jn("borderSpacing"),a=jn("borderWidth"),l=jn("contrast"),c=jn("grayscale"),d=jn("hueRotate"),u=jn("invert"),f=jn("gap"),p=jn("gradientColorStops"),m=jn("gradientColorStopPositions"),h=jn("inset"),g=jn("margin"),b=jn("opacity"),y=jn("padding"),v=jn("saturate"),w=jn("scale"),x=jn("sepia"),E=jn("skew"),C=jn("space"),R=jn("translate"),k=()=>["auto",er,t],O=()=>[er,t],P=()=>["",Xn,qn],T=()=>["auto",Kn,er],S=()=>["","0",er],N=()=>[Kn,er];return{cacheSize:500,separator:":",theme:{colors:[lr],spacing:[Xn,qn],blur:["none","",tr,er],brightness:N(),borderColor:[e],borderRadius:["none","","full",tr,er],borderSpacing:O(),borderWidth:P(),contrast:N(),grayscale:S(),hueRotate:N(),invert:S(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[Qn,qn],inset:k(),margin:k(),opacity:N(),padding:O(),saturate:N(),scale:N(),sepia:S(),skew:N(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",er]}],container:["container"],columns:[{columns:[tr]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",er]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Jn,er]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",er]}],grow:[{grow:S()}],shrink:[{shrink:S()}],order:[{order:["first","last","none",Jn,er]}],"grid-cols":[{"grid-cols":[lr]}],"col-start-end":[{col:["auto",{span:["full",Jn,er]},er]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[lr]}],"row-start-end":[{row:["auto",{span:[Jn,er]},er]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",er]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",er]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",er,t]}],"min-w":[{"min-w":[er,t,"min","max","fit"]}],"max-w":[{"max-w":[er,t,"none","full","min","max","fit","prose",{screen:[tr]},tr]}],h:[{h:[er,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[er,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[er,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[er,t,"auto","min","max","fit"]}],"font-size":[{text:["base",tr,qn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Zn]}],"font-family":[{font:[lr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",er]}],"line-clamp":[{"line-clamp":["none",Kn,Zn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Xn,er]}],"list-image":[{"list-image":["none",er]}],"list-style-type":[{list:["none","disc","decimal",er]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Xn,qn]}],"underline-offset":[{"underline-offset":["auto",Xn,er]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",er]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",er]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",or]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",rr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},sr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Xn,er]}],"outline-w":[{outline:[Xn,qn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Xn,qn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",tr,ar]}],"shadow-color":[{shadow:[lr]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",tr,er]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[v]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",er]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",er]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",er]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Jn,er]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",er]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",er]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",er]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Xn,qn,Zn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function hr(...e){return mr(function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=En(e))&&(r&&(r+=" "),r+=t);return r}(e))}const gr=yn,br=vn,yr=wn,vr=e.forwardRef(({className:t,sideOffset:n=4,...r},o)=>e.createElement(xn,{ref:o,sideOffset:n,className:hr("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));vr.displayName=xn.displayName;const wr=({id:e,className:n,align:i,side:s,sideOffset:a=8,visible:l,content:c,width:d,delayDuration:u=100,children:p})=>{const[m,h]=r(!1);return o(()=>{m&&setTimeout(()=>h(!1),2e3)},[m]),t.createElement(gr,null,t.createElement(br,{open:l,delayDuration:u},t.createElement(yr,{asChild:!0},p),t.createElement(vr,{id:e,className:f("gyramais-tooltip-container",n),align:i,side:s,sideOffset:a,style:{maxWidth:d||"auto"},onClick:()=>{"string"==typeof c&&(navigator.clipboard.writeText(c),h(!0))}},"string"==typeof c?t.createElement("div",{className:f("gyramais-tooltip-content",n)},m?"Copiado!":c):c)))},xr=({id:e,className:n,label:r,children:o})=>t.createElement("div",{id:e,className:f("gyramais-information",n)},t.createElement("div",{className:"gyramais-information-label"},r),"string"==typeof o?t.createElement(wr,{className:"gyramais-information-content-tooltip",content:o,align:"start",side:"bottom"},t.createElement("div",{className:"gyramais-information-content cursor-pointer",onClick:()=>navigator.clipboard.writeText(o)},o||"-")):t.createElement("div",{className:"gyramais-information-content"},o||"-"));export{xr as Information};
6
+ */d=u,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}d.exports?(t.default=t,d.exports=t):window.classNames=t}();var f=c(u.exports);function p(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function m(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function h(...e){return t=>{let n=!1;const r=e.map(e=>{const r=m(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():m(e[t],null)}}}}function g(...t){return e.useCallback(h(...t),t)}function b(t,n=[]){let r=[];const o=()=>{const n=r.map(t=>e.createContext(t));return function(r){const o=r?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...r,[t]:o}}),[r,o])}};return o.scopeName=t,[function(n,o){const s=e.createContext(o),a=r.length;r=[...r,o];const l=n=>{const{scope:r,children:o,...l}=n,c=r?.[t]?.[a]||s,d=e.useMemo(()=>l,Object.values(l));return i(c.Provider,{value:d,children:o})};return l.displayName=n+"Provider",[l,function(r,i){const l=i?.[t]?.[a]||s,c=e.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},y(o,...n)]}function y(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=r.reduce((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]}),{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}function v(t){const n=e.forwardRef((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(r),i=function(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]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==e.Fragment&&(i.ref=n?h(n,t):t),e.cloneElement(r,i)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var w=Symbol("radix.slottable");function x(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===w}var E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const r=function(t){const n=v(t),r=e.forwardRef((t,r)=>{const{children:o,...s}=t,a=e.Children.toArray(o),l=a.find(x);if(l){const t=l.props.children,o=a.map(n=>n===l?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return i(n,{...s,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return i(n,{...s,ref:r,children:o})});return r.displayName=`${t}.Slot`,r}(`Primitive.${n}`),o=e.forwardRef((e,t)=>{const{asChild:o,...s}=e,a=o?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),i(a,{...s,ref:t})});return o.displayName=`Primitive.${n}`,{...t,[n]:o}},{});function C(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}var R,k="dismissableLayer.update",O="dismissableLayer.pointerDownOutside",P="dismissableLayer.focusOutside",T=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),S=e.forwardRef((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...d}=t,u=e.useContext(T),[f,m]=e.useState(null),h=f?.ownerDocument??globalThis?.document,[,b]=e.useState({}),y=g(n,e=>m(e)),v=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=v.indexOf(w),S=f?v.indexOf(f):-1,A=u.layersWithOutsidePointerEventsDisabled.size>0,L=S>=x,z=function(t,n=globalThis?.document){const r=C(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){D(O,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...u.branches].some(e=>e.contains(t));L&&!n&&(s?.(e),l?.(e),e.defaultPrevented||c?.())},h),M=function(t,n=globalThis?.document){const r=C(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){D(P,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...u.branches].some(e=>e.contains(t))||(a?.(e),l?.(e),e.defaultPrevented||c?.())},h);return function(t,n=globalThis?.document){const r=C(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[r,n])}(e=>{S===u.layers.size-1&&(o?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},h),e.useEffect(()=>{if(f)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(R=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),N(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=R)}},[f,h,r,u]),e.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),N())},[f,u]),e.useEffect(()=>{const e=()=>b({});return document.addEventListener(k,e),()=>document.removeEventListener(k,e)},[]),i(E.div,{...d,ref:y,style:{pointerEvents:A?L?"auto":"none":void 0,...t.style},onFocusCapture:p(t.onFocusCapture,M.onFocusCapture),onBlurCapture:p(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:p(t.onPointerDownCapture,z.onPointerDownCapture)})});S.displayName="DismissableLayer";function N(){const e=new CustomEvent(k);document.dispatchEvent(e)}function D(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?function(e,t){e&&l.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}e.forwardRef((t,n)=>{const r=e.useContext(T),o=e.useRef(null),s=g(n,o);return e.useEffect(()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),i(E.div,{...t,ref:s})}).displayName="DismissableLayerBranch";var A=globalThis?.document?e.useLayoutEffect:()=>{},L=e[" useId ".trim().toString()]||(()=>{}),z=0;const M=["top","right","bottom","left"],_=Math.min,I=Math.max,W=Math.round,j=Math.floor,$=e=>({x:e,y:e}),F={left:"right",right:"left",bottom:"top",top:"bottom"};function H(e,t,n){return I(e,_(t,n))}function B(e,t){return"function"==typeof e?e(t):e}function G(e){return e.split("-")[0]}function V(e){return e.split("-")[1]}function U(e){return"x"===e?"y":"x"}function Y(e){return"y"===e?"height":"width"}function X(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function q(e){return U(X(e))}function K(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Z=["left","right"],J=["right","left"],Q=["top","bottom"],ee=["bottom","top"];function te(e,t,n,r){const o=V(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?J:Z:t?Z:J;case"left":case"right":return t?Q:ee;default:return[]}}(G(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(K)))),i}function ne(e){const t=G(e);return F[t]+e.slice(t.length)}function re(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function oe(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 ie(e,t,n){let{reference:r,floating:o}=e;const i=X(t),s=q(t),a=Y(s),l=G(t),c="y"===i,d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(V(t)){case"start":p[s]-=f*(n&&c?-1:1);break;case"end":p[s]+=f*(n&&c?-1:1)}return p}async function se(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:p=0}=B(t,e),m=re(p),h=a[f?"floating"===u?"reference":"floating":u],g=oe(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),b="floating"===u?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),v=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=oe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:y,strategy:l}):b);return{top:(g.top-w.top+m.top)/v.y,bottom:(w.bottom-g.bottom+m.bottom)/v.y,left:(g.left-w.left+m.left)/v.x,right:(w.right-g.right+m.right)/v.x}}function ae(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function le(e){return M.some(t=>e[t]>=0)}const ce=new Set(["left","top"]);function de(){return"undefined"!=typeof window}function ue(e){return me(e)?(e.nodeName||"").toLowerCase():"#document"}function fe(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function pe(e){var t;return null==(t=(me(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function me(e){return!!de()&&(e instanceof Node||e instanceof fe(e).Node)}function he(e){return!!de()&&(e instanceof Element||e instanceof fe(e).Element)}function ge(e){return!!de()&&(e instanceof HTMLElement||e instanceof fe(e).HTMLElement)}function be(e){return!(!de()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot)}function ye(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Te(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function ve(e){return/^(table|td|th)$/.test(ue(e))}function we(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const xe=/transform|translate|scale|rotate|perspective|filter/,Ee=/paint|layout|strict|content/,Ce=e=>!!e&&"none"!==e;let Re;function ke(e){const t=he(e)?Te(e):e;return Ce(t.transform)||Ce(t.translate)||Ce(t.scale)||Ce(t.rotate)||Ce(t.perspective)||!Oe()&&(Ce(t.backdropFilter)||Ce(t.filter))||xe.test(t.willChange||"")||Ee.test(t.contain||"")}function Oe(){return null==Re&&(Re="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Re}function Pe(e){return/^(html|body|#document)$/.test(ue(e))}function Te(e){return fe(e).getComputedStyle(e)}function Se(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ne(e){if("html"===ue(e))return e;const t=e.assignedSlot||e.parentNode||be(e)&&e.host||pe(e);return be(t)?t.host:t}function De(e){const t=Ne(e);return Pe(t)?e.ownerDocument?e.ownerDocument.body:e.body:ge(t)&&ye(t)?t:De(t)}function Ae(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=De(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=fe(o);if(i){const e=Le(s);return t.concat(s,s.visualViewport||[],ye(o)?o:[],e&&n?Ae(e):[])}return t.concat(o,Ae(o,[],n))}function Le(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ze(e){const t=Te(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ge(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=W(n)!==i||W(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Me(e){return he(e)?e:e.contextElement}function _e(e){const t=Me(e);if(!ge(t))return $(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ze(t);let s=(i?W(n.width):n.width)/r,a=(i?W(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Ie=$(0);function We(e){const t=fe(e);return Oe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ie}function je(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Me(e);let s=$(1);t&&(r?he(r)&&(s=_e(r)):s=_e(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==fe(e))&&t}(i,n,r)?We(i):$(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){const e=fe(i),t=r&&he(r)?fe(r):r;let n=e,o=Le(n);for(;o&&r&&t!==n;){const e=_e(o),t=o.getBoundingClientRect(),r=Te(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=i,c+=s,n=fe(o),o=Le(n)}}return oe({width:d,height:u,x:l,y:c})}function $e(e,t){const n=Se(e).scrollLeft;return t?t.left+n:je(pe(e)).left+n}function Fe(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-$e(e,n),y:n.top+t.scrollTop}}function He(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=fe(e),r=pe(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=Oe();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}const c=$e(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-o);s<=25&&(i-=s)}else c<=25&&(i+=c);return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=pe(e),n=Se(e),r=e.ownerDocument.body,o=I(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=I(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+$e(e);const a=-n.scrollTop;return"rtl"===Te(r).direction&&(s+=I(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(pe(e));else if(he(t))r=function(e,t){const n=je(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ge(e)?_e(e):$(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=We(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return oe(r)}function Be(e,t){const n=Ne(e);return!(n===t||!he(n)||Pe(n))&&("fixed"===Te(n).position||Be(n,t))}function Ge(e,t,n){const r=ge(t),o=pe(t),i="fixed"===n,s=je(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=$(0);function c(){l.x=$e(o)}if(r||!r&&!i)if(("body"!==ue(t)||ye(o))&&(a=Se(t)),r){const e=je(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const d=!o||r||i?$(0):Fe(o,a);return{x:s.left+a.scrollLeft-l.x-d.x,y:s.top+a.scrollTop-l.y-d.y,width:s.width,height:s.height}}function Ve(e){return"static"===Te(e).position}function Ue(e,t){if(!ge(e)||"fixed"===Te(e).position)return null;if(t)return t(e);let n=e.offsetParent;return pe(e)===n&&(n=n.ownerDocument.body),n}function Ye(e,t){const n=fe(e);if(we(e))return n;if(!ge(e)){let t=Ne(e);for(;t&&!Pe(t);){if(he(t)&&!Ve(t))return t;t=Ne(t)}return n}let r=Ue(e,t);for(;r&&ve(r)&&Ve(r);)r=Ue(r,t);return r&&Pe(r)&&Ve(r)&&!ke(r)?n:r||function(e){let t=Ne(e);for(;ge(t)&&!Pe(t);){if(ke(t))return t;if(we(t))return null;t=Ne(t)}return null}(e)||n}const Xe={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=pe(r),a=!!t&&we(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=$(1);const d=$(0),u=ge(r);if((u||!u&&!i)&&(("body"!==ue(r)||ye(s))&&(l=Se(r)),u)){const e=je(r);c=_e(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const f=!s||u||i?$(0):Fe(s,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+f.x,y:n.y*c.y-l.scrollTop*c.y+d.y+f.y}},getDocumentElement:pe,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?we(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Ae(e,[],!1).filter(e=>he(e)&&"body"!==ue(e)),o=null;const i="fixed"===Te(e).position;let s=i?Ne(e):e;for(;he(s)&&!Pe(s);){const t=Te(s),n=ke(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||ye(s)&&!n&&Be(e,s))?r=r.filter(e=>e!==s):o=t,s=Ne(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=He(t,i[0],o);let a=s.top,l=s.right,c=s.bottom,d=s.left;for(let e=1;e<i.length;e++){const n=He(t,i[e],o);a=I(n.top,a),l=_(n.right,l),c=_(n.bottom,c),d=I(n.left,d)}return{width:l-d,height:c-a,x:d,y:a}},getOffsetParent:Ye,getElementRects:async function(e){const t=this.getOffsetParent||Ye,n=this.getDimensions,r=await n(e.floating);return{reference:Ge(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=ze(e);return{width:t,height:n}},getScale:_e,isElement:he,isRTL:function(e){return"rtl"===Te(e).direction}};function qe(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ke(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Me(e),d=o||i?[...c?Ae(c):[],...t?Ae(t):[]]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const u=c&&a?function(e,t){let n,r=null;const o=pe(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:u,width:f,height:p}=c;if(a||t(),!f||!p)return;const m={rootMargin:-j(u)+"px "+-j(o.clientWidth-(d+f))+"px "+-j(o.clientHeight-(u+p))+"px "+-j(d)+"px",threshold:I(0,_(1,l))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||qe(c,e.getBoundingClientRect())||s(),h=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,m=null;s&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!l&&m.observe(c),t&&m.observe(t));let h=l?je(e):null;return l&&function t(){const r=je(e);h&&!qe(h,r)&&n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==u||u(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const Ze=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=G(n),a=V(n),l="y"===X(n),c=ce.has(s)?-1:1,d=i&&l?-1:1,u=B(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),l?{x:p*d,y:f*c}:{x:f*c,y:p*d}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Je=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=B(e,t),d={x:n,y:r},u=await i.detectOverflow(t,c),f=X(G(o)),p=U(f);let m=d[p],h=d[f];if(s){const e="y"===p?"bottom":"right";m=H(m+u["y"===p?"top":"left"],m,m-u[e])}if(a){const e="y"===f?"bottom":"right";h=H(h+u["y"===f?"top":"left"],h,h-u[e])}const g=l.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:s,[f]:a}}}}}},Qe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=B(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=G(o),y=X(a),v=G(a)===a,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(v||!h?[ne(a)]:function(e){const t=ne(e);return[K(e),t,K(t)]}(a)),E="none"!==m;!f&&E&&x.push(...te(a,h,m,w));const C=[a,...x],R=await l.detectOverflow(t,g),k=[];let O=(null==(r=i.flip)?void 0:r.overflows)||[];if(d&&k.push(R[b]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=V(e),o=q(e),i=Y(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ne(s)),[s,ne(s)]}(o,s,w);k.push(R[e[0]],R[e[1]])}if(O=[...O,{placement:o,overflows:k}],!k.every(e=>e<=0)){var P,T;const e=((null==(P=i.flip)?void 0:P.index)||0)+1,t=C[e];if(t){if(!("alignment"===u&&y!==X(t))||O.every(e=>X(e.placement)!==y||e.overflows[0]>0))return{data:{index:e,overflows:O},reset:{placement:t}}}let n=null==(T=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:T.placement;if(!n)switch(p){case"bestFit":{var S;const e=null==(S=O.filter(e=>{if(E){const t=X(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:S[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},et=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=B(e,t),d=await s.detectOverflow(t,c),u=G(o),f=V(o),p="y"===X(o),{width:m,height:h}=i.floating;let g,b;"top"===u||"bottom"===u?(g=u,b=f===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=u,g="end"===f?"top":"bottom");const y=h-d.top-d.bottom,v=m-d.left-d.right,w=_(h-d[g],y),x=_(m-d[b],v),E=!t.middlewareData.shift;let C=w,R=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(R=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(C=y),E&&!f){const e=I(d.left,0),t=I(d.right,0),n=I(d.top,0),r=I(d.bottom,0);p?R=m-2*(0!==e||0!==t?e+t:I(d.left,d.right)):C=h-2*(0!==n||0!==r?n+r:I(d.top,d.bottom))}await l({...t,availableWidth:R,availableHeight:C});const k=await s.getDimensions(a.floating);return m!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}},tt=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=B(e,t);switch(o){case"referenceHidden":{const e=ae(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:le(e)}}}case"escaped":{const e=ae(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:le(e)}}}default:return{}}}}},nt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=B(e,t)||{};if(null==c)return{};const u=re(d),f={x:n,y:r},p=q(o),m=Y(p),h=await s.getDimensions(c),g="y"===p,b=g?"top":"left",y=g?"bottom":"right",v=g?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],E=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let C=E?E[v]:0;C&&await(null==s.isElement?void 0:s.isElement(E))||(C=a.floating[v]||i.floating[m]);const R=w/2-x/2,k=C/2-h[m]/2-1,O=_(u[b],k),P=_(u[y],k),T=O,S=C-h[m]-P,N=C/2-h[m]/2+R,D=H(T,N,S),A=!l.arrow&&null!=V(o)&&N!==D&&i.reference[m]/2-(N<T?O:P)-h[m]/2<0,L=A?N<T?N-T:N-S:0;return{[p]:f[p]+L,data:{[p]:D,centerOffset:N-D-L,...A&&{alignmentOffset:L}},reset:A}}}),rt=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=B(e,t),d={x:n,y:r},u=X(o),f=U(u);let p=d[f],m=d[u];const h=B(a,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var b,y;const e="y"===f?"width":"height",t=ce.has(G(o)),n=i.reference[u]-i.floating[e]+(t&&(null==(b=s.offset)?void 0:b[u])||0)+(t?0:g.crossAxis),r=i.reference[u]+i.reference[e]+(t?0:(null==(y=s.offset)?void 0:y[u])||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[u]:m}}}},ot=(e,t,n)=>{const r=new Map,o={platform:Xe,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:se},l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=ie(c,r,l),f=r,p=0;const m={};for(let n=0;n<i.length;n++){const h=i[n];if(!h)continue;const{name:g,fn:b}=h,{x:y,y:v,data:w,reset:x}=await b({x:d,y:u,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});d=null!=y?y:d,u=null!=v?v:u,m[g]={...m[g],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(c=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:d,y:u}=ie(c,f,l))),n=-1)}return{x:d,y:u,placement:f,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};var it="undefined"!=typeof document?n:function(){};function st(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!st(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;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!st(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function at(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lt(e,t){const n=at(e);return Math.round(t*n)/n}function ct(t){const n=e.useRef(t);return it(()=>{n.current=t}),n}const dt=(e,t)=>{const n=Ze(e);return{name:n.name,fn:n.fn,options:[e,t]}},ut=(e,t)=>{const n=Je(e);return{name:n.name,fn:n.fn,options:[e,t]}},ft=(e,t)=>{const n=Qe(e);return{name:n.name,fn:n.fn,options:[e,t]}},pt=(e,t)=>{const n=et(e);return{name:n.name,fn:n.fn,options:[e,t]}},mt=(e,t)=>{const n=tt(e);return{name:n.name,fn:n.fn,options:[e,t]}},ht=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?nt({element:n.current,padding:r}).fn(t):{}:n?nt({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};var gt=e.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return i(E.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:i("polygon",{points:"0,0 30,0 15,10"})})});gt.displayName="Arrow";var bt=gt;var yt="Popper",[vt,wt]=b(yt),[xt,Et]=vt(yt),Ct=t=>{const{__scopePopper:n,children:r}=t,[o,s]=e.useState(null);return i(xt,{scope:n,anchor:o,onAnchorChange:s,children:r})};Ct.displayName=yt;var Rt="PopperAnchor",kt=e.forwardRef((t,n)=>{const{__scopePopper:r,virtualRef:o,...s}=t,a=Et(Rt,r),l=e.useRef(null),c=g(n,l),d=e.useRef(null);return e.useEffect(()=>{const e=d.current;d.current=o?.current||l.current,e!==d.current&&a.onAnchorChange(d.current)}),o?null:i(E.div,{...s,ref:c})});kt.displayName=Rt;var Ot="PopperContent",[Pt,Tt]=vt(Ot),St=e.forwardRef((t,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:s=0,align:a="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:u=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:b="optimized",onPlaced:y,...v}=t,w=Et(Ot,r),[x,R]=e.useState(null),k=g(n,e=>R(e)),[O,P]=e.useState(null),T=function(t){const[n,r]=e.useState(void 0);return A(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;r({width:o,height:i})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)},[t]),n}(O),S=T?.width??0,N=T?.height??0,D=o+("center"!==a?"-"+a:""),L="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},z=Array.isArray(f)?f:[f],M=z.length>0,_={padding:L,boundary:z.filter(Lt),altBoundary:M},{refs:I,floatingStyles:W,placement:j,isPositioned:$,middlewareData:F}=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:d,open:u}=t,[f,p]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[m,h]=e.useState(o);st(m,o)||h(o);const[g,b]=e.useState(null),[y,v]=e.useState(null),w=e.useCallback(e=>{e!==R.current&&(R.current=e,b(e))},[]),x=e.useCallback(e=>{e!==k.current&&(k.current=e,v(e))},[]),E=s||g,C=a||y,R=e.useRef(null),k=e.useRef(null),O=e.useRef(f),P=null!=d,T=ct(d),S=ct(i),N=ct(u),D=e.useCallback(()=>{if(!R.current||!k.current)return;const e={placement:n,strategy:r,middleware:m};S.current&&(e.platform=S.current),ot(R.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};A.current&&!st(O.current,t)&&(O.current=t,l.flushSync(()=>{p(t)}))})},[m,n,r,S,N]);it(()=>{!1===u&&O.current.isPositioned&&(O.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);const A=e.useRef(!1);it(()=>(A.current=!0,()=>{A.current=!1}),[]),it(()=>{if(E&&(R.current=E),C&&(k.current=C),E&&C){if(T.current)return T.current(E,C,D);D()}},[E,C,D,T,P]);const L=e.useMemo(()=>({reference:R,floating:k,setReference:w,setFloating:x}),[w,x]),z=e.useMemo(()=>({reference:E,floating:C}),[E,C]),M=e.useMemo(()=>{const e={position:r,left:0,top:0};if(!z.floating)return e;const t=lt(z.floating,f.x),n=lt(z.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...at(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,c,z.floating,f.x,f.y]);return e.useMemo(()=>({...f,update:D,refs:L,elements:z,floatingStyles:M}),[f,D,L,z,M])}({strategy:"fixed",placement:D,whileElementsMounted:(...e)=>Ke(...e,{animationFrame:"always"===b}),elements:{reference:w.anchor},middleware:[dt({mainAxis:s+N,alignmentAxis:c}),u&&ut({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?{fn:rt(H).fn,options:[H,B]}:void 0,..._}),u&&ft({..._}),pt({..._,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${r}px`),s.setProperty("--radix-popper-anchor-width",`${o}px`),s.setProperty("--radix-popper-anchor-height",`${i}px`)}}),O&&ht({element:O,padding:d}),zt({arrowWidth:S,arrowHeight:N}),h&&mt({strategy:"referenceHidden",..._})]});var H,B;const[G,V]=Mt(j),U=C(y);A(()=>{$&&U?.()},[$,U]);const Y=F.arrow?.x,X=F.arrow?.y,q=0!==F.arrow?.centerOffset,[K,Z]=e.useState();return A(()=>{x&&Z(window.getComputedStyle(x).zIndex)},[x]),i("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:$?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:i(Pt,{scope:r,placedSide:G,onArrowChange:P,arrowX:Y,arrowY:X,shouldHideArrow:q,children:i(E.div,{"data-side":G,"data-align":V,...v,ref:k,style:{...v.style,animation:$?void 0:"none"}})})})});St.displayName=Ot;var Nt="PopperArrow",Dt={top:"bottom",right:"left",bottom:"top",left:"right"},At=e.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Tt(Nt,n),s=Dt[o.placedSide];return i("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:i(bt,{...r,ref:t,style:{...r.style,display:"block"}})})});function Lt(e){return null!==e}At.displayName=Nt;var zt=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,s=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[l,c]=Mt(n),d={start:"0%",center:"50%",end:"100%"}[c],u=(o.arrow?.x??0)+s/2,f=(o.arrow?.y??0)+a/2;let p="",m="";return"bottom"===l?(p=i?d:`${u}px`,m=-a+"px"):"top"===l?(p=i?d:`${u}px`,m=`${r.floating.height+a}px`):"right"===l?(p=-a+"px",m=i?d:`${f}px`):"left"===l&&(p=`${r.floating.width+a}px`,m=i?d:`${f}px`),{data:{x:p,y:m}}}});function Mt(e){const[t,n="center"]=e.split("-");return[t,n]}var _t=Ct,It=kt,Wt=St,jt=At;var $t=t=>{const{present:n,children:r}=t,o=function(t){const[n,r]=e.useState(),o=e.useRef(null),i=e.useRef(t),s=e.useRef("none"),a=t?"mounted":"unmounted",[l,c]=function(t,n){return e.useReducer((e,t)=>n[e][t]??e,t)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=Ft(o.current);s.current="mounted"===l?e:"none"},[l]),A(()=>{const e=o.current,n=i.current;if(n!==t){const r=s.current,o=Ft(e);if(t)c("MOUNT");else if("none"===o||"none"===e?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}},[t,c]),A(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const s=Ft(o.current).includes(CSS.escape(r.animationName));if(r.target===n&&s&&(c("ANIMATION_END"),!i.current)){const r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},a=e=>{e.target===n&&(s.current=Ft(o.current))};return n.addEventListener("animationstart",a),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",a),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:e.useCallback(e=>{o.current=e?getComputedStyle(e):null,r(e)},[])}}(n),i="function"==typeof r?r({present:o.isPresent}):e.Children.only(r),s=g(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof r||o.isPresent?e.cloneElement(i,{ref:s}):null};function Ft(e){return e?.animationName||"none"}$t.displayName="Presence";var Ht=e[" useInsertionEffect ".trim().toString()]||A;function Bt({prop:t,defaultProp:n,onChange:r=()=>{},caller:o}){const[i,s,a]=function({defaultProp:t,onChange:n}){const[r,o]=e.useState(t),i=e.useRef(r),s=e.useRef(n);return Ht(()=>{s.current=n},[n]),e.useEffect(()=>{i.current!==r&&(s.current?.(r),i.current=r)},[r,i]),[r,o,s]}({defaultProp:n,onChange:r}),l=void 0!==t,c=l?t:i;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=l},[l,o])}const d=e.useCallback(e=>{if(l){const n=function(e){return"function"==typeof e}(e)?e(t):e;n!==t&&a.current?.(n)}else s(e)},[l,t,s,a]);return[c,d]}var Gt=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Vt=e.forwardRef((e,t)=>i(E.span,{...e,ref:t,style:{...Gt,...e.style}}));Vt.displayName="VisuallyHidden";var Ut=Vt,[Yt]=b("Tooltip",[wt]),Xt=wt(),qt="TooltipProvider",Kt=700,Zt="tooltip.open",[Jt,Qt]=Yt(qt),en=t=>{const{__scopeTooltip:n,delayDuration:r=Kt,skipDelayDuration:o=300,disableHoverableContent:s=!1,children:a}=t,l=e.useRef(!0),c=e.useRef(!1),d=e.useRef(0);return e.useEffect(()=>{const e=d.current;return()=>window.clearTimeout(e)},[]),i(Jt,{scope:n,isOpenDelayedRef:l,delayDuration:r,onOpen:e.useCallback(()=>{window.clearTimeout(d.current),l.current=!1},[]),onClose:e.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>l.current=!0,o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:e.useCallback(e=>{c.current=e},[]),disableHoverableContent:s,children:a})};en.displayName=qt;var tn="Tooltip",[nn,rn]=Yt(tn),on=t=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:s,onOpenChange:a,disableHoverableContent:l,delayDuration:c}=t,d=Qt(tn,t.__scopeTooltip),u=Xt(n),[f,p]=e.useState(null),m=function(t){const[n,r]=e.useState(L());return A(()=>{r(e=>e??String(z++))},[t]),n?`radix-${n}`:""}(),h=e.useRef(0),g=l??d.disableHoverableContent,b=c??d.delayDuration,y=e.useRef(!1),[v,w]=Bt({prop:o,defaultProp:s??!1,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(Zt))):d.onClose(),a?.(e)},caller:tn}),x=e.useMemo(()=>v?y.current?"delayed-open":"instant-open":"closed",[v]),E=e.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,w(!0)},[w]),C=e.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),R=e.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,w(!0),h.current=0},b)},[b,w]);return e.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),i(_t,{...u,children:i(nn,{scope:n,contentId:m,open:v,stateAttribute:x,trigger:f,onTriggerChange:p,onTriggerEnter:e.useCallback(()=>{d.isOpenDelayedRef.current?R():E()},[d.isOpenDelayedRef,R,E]),onTriggerLeave:e.useCallback(()=>{g?C():(window.clearTimeout(h.current),h.current=0)},[C,g]),onOpen:E,onClose:C,disableHoverableContent:g,children:r})})};on.displayName=tn;var sn="TooltipTrigger",an=e.forwardRef((t,n)=>{const{__scopeTooltip:r,...o}=t,s=rn(sn,r),a=Qt(sn,r),l=Xt(r),c=g(n,e.useRef(null),s.onTriggerChange),d=e.useRef(!1),u=e.useRef(!1),f=e.useCallback(()=>d.current=!1,[]);return e.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),i(It,{asChild:!0,...l,children:i(E.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...o,ref:c,onPointerMove:p(t.onPointerMove,e=>{"touch"!==e.pointerType&&(u.current||a.isPointerInTransitRef.current||(s.onTriggerEnter(),u.current=!0))}),onPointerLeave:p(t.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:p(t.onPointerDown,()=>{s.open&&s.onClose(),d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:p(t.onFocus,()=>{d.current||s.onOpen()}),onBlur:p(t.onBlur,s.onClose),onClick:p(t.onClick,s.onClose)})})});an.displayName=sn;var[ln,cn]=Yt("TooltipPortal",{forceMount:void 0}),dn="TooltipContent",un=e.forwardRef((e,t)=>{const n=cn(dn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=rn(dn,e.__scopeTooltip);return i($t,{present:r||a.open,children:a.disableHoverableContent?i(gn,{side:o,...s,ref:t}):i(fn,{side:o,...s,ref:t})})}),fn=e.forwardRef((t,n)=>{const r=rn(dn,t.__scopeTooltip),o=Qt(dn,t.__scopeTooltip),s=e.useRef(null),a=g(n,s),[l,c]=e.useState(null),{trigger:d,onClose:u}=r,f=s.current,{onPointerInTransitChange:p}=o,m=e.useCallback(()=>{c(null),p(!1)},[p]),h=e.useCallback((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);c(i),p(!0)},[p]);return e.useEffect(()=>()=>m(),[m]),e.useEffect(()=>{if(d&&f){const e=e=>h(e,f),t=e=>h(e,d);return d.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[d,f,h,m]),e.useEffect(()=>{if(l){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=d?.contains(t)||f?.contains(t),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const s=t[e],a=t[i],l=s.x,c=s.y,d=a.x,u=a.y;c>r!=u>r&&n<(d-l)*(r-c)/(u-c)+l&&(o=!o)}return o}(n,l);r?m():o&&(m(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,f,l,u,m]),i(gn,{...t,ref:a})}),[pn,mn]=Yt(tn,{isInside:!1}),hn=function(e){const t=({children:e})=>i(s,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=w,t}("TooltipContent"),gn=e.forwardRef((t,n)=>{const{__scopeTooltip:r,children:o,"aria-label":s,onEscapeKeyDown:l,onPointerDownOutside:c,...d}=t,u=rn(dn,r),f=Xt(r),{onClose:p}=u;return e.useEffect(()=>(document.addEventListener(Zt,p),()=>document.removeEventListener(Zt,p)),[p]),e.useEffect(()=>{if(u.trigger){const e=e=>{const t=e.target;t?.contains(u.trigger)&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[u.trigger,p]),i(S,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:a(Wt,{"data-state":u.stateAttribute,...f,...d,ref:n,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[i(hn,{children:o}),i(pn,{scope:r,isInside:!0,children:i(Ut,{id:u.contentId,role:"tooltip",children:s||o})})]})})});un.displayName=dn;var bn="TooltipArrow";e.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Xt(n);return mn(bn,n).isInside?null:i(jt,{...o,...r,ref:t})}).displayName=bn;var yn=en,vn=on,wn=an,xn=un;function En(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=En(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Cn=e=>{const t=Pn(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Rn(n,t)||On(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},Rn=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Rn(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},kn=/^\[(.+)\]$/,On=e=>{if(kn.test(e)){const t=kn.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Pn=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Dn(Object.entries(e.classGroups),n).forEach(([e,n])=>{Tn(n,r,e,t)}),r},Tn=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Sn(t,e)).classGroupId=n)}if("function"==typeof e)return Nn(e)?void Tn(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{Tn(o,Sn(t,e),n,r)})})},Sn=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Nn=e=>e.isThemeGetter,Dn=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,An=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},Ln=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,s=e=>{const n=[];let s,a=0,l=0;for(let c=0;c<e.length;c++){let d=e[c];if(0===a){if(d===o&&(r||e.slice(c,c+i)===t)){n.push(e.slice(l,c)),l=c+i;continue}if("/"===d){s=c;continue}}"["===d?a++:"]"===d&&a--}const c=0===n.length?e:e.substring(l),d=c.startsWith("!");return{modifiers:n,hasImportantModifier:d,baseClassName:d?c.substring(1):c,maybePostfixModifierPosition:s&&s>l?s-l:void 0}};return n?e=>n({className:e,parseClassName:s}):s},zn=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},Mn=/\s+/;function _n(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=In(e))&&(r&&(r+=" "),r+=t);return r}const In=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=In(e[r]))&&(n&&(n+=" "),n+=t);return n};function Wn(e,...t){let n,r,o,i=function(a){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:An(e.cacheSize),parseClassName:Ln(e),...Cn(e)}))(l),r=n.cache.get,o=n.cache.set,i=s,s(a)};function s(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(Mn);let a="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{modifiers:l,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:u}=n(t);let f=Boolean(u),p=r(f?d.substring(0,u):d);if(!p){if(!f){a=t+(a.length>0?" "+a:a);continue}if(p=r(d),!p){a=t+(a.length>0?" "+a:a);continue}f=!1}const m=zn(l).join(":"),h=c?m+"!":m,g=h+p;if(i.includes(g))continue;i.push(g);const b=o(p,f);for(let e=0;e<b.length;++e){const t=b[e];i.push(h+t)}a=t+(a.length>0?" "+a:a)}return a})(e,n);return o(e,i),i}return function(){return i(_n.apply(null,arguments))}}const jn=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},$n=/^\[(?:([a-z-]+):)?(.+)\]$/i,Fn=/^\d+\/\d+$/,Hn=new Set(["px","full","screen"]),Bn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Vn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Un=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xn=e=>Kn(e)||Hn.has(e)||Fn.test(e),qn=e=>cr(e,"length",dr),Kn=e=>Boolean(e)&&!Number.isNaN(Number(e)),Zn=e=>cr(e,"number",Kn),Jn=e=>Boolean(e)&&Number.isInteger(Number(e)),Qn=e=>e.endsWith("%")&&Kn(e.slice(0,-1)),er=e=>$n.test(e),tr=e=>Bn.test(e),nr=new Set(["length","size","percentage"]),rr=e=>cr(e,nr,ur),or=e=>cr(e,"position",ur),ir=new Set(["image","url"]),sr=e=>cr(e,ir,pr),ar=e=>cr(e,"",fr),lr=()=>!0,cr=(e,t,n)=>{const r=$n.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},dr=e=>Gn.test(e)&&!Vn.test(e),ur=()=>!1,fr=e=>Un.test(e),pr=e=>Yn.test(e),mr=Wn(()=>{const e=jn("colors"),t=jn("spacing"),n=jn("blur"),r=jn("brightness"),o=jn("borderColor"),i=jn("borderRadius"),s=jn("borderSpacing"),a=jn("borderWidth"),l=jn("contrast"),c=jn("grayscale"),d=jn("hueRotate"),u=jn("invert"),f=jn("gap"),p=jn("gradientColorStops"),m=jn("gradientColorStopPositions"),h=jn("inset"),g=jn("margin"),b=jn("opacity"),y=jn("padding"),v=jn("saturate"),w=jn("scale"),x=jn("sepia"),E=jn("skew"),C=jn("space"),R=jn("translate"),k=()=>["auto",er,t],O=()=>[er,t],P=()=>["",Xn,qn],T=()=>["auto",Kn,er],S=()=>["","0",er],N=()=>[Kn,er];return{cacheSize:500,separator:":",theme:{colors:[lr],spacing:[Xn,qn],blur:["none","",tr,er],brightness:N(),borderColor:[e],borderRadius:["none","","full",tr,er],borderSpacing:O(),borderWidth:P(),contrast:N(),grayscale:S(),hueRotate:N(),invert:S(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[Qn,qn],inset:k(),margin:k(),opacity:N(),padding:O(),saturate:N(),scale:N(),sepia:S(),skew:N(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",er]}],container:["container"],columns:[{columns:[tr]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",er]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Jn,er]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",er]}],grow:[{grow:S()}],shrink:[{shrink:S()}],order:[{order:["first","last","none",Jn,er]}],"grid-cols":[{"grid-cols":[lr]}],"col-start-end":[{col:["auto",{span:["full",Jn,er]},er]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[lr]}],"row-start-end":[{row:["auto",{span:[Jn,er]},er]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",er]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",er]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",er,t]}],"min-w":[{"min-w":[er,t,"min","max","fit"]}],"max-w":[{"max-w":[er,t,"none","full","min","max","fit","prose",{screen:[tr]},tr]}],h:[{h:[er,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[er,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[er,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[er,t,"auto","min","max","fit"]}],"font-size":[{text:["base",tr,qn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Zn]}],"font-family":[{font:[lr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",er]}],"line-clamp":[{"line-clamp":["none",Kn,Zn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Xn,er]}],"list-image":[{"list-image":["none",er]}],"list-style-type":[{list:["none","disc","decimal",er]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Xn,qn]}],"underline-offset":[{"underline-offset":["auto",Xn,er]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",er]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",er]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",or]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",rr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},sr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Xn,er]}],"outline-w":[{outline:[Xn,qn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Xn,qn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",tr,ar]}],"shadow-color":[{shadow:[lr]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",tr,er]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[v]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",er]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",er]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",er]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Jn,er]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",er]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",er]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",er]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Xn,qn,Zn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function hr(...e){return mr(function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=En(e))&&(r&&(r+=" "),r+=t);return r}(e))}const gr=yn,br=vn,yr=wn,vr=e.forwardRef(({className:t,sideOffset:n=4,...r},o)=>e.createElement(xn,{ref:o,sideOffset:n,className:hr("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));vr.displayName=xn.displayName;const wr=t.forwardRef(({id:e,className:n,align:i,side:s,sideOffset:a=8,visible:l,content:c,width:d,delayDuration:u=100,children:p,...m},h)=>{const[g,b]=r(!1);return o(()=>{g&&setTimeout(()=>b(!1),2e3)},[g]),t.createElement(gr,null,t.createElement(br,{open:l,delayDuration:u},t.createElement(yr,{asChild:!0,ref:h,...m},p),t.createElement(vr,{id:e,className:f("gyramais-tooltip-container",n),align:i,side:s,sideOffset:a,style:{maxWidth:d||"auto"},onClick:()=>{"string"==typeof c&&(navigator.clipboard.writeText(c),b(!0))}},"string"==typeof c?t.createElement("div",{className:f("gyramais-tooltip-content",n)},g?"Copiado!":c):c)))});wr.displayName="Tooltip";const xr=({id:e,className:n,label:r,children:o})=>t.createElement("div",{id:e,className:f("gyramais-information",n)},t.createElement("div",{className:"gyramais-information-label"},r),"string"==typeof o?t.createElement(wr,{className:"gyramais-information-content-tooltip",content:o,align:"start",side:"bottom"},t.createElement("div",{className:"gyramais-information-content cursor-pointer",onClick:()=>navigator.clipboard.writeText(o)},o||"-")):t.createElement("div",{className:"gyramais-information-content"},o||"-"));export{xr as Information};
7
7
  //# sourceMappingURL=index.js.map