@optiaxiom/web-components 0.1.0-next.1 → 0.1.0-next.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +5 -4
  2. package/dist/AnimatePresence-DvfDfq0x.js +1 -0
  3. package/dist/AnimatePresence.d.ts +14 -0
  4. package/dist/AnimatePresence.js +1 -0
  5. package/dist/Avatar.d.ts +14 -0
  6. package/dist/Avatar.js +1 -0
  7. package/dist/Box-9LrXBb0B.js +1 -0
  8. package/dist/Box.js +1 -1
  9. package/dist/Button.js +1 -1
  10. package/dist/ButtonGroup.css.ts.vanilla-4BGjgIuZ-BjHZZZUs.js +1 -0
  11. package/dist/ButtonGroup.d.ts +14 -0
  12. package/dist/ButtonGroup.js +1 -0
  13. package/dist/Code-CeUUaCb4.js +1 -0
  14. package/dist/Code.d.ts +14 -0
  15. package/dist/Code.js +1 -0
  16. package/dist/Field.d.ts +14 -0
  17. package/dist/Field.js +10 -0
  18. package/dist/Flex-CmzBxGW1.js +1 -0
  19. package/dist/Flex.d.ts +14 -0
  20. package/dist/Flex.js +1 -0
  21. package/dist/Grid.d.ts +14 -0
  22. package/dist/Grid.js +1 -0
  23. package/dist/Heading.d.ts +14 -0
  24. package/dist/Heading.js +1 -0
  25. package/dist/Input.js +1 -1
  26. package/dist/Kbd.d.ts +14 -0
  27. package/dist/Kbd.js +1 -0
  28. package/dist/Paper.js +1 -1
  29. package/dist/PresenceContext-BIyw24mj.js +1 -0
  30. package/dist/Progress.d.ts +14 -0
  31. package/dist/Progress.js +6 -0
  32. package/dist/Separator.d.ts +14 -0
  33. package/dist/Separator.js +5 -0
  34. package/dist/Skeleton.d.ts +14 -0
  35. package/dist/Skeleton.js +1 -0
  36. package/dist/Text-BIAeKp5v.js +1 -0
  37. package/dist/Text.d.ts +14 -0
  38. package/dist/Text.js +1 -0
  39. package/dist/Tooltip.js +1 -1
  40. package/dist/Transition-BD7yTsL2.js +1 -0
  41. package/dist/Transition.d.ts +14 -0
  42. package/dist/Transition.js +1 -0
  43. package/dist/index-D-Y5pVgW.js +1 -0
  44. package/dist/index-DLtacV-Q.js +1 -0
  45. package/dist/index-DoeKEfO9.js +1 -0
  46. package/dist/index.js +1 -1
  47. package/dist/register-C6qZMQlw.js +1 -0
  48. package/package.json +18 -3
  49. package/dist/register-CYOoDCCj.js +0 -1
@@ -0,0 +1,14 @@
1
+ import { ButtonGroup as ButtonGroup$1 } from '@optiaxiom/react';
2
+ import { C as ComponentAttributes } from './ComponentAttributes-D-k8G2HF.js';
3
+ import 'react';
4
+
5
+ declare const ButtonGroup = "ax-button-group";
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ [ButtonGroup]: ComponentAttributes<typeof ButtonGroup$1>;
10
+ }
11
+ }
12
+ }
13
+
14
+ export { ButtonGroup };
@@ -0,0 +1 @@
1
+ import{k as m,u as c,r as s}from"./register-C6qZMQlw.js";import{t as l}from"./Flex-CmzBxGW1.js";import{y as u}from"./Box-9LrXBb0B.js";import"./ButtonGroup.css.ts.vanilla-4BGjgIuZ-BjHZZZUs.js";var d=u({base:"_1sewcgl0"});const r=m(({children:i,className:e,gap:o="0",orientation:t="horizontal",...n},p)=>c(l,{"data-orientation":o==="0"?t:void 0,flexDirection:t==="vertical"?"column":"row",gap:o,ref:p,...d({},e),...n,children:i}));r.displayName="@optiaxiom/react/ButtonGroup";const a="ax-button-group";s(a,r);export{a as ButtonGroup};
@@ -0,0 +1 @@
1
+ import{i as n,k as l,u as e}from"./register-C6qZMQlw.js";import{y as m,o as d,a as p}from"./Box-9LrXBb0B.js";n("@layer optiaxiom._1kfj4ga1{.go7emt0{-webkit-font-smoothing:auto;font-size:.875em}}");var f=m({base:"go7emt0"});const o=l(({asChild:a,children:i,className:t,...r},c)=>{const s=a?p:"code";return e(d,{asChild:!0,bg:"bg.neutral",display:"inline-block",px:"4",rounded:"sm",...f({},t),...r,children:e(s,{ref:c,children:i})})});o.displayName="@optiaxiom/react/Code";export{o as r};
package/dist/Code.d.ts ADDED
@@ -0,0 +1,14 @@
1
+ import { Code as Code$1 } from '@optiaxiom/react';
2
+ import { C as ComponentAttributes } from './ComponentAttributes-D-k8G2HF.js';
3
+ import 'react';
4
+
5
+ declare const Code = "ax-code";
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ [Code]: ComponentAttributes<typeof Code$1>;
10
+ }
11
+ }
12
+ }
13
+
14
+ export { Code };
package/dist/Code.js ADDED
@@ -0,0 +1 @@
1
+ import{r as o}from"./register-C6qZMQlw.js";import{r as t}from"./Code-CeUUaCb4.js";import"./Box-9LrXBb0B.js";const r="ax-code";o(r,t);export{r as Code};
@@ -0,0 +1,14 @@
1
+ import { Field as Field$1 } from '@optiaxiom/react';
2
+ import { C as ComponentAttributes } from './ComponentAttributes-D-k8G2HF.js';
3
+ import 'react';
4
+
5
+ declare const Field = "ax-field";
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ [Field]: ComponentAttributes<typeof Field$1>;
10
+ }
11
+ }
12
+ }
13
+
14
+ export { Field };
package/dist/Field.js ADDED
@@ -0,0 +1,10 @@
1
+ import{k as s,_ as x,A as g,a as u,p as D,$ as v,u as i,h as I,r as y}from"./register-C6qZMQlw.js";import{t as M}from"./Box-9LrXBb0B.js";import{$ as F}from"./index-DLtacV-Q.js";import{t as S}from"./Flex-CmzBxGW1.js";import{r as n}from"./Text-BIAeKp5v.js";const _=s((e,t)=>x(F.label,M({},e,{ref:t,onMouseDown:r=>{var o;(o=e.onMouseDown)===null||o===void 0||o.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault()}}))),q=_;/**
2
+ * @reach/utils v0.18.0
3
+ *
4
+ * Copyright (c) 2018-2022, React Training LLC
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE.md file in the root directory of this source tree.
8
+ *
9
+ * @license MIT
10
+ */function z(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var A=z()?g:u,d=!1,C=0;function m(){return++C}var p=v["useId".toString()];function E(e){if(p!==void 0){let a=p();return e??a}let t=e??(d?m():null),[r,o]=D(t);return A(()=>{r===null&&o(m())},[]),u(()=>{d===!1&&(d=!0)},[]),e??r??void 0}const $=s(({children:e,description:t,disabled:r,error:o,id:a,label:l,required:f,...b},w)=>{const c=E(a);return i(S,{flexDirection:"column",gap:"2",maxW:"sm",ref:w,...b,children:[l&&i(n,{asChild:!0,children:i(q,{htmlFor:c,children:[l,f&&i(n,{"aria-hidden":"true",as:"span",color:"fg.error",children:[" ","*"]})]})}),I(e,{disabled:r,error:!!o,id:c,required:f}),t&&i(n,{as:"p",color:"fg.default",fontSize:"sm",children:t}),o&&i(n,{as:"p",color:"fg.error",fontSize:"sm",children:o})]})});$.displayName="@optiaxiom/react/Field";const h="ax-field";y(h,$);export{h as Field};
@@ -0,0 +1 @@
1
+ import{k as m,u as l}from"./register-C6qZMQlw.js";import{b as r,o as u}from"./Box-9LrXBb0B.js";const f={column:"stretch","column-reverse":"stretch",row:"center","row-reverse":"center"},p={column:"center","column-reverse":"center",row:"start","row-reverse":"start"},o=m(({alignItems:n,flexDirection:e="column",gap:s="md",justifyContent:c,...a},i)=>l(u,{alignItems:n??r(e,t=>f[t]),display:"flex",flexDirection:e,gap:s,justifyContent:c??r(e,t=>p[t]),ref:i,...a}));o.displayName="@optiaxiom/react/Flex";export{o as t};
package/dist/Flex.d.ts ADDED
@@ -0,0 +1,14 @@
1
+ import { Flex as Flex$1 } from '@optiaxiom/react';
2
+ import { C as ComponentAttributes } from './ComponentAttributes-D-k8G2HF.js';
3
+ import 'react';
4
+
5
+ declare const Flex = "ax-flex";
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ [Flex]: ComponentAttributes<typeof Flex$1>;
10
+ }
11
+ }
12
+ }
13
+
14
+ export { Flex };
package/dist/Flex.js ADDED
@@ -0,0 +1 @@
1
+ import{r as o}from"./register-C6qZMQlw.js";import{t}from"./Flex-CmzBxGW1.js";import"./Box-9LrXBb0B.js";const r="ax-flex";o(r,t);export{r as Flex};
package/dist/Grid.d.ts ADDED
@@ -0,0 +1,14 @@
1
+ import { Grid as Grid$1 } from '@optiaxiom/react';
2
+ import { C as ComponentAttributes } from './ComponentAttributes-D-k8G2HF.js';
3
+ import 'react';
4
+
5
+ declare const Grid = "ax-grid";
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ [Grid]: ComponentAttributes<typeof Grid$1>;
10
+ }
11
+ }
12
+ }
13
+
14
+ export { Grid };
package/dist/Grid.js ADDED
@@ -0,0 +1 @@
1
+ import{k as t,u as d,r as m}from"./register-C6qZMQlw.js";import{o as p}from"./Box-9LrXBb0B.js";const r=t((o,a)=>d(p,{cols:"1",display:"grid",gap:"md",ref:a,...o}));r.displayName="@optiaxiom/react/Grid";const i="ax-grid";m(i,r);export{i as Grid};
@@ -0,0 +1,14 @@
1
+ import { Heading as Heading$1 } from '@optiaxiom/react';
2
+ import { C as ComponentAttributes } from './ComponentAttributes-D-k8G2HF.js';
3
+ import 'react';
4
+
5
+ declare const Heading = "ax-heading";
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ [Heading]: ComponentAttributes<typeof Heading$1>;
10
+ }
11
+ }
12
+ }
13
+
14
+ export { Heading };
@@ -0,0 +1 @@
1
+ import{k as x,u as e,r as m}from"./register-C6qZMQlw.js";import{a as p}from"./Box-9LrXBb0B.js";import{r as f}from"./Text-BIAeKp5v.js";const h={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},g={h1:"5xl",h2:"4xl",h3:"3xl",h4:"2xl",h5:"xl",h6:"md"},i=x(({asChild:t,children:c,level:r="1",variant:o,...l},n)=>{const d=t?p:h[r],s=g[o??h[r]];return e(f,{asChild:!0,fontSize:s,fontWeight:"700",ref:n,...l,children:e(d,{children:c})})});i.displayName="@optiaxiom/react/Heading";const a="ax-heading";m(a,i);export{a as Heading};
package/dist/Input.js CHANGED
@@ -1 +1 @@
1
- import{k as u,u as r,b as f,o as s,i as h,y as p,p as y,r as j}from"./register-CYOoDCCj.js";const _={column:"stretch","column-reverse":"stretch",row:"center","row-reverse":"center"},z={column:"center","column-reverse":"center",row:"start","row-reverse":"start"},d=u(({alignItems:n,flexDirection:e="column",gap:a="md",justifyContent:l,...o},i)=>r(s,{alignItems:n??f(e,t=>_[t]),display:"flex",flexDirection:e,gap:a,justifyContent:l??f(e,t=>z[t]),ref:i,...o}));d.displayName="@optiaxiom/react/Flex",h("@layer optiaxiom._1kfj4ga1{._5j10wf0:focus-within:is([data-invalid=true]){outline-color:var(--ax-colors-red-200);outline-offset:1px;outline-style:solid;outline-width:2px}._5j10wf0:focus-within:not([data-invalid=true]){outline-color:var(--ax-colors-brand-200);outline-offset:1px;outline-style:solid;outline-width:2px}._5j10wf0:hover{border-color:var(--ax-colors-border-brand)}._5j10wf0[data-disabled=true]{background-color:var(--ax-colors-bg-disabled);border-color:var(--ax-colors-border-secondary);pointer-events:none}._5j10wf0[data-invalid=true]{border-color:var(--ax-colors-border-error)}._5j10wf1:focus-visible{outline-width:0}}");var S=p({base:[{bg:"transparent",w:"full"},"_5j10wf1"],variants:{variant:{default:{textAlign:"start"},number:{textAlign:"end"}}}}),I=p({base:[{alignItems:"center",border:"1",borderColor:"border.default",color:"fg.default",display:"flex",flexDirection:"row",rounded:"sm"},"_5j10wf0"],variants:{size:{sm:{fontSize:"sm",h:"24",p:"8"},md:{fontSize:"md",h:"32",p:"8"},lg:{fontSize:"lg",h:"40",px:"8",py:"4"}},variant:{default:{},number:{}}}});const m=u(({className:n,disabled:e,error:a,id:l,leftSection:o,rightSection:i,size:t="md",variant:c="default",...b},x)=>{const{restProps:w,sprinkleProps:g}=y(b);return r(s,{"aria-disabled":e,"aria-invalid":a,"data-disabled":e,"data-invalid":a,...I({size:t,variant:c},n),...g,children:[o&&r(d,{gap:"0",mr:"8",children:o}),r(s,{asChild:!0,...S({variant:c}),children:r("input",{id:l,readOnly:e,ref:x,...w})}),i&&r(d,{gap:"0",ml:"8",children:i})]})});m.displayName="@optiaxiom/react/Input";const v="ax-input";j(v,m);export{v as Input};
1
+ import{i as w,k as h,u as r,r as g}from"./register-C6qZMQlw.js";import{y as l,p as j,o as d}from"./Box-9LrXBb0B.js";import{t as n}from"./Flex-CmzBxGW1.js";w("@layer optiaxiom._1kfj4ga1{._5j10wf0{border-color:var(--ax-colors-border-default)}._5j10wf0:focus-within:is([data-invalid=true]){outline-color:var(--ax-colors-red-200);outline-offset:1px;outline-style:solid;outline-width:2px}._5j10wf0:focus-within:not([data-invalid=true]){outline-color:var(--ax-colors-brand-200);outline-offset:1px;outline-style:solid;outline-width:2px}._5j10wf0:hover{border-color:var(--ax-colors-border-brand)}._5j10wf0[data-disabled=true]{background-color:var(--ax-colors-bg-disabled);border-color:var(--ax-colors-border-secondary);pointer-events:none}._5j10wf0[data-invalid=true]{border-color:var(--ax-colors-border-error)}._5j10wf1:focus-visible{outline-width:0}}");var y=l({base:[{bg:"transparent",w:"full"},"_5j10wf1"],variants:{variant:{default:{textAlign:"start"},number:{textAlign:"end"}}}}),_=l({base:[{alignItems:"center",border:"1",color:"fg.default",display:"flex",flexDirection:"row",rounded:"sm"},"_5j10wf0"],variants:{size:{sm:{fontSize:"sm",h:"24",p:"8"},md:{fontSize:"md",h:"32",p:"8"},lg:{fontSize:"lg",h:"40",px:"8",py:"4"}},variant:{default:{},number:{}}}});const s=h(({className:f,disabled:a,endDecorator:o,error:e,id:u,size:p="md",startDecorator:t,variant:i="default",...b},v)=>{const{restProps:x,sprinkleProps:m}=j(b);return r(d,{"aria-disabled":a,"aria-invalid":e,"data-disabled":a,"data-invalid":e,..._({size:p,variant:i},f),...m,children:[t&&r(n,{gap:"0",mr:"8",children:t}),r(d,{asChild:!0,...y({variant:i}),children:r("input",{id:u,readOnly:a,ref:v,...x})}),o&&r(n,{gap:"0",ml:"8",children:o})]})});s.displayName="@optiaxiom/react/Input";const c="ax-input";g(c,s);export{c as Input};
package/dist/Kbd.d.ts ADDED
@@ -0,0 +1,14 @@
1
+ import { Kbd as Kbd$1 } from '@optiaxiom/react';
2
+ import { C as ComponentAttributes } from './ComponentAttributes-D-k8G2HF.js';
3
+ import 'react';
4
+
5
+ declare const Kbd = "ax-kbd";
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ [Kbd]: ComponentAttributes<typeof Kbd$1>;
10
+ }
11
+ }
12
+ }
13
+
14
+ export { Kbd };
package/dist/Kbd.js ADDED
@@ -0,0 +1 @@
1
+ import{i as c,k as d,u as r,r as m}from"./register-C6qZMQlw.js";import{r as u}from"./Code-CeUUaCb4.js";import{y as i}from"./Box-9LrXBb0B.js";c("@layer optiaxiom._1kfj4ga1{.q5e32p0{border-bottom-width:2px}.q5e32p1{font-size:1.2em;line-height:1;text-decoration:none}}");var h=i({base:"q5e32p0"}),b=i({base:"q5e32p1"});const f={command:"\u2318",ctrl:"\u2303",down:"\u2193",enter:"\u21B5",escape:"\u238B",help:"?",left:"\u2190",option:"\u2325",right:"\u2192",shift:"\u21E7",space:"\u2423",tab:"\u21E5",up:"\u2191"},a=d(({children:n,className:p,keys:e,...s},l)=>r(u,{alignItems:"center",asChild:!0,border:"1",display:"inline-flex",flexDirection:"row",fontWeight:"600",gap:"4",whiteSpace:"nowrap",...h({},p),...s,children:r("kbd",{ref:l,children:[e&&(Array.isArray(e)?e:[e]).map(t=>r("abbr",{title:t,...b(),children:f[t]},t)),n]})}));a.displayName="@optiaxiom/react/Kbd";const o="ax-kbd";m(o,a);export{o as Kbd};
package/dist/Paper.js CHANGED
@@ -1 +1 @@
1
- import{k as p,u as t,o as i,r as m}from"./register-CYOoDCCj.js";const r=p(({elevation:a="sm",...o},s)=>t(i,{bg:"surface",ref:s,rounded:"sm",shadow:a,...o}));r.displayName="@optiaxiom/react/Paper";const e="ax-paper";m(e,r);export{e as Paper};
1
+ import{k as s,u as t,r as m}from"./register-C6qZMQlw.js";import{o as i}from"./Box-9LrXBb0B.js";const r=s(({elevation:o="sm",...a},p)=>t(i,{bg:"surface",ref:p,rounded:"sm",shadow:o,...a}));r.displayName="@optiaxiom/react/Paper";const e="ax-paper";m(e,r);export{e as Paper};
@@ -0,0 +1 @@
1
+ import{G as r}from"./register-C6qZMQlw.js";const t=r({isPresent:!0,onExitComplete:e=>{},register:e=>{}});export{t as r};
@@ -0,0 +1,14 @@
1
+ import { Progress as Progress$1 } from '@optiaxiom/react';
2
+ import { C as ComponentAttributes } from './ComponentAttributes-D-k8G2HF.js';
3
+ import 'react';
4
+
5
+ declare const Progress = "ax-progress";
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ [Progress]: ComponentAttributes<typeof Progress$1>;
10
+ }
11
+ }
12
+ }
13
+
14
+ export { Progress };
@@ -0,0 +1,6 @@
1
+ import{k as $,_ as c,u,r as I}from"./register-C6qZMQlw.js";import{t as p,o as f}from"./Box-9LrXBb0B.js";import{$ as y}from"./index-D-Y5pVgW.js";import{$ as m}from"./index-DLtacV-Q.js";const x="Progress",d=100,[M,X]=y(x),[A,C]=M(x),g=$((a,e)=>{const{__scopeProgress:t,value:r,max:n,getValueLabel:s=w,...V}=a,l=v(n)?n:d,o=P(r,l)?r:null,E=i(o)?s(o,l):void 0;return c(A,{scope:t,value:o,max:l},c(m.div,p({"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":i(o)?o:void 0,"aria-valuetext":E,role:"progressbar","data-state":b(o,l),"data-value":o??void 0,"data-max":l},V,{ref:e})))});g.propTypes={max(a,e,t){const r=a[e],n=String(r);return r&&!v(r)?new Error(D(n,t)):null},value(a,e,t){const r=a[e],n=String(r),s=v(a.max)?a.max:d;return r!=null&&!P(r,s)?new Error(T(n,t)):null}};const L="ProgressIndicator",S=$((a,e)=>{var t;const{__scopeProgress:r,...n}=a,s=C(L,r);return c(m.div,p({"data-state":b(s.value,s.max),"data-value":(t=s.value)!==null&&t!==void 0?t:void 0,"data-max":s.max},n,{ref:e}))});function w(a,e){return`${Math.round(a/e*100)}%`}function b(a,e){return a==null?"indeterminate":a===e?"complete":"loading"}function i(a){return typeof a=="number"}function v(a){return i(a)&&!isNaN(a)&&a>0}function P(a,e){return i(a)&&!isNaN(a)&&a<=e&&a>=0}function D(a,e){return`Invalid prop \`max\` of value \`${a}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${d}\`.`}function T(a,e){return`Invalid prop \`value\` of value \`${a}\` supplied to \`${e}\`. The \`value\` prop must be:
2
+ - a positive number
3
+ - less than the value passed to \`max\` (or ${d} if no \`max\` prop is set)
4
+ - \`null\` if the progress is indeterminate.
5
+
6
+ Defaulting to \`null\`.`}const O=g,R=S,h=$((a,e)=>{const t=(a.value??0)/(a.max??_)*100,r=typeof a.value<"u"&&a.value!==null&&a.value>=0&&a.value<=(a.max??_);return u(f,{asChild:!0,bg:"border.disabled",h:"6",rounded:"lg",...a,children:u(O,{ref:e,children:r&&u(f,{asChild:!0,bg:"bg.brand.solid",h:"full",rounded:"lg",style:{width:`${t}%`},transition:"all",children:u(R,{})})})})}),_=100;h.displayName="@optiaxiom/react/Progress";const N="ax-progress";I(N,h);export{N as Progress};
@@ -0,0 +1,14 @@
1
+ import { Separator as Separator$1 } from '@optiaxiom/react';
2
+ import { C as ComponentAttributes } from './ComponentAttributes-D-k8G2HF.js';
3
+ import 'react';
4
+
5
+ declare const Separator = "ax-separator";
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ [Separator]: ComponentAttributes<typeof Separator$1>;
10
+ }
11
+ }
12
+ }
13
+
14
+ export { Separator };
@@ -0,0 +1,5 @@
1
+ import{k as s,_ as u,i as m,u as l,r as $}from"./register-C6qZMQlw.js";import{t as v,r as g,y as k,c as x,o as w}from"./Box-9LrXBb0B.js";import{$ as b}from"./index-DLtacV-Q.js";const n="horizontal",y=["horizontal","vertical"],d=s((t,i)=>{const{decorative:o,orientation:e=n,...a}=t,r=c(e)?e:n,p=o?{role:"none"}:{"aria-orientation":r==="vertical"?r:void 0,role:"separator"};return u(b.div,v({"data-orientation":r},p,a,{ref:i}))});d.propTypes={orientation(t,i,o){const e=t[i],a=String(e);return e&&!c(e)?new Error(O(a,o)):null}};function O(t,i){return`Invalid prop \`orientation\` of value \`${t}\` supplied to \`${i}\`, expected one of:
2
+ - horizontal
3
+ - vertical
4
+
5
+ Defaulting to \`${n}\`.`}function c(t){return y.includes(t)}const A=d;m(".tlk8153{height:1px;width:auto}.tlk8157{align-self:stretch;height:auto;width:1px}@media screen and (min-width:37.5rem){.tlk8150{height:1px;width:auto}.tlk8154{align-self:stretch;height:auto;width:1px}}@media screen and (min-width:56.25rem){.tlk8151{height:1px;width:auto}.tlk8155{align-self:stretch;height:auto;width:1px}}@media screen and (min-width:75rem){.tlk8152{height:1px;width:auto}.tlk8156{align-self:stretch;height:auto;width:1px}}");var N=k({base:{bg:"border.default"}}),I=g(function(){var t={conditions:{defaultCondition:"base",conditionNames:["sm","md","lg","base"],responsiveArray:["base","sm","md"]},styles:{orientation:{values:{horizontal:{conditions:{sm:"tlk8150",md:"tlk8151",lg:"tlk8152",base:"tlk8153"},defaultClass:"tlk8153"},vertical:{conditions:{sm:"tlk8154",md:"tlk8155",lg:"tlk8156",base:"tlk8157"},defaultClass:"tlk8157"}},responsiveArray:void 0}}};return t.styles.orientation.responsiveArray=t.conditions.responsiveArray,t}());const f=s(({className:t,orientation:i="horizontal",...o},e)=>l(w,{asChild:!0,ref:e,...N({},x(I({orientation:i}),t)),...o,children:l(A,{})}));f.displayName="@optiaxiom/react/Separator";const h="ax-separator";$(h,f);export{h as Separator};
@@ -0,0 +1,14 @@
1
+ import { Skeleton as Skeleton$1 } from '@optiaxiom/react';
2
+ import { C as ComponentAttributes } from './ComponentAttributes-D-k8G2HF.js';
3
+ import 'react';
4
+
5
+ declare const Skeleton = "ax-skeleton";
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ [Skeleton]: ComponentAttributes<typeof Skeleton$1>;
10
+ }
11
+ }
12
+ }
13
+
14
+ export { Skeleton };
@@ -0,0 +1 @@
1
+ import{i as d,k as p,u as l,r as f}from"./register-C6qZMQlw.js";import{y as u,o as y}from"./Box-9LrXBb0B.js";d('@layer optiaxiom._1kfj4ga1{._15dwmwy0:empty:before{content:"\\00a0"}}');var k=u({base:"_15dwmwy0"});const r=p(({children:i,circle:a,className:n,h:o,rounded:e,w:s,...c},m)=>l(y,{animation:"pulse",asChild:!0,bg:"bg.neutral",...k({},n),color:"surface",display:"block",h:o,ref:m,rounded:a||e==="full"?"full":e??"sm",w:s??(a||e==="full"?o:void 0),...c,children:i??l("span",{})}));r.displayName="@optiaxiom/react/Skeleton";const t="ax-skeleton";f(t,r);export{t as Skeleton};
@@ -0,0 +1 @@
1
+ import{i as p,k as c,u as i}from"./register-C6qZMQlw.js";import{y as m,o as s,a as _}from"./Box-9LrXBb0B.js";p("@layer optiaxiom._1kfj4ga1{._13y7bdy0{text-overflow:ellipsis}._13y7bdy1{-webkit-box-orient:vertical;display:-webkit-box}._13y7bdy2{-webkit-line-clamp:1}._13y7bdy3{-webkit-line-clamp:2}._13y7bdy4{-webkit-line-clamp:3}._13y7bdy5{-webkit-line-clamp:4}}");var v=m(function(){var a={variants:{lineClamp:{1:[{overflow:"hidden"},"_13y7bdy0","_13y7bdy1","_13y7bdy2"],2:[void 0,"_13y7bdy0","_13y7bdy1","_13y7bdy3"],3:[void 0,"_13y7bdy0","_13y7bdy1","_13y7bdy4"],4:[void 0,"_13y7bdy0","_13y7bdy1","_13y7bdy5"]},truncate:{true:[void 0,"_13y7bdy0",{whiteSpace:"nowrap"}]}}};return a.variants.lineClamp[2][0]=a.variants.lineClamp[1][0],a.variants.lineClamp[3][0]=a.variants.lineClamp[1][0],a.variants.lineClamp[4][0]=a.variants.lineClamp[1][0],a.variants.truncate.true[0]=a.variants.lineClamp[1][0],a}());const e=c(({as:a="p",asChild:t,children:l,className:y,lineClamp:n,truncate:r,...d},b)=>{const o=t?_:a;return i(s,{asChild:!0,fontSize:"md",ref:b,...v({lineClamp:n,truncate:r},y),...d,children:i(o,{children:l})})});e.displayName="@optiaxiom/react/Text";export{e as r};
package/dist/Text.d.ts ADDED
@@ -0,0 +1,14 @@
1
+ import { Text as Text$1 } from '@optiaxiom/react';
2
+ import { C as ComponentAttributes } from './ComponentAttributes-D-k8G2HF.js';
3
+ import 'react';
4
+
5
+ declare const Text = "ax-text";
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ [Text]: ComponentAttributes<typeof Text$1>;
10
+ }
11
+ }
12
+ }
13
+
14
+ export { Text };
package/dist/Text.js ADDED
@@ -0,0 +1 @@
1
+ import{r as t}from"./register-C6qZMQlw.js";import{r as o}from"./Text-BIAeKp5v.js";import"./Box-9LrXBb0B.js";const r="ax-text";t(r,o);export{r as Text};
package/dist/Tooltip.js CHANGED
@@ -1 +1 @@
1
- import{G as Ce,q as K,_ as C,P as Me,F as A,c as E,A as nt,k as F,t as H,a as ke,m as Ie,i as ot,y as rt,u as W,o as it,d as S,e as se,f as rn,x as M,R as sn,N as cn,h as an,g as ln,$ as fn,r as dn}from"./register-CYOoDCCj.js";function st(e,t=[]){let n=[];function o(i,s){const a=Ce(s),c=n.length;n=[...n,s];function l(d){const{scope:p,children:u,...h}=d,g=p?.[e][c]||a,m=K(()=>h,Object.values(h));return C(g.Provider,{value:m},u)}function f(d,p){const u=p?.[e][c]||a,h=Me(u);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,f]}const r=()=>{const i=n.map(s=>Ce(s));return function(a){const c=a?.[e]||i;return K(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[o,un(r,...t)]}function un(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=o.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return K(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function ce(e){const t=A(e);return E(()=>{t.current=e}),K(()=>(...n)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...n)},[])}const ae=Boolean(globalThis?.document)?nt:()=>{},pn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],oe=pn.reduce((e,t)=>{const n=F((o,r)=>{const{asChild:i,...s}=o,a=i?ke:t;return E(()=>{window[Symbol.for("radix-ui")]=!0},[]),C(a,H({},s,{ref:r}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function hn(e,t){e&&Ie(()=>e.dispatchEvent(t))}ot("@layer optiaxiom._1kfj4ga1{._13y7bdy0{text-overflow:ellipsis}._13y7bdy1{-webkit-box-orient:vertical;display:-webkit-box}._13y7bdy2{-webkit-line-clamp:1}._13y7bdy3{-webkit-line-clamp:2}._13y7bdy4{-webkit-line-clamp:3}._13y7bdy5{-webkit-line-clamp:4}}");var mn=rt(function(){var e={variants:{lineClamp:{1:[{overflow:"hidden"},"_13y7bdy0","_13y7bdy1","_13y7bdy2"],2:[void 0,"_13y7bdy0","_13y7bdy1","_13y7bdy3"],3:[void 0,"_13y7bdy0","_13y7bdy1","_13y7bdy4"],4:[void 0,"_13y7bdy0","_13y7bdy1","_13y7bdy5"]},truncate:{true:[void 0,"_13y7bdy0",{whiteSpace:"nowrap"}]}}};return e.variants.lineClamp[2][0]=e.variants.lineClamp[1][0],e.variants.lineClamp[3][0]=e.variants.lineClamp[1][0],e.variants.lineClamp[4][0]=e.variants.lineClamp[1][0],e.variants.truncate.true[0]=e.variants.lineClamp[1][0],e}());const ct=F(({as:e="p",asChild:t,children:n,className:o,lineClamp:r,truncate:i,...s},a)=>{const c=t?ke:e;return W(it,{asChild:!0,fontSize:"md",ref:a,...mn({lineClamp:r,truncate:i},o),...s,children:W(c,{children:n})})});ct.displayName="@optiaxiom/react/Text";function q(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function gn(e,t=globalThis?.document){const n=ce(e);E(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)},[n,t])}const Fe="dismissableLayer.update",vn="dismissableLayer.pointerDownOutside",yn="dismissableLayer.focusOutside";let at;const wn=Ce({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$n=F((e,t)=>{var n;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,f=Me(wn),[d,p]=S(null),u=(n=d?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,h]=S({}),g=se(t,b=>p(b)),m=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(v),w=d?m.indexOf(d):-1,$=f.layersWithOutsidePointerEventsDisabled.size>0,x=w>=y,P=xn(b=>{const L=b.target,k=[...f.branches].some(N=>N.contains(L));!x||k||(i?.(b),a?.(b),b.defaultPrevented||c?.())},u),O=bn(b=>{const L=b.target;[...f.branches].some(N=>N.contains(L))||(s?.(b),a?.(b),b.defaultPrevented||c?.())},u);return gn(b=>{w===f.layers.size-1&&(r?.(b),!b.defaultPrevented&&c&&(b.preventDefault(),c()))},u),E(()=>{if(d)return o&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(at=u.body.style.pointerEvents,u.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),lt(),()=>{o&&f.layersWithOutsidePointerEventsDisabled.size===1&&(u.body.style.pointerEvents=at)}},[d,u,o,f]),E(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),lt())},[d,f]),E(()=>{const b=()=>h({});return document.addEventListener(Fe,b),()=>document.removeEventListener(Fe,b)},[]),C(oe.div,H({},l,{ref:g,style:{pointerEvents:$?x?"auto":"none":void 0,...e.style},onFocusCapture:q(e.onFocusCapture,O.onFocusCapture),onBlurCapture:q(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:q(e.onPointerDownCapture,P.onPointerDownCapture)}))});function xn(e,t=globalThis?.document){const n=ce(e),o=A(!1),r=A(()=>{});return E(()=>{const i=a=>{if(a.target&&!o.current){let l=function(){ft(vn,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function bn(e,t=globalThis?.document){const n=ce(e),o=A(!1);return E(()=>{const r=i=>{i.target&&!o.current&&ft(yn,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function lt(){const e=new CustomEvent(Fe);document.dispatchEvent(e)}function ft(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?hn(r,i):r.dispatchEvent(i)}const Pn=rn["useId".toString()]||(()=>{});let Cn=0;function On(e){const[t,n]=S(Pn());return ae(()=>{n(o=>o??String(Cn++))},[e]),t?`radix-${t}`:""}const Tn=["top","right","bottom","left"],Y=Math.min,B=Math.max,Oe=Math.round,Te=Math.floor,te=e=>({x:e,y:e}),An={left:"right",right:"left",bottom:"top",top:"bottom"},En={start:"end",end:"start"};function He(e,t,n){return B(e,Y(t,n))}function Z(e,t){return typeof e=="function"?e(t):e}function J(e){return e.split("-")[0]}function le(e){return e.split("-")[1]}function We(e){return e==="x"?"y":"x"}function Be(e){return e==="y"?"height":"width"}function fe(e){return["top","bottom"].includes(J(e))?"y":"x"}function ze(e){return We(fe(e))}function _n(e,t,n){n===void 0&&(n=!1);const o=le(e),r=ze(e),i=Be(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ae(s)),[s,Ae(s)]}function Dn(e){const t=Ae(e);return[Ue(e),t,Ue(t)]}function Ue(e){return e.replace(/start|end/g,t=>En[t])}function Rn(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:s;default:return[]}}function Sn(e,t,n,o){const r=le(e);let i=Rn(J(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(Ue)))),i}function Ae(e){return e.replace(/left|right|bottom|top/g,t=>An[t])}function Ln(e){return{top:0,right:0,bottom:0,left:0,...e}}function dt(e){return typeof e!="number"?Ln(e):{top:e,right:e,bottom:e,left:e}}function Ee(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function ut(e,t,n){let{reference:o,floating:r}=e;const i=fe(t),s=ze(t),a=Be(s),c=J(t),l=i==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[a]/2-r[a]/2;let u;switch(c){case"top":u={x:f,y:o.y-r.height};break;case"bottom":u={x:f,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:d};break;case"left":u={x:o.x-r.width,y:d};break;default:u={x:o.x,y:o.y}}switch(le(t)){case"start":u[s]-=p*(n&&l?-1:1);break;case"end":u[s]+=p*(n&&l?-1:1);break}return u}const Nn=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:d}=ut(l,o,c),p=o,u={},h=0;for(let g=0;g<a.length;g++){const{name:m,fn:v}=a[g],{x:y,y:w,data:$,reset:x}=await v({x:f,y:d,initialPlacement:o,placement:p,strategy:r,middlewareData:u,rects:l,platform:s,elements:{reference:e,floating:t}});f=y??f,d=w??d,u={...u,[m]:{...u[m],...$}},x&&h<=50&&(h++,typeof x=="object"&&(x.placement&&(p=x.placement),x.rects&&(l=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):x.rects),{x:f,y:d}=ut(l,p,c)),g=-1)}return{x:f,y:d,placement:p,strategy:r,middlewareData:u}};async function me(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:u=0}=Z(t,e),h=dt(u),m=a[p?d==="floating"?"reference":"floating":d],v=Ee(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(m)))==null||n?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:f,strategy:c})),y=d==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),$=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},x=Ee(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:c}):y);return{top:(v.top-x.top+h.top)/$.y,bottom:(x.bottom-v.bottom+h.bottom)/$.y,left:(v.left-x.left+h.left)/$.x,right:(x.right-v.right+h.right)/$.x}}const Mn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:f=0}=Z(e,t)||{};if(l==null)return{};const d=dt(f),p={x:n,y:o},u=ze(r),h=Be(u),g=await s.getDimensions(l),m=u==="y",v=m?"top":"left",y=m?"bottom":"right",w=m?"clientHeight":"clientWidth",$=i.reference[h]+i.reference[u]-p[u]-i.floating[h],x=p[u]-i.reference[u],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let O=P?P[w]:0;(!O||!await(s.isElement==null?void 0:s.isElement(P)))&&(O=a.floating[w]||i.floating[h]);const b=$/2-x/2,L=O/2-g[h]/2-1,k=Y(d[v],L),N=Y(d[y],L),D=k,U=O-g[h]-N,_=O/2-g[h]/2+b,R=He(D,_,U),I=!c.arrow&&le(r)!=null&&_!==R&&i.reference[h]/2-(_<D?k:N)-g[h]/2<0,T=I?_<D?_-D:_-U:0;return{[u]:p[u]+T,data:{[u]:R,centerOffset:_-R-T,...I&&{alignmentOffset:T}},reset:I}}}),kn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...m}=Z(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=J(r),y=J(a)===a,w=await(c.isRTL==null?void 0:c.isRTL(l.floating)),$=p||(y||!g?[Ae(a)]:Dn(a));!p&&h!=="none"&&$.push(...Sn(a,g,h,w));const x=[a,...$],P=await me(t,m),O=[];let b=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&O.push(P[v]),d){const D=_n(r,s,w);O.push(P[D[0]],P[D[1]])}if(b=[...b,{placement:r,overflows:O}],!O.every(D=>D<=0)){var L,k;const D=(((L=i.flip)==null?void 0:L.index)||0)+1,U=x[D];if(U)return{data:{index:D,overflows:b},reset:{placement:U}};let _=(k=b.filter(R=>R.overflows[0]<=0).sort((R,I)=>R.overflows[1]-I.overflows[1])[0])==null?void 0:k.placement;if(!_)switch(u){case"bestFit":{var N;const R=(N=b.map(I=>[I.placement,I.overflows.filter(T=>T>0).reduce((T,ee)=>T+ee,0)]).sort((I,T)=>I[1]-T[1])[0])==null?void 0:N[0];R&&(_=R);break}case"initialPlacement":_=a;break}if(r!==_)return{reset:{placement:_}}}return{}}}};function pt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ht(e){return Tn.some(t=>e[t]>=0)}const In=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=Z(e,t);switch(o){case"referenceHidden":{const i=await me(t,{...r,elementContext:"reference"}),s=pt(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ht(s)}}}case"escaped":{const i=await me(t,{...r,altBoundary:!0}),s=pt(i,n.floating);return{data:{escapedOffsets:s,escaped:ht(s)}}}default:return{}}}}};async function Fn(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=J(n),a=le(n),c=fe(n)==="y",l=["left","top"].includes(s)?-1:1,f=i&&c?-1:1,d=Z(t,e);let{mainAxis:p,crossAxis:u,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof h=="number"&&(u=a==="end"?h*-1:h),c?{x:u*f,y:p*l}:{x:p*l,y:u*f}}const Hn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,c=await Fn(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},Wn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:m=>{let{x:v,y}=m;return{x:v,y}}},...c}=Z(e,t),l={x:n,y:o},f=await me(t,c),d=fe(J(r)),p=We(d);let u=l[p],h=l[d];if(i){const m=p==="y"?"top":"left",v=p==="y"?"bottom":"right",y=u+f[m],w=u-f[v];u=He(y,u,w)}if(s){const m=d==="y"?"top":"left",v=d==="y"?"bottom":"right",y=h+f[m],w=h-f[v];h=He(y,h,w)}const g=a.fn({...t,[p]:u,[d]:h});return{...g,data:{x:g.x-n,y:g.y-o}}}}},Bn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Z(e,t),f={x:n,y:o},d=fe(r),p=We(d);let u=f[p],h=f[d];const g=Z(a,t),m=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const w=p==="y"?"height":"width",$=i.reference[p]-i.floating[w]+m.mainAxis,x=i.reference[p]+i.reference[w]-m.mainAxis;u<$?u=$:u>x&&(u=x)}if(l){var v,y;const w=p==="y"?"width":"height",$=["top","left"].includes(J(r)),x=i.reference[d]-i.floating[w]+($&&((v=s.offset)==null?void 0:v[d])||0)+($?0:m.crossAxis),P=i.reference[d]+i.reference[w]+($?0:((y=s.offset)==null?void 0:y[d])||0)-($?m.crossAxis:0);h<x?h=x:h>P&&(h=P)}return{[p]:u,[d]:h}}}},zn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:s=()=>{},...a}=Z(e,t),c=await me(t,a),l=J(n),f=le(n),d=fe(n)==="y",{width:p,height:u}=o.floating;let h,g;l==="top"||l==="bottom"?(h=l,g=f===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(g=l,h=f==="end"?"top":"bottom");const m=u-c.top-c.bottom,v=p-c.left-c.right,y=Y(u-c[h],m),w=Y(p-c[g],v),$=!t.middlewareData.shift;let x=y,P=w;if(d?P=f||$?Y(w,v):v:x=f||$?Y(y,m):m,$&&!f){const b=B(c.left,0),L=B(c.right,0),k=B(c.top,0),N=B(c.bottom,0);d?P=p-2*(b!==0||L!==0?b+L:B(c.left,c.right)):x=u-2*(k!==0||N!==0?k+N:B(c.top,c.bottom))}await s({...t,availableWidth:P,availableHeight:x});const O=await r.getDimensions(i.floating);return p!==O.width||u!==O.height?{reset:{rects:!0}}:{}}}};function de(e){return mt(e)?(e.nodeName||"").toLowerCase():"#document"}function z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Q(e){var t;return(t=(mt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mt(e){return e instanceof Node||e instanceof z(e).Node}function X(e){return e instanceof Element||e instanceof z(e).Element}function j(e){return e instanceof HTMLElement||e instanceof z(e).HTMLElement}function gt(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof z(e).ShadowRoot}function ge(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=V(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function Un(e){return["table","td","th"].includes(de(e))}function Ve(e){const t=Ye(),n=V(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 Vn(e){let t=ne(e);for(;j(t)&&!ue(t);){if(Ve(t))return t;t=ne(t)}return null}function Ye(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ue(e){return["html","body","#document"].includes(de(e))}function V(e){return z(e).getComputedStyle(e)}function _e(e){return X(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ne(e){if(de(e)==="html")return e;const t=e.assignedSlot||e.parentNode||gt(e)&&e.host||Q(e);return gt(t)?t.host:t}function vt(e){const t=ne(e);return ue(t)?e.ownerDocument?e.ownerDocument.body:e.body:j(t)&&ge(t)?t:vt(t)}function ve(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=vt(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=z(r);return i?t.concat(s,s.visualViewport||[],ge(r)?r:[],s.frameElement&&n?ve(s.frameElement):[]):t.concat(r,ve(r,[],n))}function yt(e){const t=V(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=j(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=Oe(n)!==i||Oe(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function Xe(e){return X(e)?e:e.contextElement}function pe(e){const t=Xe(e);if(!j(t))return te(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=yt(t);let s=(i?Oe(n.width):n.width)/o,a=(i?Oe(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Yn=te(0);function wt(e){const t=z(e);return!Ye()||!t.visualViewport?Yn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Xn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==z(e)?!1:t}function re(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Xe(e);let s=te(1);t&&(o?X(o)&&(s=pe(o)):s=pe(e));const a=Xn(i,n,o)?wt(i):te(0);let c=(r.left+a.x)/s.x,l=(r.top+a.y)/s.y,f=r.width/s.x,d=r.height/s.y;if(i){const p=z(i),u=o&&X(o)?z(o):o;let h=p,g=h.frameElement;for(;g&&o&&u!==h;){const m=pe(g),v=g.getBoundingClientRect(),y=V(g),w=v.left+(g.clientLeft+parseFloat(y.paddingLeft))*m.x,$=v.top+(g.clientTop+parseFloat(y.paddingTop))*m.y;c*=m.x,l*=m.y,f*=m.x,d*=m.y,c+=w,l+=$,h=z(g),g=h.frameElement}}return Ee({width:f,height:d,x:c,y:l})}const jn=[":popover-open",":modal"];function je(e){return jn.some(t=>{try{return e.matches(t)}catch{return!1}})}function Gn(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=Q(o),a=t?je(t.floating):!1;if(o===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=te(1);const f=te(0),d=j(o);if((d||!d&&!i)&&((de(o)!=="body"||ge(s))&&(c=_e(o)),j(o))){const p=re(o);l=pe(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+f.x,y:n.y*l.y-c.scrollTop*l.y+f.y}}function Kn(e){return Array.from(e.getClientRects())}function $t(e){return re(Q(e)).left+_e(e).scrollLeft}function qn(e){const t=Q(e),n=_e(e),o=e.ownerDocument.body,r=B(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=B(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+$t(e);const a=-n.scrollTop;return V(o).direction==="rtl"&&(s+=B(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}function Zn(e,t){const n=z(e),o=Q(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,c=0;if(r){i=r.width,s=r.height;const l=Ye();(!l||l&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:a,y:c}}function Jn(e,t){const n=re(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=j(e)?pe(e):te(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,l=o*i.y;return{width:s,height:a,x:c,y:l}}function xt(e,t,n){let o;if(t==="viewport")o=Zn(e,n);else if(t==="document")o=qn(Q(e));else if(X(t))o=Jn(t,n);else{const r=wt(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return Ee(o)}function bt(e,t){const n=ne(e);return n===t||!X(n)||ue(n)?!1:V(n).position==="fixed"||bt(n,t)}function Qn(e,t){const n=t.get(e);if(n)return n;let o=ve(e,[],!1).filter(a=>X(a)&&de(a)!=="body"),r=null;const i=V(e).position==="fixed";let s=i?ne(e):e;for(;X(s)&&!ue(s);){const a=V(s),c=Ve(s);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ge(s)&&!c&&bt(e,s))?o=o.filter(f=>f!==s):r=a,s=ne(s)}return t.set(e,o),o}function eo(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?je(t)?[]:Qn(t,this._c):[].concat(n),o],a=s[0],c=s.reduce((l,f)=>{const d=xt(t,f,r);return l.top=B(d.top,l.top),l.right=Y(d.right,l.right),l.bottom=Y(d.bottom,l.bottom),l.left=B(d.left,l.left),l},xt(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function to(e){const{width:t,height:n}=yt(e);return{width:t,height:n}}function no(e,t,n){const o=j(t),r=Q(t),i=n==="fixed",s=re(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=te(0);if(o||!o&&!i)if((de(t)!=="body"||ge(r))&&(a=_e(t)),o){const d=re(t,!0,i,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else r&&(c.x=$t(r));const l=s.left+a.scrollLeft-c.x,f=s.top+a.scrollTop-c.y;return{x:l,y:f,width:s.width,height:s.height}}function Ge(e){return V(e).position==="static"}function Pt(e,t){return!j(e)||V(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ct(e,t){const n=z(e);if(je(e))return n;if(!j(e)){let r=ne(e);for(;r&&!ue(r);){if(X(r)&&!Ge(r))return r;r=ne(r)}return n}let o=Pt(e,t);for(;o&&Un(o)&&Ge(o);)o=Pt(o,t);return o&&ue(o)&&Ge(o)&&!Ve(o)?n:o||Vn(e)||n}const oo=async function(e){const t=this.getOffsetParent||Ct,n=this.getDimensions,o=await n(e.floating);return{reference:no(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ro(e){return V(e).direction==="rtl"}const io={convertOffsetParentRelativeRectToViewportRelativeRect:Gn,getDocumentElement:Q,getClippingRect:eo,getOffsetParent:Ct,getElementRects:oo,getClientRects:Kn,getDimensions:to,getScale:pe,isElement:X,isRTL:ro};function so(e,t){let n=null,o;const r=Q(e);function i(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:f,width:d,height:p}=e.getBoundingClientRect();if(a||t(),!d||!p)return;const u=Te(f),h=Te(r.clientWidth-(l+d)),g=Te(r.clientHeight-(f+p)),m=Te(l),y={rootMargin:-u+"px "+-h+"px "+-g+"px "+-m+"px",threshold:B(0,Y(1,c))||1};let w=!0;function $(x){const P=x[0].intersectionRatio;if(P!==c){if(!w)return s();P?s(!1,P):o=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver($,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver($,y)}n.observe(e)}return s(!0),i}function co(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=Xe(e),f=r||i?[...l?ve(l):[],...ve(t)]:[];f.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=l&&a?so(l,n):null;let p=-1,u=null;s&&(u=new ResizeObserver(v=>{let[y]=v;y&&y.target===l&&u&&(u.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=u)==null||w.observe(t)})),n()}),l&&!c&&u.observe(l),u.observe(t));let h,g=c?re(e):null;c&&m();function m(){const v=re(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,h=requestAnimationFrame(m)}return n(),()=>{var v;f.forEach(y=>{r&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),d?.(),(v=u)==null||v.disconnect(),u=null,c&&cancelAnimationFrame(h)}}const ao=Hn,lo=Wn,fo=kn,uo=zn,po=In,Ot=Mn,ho=Bn,mo=(e,t,n)=>{const o=new Map,r={platform:io,...n},i={...r.platform,_c:o};return Nn(e,t,{...r,platform:i})};var De=typeof document<"u"?nt:E;function Re(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,r;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(!Re(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!Re(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Tt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function At(e,t){const n=Tt(e);return Math.round(t*n)/n}function Et(e){const t=A(e);return De(()=>{t.current=e}),t}function go(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[f,d]=S({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,u]=S(o);Re(p,o)||u(o);const[h,g]=S(null),[m,v]=S(null),y=M(T=>{T!==P.current&&(P.current=T,g(T))},[]),w=M(T=>{T!==O.current&&(O.current=T,v(T))},[]),$=i||h,x=s||m,P=A(null),O=A(null),b=A(f),L=c!=null,k=Et(c),N=Et(r),D=M(()=>{if(!P.current||!O.current)return;const T={placement:t,strategy:n,middleware:p};N.current&&(T.platform=N.current),mo(P.current,O.current,T).then(ee=>{const G={...ee,isPositioned:!0};U.current&&!Re(b.current,G)&&(b.current=G,Ie(()=>{d(G)}))})},[p,t,n,N]);De(()=>{l===!1&&b.current.isPositioned&&(b.current.isPositioned=!1,d(T=>({...T,isPositioned:!1})))},[l]);const U=A(!1);De(()=>(U.current=!0,()=>{U.current=!1}),[]),De(()=>{if($&&(P.current=$),x&&(O.current=x),$&&x){if(k.current)return k.current($,x,D);D()}},[$,x,D,k,L]);const _=K(()=>({reference:P,floating:O,setReference:y,setFloating:w}),[y,w]),R=K(()=>({reference:$,floating:x}),[$,x]),I=K(()=>{const T={position:n,left:0,top:0};if(!R.floating)return T;const ee=At(R.floating,f.x),G=At(R.floating,f.y);return a?{...T,transform:"translate("+ee+"px, "+G+"px)",...Tt(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ee,top:G}},[n,a,R.floating,f.x,f.y]);return K(()=>({...f,update:D,refs:_,elements:R,floatingStyles:I}),[f,D,_,R,I])}const vo=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Ot({element:o.current,padding:r}).fn(n):{}:o?Ot({element:o,padding:r}).fn(n):{}}}},yo=(e,t)=>({...ao(e),options:[e,t]}),wo=(e,t)=>({...lo(e),options:[e,t]}),$o=(e,t)=>({...ho(e),options:[e,t]}),xo=(e,t)=>({...fo(e),options:[e,t]}),bo=(e,t)=>({...uo(e),options:[e,t]}),Po=(e,t)=>({...po(e),options:[e,t]}),Co=(e,t)=>({...vo(e),options:[e,t]}),Oo=F((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return C(oe.svg,H({},i,{ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:C("polygon",{points:"0,0 30,0 15,10"}))}),To=Oo;function Ao(e){const[t,n]=S(void 0);return ae(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.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 _t="Popper",[Dt,Rt]=st(_t),[Eo,St]=Dt(_t),_o=e=>{const{__scopePopper:t,children:n}=e,[o,r]=S(null);return C(Eo,{scope:t,anchor:o,onAnchorChange:r},n)},Do="PopperAnchor",Ro=F((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=St(Do,n),s=A(null),a=se(t,s);return E(()=>{i.onAnchorChange(o?.current||s.current)}),o?null:C(oe.div,H({},r,{ref:a}))}),Lt="PopperContent",[So,Lo]=Dt(Lt),No=F((e,t)=>{var n,o,r,i,s,a,c,l;const{__scopePopper:f,side:d="bottom",sideOffset:p=0,align:u="center",alignOffset:h=0,arrowPadding:g=0,avoidCollisions:m=!0,collisionBoundary:v=[],collisionPadding:y=0,sticky:w="partial",hideWhenDetached:$=!1,updatePositionStrategy:x="optimized",onPlaced:P,...O}=e,b=St(Lt,f),[L,k]=S(null),N=se(t,he=>k(he)),[D,U]=S(null),_=Ao(D),R=(n=_?.width)!==null&&n!==void 0?n:0,I=(o=_?.height)!==null&&o!==void 0?o:0,T=d+(u!=="center"?"-"+u:""),ee=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},G=Array.isArray(v)?v:[v],Yt=G.length>0,$e={padding:ee,boundary:G.filter(ko),altBoundary:Yt},{refs:Xt,floatingStyles:Qe,placement:jt,isPositioned:xe,middlewareData:ie}=go({strategy:"fixed",placement:T,whileElementsMounted:(...he)=>co(...he,{animationFrame:x==="always"}),elements:{reference:b.anchor},middleware:[yo({mainAxis:p+I,alignmentAxis:h}),m&&wo({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?$o():void 0,...$e}),m&&xo({...$e}),bo({...$e,apply:({elements:he,rects:tt,availableWidth:en,availableHeight:tn})=>{const{width:nn,height:on}=tt.reference,Pe=he.floating.style;Pe.setProperty("--radix-popper-available-width",`${en}px`),Pe.setProperty("--radix-popper-available-height",`${tn}px`),Pe.setProperty("--radix-popper-anchor-width",`${nn}px`),Pe.setProperty("--radix-popper-anchor-height",`${on}px`)}}),D&&Co({element:D,padding:g}),Io({arrowWidth:R,arrowHeight:I}),$&&Po({strategy:"referenceHidden",...$e})]}),[et,Gt]=kt(jt),be=ce(P);ae(()=>{xe&&be?.()},[xe,be]);const Kt=(r=ie.arrow)===null||r===void 0?void 0:r.x,qt=(i=ie.arrow)===null||i===void 0?void 0:i.y,Zt=((s=ie.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[Jt,Qt]=S();return ae(()=>{L&&Qt(window.getComputedStyle(L).zIndex)},[L]),C("div",{ref:Xt.setFloating,"data-radix-popper-content-wrapper":"",style:{...Qe,transform:xe?Qe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Jt,["--radix-popper-transform-origin"]:[(a=ie.transformOrigin)===null||a===void 0?void 0:a.x,(c=ie.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},C(So,{scope:f,placedSide:et,onArrowChange:U,arrowX:Kt,arrowY:qt,shouldHideArrow:Zt},C(oe.div,H({"data-side":et,"data-align":Gt},O,{ref:N,style:{...O.style,animation:xe?void 0:"none",opacity:(l=ie.hide)!==null&&l!==void 0&&l.referenceHidden?0:void 0}}))))}),Nt="PopperArrow",Mo={top:"bottom",right:"left",bottom:"top",left:"right"},Mt=F(function(t,n){const{__scopePopper:o,...r}=t,i=Lo(Nt,o),s=Mo[i.placedSide];return C("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},C(To,H({},r,{ref:n,style:{...r.style,display:"block"}})))});function ko(e){return e!==null}const Io=e=>({name:"transformOrigin",options:e,fn(t){var n,o,r,i,s;const{placement:a,rects:c,middlewareData:l}=t,d=((n=l.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=d?0:e.arrowWidth,u=d?0:e.arrowHeight,[h,g]=kt(a),m={start:"0%",center:"50%",end:"100%"}[g],v=((o=(r=l.arrow)===null||r===void 0?void 0:r.x)!==null&&o!==void 0?o:0)+p/2,y=((i=(s=l.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+u/2;let w="",$="";return h==="bottom"?(w=d?m:`${v}px`,$=`${-u}px`):h==="top"?(w=d?m:`${v}px`,$=`${c.floating.height+u}px`):h==="right"?(w=`${-u}px`,$=d?m:`${y}px`):h==="left"&&(w=`${c.floating.width+u}px`,$=d?m:`${y}px`),{data:{x:w,y:$}}}});function kt(e){const[t,n="center"]=e.split("-");return[t,n]}const Fo=_o,Ho=Ro,Wo=No,Bo=Mt,zo=F((e,t)=>{var n;const{container:o=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...r}=e;return o?sn.createPortal(C(oe.div,H({},r,{ref:t})),o):null});function Uo(e,t){return ln((n,o)=>{const r=t[n][o];return r??n},e)}const Ke=e=>{const{present:t,children:n}=e,o=Vo(t),r=typeof n=="function"?n({present:o.isPresent}):cn.only(n),i=se(o.ref,r.ref);return typeof n=="function"||o.isPresent?an(r,{ref:i}):null};Ke.displayName="Presence";function Vo(e){const[t,n]=S(),o=A({}),r=A(e),i=A("none"),s=e?"mounted":"unmounted",[a,c]=Uo(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E(()=>{const l=Se(o.current);i.current=a==="mounted"?l:"none"},[a]),ae(()=>{const l=o.current,f=r.current;if(f!==e){const p=i.current,u=Se(l);e?c("MOUNT"):u==="none"||l?.display==="none"?c("UNMOUNT"):c(f&&p!==u?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),ae(()=>{if(t){const l=d=>{const u=Se(o.current).includes(d.animationName);d.target===t&&u&&Ie(()=>c("ANIMATION_END"))},f=d=>{d.target===t&&(i.current=Se(o.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:M(l=>{l&&(o.current=getComputedStyle(l)),n(l)},[])}}function Se(e){return e?.animationName||"none"}function Yo({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=Xo({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:o,a=ce(n),c=M(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else r(l)},[i,e,r,a]);return[s,c]}function Xo({defaultProp:e,onChange:t}){const n=S(e),[o]=n,r=A(o),i=ce(t);return E(()=>{r.current!==o&&(i(o),r.current=o)},[o,r,i]),n}const jo=F((e,t)=>C(oe.span,H({},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}}))),Go=jo,[Le,Ar]=st("Tooltip",[Rt]),Ne=Rt(),Ko="TooltipProvider",qo=700,qe="tooltip.open",[Zo,Ze]=Le(Ko),Jo=e=>{const{__scopeTooltip:t,delayDuration:n=qo,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:i}=e,[s,a]=S(!0),c=A(!1),l=A(0);return E(()=>{const f=l.current;return()=>window.clearTimeout(f)},[]),C(Zo,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:M(()=>{window.clearTimeout(l.current),a(!1)},[]),onClose:M(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a(!0),o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:M(f=>{c.current=f},[]),disableHoverableContent:r},i)},Je="Tooltip",[Qo,ye]=Le(Je),er=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=Ze(Je,e.__scopeTooltip),l=Ne(t),[f,d]=S(null),p=On(),u=A(0),h=s??c.disableHoverableContent,g=a??c.delayDuration,m=A(!1),[v=!1,y]=Yo({prop:o,defaultProp:r,onChange:O=>{O?(c.onOpen(),document.dispatchEvent(new CustomEvent(qe))):c.onClose(),i?.(O)}}),w=K(()=>v?m.current?"delayed-open":"instant-open":"closed",[v]),$=M(()=>{window.clearTimeout(u.current),m.current=!1,y(!0)},[y]),x=M(()=>{window.clearTimeout(u.current),y(!1)},[y]),P=M(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>{m.current=!0,y(!0)},g)},[g,y]);return E(()=>()=>window.clearTimeout(u.current),[]),C(Fo,l,C(Qo,{scope:t,contentId:p,open:v,stateAttribute:w,trigger:f,onTriggerChange:d,onTriggerEnter:M(()=>{c.isOpenDelayed?P():$()},[c.isOpenDelayed,P,$]),onTriggerLeave:M(()=>{h?x():window.clearTimeout(u.current)},[x,h]),onOpen:$,onClose:x,disableHoverableContent:h},n))},It="TooltipTrigger",tr=F((e,t)=>{const{__scopeTooltip:n,...o}=e,r=ye(It,n),i=Ze(It,n),s=Ne(n),a=A(null),c=se(t,a,r.onTriggerChange),l=A(!1),f=A(!1),d=M(()=>l.current=!1,[]);return E(()=>()=>document.removeEventListener("pointerup",d),[d]),C(Ho,H({asChild:!0},s),C(oe.button,H({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},o,{ref:c,onPointerMove:q(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),f.current=!0)}),onPointerLeave:q(e.onPointerLeave,()=>{r.onTriggerLeave(),f.current=!1}),onPointerDown:q(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:q(e.onFocus,()=>{l.current||r.onOpen()}),onBlur:q(e.onBlur,r.onClose),onClick:q(e.onClick,r.onClose)})))}),Ft="TooltipPortal",[nr,or]=Le(Ft,{forceMount:void 0}),rr=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,i=ye(Ft,t);return C(nr,{scope:t,forceMount:n},C(Ke,{present:n||i.open},C(zo,{asChild:!0,container:r},o)))},we="TooltipContent",ir=F((e,t)=>{const n=or(we,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,s=ye(we,e.__scopeTooltip);return C(Ke,{present:o||s.open},s.disableHoverableContent?C(Ht,H({side:r},i,{ref:t})):C(sr,H({side:r},i,{ref:t})))}),sr=F((e,t)=>{const n=ye(we,e.__scopeTooltip),o=Ze(we,e.__scopeTooltip),r=A(null),i=se(t,r),[s,a]=S(null),{trigger:c,onClose:l}=n,f=r.current,{onPointerInTransitChange:d}=o,p=M(()=>{a(null),d(!1)},[d]),u=M((h,g)=>{const m=h.currentTarget,v={x:h.clientX,y:h.clientY},y=dr(v,m.getBoundingClientRect()),w=ur(v,y),$=pr(g.getBoundingClientRect()),x=mr([...w,...$]);a(x),d(!0)},[d]);return E(()=>()=>p(),[p]),E(()=>{if(c&&f){const h=m=>u(m,f),g=m=>u(m,c);return c.addEventListener("pointerleave",h),f.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",h),f.removeEventListener("pointerleave",g)}}},[c,f,u,p]),E(()=>{if(s){const h=g=>{const m=g.target,v={x:g.clientX,y:g.clientY},y=c?.contains(m)||f?.contains(m),w=!hr(v,s);y?p():w&&(p(),l())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[c,f,s,l,p]),C(Ht,H({},e,{ref:i}))}),[cr,ar]=Le(Je,{isInside:!1}),Ht=F((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=ye(we,n),l=Ne(n),{onClose:f}=c;return E(()=>(document.addEventListener(qe,f),()=>document.removeEventListener(qe,f)),[f]),E(()=>{if(c.trigger){const d=p=>{const u=p.target;u!=null&&u.contains(c.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,f]),C($n,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:f},C(Wo,H({"data-state":c.stateAttribute},l,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)"}}),C(fn,null,o),C(cr,{scope:n,isInside:!0},C(Go,{id:c.contentId,role:"tooltip"},r||o))))}),lr="TooltipArrow",fr=F((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Ne(n);return ar(lr,n).isInside?null:C(Bo,H({},r,o,{ref:t}))});function dr(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function ur(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 pr(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function hr(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i].x,c=t[i].y,l=t[s].x,f=t[s].y;c>o!=f>o&&n<(l-a)*(o-c)/(f-c)+a&&(r=!r)}return r}function mr(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),gr(t)}function gr(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}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 vr=Jo,yr=er,wr=tr,$r=rr,xr=ir,br=fr,Wt=Ce({isPresent:!0,onExitComplete:e=>{},register:e=>{}}),Pr=({children:e})=>{const[t,n]=S(new Map),o=A(e);e&&(o.current=e);const r=!!e,i=M(a=>{n(c=>(c.delete(a),new Map(c.entries())))},[]),s=M(a=>{n(c=>(c.set(a,!0),new Map(c.entries())))},[]);return E(()=>{!r&&[...t.values()].some(Boolean)&&(o.current=!1)},[t,r]),W(Wt.Provider,{value:{isPresent:r,onExitComplete:i,register:s},children:e||([...t.values()].some(Boolean)?o.current:null)})},Cr=()=>{const{isPresent:e,onExitComplete:t,register:n}=Me(Wt),o=A();return E(()=>n(o),[o,n]),e?[!0]:[!1,()=>t(o)]};ot("@layer optiaxiom._1kfj4ga1{._1p67mhc0{transform-origin:var(--radix-popper-transform-origin);transition-property:opacity,transform;transition-timing-function:ease}._1p67mhc1{opacity:0}._1p67mhc2{opacity:0;transform:translateY(-15px)}._1p67mhc3{opacity:0;transform:translateX(15px)}._1p67mhc4{opacity:0;transform:translateX(-15px)}._1p67mhc5{opacity:0;transform:translateY(15px)}._1p67mhc6{opacity:0;transform:scale(.9)}._1p67mhc7{opacity:0;transform:scale(.9) translateY(-10px)}._1p67mhc8{opacity:0;transform:scale(.9) translateX(10px)}._1p67mhc9{opacity:0;transform:scale(.9) translateX(-10px)}._1p67mhca{opacity:0;transform:scale(.9) translateY(10px)}}");var Or=rt({base:"_1p67mhc0",variants:{type:{fade:"_1p67mhc1","fade-down":"_1p67mhc2","fade-left":"_1p67mhc3","fade-right":"_1p67mhc4","fade-up":"_1p67mhc5",pop:"_1p67mhc6","pop-down":"_1p67mhc7","pop-left":"_1p67mhc8","pop-right":"_1p67mhc9","pop-up":"_1p67mhca"}}});const Bt={sm:250,md:400,lg:550},zt=F(({children:e,className:t,duration:n="sm",style:o,type:r="fade",...i},s)=>{const[a,c]=Cr(),[l,f]=S(!1);return E(()=>{a&&f(!0)},[a]),E(()=>{!a&&setTimeout(c,Bt[n])},[a]),W(ke,{ref:s,style:{...o,transitionDuration:`${Bt[n]}ms`},...Or({type:l!==a?r:void 0},t),...i,children:e})});zt.displayName="@optiaxiom/react/Transition";const Ut=F(({children:e,content:t,delayDuration:n,withArrow:o,...r},i)=>{const[s,a]=S(!1);return W(vr,{delayDuration:n,children:W(yr,{onOpenChange:a,open:s,children:[W(wr,{asChild:!0,ref:i,children:e}),W(Pr,{children:s&&W($r,{forceMount:!0,children:W(zt,{type:"pop",children:W(xr,{asChild:!0,sideOffset:5,...r,children:W(it,{bg:"dark.600",color:"white",px:"6",py:"4",rounded:"sm",children:[W(ct,{fontSize:"sm",children:t}),o&&W(br,{})]})})})})})]})})});Ut.displayName="@optiaxiom/react/Tooltip";const Vt="ax-tooltip";dn(Vt,Ut);export{Vt as Tooltip};
1
+ import{a as L,k as H,P as jt,p as N,_ as O,F as D,G as Gt,$ as Kt,x as I,m as Je,q as he,A as qt,R as Zt,N as Jt,h as Qt,y as en,u as V,r as tn}from"./register-C6qZMQlw.js";import{d as ie,t as F,$ as nn,o as on}from"./Box-9LrXBb0B.js";import{$ as Qe}from"./index-D-Y5pVgW.js";import{$ as ne,a as rn}from"./index-DLtacV-Q.js";import{$ as se,a as ce}from"./index-DoeKEfO9.js";import{v as sn}from"./AnimatePresence-DvfDfq0x.js";import"./PresenceContext-BIyw24mj.js";import{r as cn}from"./Text-BIAeKp5v.js";import{r as an}from"./Transition-BD7yTsL2.js";function K(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function ln(e,t=globalThis?.document){const n=se(e);L(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)},[n,t])}const Ne="dismissableLayer.update",fn="dismissableLayer.pointerDownOutside",dn="dismissableLayer.focusOutside";let et;const un=Gt({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pn=H((e,t)=>{var n;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,f=jt(un),[d,h]=N(null),u=(n=d?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,p]=N({}),g=ie(t,b=>h(b)),m=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=m.indexOf(v),$=d?m.indexOf(d):-1,x=f.layersWithOutsidePointerEventsDisabled.size>0,y=$>=w,P=hn(b=>{const _=b.target,M=[...f.branches].some(S=>S.contains(_));!y||M||(i?.(b),a?.(b),b.defaultPrevented||c?.())},u),C=mn(b=>{const _=b.target;[...f.branches].some(S=>S.contains(_))||(s?.(b),a?.(b),b.defaultPrevented||c?.())},u);return ln(b=>{$===f.layers.size-1&&(r?.(b),!b.defaultPrevented&&c&&(b.preventDefault(),c()))},u),L(()=>{if(d)return o&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(et=u.body.style.pointerEvents,u.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),tt(),()=>{o&&f.layersWithOutsidePointerEventsDisabled.size===1&&(u.body.style.pointerEvents=et)}},[d,u,o,f]),L(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),tt())},[d,f]),L(()=>{const b=()=>p({});return document.addEventListener(Ne,b),()=>document.removeEventListener(Ne,b)},[]),O(ne.div,F({},l,{ref:g,style:{pointerEvents:x?y?"auto":"none":void 0,...e.style},onFocusCapture:K(e.onFocusCapture,C.onFocusCapture),onBlurCapture:K(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:K(e.onPointerDownCapture,P.onPointerDownCapture)}))});function hn(e,t=globalThis?.document){const n=se(e),o=D(!1),r=D(()=>{});return L(()=>{const i=a=>{if(a.target&&!o.current){let l=function(){nt(fn,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function mn(e,t=globalThis?.document){const n=se(e),o=D(!1);return L(()=>{const r=i=>{i.target&&!o.current&&nt(dn,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function tt(){const e=new CustomEvent(Ne);document.dispatchEvent(e)}function nt(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?rn(r,i):r.dispatchEvent(i)}const gn=Kt["useId".toString()]||(()=>{});let vn=0;function wn(e){const[t,n]=N(gn());return ce(()=>{n(o=>o??String(vn++))},[e]),t?`radix-${t}`:""}const $n=["top","right","bottom","left"],Y=Math.min,W=Math.max,Oe=Math.round,Ce=Math.floor,ee=e=>({x:e,y:e}),xn={left:"right",right:"left",bottom:"top",top:"bottom"},yn={start:"end",end:"start"};function Me(e,t,n){return W(e,Y(t,n))}function q(e,t){return typeof e=="function"?e(t):e}function Z(e){return e.split("-")[0]}function ae(e){return e.split("-")[1]}function ke(e){return e==="x"?"y":"x"}function Ie(e){return e==="y"?"height":"width"}function le(e){return["top","bottom"].includes(Z(e))?"y":"x"}function Fe(e){return ke(le(e))}function bn(e,t,n){n===void 0&&(n=!1);const o=ae(e),r=Fe(e),i=Ie(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ae(s)),[s,Ae(s)]}function Pn(e){const t=Ae(e);return[He(e),t,He(t)]}function He(e){return e.replace(/start|end/g,t=>yn[t])}function On(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:s;default:return[]}}function Cn(e,t,n,o){const r=ae(e);let i=On(Z(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(He)))),i}function Ae(e){return e.replace(/left|right|bottom|top/g,t=>xn[t])}function An(e){return{top:0,right:0,bottom:0,left:0,...e}}function ot(e){return typeof e!="number"?An(e):{top:e,right:e,bottom:e,left:e}}function Te(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function rt(e,t,n){let{reference:o,floating:r}=e;const i=le(t),s=Fe(t),a=Ie(s),c=Z(t),l=i==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,h=o[a]/2-r[a]/2;let u;switch(c){case"top":u={x:f,y:o.y-r.height};break;case"bottom":u={x:f,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:d};break;case"left":u={x:o.x-r.width,y:d};break;default:u={x:o.x,y:o.y}}switch(ae(t)){case"start":u[s]-=h*(n&&l?-1:1);break;case"end":u[s]+=h*(n&&l?-1:1);break}return u}const Tn=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:d}=rt(l,o,c),h=o,u={},p=0;for(let g=0;g<a.length;g++){const{name:m,fn:v}=a[g],{x:w,y:$,data:x,reset:y}=await v({x:f,y:d,initialPlacement:o,placement:h,strategy:r,middlewareData:u,rects:l,platform:s,elements:{reference:e,floating:t}});f=w??f,d=$??d,u={...u,[m]:{...u[m],...x}},y&&p<=50&&(p++,typeof y=="object"&&(y.placement&&(h=y.placement),y.rects&&(l=y.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):y.rects),{x:f,y:d}=rt(l,h,c)),g=-1)}return{x:f,y:d,placement:h,strategy:r,middlewareData:u}};async function me(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:u=0}=q(t,e),p=ot(u),m=a[h?d==="floating"?"reference":"floating":d],v=Te(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(m)))==null||n?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:f,strategy:c})),w=d==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,$=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement($))?await(i.getScale==null?void 0:i.getScale($))||{x:1,y:1}:{x:1,y:1},y=Te(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:$,strategy:c}):w);return{top:(v.top-y.top+p.top)/x.y,bottom:(y.bottom-v.bottom+p.bottom)/x.y,left:(v.left-y.left+p.left)/x.x,right:(y.right-v.right+p.right)/x.x}}const En=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:f=0}=q(e,t)||{};if(l==null)return{};const d=ot(f),h={x:n,y:o},u=Fe(r),p=Ie(u),g=await s.getDimensions(l),m=u==="y",v=m?"top":"left",w=m?"bottom":"right",$=m?"clientHeight":"clientWidth",x=i.reference[p]+i.reference[u]-h[u]-i.floating[p],y=h[u]-i.reference[u],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let C=P?P[$]:0;(!C||!await(s.isElement==null?void 0:s.isElement(P)))&&(C=a.floating[$]||i.floating[p]);const b=x/2-y/2,_=C/2-g[p]/2-1,M=Y(d[v],_),S=Y(d[w],_),E=M,z=C-g[p]-S,T=C/2-g[p]/2+b,R=Me(E,T,z),k=!c.arrow&&ae(r)!=null&&T!==R&&i.reference[p]/2-(T<E?M:S)-g[p]/2<0,A=k?T<E?T-E:T-z:0;return{[u]:h[u]+A,data:{[u]:R,centerOffset:T-R-A,...k&&{alignmentOffset:A}},reset:k}}}),Dn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...m}=q(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=Z(r),w=Z(a)===a,$=await(c.isRTL==null?void 0:c.isRTL(l.floating)),x=h||(w||!g?[Ae(a)]:Pn(a));!h&&p!=="none"&&x.push(...Cn(a,g,p,$));const y=[a,...x],P=await me(t,m),C=[];let b=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&C.push(P[v]),d){const E=bn(r,s,$);C.push(P[E[0]],P[E[1]])}if(b=[...b,{placement:r,overflows:C}],!C.every(E=>E<=0)){var _,M;const E=(((_=i.flip)==null?void 0:_.index)||0)+1,z=y[E];if(z)return{data:{index:E,overflows:b},reset:{placement:z}};let T=(M=b.filter(R=>R.overflows[0]<=0).sort((R,k)=>R.overflows[1]-k.overflows[1])[0])==null?void 0:M.placement;if(!T)switch(u){case"bestFit":{var S;const R=(S=b.map(k=>[k.placement,k.overflows.filter(A=>A>0).reduce((A,Q)=>A+Q,0)]).sort((k,A)=>k[1]-A[1])[0])==null?void 0:S[0];R&&(T=R);break}case"initialPlacement":T=a;break}if(r!==T)return{reset:{placement:T}}}return{}}}};function it(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function st(e){return $n.some(t=>e[t]>=0)}const Rn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=q(e,t);switch(o){case"referenceHidden":{const i=await me(t,{...r,elementContext:"reference"}),s=it(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:st(s)}}}case"escaped":{const i=await me(t,{...r,altBoundary:!0}),s=it(i,n.floating);return{data:{escapedOffsets:s,escaped:st(s)}}}default:return{}}}}};async function _n(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Z(n),a=ae(n),c=le(n)==="y",l=["left","top"].includes(s)?-1:1,f=i&&c?-1:1,d=q(t,e);let{mainAxis:h,crossAxis:u,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof p=="number"&&(u=a==="end"?p*-1:p),c?{x:u*f,y:h*l}:{x:h*l,y:u*f}}const Sn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,c=await _n(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},Ln=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:m=>{let{x:v,y:w}=m;return{x:v,y:w}}},...c}=q(e,t),l={x:n,y:o},f=await me(t,c),d=le(Z(r)),h=ke(d);let u=l[h],p=l[d];if(i){const m=h==="y"?"top":"left",v=h==="y"?"bottom":"right",w=u+f[m],$=u-f[v];u=Me(w,u,$)}if(s){const m=d==="y"?"top":"left",v=d==="y"?"bottom":"right",w=p+f[m],$=p-f[v];p=Me(w,p,$)}const g=a.fn({...t,[h]:u,[d]:p});return{...g,data:{x:g.x-n,y:g.y-o}}}}},Nn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=q(e,t),f={x:n,y:o},d=le(r),h=ke(d);let u=f[h],p=f[d];const g=q(a,t),m=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const $=h==="y"?"height":"width",x=i.reference[h]-i.floating[$]+m.mainAxis,y=i.reference[h]+i.reference[$]-m.mainAxis;u<x?u=x:u>y&&(u=y)}if(l){var v,w;const $=h==="y"?"width":"height",x=["top","left"].includes(Z(r)),y=i.reference[d]-i.floating[$]+(x&&((v=s.offset)==null?void 0:v[d])||0)+(x?0:m.crossAxis),P=i.reference[d]+i.reference[$]+(x?0:((w=s.offset)==null?void 0:w[d])||0)-(x?m.crossAxis:0);p<y?p=y:p>P&&(p=P)}return{[h]:u,[d]:p}}}},Mn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:s=()=>{},...a}=q(e,t),c=await me(t,a),l=Z(n),f=ae(n),d=le(n)==="y",{width:h,height:u}=o.floating;let p,g;l==="top"||l==="bottom"?(p=l,g=f===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(g=l,p=f==="end"?"top":"bottom");const m=u-c.top-c.bottom,v=h-c.left-c.right,w=Y(u-c[p],m),$=Y(h-c[g],v),x=!t.middlewareData.shift;let y=w,P=$;if(d?P=f||x?Y($,v):v:y=f||x?Y(w,m):m,x&&!f){const b=W(c.left,0),_=W(c.right,0),M=W(c.top,0),S=W(c.bottom,0);d?P=h-2*(b!==0||_!==0?b+_:W(c.left,c.right)):y=u-2*(M!==0||S!==0?M+S:W(c.top,c.bottom))}await s({...t,availableWidth:P,availableHeight:y});const C=await r.getDimensions(i.floating);return h!==C.width||u!==C.height?{reset:{rects:!0}}:{}}}};function fe(e){return ct(e)?(e.nodeName||"").toLowerCase():"#document"}function B(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function J(e){var t;return(t=(ct(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ct(e){return e instanceof Node||e instanceof B(e).Node}function X(e){return e instanceof Element||e instanceof B(e).Element}function j(e){return e instanceof HTMLElement||e instanceof B(e).HTMLElement}function at(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof B(e).ShadowRoot}function ge(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=U(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function kn(e){return["table","td","th"].includes(fe(e))}function We(e){const t=Be(),n=U(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 In(e){let t=te(e);for(;j(t)&&!de(t);){if(We(t))return t;t=te(t)}return null}function Be(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function de(e){return["html","body","#document"].includes(fe(e))}function U(e){return B(e).getComputedStyle(e)}function Ee(e){return X(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function te(e){if(fe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||at(e)&&e.host||J(e);return at(t)?t.host:t}function lt(e){const t=te(e);return de(t)?e.ownerDocument?e.ownerDocument.body:e.body:j(t)&&ge(t)?t:lt(t)}function ve(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=lt(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=B(r);return i?t.concat(s,s.visualViewport||[],ge(r)?r:[],s.frameElement&&n?ve(s.frameElement):[]):t.concat(r,ve(r,[],n))}function ft(e){const t=U(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=j(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=Oe(n)!==i||Oe(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function ze(e){return X(e)?e:e.contextElement}function ue(e){const t=ze(e);if(!j(t))return ee(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=ft(t);let s=(i?Oe(n.width):n.width)/o,a=(i?Oe(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Fn=ee(0);function dt(e){const t=B(e);return!Be()||!t.visualViewport?Fn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Hn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==B(e)?!1:t}function oe(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=ze(e);let s=ee(1);t&&(o?X(o)&&(s=ue(o)):s=ue(e));const a=Hn(i,n,o)?dt(i):ee(0);let c=(r.left+a.x)/s.x,l=(r.top+a.y)/s.y,f=r.width/s.x,d=r.height/s.y;if(i){const h=B(i),u=o&&X(o)?B(o):o;let p=h,g=p.frameElement;for(;g&&o&&u!==p;){const m=ue(g),v=g.getBoundingClientRect(),w=U(g),$=v.left+(g.clientLeft+parseFloat(w.paddingLeft))*m.x,x=v.top+(g.clientTop+parseFloat(w.paddingTop))*m.y;c*=m.x,l*=m.y,f*=m.x,d*=m.y,c+=$,l+=x,p=B(g),g=p.frameElement}}return Te({width:f,height:d,x:c,y:l})}const Wn=[":popover-open",":modal"];function Ue(e){return Wn.some(t=>{try{return e.matches(t)}catch{return!1}})}function Bn(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=J(o),a=t?Ue(t.floating):!1;if(o===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=ee(1);const f=ee(0),d=j(o);if((d||!d&&!i)&&((fe(o)!=="body"||ge(s))&&(c=Ee(o)),j(o))){const h=oe(o);l=ue(o),f.x=h.x+o.clientLeft,f.y=h.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+f.x,y:n.y*l.y-c.scrollTop*l.y+f.y}}function zn(e){return Array.from(e.getClientRects())}function ut(e){return oe(J(e)).left+Ee(e).scrollLeft}function Un(e){const t=J(e),n=Ee(e),o=e.ownerDocument.body,r=W(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=W(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+ut(e);const a=-n.scrollTop;return U(o).direction==="rtl"&&(s+=W(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}function Vn(e,t){const n=B(e),o=J(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,c=0;if(r){i=r.width,s=r.height;const l=Be();(!l||l&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:s,x:a,y:c}}function Yn(e,t){const n=oe(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=j(e)?ue(e):ee(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,l=o*i.y;return{width:s,height:a,x:c,y:l}}function pt(e,t,n){let o;if(t==="viewport")o=Vn(e,n);else if(t==="document")o=Un(J(e));else if(X(t))o=Yn(t,n);else{const r=dt(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return Te(o)}function ht(e,t){const n=te(e);return n===t||!X(n)||de(n)?!1:U(n).position==="fixed"||ht(n,t)}function Xn(e,t){const n=t.get(e);if(n)return n;let o=ve(e,[],!1).filter(a=>X(a)&&fe(a)!=="body"),r=null;const i=U(e).position==="fixed";let s=i?te(e):e;for(;X(s)&&!de(s);){const a=U(s),c=We(s);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ge(s)&&!c&&ht(e,s))?o=o.filter(f=>f!==s):r=a,s=te(s)}return t.set(e,o),o}function jn(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Ue(t)?[]:Xn(t,this._c):[].concat(n),o],a=s[0],c=s.reduce((l,f)=>{const d=pt(t,f,r);return l.top=W(d.top,l.top),l.right=Y(d.right,l.right),l.bottom=Y(d.bottom,l.bottom),l.left=W(d.left,l.left),l},pt(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Gn(e){const{width:t,height:n}=ft(e);return{width:t,height:n}}function Kn(e,t,n){const o=j(t),r=J(t),i=n==="fixed",s=oe(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=ee(0);if(o||!o&&!i)if((fe(t)!=="body"||ge(r))&&(a=Ee(t)),o){const d=oe(t,!0,i,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else r&&(c.x=ut(r));const l=s.left+a.scrollLeft-c.x,f=s.top+a.scrollTop-c.y;return{x:l,y:f,width:s.width,height:s.height}}function Ve(e){return U(e).position==="static"}function mt(e,t){return!j(e)||U(e).position==="fixed"?null:t?t(e):e.offsetParent}function gt(e,t){const n=B(e);if(Ue(e))return n;if(!j(e)){let r=te(e);for(;r&&!de(r);){if(X(r)&&!Ve(r))return r;r=te(r)}return n}let o=mt(e,t);for(;o&&kn(o)&&Ve(o);)o=mt(o,t);return o&&de(o)&&Ve(o)&&!We(o)?n:o||In(e)||n}const qn=async function(e){const t=this.getOffsetParent||gt,n=this.getDimensions,o=await n(e.floating);return{reference:Kn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Zn(e){return U(e).direction==="rtl"}const Jn={convertOffsetParentRelativeRectToViewportRelativeRect:Bn,getDocumentElement:J,getClippingRect:jn,getOffsetParent:gt,getElementRects:qn,getClientRects:zn,getDimensions:Gn,getScale:ue,isElement:X,isRTL:Zn};function Qn(e,t){let n=null,o;const r=J(e);function i(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:f,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;const u=Ce(f),p=Ce(r.clientWidth-(l+d)),g=Ce(r.clientHeight-(f+h)),m=Ce(l),w={rootMargin:-u+"px "+-p+"px "+-g+"px "+-m+"px",threshold:W(0,Y(1,c))||1};let $=!0;function x(y){const P=y[0].intersectionRatio;if(P!==c){if(!$)return s();P?s(!1,P):o=setTimeout(()=>{s(!1,1e-7)},1e3)}$=!1}try{n=new IntersectionObserver(x,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(x,w)}n.observe(e)}return s(!0),i}function eo(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=ze(e),f=r||i?[...l?ve(l):[],...ve(t)]:[];f.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=l&&a?Qn(l,n):null;let h=-1,u=null;s&&(u=new ResizeObserver(v=>{let[w]=v;w&&w.target===l&&u&&(u.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var $;($=u)==null||$.observe(t)})),n()}),l&&!c&&u.observe(l),u.observe(t));let p,g=c?oe(e):null;c&&m();function m(){const v=oe(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,p=requestAnimationFrame(m)}return n(),()=>{var v;f.forEach(w=>{r&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),d?.(),(v=u)==null||v.disconnect(),u=null,c&&cancelAnimationFrame(p)}}const to=Sn,no=Ln,oo=Dn,ro=Mn,io=Rn,vt=En,so=Nn,co=(e,t,n)=>{const o=new Map,r={platform:Jn,...n},i={...r.platform,_c:o};return Tn(e,t,{...r,platform:i})};var De=typeof document<"u"?qt:L;function Re(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,r;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(!Re(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!Re(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function wt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $t(e,t){const n=wt(e);return Math.round(t*n)/n}function xt(e){const t=D(e);return De(()=>{t.current=e}),t}function ao(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[f,d]=N({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,u]=N(o);Re(h,o)||u(o);const[p,g]=N(null),[m,v]=N(null),w=I(A=>{A!==P.current&&(P.current=A,g(A))},[]),$=I(A=>{A!==C.current&&(C.current=A,v(A))},[]),x=i||p,y=s||m,P=D(null),C=D(null),b=D(f),_=c!=null,M=xt(c),S=xt(r),E=I(()=>{if(!P.current||!C.current)return;const A={placement:t,strategy:n,middleware:h};S.current&&(A.platform=S.current),co(P.current,C.current,A).then(Q=>{const G={...Q,isPositioned:!0};z.current&&!Re(b.current,G)&&(b.current=G,Je(()=>{d(G)}))})},[h,t,n,S]);De(()=>{l===!1&&b.current.isPositioned&&(b.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[l]);const z=D(!1);De(()=>(z.current=!0,()=>{z.current=!1}),[]),De(()=>{if(x&&(P.current=x),y&&(C.current=y),x&&y){if(M.current)return M.current(x,y,E);E()}},[x,y,E,M,_]);const T=he(()=>({reference:P,floating:C,setReference:w,setFloating:$}),[w,$]),R=he(()=>({reference:x,floating:y}),[x,y]),k=he(()=>{const A={position:n,left:0,top:0};if(!R.floating)return A;const Q=$t(R.floating,f.x),G=$t(R.floating,f.y);return a?{...A,transform:"translate("+Q+"px, "+G+"px)",...wt(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Q,top:G}},[n,a,R.floating,f.x,f.y]);return he(()=>({...f,update:E,refs:T,elements:R,floatingStyles:k}),[f,E,T,R,k])}const lo=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?vt({element:o.current,padding:r}).fn(n):{}:o?vt({element:o,padding:r}).fn(n):{}}}},fo=(e,t)=>({...to(e),options:[e,t]}),uo=(e,t)=>({...no(e),options:[e,t]}),po=(e,t)=>({...so(e),options:[e,t]}),ho=(e,t)=>({...oo(e),options:[e,t]}),mo=(e,t)=>({...ro(e),options:[e,t]}),go=(e,t)=>({...io(e),options:[e,t]}),vo=(e,t)=>({...lo(e),options:[e,t]}),wo=H((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return O(ne.svg,F({},i,{ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:O("polygon",{points:"0,0 30,0 15,10"}))}),$o=wo;function xo(e){const[t,n]=N(void 0);return ce(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.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 yt="Popper",[bt,Pt]=Qe(yt),[yo,Ot]=bt(yt),bo=e=>{const{__scopePopper:t,children:n}=e,[o,r]=N(null);return O(yo,{scope:t,anchor:o,onAnchorChange:r},n)},Po="PopperAnchor",Oo=H((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=Ot(Po,n),s=D(null),a=ie(t,s);return L(()=>{i.onAnchorChange(o?.current||s.current)}),o?null:O(ne.div,F({},r,{ref:a}))}),Ct="PopperContent",[Co,Ao]=bt(Ct),To=H((e,t)=>{var n,o,r,i,s,a,c,l;const{__scopePopper:f,side:d="bottom",sideOffset:h=0,align:u="center",alignOffset:p=0,arrowPadding:g=0,avoidCollisions:m=!0,collisionBoundary:v=[],collisionPadding:w=0,sticky:$="partial",hideWhenDetached:x=!1,updatePositionStrategy:y="optimized",onPlaced:P,...C}=e,b=Ot(Ct,f),[_,M]=N(null),S=ie(t,pe=>M(pe)),[E,z]=N(null),T=xo(E),R=(n=T?.width)!==null&&n!==void 0?n:0,k=(o=T?.height)!==null&&o!==void 0?o:0,A=d+(u!=="center"?"-"+u:""),Q=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},G=Array.isArray(v)?v:[v],Nt=G.length>0,xe={padding:Q,boundary:G.filter(Do),altBoundary:Nt},{refs:Mt,floatingStyles:Ke,placement:kt,isPositioned:ye,middlewareData:re}=ao({strategy:"fixed",placement:A,whileElementsMounted:(...pe)=>eo(...pe,{animationFrame:y==="always"}),elements:{reference:b.anchor},middleware:[fo({mainAxis:h+k,alignmentAxis:p}),m&&uo({mainAxis:!0,crossAxis:!1,limiter:$==="partial"?po():void 0,...xe}),m&&ho({...xe}),mo({...xe,apply:({elements:pe,rects:Ze,availableWidth:Ut,availableHeight:Vt})=>{const{width:Yt,height:Xt}=Ze.reference,Pe=pe.floating.style;Pe.setProperty("--radix-popper-available-width",`${Ut}px`),Pe.setProperty("--radix-popper-available-height",`${Vt}px`),Pe.setProperty("--radix-popper-anchor-width",`${Yt}px`),Pe.setProperty("--radix-popper-anchor-height",`${Xt}px`)}}),E&&vo({element:E,padding:g}),Ro({arrowWidth:R,arrowHeight:k}),x&&go({strategy:"referenceHidden",...xe})]}),[qe,It]=Et(kt),be=se(P);ce(()=>{ye&&be?.()},[ye,be]);const Ft=(r=re.arrow)===null||r===void 0?void 0:r.x,Ht=(i=re.arrow)===null||i===void 0?void 0:i.y,Wt=((s=re.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[Bt,zt]=N();return ce(()=>{_&&zt(window.getComputedStyle(_).zIndex)},[_]),O("div",{ref:Mt.setFloating,"data-radix-popper-content-wrapper":"",style:{...Ke,transform:ye?Ke.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Bt,["--radix-popper-transform-origin"]:[(a=re.transformOrigin)===null||a===void 0?void 0:a.x,(c=re.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},O(Co,{scope:f,placedSide:qe,onArrowChange:z,arrowX:Ft,arrowY:Ht,shouldHideArrow:Wt},O(ne.div,F({"data-side":qe,"data-align":It},C,{ref:S,style:{...C.style,animation:ye?void 0:"none",opacity:(l=re.hide)!==null&&l!==void 0&&l.referenceHidden?0:void 0}}))))}),At="PopperArrow",Eo={top:"bottom",right:"left",bottom:"top",left:"right"},Tt=H(function(t,n){const{__scopePopper:o,...r}=t,i=Ao(At,o),s=Eo[i.placedSide];return O("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},O($o,F({},r,{ref:n,style:{...r.style,display:"block"}})))});function Do(e){return e!==null}const Ro=e=>({name:"transformOrigin",options:e,fn(t){var n,o,r,i,s;const{placement:a,rects:c,middlewareData:l}=t,d=((n=l.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=d?0:e.arrowWidth,u=d?0:e.arrowHeight,[p,g]=Et(a),m={start:"0%",center:"50%",end:"100%"}[g],v=((o=(r=l.arrow)===null||r===void 0?void 0:r.x)!==null&&o!==void 0?o:0)+h/2,w=((i=(s=l.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+u/2;let $="",x="";return p==="bottom"?($=d?m:`${v}px`,x=`${-u}px`):p==="top"?($=d?m:`${v}px`,x=`${c.floating.height+u}px`):p==="right"?($=`${-u}px`,x=d?m:`${w}px`):p==="left"&&($=`${c.floating.width+u}px`,x=d?m:`${w}px`),{data:{x:$,y:x}}}});function Et(e){const[t,n="center"]=e.split("-");return[t,n]}const _o=bo,So=Oo,Lo=To,No=Tt,Mo=H((e,t)=>{var n;const{container:o=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...r}=e;return o?Zt.createPortal(O(ne.div,F({},r,{ref:t})),o):null});function ko(e,t){return en((n,o)=>{const r=t[n][o];return r??n},e)}const Ye=e=>{const{present:t,children:n}=e,o=Io(t),r=typeof n=="function"?n({present:o.isPresent}):Jt.only(n),i=ie(o.ref,r.ref);return typeof n=="function"||o.isPresent?Qt(r,{ref:i}):null};Ye.displayName="Presence";function Io(e){const[t,n]=N(),o=D({}),r=D(e),i=D("none"),s=e?"mounted":"unmounted",[a,c]=ko(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return L(()=>{const l=_e(o.current);i.current=a==="mounted"?l:"none"},[a]),ce(()=>{const l=o.current,f=r.current;if(f!==e){const h=i.current,u=_e(l);e?c("MOUNT"):u==="none"||l?.display==="none"?c("UNMOUNT"):c(f&&h!==u?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),ce(()=>{if(t){const l=d=>{const u=_e(o.current).includes(d.animationName);d.target===t&&u&&Je(()=>c("ANIMATION_END"))},f=d=>{d.target===t&&(i.current=_e(o.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:I(l=>{l&&(o.current=getComputedStyle(l)),n(l)},[])}}function _e(e){return e?.animationName||"none"}function Fo({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=Ho({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:o,a=se(n),c=I(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else r(l)},[i,e,r,a]);return[s,c]}function Ho({defaultProp:e,onChange:t}){const n=N(e),[o]=n,r=D(o),i=se(t);return L(()=>{r.current!==o&&(i(o),r.current=o)},[o,r,i]),n}const Wo=H((e,t)=>O(ne.span,F({},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}}))),Bo=Wo,[Se,Cr]=Qe("Tooltip",[Pt]),Le=Pt(),zo="TooltipProvider",Uo=700,Xe="tooltip.open",[Vo,je]=Se(zo),Yo=e=>{const{__scopeTooltip:t,delayDuration:n=Uo,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:i}=e,[s,a]=N(!0),c=D(!1),l=D(0);return L(()=>{const f=l.current;return()=>window.clearTimeout(f)},[]),O(Vo,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:I(()=>{window.clearTimeout(l.current),a(!1)},[]),onClose:I(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a(!0),o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:I(f=>{c.current=f},[]),disableHoverableContent:r},i)},Ge="Tooltip",[Xo,we]=Se(Ge),jo=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=je(Ge,e.__scopeTooltip),l=Le(t),[f,d]=N(null),h=wn(),u=D(0),p=s??c.disableHoverableContent,g=a??c.delayDuration,m=D(!1),[v=!1,w]=Fo({prop:o,defaultProp:r,onChange:C=>{C?(c.onOpen(),document.dispatchEvent(new CustomEvent(Xe))):c.onClose(),i?.(C)}}),$=he(()=>v?m.current?"delayed-open":"instant-open":"closed",[v]),x=I(()=>{window.clearTimeout(u.current),m.current=!1,w(!0)},[w]),y=I(()=>{window.clearTimeout(u.current),w(!1)},[w]),P=I(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>{m.current=!0,w(!0)},g)},[g,w]);return L(()=>()=>window.clearTimeout(u.current),[]),O(_o,l,O(Xo,{scope:t,contentId:h,open:v,stateAttribute:$,trigger:f,onTriggerChange:d,onTriggerEnter:I(()=>{c.isOpenDelayed?P():x()},[c.isOpenDelayed,P,x]),onTriggerLeave:I(()=>{p?y():window.clearTimeout(u.current)},[y,p]),onOpen:x,onClose:y,disableHoverableContent:p},n))},Dt="TooltipTrigger",Go=H((e,t)=>{const{__scopeTooltip:n,...o}=e,r=we(Dt,n),i=je(Dt,n),s=Le(n),a=D(null),c=ie(t,a,r.onTriggerChange),l=D(!1),f=D(!1),d=I(()=>l.current=!1,[]);return L(()=>()=>document.removeEventListener("pointerup",d),[d]),O(So,F({asChild:!0},s),O(ne.button,F({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},o,{ref:c,onPointerMove:K(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),f.current=!0)}),onPointerLeave:K(e.onPointerLeave,()=>{r.onTriggerLeave(),f.current=!1}),onPointerDown:K(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:K(e.onFocus,()=>{l.current||r.onOpen()}),onBlur:K(e.onBlur,r.onClose),onClick:K(e.onClick,r.onClose)})))}),Rt="TooltipPortal",[Ko,qo]=Se(Rt,{forceMount:void 0}),Zo=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,i=we(Rt,t);return O(Ko,{scope:t,forceMount:n},O(Ye,{present:n||i.open},O(Mo,{asChild:!0,container:r},o)))},$e="TooltipContent",Jo=H((e,t)=>{const n=qo($e,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,s=we($e,e.__scopeTooltip);return O(Ye,{present:o||s.open},s.disableHoverableContent?O(_t,F({side:r},i,{ref:t})):O(Qo,F({side:r},i,{ref:t})))}),Qo=H((e,t)=>{const n=we($e,e.__scopeTooltip),o=je($e,e.__scopeTooltip),r=D(null),i=ie(t,r),[s,a]=N(null),{trigger:c,onClose:l}=n,f=r.current,{onPointerInTransitChange:d}=o,h=I(()=>{a(null),d(!1)},[d]),u=I((p,g)=>{const m=p.currentTarget,v={x:p.clientX,y:p.clientY},w=rr(v,m.getBoundingClientRect()),$=ir(v,w),x=sr(g.getBoundingClientRect()),y=ar([...$,...x]);a(y),d(!0)},[d]);return L(()=>()=>h(),[h]),L(()=>{if(c&&f){const p=m=>u(m,f),g=m=>u(m,c);return c.addEventListener("pointerleave",p),f.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",p),f.removeEventListener("pointerleave",g)}}},[c,f,u,h]),L(()=>{if(s){const p=g=>{const m=g.target,v={x:g.clientX,y:g.clientY},w=c?.contains(m)||f?.contains(m),$=!cr(v,s);w?h():$&&(h(),l())};return document.addEventListener("pointermove",p),()=>document.removeEventListener("pointermove",p)}},[c,f,s,l,h]),O(_t,F({},e,{ref:i}))}),[er,tr]=Se(Ge,{isInside:!1}),_t=H((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=we($e,n),l=Le(n),{onClose:f}=c;return L(()=>(document.addEventListener(Xe,f),()=>document.removeEventListener(Xe,f)),[f]),L(()=>{if(c.trigger){const d=h=>{const u=h.target;u!=null&&u.contains(c.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,f]),O(pn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:f},O(Lo,F({"data-state":c.stateAttribute},l,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)"}}),O(nn,null,o),O(er,{scope:n,isInside:!0},O(Bo,{id:c.contentId,role:"tooltip"},r||o))))}),nr="TooltipArrow",or=H((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Le(n);return tr(nr,n).isInside?null:O(No,F({},r,o,{ref:t}))});function rr(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function ir(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 sr(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function cr(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i].x,c=t[i].y,l=t[s].x,f=t[s].y;c>o!=f>o&&n<(l-a)*(o-c)/(f-c)+a&&(r=!r)}return r}function ar(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),lr(t)}function lr(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}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 fr=Yo,dr=jo,ur=Go,pr=Zo,hr=Jo,mr=or,St=H(({children:e,content:t,delayDuration:n,withArrow:o,z:r="popover",...i},s)=>{const[a,c]=N(!1);return V(fr,{delayDuration:n,children:V(dr,{onOpenChange:c,open:a,children:[V(ur,{asChild:!0,ref:s,children:e}),V(sn,{children:a&&V(pr,{forceMount:!0,children:V(an,{type:"pop",children:V(hr,{asChild:!0,sideOffset:5,...i,children:V(on,{bg:"dark.600",color:"white",px:"6",py:"4",rounded:"sm",z:r,children:[V(cn,{fontSize:"sm",children:t}),o&&V(mr,{})]})})})})})]})})});St.displayName="@optiaxiom/react/Tooltip";const Lt="ax-tooltip";tn(Lt,St);export{Lt as Tooltip};
@@ -0,0 +1 @@
1
+ import{P as _,F as f,a as m,i as l,k as d,p as y,u}from"./register-C6qZMQlw.js";import{r as x}from"./PresenceContext-BIyw24mj.js";import{y as g,o as $}from"./Box-9LrXBb0B.js";const v=()=>{const{isPresent:p,onExitComplete:o,register:t}=_(x),a=f();return m(()=>t(a),[a,t]),p?[!0]:[!1,()=>o(a)]};l("@layer optiaxiom._1kfj4ga1{._1p67mhc0{transform-origin:var(--radix-popper-transform-origin);transition-property:opacity,transform;transition-timing-function:ease}._1p67mhc1{transition-duration:.25s}._1p67mhc2{transition-duration:.4s}._1p67mhc3{transition-duration:.55s}._1p67mhc4{opacity:0}._1p67mhc5{opacity:0;transform:translateY(-15px)}._1p67mhc6{opacity:0;transform:translateX(15px)}._1p67mhc7{opacity:0;transform:translateX(-15px)}._1p67mhc8{opacity:0;transform:translateY(15px)}._1p67mhc9{opacity:0;transform:scale(.9)}._1p67mhca{opacity:0;transform:scale(.9) translateY(-10px)}._1p67mhcb{opacity:0;transform:scale(.9) translateX(10px)}._1p67mhcc{opacity:0;transform:scale(.9) translateX(-10px)}._1p67mhcd{opacity:0;transform:scale(.9) translateY(10px)}}");var X=g({base:"_1p67mhc0",variants:{duration:{sm:"_1p67mhc1",md:"_1p67mhc2",lg:"_1p67mhc3"},type:{fade:"_1p67mhc4","fade-down":"_1p67mhc5","fade-left":"_1p67mhc6","fade-right":"_1p67mhc7","fade-up":"_1p67mhc8",pop:"_1p67mhc9","pop-down":"_1p67mhca","pop-left":"_1p67mhcb","pop-right":"_1p67mhcc","pop-up":"_1p67mhcd"}}}),Y={sm:250,md:400,lg:550};const i=d(({children:p,className:o,duration:t="sm",type:a="fade",...n},c)=>{const[r,s]=v(),[e,h]=y(!1);return m(()=>{r&&h(!0)},[r]),m(()=>{!r&&setTimeout(s,Y[t])},[r]),u($,{asChild:!0,ref:c,...X({duration:t,type:e!==r?a:void 0},o),...n,children:p})});i.displayName="@optiaxiom/react/Transition";export{i as r};
@@ -0,0 +1,14 @@
1
+ import { Transition as Transition$1 } from '@optiaxiom/react';
2
+ import { C as ComponentAttributes } from './ComponentAttributes-D-k8G2HF.js';
3
+ import 'react';
4
+
5
+ declare const Transition = "ax-transition";
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ [Transition]: ComponentAttributes<typeof Transition$1>;
10
+ }
11
+ }
12
+ }
13
+
14
+ export { Transition };
@@ -0,0 +1 @@
1
+ import{r as o}from"./register-C6qZMQlw.js";import{r as t}from"./Transition-BD7yTsL2.js";import"./PresenceContext-BIyw24mj.js";import"./Box-9LrXBb0B.js";const r="ax-transition";o(r,t);export{r as Transition};
@@ -0,0 +1 @@
1
+ import{G as x,q as l,_ as b,P as _}from"./register-C6qZMQlw.js";function h(e,i=[]){let t=[];function a(u,n){const o=x(n),c=t.length;t=[...t,n];function f(p){const{scope:r,children:$,...d}=p,S=r?.[e][c]||o,m=l(()=>d,Object.values(d));return b(S.Provider,{value:m},$)}function v(p,r){const $=r?.[e][c]||o,d=_($);if(d)return d;if(n!==void 0)return n;throw new Error(`\`${p}\` must be used within \`${u}\``)}return f.displayName=u+"Provider",[f,v]}const s=()=>{const u=t.map(n=>x(n));return function(o){const c=o?.[e]||u;return l(()=>({[`__scope${e}`]:{...o,[e]:c}}),[o,c])}};return s.scopeName=e,[a,P(s,...i)]}function P(...e){const i=e[0];if(e.length===1)return i;const t=()=>{const a=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(u){const n=a.reduce((o,{useScope:c,scopeName:f})=>{const p=c(u)[`__scope${f}`];return{...o,...p}},{});return l(()=>({[`__scope${i.scopeName}`]:n}),[n])}};return t.scopeName=i.scopeName,t}export{h as $};
@@ -0,0 +1 @@
1
+ import{t as s,a as $}from"./Box-9LrXBb0B.js";import{k as n,a as p,_ as d,m}from"./register-C6qZMQlw.js";const l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],u=l.reduce((c,a)=>{const i=n((o,r)=>{const{asChild:t,...f}=o,e=t?$:a;return p(()=>{window[Symbol.for("radix-ui")]=!0},[]),d(e,s({},f,{ref:r}))});return i.displayName=`Primitive.${a}`,{...c,[a]:i}},{});function v(c,a){c&&m(()=>c.dispatchEvent(a))}export{u as $,v as a};
@@ -0,0 +1 @@
1
+ import{F as c,a as l,q as n,A as t}from"./register-C6qZMQlw.js";function f(e){const o=c(e);return l(()=>{o.current=e}),n(()=>(...r)=>{var a;return(a=o.current)===null||a===void 0?void 0:a.call(o,...r)},[])}const i=Boolean(globalThis?.document)?t:()=>{};export{f as $,i as a};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- const t={"ax-box":"Box","ax-button":"Button","ax-input":"Input","ax-paper":"Paper","ax-tooltip":"Tooltip"};function a(e){const o=e.nodeName.toLowerCase();o in t&&import(`./${t[o]}.js`)}document.querySelectorAll("*").forEach(a),new MutationObserver(e=>{e.forEach(({addedNodes:o})=>{o.forEach(a)})}).observe(document.body,{childList:!0,subtree:!0});
1
+ var d=(t,s)=>()=>(s||t((s={exports:{}}).exports,s),s.exports);var n=d(e=>{var e={".":"./dist/index.js","./Avatar":"./dist/Avatar.js","./AnimatePresence":"./dist/AnimatePresence.js","./Box":"./dist/Box.js","./Button":"./dist/Button.js","./ButtonGroup":"./dist/ButtonGroup.js","./Code":"./dist/Code.js","./Field":"./dist/Field.js","./Flex":"./dist/Flex.js","./Grid":"./dist/Grid.js","./Heading":"./dist/Heading.js","./Input":"./dist/Input.js","./Kbd":"./dist/Kbd.js","./Paper":"./dist/Paper.js","./Progress":"./dist/Progress.js","./Separator":"./dist/Separator.js","./Skeleton":"./dist/Skeleton.js","./Text":"./dist/Text.js","./Tooltip":"./dist/Tooltip.js","./Transition":"./dist/Transition.js"};const r=Object.keys(e).filter(t=>t!==".").map(t=>["ax"+t.slice(2).replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),t.slice(2)]),i=Object.fromEntries(r);function o(t){const s=t.nodeName.toLowerCase();s in i&&import(`./${i[s]}.js`)}document.querySelectorAll("*").forEach(o),new MutationObserver(t=>{t.forEach(({addedNodes:s})=>{s.forEach(o)})}).observe(document.body,{childList:!0,subtree:!0})});export default n();