New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@purpurds/tooltip

Package Overview
Dependencies
Maintainers
0
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@purpurds/tooltip - npm Package Compare versions

Comparing version 5.8.0 to 5.8.1

.rush/temp/ci_build/@purpurds/tooltip/db7528324279007813dd961a889972d6b0d8f8d8.untar.log

2

.rush/temp/operation/ci_build/state.json
{
"nonCachedDurationMs": 10516.684427
"nonCachedDurationMs": 7338.85874
}
{
"nonCachedDurationMs": 4450.731756
"nonCachedDurationMs": 4285.997154
}
Name: @purpurds/action
Version: 5.7.0
Version: 5.8.0
License: AGPL-3.0-only

@@ -9,3 +9,3 @@ Private: false

Name: @purpurds/button
Version: 5.7.0
Version: 5.8.0
License: AGPL-3.0-only

@@ -17,3 +17,3 @@ Private: false

Name: @purpurds/icon
Version: 5.7.0
Version: 5.8.0
License: AGPL-3.0-only

@@ -25,3 +25,3 @@ Private: false

Name: @purpurds/paragraph
Version: 5.7.0
Version: 5.8.0
License: AGPL-3.0-only

@@ -33,3 +33,3 @@ Private: false

Name: @purpurds/tokens
Version: 5.7.0
Version: 5.8.0
License: AGPL-3.0-only

@@ -36,0 +36,0 @@ Private: false

@@ -1,22 +0,22 @@

"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react/jsx-runtime"),l=require("react"),De=require("react-dom");function gt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const D=gt(l),un=gt(De),fn={SM:"sm",MD:"md",LG:"lg"},dn={PRIMARY:"primary",SECONDARY:"secondary",EXPRESSIVE:"expressive"},tt={SM:"sm",MD:"md",LG:"lg"};function pn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vt={exports:{}};/*!
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react/jsx-runtime"),l=require("react"),Re=require("react-dom");function mt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const D=mt(l),ln=mt(Re),un={SM:"sm",MD:"md",LG:"lg"},fn={PRIMARY:"primary",SECONDARY:"secondary",EXPRESSIVE:"expressive"},et={SM:"sm",MD:"md",LG:"lg"};function dn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gt={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o(a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(vt);var hn=vt.exports;const nt=pn(hn),mn="_rotate_1xozj_1",gn="_dash_1xozj_1",fe={"purpur-spinner":"_purpur-spinner_1xozj_1",rotate:mn,"purpur-spinner--xxs":"_purpur-spinner--xxs_1xozj_4","purpur-spinner--xs":"_purpur-spinner--xs_1xozj_8","purpur-spinner--sm":"_purpur-spinner--sm_1xozj_12","purpur-spinner--md":"_purpur-spinner--md_1xozj_16","purpur-spinner--lg":"_purpur-spinner--lg_1xozj_20","purpur-spinner__circle":"_purpur-spinner__circle_1xozj_24",dash:gn,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_1xozj_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_1xozj_36"},de="purpur-spinner",vn={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg"},yn=({["data-testid"]:e,disabled:t=!1,negative:n=!1,size:o=vn.SM,...i})=>N.jsx("div",{className:nt([fe[de],fe[`${de}--${o}`]]),"data-testid":e,...i,children:N.jsx("svg",{viewBox:"0 0 50 50",children:N.jsx("circle",{className:nt(fe[`${de}__circle`],{[fe[`${de}__circle--disabled`]]:t,[fe[`${de}__circle--negative`]]:n}),cx:"25",cy:"25",r:"20"})})});function bn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yt={exports:{}};/*!
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o(a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(gt);var pn=gt.exports;const tt=dn(pn),hn="_rotate_1xozj_1",mn="_dash_1xozj_1",ue={"purpur-spinner":"_purpur-spinner_1xozj_1",rotate:hn,"purpur-spinner--xxs":"_purpur-spinner--xxs_1xozj_4","purpur-spinner--xs":"_purpur-spinner--xs_1xozj_8","purpur-spinner--sm":"_purpur-spinner--sm_1xozj_12","purpur-spinner--md":"_purpur-spinner--md_1xozj_16","purpur-spinner--lg":"_purpur-spinner--lg_1xozj_20","purpur-spinner__circle":"_purpur-spinner__circle_1xozj_24",dash:mn,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_1xozj_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_1xozj_36"},fe="purpur-spinner",gn={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg"},vn=({["data-testid"]:e,disabled:t=!1,negative:n=!1,size:o=gn.SM,...i})=>N.jsx("div",{className:tt([ue[fe],ue[`${fe}--${o}`]]),"data-testid":e,...i,children:N.jsx("svg",{viewBox:"0 0 50 50",children:N.jsx("circle",{className:tt(ue[`${fe}__circle`],{[ue[`${fe}__circle--disabled`]]:t,[ue[`${fe}__circle--negative`]]:n}),cx:"25",cy:"25",r:"20"})})});function yn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vt={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o.call(this,a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,this&&this[a]||a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(yt);var xn=yt.exports;const $n=bn(xn),wn={"purpur-button":"_purpur-button_u2yv5_1","purpur-button--sm":"_purpur-button--sm_u2yv5_33","purpur-button--icon-only":"_purpur-button--icon-only_u2yv5_36","purpur-button--md":"_purpur-button--md_u2yv5_39","purpur-button--lg":"_purpur-button--lg_u2yv5_45","purpur-button--full-width":"_purpur-button--full-width_u2yv5_51","purpur-button--primary":"_purpur-button--primary_u2yv5_54","purpur-button--disabled":"_purpur-button--disabled_u2yv5_58","purpur-button--primary-negative":"_purpur-button--primary-negative_u2yv5_64","purpur-button--secondary":"_purpur-button--secondary_u2yv5_76","purpur-button--secondary-negative":"_purpur-button--secondary-negative_u2yv5_87","purpur-button--expressive":"_purpur-button--expressive_u2yv5_98","purpur-button--expressive-negative":"_purpur-button--expressive-negative_u2yv5_108","purpur-button--negative":"_purpur-button--negative_u2yv5_120","purpur-button--destructive":"_purpur-button--destructive_u2yv5_127","purpur-button--destructive-negative":"_purpur-button--destructive-negative_u2yv5_137","purpur-button--tertiary-purple":"_purpur-button--tertiary-purple_u2yv5_147","purpur-button--tertiary-purple-negative":"_purpur-button--tertiary-purple-negative_u2yv5_160","purpur-button--text-negative":"_purpur-button--text-negative_u2yv5_175","purpur-button--text":"_purpur-button--text_u2yv5_175"},_n={...dn,DESTRUCTIVE:"destructive",TERTIARY_PURPLE:"tertiary-purple",TEXT:"text"},En=$n.bind(wn),Q="purpur-button",On=({children:e,className:t,["data-testid"]:n,disabled:o=!1,fullWidth:i=!1,iconOnly:r,loading:s=!1,negative:a=!1,onClick:c,size:u=tt.MD,variant:f,type:d="button",...h},p)=>{if(r&&f==="destructive")return null;const m=En([Q,`${Q}--${a?`${f}-negative`:f}`,`${Q}--${u}`],{[`${Q}--icon-only`]:r,[`${Q}--negative`]:a,[`${Q}--full-width`]:i,[`${Q}--disabled`]:o||s},t),g=y=>{o||s?y.preventDefault():c&&c(y)},v=!!h["aria-disabled"]||o||s;return N.jsxs("button",{className:m,"data-testid":n,type:d,ref:p,"aria-disabled":v,onClick:g,...h,children:[s&&N.jsx(yn,{size:u===tt.LG?"xs":"xxs",negative:a,disabled:v})," ",e]})},bt=l.forwardRef(On);bt.displayName="Button";function Pn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xt={exports:{}};/*!
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o.call(this,a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,this&&this[a]||a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(vt);var bn=vt.exports;const xn=yn(bn),$n={"purpur-button":"_purpur-button_u2yv5_1","purpur-button--sm":"_purpur-button--sm_u2yv5_33","purpur-button--icon-only":"_purpur-button--icon-only_u2yv5_36","purpur-button--md":"_purpur-button--md_u2yv5_39","purpur-button--lg":"_purpur-button--lg_u2yv5_45","purpur-button--full-width":"_purpur-button--full-width_u2yv5_51","purpur-button--primary":"_purpur-button--primary_u2yv5_54","purpur-button--disabled":"_purpur-button--disabled_u2yv5_58","purpur-button--primary-negative":"_purpur-button--primary-negative_u2yv5_64","purpur-button--secondary":"_purpur-button--secondary_u2yv5_76","purpur-button--secondary-negative":"_purpur-button--secondary-negative_u2yv5_87","purpur-button--expressive":"_purpur-button--expressive_u2yv5_98","purpur-button--expressive-negative":"_purpur-button--expressive-negative_u2yv5_108","purpur-button--negative":"_purpur-button--negative_u2yv5_120","purpur-button--destructive":"_purpur-button--destructive_u2yv5_127","purpur-button--destructive-negative":"_purpur-button--destructive-negative_u2yv5_137","purpur-button--tertiary-purple":"_purpur-button--tertiary-purple_u2yv5_147","purpur-button--tertiary-purple-negative":"_purpur-button--tertiary-purple-negative_u2yv5_160","purpur-button--text-negative":"_purpur-button--text-negative_u2yv5_175","purpur-button--text":"_purpur-button--text_u2yv5_175"},wn={...fn,DESTRUCTIVE:"destructive",TERTIARY_PURPLE:"tertiary-purple",TEXT:"text"},_n=xn.bind($n),Z="purpur-button",En=({children:e,className:t,["data-testid"]:n,disabled:o=!1,fullWidth:i=!1,iconOnly:r,loading:s=!1,negative:a=!1,onClick:c,size:u=et.MD,variant:f,type:d="button",...h},p)=>{if(r&&f==="destructive")return null;const m=_n([Z,`${Z}--${a?`${f}-negative`:f}`,`${Z}--${u}`],{[`${Z}--icon-only`]:r,[`${Z}--negative`]:a,[`${Z}--full-width`]:i,[`${Z}--disabled`]:o||s},t),g=y=>{o||s?y.preventDefault():c&&c(y)},v=!!h["aria-disabled"]||o||s;return N.jsxs("button",{className:m,"data-testid":n,type:d,ref:p,"aria-disabled":v,onClick:g,...h,children:[s&&N.jsx(vn,{size:u===et.LG?"xs":"xxs",negative:a,disabled:v})," ",e]})},yt=l.forwardRef(En);yt.displayName="Button";function On(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bt={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o.call(this,a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,this&&this[a]||a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(xt);var An=xt.exports;const Cn=Pn(An),Tn={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},Rn={name:"info",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',keywords:["info"],category:"status"},$t=e=>N.jsx(In,{...e,svg:Rn});$t.displayName="IconInfo";const Sn=Cn.bind(Tn),rt="purpur-icon",Dn="md",Nn=e=>e.filter(t=>Object.keys(t).length>=1).map(t=>`${t.name}="${t.value}"`).join(" "),Ln=({content:e="",title:t}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},t?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],o=t?`<title>${t}</title>`:"";return`<svg ${Nn(n)}>${o}${e}</svg>`},Mn=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),In=({["data-testid"]:e,svg:t,allyTitle:n,className:o="",size:i=Dn,...r})=>{const s=Ln({content:Mn(t.svg),title:n}),a=Sn(o,rt,`${rt}--${i}`);return N.jsx("span",{"aria-label":n,className:a,"data-testid":e,dangerouslySetInnerHTML:{__html:s},...r})};function kn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wt={exports:{}};/*!
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o.call(this,a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,this&&this[a]||a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(bt);var Pn=bt.exports;const An=On(Pn),Cn={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},Tn={name:"info",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',keywords:["info"],category:"status"},xt=e=>N.jsx(Mn,{...e,svg:Tn});xt.displayName="IconInfo";const Rn=An.bind(Cn),nt="purpur-icon",Sn="md",Dn=e=>e.filter(t=>Object.keys(t).length>=1).map(t=>`${t.name}="${t.value}"`).join(" "),Nn=({content:e="",title:t}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},t?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],o=t?`<title>${t}</title>`:"";return`<svg ${Dn(n)}>${o}${e}</svg>`},Ln=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),Mn=({["data-testid"]:e,svg:t,allyTitle:n,className:o="",size:i=Sn,...r})=>{const s=Nn({content:Ln(t.svg),title:n}),a=Rn(o,nt,`${nt}--${i}`);return N.jsx("span",{"aria-label":n,className:a,"data-testid":e,dangerouslySetInnerHTML:{__html:s},...r})};function kn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $t={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o(a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(wt);var jn=wt.exports;const Fn=kn(jn),pe={"purpur-paragraph":"_purpur-paragraph_1rh57_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_1rh57_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_1rh57_10","purpur-paragraph--negative":"_purpur-paragraph--negative_1rh57_13","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_1rh57_16","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_1rh57_22","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_1rh57_29","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_1rh57_36","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_1rh57_42","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_1rh57_48","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_1rh57_54","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_1rh57_60","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_1rh57_67","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_1rh57_75"},_t={PARAGRAPH100:"paragraph-100",PARAGRAPH100MEDIUM:"paragraph-100-medium",PARAGRAPH100BOLD:"paragraph-100-bold",PARAGRAPH200:"paragraph-200",PREAMBLE100:"preamble-100",PREAMBLE200:"preamble-200",ADDITIONAL100:"additional-100",ADDITIONAL100MEDIUM:"additional-100-medium",OVERLINE100:"overline-100",OVERLINE200:"overline-200"},he="purpur-paragraph",Hn=({["data-testid"]:e,children:t,className:n="",disabled:o,enableHyphenation:i=!1,negative:r=!1,variant:s=_t.PARAGRAPH100,...a})=>{const c=Fn([n,pe[he],pe[`${he}--${s}`],{[pe[`${he}--hyphens`]]:i,[pe[`${he}--disabled`]]:o,[pe[`${he}--negative`]]:r}]);return N.jsx("p",{...a,className:c,"data-testid":e,children:t})},Bn="400ms";function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},R.apply(this,arguments)}function B(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function zn(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Et(...e){return t=>e.forEach(n=>zn(n,t))}function se(...e){return l.useCallback(Et(...e),e)}function Ot(e,t=[]){let n=[];function o(r,s){const a=l.createContext(s),c=n.length;n=[...n,s];function u(d){const{scope:h,children:p,...m}=d,g=(h==null?void 0:h[e][c])||a,v=l.useMemo(()=>m,Object.values(m));return l.createElement(g.Provider,{value:v},p)}function f(d,h){const p=(h==null?void 0:h[e][c])||a,m=l.useContext(p);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${r}\``)}return u.displayName=r+"Provider",[u,f]}const i=()=>{const r=n.map(s=>l.createContext(s));return function(a){const c=(a==null?void 0:a[e])||r;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return i.scopeName=e,[o,Wn(i,...t)]}function Wn(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(r){const s=o.reduce((a,{useScope:c,scopeName:u})=>{const d=c(r)[`__scope${u}`];return{...a,...d}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}const Pt=l.forwardRef((e,t)=>{const{children:n,...o}=e,i=l.Children.toArray(n),r=i.find(Vn);if(r){const s=r.props.children,a=i.map(c=>c===r?l.Children.count(s)>1?l.Children.only(null):l.isValidElement(s)?s.props.children:null:c);return l.createElement(ke,R({},o,{ref:t}),l.isValidElement(s)?l.cloneElement(s,void 0,a):null)}return l.createElement(ke,R({},o,{ref:t}),n)});Pt.displayName="Slot";const ke=l.forwardRef((e,t)=>{const{children:n,...o}=e;return l.isValidElement(n)?l.cloneElement(n,{...Un(o,n.props),ref:t?Et(t,n.ref):n.ref}):l.Children.count(n)>1?l.Children.only(null):null});ke.displayName="SlotClone";const At=({children:e})=>l.createElement(l.Fragment,null,e);function Vn(e){return l.isValidElement(e)&&e.type===At}function Un(e,t){const n={...t};for(const o in t){const i=e[o],r=t[o];/^on[A-Z]/.test(o)?i&&r?n[o]=(...a)=>{r(...a),i(...a)}:i&&(n[o]=i):o==="style"?n[o]={...i,...r}:o==="className"&&(n[o]=[i,r].filter(Boolean).join(" "))}return{...e,...n}}const Gn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],te=Gn.reduce((e,t)=>{const n=l.forwardRef((o,i)=>{const{asChild:r,...s}=o,a=r?Pt:t;return l.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),l.createElement(a,R({},s,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Xn(e,t){e&&De.flushSync(()=>e.dispatchEvent(t))}function ae(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...n)},[])}function Yn(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e);l.useEffect(()=>{const o=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)},[n,t])}const je="dismissableLayer.update",qn="dismissableLayer.pointerDownOutside",Kn="dismissableLayer.focusOutside";let ot;const Zn=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qn=l.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...u}=e,f=l.useContext(Zn),[d,h]=l.useState(null),p=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=l.useState({}),g=se(t,E=>h(E)),v=Array.from(f.layers),[y]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),$=d?v.indexOf(d):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,x=$>=b,_=Jn(E=>{const T=E.target,L=[...f.branches].some(C=>C.contains(T));!x||L||(r==null||r(E),a==null||a(E),E.defaultPrevented||c==null||c())},p),P=er(E=>{const T=E.target;[...f.branches].some(C=>C.contains(T))||(s==null||s(E),a==null||a(E),E.defaultPrevented||c==null||c())},p);return Yn(E=>{$===f.layers.size-1&&(i==null||i(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},p),l.useEffect(()=>{if(d)return o&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ot=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),it(),()=>{o&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=ot)}},[d,p,o,f]),l.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),it())},[d,f]),l.useEffect(()=>{const E=()=>m({});return document.addEventListener(je,E),()=>document.removeEventListener(je,E)},[]),l.createElement(te.div,R({},u,{ref:g,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:B(e.onFocusCapture,P.onFocusCapture),onBlurCapture:B(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,_.onPointerDownCapture)}))});function Jn(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),o=l.useRef(!1),i=l.useRef(()=>{});return l.useEffect(()=>{const r=a=>{if(a.target&&!o.current){let u=function(){Ct(qn,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",r)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",r),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function er(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),o=l.useRef(!1);return l.useEffect(()=>{const i=r=>{r.target&&!o.current&&Ct(Kn,n,{originalEvent:r},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function it(){const e=new CustomEvent(je);document.dispatchEvent(e)}function Ct(e,t,n,{discrete:o}){const i=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?Xn(i,r):i.dispatchEvent(r)}const oe=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},tr=D.useId||(()=>{});let nr=0;function rr(e){const[t,n]=D.useState(tr());return oe(()=>{n(o=>o??String(nr++))},[e]),t?`radix-${t}`:""}const or=["top","right","bottom","left"],q=Math.min,I=Math.max,Ce=Math.round,Ee=Math.floor,K=e=>({x:e,y:e}),ir={left:"right",right:"left",bottom:"top",top:"bottom"},sr={start:"end",end:"start"};function Fe(e,t,n){return I(e,q(t,n))}function z(e,t){return typeof e=="function"?e(t):e}function W(e){return e.split("-")[0]}function ce(e){return e.split("-")[1]}function ze(e){return e==="x"?"y":"x"}function We(e){return e==="y"?"height":"width"}function le(e){return["top","bottom"].includes(W(e))?"y":"x"}function Ve(e){return ze(le(e))}function ar(e,t,n){n===void 0&&(n=!1);const o=ce(e),i=Ve(e),r=We(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=Te(s)),[s,Te(s)]}function cr(e){const t=Te(e);return[He(e),t,He(t)]}function He(e){return e.replace(/start|end/g,t=>sr[t])}function lr(e,t,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?r:s;default:return[]}}function ur(e,t,n,o){const i=ce(e);let r=lr(W(e),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),t&&(r=r.concat(r.map(He)))),r}function Te(e){return e.replace(/left|right|bottom|top/g,t=>ir[t])}function fr(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tt(e){return typeof e!="number"?fr(e):{top:e,right:e,bottom:e,left:e}}function Re(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function st(e,t,n){let{reference:o,floating:i}=e;const r=le(t),s=Ve(t),a=We(s),c=W(t),u=r==="y",f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,h=o[a]/2-i[a]/2;let p;switch(c){case"top":p={x:f,y:o.y-i.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-i.width,y:d};break;default:p={x:o.x,y:o.y}}switch(ce(t)){case"start":p[s]-=h*(n&&u?-1:1);break;case"end":p[s]+=h*(n&&u?-1:1);break}return p}const dr=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:d}=st(u,o,c),h=o,p={},m=0;for(let g=0;g<a.length;g++){const{name:v,fn:y}=a[g],{x:b,y:$,data:w,reset:x}=await y({x:f,y:d,initialPlacement:o,placement:h,strategy:i,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});if(f=b??f,d=$??d,p={...p,[v]:{...p[v],...w}},x&&m<=50){m++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(u=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:f,y:d}=st(u,h,c)),g=-1;continue}}return{x:f,y:d,placement:h,strategy:i,middlewareData:p}};async function me(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:r,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=z(t,e),m=Tt(p),v=a[h?d==="floating"?"reference":"floating":d],y=Re(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(v)))==null||n?v:v.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:c})),b=d==="floating"?{...s.floating,x:o,y:i}:s.reference,$=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a.floating)),w=await(r.isElement==null?void 0:r.isElement($))?await(r.getScale==null?void 0:r.getScale($))||{x:1,y:1}:{x:1,y:1},x=Re(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:$,strategy:c}):b);return{top:(y.top-x.top+m.top)/w.y,bottom:(x.bottom-y.bottom+m.bottom)/w.y,left:(y.left-x.left+m.left)/w.x,right:(x.right-y.right+m.right)/w.x}}const at=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:s,elements:a}=t,{element:c,padding:u=0}=z(e,t)||{};if(c==null)return{};const f=Tt(u),d={x:n,y:o},h=Ve(i),p=We(h),m=await s.getDimensions(c),g=h==="y",v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",$=r.reference[p]+r.reference[h]-d[h]-r.floating[p],w=d[h]-r.reference[h],x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let _=x?x[b]:0;(!_||!await(s.isElement==null?void 0:s.isElement(x)))&&(_=a.floating[b]||r.floating[p]);const P=$/2-w/2,E=_/2-m[p]/2-1,T=q(f[v],E),L=q(f[y],E),C=T,M=_-m[p]-L,S=_/2-m[p]/2+P,A=Fe(C,S,M),O=ce(i)!=null&&S!=A&&r.reference[p]/2-(S<C?T:L)-m[p]/2<0?S<C?C-S:M-S:0;return{[h]:d[h]-O,data:{[h]:A,centerOffset:S-A+O}}}}),pr=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:i,rects:r,initialPlacement:s,platform:a,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=z(e,t),v=W(o),y=W(s)===s,b=await(a.isRTL==null?void 0:a.isRTL(c.floating)),$=d||(y||!m?[Te(s)]:cr(s));!d&&p!=="none"&&$.push(...ur(s,m,p,b));const w=[s,...$],x=await me(t,g),_=[];let P=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&_.push(x[v]),f){const C=ar(o,r,b);_.push(x[C[0]],x[C[1]])}if(P=[...P,{placement:o,overflows:_}],!_.every(C=>C<=0)){var E,T;const C=(((E=i.flip)==null?void 0:E.index)||0)+1,M=w[C];if(M)return{data:{index:C,overflows:P},reset:{placement:M}};let S=(T=P.filter(A=>A.overflows[0]<=0).sort((A,j)=>A.overflows[1]-j.overflows[1])[0])==null?void 0:T.placement;if(!S)switch(h){case"bestFit":{var L;const A=(L=P.map(j=>[j.placement,j.overflows.filter(O=>O>0).reduce((O,G)=>O+G,0)]).sort((j,O)=>j[1]-O[1])[0])==null?void 0:L[0];A&&(S=A);break}case"initialPlacement":S=s;break}if(o!==S)return{reset:{placement:S}}}return{}}}};function ct(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function lt(e){return or.some(t=>e[t]>=0)}const hr=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=z(e,t);switch(o){case"referenceHidden":{const r=await me(t,{...i,elementContext:"reference"}),s=ct(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:lt(s)}}}case"escaped":{const r=await me(t,{...i,altBoundary:!0}),s=ct(r,n.floating);return{data:{escapedOffsets:s,escaped:lt(s)}}}default:return{}}}}};async function mr(e,t){const{placement:n,platform:o,elements:i}=e,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=W(n),a=ce(n),c=le(n)==="y",u=["left","top"].includes(s)?-1:1,f=r&&c?-1:1,d=z(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),c?{x:p*f,y:h*u}:{x:h*u,y:p*f}}const gr=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,i=await mr(t,e);return{x:n+i.x,y:o+i.y,data:i}}}},vr=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:y,y:b}=v;return{x:y,y:b}}},...c}=z(e,t),u={x:n,y:o},f=await me(t,c),d=le(W(i)),h=ze(d);let p=u[h],m=u[d];if(r){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",b=p+f[v],$=p-f[y];p=Fe(b,p,$)}if(s){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=m+f[v],$=m-f[y];m=Fe(b,m,$)}const g=a.fn({...t,[h]:p,[d]:m});return{...g,data:{x:g.x-n,y:g.y-o}}}}},yr=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=z(e,t),f={x:n,y:o},d=le(i),h=ze(d);let p=f[h],m=f[d];const g=z(a,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const $=h==="y"?"height":"width",w=r.reference[h]-r.floating[$]+v.mainAxis,x=r.reference[h]+r.reference[$]-v.mainAxis;p<w?p=w:p>x&&(p=x)}if(u){var y,b;const $=h==="y"?"width":"height",w=["top","left"].includes(W(i)),x=r.reference[d]-r.floating[$]+(w&&((y=s.offset)==null?void 0:y[d])||0)+(w?0:v.crossAxis),_=r.reference[d]+r.reference[$]+(w?0:((b=s.offset)==null?void 0:b[d])||0)-(w?v.crossAxis:0);m<x?m=x:m>_&&(m=_)}return{[h]:p,[d]:m}}}},br=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:i,elements:r}=t,{apply:s=()=>{},...a}=z(e,t),c=await me(t,a),u=W(n),f=ce(n),d=le(n)==="y",{width:h,height:p}=o.floating;let m,g;u==="top"||u==="bottom"?(m=u,g=f===(await(i.isRTL==null?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(g=u,m=f==="end"?"top":"bottom");const v=p-c[m],y=h-c[g],b=!t.middlewareData.shift;let $=v,w=y;if(d){const _=h-c.left-c.right;w=f||b?q(y,_):_}else{const _=p-c.top-c.bottom;$=f||b?q(v,_):_}if(b&&!f){const _=I(c.left,0),P=I(c.right,0),E=I(c.top,0),T=I(c.bottom,0);d?w=h-2*(_!==0||P!==0?_+P:I(c.left,c.right)):$=p-2*(E!==0||T!==0?E+T:I(c.top,c.bottom))}await s({...t,availableWidth:w,availableHeight:$});const x=await i.getDimensions(r.floating);return h!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}};function Z(e){return Rt(e)?(e.nodeName||"").toLowerCase():"#document"}function k(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function U(e){var t;return(t=(Rt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Rt(e){return e instanceof Node||e instanceof k(e).Node}function V(e){return e instanceof Element||e instanceof k(e).Element}function H(e){return e instanceof HTMLElement||e instanceof k(e).HTMLElement}function ut(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof k(e).ShadowRoot}function ye(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function xr(e){return["table","td","th"].includes(Z(e))}function Ue(e){const t=Ge(),n=F(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function $r(e){let t=ie(e);for(;H(t)&&!Ne(t);){if(Ue(t))return t;t=ie(t)}return null}function Ge(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ne(e){return["html","body","#document"].includes(Z(e))}function F(e){return k(e).getComputedStyle(e)}function Le(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ie(e){if(Z(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ut(e)&&e.host||U(e);return ut(t)?t.host:t}function St(e){const t=ie(e);return Ne(t)?e.ownerDocument?e.ownerDocument.body:e.body:H(t)&&ye(t)?t:St(t)}function ge(e,t){var n;t===void 0&&(t=[]);const o=St(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),r=k(o);return i?t.concat(r,r.visualViewport||[],ye(o)?o:[],r.frameElement?ge(r.frameElement):[]):t.concat(o,ge(o))}function Dt(e){const t=F(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=H(e),r=i?e.offsetWidth:n,s=i?e.offsetHeight:o,a=Ce(n)!==r||Ce(o)!==s;return a&&(n=r,o=s),{width:n,height:o,$:a}}function Xe(e){return V(e)?e:e.contextElement}function re(e){const t=Xe(e);if(!H(t))return K(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=Dt(t);let s=(r?Ce(n.width):n.width)/o,a=(r?Ce(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const wr=K(0);function Nt(e){const t=k(e);return!Ge()||!t.visualViewport?wr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _r(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==k(e)?!1:t}function ee(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=Xe(e);let s=K(1);t&&(o?V(o)&&(s=re(o)):s=re(e));const a=_r(r,n,o)?Nt(r):K(0);let c=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,f=i.width/s.x,d=i.height/s.y;if(r){const h=k(r),p=o&&V(o)?k(o):o;let m=h.frameElement;for(;m&&o&&p!==h;){const g=re(m),v=m.getBoundingClientRect(),y=F(m),b=v.left+(m.clientLeft+parseFloat(y.paddingLeft))*g.x,$=v.top+(m.clientTop+parseFloat(y.paddingTop))*g.y;c*=g.x,u*=g.y,f*=g.x,d*=g.y,c+=b,u+=$,m=k(m).frameElement}}return Re({width:f,height:d,x:c,y:u})}function Er(e){let{rect:t,offsetParent:n,strategy:o}=e;const i=H(n),r=U(n);if(n===r)return t;let s={scrollLeft:0,scrollTop:0},a=K(1);const c=K(0);if((i||!i&&o!=="fixed")&&((Z(n)!=="body"||ye(r))&&(s=Le(n)),H(n))){const u=ee(n);a=re(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+c.x,y:t.y*a.y-s.scrollTop*a.y+c.y}}function Or(e){return Array.from(e.getClientRects())}function Lt(e){return ee(U(e)).left+Le(e).scrollLeft}function Pr(e){const t=U(e),n=Le(e),o=e.ownerDocument.body,i=I(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=I(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Lt(e);const a=-n.scrollTop;return F(o).direction==="rtl"&&(s+=I(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:a}}function Ar(e,t){const n=k(e),o=U(e),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,a=0,c=0;if(i){r=i.width,s=i.height;const u=Ge();(!u||u&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:r,height:s,x:a,y:c}}function Cr(e,t){const n=ee(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=H(e)?re(e):K(1),s=e.clientWidth*r.x,a=e.clientHeight*r.y,c=i*r.x,u=o*r.y;return{width:s,height:a,x:c,y:u}}function ft(e,t,n){let o;if(t==="viewport")o=Ar(e,n);else if(t==="document")o=Pr(U(e));else if(V(t))o=Cr(t,n);else{const i=Nt(e);o={...t,x:t.x-i.x,y:t.y-i.y}}return Re(o)}function Mt(e,t){const n=ie(e);return n===t||!V(n)||Ne(n)?!1:F(n).position==="fixed"||Mt(n,t)}function Tr(e,t){const n=t.get(e);if(n)return n;let o=ge(e).filter(a=>V(a)&&Z(a)!=="body"),i=null;const r=F(e).position==="fixed";let s=r?ie(e):e;for(;V(s)&&!Ne(s);){const a=F(s),c=Ue(s);!c&&a.position==="fixed"&&(i=null),(r?!c&&!i:!c&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ye(s)&&!c&&Mt(e,s))?o=o.filter(f=>f!==s):i=a,s=ie(s)}return t.set(e,o),o}function Rr(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const s=[...n==="clippingAncestors"?Tr(t,this._c):[].concat(n),o],a=s[0],c=s.reduce((u,f)=>{const d=ft(t,f,i);return u.top=I(d.top,u.top),u.right=q(d.right,u.right),u.bottom=q(d.bottom,u.bottom),u.left=I(d.left,u.left),u},ft(t,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Sr(e){return Dt(e)}function Dr(e,t,n){const o=H(t),i=U(t),r=n==="fixed",s=ee(e,!0,r,t);let a={scrollLeft:0,scrollTop:0};const c=K(0);if(o||!o&&!r)if((Z(t)!=="body"||ye(i))&&(a=Le(t)),o){const u=ee(t,!0,r,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}else i&&(c.x=Lt(i));return{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function dt(e,t){return!H(e)||F(e).position==="fixed"?null:t?t(e):e.offsetParent}function It(e,t){const n=k(e);if(!H(e))return n;let o=dt(e,t);for(;o&&xr(o)&&F(o).position==="static";)o=dt(o,t);return o&&(Z(o)==="html"||Z(o)==="body"&&F(o).position==="static"&&!Ue(o))?n:o||$r(e)||n}const Nr=async function(e){let{reference:t,floating:n,strategy:o}=e;const i=this.getOffsetParent||It,r=this.getDimensions;return{reference:Dr(t,await i(n),o),floating:{x:0,y:0,...await r(n)}}};function Lr(e){return F(e).direction==="rtl"}const Mr={convertOffsetParentRelativeRectToViewportRelativeRect:Er,getDocumentElement:U,getClippingRect:Rr,getOffsetParent:It,getElementRects:Nr,getClientRects:Or,getDimensions:Sr,getScale:re,isElement:V,isRTL:Lr};function Ir(e,t){let n=null,o;const i=U(e);function r(){clearTimeout(o),n&&n.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),r();const{left:u,top:f,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;const p=Ee(f),m=Ee(i.clientWidth-(u+d)),g=Ee(i.clientHeight-(f+h)),v=Ee(u),b={rootMargin:-p+"px "+-m+"px "+-g+"px "+-v+"px",threshold:I(0,q(1,c))||1};let $=!0;function w(x){const _=x[0].intersectionRatio;if(_!==c){if(!$)return s();_?s(!1,_):o=setTimeout(()=>{s(!1,1e-7)},100)}$=!1}try{n=new IntersectionObserver(w,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,b)}n.observe(e)}return s(!0),r}function kr(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=Xe(e),f=i||r?[...u?ge(u):[],...ge(t)]:[];f.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),r&&y.addEventListener("resize",n)});const d=u&&a?Ir(u,n):null;let h=-1,p=null;s&&(p=new ResizeObserver(y=>{let[b]=y;b&&b.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let m,g=c?ee(e):null;c&&v();function v(){const y=ee(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,m=requestAnimationFrame(v)}return n(),()=>{f.forEach(y=>{i&&y.removeEventListener("scroll",n),r&&y.removeEventListener("resize",n)}),d&&d(),p&&p.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const jr=(e,t,n)=>{const o=new Map,i={platform:Mr,...n},r={...i.platform,_c:o};return dr(e,t,{...i,platform:r})},Fr=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:i}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?at({element:o.current,padding:i}).fn(n):{}:o?at({element:o,padding:i}).fn(n):{}}}};var Ae=typeof document<"u"?l.useLayoutEffect:l.useEffect;function Se(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!Se(e[o],t[o]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&e.$$typeof)&&!Se(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function kt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pt(e,t){const n=kt(e);return Math.round(t*n)/n}function ht(e){const t=D.useRef(e);return Ae(()=>{t.current=e}),t}function Hr(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[f,d]=D.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=D.useState(o);Se(h,o)||p(o);const[m,g]=D.useState(null),[v,y]=D.useState(null),b=D.useCallback(O=>{O!=_.current&&(_.current=O,g(O))},[g]),$=D.useCallback(O=>{O!==P.current&&(P.current=O,y(O))},[y]),w=r||m,x=s||v,_=D.useRef(null),P=D.useRef(null),E=D.useRef(f),T=ht(c),L=ht(i),C=D.useCallback(()=>{if(!_.current||!P.current)return;const O={placement:t,strategy:n,middleware:h};L.current&&(O.platform=L.current),jr(_.current,P.current,O).then(G=>{const X={...G,isPositioned:!0};M.current&&!Se(E.current,X)&&(E.current=X,un.flushSync(()=>{d(X)}))})},[h,t,n,L]);Ae(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[u]);const M=D.useRef(!1);Ae(()=>(M.current=!0,()=>{M.current=!1}),[]),Ae(()=>{if(w&&(_.current=w),x&&(P.current=x),w&&x){if(T.current)return T.current(w,x,C);C()}},[w,x,C,T]);const S=D.useMemo(()=>({reference:_,floating:P,setReference:b,setFloating:$}),[b,$]),A=D.useMemo(()=>({reference:w,floating:x}),[w,x]),j=D.useMemo(()=>{const O={position:n,left:0,top:0};if(!A.floating)return O;const G=pt(A.floating,f.x),X=pt(A.floating,f.y);return a?{...O,transform:"translate("+G+"px, "+X+"px)",...kt(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:X}},[n,a,A.floating,f.x,f.y]);return D.useMemo(()=>({...f,update:C,refs:S,elements:A,floatingStyles:j}),[f,C,S,A,j])}const Br=l.forwardRef((e,t)=>{const{children:n,width:o=10,height:i=5,...r}=e;return l.createElement(te.svg,R({},r,{ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:l.createElement("polygon",{points:"0,0 30,0 15,10"}))}),zr=Br;function Wr(e){const[t,n]=l.useState(void 0);return oe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const r=i[0];let s,a;if("borderBoxSize"in r){const c=r.borderBoxSize,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}const jt="Popper",[Ft,Ht]=Ot(jt),[Vr,Bt]=Ft(jt),Ur=e=>{const{__scopePopper:t,children:n}=e,[o,i]=l.useState(null);return l.createElement(Vr,{scope:t,anchor:o,onAnchorChange:i},n)},Gr="PopperAnchor",Xr=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...i}=e,r=Bt(Gr,n),s=l.useRef(null),a=se(t,s);return l.useEffect(()=>{r.onAnchorChange((o==null?void 0:o.current)||s.current)}),o?null:l.createElement(te.div,R({},i,{ref:a}))}),zt="PopperContent",[Yr,qr]=Ft(zt),Kr=l.forwardRef((e,t)=>{var n,o,i,r,s,a,c,u;const{__scopePopper:f,side:d="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:g=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:b=0,sticky:$="partial",hideWhenDetached:w=!1,updatePositionStrategy:x="optimized",onPlaced:_,...P}=e,E=Bt(zt,f),[T,L]=l.useState(null),C=se(t,ue=>L(ue)),[M,S]=l.useState(null),A=Wr(M),j=(n=A==null?void 0:A.width)!==null&&n!==void 0?n:0,O=(o=A==null?void 0:A.height)!==null&&o!==void 0?o:0,G=d+(p!=="center"?"-"+p:""),X=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},Ze=Array.isArray(y)?y:[y],Kt=Ze.length>0,xe={padding:X,boundary:Ze.filter(eo),altBoundary:Kt},{refs:Zt,floatingStyles:Qe,placement:Qt,isPositioned:$e,middlewareData:ne}=Hr({strategy:"fixed",placement:G,whileElementsMounted:(...ue)=>kr(...ue,{animationFrame:x==="always"}),elements:{reference:E.anchor},middleware:[gr({mainAxis:h+O,alignmentAxis:m}),v&&vr({mainAxis:!0,crossAxis:!1,limiter:$==="partial"?yr():void 0,...xe}),v&&pr({...xe}),br({...xe,apply:({elements:ue,rects:et,availableWidth:sn,availableHeight:an})=>{const{width:cn,height:ln}=et.reference,_e=ue.floating.style;_e.setProperty("--radix-popper-available-width",`${sn}px`),_e.setProperty("--radix-popper-available-height",`${an}px`),_e.setProperty("--radix-popper-anchor-width",`${cn}px`),_e.setProperty("--radix-popper-anchor-height",`${ln}px`)}}),M&&Fr({element:M,padding:g}),to({arrowWidth:j,arrowHeight:O}),w&&hr({strategy:"referenceHidden",...xe})]}),[Je,Jt]=Wt(Qt),we=ae(_);oe(()=>{$e&&(we==null||we())},[$e,we]);const en=(i=ne.arrow)===null||i===void 0?void 0:i.x,tn=(r=ne.arrow)===null||r===void 0?void 0:r.y,nn=((s=ne.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[rn,on]=l.useState();return oe(()=>{T&&on(window.getComputedStyle(T).zIndex)},[T]),l.createElement("div",{ref:Zt.setFloating,"data-radix-popper-content-wrapper":"",style:{...Qe,transform:$e?Qe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:rn,"--radix-popper-transform-origin":[(a=ne.transformOrigin)===null||a===void 0?void 0:a.x,(c=ne.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},l.createElement(Yr,{scope:f,placedSide:Je,onArrowChange:S,arrowX:en,arrowY:tn,shouldHideArrow:nn},l.createElement(te.div,R({"data-side":Je,"data-align":Jt},P,{ref:C,style:{...P.style,animation:$e?void 0:"none",opacity:(u=ne.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),Zr="PopperArrow",Qr={top:"bottom",right:"left",bottom:"top",left:"right"},Jr=l.forwardRef(function(t,n){const{__scopePopper:o,...i}=t,r=qr(Zr,o),s=Qr[r.placedSide];return l.createElement("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0}},l.createElement(zr,R({},i,{ref:n,style:{...i.style,display:"block"}})))});function eo(e){return e!==null}const to=e=>({name:"transformOrigin",options:e,fn(t){var n,o,i,r,s;const{placement:a,rects:c,middlewareData:u}=t,d=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[m,g]=Wt(a),v={start:"0%",center:"50%",end:"100%"}[g],y=((o=(i=u.arrow)===null||i===void 0?void 0:i.x)!==null&&o!==void 0?o:0)+h/2,b=((r=(s=u.arrow)===null||s===void 0?void 0:s.y)!==null&&r!==void 0?r:0)+p/2;let $="",w="";return m==="bottom"?($=d?v:`${y}px`,w=`${-p}px`):m==="top"?($=d?v:`${y}px`,w=`${c.floating.height+p}px`):m==="right"?($=`${-p}px`,w=d?v:`${b}px`):m==="left"&&($=`${c.floating.width+p}px`,w=d?v:`${b}px`),{data:{x:$,y:w}}}});function Wt(e){const[t,n="center"]=e.split("-");return[t,n]}const no=Ur,ro=Xr,oo=Kr,io=Jr,so=l.forwardRef((e,t)=>{var n;const{container:o=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...i}=e;return o?De.createPortal(l.createElement(te.div,R({},i,{ref:t})),o):null});function ao(e,t){return l.useReducer((n,o)=>{const i=t[n][o];return i??n},e)}const Ye=e=>{const{present:t,children:n}=e,o=co(t),i=typeof n=="function"?n({present:o.isPresent}):l.Children.only(n),r=se(o.ref,i.ref);return typeof n=="function"||o.isPresent?l.cloneElement(i,{ref:r}):null};Ye.displayName="Presence";function co(e){const[t,n]=l.useState(),o=l.useRef({}),i=l.useRef(e),r=l.useRef("none"),s=e?"mounted":"unmounted",[a,c]=ao(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=Oe(o.current);r.current=a==="mounted"?u:"none"},[a]),oe(()=>{const u=o.current,f=i.current;if(f!==e){const h=r.current,p=Oe(u);e?c("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&h!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),oe(()=>{if(t){const u=d=>{const p=Oe(o.current).includes(d.animationName);d.target===t&&p&&De.flushSync(()=>c("ANIMATION_END"))},f=d=>{d.target===t&&(r.current=Oe(o.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:l.useCallback(u=>{u&&(o.current=getComputedStyle(u)),n(u)},[])}}function Oe(e){return(e==null?void 0:e.animationName)||"none"}function lo({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,i]=uo({defaultProp:t,onChange:n}),r=e!==void 0,s=r?e:o,a=ae(n),c=l.useCallback(u=>{if(r){const d=typeof u=="function"?u(e):u;d!==e&&a(d)}else i(u)},[r,e,i,a]);return[s,c]}function uo({defaultProp:e,onChange:t}){const n=l.useState(e),[o]=n,i=l.useRef(o),r=ae(t);return l.useEffect(()=>{i.current!==o&&(r(o),i.current=o)},[o,i,r]),n}const fo=l.forwardRef((e,t)=>l.createElement(te.span,R({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),po=fo,[Me,qo]=Ot("Tooltip",[Ht]),Ie=Ht(),ho="TooltipProvider",mo=700,Be="tooltip.open",[go,qe]=Me(ho),vo=e=>{const{__scopeTooltip:t,delayDuration:n=mo,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:r}=e,[s,a]=l.useState(!0),c=l.useRef(!1),u=l.useRef(0);return l.useEffect(()=>{const f=u.current;return()=>window.clearTimeout(f)},[]),l.createElement(go,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(u.current),a(!1)},[]),onClose:l.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a(!0),o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(f=>{c.current=f},[]),disableHoverableContent:i},r)},Ke="Tooltip",[yo,be]=Me(Ke),bo=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:i=!1,onOpenChange:r,disableHoverableContent:s,delayDuration:a}=e,c=qe(Ke,e.__scopeTooltip),u=Ie(t),[f,d]=l.useState(null),h=rr(),p=l.useRef(0),m=s??c.disableHoverableContent,g=a??c.delayDuration,v=l.useRef(!1),[y=!1,b]=lo({prop:o,defaultProp:i,onChange:P=>{P?(c.onOpen(),document.dispatchEvent(new CustomEvent(Be))):c.onClose(),r==null||r(P)}}),$=l.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),w=l.useCallback(()=>{window.clearTimeout(p.current),v.current=!1,b(!0)},[b]),x=l.useCallback(()=>{window.clearTimeout(p.current),b(!1)},[b]),_=l.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{v.current=!0,b(!0)},g)},[g,b]);return l.useEffect(()=>()=>window.clearTimeout(p.current),[]),l.createElement(no,u,l.createElement(yo,{scope:t,contentId:h,open:y,stateAttribute:$,trigger:f,onTriggerChange:d,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayed?_():w()},[c.isOpenDelayed,_,w]),onTriggerLeave:l.useCallback(()=>{m?x():window.clearTimeout(p.current)},[x,m]),onOpen:w,onClose:x,disableHoverableContent:m},n))},mt="TooltipTrigger",xo=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,i=be(mt,n),r=qe(mt,n),s=Ie(n),a=l.useRef(null),c=se(t,a,i.onTriggerChange),u=l.useRef(!1),f=l.useRef(!1),d=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),l.createElement(ro,R({asChild:!0},s),l.createElement(te.button,R({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:c,onPointerMove:B(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!r.isPointerInTransitRef.current&&(i.onTriggerEnter(),f.current=!0)}),onPointerLeave:B(e.onPointerLeave,()=>{i.onTriggerLeave(),f.current=!1}),onPointerDown:B(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:B(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:B(e.onBlur,i.onClose),onClick:B(e.onClick,i.onClose)})))}),Vt="TooltipPortal",[$o,wo]=Me(Vt,{forceMount:void 0}),_o=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:i}=e,r=be(Vt,t);return l.createElement($o,{scope:t,forceMount:n},l.createElement(Ye,{present:n||r.open},l.createElement(so,{asChild:!0,container:i},o)))},ve="TooltipContent",Eo=l.forwardRef((e,t)=>{const n=wo(ve,e.__scopeTooltip),{forceMount:o=n.forceMount,side:i="top",...r}=e,s=be(ve,e.__scopeTooltip);return l.createElement(Ye,{present:o||s.open},s.disableHoverableContent?l.createElement(Ut,R({side:i},r,{ref:t})):l.createElement(Oo,R({side:i},r,{ref:t})))}),Oo=l.forwardRef((e,t)=>{const n=be(ve,e.__scopeTooltip),o=qe(ve,e.__scopeTooltip),i=l.useRef(null),r=se(t,i),[s,a]=l.useState(null),{trigger:c,onClose:u}=n,f=i.current,{onPointerInTransitChange:d}=o,h=l.useCallback(()=>{a(null),d(!1)},[d]),p=l.useCallback((m,g)=>{const v=m.currentTarget,y={x:m.clientX,y:m.clientY},b=Ro(y,v.getBoundingClientRect()),$=So(y,b),w=Do(g.getBoundingClientRect()),x=Lo([...$,...w]);a(x),d(!0)},[d]);return l.useEffect(()=>()=>h(),[h]),l.useEffect(()=>{if(c&&f){const m=v=>p(v,f),g=v=>p(v,c);return c.addEventListener("pointerleave",m),f.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",m),f.removeEventListener("pointerleave",g)}}},[c,f,p,h]),l.useEffect(()=>{if(s){const m=g=>{const v=g.target,y={x:g.clientX,y:g.clientY},b=(c==null?void 0:c.contains(v))||(f==null?void 0:f.contains(v)),$=!No(y,s);b?h():$&&(h(),u())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,f,s,u,h]),l.createElement(Ut,R({},e,{ref:r}))}),[Po,Ao]=Me(Ke,{isInside:!1}),Ut=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:r,onPointerDownOutside:s,...a}=e,c=be(ve,n),u=Ie(n),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(Be,f),()=>document.removeEventListener(Be,f)),[f]),l.useEffect(()=>{if(c.trigger){const d=h=>{const p=h.target;p!=null&&p.contains(c.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,f]),l.createElement(Qn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:f},l.createElement(oo,R({"data-state":c.stateAttribute},u,a,{ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),l.createElement(At,null,o),l.createElement(Po,{scope:n,isInside:!0},l.createElement(po,{id:c.contentId,role:"tooltip"},i||o))))}),Co="TooltipArrow",To=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,i=Ie(n);return Ao(Co,n).isInside?null:l.createElement(io,R({},i,o,{ref:t}))});function Ro(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),r=Math.abs(t.left-e.x);switch(Math.min(n,o,i,r)){case r:return"left";case i:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function So(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Do(e){const{top:t,right:n,bottom:o,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:o},{x:i,y:o}]}function No(e,t){const{x:n,y:o}=e;let i=!1;for(let r=0,s=t.length-1;r<t.length;s=r++){const a=t[r].x,c=t[r].y,u=t[s].x,f=t[s].y;c>o!=f>o&&n<(u-a)*(o-c)/(f-c)+a&&(i=!i)}return i}function Lo(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),Mo(t)}function Mo(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const i=e[o];for(;t.length>=2;){const r=t[t.length-1],s=t[t.length-2];if((r.x-s.x)*(i.y-s.y)>=(r.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const i=e[o];for(;n.length>=2;){const r=n[n.length-1],s=n[n.length-2];if((r.x-s.x)*(i.y-s.y)>=(r.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const Io=vo,ko=bo,jo=xo,Fo=_o,Ho=Eo,Bo=To;function zo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gt={exports:{}};/*!
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o(a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})($t);var In=$t.exports;const jn=kn(In),de={"purpur-paragraph":"_purpur-paragraph_1rh57_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_1rh57_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_1rh57_10","purpur-paragraph--negative":"_purpur-paragraph--negative_1rh57_13","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_1rh57_16","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_1rh57_22","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_1rh57_29","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_1rh57_36","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_1rh57_42","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_1rh57_48","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_1rh57_54","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_1rh57_60","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_1rh57_67","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_1rh57_75"},wt={PARAGRAPH100:"paragraph-100",PARAGRAPH100MEDIUM:"paragraph-100-medium",PARAGRAPH100BOLD:"paragraph-100-bold",PARAGRAPH200:"paragraph-200",PREAMBLE100:"preamble-100",PREAMBLE200:"preamble-200",ADDITIONAL100:"additional-100",ADDITIONAL100MEDIUM:"additional-100-medium",OVERLINE100:"overline-100",OVERLINE200:"overline-200"},pe="purpur-paragraph",Fn=({["data-testid"]:e,children:t,className:n="",disabled:o,enableHyphenation:i=!1,negative:r=!1,variant:s=wt.PARAGRAPH100,...a})=>{const c=jn([n,de[pe],de[`${pe}--${s}`],{[de[`${pe}--hyphens`]]:i,[de[`${pe}--disabled`]]:o,[de[`${pe}--negative`]]:r}]);return N.jsx("p",{...a,className:c,"data-testid":e,children:t})},Hn="400ms";function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},R.apply(this,arguments)}function B(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Bn(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function _t(...e){return t=>e.forEach(n=>Bn(n,t))}function ie(...e){return l.useCallback(_t(...e),e)}function Et(e,t=[]){let n=[];function o(r,s){const a=l.createContext(s),c=n.length;n=[...n,s];function u(d){const{scope:h,children:p,...m}=d,g=(h==null?void 0:h[e][c])||a,v=l.useMemo(()=>m,Object.values(m));return l.createElement(g.Provider,{value:v},p)}function f(d,h){const p=(h==null?void 0:h[e][c])||a,m=l.useContext(p);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${r}\``)}return u.displayName=r+"Provider",[u,f]}const i=()=>{const r=n.map(s=>l.createContext(s));return function(a){const c=(a==null?void 0:a[e])||r;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return i.scopeName=e,[o,zn(i,...t)]}function zn(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(r){const s=o.reduce((a,{useScope:c,scopeName:u})=>{const d=c(r)[`__scope${u}`];return{...a,...d}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}const Ot=l.forwardRef((e,t)=>{const{children:n,...o}=e,i=l.Children.toArray(n),r=i.find(Wn);if(r){const s=r.props.children,a=i.map(c=>c===r?l.Children.count(s)>1?l.Children.only(null):l.isValidElement(s)?s.props.children:null:c);return l.createElement(ke,R({},o,{ref:t}),l.isValidElement(s)?l.cloneElement(s,void 0,a):null)}return l.createElement(ke,R({},o,{ref:t}),n)});Ot.displayName="Slot";const ke=l.forwardRef((e,t)=>{const{children:n,...o}=e;return l.isValidElement(n)?l.cloneElement(n,{...Vn(o,n.props),ref:t?_t(t,n.ref):n.ref}):l.Children.count(n)>1?l.Children.only(null):null});ke.displayName="SlotClone";const Pt=({children:e})=>l.createElement(l.Fragment,null,e);function Wn(e){return l.isValidElement(e)&&e.type===Pt}function Vn(e,t){const n={...t};for(const o in t){const i=e[o],r=t[o];/^on[A-Z]/.test(o)?i&&r?n[o]=(...a)=>{r(...a),i(...a)}:i&&(n[o]=i):o==="style"?n[o]={...i,...r}:o==="className"&&(n[o]=[i,r].filter(Boolean).join(" "))}return{...e,...n}}const Un=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],J=Un.reduce((e,t)=>{const n=l.forwardRef((o,i)=>{const{asChild:r,...s}=o,a=r?Ot:t;return l.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),l.createElement(a,R({},s,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Gn(e,t){e&&Re.flushSync(()=>e.dispatchEvent(t))}function se(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...n)},[])}function Xn(e,t=globalThis==null?void 0:globalThis.document){const n=se(e);l.useEffect(()=>{const o=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)},[n,t])}const Ie="dismissableLayer.update",Yn="dismissableLayer.pointerDownOutside",qn="dismissableLayer.focusOutside";let rt;const Kn=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zn=l.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...u}=e,f=l.useContext(Kn),[d,h]=l.useState(null),p=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=l.useState({}),g=ie(t,E=>h(E)),v=Array.from(f.layers),[y]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),$=d?v.indexOf(d):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,x=$>=b,_=Qn(E=>{const T=E.target,L=[...f.branches].some(C=>C.contains(T));!x||L||(r==null||r(E),a==null||a(E),E.defaultPrevented||c==null||c())},p),P=Jn(E=>{const T=E.target;[...f.branches].some(C=>C.contains(T))||(s==null||s(E),a==null||a(E),E.defaultPrevented||c==null||c())},p);return Xn(E=>{$===f.layers.size-1&&(i==null||i(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},p),l.useEffect(()=>{if(d)return o&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(rt=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),ot(),()=>{o&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=rt)}},[d,p,o,f]),l.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),ot())},[d,f]),l.useEffect(()=>{const E=()=>m({});return document.addEventListener(Ie,E),()=>document.removeEventListener(Ie,E)},[]),l.createElement(J.div,R({},u,{ref:g,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:B(e.onFocusCapture,P.onFocusCapture),onBlurCapture:B(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,_.onPointerDownCapture)}))});function Qn(e,t=globalThis==null?void 0:globalThis.document){const n=se(e),o=l.useRef(!1),i=l.useRef(()=>{});return l.useEffect(()=>{const r=a=>{if(a.target&&!o.current){let u=function(){At(Yn,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",r)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",r),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Jn(e,t=globalThis==null?void 0:globalThis.document){const n=se(e),o=l.useRef(!1);return l.useEffect(()=>{const i=r=>{r.target&&!o.current&&At(qn,n,{originalEvent:r},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function ot(){const e=new CustomEvent(Ie);document.dispatchEvent(e)}function At(e,t,n,{discrete:o}){const i=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?Gn(i,r):i.dispatchEvent(r)}const re=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},er=D.useId||(()=>{});let tr=0;function nr(e){const[t,n]=D.useState(er());return re(()=>{n(o=>o??String(tr++))},[e]),t?`radix-${t}`:""}const rr=["top","right","bottom","left"],Y=Math.min,k=Math.max,Pe=Math.round,_e=Math.floor,q=e=>({x:e,y:e}),or={left:"right",right:"left",bottom:"top",top:"bottom"},ir={start:"end",end:"start"};function je(e,t,n){return k(e,Y(t,n))}function z(e,t){return typeof e=="function"?e(t):e}function W(e){return e.split("-")[0]}function ae(e){return e.split("-")[1]}function Be(e){return e==="x"?"y":"x"}function ze(e){return e==="y"?"height":"width"}function ce(e){return["top","bottom"].includes(W(e))?"y":"x"}function We(e){return Be(ce(e))}function sr(e,t,n){n===void 0&&(n=!1);const o=ae(e),i=We(e),r=ze(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=Ae(s)),[s,Ae(s)]}function ar(e){const t=Ae(e);return[Fe(e),t,Fe(t)]}function Fe(e){return e.replace(/start|end/g,t=>ir[t])}function cr(e,t,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?r:s;default:return[]}}function lr(e,t,n,o){const i=ae(e);let r=cr(W(e),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),t&&(r=r.concat(r.map(Fe)))),r}function Ae(e){return e.replace(/left|right|bottom|top/g,t=>or[t])}function ur(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ct(e){return typeof e!="number"?ur(e):{top:e,right:e,bottom:e,left:e}}function Ce(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function it(e,t,n){let{reference:o,floating:i}=e;const r=ce(t),s=We(t),a=ze(s),c=W(t),u=r==="y",f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,h=o[a]/2-i[a]/2;let p;switch(c){case"top":p={x:f,y:o.y-i.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-i.width,y:d};break;default:p={x:o.x,y:o.y}}switch(ae(t)){case"start":p[s]-=h*(n&&u?-1:1);break;case"end":p[s]+=h*(n&&u?-1:1);break}return p}const fr=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:d}=it(u,o,c),h=o,p={},m=0;for(let g=0;g<a.length;g++){const{name:v,fn:y}=a[g],{x:b,y:$,data:w,reset:x}=await y({x:f,y:d,initialPlacement:o,placement:h,strategy:i,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});if(f=b??f,d=$??d,p={...p,[v]:{...p[v],...w}},x&&m<=50){m++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(u=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:f,y:d}=it(u,h,c)),g=-1;continue}}return{x:f,y:d,placement:h,strategy:i,middlewareData:p}};async function he(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:r,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=z(t,e),m=Ct(p),v=a[h?d==="floating"?"reference":"floating":d],y=Ce(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(v)))==null||n?v:v.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:c})),b=d==="floating"?{...s.floating,x:o,y:i}:s.reference,$=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a.floating)),w=await(r.isElement==null?void 0:r.isElement($))?await(r.getScale==null?void 0:r.getScale($))||{x:1,y:1}:{x:1,y:1},x=Ce(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:$,strategy:c}):b);return{top:(y.top-x.top+m.top)/w.y,bottom:(x.bottom-y.bottom+m.bottom)/w.y,left:(y.left-x.left+m.left)/w.x,right:(x.right-y.right+m.right)/w.x}}const st=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:s,elements:a}=t,{element:c,padding:u=0}=z(e,t)||{};if(c==null)return{};const f=Ct(u),d={x:n,y:o},h=We(i),p=ze(h),m=await s.getDimensions(c),g=h==="y",v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",$=r.reference[p]+r.reference[h]-d[h]-r.floating[p],w=d[h]-r.reference[h],x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let _=x?x[b]:0;(!_||!await(s.isElement==null?void 0:s.isElement(x)))&&(_=a.floating[b]||r.floating[p]);const P=$/2-w/2,E=_/2-m[p]/2-1,T=Y(f[v],E),L=Y(f[y],E),C=T,M=_-m[p]-L,S=_/2-m[p]/2+P,A=je(C,S,M),O=ae(i)!=null&&S!=A&&r.reference[p]/2-(S<C?T:L)-m[p]/2<0?S<C?C-S:M-S:0;return{[h]:d[h]-O,data:{[h]:A,centerOffset:S-A+O}}}}),dr=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:i,rects:r,initialPlacement:s,platform:a,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=z(e,t),v=W(o),y=W(s)===s,b=await(a.isRTL==null?void 0:a.isRTL(c.floating)),$=d||(y||!m?[Ae(s)]:ar(s));!d&&p!=="none"&&$.push(...lr(s,m,p,b));const w=[s,...$],x=await he(t,g),_=[];let P=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&_.push(x[v]),f){const C=sr(o,r,b);_.push(x[C[0]],x[C[1]])}if(P=[...P,{placement:o,overflows:_}],!_.every(C=>C<=0)){var E,T;const C=(((E=i.flip)==null?void 0:E.index)||0)+1,M=w[C];if(M)return{data:{index:C,overflows:P},reset:{placement:M}};let S=(T=P.filter(A=>A.overflows[0]<=0).sort((A,j)=>A.overflows[1]-j.overflows[1])[0])==null?void 0:T.placement;if(!S)switch(h){case"bestFit":{var L;const A=(L=P.map(j=>[j.placement,j.overflows.filter(O=>O>0).reduce((O,G)=>O+G,0)]).sort((j,O)=>j[1]-O[1])[0])==null?void 0:L[0];A&&(S=A);break}case"initialPlacement":S=s;break}if(o!==S)return{reset:{placement:S}}}return{}}}};function at(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ct(e){return rr.some(t=>e[t]>=0)}const pr=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=z(e,t);switch(o){case"referenceHidden":{const r=await he(t,{...i,elementContext:"reference"}),s=at(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ct(s)}}}case"escaped":{const r=await he(t,{...i,altBoundary:!0}),s=at(r,n.floating);return{data:{escapedOffsets:s,escaped:ct(s)}}}default:return{}}}}};async function hr(e,t){const{placement:n,platform:o,elements:i}=e,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=W(n),a=ae(n),c=ce(n)==="y",u=["left","top"].includes(s)?-1:1,f=r&&c?-1:1,d=z(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),c?{x:p*f,y:h*u}:{x:h*u,y:p*f}}const mr=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,i=await hr(t,e);return{x:n+i.x,y:o+i.y,data:i}}}},gr=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:y,y:b}=v;return{x:y,y:b}}},...c}=z(e,t),u={x:n,y:o},f=await he(t,c),d=ce(W(i)),h=Be(d);let p=u[h],m=u[d];if(r){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",b=p+f[v],$=p-f[y];p=je(b,p,$)}if(s){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=m+f[v],$=m-f[y];m=je(b,m,$)}const g=a.fn({...t,[h]:p,[d]:m});return{...g,data:{x:g.x-n,y:g.y-o}}}}},vr=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=z(e,t),f={x:n,y:o},d=ce(i),h=Be(d);let p=f[h],m=f[d];const g=z(a,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const $=h==="y"?"height":"width",w=r.reference[h]-r.floating[$]+v.mainAxis,x=r.reference[h]+r.reference[$]-v.mainAxis;p<w?p=w:p>x&&(p=x)}if(u){var y,b;const $=h==="y"?"width":"height",w=["top","left"].includes(W(i)),x=r.reference[d]-r.floating[$]+(w&&((y=s.offset)==null?void 0:y[d])||0)+(w?0:v.crossAxis),_=r.reference[d]+r.reference[$]+(w?0:((b=s.offset)==null?void 0:b[d])||0)-(w?v.crossAxis:0);m<x?m=x:m>_&&(m=_)}return{[h]:p,[d]:m}}}},yr=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:i,elements:r}=t,{apply:s=()=>{},...a}=z(e,t),c=await he(t,a),u=W(n),f=ae(n),d=ce(n)==="y",{width:h,height:p}=o.floating;let m,g;u==="top"||u==="bottom"?(m=u,g=f===(await(i.isRTL==null?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(g=u,m=f==="end"?"top":"bottom");const v=p-c[m],y=h-c[g],b=!t.middlewareData.shift;let $=v,w=y;if(d){const _=h-c.left-c.right;w=f||b?Y(y,_):_}else{const _=p-c.top-c.bottom;$=f||b?Y(v,_):_}if(b&&!f){const _=k(c.left,0),P=k(c.right,0),E=k(c.top,0),T=k(c.bottom,0);d?w=h-2*(_!==0||P!==0?_+P:k(c.left,c.right)):$=p-2*(E!==0||T!==0?E+T:k(c.top,c.bottom))}await s({...t,availableWidth:w,availableHeight:$});const x=await i.getDimensions(r.floating);return h!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}};function K(e){return Tt(e)?(e.nodeName||"").toLowerCase():"#document"}function I(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function U(e){var t;return(t=(Tt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Tt(e){return e instanceof Node||e instanceof I(e).Node}function V(e){return e instanceof Element||e instanceof I(e).Element}function H(e){return e instanceof HTMLElement||e instanceof I(e).HTMLElement}function lt(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof I(e).ShadowRoot}function ve(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function br(e){return["table","td","th"].includes(K(e))}function Ve(e){const t=Ue(),n=F(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function xr(e){let t=oe(e);for(;H(t)&&!Se(t);){if(Ve(t))return t;t=oe(t)}return null}function Ue(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Se(e){return["html","body","#document"].includes(K(e))}function F(e){return I(e).getComputedStyle(e)}function De(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function oe(e){if(K(e)==="html")return e;const t=e.assignedSlot||e.parentNode||lt(e)&&e.host||U(e);return lt(t)?t.host:t}function Rt(e){const t=oe(e);return Se(t)?e.ownerDocument?e.ownerDocument.body:e.body:H(t)&&ve(t)?t:Rt(t)}function me(e,t){var n;t===void 0&&(t=[]);const o=Rt(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),r=I(o);return i?t.concat(r,r.visualViewport||[],ve(o)?o:[],r.frameElement?me(r.frameElement):[]):t.concat(o,me(o))}function St(e){const t=F(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=H(e),r=i?e.offsetWidth:n,s=i?e.offsetHeight:o,a=Pe(n)!==r||Pe(o)!==s;return a&&(n=r,o=s),{width:n,height:o,$:a}}function Ge(e){return V(e)?e:e.contextElement}function ne(e){const t=Ge(e);if(!H(t))return q(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=St(t);let s=(r?Pe(n.width):n.width)/o,a=(r?Pe(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const $r=q(0);function Dt(e){const t=I(e);return!Ue()||!t.visualViewport?$r:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==I(e)?!1:t}function Q(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=Ge(e);let s=q(1);t&&(o?V(o)&&(s=ne(o)):s=ne(e));const a=wr(r,n,o)?Dt(r):q(0);let c=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,f=i.width/s.x,d=i.height/s.y;if(r){const h=I(r),p=o&&V(o)?I(o):o;let m=h.frameElement;for(;m&&o&&p!==h;){const g=ne(m),v=m.getBoundingClientRect(),y=F(m),b=v.left+(m.clientLeft+parseFloat(y.paddingLeft))*g.x,$=v.top+(m.clientTop+parseFloat(y.paddingTop))*g.y;c*=g.x,u*=g.y,f*=g.x,d*=g.y,c+=b,u+=$,m=I(m).frameElement}}return Ce({width:f,height:d,x:c,y:u})}function _r(e){let{rect:t,offsetParent:n,strategy:o}=e;const i=H(n),r=U(n);if(n===r)return t;let s={scrollLeft:0,scrollTop:0},a=q(1);const c=q(0);if((i||!i&&o!=="fixed")&&((K(n)!=="body"||ve(r))&&(s=De(n)),H(n))){const u=Q(n);a=ne(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+c.x,y:t.y*a.y-s.scrollTop*a.y+c.y}}function Er(e){return Array.from(e.getClientRects())}function Nt(e){return Q(U(e)).left+De(e).scrollLeft}function Or(e){const t=U(e),n=De(e),o=e.ownerDocument.body,i=k(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=k(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Nt(e);const a=-n.scrollTop;return F(o).direction==="rtl"&&(s+=k(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:a}}function Pr(e,t){const n=I(e),o=U(e),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,a=0,c=0;if(i){r=i.width,s=i.height;const u=Ue();(!u||u&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:r,height:s,x:a,y:c}}function Ar(e,t){const n=Q(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=H(e)?ne(e):q(1),s=e.clientWidth*r.x,a=e.clientHeight*r.y,c=i*r.x,u=o*r.y;return{width:s,height:a,x:c,y:u}}function ut(e,t,n){let o;if(t==="viewport")o=Pr(e,n);else if(t==="document")o=Or(U(e));else if(V(t))o=Ar(t,n);else{const i=Dt(e);o={...t,x:t.x-i.x,y:t.y-i.y}}return Ce(o)}function Lt(e,t){const n=oe(e);return n===t||!V(n)||Se(n)?!1:F(n).position==="fixed"||Lt(n,t)}function Cr(e,t){const n=t.get(e);if(n)return n;let o=me(e).filter(a=>V(a)&&K(a)!=="body"),i=null;const r=F(e).position==="fixed";let s=r?oe(e):e;for(;V(s)&&!Se(s);){const a=F(s),c=Ve(s);!c&&a.position==="fixed"&&(i=null),(r?!c&&!i:!c&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ve(s)&&!c&&Lt(e,s))?o=o.filter(f=>f!==s):i=a,s=oe(s)}return t.set(e,o),o}function Tr(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const s=[...n==="clippingAncestors"?Cr(t,this._c):[].concat(n),o],a=s[0],c=s.reduce((u,f)=>{const d=ut(t,f,i);return u.top=k(d.top,u.top),u.right=Y(d.right,u.right),u.bottom=Y(d.bottom,u.bottom),u.left=k(d.left,u.left),u},ut(t,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Rr(e){return St(e)}function Sr(e,t,n){const o=H(t),i=U(t),r=n==="fixed",s=Q(e,!0,r,t);let a={scrollLeft:0,scrollTop:0};const c=q(0);if(o||!o&&!r)if((K(t)!=="body"||ve(i))&&(a=De(t)),o){const u=Q(t,!0,r,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}else i&&(c.x=Nt(i));return{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function ft(e,t){return!H(e)||F(e).position==="fixed"?null:t?t(e):e.offsetParent}function Mt(e,t){const n=I(e);if(!H(e))return n;let o=ft(e,t);for(;o&&br(o)&&F(o).position==="static";)o=ft(o,t);return o&&(K(o)==="html"||K(o)==="body"&&F(o).position==="static"&&!Ve(o))?n:o||xr(e)||n}const Dr=async function(e){let{reference:t,floating:n,strategy:o}=e;const i=this.getOffsetParent||Mt,r=this.getDimensions;return{reference:Sr(t,await i(n),o),floating:{x:0,y:0,...await r(n)}}};function Nr(e){return F(e).direction==="rtl"}const Lr={convertOffsetParentRelativeRectToViewportRelativeRect:_r,getDocumentElement:U,getClippingRect:Tr,getOffsetParent:Mt,getElementRects:Dr,getClientRects:Er,getDimensions:Rr,getScale:ne,isElement:V,isRTL:Nr};function Mr(e,t){let n=null,o;const i=U(e);function r(){clearTimeout(o),n&&n.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),r();const{left:u,top:f,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;const p=_e(f),m=_e(i.clientWidth-(u+d)),g=_e(i.clientHeight-(f+h)),v=_e(u),b={rootMargin:-p+"px "+-m+"px "+-g+"px "+-v+"px",threshold:k(0,Y(1,c))||1};let $=!0;function w(x){const _=x[0].intersectionRatio;if(_!==c){if(!$)return s();_?s(!1,_):o=setTimeout(()=>{s(!1,1e-7)},100)}$=!1}try{n=new IntersectionObserver(w,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,b)}n.observe(e)}return s(!0),r}function kr(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=Ge(e),f=i||r?[...u?me(u):[],...me(t)]:[];f.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),r&&y.addEventListener("resize",n)});const d=u&&a?Mr(u,n):null;let h=-1,p=null;s&&(p=new ResizeObserver(y=>{let[b]=y;b&&b.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let m,g=c?Q(e):null;c&&v();function v(){const y=Q(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,m=requestAnimationFrame(v)}return n(),()=>{f.forEach(y=>{i&&y.removeEventListener("scroll",n),r&&y.removeEventListener("resize",n)}),d&&d(),p&&p.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const Ir=(e,t,n)=>{const o=new Map,i={platform:Lr,...n},r={...i.platform,_c:o};return fr(e,t,{...i,platform:r})},jr=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:i}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?st({element:o.current,padding:i}).fn(n):{}:o?st({element:o,padding:i}).fn(n):{}}}};var Oe=typeof document<"u"?l.useLayoutEffect:l.useEffect;function Te(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!Te(e[o],t[o]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&e.$$typeof)&&!Te(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function kt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dt(e,t){const n=kt(e);return Math.round(t*n)/n}function pt(e){const t=D.useRef(e);return Oe(()=>{t.current=e}),t}function Fr(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[f,d]=D.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=D.useState(o);Te(h,o)||p(o);const[m,g]=D.useState(null),[v,y]=D.useState(null),b=D.useCallback(O=>{O!=_.current&&(_.current=O,g(O))},[g]),$=D.useCallback(O=>{O!==P.current&&(P.current=O,y(O))},[y]),w=r||m,x=s||v,_=D.useRef(null),P=D.useRef(null),E=D.useRef(f),T=pt(c),L=pt(i),C=D.useCallback(()=>{if(!_.current||!P.current)return;const O={placement:t,strategy:n,middleware:h};L.current&&(O.platform=L.current),Ir(_.current,P.current,O).then(G=>{const X={...G,isPositioned:!0};M.current&&!Te(E.current,X)&&(E.current=X,ln.flushSync(()=>{d(X)}))})},[h,t,n,L]);Oe(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[u]);const M=D.useRef(!1);Oe(()=>(M.current=!0,()=>{M.current=!1}),[]),Oe(()=>{if(w&&(_.current=w),x&&(P.current=x),w&&x){if(T.current)return T.current(w,x,C);C()}},[w,x,C,T]);const S=D.useMemo(()=>({reference:_,floating:P,setReference:b,setFloating:$}),[b,$]),A=D.useMemo(()=>({reference:w,floating:x}),[w,x]),j=D.useMemo(()=>{const O={position:n,left:0,top:0};if(!A.floating)return O;const G=dt(A.floating,f.x),X=dt(A.floating,f.y);return a?{...O,transform:"translate("+G+"px, "+X+"px)",...kt(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:X}},[n,a,A.floating,f.x,f.y]);return D.useMemo(()=>({...f,update:C,refs:S,elements:A,floatingStyles:j}),[f,C,S,A,j])}const Hr=l.forwardRef((e,t)=>{const{children:n,width:o=10,height:i=5,...r}=e;return l.createElement(J.svg,R({},r,{ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:l.createElement("polygon",{points:"0,0 30,0 15,10"}))}),Br=Hr;function zr(e){const[t,n]=l.useState(void 0);return re(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const r=i[0];let s,a;if("borderBoxSize"in r){const c=r.borderBoxSize,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}const It="Popper",[jt,Ft]=Et(It),[Wr,Ht]=jt(It),Vr=e=>{const{__scopePopper:t,children:n}=e,[o,i]=l.useState(null);return l.createElement(Wr,{scope:t,anchor:o,onAnchorChange:i},n)},Ur="PopperAnchor",Gr=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...i}=e,r=Ht(Ur,n),s=l.useRef(null),a=ie(t,s);return l.useEffect(()=>{r.onAnchorChange((o==null?void 0:o.current)||s.current)}),o?null:l.createElement(J.div,R({},i,{ref:a}))}),Bt="PopperContent",[Xr,Yr]=jt(Bt),qr=l.forwardRef((e,t)=>{var n,o,i,r,s,a,c,u;const{__scopePopper:f,side:d="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:g=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:b=0,sticky:$="partial",hideWhenDetached:w=!1,updatePositionStrategy:x="optimized",onPlaced:_,...P}=e,E=Ht(Bt,f),[T,L]=l.useState(null),C=ie(t,le=>L(le)),[M,S]=l.useState(null),A=zr(M),j=(n=A==null?void 0:A.width)!==null&&n!==void 0?n:0,O=(o=A==null?void 0:A.height)!==null&&o!==void 0?o:0,G=d+(p!=="center"?"-"+p:""),X=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},Ke=Array.isArray(y)?y:[y],qt=Ke.length>0,be={padding:X,boundary:Ke.filter(Jr),altBoundary:qt},{refs:Kt,floatingStyles:Ze,placement:Zt,isPositioned:xe,middlewareData:ee}=Fr({strategy:"fixed",placement:G,whileElementsMounted:(...le)=>kr(...le,{animationFrame:x==="always"}),elements:{reference:E.anchor},middleware:[mr({mainAxis:h+O,alignmentAxis:m}),v&&gr({mainAxis:!0,crossAxis:!1,limiter:$==="partial"?vr():void 0,...be}),v&&dr({...be}),yr({...be,apply:({elements:le,rects:Je,availableWidth:on,availableHeight:sn})=>{const{width:an,height:cn}=Je.reference,we=le.floating.style;we.setProperty("--radix-popper-available-width",`${on}px`),we.setProperty("--radix-popper-available-height",`${sn}px`),we.setProperty("--radix-popper-anchor-width",`${an}px`),we.setProperty("--radix-popper-anchor-height",`${cn}px`)}}),M&&jr({element:M,padding:g}),eo({arrowWidth:j,arrowHeight:O}),w&&pr({strategy:"referenceHidden",...be})]}),[Qe,Qt]=zt(Zt),$e=se(_);re(()=>{xe&&($e==null||$e())},[xe,$e]);const Jt=(i=ee.arrow)===null||i===void 0?void 0:i.x,en=(r=ee.arrow)===null||r===void 0?void 0:r.y,tn=((s=ee.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[nn,rn]=l.useState();return re(()=>{T&&rn(window.getComputedStyle(T).zIndex)},[T]),l.createElement("div",{ref:Kt.setFloating,"data-radix-popper-content-wrapper":"",style:{...Ze,transform:xe?Ze.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:nn,"--radix-popper-transform-origin":[(a=ee.transformOrigin)===null||a===void 0?void 0:a.x,(c=ee.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},l.createElement(Xr,{scope:f,placedSide:Qe,onArrowChange:S,arrowX:Jt,arrowY:en,shouldHideArrow:tn},l.createElement(J.div,R({"data-side":Qe,"data-align":Qt},P,{ref:C,style:{...P.style,animation:xe?void 0:"none",opacity:(u=ee.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),Kr="PopperArrow",Zr={top:"bottom",right:"left",bottom:"top",left:"right"},Qr=l.forwardRef(function(t,n){const{__scopePopper:o,...i}=t,r=Yr(Kr,o),s=Zr[r.placedSide];return l.createElement("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0}},l.createElement(Br,R({},i,{ref:n,style:{...i.style,display:"block"}})))});function Jr(e){return e!==null}const eo=e=>({name:"transformOrigin",options:e,fn(t){var n,o,i,r,s;const{placement:a,rects:c,middlewareData:u}=t,d=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[m,g]=zt(a),v={start:"0%",center:"50%",end:"100%"}[g],y=((o=(i=u.arrow)===null||i===void 0?void 0:i.x)!==null&&o!==void 0?o:0)+h/2,b=((r=(s=u.arrow)===null||s===void 0?void 0:s.y)!==null&&r!==void 0?r:0)+p/2;let $="",w="";return m==="bottom"?($=d?v:`${y}px`,w=`${-p}px`):m==="top"?($=d?v:`${y}px`,w=`${c.floating.height+p}px`):m==="right"?($=`${-p}px`,w=d?v:`${b}px`):m==="left"&&($=`${c.floating.width+p}px`,w=d?v:`${b}px`),{data:{x:$,y:w}}}});function zt(e){const[t,n="center"]=e.split("-");return[t,n]}const to=Vr,no=Gr,ro=qr,oo=Qr,io=l.forwardRef((e,t)=>{var n;const{container:o=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...i}=e;return o?Re.createPortal(l.createElement(J.div,R({},i,{ref:t})),o):null});function so(e,t){return l.useReducer((n,o)=>{const i=t[n][o];return i??n},e)}const Xe=e=>{const{present:t,children:n}=e,o=ao(t),i=typeof n=="function"?n({present:o.isPresent}):l.Children.only(n),r=ie(o.ref,i.ref);return typeof n=="function"||o.isPresent?l.cloneElement(i,{ref:r}):null};Xe.displayName="Presence";function ao(e){const[t,n]=l.useState(),o=l.useRef({}),i=l.useRef(e),r=l.useRef("none"),s=e?"mounted":"unmounted",[a,c]=so(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=Ee(o.current);r.current=a==="mounted"?u:"none"},[a]),re(()=>{const u=o.current,f=i.current;if(f!==e){const h=r.current,p=Ee(u);e?c("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&h!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),re(()=>{if(t){const u=d=>{const p=Ee(o.current).includes(d.animationName);d.target===t&&p&&Re.flushSync(()=>c("ANIMATION_END"))},f=d=>{d.target===t&&(r.current=Ee(o.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:l.useCallback(u=>{u&&(o.current=getComputedStyle(u)),n(u)},[])}}function Ee(e){return(e==null?void 0:e.animationName)||"none"}function co({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,i]=lo({defaultProp:t,onChange:n}),r=e!==void 0,s=r?e:o,a=se(n),c=l.useCallback(u=>{if(r){const d=typeof u=="function"?u(e):u;d!==e&&a(d)}else i(u)},[r,e,i,a]);return[s,c]}function lo({defaultProp:e,onChange:t}){const n=l.useState(e),[o]=n,i=l.useRef(o),r=se(t);return l.useEffect(()=>{i.current!==o&&(r(o),i.current=o)},[o,i,r]),n}const uo=l.forwardRef((e,t)=>l.createElement(J.span,R({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),fo=uo,[Ne,qo]=Et("Tooltip",[Ft]),Le=Ft(),po="TooltipProvider",ho=700,He="tooltip.open",[mo,Ye]=Ne(po),go=e=>{const{__scopeTooltip:t,delayDuration:n=ho,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:r}=e,[s,a]=l.useState(!0),c=l.useRef(!1),u=l.useRef(0);return l.useEffect(()=>{const f=u.current;return()=>window.clearTimeout(f)},[]),l.createElement(mo,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(u.current),a(!1)},[]),onClose:l.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a(!0),o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(f=>{c.current=f},[]),disableHoverableContent:i},r)},qe="Tooltip",[vo,ye]=Ne(qe),yo=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:i=!1,onOpenChange:r,disableHoverableContent:s,delayDuration:a}=e,c=Ye(qe,e.__scopeTooltip),u=Le(t),[f,d]=l.useState(null),h=nr(),p=l.useRef(0),m=s??c.disableHoverableContent,g=a??c.delayDuration,v=l.useRef(!1),[y=!1,b]=co({prop:o,defaultProp:i,onChange:P=>{P?(c.onOpen(),document.dispatchEvent(new CustomEvent(He))):c.onClose(),r==null||r(P)}}),$=l.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),w=l.useCallback(()=>{window.clearTimeout(p.current),v.current=!1,b(!0)},[b]),x=l.useCallback(()=>{window.clearTimeout(p.current),b(!1)},[b]),_=l.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{v.current=!0,b(!0)},g)},[g,b]);return l.useEffect(()=>()=>window.clearTimeout(p.current),[]),l.createElement(to,u,l.createElement(vo,{scope:t,contentId:h,open:y,stateAttribute:$,trigger:f,onTriggerChange:d,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayed?_():w()},[c.isOpenDelayed,_,w]),onTriggerLeave:l.useCallback(()=>{m?x():window.clearTimeout(p.current)},[x,m]),onOpen:w,onClose:x,disableHoverableContent:m},n))},ht="TooltipTrigger",bo=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,i=ye(ht,n),r=Ye(ht,n),s=Le(n),a=l.useRef(null),c=ie(t,a,i.onTriggerChange),u=l.useRef(!1),f=l.useRef(!1),d=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),l.createElement(no,R({asChild:!0},s),l.createElement(J.button,R({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:c,onPointerMove:B(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!r.isPointerInTransitRef.current&&(i.onTriggerEnter(),f.current=!0)}),onPointerLeave:B(e.onPointerLeave,()=>{i.onTriggerLeave(),f.current=!1}),onPointerDown:B(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:B(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:B(e.onBlur,i.onClose),onClick:B(e.onClick,i.onClose)})))}),Wt="TooltipPortal",[xo,$o]=Ne(Wt,{forceMount:void 0}),wo=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:i}=e,r=ye(Wt,t);return l.createElement(xo,{scope:t,forceMount:n},l.createElement(Xe,{present:n||r.open},l.createElement(io,{asChild:!0,container:i},o)))},ge="TooltipContent",_o=l.forwardRef((e,t)=>{const n=$o(ge,e.__scopeTooltip),{forceMount:o=n.forceMount,side:i="top",...r}=e,s=ye(ge,e.__scopeTooltip);return l.createElement(Xe,{present:o||s.open},s.disableHoverableContent?l.createElement(Vt,R({side:i},r,{ref:t})):l.createElement(Eo,R({side:i},r,{ref:t})))}),Eo=l.forwardRef((e,t)=>{const n=ye(ge,e.__scopeTooltip),o=Ye(ge,e.__scopeTooltip),i=l.useRef(null),r=ie(t,i),[s,a]=l.useState(null),{trigger:c,onClose:u}=n,f=i.current,{onPointerInTransitChange:d}=o,h=l.useCallback(()=>{a(null),d(!1)},[d]),p=l.useCallback((m,g)=>{const v=m.currentTarget,y={x:m.clientX,y:m.clientY},b=To(y,v.getBoundingClientRect()),$=Ro(y,b),w=So(g.getBoundingClientRect()),x=No([...$,...w]);a(x),d(!0)},[d]);return l.useEffect(()=>()=>h(),[h]),l.useEffect(()=>{if(c&&f){const m=v=>p(v,f),g=v=>p(v,c);return c.addEventListener("pointerleave",m),f.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",m),f.removeEventListener("pointerleave",g)}}},[c,f,p,h]),l.useEffect(()=>{if(s){const m=g=>{const v=g.target,y={x:g.clientX,y:g.clientY},b=(c==null?void 0:c.contains(v))||(f==null?void 0:f.contains(v)),$=!Do(y,s);b?h():$&&(h(),u())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,f,s,u,h]),l.createElement(Vt,R({},e,{ref:r}))}),[Oo,Po]=Ne(qe,{isInside:!1}),Vt=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:r,onPointerDownOutside:s,...a}=e,c=ye(ge,n),u=Le(n),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(He,f),()=>document.removeEventListener(He,f)),[f]),l.useEffect(()=>{if(c.trigger){const d=h=>{const p=h.target;p!=null&&p.contains(c.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,f]),l.createElement(Zn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:f},l.createElement(ro,R({"data-state":c.stateAttribute},u,a,{ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),l.createElement(Pt,null,o),l.createElement(Oo,{scope:n,isInside:!0},l.createElement(fo,{id:c.contentId,role:"tooltip"},i||o))))}),Ao="TooltipArrow",Co=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,i=Le(n);return Po(Ao,n).isInside?null:l.createElement(oo,R({},i,o,{ref:t}))});function To(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),r=Math.abs(t.left-e.x);switch(Math.min(n,o,i,r)){case r:return"left";case i:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Ro(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function So(e){const{top:t,right:n,bottom:o,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:o},{x:i,y:o}]}function Do(e,t){const{x:n,y:o}=e;let i=!1;for(let r=0,s=t.length-1;r<t.length;s=r++){const a=t[r].x,c=t[r].y,u=t[s].x,f=t[s].y;c>o!=f>o&&n<(u-a)*(o-c)/(f-c)+a&&(i=!i)}return i}function No(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),Lo(t)}function Lo(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const i=e[o];for(;t.length>=2;){const r=t[t.length-1],s=t[t.length-2];if((r.x-s.x)*(i.y-s.y)>=(r.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const i=e[o];for(;n.length>=2;){const r=n[n.length-1],s=n[n.length-2];if((r.x-s.x)*(i.y-s.y)>=(r.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const Mo=go,ko=yo,Io=bo,jo=wo,Fo=_o,Ho=Co;function Bo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ut={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o.call(this,a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,this&&this[a]||a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Gt);var Wo=Gt.exports;const Vo=zo(Wo),Uo="_slideDownAndFade_1dyp8_1",Go="_slideLeftAndFade_1dyp8_1",Xo="_slideUpAndFade_1dyp8_1",Yo="_slideRightAndFade_1dyp8_1",J={"purpur-tooltip":"_purpur-tooltip_1dyp8_1","purpur-tooltip__content":"_purpur-tooltip__content_1dyp8_4","purpur-tooltip__content--primary":"_purpur-tooltip__content--primary_1dyp8_14","purpur-tooltip__content--primary-negative":"_purpur-tooltip__content--primary-negative_1dyp8_17",slideDownAndFade:Uo,slideLeftAndFade:Go,slideUpAndFade:Xo,slideRightAndFade:Yo,"purpur-tooltip__arrow--primary":"_purpur-tooltip__arrow--primary_1dyp8_32","purpur-tooltip__arrow--primary-negative":"_purpur-tooltip__arrow--primary-negative_1dyp8_35","purpur-tooltip__paragraph--primary":"_purpur-tooltip__paragraph--primary_1dyp8_38","purpur-tooltip__paragraph--primary-negative":"_purpur-tooltip__paragraph--primary-negative_1dyp8_41"},Pe=Vo.bind(J),Xt={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},Yt={START:"start",CENTER:"center",END:"end"},Y="purpur-tooltip",qt=l.forwardRef(({["data-testid"]:e,buttonSize:t=fn.MD,children:n,className:o,contentClassName:i,negative:r=!1,position:s=Xt.TOP,align:a=Yt.CENTER,triggerAriaLabel:c="",triggerElement:u,...f},d)=>{const[h,p]=l.useState(!1),m=Pe([o,Y,`${Y}--primary${r?"-negative":""}`]),g=N.jsx(bt,{ref:d,"aria-label":c,variant:_n.TERTIARY_PURPLE,negative:r,iconOnly:!0,"data-testid":`${e}-trigger-button`,size:t,children:N.jsx($t,{size:"md"})});return N.jsx("div",{"data-testid":e,className:m,children:N.jsx(Io,{delayDuration:parseInt(Bn),children:N.jsxs(ko,{open:h,onOpenChange:p,...f,children:[N.jsx(jo,{asChild:!0,onClick:v=>{v.preventDefault(),p(!0)},children:l.Children.count(u)===0?g:u}),N.jsx(Fo,{children:N.jsxs(Ho,{side:s,align:a,className:Pe([i,J[`${Y}__content`],J[`${Y}__content--primary${r?"-negative":""}`]]),sideOffset:-5,"data-testid":`${e}-content`,children:[typeof n=="string"?N.jsx(Hn,{className:Pe([J[`${Y}__paragraph`],J[`${Y}__paragraph--primary${r?"-negative":""}`]]),variant:_t.PARAGRAPH100,"data-testid":`${e}-paragraph`,children:n}):n,N.jsx(Bo,{className:Pe([J[`${Y}__arrow`],J[`${Y}__arrow--primary${r?"-negative":""}`]])})]})})]})})})});qt.displayName="Tooltip";exports.TOOLTIP_ALIGN=Yt;exports.TOOLTIP_POSITION=Xt;exports.Tooltip=qt;
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o.call(this,a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,this&&this[a]||a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ut);var zo=Ut.exports;const Wo=Bo(zo),Vo="_slideDownAndFade_fkagk_1",Uo="_slideLeftAndFade_fkagk_1",Go="_slideUpAndFade_fkagk_1",Xo="_slideRightAndFade_fkagk_1",Yo={"purpur-tooltip":"_purpur-tooltip_fkagk_1","purpur-tooltip__content":"_purpur-tooltip__content_fkagk_4","purpur-tooltip__content--primary":"_purpur-tooltip__content--primary_fkagk_14","purpur-tooltip__content--primary-negative":"_purpur-tooltip__content--primary-negative_fkagk_17",slideDownAndFade:Vo,slideLeftAndFade:Uo,slideUpAndFade:Go,slideRightAndFade:Xo,"purpur-tooltip__arrow--primary":"_purpur-tooltip__arrow--primary_fkagk_32","purpur-tooltip__arrow--primary-negative":"_purpur-tooltip__arrow--primary-negative_fkagk_35"},Me=Wo.bind(Yo),Gt={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},Xt={START:"start",CENTER:"center",END:"end"},te="purpur-tooltip",Yt=l.forwardRef(({["data-testid"]:e,buttonSize:t=un.MD,children:n,className:o,contentClassName:i,negative:r=!1,position:s=Gt.TOP,align:a=Xt.CENTER,triggerAriaLabel:c="",triggerElement:u,...f},d)=>{const[h,p]=l.useState(!1),m=Me([o,te,`${te}--primary${r?"-negative":""}`]),g=N.jsx(yt,{ref:d,"aria-label":c,variant:wn.TERTIARY_PURPLE,negative:r,iconOnly:!0,"data-testid":`${e}-trigger-button`,size:t,children:N.jsx(xt,{size:"md"})});return N.jsx("div",{"data-testid":e,className:m,children:N.jsx(Mo,{delayDuration:parseInt(Hn),children:N.jsxs(ko,{open:h,onOpenChange:p,...f,children:[N.jsx(Io,{asChild:!0,onClick:v=>{v.preventDefault(),p(!0)},children:l.Children.count(u)===0?g:u}),N.jsx(jo,{children:N.jsxs(Fo,{side:s,align:a,className:Me([i,`${te}__content`,`${te}__content--primary${r?"-negative":""}`]),sideOffset:-5,"data-testid":`${e}-content`,children:[typeof n=="string"?N.jsx(Fn,{variant:wt.PARAGRAPH100,negative:!r,"data-testid":`${e}-paragraph`,children:n}):n,N.jsx(Ho,{className:Me([`${te}__arrow`,`${te}__arrow--primary${r?"-negative":""}`])})]})})]})})})});Yt.displayName="Tooltip";exports.TOOLTIP_ALIGN=Xt;exports.TOOLTIP_POSITION=Gt;exports.Tooltip=Yt;
//# sourceMappingURL=tooltip.cjs.js.map
{
"name": "@purpurds/tooltip",
"version": "5.8.0",
"version": "5.8.1",
"license": "AGPL-3.0-only",

@@ -19,7 +19,7 @@ "main": "./dist/tooltip.cjs.js",

"classnames": "~2.5.0",
"@purpurds/button": "5.8.0",
"@purpurds/action": "5.8.0",
"@purpurds/icon": "5.8.0",
"@purpurds/paragraph": "5.8.0",
"@purpurds/tokens": "5.8.0"
"@purpurds/button": "5.8.1",
"@purpurds/action": "5.8.1",
"@purpurds/icon": "5.8.1",
"@purpurds/paragraph": "5.8.1",
"@purpurds/tokens": "5.8.1"
},

@@ -26,0 +26,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc