@gyramais/gyra-design 0.2.38 → 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.
@@ -3,7 +3,7 @@
3
3
  Copyright (c) 2018 Jed Watson.
4
4
  Licensed under the MIT License (MIT), see
5
5
  http://jedwatson.github.io/classnames
6
- */y=h,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=n(e,r(o)))}return e}function r(r){if("string"==typeof r||"number"==typeof r)return r;if("object"!=typeof r)return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var i in r)e.call(r,i)&&r[i]&&(o=n(o,i));return o}function n(e,t){return t?e?e+" "+t:e+t:e}y.exports?(t.default=t,y.exports=t):window.classNames=t}();var g=p(h.exports);function b(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function v(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function w(...e){return t=>{let r=!1;const n=e.map(e=>{const n=v(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():v(e[t],null)}}}}function x(...t){return e.useCallback(w(...t),t)}function S(t,r=[]){let n=[];const o=()=>{const r=n.map(t=>e.createContext(t));return function(n){const o=n?.[t]||r;return e.useMemo(()=>({[`__scope${t}`]:{...n,[t]:o}}),[n,o])}};return o.scopeName=t,[function(r,o){const i=e.createContext(o),a=n.length;n=[...n,o];const s=r=>{const{scope:n,children:o,...s}=r,l=n?.[t]?.[a]||i,u=e.useMemo(()=>s,Object.values(s));return c(l.Provider,{value:u,children:o})};return s.displayName=r+"Provider",[s,function(n,s){const l=s?.[t]?.[a]||i,c=e.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},E(o,...r)]}function E(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=n.reduce((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]}),{});return e.useMemo(()=>({[`__scope${r.scopeName}`]:o}),[o])}};return n.scopeName=r.scopeName,n}function O(t){const r=e.forwardRef((t,r)=>{const{children:n,...o}=t;if(e.isValidElement(n)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(n),i=function(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(o,n.props);return n.type!==e.Fragment&&(i.ref=r?w(r,t):t),e.cloneElement(n,i)}return e.Children.count(n)>1?e.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}var k=Symbol("radix.slottable");function $(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===k}var C=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,r)=>{const n=function(t){const r=O(t),n=e.forwardRef((t,n)=>{const{children:o,...i}=t,a=e.Children.toArray(o),s=a.find($);if(s){const t=s.props.children,o=a.map(r=>r===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:r);return c(r,{...i,ref:n,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return c(r,{...i,ref:n,children:o})});return n.displayName=`${t}.Slot`,n}(`Primitive.${r}`),o=e.forwardRef((e,t)=>{const{asChild:o,...i}=e,a=o?n:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),c(a,{...i,ref:t})});return o.displayName=`Primitive.${r}`,{...t,[r]:o}},{});function _(t){const r=e.useRef(t);return e.useEffect(()=>{r.current=t}),e.useMemo(()=>(...e)=>r.current?.(...e),[])}var T,N="dismissableLayer.update",P="dismissableLayer.pointerDownOutside",R="dismissableLayer.focusOutside",A=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),M=e.forwardRef((t,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=t,f=e.useContext(A),[d,p]=e.useState(null),m=d?.ownerDocument??globalThis?.document,[,y]=e.useState({}),h=x(r,e=>p(e)),g=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(v),S=d?g.indexOf(d):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,O=S>=w,k=function(t,r=globalThis?.document){const n=_(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){z(P,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",i.current),i.current=t,r.addEventListener("click",i.current,{once:!0})):t()}else r.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",i.current)}},[r,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,r=[...f.branches].some(e=>e.contains(t));O&&!r&&(i?.(e),s?.(e),e.defaultPrevented||l?.())},m),$=function(t,r=globalThis?.document){const n=_(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){z(R,n,{originalEvent:e},{discrete:!1})}};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...f.branches].some(e=>e.contains(t))||(a?.(e),s?.(e),e.defaultPrevented||l?.())},m);return function(t,r=globalThis?.document){const n=_(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return r.addEventListener("keydown",e,{capture:!0}),()=>r.removeEventListener("keydown",e,{capture:!0})},[n,r])}(e=>{S===f.layers.size-1&&(o?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},m),e.useEffect(()=>{if(d)return n&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(T=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),I(),()=>{n&&1===f.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=T)}},[d,m,n,f]),e.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),I())},[d,f]),e.useEffect(()=>{const e=()=>y({});return document.addEventListener(N,e),()=>document.removeEventListener(N,e)},[]),c(C.div,{...u,ref:h,style:{pointerEvents:E?O?"auto":"none":void 0,...t.style},onFocusCapture:b(t.onFocusCapture,$.onFocusCapture),onBlurCapture:b(t.onBlurCapture,$.onBlurCapture),onPointerDownCapture:b(t.onPointerDownCapture,k.onPointerDownCapture)})});M.displayName="DismissableLayer";var j=e.forwardRef((t,r)=>{const n=e.useContext(A),o=e.useRef(null),i=x(r,o);return e.useEffect(()=>{const e=o.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),c(C.div,{...t,ref:i})});function I(){const e=new CustomEvent(N);document.dispatchEvent(e)}function z(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?function(e,t){e&&d.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}j.displayName="DismissableLayerBranch";var D=globalThis?.document?e.useLayoutEffect:()=>{},L=e[" useId ".trim().toString()]||(()=>{}),V=0;const F=["top","right","bottom","left"],W=Math.min,B=Math.max,H=Math.round,U=Math.floor,G=e=>({x:e,y:e}),K={left:"right",right:"left",bottom:"top",top:"bottom"};function q(e,t,r){return B(e,W(t,r))}function Y(e,t){return"function"==typeof e?e(t):e}function X(e){return e.split("-")[0]}function J(e){return e.split("-")[1]}function Z(e){return"x"===e?"y":"x"}function Q(e){return"y"===e?"height":"width"}function ee(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function te(e){return Z(ee(e))}function re(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ne=["left","right"],oe=["right","left"],ie=["top","bottom"],ae=["bottom","top"];function se(e,t,r,n){const o=J(e);let i=function(e,t,r){switch(e){case"top":case"bottom":return r?t?oe:ne:t?ne:oe;case"left":case"right":return t?ie:ae;default:return[]}}(X(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(re)))),i}function le(e){const t=X(e);return K[t]+e.slice(t.length)}function ce(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 ue(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function fe(e,t,r){let{reference:n,floating:o}=e;const i=ee(t),a=te(t),s=Q(a),l=X(t),c="y"===i,u=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,d=n[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:f};break;case"left":p={x:n.x-o.width,y:f};break;default:p={x:n.x,y:n.y}}switch(J(t)){case"start":p[a]-=d*(r&&c?-1:1);break;case"end":p[a]+=d*(r&&c?-1:1)}return p}async function de(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=Y(t,e),m=ce(p),y=s[d?"floating"===f?"reference":"floating":f],h=ue(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(y)))||r?y:y.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),g="floating"===f?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=ue(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:b,strategy:l}):g);return{top:(h.top-w.top+m.top)/v.y,bottom:(w.bottom-h.bottom+m.bottom)/v.y,left:(h.left-w.left+m.left)/v.x,right:(w.right-h.right+m.right)/v.x}}function pe(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function me(e){return F.some(t=>e[t]>=0)}const ye=new Set(["left","top"]);function he(){return"undefined"!=typeof window}function ge(e){return we(e)?(e.nodeName||"").toLowerCase():"#document"}function be(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ve(e){var t;return null==(t=(we(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function we(e){return!!he()&&(e instanceof Node||e instanceof be(e).Node)}function xe(e){return!!he()&&(e instanceof Element||e instanceof be(e).Element)}function Se(e){return!!he()&&(e instanceof HTMLElement||e instanceof be(e).HTMLElement)}function Ee(e){return!(!he()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof be(e).ShadowRoot)}function Oe(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Me(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==o&&"contents"!==o}function ke(e){return/^(table|td|th)$/.test(ge(e))}function $e(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const Ce=/transform|translate|scale|rotate|perspective|filter/,_e=/paint|layout|strict|content/,Te=e=>!!e&&"none"!==e;let Ne;function Pe(e){const t=xe(e)?Me(e):e;return Te(t.transform)||Te(t.translate)||Te(t.scale)||Te(t.rotate)||Te(t.perspective)||!Re()&&(Te(t.backdropFilter)||Te(t.filter))||Ce.test(t.willChange||"")||_e.test(t.contain||"")}function Re(){return null==Ne&&(Ne="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ne}function Ae(e){return/^(html|body|#document)$/.test(ge(e))}function Me(e){return be(e).getComputedStyle(e)}function je(e){return xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ie(e){if("html"===ge(e))return e;const t=e.assignedSlot||e.parentNode||Ee(e)&&e.host||ve(e);return Ee(t)?t.host:t}function ze(e){const t=Ie(e);return Ae(t)?e.ownerDocument?e.ownerDocument.body:e.body:Se(t)&&Oe(t)?t:ze(t)}function De(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=ze(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=be(o);if(i){const e=Le(a);return t.concat(a,a.visualViewport||[],Oe(o)?o:[],e&&r?De(e):[])}return t.concat(o,De(o,[],r))}function Le(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ve(e){const t=Me(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Se(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=H(r)!==i||H(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function Fe(e){return xe(e)?e:e.contextElement}function We(e){const t=Fe(e);if(!Se(t))return G(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Ve(t);let a=(i?H(r.width):r.width)/n,s=(i?H(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Be=G(0);function He(e){const t=be(e);return Re()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Be}function Ue(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=Fe(e);let a=G(1);t&&(n?xe(n)&&(a=We(n)):a=We(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==be(e))&&t}(i,r,n)?He(i):G(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(i){const e=be(i),t=n&&xe(n)?be(n):n;let r=e,o=Le(r);for(;o&&n&&t!==r;){const e=We(o),t=o.getBoundingClientRect(),n=Me(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,f*=e.y,l+=i,c+=a,r=be(o),o=Le(r)}}return ue({width:u,height:f,x:l,y:c})}function Ge(e,t){const r=je(e).scrollLeft;return t?t.left+r:Ue(ve(e)).left+r}function Ke(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-Ge(e,r),y:r.top+t.scrollTop}}function qe(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=be(e),n=ve(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Re();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=Ge(n);if(c<=0){const e=n.ownerDocument,t=e.body,r=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,a=Math.abs(n.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:s,y:l}}(e,r);else if("document"===t)n=function(e){const t=ve(e),r=je(e),n=e.ownerDocument.body,o=B(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=B(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Ge(e);const s=-r.scrollTop;return"rtl"===Me(n).direction&&(a+=B(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}(ve(e));else if(xe(t))n=function(e,t){const r=Ue(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Se(e)?We(e):G(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=He(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ue(n)}function Ye(e,t){const r=Ie(e);return!(r===t||!xe(r)||Ae(r))&&("fixed"===Me(r).position||Ye(r,t))}function Xe(e,t,r){const n=Se(t),o=ve(t),i="fixed"===r,a=Ue(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=G(0);function c(){l.x=Ge(o)}if(n||!n&&!i)if(("body"!==ge(t)||Oe(o))&&(s=je(t)),n){const e=Ue(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!n&&o&&c();const u=!o||n||i?G(0):Ke(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function Je(e){return"static"===Me(e).position}function Ze(e,t){if(!Se(e)||"fixed"===Me(e).position)return null;if(t)return t(e);let r=e.offsetParent;return ve(e)===r&&(r=r.ownerDocument.body),r}function Qe(e,t){const r=be(e);if($e(e))return r;if(!Se(e)){let t=Ie(e);for(;t&&!Ae(t);){if(xe(t)&&!Je(t))return t;t=Ie(t)}return r}let n=Ze(e,t);for(;n&&ke(n)&&Je(n);)n=Ze(n,t);return n&&Ae(n)&&Je(n)&&!Pe(n)?r:n||function(e){let t=Ie(e);for(;Se(t)&&!Ae(t);){if(Pe(t))return t;if($e(t))return null;t=Ie(t)}return null}(e)||r}const et={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,a=ve(n),s=!!t&&$e(t.floating);if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=G(1);const u=G(0),f=Se(n);if((f||!f&&!i)&&(("body"!==ge(n)||Oe(a))&&(l=je(n)),f)){const e=Ue(n);c=We(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const d=!a||f||i?G(0):Ke(a,l);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:r.y*c.y-l.scrollTop*c.y+u.y+d.y}},getDocumentElement:ve,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===r?$e(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=De(e,[],!1).filter(e=>xe(e)&&"body"!==ge(e)),o=null;const i="fixed"===Me(e).position;let a=i?Ie(e):e;for(;xe(a)&&!Ae(a);){const t=Me(a),r=Pe(a);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||Oe(a)&&!r&&Ye(e,a))?n=n.filter(e=>e!==a):o=t,a=Ie(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=qe(t,i[0],o);let s=a.top,l=a.right,c=a.bottom,u=a.left;for(let e=1;e<i.length;e++){const r=qe(t,i[e],o);s=B(r.top,s),l=W(r.right,l),c=W(r.bottom,c),u=B(r.left,u)}return{width:l-u,height:c-s,x:u,y:s}},getOffsetParent:Qe,getElementRects:async function(e){const t=this.getOffsetParent||Qe,r=this.getDimensions,n=await r(e.floating);return{reference:Xe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=Ve(e);return{width:t,height:r}},getScale:We,isElement:xe,isRTL:function(e){return"rtl"===Me(e).direction}};function tt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rt(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=Fe(e),u=o||i?[...c?De(c):[],...t?De(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)});const f=c&&s?function(e,t){let r,n=null;const o=ve(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=c;if(s||t(),!d||!p)return;const m={rootMargin:-U(f)+"px "+-U(o.clientWidth-(u+d))+"px "+-U(o.clientHeight-(f+p))+"px "+-U(u)+"px",threshold:B(0,W(1,l))||1};let y=!0;function h(t){const n=t[0].intersectionRatio;if(n!==l){if(!y)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==n||tt(c,e.getBoundingClientRect())||a(),y=!1}try{n=new IntersectionObserver(h,{...m,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(h,m)}n.observe(e)}(!0),i}(c,r):null;let d,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),r()}),c&&!l&&m.observe(c),t&&m.observe(t));let y=l?Ue(e):null;return l&&function t(){const n=Ue(e);y&&!tt(y,n)&&r();y=n,d=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(d)}}const nt=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),a=X(r),s=J(r),l="y"===ee(r),c=ye.has(a)?-1:1,u=i&&l?-1:1,f=Y(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:d*c}:{x:d*c,y:p*u}}(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},ot=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=Y(e,t),u={x:r,y:n},f=await i.detectOverflow(t,c),d=ee(X(o)),p=Z(d);let m=u[p],y=u[d];if(a){const e="y"===p?"bottom":"right";m=q(m+f["y"===p?"top":"left"],m,m-f[e])}if(s){const e="y"===d?"bottom":"right";y=q(y+f["y"===d?"top":"left"],y,y-f[e])}const h=l.fn({...t,[p]:m,[d]:y});return{...h,data:{x:h.x-r,y:h.y-n,enabled:{[p]:a,[d]:s}}}}}},it=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...h}=Y(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const g=X(o),b=ee(s),v=X(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=d||(v||!y?[le(s)]:function(e){const t=le(e);return[re(e),t,re(t)]}(s)),S="none"!==m;!d&&S&&x.push(...se(s,y,m,w));const E=[s,...x],O=await l.detectOverflow(t,h),k=[];let $=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&k.push(O[g]),f){const e=function(e,t,r){void 0===r&&(r=!1);const n=J(e),o=te(e),i=Q(o);let a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=le(a)),[a,le(a)]}(o,a,w);k.push(O[e[0]],O[e[1]])}if($=[...$,{placement:o,overflows:k}],!k.every(e=>e<=0)){var C,_;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=E[e];if(t){if(!("alignment"===f&&b!==ee(t))||$.every(e=>ee(e.placement)!==b||e.overflows[0]>0))return{data:{index:e,overflows:$},reset:{placement:t}}}let r=null==(_=$.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:_.placement;if(!r)switch(p){case"bestFit":{var T;const e=null==(T=$.filter(e=>{if(S){const t=ee(e.placement);return t===b||"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:T[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},at=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=Y(e,t),u=await a.detectOverflow(t,c),f=X(o),d=J(o),p="y"===ee(o),{width:m,height:y}=i.floating;let h,g;"top"===f||"bottom"===f?(h=f,g=d===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=f,h="end"===d?"top":"bottom");const b=y-u.top-u.bottom,v=m-u.left-u.right,w=W(y-u[h],b),x=W(m-u[g],v),S=!t.middlewareData.shift;let E=w,O=x;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(O=v),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(E=b),S&&!d){const e=B(u.left,0),t=B(u.right,0),r=B(u.top,0),n=B(u.bottom,0);p?O=m-2*(0!==e||0!==t?e+t:B(u.left,u.right)):E=y-2*(0!==r||0!==n?r+n:B(u.top,u.bottom))}await l({...t,availableWidth:O,availableHeight:E});const k=await a.getDimensions(s.floating);return m!==k.width||y!==k.height?{reset:{rects:!0}}:{}}}},st=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=Y(e,t);switch(o){case"referenceHidden":{const e=pe(await n.detectOverflow(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:me(e)}}}case"escaped":{const e=pe(await n.detectOverflow(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:me(e)}}}default:return{}}}}},lt=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Y(e,t)||{};if(null==c)return{};const f=ce(u),d={x:r,y:n},p=te(o),m=Q(p),y=await a.getDimensions(c),h="y"===p,g=h?"top":"left",b=h?"bottom":"right",v=h?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-d[p]-i.floating[m],x=d[p]-i.reference[p],S=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let E=S?S[v]:0;E&&await(null==a.isElement?void 0:a.isElement(S))||(E=s.floating[v]||i.floating[m]);const O=w/2-x/2,k=E/2-y[m]/2-1,$=W(f[g],k),C=W(f[b],k),_=$,T=E-y[m]-C,N=E/2-y[m]/2+O,P=q(_,N,T),R=!l.arrow&&null!=J(o)&&N!==P&&i.reference[m]/2-(N<_?$:C)-y[m]/2<0,A=R?N<_?N-_:N-T:0;return{[p]:d[p]+A,data:{[p]:P,centerOffset:N-P-A,...R&&{alignmentOffset:A}},reset:R}}}),ct=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Y(e,t),u={x:r,y:n},f=ee(o),d=Z(f);let p=u[d],m=u[f];const y=Y(s,t),h="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+h.mainAxis,r=i.reference[d]+i.reference[e]-h.mainAxis;p<t?p=t:p>r&&(p=r)}if(c){var g,b;const e="y"===d?"width":"height",t=ye.has(X(o)),r=i.reference[f]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[f])||0)+(t?0:h.crossAxis),n=i.reference[f]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[f])||0)-(t?h.crossAxis:0);m<r?m=r:m>n&&(m=n)}return{[d]:p,[f]:m}}}},ut=(e,t,r)=>{const n=new Map,o={platform:et,...r},i={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=a.detectOverflow?a:{...a,detectOverflow:de},l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=fe(c,n,l),d=n,p=0;const m={};for(let r=0;r<i.length;r++){const y=i[r];if(!y)continue;const{name:h,fn:g}=y,{x:b,y:v,data:w,reset:x}=await g({x:u,y:f,initialPlacement:n,placement:d,strategy:o,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=b?b:u,f=null!=v?v:f,m[h]={...m[h],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:f}=fe(c,d,l))),r=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};var ft="undefined"!=typeof document?r:function(){};function dt(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 r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!dt(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!==n--;){const r=o[n];if(("_owner"!==r||!e.$$typeof)&&!dt(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function pt(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mt(e,t){const r=pt(e);return Math.round(t*r)/r}function yt(t){const r=e.useRef(t);return ft(()=>{r.current=t}),r}const ht=(e,t)=>{const r=nt(e);return{name:r.name,fn:r.fn,options:[e,t]}},gt=(e,t)=>{const r=ot(e);return{name:r.name,fn:r.fn,options:[e,t]}},bt=(e,t)=>{const r=it(e);return{name:r.name,fn:r.fn,options:[e,t]}},vt=(e,t)=>{const r=at(e);return{name:r.name,fn:r.fn,options:[e,t]}},wt=(e,t)=>{const r=st(e);return{name:r.name,fn:r.fn,options:[e,t]}},xt=(e,t)=>{const r=(e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&(o=r,{}.hasOwnProperty.call(o,"current"))?null!=r.current?lt({element:r.current,padding:n}).fn(t):{}:r?lt({element:r,padding:n}).fn(t):{};var o}}))(e);return{name:r.name,fn:r.fn,options:[e,t]}};var St=e.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return c(C.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:c("polygon",{points:"0,0 30,0 15,10"})})});St.displayName="Arrow";var Et=St;var Ot="Popper",[kt,$t]=S(Ot),[Ct,_t]=kt(Ot),Tt=t=>{const{__scopePopper:r,children:n}=t,[o,i]=e.useState(null);return c(Ct,{scope:r,anchor:o,onAnchorChange:i,children:n})};Tt.displayName=Ot;var Nt="PopperAnchor",Pt=e.forwardRef((t,r)=>{const{__scopePopper:n,virtualRef:o,...i}=t,a=_t(Nt,n),s=e.useRef(null),l=x(r,s),u=e.useRef(null);return e.useEffect(()=>{const e=u.current;u.current=o?.current||s.current,e!==u.current&&a.onAnchorChange(u.current)}),o?null:c(C.div,{...i,ref:l})});Pt.displayName=Nt;var Rt="PopperContent",[At,Mt]=kt(Rt),jt=e.forwardRef((t,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:y=!1,updatePositionStrategy:h="optimized",onPlaced:g,...b}=t,v=_t(Rt,n),[w,S]=e.useState(null),E=x(r,e=>S(e)),[O,k]=e.useState(null),$=function(t){const[r,n]=e.useState(void 0);return D(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const r=e[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;n({width:o,height:i})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}n(void 0)},[t]),r}(O),T=$?.width??0,N=$?.height??0,P=o+("center"!==a?"-"+a:""),R="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},A=Array.isArray(f)?f:[f],M=A.length>0,j={padding:R,boundary:A.filter(Lt),altBoundary:M},{refs:I,floatingStyles:z,placement:L,isPositioned:V,middlewareData:F}=function(t){void 0===t&&(t={});const{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=t,[f,p]=e.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[m,y]=e.useState(o);dt(m,o)||y(o);const[h,g]=e.useState(null),[b,v]=e.useState(null),w=e.useCallback(e=>{e!==O.current&&(O.current=e,g(e))},[]),x=e.useCallback(e=>{e!==k.current&&(k.current=e,v(e))},[]),S=a||h,E=s||b,O=e.useRef(null),k=e.useRef(null),$=e.useRef(f),C=null!=c,_=yt(c),T=yt(i),N=yt(u),P=e.useCallback(()=>{if(!O.current||!k.current)return;const e={placement:r,strategy:n,middleware:m};T.current&&(e.platform=T.current),ut(O.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};R.current&&!dt($.current,t)&&($.current=t,d.flushSync(()=>{p(t)}))})},[m,r,n,T,N]);ft(()=>{!1===u&&$.current.isPositioned&&($.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);const R=e.useRef(!1);ft(()=>(R.current=!0,()=>{R.current=!1}),[]),ft(()=>{if(S&&(O.current=S),E&&(k.current=E),S&&E){if(_.current)return _.current(S,E,P);P()}},[S,E,P,_,C]);const A=e.useMemo(()=>({reference:O,floating:k,setReference:w,setFloating:x}),[w,x]),M=e.useMemo(()=>({reference:S,floating:E}),[S,E]),j=e.useMemo(()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=mt(M.floating,f.x),r=mt(M.floating,f.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...pt(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,M.floating,f.x,f.y]);return e.useMemo(()=>({...f,update:P,refs:A,elements:M,floatingStyles:j}),[f,P,A,M,j])}({strategy:"fixed",placement:P,whileElementsMounted:(...e)=>rt(...e,{animationFrame:"always"===h}),elements:{reference:v.anchor},middleware:[ht({mainAxis:i+N,alignmentAxis:s}),u&&gt({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?{fn:ct(W).fn,options:[W,B]}:void 0,...j}),u&&bt({...j}),vt({...j,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),O&&xt({element:O,padding:l}),Vt({arrowWidth:T,arrowHeight:N}),y&&wt({strategy:"referenceHidden",...j})]});var W,B;const[H,U]=Ft(L),G=_(g);D(()=>{V&&G?.()},[V,G]);const K=F.arrow?.x,q=F.arrow?.y,Y=0!==F.arrow?.centerOffset,[X,J]=e.useState();return D(()=>{w&&J(window.getComputedStyle(w).zIndex)},[w]),c("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:V?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:c(At,{scope:n,placedSide:H,onArrowChange:k,arrowX:K,arrowY:q,shouldHideArrow:Y,children:c(C.div,{"data-side":H,"data-align":U,...b,ref:E,style:{...b.style,animation:V?void 0:"none"}})})})});jt.displayName=Rt;var It="PopperArrow",zt={top:"bottom",right:"left",bottom:"top",left:"right"},Dt=e.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=Mt(It,r),i=zt[o.placedSide];return c("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]: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:c(Et,{...n,ref:t,style:{...n.style,display:"block"}})})});function Lt(e){return null!==e}Dt.displayName=It;var Vt=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=Ft(r),u={start:"0%",center:"50%",end:"100%"}[c],f=(o.arrow?.x??0)+a/2,d=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===l?(p=i?u:`${f}px`,m=-s+"px"):"top"===l?(p=i?u:`${f}px`,m=`${n.floating.height+s}px`):"right"===l?(p=-s+"px",m=i?u:`${d}px`):"left"===l&&(p=`${n.floating.width+s}px`,m=i?u:`${d}px`),{data:{x:p,y:m}}}});function Ft(e){const[t,r="center"]=e.split("-");return[t,r]}var Wt=Tt,Bt=Pt,Ht=jt,Ut=Dt;var Gt=t=>{const{present:r,children:n}=t,o=function(t){const[r,n]=e.useState(),o=e.useRef(null),i=e.useRef(t),a=e.useRef("none"),s=t?"mounted":"unmounted",[l,c]=function(t,r){return e.useReducer((e,t)=>r[e][t]??e,t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=Kt(o.current);a.current="mounted"===l?e:"none"},[l]),D(()=>{const e=o.current,r=i.current;if(r!==t){const n=a.current,o=Kt(e);if(t)c("MOUNT");else if("none"===o||"none"===e?.display)c("UNMOUNT");else{c(r&&n!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}},[t,c]),D(()=>{if(r){let e;const t=r.ownerDocument.defaultView??window,n=n=>{const a=Kt(o.current).includes(CSS.escape(n.animationName));if(n.target===r&&a&&(c("ANIMATION_END"),!i.current)){const n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},s=e=>{e.target===r&&(a.current=Kt(o.current))};return r.addEventListener("animationstart",s),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",s),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:e.useCallback(e=>{o.current=e?getComputedStyle(e):null,n(e)},[])}}(r),i="function"==typeof n?n({present:o.isPresent}):e.Children.only(n),a=x(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof n||o.isPresent?e.cloneElement(i,{ref:a}):null};function Kt(e){return e?.animationName||"none"}Gt.displayName="Presence";var qt=e[" useInsertionEffect ".trim().toString()]||D;function Yt({prop:t,defaultProp:r,onChange:n=()=>{},caller:o}){const[i,a,s]=function({defaultProp:t,onChange:r}){const[n,o]=e.useState(t),i=e.useRef(n),a=e.useRef(r);return qt(()=>{a.current=r},[r]),e.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,o,a]}({defaultProp:r,onChange:n}),l=void 0!==t,c=l?t:i;{const r=e.useRef(void 0!==t);e.useEffect(()=>{const e=r.current;if(e!==l){const t=e?"controlled":"uncontrolled",r=l?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${r}. 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.`)}r.current=l},[l,o])}const u=e.useCallback(e=>{if(l){const r=function(e){return"function"==typeof e}(e)?e(t):e;r!==t&&s.current?.(r)}else a(e)},[l,t,a,s]);return[c,u]}var Xt=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"}),Jt=e.forwardRef((e,t)=>c(C.span,{...e,ref:t,style:{...Xt,...e.style}}));Jt.displayName="VisuallyHidden";var Zt=Jt,[Qt]=S("Tooltip",[$t]),er=$t(),tr="TooltipProvider",rr=700,nr="tooltip.open",[or,ir]=Qt(tr),ar=t=>{const{__scopeTooltip:r,delayDuration:n=rr,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=t,s=e.useRef(!0),l=e.useRef(!1),u=e.useRef(0);return e.useEffect(()=>{const e=u.current;return()=>window.clearTimeout(e)},[]),c(or,{scope:r,isOpenDelayedRef:s,delayDuration:n,onOpen:e.useCallback(()=>{window.clearTimeout(u.current),s.current=!1},[]),onClose:e.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,o)},[o]),isPointerInTransitRef:l,onPointerInTransitChange:e.useCallback(e=>{l.current=e},[]),disableHoverableContent:i,children:a})};ar.displayName=tr;var sr="Tooltip",[lr,cr]=Qt(sr),ur=t=>{const{__scopeTooltip:r,children:n,open:o,defaultOpen:i,onOpenChange:a,disableHoverableContent:s,delayDuration:l}=t,u=ir(sr,t.__scopeTooltip),f=er(r),[d,p]=e.useState(null),m=function(t){const[r,n]=e.useState(L());return D(()=>{n(e=>e??String(V++))},[t]),r?`radix-${r}`:""}(),y=e.useRef(0),h=s??u.disableHoverableContent,g=l??u.delayDuration,b=e.useRef(!1),[v,w]=Yt({prop:o,defaultProp:i??!1,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(nr))):u.onClose(),a?.(e)},caller:sr}),x=e.useMemo(()=>v?b.current?"delayed-open":"instant-open":"closed",[v]),S=e.useCallback(()=>{window.clearTimeout(y.current),y.current=0,b.current=!1,w(!0)},[w]),E=e.useCallback(()=>{window.clearTimeout(y.current),y.current=0,w(!1)},[w]),O=e.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{b.current=!0,w(!0),y.current=0},g)},[g,w]);return e.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),c(Wt,{...f,children:c(lr,{scope:r,contentId:m,open:v,stateAttribute:x,trigger:d,onTriggerChange:p,onTriggerEnter:e.useCallback(()=>{u.isOpenDelayedRef.current?O():S()},[u.isOpenDelayedRef,O,S]),onTriggerLeave:e.useCallback(()=>{h?E():(window.clearTimeout(y.current),y.current=0)},[E,h]),onOpen:S,onClose:E,disableHoverableContent:h,children:n})})};ur.displayName=sr;var fr="TooltipTrigger",dr=e.forwardRef((t,r)=>{const{__scopeTooltip:n,...o}=t,i=cr(fr,n),a=ir(fr,n),s=er(n),l=x(r,e.useRef(null),i.onTriggerChange),u=e.useRef(!1),f=e.useRef(!1),d=e.useCallback(()=>u.current=!1,[]);return e.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),c(Bt,{asChild:!0,...s,children:c(C.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...o,ref:l,onPointerMove:b(t.onPointerMove,e=>{"touch"!==e.pointerType&&(f.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),f.current=!0))}),onPointerLeave:b(t.onPointerLeave,()=>{i.onTriggerLeave(),f.current=!1}),onPointerDown:b(t.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:b(t.onFocus,()=>{u.current||i.onOpen()}),onBlur:b(t.onBlur,i.onClose),onClick:b(t.onClick,i.onClose)})})});dr.displayName=fr;var[pr,mr]=Qt("TooltipPortal",{forceMount:void 0}),yr="TooltipContent",hr=e.forwardRef((e,t)=>{const r=mr(yr,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,a=cr(yr,e.__scopeTooltip);return c(Gt,{present:n||a.open,children:a.disableHoverableContent?c(xr,{side:o,...i,ref:t}):c(gr,{side:o,...i,ref:t})})}),gr=e.forwardRef((t,r)=>{const n=cr(yr,t.__scopeTooltip),o=ir(yr,t.__scopeTooltip),i=e.useRef(null),a=x(r,i),[s,l]=e.useState(null),{trigger:u,onClose:f}=n,d=i.current,{onPointerInTransitChange:p}=o,m=e.useCallback(()=>{l(null),p(!1)},[p]),y=e.useCallback((e,t)=>{const r=e.currentTarget,n={x:e.clientX,y:e.clientY},o=function(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(n,function(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}(n,r.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 r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const r=[];for(let t=e.length-1;t>=0;t--){const n=e[t];for(;r.length>=2;){const e=r[r.length-1],t=r[r.length-2];if(!((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x)))break;r.pop()}r.push(n)}return r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}(t)}([...o,...function(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}(t.getBoundingClientRect())]);l(i),p(!0)},[p]);return e.useEffect(()=>()=>m(),[m]),e.useEffect(()=>{if(u&&d){const e=e=>y(e,d),t=e=>y(e,u);return u.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}},[u,d,y,m]),e.useEffect(()=>{if(s){const e=e=>{const t=e.target,r={x:e.clientX,y:e.clientY},n=u?.contains(t)||d?.contains(t),o=!function(e,t){const{x:r,y:n}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e],s=t[i],l=a.x,c=a.y,u=s.x,f=s.y;c>n!=f>n&&r<(u-l)*(n-c)/(f-c)+l&&(o=!o)}return o}(r,s);n?m():o&&(m(),f())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,d,s,f,m]),c(xr,{...t,ref:a})}),[br,vr]=Qt(sr,{isInside:!1}),wr=function(e){const t=({children:e})=>c(u,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=k,t}("TooltipContent"),xr=e.forwardRef((t,r)=>{const{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...l}=t,u=cr(yr,n),d=er(n),{onClose:p}=u;return e.useEffect(()=>(document.addEventListener(nr,p),()=>document.removeEventListener(nr,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]),c(M,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:f(Ht,{"data-state":u.stateAttribute,...d,...l,ref:r,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c(wr,{children:o}),c(br,{scope:n,isInside:!0,children:c(Zt,{id:u.contentId,role:"tooltip",children:i||o})})]})})});hr.displayName=yr;var Sr="TooltipArrow";e.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=er(r);return vr(Sr,r).isInside?null:c(Ut,{...o,...n,ref:t})}).displayName=Sr;var Er=ar,Or=ur,kr=dr,$r=hr;function Cr(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Cr(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function _r(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Cr(e))&&(n&&(n+=" "),n+=t);return n}const Tr=e=>{const t=Ar(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),Nr(r,t)||Rr(e)},getConflictingClassGroupIds:(e,t)=>{const o=r[e]||[];return t&&n[e]?[...o,...n[e]]:o}}},Nr=(e,t)=>{if(0===e.length)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Nr(e.slice(1),n):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},Pr=/^\[(.+)\]$/,Rr=e=>{if(Pr.test(e)){const t=Pr.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ar=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return zr(Object.entries(e.classGroups),r).forEach(([e,r])=>{Mr(r,n,e,t)}),n},Mr=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:jr(t,e)).classGroupId=r)}if("function"==typeof e)return Ir(e)?void Mr(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(([e,o])=>{Mr(o,jr(t,e),r,n)})})},jr=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},Ir=e=>e.isThemeGetter,zr=(e,t)=>t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e,Dr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}},Lr=e=>{const{separator:t,experimentalParseClassName:r}=e,n=1===t.length,o=t[0],i=t.length,a=e=>{const r=[];let a,s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===o&&(n||e.slice(c,c+i)===t)){r.push(e.slice(l,c)),l=c+i;continue}if("/"===u){a=c;continue}}"["===u?s++:"]"===u&&s--}const c=0===r.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:r,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:a&&a>l?a-l:void 0}};return r?e=>r({className:e,parseClassName:a}):a},Vr=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},Fr=/\s+/;function Wr(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=Br(e))&&(n&&(n+=" "),n+=t);return n}const Br=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Br(e[n]))&&(r&&(r+=" "),r+=t);return r};function Hr(e,...t){let r,n,o,i=function(s){const l=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:Dr(e.cacheSize),parseClassName:Lr(e),...Tr(e)}))(l),n=r.cache.get,o=r.cache.set,i=a,a(s)};function a(e){const t=n(e);if(t)return t;const i=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(Fr);let s="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:f}=r(t);let d=Boolean(f),p=n(d?u.substring(0,f):u);if(!p){if(!d){s=t+(s.length>0?" "+s:s);continue}if(p=n(u),!p){s=t+(s.length>0?" "+s:s);continue}d=!1}const m=Vr(l).join(":"),y=c?m+"!":m,h=y+p;if(i.includes(h))continue;i.push(h);const g=o(p,d);for(let e=0;e<g.length;++e){const t=g[e];i.push(y+t)}s=t+(s.length>0?" "+s:s)}return s})(e,r);return o(e,i),i}return function(){return i(Wr.apply(null,arguments))}}const Ur=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Gr=/^\[(?:([a-z-]+):)?(.+)\]$/i,Kr=/^\d+\/\d+$/,qr=new Set(["px","full","screen"]),Yr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xr=/\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$/,Jr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Zr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,en=e=>rn(e)||qr.has(e)||Kr.test(e),tn=e=>hn(e,"length",gn),rn=e=>Boolean(e)&&!Number.isNaN(Number(e)),nn=e=>hn(e,"number",rn),on=e=>Boolean(e)&&Number.isInteger(Number(e)),an=e=>e.endsWith("%")&&rn(e.slice(0,-1)),sn=e=>Gr.test(e),ln=e=>Yr.test(e),cn=new Set(["length","size","percentage"]),un=e=>hn(e,cn,bn),fn=e=>hn(e,"position",bn),dn=new Set(["image","url"]),pn=e=>hn(e,dn,wn),mn=e=>hn(e,"",vn),yn=()=>!0,hn=(e,t,r)=>{const n=Gr.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},gn=e=>Xr.test(e)&&!Jr.test(e),bn=()=>!1,vn=e=>Zr.test(e),wn=e=>Qr.test(e),xn=()=>{const e=Ur("colors"),t=Ur("spacing"),r=Ur("blur"),n=Ur("brightness"),o=Ur("borderColor"),i=Ur("borderRadius"),a=Ur("borderSpacing"),s=Ur("borderWidth"),l=Ur("contrast"),c=Ur("grayscale"),u=Ur("hueRotate"),f=Ur("invert"),d=Ur("gap"),p=Ur("gradientColorStops"),m=Ur("gradientColorStopPositions"),y=Ur("inset"),h=Ur("margin"),g=Ur("opacity"),b=Ur("padding"),v=Ur("saturate"),w=Ur("scale"),x=Ur("sepia"),S=Ur("skew"),E=Ur("space"),O=Ur("translate"),k=()=>["auto",sn,t],$=()=>[sn,t],C=()=>["",en,tn],_=()=>["auto",rn,sn],T=()=>["","0",sn],N=()=>[rn,sn];return{cacheSize:500,separator:":",theme:{colors:[yn],spacing:[en,tn],blur:["none","",ln,sn],brightness:N(),borderColor:[e],borderRadius:["none","","full",ln,sn],borderSpacing:$(),borderWidth:C(),contrast:N(),grayscale:T(),hueRotate:N(),invert:T(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[an,tn],inset:k(),margin:k(),opacity:N(),padding:$(),saturate:N(),scale:N(),sepia:T(),skew:N(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",sn]}],container:["container"],columns:[{columns:[ln]}],"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",sn]}],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:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",on,sn]}],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",sn]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",on,sn]}],"grid-cols":[{"grid-cols":[yn]}],"col-start-end":[{col:["auto",{span:["full",on,sn]},sn]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[yn]}],"row-start-end":[{row:["auto",{span:[on,sn]},sn]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",sn]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",sn]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"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:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",sn,t]}],"min-w":[{"min-w":[sn,t,"min","max","fit"]}],"max-w":[{"max-w":[sn,t,"none","full","min","max","fit","prose",{screen:[ln]},ln]}],h:[{h:[sn,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[sn,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[sn,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[sn,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ln,tn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",nn]}],"font-family":[{font:[yn]}],"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",sn]}],"line-clamp":[{"line-clamp":["none",rn,nn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",en,sn]}],"list-image":[{"list-image":["none",sn]}],"list-style-type":[{list:["none","disc","decimal",sn]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"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",en,tn]}],"underline-offset":[{"underline-offset":["auto",en,sn]}],"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:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",sn]}],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",sn]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",fn]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",un]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pn]}],"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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"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":[en,sn]}],"outline-w":[{outline:[en,tn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:C()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[en,tn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ln,mn]}],"shadow-color":[{shadow:[yn]}],opacity:[{opacity:[g]}],"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:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ln,sn]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",sn]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",sn]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",sn]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[on,sn]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",sn]}],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",sn]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"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",sn]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[en,tn,nn]}],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"]}}},Sn=Hr(xn);function En(...e){return Sn(_r(e))}const On=Er,kn=Or,$n=kr,Cn=e.forwardRef(({className:t,sideOffset:r=4,...n},o)=>e.createElement($r,{ref:o,sideOffset:r,className:En("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),...n}));Cn.displayName=$r.displayName;const _n=({id:e,className:r,align:i,side:a,sideOffset:s=8,visible:l,content:c,width:u,delayDuration:f=100,children:d})=>{const[p,m]=n(!1);return o(()=>{p&&setTimeout(()=>m(!1),2e3)},[p]),t.createElement(On,null,t.createElement(kn,{open:l,delayDuration:f},t.createElement($n,{asChild:!0},d),t.createElement(Cn,{id:e,className:g("gyramais-tooltip-container",r),align:i,side:a,sideOffset:s,style:{maxWidth:u||"auto"},onClick:()=>{"string"==typeof c&&(navigator.clipboard.writeText(c),m(!0))}},"string"==typeof c?t.createElement("div",{className:g("gyramais-tooltip-content",r)},p?"Copiado!":c):c)))};var Tn={},Nn={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Nn);var Pn=Nn.exports,Rn={};function An(){return An=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},An.apply(null,arguments)}function Mn(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function jn(t){if(e.isValidElement(t)||!Mn(t))return t;const r={};return Object.keys(t).forEach(e=>{r[e]=jn(t[e])}),r}function In(t,r,n={clone:!0}){const o=n.clone?An({},t):t;return Mn(t)&&Mn(r)&&Object.keys(r).forEach(i=>{e.isValidElement(r[i])?o[i]=r[i]:Mn(r[i])&&Object.prototype.hasOwnProperty.call(t,i)&&Mn(t[i])?o[i]=In(t[i],r[i],n):n.clone?o[i]=Mn(r[i])?jn(r[i]):r[i]:o[i]=r[i]}),o}var zn,Dn=Object.freeze({__proto__:null,default:In,isPlainObject:Mn}),Ln={exports:{}},Vn={exports:{}},Fn={};var Wn,Bn,Hn,Un,Gn,Kn,qn,Yn,Xn,Jn,Zn,Qn,eo,to,ro={};
6
+ */y=h,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=n(e,r(o)))}return e}function r(r){if("string"==typeof r||"number"==typeof r)return r;if("object"!=typeof r)return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var i in r)e.call(r,i)&&r[i]&&(o=n(o,i));return o}function n(e,t){return t?e?e+" "+t:e+t:e}y.exports?(t.default=t,y.exports=t):window.classNames=t}();var g=p(h.exports);function b(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function v(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function w(...e){return t=>{let r=!1;const n=e.map(e=>{const n=v(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():v(e[t],null)}}}}function x(...t){return e.useCallback(w(...t),t)}function S(t,r=[]){let n=[];const o=()=>{const r=n.map(t=>e.createContext(t));return function(n){const o=n?.[t]||r;return e.useMemo(()=>({[`__scope${t}`]:{...n,[t]:o}}),[n,o])}};return o.scopeName=t,[function(r,o){const i=e.createContext(o),a=n.length;n=[...n,o];const s=r=>{const{scope:n,children:o,...s}=r,l=n?.[t]?.[a]||i,u=e.useMemo(()=>s,Object.values(s));return c(l.Provider,{value:u,children:o})};return s.displayName=r+"Provider",[s,function(n,s){const l=s?.[t]?.[a]||i,c=e.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${n}\` must be used within \`${r}\``)}]},E(o,...r)]}function E(...t){const r=t[0];if(1===t.length)return r;const n=()=>{const n=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=n.reduce((e,{useScope:r,scopeName:n})=>({...e,...r(t)[`__scope${n}`]}),{});return e.useMemo(()=>({[`__scope${r.scopeName}`]:o}),[o])}};return n.scopeName=r.scopeName,n}function O(t){const r=e.forwardRef((t,r)=>{const{children:n,...o}=t;if(e.isValidElement(n)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(n),i=function(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(o,n.props);return n.type!==e.Fragment&&(i.ref=r?w(r,t):t),e.cloneElement(n,i)}return e.Children.count(n)>1?e.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}var k=Symbol("radix.slottable");function $(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===k}var C=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,r)=>{const n=function(t){const r=O(t),n=e.forwardRef((t,n)=>{const{children:o,...i}=t,a=e.Children.toArray(o),s=a.find($);if(s){const t=s.props.children,o=a.map(r=>r===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:r);return c(r,{...i,ref:n,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return c(r,{...i,ref:n,children:o})});return n.displayName=`${t}.Slot`,n}(`Primitive.${r}`),o=e.forwardRef((e,t)=>{const{asChild:o,...i}=e,a=o?n:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),c(a,{...i,ref:t})});return o.displayName=`Primitive.${r}`,{...t,[r]:o}},{});function _(t){const r=e.useRef(t);return e.useEffect(()=>{r.current=t}),e.useMemo(()=>(...e)=>r.current?.(...e),[])}var T,N="dismissableLayer.update",P="dismissableLayer.pointerDownOutside",R="dismissableLayer.focusOutside",A=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),M=e.forwardRef((t,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=t,f=e.useContext(A),[d,p]=e.useState(null),m=d?.ownerDocument??globalThis?.document,[,y]=e.useState({}),h=x(r,e=>p(e)),g=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(v),S=d?g.indexOf(d):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,O=S>=w,k=function(t,r=globalThis?.document){const n=_(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){z(P,n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",i.current),i.current=t,r.addEventListener("click",i.current,{once:!0})):t()}else r.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",i.current)}},[r,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,r=[...f.branches].some(e=>e.contains(t));O&&!r&&(i?.(e),s?.(e),e.defaultPrevented||l?.())},m),$=function(t,r=globalThis?.document){const n=_(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){z(R,n,{originalEvent:e},{discrete:!1})}};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...f.branches].some(e=>e.contains(t))||(a?.(e),s?.(e),e.defaultPrevented||l?.())},m);return function(t,r=globalThis?.document){const n=_(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return r.addEventListener("keydown",e,{capture:!0}),()=>r.removeEventListener("keydown",e,{capture:!0})},[n,r])}(e=>{S===f.layers.size-1&&(o?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},m),e.useEffect(()=>{if(d)return n&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(T=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),I(),()=>{n&&1===f.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=T)}},[d,m,n,f]),e.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),I())},[d,f]),e.useEffect(()=>{const e=()=>y({});return document.addEventListener(N,e),()=>document.removeEventListener(N,e)},[]),c(C.div,{...u,ref:h,style:{pointerEvents:E?O?"auto":"none":void 0,...t.style},onFocusCapture:b(t.onFocusCapture,$.onFocusCapture),onBlurCapture:b(t.onBlurCapture,$.onBlurCapture),onPointerDownCapture:b(t.onPointerDownCapture,k.onPointerDownCapture)})});M.displayName="DismissableLayer";var j=e.forwardRef((t,r)=>{const n=e.useContext(A),o=e.useRef(null),i=x(r,o);return e.useEffect(()=>{const e=o.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),c(C.div,{...t,ref:i})});function I(){const e=new CustomEvent(N);document.dispatchEvent(e)}function z(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?function(e,t){e&&d.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}j.displayName="DismissableLayerBranch";var D=globalThis?.document?e.useLayoutEffect:()=>{},L=e[" useId ".trim().toString()]||(()=>{}),V=0;const F=["top","right","bottom","left"],W=Math.min,B=Math.max,H=Math.round,U=Math.floor,G=e=>({x:e,y:e}),K={left:"right",right:"left",bottom:"top",top:"bottom"};function q(e,t,r){return B(e,W(t,r))}function Y(e,t){return"function"==typeof e?e(t):e}function X(e){return e.split("-")[0]}function J(e){return e.split("-")[1]}function Z(e){return"x"===e?"y":"x"}function Q(e){return"y"===e?"height":"width"}function ee(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function te(e){return Z(ee(e))}function re(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ne=["left","right"],oe=["right","left"],ie=["top","bottom"],ae=["bottom","top"];function se(e,t,r,n){const o=J(e);let i=function(e,t,r){switch(e){case"top":case"bottom":return r?t?oe:ne:t?ne:oe;case"left":case"right":return t?ie:ae;default:return[]}}(X(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(re)))),i}function le(e){const t=X(e);return K[t]+e.slice(t.length)}function ce(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 ue(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function fe(e,t,r){let{reference:n,floating:o}=e;const i=ee(t),a=te(t),s=Q(a),l=X(t),c="y"===i,u=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,d=n[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:f};break;case"left":p={x:n.x-o.width,y:f};break;default:p={x:n.x,y:n.y}}switch(J(t)){case"start":p[a]-=d*(r&&c?-1:1);break;case"end":p[a]+=d*(r&&c?-1:1)}return p}async function de(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=Y(t,e),m=ce(p),y=s[d?"floating"===f?"reference":"floating":f],h=ue(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(y)))||r?y:y.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),g="floating"===f?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=ue(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:b,strategy:l}):g);return{top:(h.top-w.top+m.top)/v.y,bottom:(w.bottom-h.bottom+m.bottom)/v.y,left:(h.left-w.left+m.left)/v.x,right:(w.right-h.right+m.right)/v.x}}function pe(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function me(e){return F.some(t=>e[t]>=0)}const ye=new Set(["left","top"]);function he(){return"undefined"!=typeof window}function ge(e){return we(e)?(e.nodeName||"").toLowerCase():"#document"}function be(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ve(e){var t;return null==(t=(we(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function we(e){return!!he()&&(e instanceof Node||e instanceof be(e).Node)}function xe(e){return!!he()&&(e instanceof Element||e instanceof be(e).Element)}function Se(e){return!!he()&&(e instanceof HTMLElement||e instanceof be(e).HTMLElement)}function Ee(e){return!(!he()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof be(e).ShadowRoot)}function Oe(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Me(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==o&&"contents"!==o}function ke(e){return/^(table|td|th)$/.test(ge(e))}function $e(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const Ce=/transform|translate|scale|rotate|perspective|filter/,_e=/paint|layout|strict|content/,Te=e=>!!e&&"none"!==e;let Ne;function Pe(e){const t=xe(e)?Me(e):e;return Te(t.transform)||Te(t.translate)||Te(t.scale)||Te(t.rotate)||Te(t.perspective)||!Re()&&(Te(t.backdropFilter)||Te(t.filter))||Ce.test(t.willChange||"")||_e.test(t.contain||"")}function Re(){return null==Ne&&(Ne="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ne}function Ae(e){return/^(html|body|#document)$/.test(ge(e))}function Me(e){return be(e).getComputedStyle(e)}function je(e){return xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ie(e){if("html"===ge(e))return e;const t=e.assignedSlot||e.parentNode||Ee(e)&&e.host||ve(e);return Ee(t)?t.host:t}function ze(e){const t=Ie(e);return Ae(t)?e.ownerDocument?e.ownerDocument.body:e.body:Se(t)&&Oe(t)?t:ze(t)}function De(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=ze(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=be(o);if(i){const e=Le(a);return t.concat(a,a.visualViewport||[],Oe(o)?o:[],e&&r?De(e):[])}return t.concat(o,De(o,[],r))}function Le(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ve(e){const t=Me(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Se(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=H(r)!==i||H(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function Fe(e){return xe(e)?e:e.contextElement}function We(e){const t=Fe(e);if(!Se(t))return G(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Ve(t);let a=(i?H(r.width):r.width)/n,s=(i?H(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Be=G(0);function He(e){const t=be(e);return Re()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Be}function Ue(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=Fe(e);let a=G(1);t&&(n?xe(n)&&(a=We(n)):a=We(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==be(e))&&t}(i,r,n)?He(i):G(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(i){const e=be(i),t=n&&xe(n)?be(n):n;let r=e,o=Le(r);for(;o&&n&&t!==r;){const e=We(o),t=o.getBoundingClientRect(),n=Me(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,f*=e.y,l+=i,c+=a,r=be(o),o=Le(r)}}return ue({width:u,height:f,x:l,y:c})}function Ge(e,t){const r=je(e).scrollLeft;return t?t.left+r:Ue(ve(e)).left+r}function Ke(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-Ge(e,r),y:r.top+t.scrollTop}}function qe(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=be(e),n=ve(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Re();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=Ge(n);if(c<=0){const e=n.ownerDocument,t=e.body,r=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,a=Math.abs(n.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:s,y:l}}(e,r);else if("document"===t)n=function(e){const t=ve(e),r=je(e),n=e.ownerDocument.body,o=B(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=B(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Ge(e);const s=-r.scrollTop;return"rtl"===Me(n).direction&&(a+=B(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}(ve(e));else if(xe(t))n=function(e,t){const r=Ue(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Se(e)?We(e):G(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=He(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ue(n)}function Ye(e,t){const r=Ie(e);return!(r===t||!xe(r)||Ae(r))&&("fixed"===Me(r).position||Ye(r,t))}function Xe(e,t,r){const n=Se(t),o=ve(t),i="fixed"===r,a=Ue(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=G(0);function c(){l.x=Ge(o)}if(n||!n&&!i)if(("body"!==ge(t)||Oe(o))&&(s=je(t)),n){const e=Ue(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!n&&o&&c();const u=!o||n||i?G(0):Ke(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function Je(e){return"static"===Me(e).position}function Ze(e,t){if(!Se(e)||"fixed"===Me(e).position)return null;if(t)return t(e);let r=e.offsetParent;return ve(e)===r&&(r=r.ownerDocument.body),r}function Qe(e,t){const r=be(e);if($e(e))return r;if(!Se(e)){let t=Ie(e);for(;t&&!Ae(t);){if(xe(t)&&!Je(t))return t;t=Ie(t)}return r}let n=Ze(e,t);for(;n&&ke(n)&&Je(n);)n=Ze(n,t);return n&&Ae(n)&&Je(n)&&!Pe(n)?r:n||function(e){let t=Ie(e);for(;Se(t)&&!Ae(t);){if(Pe(t))return t;if($e(t))return null;t=Ie(t)}return null}(e)||r}const et={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,a=ve(n),s=!!t&&$e(t.floating);if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=G(1);const u=G(0),f=Se(n);if((f||!f&&!i)&&(("body"!==ge(n)||Oe(a))&&(l=je(n)),f)){const e=Ue(n);c=We(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const d=!a||f||i?G(0):Ke(a,l);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:r.y*c.y-l.scrollTop*c.y+u.y+d.y}},getDocumentElement:ve,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===r?$e(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=De(e,[],!1).filter(e=>xe(e)&&"body"!==ge(e)),o=null;const i="fixed"===Me(e).position;let a=i?Ie(e):e;for(;xe(a)&&!Ae(a);){const t=Me(a),r=Pe(a);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||Oe(a)&&!r&&Ye(e,a))?n=n.filter(e=>e!==a):o=t,a=Ie(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=qe(t,i[0],o);let s=a.top,l=a.right,c=a.bottom,u=a.left;for(let e=1;e<i.length;e++){const r=qe(t,i[e],o);s=B(r.top,s),l=W(r.right,l),c=W(r.bottom,c),u=B(r.left,u)}return{width:l-u,height:c-s,x:u,y:s}},getOffsetParent:Qe,getElementRects:async function(e){const t=this.getOffsetParent||Qe,r=this.getDimensions,n=await r(e.floating);return{reference:Xe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=Ve(e);return{width:t,height:r}},getScale:We,isElement:xe,isRTL:function(e){return"rtl"===Me(e).direction}};function tt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rt(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=Fe(e),u=o||i?[...c?De(c):[],...t?De(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)});const f=c&&s?function(e,t){let r,n=null;const o=ve(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=c;if(s||t(),!d||!p)return;const m={rootMargin:-U(f)+"px "+-U(o.clientWidth-(u+d))+"px "+-U(o.clientHeight-(f+p))+"px "+-U(u)+"px",threshold:B(0,W(1,l))||1};let y=!0;function h(t){const n=t[0].intersectionRatio;if(n!==l){if(!y)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==n||tt(c,e.getBoundingClientRect())||a(),y=!1}try{n=new IntersectionObserver(h,{...m,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(h,m)}n.observe(e)}(!0),i}(c,r):null;let d,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),r()}),c&&!l&&m.observe(c),t&&m.observe(t));let y=l?Ue(e):null;return l&&function t(){const n=Ue(e);y&&!tt(y,n)&&r();y=n,d=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(d)}}const nt=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),a=X(r),s=J(r),l="y"===ee(r),c=ye.has(a)?-1:1,u=i&&l?-1:1,f=Y(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:d*c}:{x:d*c,y:p*u}}(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},ot=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=Y(e,t),u={x:r,y:n},f=await i.detectOverflow(t,c),d=ee(X(o)),p=Z(d);let m=u[p],y=u[d];if(a){const e="y"===p?"bottom":"right";m=q(m+f["y"===p?"top":"left"],m,m-f[e])}if(s){const e="y"===d?"bottom":"right";y=q(y+f["y"===d?"top":"left"],y,y-f[e])}const h=l.fn({...t,[p]:m,[d]:y});return{...h,data:{x:h.x-r,y:h.y-n,enabled:{[p]:a,[d]:s}}}}}},it=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...h}=Y(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const g=X(o),b=ee(s),v=X(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=d||(v||!y?[le(s)]:function(e){const t=le(e);return[re(e),t,re(t)]}(s)),S="none"!==m;!d&&S&&x.push(...se(s,y,m,w));const E=[s,...x],O=await l.detectOverflow(t,h),k=[];let $=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&k.push(O[g]),f){const e=function(e,t,r){void 0===r&&(r=!1);const n=J(e),o=te(e),i=Q(o);let a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=le(a)),[a,le(a)]}(o,a,w);k.push(O[e[0]],O[e[1]])}if($=[...$,{placement:o,overflows:k}],!k.every(e=>e<=0)){var C,_;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=E[e];if(t){if(!("alignment"===f&&b!==ee(t))||$.every(e=>ee(e.placement)!==b||e.overflows[0]>0))return{data:{index:e,overflows:$},reset:{placement:t}}}let r=null==(_=$.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:_.placement;if(!r)switch(p){case"bestFit":{var T;const e=null==(T=$.filter(e=>{if(S){const t=ee(e.placement);return t===b||"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:T[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},at=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=Y(e,t),u=await a.detectOverflow(t,c),f=X(o),d=J(o),p="y"===ee(o),{width:m,height:y}=i.floating;let h,g;"top"===f||"bottom"===f?(h=f,g=d===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=f,h="end"===d?"top":"bottom");const b=y-u.top-u.bottom,v=m-u.left-u.right,w=W(y-u[h],b),x=W(m-u[g],v),S=!t.middlewareData.shift;let E=w,O=x;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(O=v),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(E=b),S&&!d){const e=B(u.left,0),t=B(u.right,0),r=B(u.top,0),n=B(u.bottom,0);p?O=m-2*(0!==e||0!==t?e+t:B(u.left,u.right)):E=y-2*(0!==r||0!==n?r+n:B(u.top,u.bottom))}await l({...t,availableWidth:O,availableHeight:E});const k=await a.getDimensions(s.floating);return m!==k.width||y!==k.height?{reset:{rects:!0}}:{}}}},st=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=Y(e,t);switch(o){case"referenceHidden":{const e=pe(await n.detectOverflow(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:me(e)}}}case"escaped":{const e=pe(await n.detectOverflow(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:me(e)}}}default:return{}}}}},lt=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Y(e,t)||{};if(null==c)return{};const f=ce(u),d={x:r,y:n},p=te(o),m=Q(p),y=await a.getDimensions(c),h="y"===p,g=h?"top":"left",b=h?"bottom":"right",v=h?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-d[p]-i.floating[m],x=d[p]-i.reference[p],S=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let E=S?S[v]:0;E&&await(null==a.isElement?void 0:a.isElement(S))||(E=s.floating[v]||i.floating[m]);const O=w/2-x/2,k=E/2-y[m]/2-1,$=W(f[g],k),C=W(f[b],k),_=$,T=E-y[m]-C,N=E/2-y[m]/2+O,P=q(_,N,T),R=!l.arrow&&null!=J(o)&&N!==P&&i.reference[m]/2-(N<_?$:C)-y[m]/2<0,A=R?N<_?N-_:N-T:0;return{[p]:d[p]+A,data:{[p]:P,centerOffset:N-P-A,...R&&{alignmentOffset:A}},reset:R}}}),ct=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Y(e,t),u={x:r,y:n},f=ee(o),d=Z(f);let p=u[d],m=u[f];const y=Y(s,t),h="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+h.mainAxis,r=i.reference[d]+i.reference[e]-h.mainAxis;p<t?p=t:p>r&&(p=r)}if(c){var g,b;const e="y"===d?"width":"height",t=ye.has(X(o)),r=i.reference[f]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[f])||0)+(t?0:h.crossAxis),n=i.reference[f]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[f])||0)-(t?h.crossAxis:0);m<r?m=r:m>n&&(m=n)}return{[d]:p,[f]:m}}}},ut=(e,t,r)=>{const n=new Map,o={platform:et,...r},i={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=a.detectOverflow?a:{...a,detectOverflow:de},l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=fe(c,n,l),d=n,p=0;const m={};for(let r=0;r<i.length;r++){const y=i[r];if(!y)continue;const{name:h,fn:g}=y,{x:b,y:v,data:w,reset:x}=await g({x:u,y:f,initialPlacement:n,placement:d,strategy:o,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=b?b:u,f=null!=v?v:f,m[h]={...m[h],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:f}=fe(c,d,l))),r=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};var ft="undefined"!=typeof document?r:function(){};function dt(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 r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!dt(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!==n--;){const r=o[n];if(("_owner"!==r||!e.$$typeof)&&!dt(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function pt(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mt(e,t){const r=pt(e);return Math.round(t*r)/r}function yt(t){const r=e.useRef(t);return ft(()=>{r.current=t}),r}const ht=(e,t)=>{const r=nt(e);return{name:r.name,fn:r.fn,options:[e,t]}},gt=(e,t)=>{const r=ot(e);return{name:r.name,fn:r.fn,options:[e,t]}},bt=(e,t)=>{const r=it(e);return{name:r.name,fn:r.fn,options:[e,t]}},vt=(e,t)=>{const r=at(e);return{name:r.name,fn:r.fn,options:[e,t]}},wt=(e,t)=>{const r=st(e);return{name:r.name,fn:r.fn,options:[e,t]}},xt=(e,t)=>{const r=(e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&(o=r,{}.hasOwnProperty.call(o,"current"))?null!=r.current?lt({element:r.current,padding:n}).fn(t):{}:r?lt({element:r,padding:n}).fn(t):{};var o}}))(e);return{name:r.name,fn:r.fn,options:[e,t]}};var St=e.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return c(C.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:c("polygon",{points:"0,0 30,0 15,10"})})});St.displayName="Arrow";var Et=St;var Ot="Popper",[kt,$t]=S(Ot),[Ct,_t]=kt(Ot),Tt=t=>{const{__scopePopper:r,children:n}=t,[o,i]=e.useState(null);return c(Ct,{scope:r,anchor:o,onAnchorChange:i,children:n})};Tt.displayName=Ot;var Nt="PopperAnchor",Pt=e.forwardRef((t,r)=>{const{__scopePopper:n,virtualRef:o,...i}=t,a=_t(Nt,n),s=e.useRef(null),l=x(r,s),u=e.useRef(null);return e.useEffect(()=>{const e=u.current;u.current=o?.current||s.current,e!==u.current&&a.onAnchorChange(u.current)}),o?null:c(C.div,{...i,ref:l})});Pt.displayName=Nt;var Rt="PopperContent",[At,Mt]=kt(Rt),jt=e.forwardRef((t,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:y=!1,updatePositionStrategy:h="optimized",onPlaced:g,...b}=t,v=_t(Rt,n),[w,S]=e.useState(null),E=x(r,e=>S(e)),[O,k]=e.useState(null),$=function(t){const[r,n]=e.useState(void 0);return D(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const r=e[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;n({width:o,height:i})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}n(void 0)},[t]),r}(O),T=$?.width??0,N=$?.height??0,P=o+("center"!==a?"-"+a:""),R="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},A=Array.isArray(f)?f:[f],M=A.length>0,j={padding:R,boundary:A.filter(Lt),altBoundary:M},{refs:I,floatingStyles:z,placement:L,isPositioned:V,middlewareData:F}=function(t){void 0===t&&(t={});const{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=t,[f,p]=e.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[m,y]=e.useState(o);dt(m,o)||y(o);const[h,g]=e.useState(null),[b,v]=e.useState(null),w=e.useCallback(e=>{e!==O.current&&(O.current=e,g(e))},[]),x=e.useCallback(e=>{e!==k.current&&(k.current=e,v(e))},[]),S=a||h,E=s||b,O=e.useRef(null),k=e.useRef(null),$=e.useRef(f),C=null!=c,_=yt(c),T=yt(i),N=yt(u),P=e.useCallback(()=>{if(!O.current||!k.current)return;const e={placement:r,strategy:n,middleware:m};T.current&&(e.platform=T.current),ut(O.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};R.current&&!dt($.current,t)&&($.current=t,d.flushSync(()=>{p(t)}))})},[m,r,n,T,N]);ft(()=>{!1===u&&$.current.isPositioned&&($.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);const R=e.useRef(!1);ft(()=>(R.current=!0,()=>{R.current=!1}),[]),ft(()=>{if(S&&(O.current=S),E&&(k.current=E),S&&E){if(_.current)return _.current(S,E,P);P()}},[S,E,P,_,C]);const A=e.useMemo(()=>({reference:O,floating:k,setReference:w,setFloating:x}),[w,x]),M=e.useMemo(()=>({reference:S,floating:E}),[S,E]),j=e.useMemo(()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=mt(M.floating,f.x),r=mt(M.floating,f.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...pt(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,M.floating,f.x,f.y]);return e.useMemo(()=>({...f,update:P,refs:A,elements:M,floatingStyles:j}),[f,P,A,M,j])}({strategy:"fixed",placement:P,whileElementsMounted:(...e)=>rt(...e,{animationFrame:"always"===h}),elements:{reference:v.anchor},middleware:[ht({mainAxis:i+N,alignmentAxis:s}),u&&gt({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?{fn:ct(W).fn,options:[W,B]}:void 0,...j}),u&&bt({...j}),vt({...j,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),O&&xt({element:O,padding:l}),Vt({arrowWidth:T,arrowHeight:N}),y&&wt({strategy:"referenceHidden",...j})]});var W,B;const[H,U]=Ft(L),G=_(g);D(()=>{V&&G?.()},[V,G]);const K=F.arrow?.x,q=F.arrow?.y,Y=0!==F.arrow?.centerOffset,[X,J]=e.useState();return D(()=>{w&&J(window.getComputedStyle(w).zIndex)},[w]),c("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:V?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:c(At,{scope:n,placedSide:H,onArrowChange:k,arrowX:K,arrowY:q,shouldHideArrow:Y,children:c(C.div,{"data-side":H,"data-align":U,...b,ref:E,style:{...b.style,animation:V?void 0:"none"}})})})});jt.displayName=Rt;var It="PopperArrow",zt={top:"bottom",right:"left",bottom:"top",left:"right"},Dt=e.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=Mt(It,r),i=zt[o.placedSide];return c("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]: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:c(Et,{...n,ref:t,style:{...n.style,display:"block"}})})});function Lt(e){return null!==e}Dt.displayName=It;var Vt=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=Ft(r),u={start:"0%",center:"50%",end:"100%"}[c],f=(o.arrow?.x??0)+a/2,d=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===l?(p=i?u:`${f}px`,m=-s+"px"):"top"===l?(p=i?u:`${f}px`,m=`${n.floating.height+s}px`):"right"===l?(p=-s+"px",m=i?u:`${d}px`):"left"===l&&(p=`${n.floating.width+s}px`,m=i?u:`${d}px`),{data:{x:p,y:m}}}});function Ft(e){const[t,r="center"]=e.split("-");return[t,r]}var Wt=Tt,Bt=Pt,Ht=jt,Ut=Dt;var Gt=t=>{const{present:r,children:n}=t,o=function(t){const[r,n]=e.useState(),o=e.useRef(null),i=e.useRef(t),a=e.useRef("none"),s=t?"mounted":"unmounted",[l,c]=function(t,r){return e.useReducer((e,t)=>r[e][t]??e,t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=Kt(o.current);a.current="mounted"===l?e:"none"},[l]),D(()=>{const e=o.current,r=i.current;if(r!==t){const n=a.current,o=Kt(e);if(t)c("MOUNT");else if("none"===o||"none"===e?.display)c("UNMOUNT");else{c(r&&n!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}},[t,c]),D(()=>{if(r){let e;const t=r.ownerDocument.defaultView??window,n=n=>{const a=Kt(o.current).includes(CSS.escape(n.animationName));if(n.target===r&&a&&(c("ANIMATION_END"),!i.current)){const n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},s=e=>{e.target===r&&(a.current=Kt(o.current))};return r.addEventListener("animationstart",s),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",s),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:e.useCallback(e=>{o.current=e?getComputedStyle(e):null,n(e)},[])}}(r),i="function"==typeof n?n({present:o.isPresent}):e.Children.only(n),a=x(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof n||o.isPresent?e.cloneElement(i,{ref:a}):null};function Kt(e){return e?.animationName||"none"}Gt.displayName="Presence";var qt=e[" useInsertionEffect ".trim().toString()]||D;function Yt({prop:t,defaultProp:r,onChange:n=()=>{},caller:o}){const[i,a,s]=function({defaultProp:t,onChange:r}){const[n,o]=e.useState(t),i=e.useRef(n),a=e.useRef(r);return qt(()=>{a.current=r},[r]),e.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,o,a]}({defaultProp:r,onChange:n}),l=void 0!==t,c=l?t:i;{const r=e.useRef(void 0!==t);e.useEffect(()=>{const e=r.current;if(e!==l){const t=e?"controlled":"uncontrolled",r=l?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${r}. 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.`)}r.current=l},[l,o])}const u=e.useCallback(e=>{if(l){const r=function(e){return"function"==typeof e}(e)?e(t):e;r!==t&&s.current?.(r)}else a(e)},[l,t,a,s]);return[c,u]}var Xt=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"}),Jt=e.forwardRef((e,t)=>c(C.span,{...e,ref:t,style:{...Xt,...e.style}}));Jt.displayName="VisuallyHidden";var Zt=Jt,[Qt]=S("Tooltip",[$t]),er=$t(),tr="TooltipProvider",rr=700,nr="tooltip.open",[or,ir]=Qt(tr),ar=t=>{const{__scopeTooltip:r,delayDuration:n=rr,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=t,s=e.useRef(!0),l=e.useRef(!1),u=e.useRef(0);return e.useEffect(()=>{const e=u.current;return()=>window.clearTimeout(e)},[]),c(or,{scope:r,isOpenDelayedRef:s,delayDuration:n,onOpen:e.useCallback(()=>{window.clearTimeout(u.current),s.current=!1},[]),onClose:e.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,o)},[o]),isPointerInTransitRef:l,onPointerInTransitChange:e.useCallback(e=>{l.current=e},[]),disableHoverableContent:i,children:a})};ar.displayName=tr;var sr="Tooltip",[lr,cr]=Qt(sr),ur=t=>{const{__scopeTooltip:r,children:n,open:o,defaultOpen:i,onOpenChange:a,disableHoverableContent:s,delayDuration:l}=t,u=ir(sr,t.__scopeTooltip),f=er(r),[d,p]=e.useState(null),m=function(t){const[r,n]=e.useState(L());return D(()=>{n(e=>e??String(V++))},[t]),r?`radix-${r}`:""}(),y=e.useRef(0),h=s??u.disableHoverableContent,g=l??u.delayDuration,b=e.useRef(!1),[v,w]=Yt({prop:o,defaultProp:i??!1,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(nr))):u.onClose(),a?.(e)},caller:sr}),x=e.useMemo(()=>v?b.current?"delayed-open":"instant-open":"closed",[v]),S=e.useCallback(()=>{window.clearTimeout(y.current),y.current=0,b.current=!1,w(!0)},[w]),E=e.useCallback(()=>{window.clearTimeout(y.current),y.current=0,w(!1)},[w]),O=e.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{b.current=!0,w(!0),y.current=0},g)},[g,w]);return e.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),c(Wt,{...f,children:c(lr,{scope:r,contentId:m,open:v,stateAttribute:x,trigger:d,onTriggerChange:p,onTriggerEnter:e.useCallback(()=>{u.isOpenDelayedRef.current?O():S()},[u.isOpenDelayedRef,O,S]),onTriggerLeave:e.useCallback(()=>{h?E():(window.clearTimeout(y.current),y.current=0)},[E,h]),onOpen:S,onClose:E,disableHoverableContent:h,children:n})})};ur.displayName=sr;var fr="TooltipTrigger",dr=e.forwardRef((t,r)=>{const{__scopeTooltip:n,...o}=t,i=cr(fr,n),a=ir(fr,n),s=er(n),l=x(r,e.useRef(null),i.onTriggerChange),u=e.useRef(!1),f=e.useRef(!1),d=e.useCallback(()=>u.current=!1,[]);return e.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),c(Bt,{asChild:!0,...s,children:c(C.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...o,ref:l,onPointerMove:b(t.onPointerMove,e=>{"touch"!==e.pointerType&&(f.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),f.current=!0))}),onPointerLeave:b(t.onPointerLeave,()=>{i.onTriggerLeave(),f.current=!1}),onPointerDown:b(t.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:b(t.onFocus,()=>{u.current||i.onOpen()}),onBlur:b(t.onBlur,i.onClose),onClick:b(t.onClick,i.onClose)})})});dr.displayName=fr;var[pr,mr]=Qt("TooltipPortal",{forceMount:void 0}),yr="TooltipContent",hr=e.forwardRef((e,t)=>{const r=mr(yr,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,a=cr(yr,e.__scopeTooltip);return c(Gt,{present:n||a.open,children:a.disableHoverableContent?c(xr,{side:o,...i,ref:t}):c(gr,{side:o,...i,ref:t})})}),gr=e.forwardRef((t,r)=>{const n=cr(yr,t.__scopeTooltip),o=ir(yr,t.__scopeTooltip),i=e.useRef(null),a=x(r,i),[s,l]=e.useState(null),{trigger:u,onClose:f}=n,d=i.current,{onPointerInTransitChange:p}=o,m=e.useCallback(()=>{l(null),p(!1)},[p]),y=e.useCallback((e,t)=>{const r=e.currentTarget,n={x:e.clientX,y:e.clientY},o=function(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(n,function(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}(n,r.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 r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const r=[];for(let t=e.length-1;t>=0;t--){const n=e[t];for(;r.length>=2;){const e=r[r.length-1],t=r[r.length-2];if(!((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x)))break;r.pop()}r.push(n)}return r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}(t)}([...o,...function(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}(t.getBoundingClientRect())]);l(i),p(!0)},[p]);return e.useEffect(()=>()=>m(),[m]),e.useEffect(()=>{if(u&&d){const e=e=>y(e,d),t=e=>y(e,u);return u.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}},[u,d,y,m]),e.useEffect(()=>{if(s){const e=e=>{const t=e.target,r={x:e.clientX,y:e.clientY},n=u?.contains(t)||d?.contains(t),o=!function(e,t){const{x:r,y:n}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e],s=t[i],l=a.x,c=a.y,u=s.x,f=s.y;c>n!=f>n&&r<(u-l)*(n-c)/(f-c)+l&&(o=!o)}return o}(r,s);n?m():o&&(m(),f())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,d,s,f,m]),c(xr,{...t,ref:a})}),[br,vr]=Qt(sr,{isInside:!1}),wr=function(e){const t=({children:e})=>c(u,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=k,t}("TooltipContent"),xr=e.forwardRef((t,r)=>{const{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...l}=t,u=cr(yr,n),d=er(n),{onClose:p}=u;return e.useEffect(()=>(document.addEventListener(nr,p),()=>document.removeEventListener(nr,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]),c(M,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:f(Ht,{"data-state":u.stateAttribute,...d,...l,ref:r,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c(wr,{children:o}),c(br,{scope:n,isInside:!0,children:c(Zt,{id:u.contentId,role:"tooltip",children:i||o})})]})})});hr.displayName=yr;var Sr="TooltipArrow";e.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=er(r);return vr(Sr,r).isInside?null:c(Ut,{...o,...n,ref:t})}).displayName=Sr;var Er=ar,Or=ur,kr=dr,$r=hr;function Cr(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Cr(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function _r(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Cr(e))&&(n&&(n+=" "),n+=t);return n}const Tr=e=>{const t=Ar(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),Nr(r,t)||Rr(e)},getConflictingClassGroupIds:(e,t)=>{const o=r[e]||[];return t&&n[e]?[...o,...n[e]]:o}}},Nr=(e,t)=>{if(0===e.length)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Nr(e.slice(1),n):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},Pr=/^\[(.+)\]$/,Rr=e=>{if(Pr.test(e)){const t=Pr.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ar=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return zr(Object.entries(e.classGroups),r).forEach(([e,r])=>{Mr(r,n,e,t)}),n},Mr=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:jr(t,e)).classGroupId=r)}if("function"==typeof e)return Ir(e)?void Mr(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(([e,o])=>{Mr(o,jr(t,e),r,n)})})},jr=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},Ir=e=>e.isThemeGetter,zr=(e,t)=>t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e,Dr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}},Lr=e=>{const{separator:t,experimentalParseClassName:r}=e,n=1===t.length,o=t[0],i=t.length,a=e=>{const r=[];let a,s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===o&&(n||e.slice(c,c+i)===t)){r.push(e.slice(l,c)),l=c+i;continue}if("/"===u){a=c;continue}}"["===u?s++:"]"===u&&s--}const c=0===r.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:r,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:a&&a>l?a-l:void 0}};return r?e=>r({className:e,parseClassName:a}):a},Vr=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},Fr=/\s+/;function Wr(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=Br(e))&&(n&&(n+=" "),n+=t);return n}const Br=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Br(e[n]))&&(r&&(r+=" "),r+=t);return r};function Hr(e,...t){let r,n,o,i=function(s){const l=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:Dr(e.cacheSize),parseClassName:Lr(e),...Tr(e)}))(l),n=r.cache.get,o=r.cache.set,i=a,a(s)};function a(e){const t=n(e);if(t)return t;const i=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(Fr);let s="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:f}=r(t);let d=Boolean(f),p=n(d?u.substring(0,f):u);if(!p){if(!d){s=t+(s.length>0?" "+s:s);continue}if(p=n(u),!p){s=t+(s.length>0?" "+s:s);continue}d=!1}const m=Vr(l).join(":"),y=c?m+"!":m,h=y+p;if(i.includes(h))continue;i.push(h);const g=o(p,d);for(let e=0;e<g.length;++e){const t=g[e];i.push(y+t)}s=t+(s.length>0?" "+s:s)}return s})(e,r);return o(e,i),i}return function(){return i(Wr.apply(null,arguments))}}const Ur=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Gr=/^\[(?:([a-z-]+):)?(.+)\]$/i,Kr=/^\d+\/\d+$/,qr=new Set(["px","full","screen"]),Yr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xr=/\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$/,Jr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Zr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,en=e=>rn(e)||qr.has(e)||Kr.test(e),tn=e=>hn(e,"length",gn),rn=e=>Boolean(e)&&!Number.isNaN(Number(e)),nn=e=>hn(e,"number",rn),on=e=>Boolean(e)&&Number.isInteger(Number(e)),an=e=>e.endsWith("%")&&rn(e.slice(0,-1)),sn=e=>Gr.test(e),ln=e=>Yr.test(e),cn=new Set(["length","size","percentage"]),un=e=>hn(e,cn,bn),fn=e=>hn(e,"position",bn),dn=new Set(["image","url"]),pn=e=>hn(e,dn,wn),mn=e=>hn(e,"",vn),yn=()=>!0,hn=(e,t,r)=>{const n=Gr.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},gn=e=>Xr.test(e)&&!Jr.test(e),bn=()=>!1,vn=e=>Zr.test(e),wn=e=>Qr.test(e),xn=()=>{const e=Ur("colors"),t=Ur("spacing"),r=Ur("blur"),n=Ur("brightness"),o=Ur("borderColor"),i=Ur("borderRadius"),a=Ur("borderSpacing"),s=Ur("borderWidth"),l=Ur("contrast"),c=Ur("grayscale"),u=Ur("hueRotate"),f=Ur("invert"),d=Ur("gap"),p=Ur("gradientColorStops"),m=Ur("gradientColorStopPositions"),y=Ur("inset"),h=Ur("margin"),g=Ur("opacity"),b=Ur("padding"),v=Ur("saturate"),w=Ur("scale"),x=Ur("sepia"),S=Ur("skew"),E=Ur("space"),O=Ur("translate"),k=()=>["auto",sn,t],$=()=>[sn,t],C=()=>["",en,tn],_=()=>["auto",rn,sn],T=()=>["","0",sn],N=()=>[rn,sn];return{cacheSize:500,separator:":",theme:{colors:[yn],spacing:[en,tn],blur:["none","",ln,sn],brightness:N(),borderColor:[e],borderRadius:["none","","full",ln,sn],borderSpacing:$(),borderWidth:C(),contrast:N(),grayscale:T(),hueRotate:N(),invert:T(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[an,tn],inset:k(),margin:k(),opacity:N(),padding:$(),saturate:N(),scale:N(),sepia:T(),skew:N(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",sn]}],container:["container"],columns:[{columns:[ln]}],"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",sn]}],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:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",on,sn]}],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",sn]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",on,sn]}],"grid-cols":[{"grid-cols":[yn]}],"col-start-end":[{col:["auto",{span:["full",on,sn]},sn]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[yn]}],"row-start-end":[{row:["auto",{span:[on,sn]},sn]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",sn]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",sn]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"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:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",sn,t]}],"min-w":[{"min-w":[sn,t,"min","max","fit"]}],"max-w":[{"max-w":[sn,t,"none","full","min","max","fit","prose",{screen:[ln]},ln]}],h:[{h:[sn,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[sn,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[sn,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[sn,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ln,tn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",nn]}],"font-family":[{font:[yn]}],"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",sn]}],"line-clamp":[{"line-clamp":["none",rn,nn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",en,sn]}],"list-image":[{"list-image":["none",sn]}],"list-style-type":[{list:["none","disc","decimal",sn]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"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",en,tn]}],"underline-offset":[{"underline-offset":["auto",en,sn]}],"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:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",sn]}],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",sn]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",fn]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",un]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pn]}],"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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"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":[en,sn]}],"outline-w":[{outline:[en,tn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:C()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[en,tn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ln,mn]}],"shadow-color":[{shadow:[yn]}],opacity:[{opacity:[g]}],"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:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ln,sn]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",sn]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",sn]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",sn]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[on,sn]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",sn]}],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",sn]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"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",sn]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[en,tn,nn]}],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"]}}},Sn=Hr(xn);function En(...e){return Sn(_r(e))}const On=Er,kn=Or,$n=kr,Cn=e.forwardRef(({className:t,sideOffset:r=4,...n},o)=>e.createElement($r,{ref:o,sideOffset:r,className:En("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),...n}));Cn.displayName=$r.displayName;const _n=t.forwardRef(({id:e,className:r,align:i,side:a,sideOffset:s=8,visible:l,content:c,width:u,delayDuration:f=100,children:d,...p},m)=>{const[y,h]=n(!1);return o(()=>{y&&setTimeout(()=>h(!1),2e3)},[y]),t.createElement(On,null,t.createElement(kn,{open:l,delayDuration:f},t.createElement($n,{asChild:!0,ref:m,...p},d),t.createElement(Cn,{id:e,className:g("gyramais-tooltip-container",r),align:i,side:a,sideOffset:s,style:{maxWidth:u||"auto"},onClick:()=>{"string"==typeof c&&(navigator.clipboard.writeText(c),h(!0))}},"string"==typeof c?t.createElement("div",{className:g("gyramais-tooltip-content",r)},y?"Copiado!":c):c)))});_n.displayName="Tooltip";var Tn={},Nn={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Nn);var Pn=Nn.exports,Rn={};function An(){return An=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},An.apply(null,arguments)}function Mn(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function jn(t){if(e.isValidElement(t)||!Mn(t))return t;const r={};return Object.keys(t).forEach(e=>{r[e]=jn(t[e])}),r}function In(t,r,n={clone:!0}){const o=n.clone?An({},t):t;return Mn(t)&&Mn(r)&&Object.keys(r).forEach(i=>{e.isValidElement(r[i])?o[i]=r[i]:Mn(r[i])&&Object.prototype.hasOwnProperty.call(t,i)&&Mn(t[i])?o[i]=In(t[i],r[i],n):n.clone?o[i]=Mn(r[i])?jn(r[i]):r[i]:o[i]=r[i]}),o}var zn,Dn=Object.freeze({__proto__:null,default:In,isPlainObject:Mn}),Ln={exports:{}},Vn={exports:{}},Fn={};var Wn,Bn,Hn,Un,Gn,Kn,qn,Yn,Xn,Jn,Zn,Qn,eo,to,ro={};
7
7
  /** @license React v16.13.1
8
8
  * react-is.development.js
9
9
  *