@dhasdk/simple-ui 0.0.1
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.
- package/README.md +20 -0
- package/index.d.ts +5 -0
- package/index.js +76 -0
- package/index.mjs +6286 -0
- package/lib/Badge.d.ts +16 -0
- package/lib/Button.d.ts +12 -0
- package/lib/Card.d.ts +2 -0
- package/lib/Input.d.ts +16 -0
- package/lib/Select.d.ts +43 -0
- package/lib/Toggle.d.ts +8 -0
- package/package.json +12 -0
- package/style.css +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# simple-ui
|
|
2
|
+
|
|
3
|
+
This library was generated with [Nx](https://nx.dev).
|
|
4
|
+
|
|
5
|
+
## Running unit tests
|
|
6
|
+
|
|
7
|
+
Run `nx test simple-ui` to execute the unit tests via [Vitest](https://vitest.dev/).
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## Notes / To-Do
|
|
11
|
+
|
|
12
|
+
### styles.css import locations + storybook + build
|
|
13
|
+
|
|
14
|
+
The **`styles.css`** file is being imported in two different places,
|
|
15
|
+
1. the **.storybook/preview.ts** filew
|
|
16
|
+
2. the **src/index.ts** file.
|
|
17
|
+
|
|
18
|
+
Storybook only recognizes the styles when styles.css is imported via the preview.ts file, but I have left the import inside the index.ts file as I believe that is required to package those styles with a build.
|
|
19
|
+
|
|
20
|
+
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Badge } from './lib/Badge';
|
|
2
|
+
export { Button, buttonVariants } from './lib/Button';
|
|
3
|
+
export { Input } from './lib/Input';
|
|
4
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from './lib/Select';
|
|
5
|
+
export { Toggle } from './lib/Toggle';
|
package/index.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react/jsx-runtime"),K=require("react"),_n=require("react-dom");function Ln(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const d=Ln(K),ft=Ln(_n);function jn(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=jn(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function To(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=jn(e))&&(r&&(r+=" "),r+=t);return r}const ln=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,dn=To,Ut=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return dn(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(l=>{const f=n==null?void 0:n[l],p=s==null?void 0:s[l];if(f===null)return null;const m=ln(f)||ln(p);return o[l][m]}),i=n&&Object.entries(n).reduce((l,f)=>{let[p,m]=f;return m===void 0||(l[p]=m),l},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,f)=>{let{class:p,className:m,...g}=f;return Object.entries(g).every(v=>{let[u,h]=v;return Array.isArray(h)?h.includes({...s,...i}[u]):{...s,...i}[u]===h})?[...l,p,m]:l},[]);return dn(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)};function Dn(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Dn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ko(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Dn(e))&&(r&&(r+=" "),r+=t);return r}const Gt="-",Oo=e=>{const t=Io(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const i=a.split(Gt);return i[0]===""&&i.length!==1&&i.shift(),Bn(i,t)||Mo(a)},getConflictingClassGroupIds:(a,i)=>{const c=n[a]||[];return i&&r[a]?[...c,...r[a]]:c}}},Bn=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Bn(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Gt);return(a=t.validators.find(({validator:i})=>i(s)))==null?void 0:a.classGroupId},un=/^\[(.+)\]$/,Mo=e=>{if(un.test(e)){const t=un.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Io=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Lo(Object.entries(e.classGroups),n).forEach(([s,a])=>{kt(a,r,s,t)}),r},kt=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:fn(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(_o(o)){kt(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{kt(a,fn(t,s),n,r)})})},fn=(e,t)=>{let n=e;return t.split(Gt).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},_o=e=>e.isThemeGetter,Lo=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,i])=>[t+a,i])):s);return[n,o]}):e,jo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},Wn="!",Do=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,a=i=>{const c=[];let l=0,f=0,p;for(let h=0;h<i.length;h++){let b=i[h];if(l===0){if(b===o&&(r||i.slice(h,h+s)===t)){c.push(i.slice(f,h)),f=h+s;continue}if(b==="/"){p=h;continue}}b==="["?l++:b==="]"&&l--}const m=c.length===0?i:i.substring(f),g=m.startsWith(Wn),v=g?m.substring(1):m,u=p&&p>f?p-f:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:u}};return n?i=>n({className:i,parseClassName:a}):a},Bo=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Wo=e=>({cache:jo(e.cacheSize),parseClassName:Do(e),...Oo(e)}),Fo=/\s+/,$o=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],a=e.trim().split(Fo);let i="";for(let c=a.length-1;c>=0;c-=1){const l=a[c],{modifiers:f,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}=n(l);let v=!!g,u=r(v?m.substring(0,g):m);if(!u){if(!v){i=l+(i.length>0?" "+i:i);continue}if(u=r(m),!u){i=l+(i.length>0?" "+i:i);continue}v=!1}const h=Bo(f).join(":"),b=p?h+Wn:h,x=b+u;if(s.includes(x))continue;s.push(x);const y=o(u,v);for(let S=0;S<y.length;++S){const C=y[S];s.push(b+C)}i=l+(i.length>0?" "+i:i)}return i};function Vo(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Fn(t))&&(r&&(r+=" "),r+=n);return r}const Fn=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Fn(e[r]))&&(n&&(n+=" "),n+=t);return n};function zo(e,...t){let n,r,o,s=a;function a(c){const l=t.reduce((f,p)=>p(f),e());return n=Wo(l),r=n.cache.get,o=n.cache.set,s=i,i(c)}function i(c){const l=r(c);if(l)return l;const f=$o(c,n);return o(c,f),f}return function(){return s(Vo.apply(null,arguments))}}const H=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},$n=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ho=/^\d+\/\d+$/,Uo=new Set(["px","full","screen"]),Go=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ko=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Yo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Xo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,de=e=>Oe(e)||Uo.has(e)||Ho.test(e),he=e=>Le(e,"length",os),Oe=e=>!!e&&!Number.isNaN(Number(e)),wt=e=>Le(e,"number",Oe),He=e=>!!e&&Number.isInteger(Number(e)),Zo=e=>e.endsWith("%")&&Oe(e.slice(0,-1)),k=e=>$n.test(e),ge=e=>Go.test(e),Qo=new Set(["length","size","percentage"]),Jo=e=>Le(e,Qo,Vn),es=e=>Le(e,"position",Vn),ts=new Set(["image","url"]),ns=e=>Le(e,ts,is),rs=e=>Le(e,"",ss),Ue=()=>!0,Le=(e,t,n)=>{const r=$n.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},os=e=>Ko.test(e)&&!Yo.test(e),Vn=()=>!1,ss=e=>Xo.test(e),is=e=>qo.test(e),as=()=>{const e=H("colors"),t=H("spacing"),n=H("blur"),r=H("brightness"),o=H("borderColor"),s=H("borderRadius"),a=H("borderSpacing"),i=H("borderWidth"),c=H("contrast"),l=H("grayscale"),f=H("hueRotate"),p=H("invert"),m=H("gap"),g=H("gradientColorStops"),v=H("gradientColorStopPositions"),u=H("inset"),h=H("margin"),b=H("opacity"),x=H("padding"),y=H("saturate"),S=H("scale"),C=H("sepia"),R=H("skew"),E=H("space"),T=H("translate"),I=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",k,t],P=()=>[k,t],j=()=>["",de,he],M=()=>["auto",Oe,k],V=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],L=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",k],q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[Oe,k];return{cacheSize:500,separator:":",theme:{colors:[Ue],spacing:[de,he],blur:["none","",ge,k],brightness:Y(),borderColor:[e],borderRadius:["none","","full",ge,k],borderSpacing:P(),borderWidth:j(),contrast:Y(),grayscale:D(),hueRotate:Y(),invert:D(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[Zo,he],inset:B(),margin:B(),opacity:Y(),padding:P(),saturate:Y(),scale:Y(),sepia:D(),skew:Y(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",k]}],container:["container"],columns:[{columns:[ge]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...V(),k]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[u]}],"inset-x":[{"inset-x":[u]}],"inset-y":[{"inset-y":[u]}],start:[{start:[u]}],end:[{end:[u]}],top:[{top:[u]}],right:[{right:[u]}],bottom:[{bottom:[u]}],left:[{left:[u]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",He,k]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",k]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",He,k]}],"grid-cols":[{"grid-cols":[Ue]}],"col-start-end":[{col:["auto",{span:["full",He,k]},k]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[Ue]}],"row-start-end":[{row:["auto",{span:[He,k]},k]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",k]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",k]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...A()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...A(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...A(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",k,t]}],"min-w":[{"min-w":[k,t,"min","max","fit"]}],"max-w":[{"max-w":[k,t,"none","full","min","max","fit","prose",{screen:[ge]},ge]}],h:[{h:[k,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[k,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[k,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[k,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ge,he]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wt]}],"font-family":[{font:[Ue]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",k]}],"line-clamp":[{"line-clamp":["none",Oe,wt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",de,k]}],"list-image":[{"list-image":["none",k]}],"list-style-type":[{list:["none","disc","decimal",k]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",de,he]}],"underline-offset":[{"underline-offset":["auto",de,k]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",k]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...V(),es]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Jo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ns]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:O()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[de,k]}],"outline-w":[{outline:[de,he]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[de,he]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ge,rs]}],"shadow-color":[{shadow:[Ue]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...L(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":L()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",ge,k]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[y]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",k]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",k]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",k]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[He,k]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",k]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",k]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",k]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[de,he,wt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Ot=zo(as);function Q(...e){return Ot(ko(e))}const cs=Ut("",{variants:{variant:{default:"flex flex-nowrap box-border rounded-md border-t border-r border-b border-l-[1em] bg-white shadow-md w-[90vw] lg:max-w-[25em] mx-auto py-1 min-h-20 items-center border-l-[#0256AB]",MedCard:"flex flex-nowrap box-border rounded-md border-t border-r border-b border-l-[1em] bg-white shadow-md w-[90vw] lg:max-w-[25em] mx-auto py-1 min-h-20 items-center border-l-[#0256AB]",Outline:"rounded-lg border-dha-mc-true-blue bg-white border-2 text-dha-mc-true-blue disabled:border-dha-mc-secondary-border disabled:text-dha-mc-checkbox-inactive w-[35vw] min-w-min sm:max-w-[15em]"},size:{default:"",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 px-1"}},defaultVariants:{variant:"default",size:"default"}}),zn=K.forwardRef(({className:e,variant:t,size:n,image:r,alt:o,heading:s,color:a,children:i,headingClassName:c,bodyClassName:l,...f},p)=>w.jsxs("div",{className:Q(cs({variant:t,size:n,className:e})),ref:p,...f,children:[w.jsx("div",{className:"flex shrink-0 items-center justify-center w-[4em] h-full",children:r&&w.jsx("img",{src:r,alt:o,className:"min-w-[80%]"})}),w.jsxs("div",{className:"text-black ml-2 h-full",children:[s&&w.jsx("div",{className:Ot("font-bold text-base mb-1",c),children:s}),w.jsx("div",{className:Ot("text-sm",l),children:i})]})]}));zn.displayName="Badge";const Hn=Ut("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"rounded-xl bg-gray-200 hover:bg-blue-400 text-black hover:text-white hover:border-dha-mc-secondary-border disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive disabled:border-dha-mc-secondary-border disabled:border-2 w-[90vw] lg:max-w-[25em]",nonHover:"rounded-xl bg-dha-mc-true-blue text-white disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive disabled:border-dha-mc-secondary-border disabled:border-2 w-[90vw] lg:max-w-[25em]",MedCard:"rounded-xl bg-dha-mc-true-blue hover:bg-dha-mc-pale-blue text-white hover:dha-mc-primary-text hover:border-dha-mc-secondary-border disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive disabled:border-dha-mc-secondary-border disabled:border-2 w-[90vw] lg:max-w-[25em]",Outline:"rounded-lg border-dha-mc-true-blue bg-white border-2 text-dha-mc-true-blue disabled:border-dha-mc-secondary-border disabled:text-dha-mc-checkbox-inactive w-[35vw] min-w-min sm:max-w-[15em]"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 px-1"}},defaultVariants:{variant:"default",size:"default"}}),Un=d.forwardRef(({className:e,variant:t,size:n,handler:r,...o},s)=>w.jsxs(w.Fragment,{children:[w.jsx("button",{className:Q(Hn({variant:t,size:n,className:e})),ref:s,...o}),w.jsx("p",{className:""})]}));Un.displayName="Button";const ls=Ut("arial rounded-sm border-2 border-[#c6c6c6] p-1 ps-2 mx-2 bg-white hover:outline-[#c6c6c6] focus:outline-[#0256ab] active:outline-[#0256ab]",{variants:{variant:{nonHover:"rounded-xl text-black disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive disabled:border-dha-mc-secondary-border disabled:border-2 w-[90vw] lg:max-w-[25em]",default:"rounded-xl hover:bg-dha-mc-pale-blue text-black hover:dha-mc-primary-text hover:border-dha-mc-secondary-border disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive disabled:border-dha-mc-secondary-border disabled:border-2 w-[90vw] lg:max-w-[25em]",Outline:"rounded-lg border-dha-mc-true-blue bg-white border-2 text-dha-mc-true-blue disabled:border-dha-mc-secondary-border disabled:text-dha-mc-checkbox-inactive w-[35vw] min-w-min sm:max-w-[15em]"},inputSize:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 px-1"}},defaultVariants:{variant:"default",inputSize:"default"}}),Gn=d.forwardRef(({className:e,variant:t,inputSize:n,label:r,labelClassName:o,labelBaseColor:s="#fff",labelInputColor:a="#fff",textShadow:i=!1,...c},l)=>w.jsxs(w.Fragment,{children:[w.jsxs("span",{className:Q("absolute ms-5 -translate-y-1/2 px-2 text-[0.8em] w-auto h-auto",o),style:{background:`linear-gradient(to bottom, ${s} 0%, ${s} 50%, ${a} 60%, ${a} 100%)`,textShadow:i?`1px 1px 2px ${s}, 0 0 1em ${s}, 0 0 0.2em ${s}`:""},children:[c.required&&w.jsx("span",{className:"text-red-500",children:"*"}),r]}),w.jsx("input",{className:Q(ls({variant:t,inputSize:n,className:e})),ref:l,...c})]}));Gn.displayName="Input";function pn(e,[t,n]){return Math.min(n,Math.max(t,e))}function G(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ds(e,t=[]){let n=[];function r(s,a){const i=d.createContext(a),c=n.length;n=[...n,a];function l(p){const{scope:m,children:g,...v}=p,u=(m==null?void 0:m[e][c])||i,h=d.useMemo(()=>v,Object.values(v));return w.jsx(u.Provider,{value:h,children:g})}function f(p,m){const g=(m==null?void 0:m[e][c])||i,v=d.useContext(g);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}return l.displayName=s+"Provider",[l,f]}const o=()=>{const s=n.map(a=>d.createContext(a));return function(i){const c=(i==null?void 0:i[e])||s;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[r,us(o,...t)]}function us(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:c,scopeName:l})=>{const p=c(s)[`__scope${l}`];return{...i,...p}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function fs(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Kn(...e){return t=>e.forEach(n=>fs(n,t))}function X(...e){return d.useCallback(Kn(...e),e)}var Ke=d.forwardRef((e,t)=>{const{children:n,...r}=e,o=d.Children.toArray(n),s=o.find(ms);if(s){const a=s.props.children,i=o.map(c=>c===s?d.Children.count(a)>1?d.Children.only(null):d.isValidElement(a)?a.props.children:null:c);return w.jsx(Mt,{...r,ref:t,children:d.isValidElement(a)?d.cloneElement(a,void 0,i):null})}return w.jsx(Mt,{...r,ref:t,children:n})});Ke.displayName="Slot";var Mt=d.forwardRef((e,t)=>{const{children:n,...r}=e;if(d.isValidElement(n)){const o=gs(n);return d.cloneElement(n,{...hs(r,n.props),ref:t?Kn(t,o):o})}return d.Children.count(n)>1?d.Children.only(null):null});Mt.displayName="SlotClone";var ps=({children:e})=>w.jsx(w.Fragment,{children:e});function ms(e){return d.isValidElement(e)&&e.type===ps}function hs(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{s(...i),o(...i)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function gs(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function vs(e){const t=e+"CollectionProvider",[n,r]=ds(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=g=>{const{scope:v,children:u}=g,h=K.useRef(null),b=K.useRef(new Map).current;return w.jsx(o,{scope:v,itemMap:b,collectionRef:h,children:u})};a.displayName=t;const i=e+"CollectionSlot",c=K.forwardRef((g,v)=>{const{scope:u,children:h}=g,b=s(i,u),x=X(v,b.collectionRef);return w.jsx(Ke,{ref:x,children:h})});c.displayName=i;const l=e+"CollectionItemSlot",f="data-radix-collection-item",p=K.forwardRef((g,v)=>{const{scope:u,children:h,...b}=g,x=K.useRef(null),y=X(v,x),S=s(l,u);return K.useEffect(()=>(S.itemMap.set(x,{ref:x,...b}),()=>void S.itemMap.delete(x))),w.jsx(Ke,{[f]:"",ref:y,children:h})});p.displayName=l;function m(g){const v=s(e+"CollectionConsumer",g);return K.useCallback(()=>{const h=v.collectionRef.current;if(!h)return[];const b=Array.from(h.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((S,C)=>b.indexOf(S.ref.current)-b.indexOf(C.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:c,ItemSlot:p},m,r]}function Yn(e,t=[]){let n=[];function r(s,a){const i=d.createContext(a),c=n.length;n=[...n,a];const l=p=>{var b;const{scope:m,children:g,...v}=p,u=((b=m==null?void 0:m[e])==null?void 0:b[c])||i,h=d.useMemo(()=>v,Object.values(v));return w.jsx(u.Provider,{value:h,children:g})};l.displayName=s+"Provider";function f(p,m){var u;const g=((u=m==null?void 0:m[e])==null?void 0:u[c])||i,v=d.useContext(g);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[l,f]}const o=()=>{const s=n.map(a=>d.createContext(a));return function(i){const c=(i==null?void 0:i[e])||s;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[r,bs(o,...t)]}function bs(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:c,scopeName:l})=>{const p=c(s)[`__scope${l}`];return{...i,...p}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var xs=d.createContext(void 0);function ws(e){const t=d.useContext(xs);return e||t||"ltr"}var ys=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],U=ys.reduce((e,t)=>{const n=d.forwardRef((r,o)=>{const{asChild:s,...a}=r,i=s?Ke:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(i,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ss(e,t){e&&ft.flushSync(()=>e.dispatchEvent(t))}function ue(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Cs(e,t=globalThis==null?void 0:globalThis.document){const n=ue(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Es="DismissableLayer",It="dismissableLayer.update",Ps="dismissableLayer.pointerDownOutside",Rs="dismissableLayer.focusOutside",mn,Xn=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qn=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...c}=e,l=d.useContext(Xn),[f,p]=d.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=d.useState({}),v=X(t,E=>p(E)),u=Array.from(l.layers),[h]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=u.indexOf(h),x=f?u.indexOf(f):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,S=x>=b,C=Ts(E=>{const T=E.target,I=[...l.branches].some(_=>_.contains(T));!S||I||(o==null||o(E),a==null||a(E),E.defaultPrevented||i==null||i())},m),R=ks(E=>{const T=E.target;[...l.branches].some(_=>_.contains(T))||(s==null||s(E),a==null||a(E),E.defaultPrevented||i==null||i())},m);return Cs(E=>{x===l.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&i&&(E.preventDefault(),i()))},m),d.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(mn=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),hn(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=mn)}},[f,m,n,l]),d.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),hn())},[f,l]),d.useEffect(()=>{const E=()=>g({});return document.addEventListener(It,E),()=>document.removeEventListener(It,E)},[]),w.jsx(U.div,{...c,ref:v,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:G(e.onFocusCapture,R.onFocusCapture),onBlurCapture:G(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:G(e.onPointerDownCapture,C.onPointerDownCapture)})});qn.displayName=Es;var As="DismissableLayerBranch",Ns=d.forwardRef((e,t)=>{const n=d.useContext(Xn),r=d.useRef(null),o=X(t,r);return d.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),w.jsx(U.div,{...e,ref:o})});Ns.displayName=As;function Ts(e,t=globalThis==null?void 0:globalThis.document){const n=ue(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let c=function(){Zn(Ps,n,l,{discrete:!0})};const l={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ks(e,t=globalThis==null?void 0:globalThis.document){const n=ue(e),r=d.useRef(!1);return d.useEffect(()=>{const o=s=>{s.target&&!r.current&&Zn(Rs,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function hn(){const e=new CustomEvent(It);document.dispatchEvent(e)}function Zn(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ss(o,s):o.dispatchEvent(s)}var yt=0;function Os(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??gn()),document.body.insertAdjacentElement("beforeend",e[1]??gn()),yt++,()=>{yt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yt--}},[])}function gn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var St="focusScope.autoFocusOnMount",Ct="focusScope.autoFocusOnUnmount",vn={bubbles:!1,cancelable:!0},Ms="FocusScope",Qn=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,c]=d.useState(null),l=ue(o),f=ue(s),p=d.useRef(null),m=X(t,u=>c(u)),g=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let u=function(y){if(g.paused||!i)return;const S=y.target;i.contains(S)?p.current=S:ve(p.current,{select:!0})},h=function(y){if(g.paused||!i)return;const S=y.relatedTarget;S!==null&&(i.contains(S)||ve(p.current,{select:!0}))},b=function(y){if(document.activeElement===document.body)for(const C of y)C.removedNodes.length>0&&ve(i)};document.addEventListener("focusin",u),document.addEventListener("focusout",h);const x=new MutationObserver(b);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",h),x.disconnect()}}},[r,i,g.paused]),d.useEffect(()=>{if(i){xn.add(g);const u=document.activeElement;if(!i.contains(u)){const b=new CustomEvent(St,vn);i.addEventListener(St,l),i.dispatchEvent(b),b.defaultPrevented||(Is(Bs(Jn(i)),{select:!0}),document.activeElement===u&&ve(i))}return()=>{i.removeEventListener(St,l),setTimeout(()=>{const b=new CustomEvent(Ct,vn);i.addEventListener(Ct,f),i.dispatchEvent(b),b.defaultPrevented||ve(u??document.body,{select:!0}),i.removeEventListener(Ct,f),xn.remove(g)},0)}}},[i,l,f,g]);const v=d.useCallback(u=>{if(!n&&!r||g.paused)return;const h=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,b=document.activeElement;if(h&&b){const x=u.currentTarget,[y,S]=_s(x);y&&S?!u.shiftKey&&b===S?(u.preventDefault(),n&&ve(y,{select:!0})):u.shiftKey&&b===y&&(u.preventDefault(),n&&ve(S,{select:!0})):b===x&&u.preventDefault()}},[n,r,g.paused]);return w.jsx(U.div,{tabIndex:-1,...a,ref:m,onKeyDown:v})});Qn.displayName=Ms;function Is(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ve(r,{select:t}),document.activeElement!==n)return}function _s(e){const t=Jn(e),n=bn(t,e),r=bn(t.reverse(),e);return[n,r]}function Jn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function bn(e,t){for(const n of e)if(!Ls(n,{upTo:t}))return n}function Ls(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function js(e){return e instanceof HTMLInputElement&&"select"in e}function ve(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&js(e)&&t&&e.select()}}var xn=Ds();function Ds(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=wn(e,t),e.unshift(t)},remove(t){var n;e=wn(e,t),(n=e[0])==null||n.resume()}}}function wn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Bs(e){return e.filter(t=>t.tagName!=="A")}var ne=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},Ws=d.useId||(()=>{}),Fs=0;function Kt(e){const[t,n]=d.useState(Ws());return ne(()=>{n(r=>r??String(Fs++))},[e]),t?`radix-${t}`:""}const $s=["top","right","bottom","left"],be=Math.min,ee=Math.max,at=Math.round,Je=Math.floor,xe=e=>({x:e,y:e}),Vs={left:"right",right:"left",bottom:"top",top:"bottom"},zs={start:"end",end:"start"};function _t(e,t,n){return ee(e,be(t,n))}function fe(e,t){return typeof e=="function"?e(t):e}function pe(e){return e.split("-")[0]}function je(e){return e.split("-")[1]}function Yt(e){return e==="x"?"y":"x"}function Xt(e){return e==="y"?"height":"width"}function we(e){return["top","bottom"].includes(pe(e))?"y":"x"}function qt(e){return Yt(we(e))}function Hs(e,t,n){n===void 0&&(n=!1);const r=je(e),o=qt(e),s=Xt(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=ct(a)),[a,ct(a)]}function Us(e){const t=ct(e);return[Lt(e),t,Lt(t)]}function Lt(e){return e.replace(/start|end/g,t=>zs[t])}function Gs(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:a;default:return[]}}function Ks(e,t,n,r){const o=je(e);let s=Gs(pe(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(Lt)))),s}function ct(e){return e.replace(/left|right|bottom|top/g,t=>Vs[t])}function Ys(e){return{top:0,right:0,bottom:0,left:0,...e}}function er(e){return typeof e!="number"?Ys(e):{top:e,right:e,bottom:e,left:e}}function lt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function yn(e,t,n){let{reference:r,floating:o}=e;const s=we(t),a=qt(t),i=Xt(a),c=pe(t),l=s==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[i]/2-o[i]/2;let g;switch(c){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:p};break;case"left":g={x:r.x-o.width,y:p};break;default:g={x:r.x,y:r.y}}switch(je(t)){case"start":g[a]-=m*(n&&l?-1:1);break;case"end":g[a]+=m*(n&&l?-1:1);break}return g}const Xs=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=yn(l,r,c),m=r,g={},v=0;for(let u=0;u<i.length;u++){const{name:h,fn:b}=i[u],{x,y,data:S,reset:C}=await b({x:f,y:p,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:l,platform:a,elements:{reference:e,floating:t}});f=x??f,p=y??p,g={...g,[h]:{...g[h],...S}},C&&v<=50&&(v++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(l=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:f,y:p}=yn(l,m,c)),u=-1)}return{x:f,y:p,placement:m,strategy:o,middlewareData:g}};async function Ye(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=fe(t,e),v=er(g),h=i[m?p==="floating"?"reference":"floating":p],b=lt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(h)))==null||n?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:l,rootBoundary:f,strategy:c})),x=p==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),S=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},C=lt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:y,strategy:c}):x);return{top:(b.top-C.top+v.top)/S.y,bottom:(C.bottom-b.bottom+v.bottom)/S.y,left:(b.left-C.left+v.left)/S.x,right:(C.right-b.right+v.right)/S.x}}const qs=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:c}=t,{element:l,padding:f=0}=fe(e,t)||{};if(l==null)return{};const p=er(f),m={x:n,y:r},g=qt(o),v=Xt(g),u=await a.getDimensions(l),h=g==="y",b=h?"top":"left",x=h?"bottom":"right",y=h?"clientHeight":"clientWidth",S=s.reference[v]+s.reference[g]-m[g]-s.floating[v],C=m[g]-s.reference[g],R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let E=R?R[y]:0;(!E||!await(a.isElement==null?void 0:a.isElement(R)))&&(E=i.floating[y]||s.floating[v]);const T=S/2-C/2,I=E/2-u[v]/2-1,_=be(p[b],I),B=be(p[x],I),P=_,j=E-u[v]-B,M=E/2-u[v]/2+T,V=_t(P,M,j),O=!c.arrow&&je(o)!=null&&M!==V&&s.reference[v]/2-(M<P?_:B)-u[v]/2<0,L=O?M<P?M-P:M-j:0;return{[g]:m[g]+L,data:{[g]:V,centerOffset:M-V-L,...O&&{alignmentOffset:L}},reset:O}}}),Zs=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:c,elements:l}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:u=!0,...h}=fe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=pe(o),x=we(i),y=pe(i)===i,S=await(c.isRTL==null?void 0:c.isRTL(l.floating)),C=m||(y||!u?[ct(i)]:Us(i)),R=v!=="none";!m&&R&&C.push(...Ks(i,u,v,S));const E=[i,...C],T=await Ye(t,h),I=[];let _=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&I.push(T[b]),p){const M=Hs(o,a,S);I.push(T[M[0]],T[M[1]])}if(_=[..._,{placement:o,overflows:I}],!I.every(M=>M<=0)){var B,P;const M=(((B=s.flip)==null?void 0:B.index)||0)+1,V=E[M];if(V)return{data:{index:M,overflows:_},reset:{placement:V}};let O=(P=_.filter(L=>L.overflows[0]<=0).sort((L,A)=>L.overflows[1]-A.overflows[1])[0])==null?void 0:P.placement;if(!O)switch(g){case"bestFit":{var j;const L=(j=_.filter(A=>{if(R){const D=we(A.placement);return D===x||D==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(D=>D>0).reduce((D,q)=>D+q,0)]).sort((A,D)=>A[1]-D[1])[0])==null?void 0:j[0];L&&(O=L);break}case"initialPlacement":O=i;break}if(o!==O)return{reset:{placement:O}}}return{}}}};function Sn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Cn(e){return $s.some(t=>e[t]>=0)}const Qs=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=fe(e,t);switch(r){case"referenceHidden":{const s=await Ye(t,{...o,elementContext:"reference"}),a=Sn(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Cn(a)}}}case"escaped":{const s=await Ye(t,{...o,altBoundary:!0}),a=Sn(s,n.floating);return{data:{escapedOffsets:a,escaped:Cn(a)}}}default:return{}}}}};async function Js(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=pe(n),i=je(n),c=we(n)==="y",l=["left","top"].includes(a)?-1:1,f=s&&c?-1:1,p=fe(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof v=="number"&&(g=i==="end"?v*-1:v),c?{x:g*f,y:m*l}:{x:m*l,y:g*f}}const ei=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,c=await Js(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:a}}}}},ti=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:h=>{let{x:b,y:x}=h;return{x:b,y:x}}},...c}=fe(e,t),l={x:n,y:r},f=await Ye(t,c),p=we(pe(o)),m=Yt(p);let g=l[m],v=l[p];if(s){const h=m==="y"?"top":"left",b=m==="y"?"bottom":"right",x=g+f[h],y=g-f[b];g=_t(x,g,y)}if(a){const h=p==="y"?"top":"left",b=p==="y"?"bottom":"right",x=v+f[h],y=v-f[b];v=_t(x,v,y)}const u=i.fn({...t,[m]:g,[p]:v});return{...u,data:{x:u.x-n,y:u.y-r,enabled:{[m]:s,[p]:a}}}}}},ni=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:c=!0,crossAxis:l=!0}=fe(e,t),f={x:n,y:r},p=we(o),m=Yt(p);let g=f[m],v=f[p];const u=fe(i,t),h=typeof u=="number"?{mainAxis:u,crossAxis:0}:{mainAxis:0,crossAxis:0,...u};if(c){const y=m==="y"?"height":"width",S=s.reference[m]-s.floating[y]+h.mainAxis,C=s.reference[m]+s.reference[y]-h.mainAxis;g<S?g=S:g>C&&(g=C)}if(l){var b,x;const y=m==="y"?"width":"height",S=["top","left"].includes(pe(o)),C=s.reference[p]-s.floating[y]+(S&&((b=a.offset)==null?void 0:b[p])||0)+(S?0:h.crossAxis),R=s.reference[p]+s.reference[y]+(S?0:((x=a.offset)==null?void 0:x[p])||0)-(S?h.crossAxis:0);v<C?v=C:v>R&&(v=R)}return{[m]:g,[p]:v}}}},ri=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:c=()=>{},...l}=fe(e,t),f=await Ye(t,l),p=pe(o),m=je(o),g=we(o)==="y",{width:v,height:u}=s.floating;let h,b;p==="top"||p==="bottom"?(h=p,b=m===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(b=p,h=m==="end"?"top":"bottom");const x=u-f.top-f.bottom,y=v-f.left-f.right,S=be(u-f[h],x),C=be(v-f[b],y),R=!t.middlewareData.shift;let E=S,T=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=x),R&&!m){const _=ee(f.left,0),B=ee(f.right,0),P=ee(f.top,0),j=ee(f.bottom,0);g?T=v-2*(_!==0||B!==0?_+B:ee(f.left,f.right)):E=u-2*(P!==0||j!==0?P+j:ee(f.top,f.bottom))}await c({...t,availableWidth:T,availableHeight:E});const I=await a.getDimensions(i.floating);return v!==I.width||u!==I.height?{reset:{rects:!0}}:{}}}};function pt(){return typeof window<"u"}function De(e){return tr(e)?(e.nodeName||"").toLowerCase():"#document"}function te(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function le(e){var t;return(t=(tr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tr(e){return pt()?e instanceof Node||e instanceof te(e).Node:!1}function oe(e){return pt()?e instanceof Element||e instanceof te(e).Element:!1}function ce(e){return pt()?e instanceof HTMLElement||e instanceof te(e).HTMLElement:!1}function En(e){return!pt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof te(e).ShadowRoot}function qe(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=se(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function oi(e){return["table","td","th"].includes(De(e))}function mt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Zt(e){const t=Qt(),n=oe(e)?se(e):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(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function si(e){let t=ye(e);for(;ce(t)&&!_e(t);){if(Zt(t))return t;if(mt(t))return null;t=ye(t)}return null}function Qt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function _e(e){return["html","body","#document"].includes(De(e))}function se(e){return te(e).getComputedStyle(e)}function ht(e){return oe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ye(e){if(De(e)==="html")return e;const t=e.assignedSlot||e.parentNode||En(e)&&e.host||le(e);return En(t)?t.host:t}function nr(e){const t=ye(e);return _e(t)?e.ownerDocument?e.ownerDocument.body:e.body:ce(t)&&qe(t)?t:nr(t)}function Xe(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=nr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=te(o);if(s){const i=jt(a);return t.concat(a,a.visualViewport||[],qe(o)?o:[],i&&n?Xe(i):[])}return t.concat(o,Xe(o,[],n))}function jt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rr(e){const t=se(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ce(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=at(n)!==s||at(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function Jt(e){return oe(e)?e:e.contextElement}function Me(e){const t=Jt(e);if(!ce(t))return xe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=rr(t);let a=(s?at(n.width):n.width)/r,i=(s?at(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const ii=xe(0);function or(e){const t=te(e);return!Qt()||!t.visualViewport?ii:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ai(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==te(e)?!1:t}function Pe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Jt(e);let a=xe(1);t&&(r?oe(r)&&(a=Me(r)):a=Me(e));const i=ai(s,n,r)?or(s):xe(0);let c=(o.left+i.x)/a.x,l=(o.top+i.y)/a.y,f=o.width/a.x,p=o.height/a.y;if(s){const m=te(s),g=r&&oe(r)?te(r):r;let v=m,u=jt(v);for(;u&&r&&g!==v;){const h=Me(u),b=u.getBoundingClientRect(),x=se(u),y=b.left+(u.clientLeft+parseFloat(x.paddingLeft))*h.x,S=b.top+(u.clientTop+parseFloat(x.paddingTop))*h.y;c*=h.x,l*=h.y,f*=h.x,p*=h.y,c+=y,l+=S,v=te(u),u=jt(v)}}return lt({width:f,height:p,x:c,y:l})}function ci(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=le(r),i=t?mt(t.floating):!1;if(r===a||i&&s)return n;let c={scrollLeft:0,scrollTop:0},l=xe(1);const f=xe(0),p=ce(r);if((p||!p&&!s)&&((De(r)!=="body"||qe(a))&&(c=ht(r)),ce(r))){const m=Pe(r);l=Me(r),f.x=m.x+r.clientLeft,f.y=m.y+r.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 li(e){return Array.from(e.getClientRects())}function Dt(e,t){const n=ht(e).scrollLeft;return t?t.left+n:Pe(le(e)).left+n}function di(e){const t=le(e),n=ht(e),r=e.ownerDocument.body,o=ee(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ee(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Dt(e);const i=-n.scrollTop;return se(r).direction==="rtl"&&(a+=ee(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}function ui(e,t){const n=te(e),r=le(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,c=0;if(o){s=o.width,a=o.height;const l=Qt();(!l||l&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}return{width:s,height:a,x:i,y:c}}function fi(e,t){const n=Pe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ce(e)?Me(e):xe(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,c=o*s.x,l=r*s.y;return{width:a,height:i,x:c,y:l}}function Pn(e,t,n){let r;if(t==="viewport")r=ui(e,n);else if(t==="document")r=di(le(e));else if(oe(t))r=fi(t,n);else{const o=or(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return lt(r)}function sr(e,t){const n=ye(e);return n===t||!oe(n)||_e(n)?!1:se(n).position==="fixed"||sr(n,t)}function pi(e,t){const n=t.get(e);if(n)return n;let r=Xe(e,[],!1).filter(i=>oe(i)&&De(i)!=="body"),o=null;const s=se(e).position==="fixed";let a=s?ye(e):e;for(;oe(a)&&!_e(a);){const i=se(a),c=Zt(a);!c&&i.position==="fixed"&&(o=null),(s?!c&&!o:!c&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||qe(a)&&!c&&sr(e,a))?r=r.filter(f=>f!==a):o=i,a=ye(a)}return t.set(e,r),r}function mi(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?mt(t)?[]:pi(t,this._c):[].concat(n),r],i=a[0],c=a.reduce((l,f)=>{const p=Pn(t,f,o);return l.top=ee(p.top,l.top),l.right=be(p.right,l.right),l.bottom=be(p.bottom,l.bottom),l.left=ee(p.left,l.left),l},Pn(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function hi(e){const{width:t,height:n}=rr(e);return{width:t,height:n}}function gi(e,t,n){const r=ce(t),o=le(t),s=n==="fixed",a=Pe(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const c=xe(0);if(r||!r&&!s)if((De(t)!=="body"||qe(o))&&(i=ht(t)),r){const g=Pe(t,!0,s,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&(c.x=Dt(o));let l=0,f=0;if(o&&!r&&!s){const g=o.getBoundingClientRect();f=g.top+i.scrollTop,l=g.left+i.scrollLeft-Dt(o,g)}const p=a.left+i.scrollLeft-c.x-l,m=a.top+i.scrollTop-c.y-f;return{x:p,y:m,width:a.width,height:a.height}}function Et(e){return se(e).position==="static"}function Rn(e,t){if(!ce(e)||se(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return le(e)===n&&(n=n.ownerDocument.body),n}function ir(e,t){const n=te(e);if(mt(e))return n;if(!ce(e)){let o=ye(e);for(;o&&!_e(o);){if(oe(o)&&!Et(o))return o;o=ye(o)}return n}let r=Rn(e,t);for(;r&&oi(r)&&Et(r);)r=Rn(r,t);return r&&_e(r)&&Et(r)&&!Zt(r)?n:r||si(e)||n}const vi=async function(e){const t=this.getOffsetParent||ir,n=this.getDimensions,r=await n(e.floating);return{reference:gi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bi(e){return se(e).direction==="rtl"}const xi={convertOffsetParentRelativeRectToViewportRelativeRect:ci,getDocumentElement:le,getClippingRect:mi,getOffsetParent:ir,getElementRects:vi,getClientRects:li,getDimensions:hi,getScale:Me,isElement:oe,isRTL:bi};function wi(e,t){let n=null,r;const o=le(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),s();const{left:l,top:f,width:p,height:m}=e.getBoundingClientRect();if(i||t(),!p||!m)return;const g=Je(f),v=Je(o.clientWidth-(l+p)),u=Je(o.clientHeight-(f+m)),h=Je(l),x={rootMargin:-g+"px "+-v+"px "+-u+"px "+-h+"px",threshold:ee(0,be(1,c))||1};let y=!0;function S(C){const R=C[0].intersectionRatio;if(R!==c){if(!y)return a();R?a(!1,R):r=setTimeout(()=>{a(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(S,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return a(!0),s}function yi(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Jt(e),f=o||s?[...l?Xe(l):[],...Xe(t)]:[];f.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const p=l&&i?wi(l,n):null;let m=-1,g=null;a&&(g=new ResizeObserver(b=>{let[x]=b;x&&x.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=g)==null||y.observe(t)})),n()}),l&&!c&&g.observe(l),g.observe(t));let v,u=c?Pe(e):null;c&&h();function h(){const b=Pe(e);u&&(b.x!==u.x||b.y!==u.y||b.width!==u.width||b.height!==u.height)&&n(),u=b,v=requestAnimationFrame(h)}return n(),()=>{var b;f.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),p==null||p(),(b=g)==null||b.disconnect(),g=null,c&&cancelAnimationFrame(v)}}const Si=ei,Ci=ti,Ei=Zs,Pi=ri,Ri=Qs,An=qs,Ai=ni,Ni=(e,t,n)=>{const r=new Map,o={platform:xi,...n},s={...o.platform,_c:r};return Xs(e,t,{...o,platform:s})};var ot=typeof document<"u"?K.useLayoutEffect:K.useEffect;function dt(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,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!dt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!dt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ar(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Nn(e,t){const n=ar(e);return Math.round(t*n)/n}function Pt(e){const t=d.useRef(e);return ot(()=>{t.current=e}),t}function Ti(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:c,open:l}=e,[f,p]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=d.useState(r);dt(m,r)||g(r);const[v,u]=d.useState(null),[h,b]=d.useState(null),x=d.useCallback(A=>{A!==R.current&&(R.current=A,u(A))},[]),y=d.useCallback(A=>{A!==E.current&&(E.current=A,b(A))},[]),S=s||v,C=a||h,R=d.useRef(null),E=d.useRef(null),T=d.useRef(f),I=c!=null,_=Pt(c),B=Pt(o),P=Pt(l),j=d.useCallback(()=>{if(!R.current||!E.current)return;const A={placement:t,strategy:n,middleware:m};B.current&&(A.platform=B.current),Ni(R.current,E.current,A).then(D=>{const q={...D,isPositioned:P.current!==!1};M.current&&!dt(T.current,q)&&(T.current=q,ft.flushSync(()=>{p(q)}))})},[m,t,n,B,P]);ot(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,p(A=>({...A,isPositioned:!1})))},[l]);const M=d.useRef(!1);ot(()=>(M.current=!0,()=>{M.current=!1}),[]),ot(()=>{if(S&&(R.current=S),C&&(E.current=C),S&&C){if(_.current)return _.current(S,C,j);j()}},[S,C,j,_,I]);const V=d.useMemo(()=>({reference:R,floating:E,setReference:x,setFloating:y}),[x,y]),O=d.useMemo(()=>({reference:S,floating:C}),[S,C]),L=d.useMemo(()=>{const A={position:n,left:0,top:0};if(!O.floating)return A;const D=Nn(O.floating,f.x),q=Nn(O.floating,f.y);return i?{...A,transform:"translate("+D+"px, "+q+"px)",...ar(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:q}},[n,i,O.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:j,refs:V,elements:O,floatingStyles:L}),[f,j,V,O,L])}const ki=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?An({element:r.current,padding:o}).fn(n):{}:r?An({element:r,padding:o}).fn(n):{}}}},Oi=(e,t)=>({...Si(e),options:[e,t]}),Mi=(e,t)=>({...Ci(e),options:[e,t]}),Ii=(e,t)=>({...Ai(e),options:[e,t]}),_i=(e,t)=>({...Ei(e),options:[e,t]}),Li=(e,t)=>({...Pi(e),options:[e,t]}),ji=(e,t)=>({...Ri(e),options:[e,t]}),Di=(e,t)=>({...ki(e),options:[e,t]});var Bi="Arrow",cr=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return w.jsx(U.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});cr.displayName=Bi;var Wi=cr;function Fi(e,t=[]){let n=[];function r(s,a){const i=d.createContext(a),c=n.length;n=[...n,a];function l(p){const{scope:m,children:g,...v}=p,u=(m==null?void 0:m[e][c])||i,h=d.useMemo(()=>v,Object.values(v));return w.jsx(u.Provider,{value:h,children:g})}function f(p,m){const g=(m==null?void 0:m[e][c])||i,v=d.useContext(g);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}return l.displayName=s+"Provider",[l,f]}const o=()=>{const s=n.map(a=>d.createContext(a));return function(i){const c=(i==null?void 0:i[e])||s;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[r,$i(o,...t)]}function $i(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:c,scopeName:l})=>{const p=c(s)[`__scope${l}`];return{...i,...p}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function lr(e){const[t,n]=d.useState(void 0);return ne(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const c=s.borderBoxSize,l=Array.isArray(c)?c[0]:c;a=l.inlineSize,i=l.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var en="Popper",[dr,ur]=Fi(en),[Vi,fr]=dr(en),pr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return w.jsx(Vi,{scope:t,anchor:r,onAnchorChange:o,children:n})};pr.displayName=en;var mr="PopperAnchor",hr=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=fr(mr,n),a=d.useRef(null),i=X(t,a);return d.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:w.jsx(U.div,{...o,ref:i})});hr.displayName=mr;var tn="PopperContent",[zi,Hi]=dr(tn),gr=d.forwardRef((e,t)=>{var N,z,Z,$,W,F;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:v,...u}=e,h=fr(tn,n),[b,x]=d.useState(null),y=X(t,J=>x(J)),[S,C]=d.useState(null),R=lr(S),E=(R==null?void 0:R.width)??0,T=(R==null?void 0:R.height)??0,I=r+(s!=="center"?"-"+s:""),_=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},B=Array.isArray(l)?l:[l],P=B.length>0,j={padding:_,boundary:B.filter(Gi),altBoundary:P},{refs:M,floatingStyles:V,placement:O,isPositioned:L,middlewareData:A}=Ti({strategy:"fixed",placement:I,whileElementsMounted:(...J)=>yi(...J,{animationFrame:g==="always"}),elements:{reference:h.anchor},middleware:[Oi({mainAxis:o+T,alignmentAxis:a}),c&&Mi({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Ii():void 0,...j}),c&&_i({...j}),Li({...j,apply:({elements:J,rects:ie,availableWidth:$e,availableHeight:Ve})=>{const{width:ze,height:No}=ie.reference,Qe=J.floating.style;Qe.setProperty("--radix-popper-available-width",`${$e}px`),Qe.setProperty("--radix-popper-available-height",`${Ve}px`),Qe.setProperty("--radix-popper-anchor-width",`${ze}px`),Qe.setProperty("--radix-popper-anchor-height",`${No}px`)}}),S&&Di({element:S,padding:i}),Ki({arrowWidth:E,arrowHeight:T}),m&&ji({strategy:"referenceHidden",...j})]}),[D,q]=xr(O),Y=ue(v);ne(()=>{L&&(Y==null||Y())},[L,Y]);const We=(N=A.arrow)==null?void 0:N.x,Fe=(z=A.arrow)==null?void 0:z.y,me=((Z=A.arrow)==null?void 0:Z.centerOffset)!==0,[Ae,Ee]=d.useState();return ne(()=>{b&&Ee(window.getComputedStyle(b).zIndex)},[b]),w.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:L?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ae,"--radix-popper-transform-origin":[($=A.transformOrigin)==null?void 0:$.x,(W=A.transformOrigin)==null?void 0:W.y].join(" "),...((F=A.hide)==null?void 0:F.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(zi,{scope:n,placedSide:D,onArrowChange:C,arrowX:We,arrowY:Fe,shouldHideArrow:me,children:w.jsx(U.div,{"data-side":D,"data-align":q,...u,ref:y,style:{...u.style,animation:L?void 0:"none"}})})})});gr.displayName=tn;var vr="PopperArrow",Ui={top:"bottom",right:"left",bottom:"top",left:"right"},br=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Hi(vr,r),a=Ui[s.placedSide];return w.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:w.jsx(Wi,{...o,ref:n,style:{...o.style,display:"block"}})})});br.displayName=vr;function Gi(e){return e!==null}var Ki=e=>({name:"transformOrigin",options:e,fn(t){var h,b,x;const{placement:n,rects:r,middlewareData:o}=t,a=((h=o.arrow)==null?void 0:h.centerOffset)!==0,i=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[l,f]=xr(n),p={start:"0%",center:"50%",end:"100%"}[f],m=(((b=o.arrow)==null?void 0:b.x)??0)+i/2,g=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let v="",u="";return l==="bottom"?(v=a?p:`${m}px`,u=`${-c}px`):l==="top"?(v=a?p:`${m}px`,u=`${r.floating.height+c}px`):l==="right"?(v=`${-c}px`,u=a?p:`${g}px`):l==="left"&&(v=`${r.floating.width+c}px`,u=a?p:`${g}px`),{data:{x:v,y:u}}}});function xr(e){const[t,n="center"]=e.split("-");return[t,n]}var Yi=pr,Xi=hr,qi=gr,Zi=br,Qi="Portal",wr=d.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,s]=d.useState(!1);ne(()=>s(!0),[]);const a=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return a?_n.createPortal(w.jsx(U.div,{...r,ref:t}),a):null});wr.displayName=Qi;function Bt({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Ji({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:r,i=ue(n),c=d.useCallback(l=>{if(s){const p=typeof l=="function"?l(e):l;p!==e&&i(p)}else o(l)},[s,e,o,i]);return[a,c]}function Ji({defaultProp:e,onChange:t}){const n=d.useState(e),[r]=n,o=d.useRef(r),s=ue(t);return d.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}function yr(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ea="VisuallyHidden",Sr=d.forwardRef((e,t)=>w.jsx(U.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Sr.displayName=ea;var ta=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ne=new WeakMap,et=new WeakMap,tt={},Rt=0,Cr=function(e){return e&&(e.host||Cr(e.parentNode))},na=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Cr(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ra=function(e,t,n,r){var o=na(t,Array.isArray(e)?e:[e]);tt[n]||(tt[n]=new WeakMap);var s=tt[n],a=[],i=new Set,c=new Set(o),l=function(p){!p||i.has(p)||(i.add(p),l(p.parentNode))};o.forEach(l);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(m){if(i.has(m))f(m);else try{var g=m.getAttribute(r),v=g!==null&&g!=="false",u=(Ne.get(m)||0)+1,h=(s.get(m)||0)+1;Ne.set(m,u),s.set(m,h),a.push(m),u===1&&v&&et.set(m,!0),h===1&&m.setAttribute(n,"true"),v||m.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",m,b)}})};return f(t),i.clear(),Rt++,function(){a.forEach(function(p){var m=Ne.get(p)-1,g=s.get(p)-1;Ne.set(p,m),s.set(p,g),m||(et.has(p)||p.removeAttribute(r),et.delete(p)),g||p.removeAttribute(n)}),Rt--,Rt||(Ne=new WeakMap,Ne=new WeakMap,et=new WeakMap,tt={})}},oa=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=ta(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),ra(r,o,n,"aria-hidden")):function(){return null}},ae=function(){return ae=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ae.apply(this,arguments)};function Er(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function sa(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var st="right-scroll-bar-position",it="width-before-scroll-bar",ia="with-scroll-bars-hidden",aa="--removed-body-scroll-bar-size";function At(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ca(e,t){var n=K.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var la=typeof window<"u"?d.useLayoutEffect:d.useEffect,Tn=new WeakMap;function da(e,t){var n=ca(null,function(r){return e.forEach(function(o){return At(o,r)})});return la(function(){var r=Tn.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(i){s.has(i)||At(i,null)}),s.forEach(function(i){o.has(i)||At(i,a)})}Tn.set(n,e)},[e]),n}function ua(e){return e}function fa(e,t){t===void 0&&(t=ua);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var c=function(){var f=a;a=[],f.forEach(s)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(f){a.push(f),l()},filter:function(f){return a=a.filter(f),n}}}};return o}function pa(e){e===void 0&&(e={});var t=fa(null);return t.options=ae({async:!0,ssr:!1},e),t}var Pr=function(e){var t=e.sideCar,n=Er(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,ae({},n))};Pr.isSideCarExport=!0;function ma(e,t){return e.useMedium(t),Pr}var Rr=pa(),Nt=function(){},gt=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:Nt,onWheelCapture:Nt,onTouchMoveCapture:Nt}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,c=e.className,l=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,g=e.noIsolation,v=e.inert,u=e.allowPinchZoom,h=e.as,b=h===void 0?"div":h,x=e.gapMode,y=Er(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=m,C=da([n,t]),R=ae(ae({},y),o);return d.createElement(d.Fragment,null,f&&d.createElement(S,{sideCar:Rr,removeScrollBar:l,shards:p,noIsolation:g,inert:v,setCallbacks:s,allowPinchZoom:!!u,lockRef:n,gapMode:x}),a?d.cloneElement(d.Children.only(i),ae(ae({},R),{ref:C})):d.createElement(b,ae({},R,{className:c,ref:C}),i))});gt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};gt.classNames={fullWidth:it,zeroRight:st};var ha=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ga(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ha();return t&&e.setAttribute("nonce",t),e}function va(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ba(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var xa=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ga())&&(va(t,n),ba(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},wa=function(){var e=xa();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ar=function(){var e=wa(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ya={left:0,top:0,right:0,gap:0},Tt=function(e){return parseInt(e||"",10)||0},Sa=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Tt(n),Tt(r),Tt(o)]},Ca=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ya;var t=Sa(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ea=Ar(),Ie="data-scroll-locked",Pa=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
2
|
+
.`.concat(ia,` {
|
|
3
|
+
overflow: hidden `).concat(r,`;
|
|
4
|
+
padding-right: `).concat(i,"px ").concat(r,`;
|
|
5
|
+
}
|
|
6
|
+
body[`).concat(Ie,`] {
|
|
7
|
+
overflow: hidden `).concat(r,`;
|
|
8
|
+
overscroll-behavior: contain;
|
|
9
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
10
|
+
padding-left: `.concat(o,`px;
|
|
11
|
+
padding-top: `).concat(s,`px;
|
|
12
|
+
padding-right: `).concat(a,`px;
|
|
13
|
+
margin-left:0;
|
|
14
|
+
margin-top:0;
|
|
15
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
16
|
+
`),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.`).concat(st,` {
|
|
20
|
+
right: `).concat(i,"px ").concat(r,`;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.`).concat(it,` {
|
|
24
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.`).concat(st," .").concat(st,` {
|
|
28
|
+
right: 0 `).concat(r,`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.`).concat(it," .").concat(it,` {
|
|
32
|
+
margin-right: 0 `).concat(r,`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
body[`).concat(Ie,`] {
|
|
36
|
+
`).concat(aa,": ").concat(i,`px;
|
|
37
|
+
}
|
|
38
|
+
`)},kn=function(){var e=parseInt(document.body.getAttribute(Ie)||"0",10);return isFinite(e)?e:0},Ra=function(){d.useEffect(function(){return document.body.setAttribute(Ie,(kn()+1).toString()),function(){var e=kn()-1;e<=0?document.body.removeAttribute(Ie):document.body.setAttribute(Ie,e.toString())}},[])},Aa=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Ra();var s=d.useMemo(function(){return Ca(o)},[o]);return d.createElement(Ea,{styles:Pa(s,!t,o,n?"":"!important")})},Wt=!1;if(typeof window<"u")try{var nt=Object.defineProperty({},"passive",{get:function(){return Wt=!0,!0}});window.addEventListener("test",nt,nt),window.removeEventListener("test",nt,nt)}catch{Wt=!1}var Te=Wt?{passive:!1}:!1,Na=function(e){return e.tagName==="TEXTAREA"},Nr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Na(e)&&n[t]==="visible")},Ta=function(e){return Nr(e,"overflowY")},ka=function(e){return Nr(e,"overflowX")},On=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Tr(e,r);if(o){var s=kr(e,r),a=s[1],i=s[2];if(a>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Oa=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Ma=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Tr=function(e,t){return e==="v"?Ta(t):ka(t)},kr=function(e,t){return e==="v"?Oa(t):Ma(t)},Ia=function(e,t){return e==="h"&&t==="rtl"?-1:1},_a=function(e,t,n,r,o){var s=Ia(e,window.getComputedStyle(t).direction),a=s*r,i=n.target,c=t.contains(i),l=!1,f=a>0,p=0,m=0;do{var g=kr(e,i),v=g[0],u=g[1],h=g[2],b=u-h-s*v;(v||b)&&Tr(e,i)&&(p+=b,m+=v),i instanceof ShadowRoot?i=i.host:i=i.parentNode}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(f&&(Math.abs(p)<1||!o)||!f&&(Math.abs(m)<1||!o))&&(l=!0),l},rt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Mn=function(e){return[e.deltaX,e.deltaY]},In=function(e){return e&&"current"in e?e.current:e},La=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ja=function(e){return`
|
|
39
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
+
`)},Da=0,ke=[];function Ba(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(Da++)[0],s=d.useState(Ar)[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=sa([e.lockRef.current],(e.shards||[]).map(In),!0).filter(Boolean);return u.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=d.useCallback(function(u,h){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!a.current.allowPinchZoom;var b=rt(u),x=n.current,y="deltaX"in u?u.deltaX:x[0]-b[0],S="deltaY"in u?u.deltaY:x[1]-b[1],C,R=u.target,E=Math.abs(y)>Math.abs(S)?"h":"v";if("touches"in u&&E==="h"&&R.type==="range")return!1;var T=On(E,R);if(!T)return!0;if(T?C=E:(C=E==="v"?"h":"v",T=On(E,R)),!T)return!1;if(!r.current&&"changedTouches"in u&&(y||S)&&(r.current=C),!C)return!0;var I=r.current||C;return _a(I,h,u,I==="h"?y:S,!0)},[]),c=d.useCallback(function(u){var h=u;if(!(!ke.length||ke[ke.length-1]!==s)){var b="deltaY"in h?Mn(h):rt(h),x=t.current.filter(function(C){return C.name===h.type&&(C.target===h.target||h.target===C.shadowParent)&&La(C.delta,b)})[0];if(x&&x.should){h.cancelable&&h.preventDefault();return}if(!x){var y=(a.current.shards||[]).map(In).filter(Boolean).filter(function(C){return C.contains(h.target)}),S=y.length>0?i(h,y[0]):!a.current.noIsolation;S&&h.cancelable&&h.preventDefault()}}},[]),l=d.useCallback(function(u,h,b,x){var y={name:u,delta:h,target:b,should:x,shadowParent:Wa(b)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(S){return S!==y})},1)},[]),f=d.useCallback(function(u){n.current=rt(u),r.current=void 0},[]),p=d.useCallback(function(u){l(u.type,Mn(u),u.target,i(u,e.lockRef.current))},[]),m=d.useCallback(function(u){l(u.type,rt(u),u.target,i(u,e.lockRef.current))},[]);d.useEffect(function(){return ke.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Te),document.addEventListener("touchmove",c,Te),document.addEventListener("touchstart",f,Te),function(){ke=ke.filter(function(u){return u!==s}),document.removeEventListener("wheel",c,Te),document.removeEventListener("touchmove",c,Te),document.removeEventListener("touchstart",f,Te)}},[]);var g=e.removeScrollBar,v=e.inert;return d.createElement(d.Fragment,null,v?d.createElement(s,{styles:ja(o)}):null,g?d.createElement(Aa,{gapMode:e.gapMode}):null)}function Wa(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Fa=ma(Rr,Ba);var Or=d.forwardRef(function(e,t){return d.createElement(gt,ae({},e,{ref:t,sideCar:Fa}))});Or.classNames=gt.classNames;var $a=[" ","Enter","ArrowUp","ArrowDown"],Va=[" ","Enter"],Ze="Select",[vt,bt,za]=vs(Ze),[Be,Ac]=Yn(Ze,[za,ur]),xt=ur(),[Ha,Se]=Be(Ze),[Ua,Ga]=Be(Ze),Mr=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:i,onValueChange:c,dir:l,name:f,autoComplete:p,disabled:m,required:g,form:v}=e,u=xt(t),[h,b]=d.useState(null),[x,y]=d.useState(null),[S,C]=d.useState(!1),R=ws(l),[E=!1,T]=Bt({prop:r,defaultProp:o,onChange:s}),[I,_]=Bt({prop:a,defaultProp:i,onChange:c}),B=d.useRef(null),P=h?v||!!h.closest("form"):!0,[j,M]=d.useState(new Set),V=Array.from(j).map(O=>O.props.value).join(";");return w.jsx(Yi,{...u,children:w.jsxs(Ha,{required:g,scope:t,trigger:h,onTriggerChange:b,valueNode:x,onValueNodeChange:y,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:Kt(),value:I,onValueChange:_,open:E,onOpenChange:T,dir:R,triggerPointerDownPosRef:B,disabled:m,children:[w.jsx(vt.Provider,{scope:t,children:w.jsx(Ua,{scope:e.__scopeSelect,onNativeOptionAdd:d.useCallback(O=>{M(L=>new Set(L).add(O))},[]),onNativeOptionRemove:d.useCallback(O=>{M(L=>{const A=new Set(L);return A.delete(O),A})},[]),children:n})}),P?w.jsxs(oo,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:p,value:I,onChange:O=>_(O.target.value),disabled:m,form:v,children:[I===void 0?w.jsx("option",{value:""}):null,Array.from(j)]},V):null]})})};Mr.displayName=Ze;var Ir="SelectTrigger",_r=d.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=xt(n),a=Se(Ir,n),i=a.disabled||r,c=X(t,a.onTriggerChange),l=bt(n),f=d.useRef("touch"),[p,m,g]=so(u=>{const h=l().filter(y=>!y.disabled),b=h.find(y=>y.value===a.value),x=io(h,u,b);x!==void 0&&a.onValueChange(x.value)}),v=u=>{i||(a.onOpenChange(!0),g()),u&&(a.triggerPointerDownPosRef.current={x:Math.round(u.pageX),y:Math.round(u.pageY)})};return w.jsx(Xi,{asChild:!0,...s,children:w.jsx(U.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":ro(a.value)?"":void 0,...o,ref:c,onClick:G(o.onClick,u=>{u.currentTarget.focus(),f.current!=="mouse"&&v(u)}),onPointerDown:G(o.onPointerDown,u=>{f.current=u.pointerType;const h=u.target;h.hasPointerCapture(u.pointerId)&&h.releasePointerCapture(u.pointerId),u.button===0&&u.ctrlKey===!1&&u.pointerType==="mouse"&&(v(u),u.preventDefault())}),onKeyDown:G(o.onKeyDown,u=>{const h=p.current!=="";!(u.ctrlKey||u.altKey||u.metaKey)&&u.key.length===1&&m(u.key),!(h&&u.key===" ")&&$a.includes(u.key)&&(v(),u.preventDefault())})})})});_r.displayName=Ir;var Lr="SelectValue",jr=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...i}=e,c=Se(Lr,n),{onValueNodeHasChildrenChange:l}=c,f=s!==void 0,p=X(t,c.onValueNodeChange);return ne(()=>{l(f)},[l,f]),w.jsx(U.span,{...i,ref:p,style:{pointerEvents:"none"},children:ro(c.value)?w.jsx(w.Fragment,{children:a}):s})});jr.displayName=Lr;var Ka="SelectIcon",Dr=d.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return w.jsx(U.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Dr.displayName=Ka;var Ya="SelectPortal",Br=e=>w.jsx(wr,{asChild:!0,...e});Br.displayName=Ya;var Re="SelectContent",Wr=d.forwardRef((e,t)=>{const n=Se(Re,e.__scopeSelect),[r,o]=d.useState();if(ne(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?ft.createPortal(w.jsx(Fr,{scope:e.__scopeSelect,children:w.jsx(vt.Slot,{scope:e.__scopeSelect,children:w.jsx("div",{children:e.children})})}),s):null}return w.jsx($r,{...e,ref:t})});Wr.displayName=Re;var re=10,[Fr,Ce]=Be(Re),Xa="SelectContentImpl",$r=d.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:i,sideOffset:c,align:l,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:g,sticky:v,hideWhenDetached:u,avoidCollisions:h,...b}=e,x=Se(Re,n),[y,S]=d.useState(null),[C,R]=d.useState(null),E=X(t,N=>S(N)),[T,I]=d.useState(null),[_,B]=d.useState(null),P=bt(n),[j,M]=d.useState(!1),V=d.useRef(!1);d.useEffect(()=>{if(y)return oa(y)},[y]),Os();const O=d.useCallback(N=>{const[z,...Z]=P().map(F=>F.ref.current),[$]=Z.slice(-1),W=document.activeElement;for(const F of N)if(F===W||(F==null||F.scrollIntoView({block:"nearest"}),F===z&&C&&(C.scrollTop=0),F===$&&C&&(C.scrollTop=C.scrollHeight),F==null||F.focus(),document.activeElement!==W))return},[P,C]),L=d.useCallback(()=>O([T,y]),[O,T,y]);d.useEffect(()=>{j&&L()},[j,L]);const{onOpenChange:A,triggerPointerDownPosRef:D}=x;d.useEffect(()=>{if(y){let N={x:0,y:0};const z=$=>{var W,F;N={x:Math.abs(Math.round($.pageX)-(((W=D.current)==null?void 0:W.x)??0)),y:Math.abs(Math.round($.pageY)-(((F=D.current)==null?void 0:F.y)??0))}},Z=$=>{N.x<=10&&N.y<=10?$.preventDefault():y.contains($.target)||A(!1),document.removeEventListener("pointermove",z),D.current=null};return D.current!==null&&(document.addEventListener("pointermove",z),document.addEventListener("pointerup",Z,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",z),document.removeEventListener("pointerup",Z,{capture:!0})}}},[y,A,D]),d.useEffect(()=>{const N=()=>A(!1);return window.addEventListener("blur",N),window.addEventListener("resize",N),()=>{window.removeEventListener("blur",N),window.removeEventListener("resize",N)}},[A]);const[q,Y]=so(N=>{const z=P().filter(W=>!W.disabled),Z=z.find(W=>W.ref.current===document.activeElement),$=io(z,N,Z);$&&setTimeout(()=>$.ref.current.focus())}),We=d.useCallback((N,z,Z)=>{const $=!V.current&&!Z;(x.value!==void 0&&x.value===z||$)&&(I(N),$&&(V.current=!0))},[x.value]),Fe=d.useCallback(()=>y==null?void 0:y.focus(),[y]),me=d.useCallback((N,z,Z)=>{const $=!V.current&&!Z;(x.value!==void 0&&x.value===z||$)&&B(N)},[x.value]),Ae=r==="popper"?Ft:Vr,Ee=Ae===Ft?{side:i,sideOffset:c,align:l,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:g,sticky:v,hideWhenDetached:u,avoidCollisions:h}:{};return w.jsx(Fr,{scope:n,content:y,viewport:C,onViewportChange:R,itemRefCallback:We,selectedItem:T,onItemLeave:Fe,itemTextRefCallback:me,focusSelectedItem:L,selectedItemText:_,position:r,isPositioned:j,searchRef:q,children:w.jsx(Or,{as:Ke,allowPinchZoom:!0,children:w.jsx(Qn,{asChild:!0,trapped:x.open,onMountAutoFocus:N=>{N.preventDefault()},onUnmountAutoFocus:G(o,N=>{var z;(z=x.trigger)==null||z.focus({preventScroll:!0}),N.preventDefault()}),children:w.jsx(qn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:N=>N.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:w.jsx(Ae,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:N=>N.preventDefault(),...b,...Ee,onPlaced:()=>M(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:G(b.onKeyDown,N=>{const z=N.ctrlKey||N.altKey||N.metaKey;if(N.key==="Tab"&&N.preventDefault(),!z&&N.key.length===1&&Y(N.key),["ArrowUp","ArrowDown","Home","End"].includes(N.key)){let $=P().filter(W=>!W.disabled).map(W=>W.ref.current);if(["ArrowUp","End"].includes(N.key)&&($=$.slice().reverse()),["ArrowUp","ArrowDown"].includes(N.key)){const W=N.target,F=$.indexOf(W);$=$.slice(F+1)}setTimeout(()=>O($)),N.preventDefault()}})})})})})})});$r.displayName=Xa;var qa="SelectItemAlignedPosition",Vr=d.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Se(Re,n),a=Ce(Re,n),[i,c]=d.useState(null),[l,f]=d.useState(null),p=X(t,E=>f(E)),m=bt(n),g=d.useRef(!1),v=d.useRef(!0),{viewport:u,selectedItem:h,selectedItemText:b,focusSelectedItem:x}=a,y=d.useCallback(()=>{if(s.trigger&&s.valueNode&&i&&l&&u&&h&&b){const E=s.trigger.getBoundingClientRect(),T=l.getBoundingClientRect(),I=s.valueNode.getBoundingClientRect(),_=b.getBoundingClientRect();if(s.dir!=="rtl"){const W=_.left-T.left,F=I.left-W,J=E.left-F,ie=E.width+J,$e=Math.max(ie,T.width),Ve=window.innerWidth-re,ze=pn(F,[re,Math.max(re,Ve-$e)]);i.style.minWidth=ie+"px",i.style.left=ze+"px"}else{const W=T.right-_.right,F=window.innerWidth-I.right-W,J=window.innerWidth-E.right-F,ie=E.width+J,$e=Math.max(ie,T.width),Ve=window.innerWidth-re,ze=pn(F,[re,Math.max(re,Ve-$e)]);i.style.minWidth=ie+"px",i.style.right=ze+"px"}const B=m(),P=window.innerHeight-re*2,j=u.scrollHeight,M=window.getComputedStyle(l),V=parseInt(M.borderTopWidth,10),O=parseInt(M.paddingTop,10),L=parseInt(M.borderBottomWidth,10),A=parseInt(M.paddingBottom,10),D=V+O+j+A+L,q=Math.min(h.offsetHeight*5,D),Y=window.getComputedStyle(u),We=parseInt(Y.paddingTop,10),Fe=parseInt(Y.paddingBottom,10),me=E.top+E.height/2-re,Ae=P-me,Ee=h.offsetHeight/2,N=h.offsetTop+Ee,z=V+O+N,Z=D-z;if(z<=me){const W=B.length>0&&h===B[B.length-1].ref.current;i.style.bottom="0px";const F=l.clientHeight-u.offsetTop-u.offsetHeight,J=Math.max(Ae,Ee+(W?Fe:0)+F+L),ie=z+J;i.style.height=ie+"px"}else{const W=B.length>0&&h===B[0].ref.current;i.style.top="0px";const J=Math.max(me,V+u.offsetTop+(W?We:0)+Ee)+Z;i.style.height=J+"px",u.scrollTop=z-me+u.offsetTop}i.style.margin=`${re}px 0`,i.style.minHeight=q+"px",i.style.maxHeight=P+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[m,s.trigger,s.valueNode,i,l,u,h,b,s.dir,r]);ne(()=>y(),[y]);const[S,C]=d.useState();ne(()=>{l&&C(window.getComputedStyle(l).zIndex)},[l]);const R=d.useCallback(E=>{E&&v.current===!0&&(y(),x==null||x(),v.current=!1)},[y,x]);return w.jsx(Qa,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:g,onScrollButtonChange:R,children:w.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:w.jsx(U.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Vr.displayName=qa;var Za="SelectPopperPosition",Ft=d.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=re,...s}=e,a=xt(n);return w.jsx(qi,{...a,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ft.displayName=Za;var[Qa,nn]=Be(Re,{}),$t="SelectViewport",zr=d.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Ce($t,n),a=nn($t,n),i=X(t,s.onViewportChange),c=d.useRef(0);return w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),w.jsx(vt.Slot,{scope:n,children:w.jsx(U.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:G(o.onScroll,l=>{const f=l.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:m}=a;if(m!=null&&m.current&&p){const g=Math.abs(c.current-f.scrollTop);if(g>0){const v=window.innerHeight-re*2,u=parseFloat(p.style.minHeight),h=parseFloat(p.style.height),b=Math.max(u,h);if(b<v){const x=b+g,y=Math.min(v,x),S=x-y;p.style.height=y+"px",p.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,p.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});zr.displayName=$t;var Hr="SelectGroup",[Ja,ec]=Be(Hr),Ur=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Kt();return w.jsx(Ja,{scope:n,id:o,children:w.jsx(U.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Ur.displayName=Hr;var Gr="SelectLabel",Kr=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ec(Gr,n);return w.jsx(U.div,{id:o.id,...r,ref:t})});Kr.displayName=Gr;var ut="SelectItem",[tc,Yr]=Be(ut),Xr=d.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,i=Se(ut,n),c=Ce(ut,n),l=i.value===r,[f,p]=d.useState(s??""),[m,g]=d.useState(!1),v=X(t,x=>{var y;return(y=c.itemRefCallback)==null?void 0:y.call(c,x,r,o)}),u=Kt(),h=d.useRef("touch"),b=()=>{o||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return w.jsx(tc,{scope:n,value:r,disabled:o,textId:u,isSelected:l,onItemTextChange:d.useCallback(x=>{p(y=>y||((x==null?void 0:x.textContent)??"").trim())},[]),children:w.jsx(vt.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:w.jsx(U.div,{role:"option","aria-labelledby":u,"data-highlighted":m?"":void 0,"aria-selected":l&&m,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:v,onFocus:G(a.onFocus,()=>g(!0)),onBlur:G(a.onBlur,()=>g(!1)),onClick:G(a.onClick,()=>{h.current!=="mouse"&&b()}),onPointerUp:G(a.onPointerUp,()=>{h.current==="mouse"&&b()}),onPointerDown:G(a.onPointerDown,x=>{h.current=x.pointerType}),onPointerMove:G(a.onPointerMove,x=>{var y;h.current=x.pointerType,o?(y=c.onItemLeave)==null||y.call(c):h.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:G(a.onPointerLeave,x=>{var y;x.currentTarget===document.activeElement&&((y=c.onItemLeave)==null||y.call(c))}),onKeyDown:G(a.onKeyDown,x=>{var S;((S=c.searchRef)==null?void 0:S.current)!==""&&x.key===" "||(Va.includes(x.key)&&b(),x.key===" "&&x.preventDefault())})})})})});Xr.displayName=ut;var Ge="SelectItemText",qr=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=Se(Ge,n),i=Ce(Ge,n),c=Yr(Ge,n),l=Ga(Ge,n),[f,p]=d.useState(null),m=X(t,b=>p(b),c.onItemTextChange,b=>{var x;return(x=i.itemTextRefCallback)==null?void 0:x.call(i,b,c.value,c.disabled)}),g=f==null?void 0:f.textContent,v=d.useMemo(()=>w.jsx("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:u,onNativeOptionRemove:h}=l;return ne(()=>(u(v),()=>h(v)),[u,h,v]),w.jsxs(w.Fragment,{children:[w.jsx(U.span,{id:c.textId,...s,ref:m}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?ft.createPortal(s.children,a.valueNode):null]})});qr.displayName=Ge;var Zr="SelectItemIndicator",Qr=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Yr(Zr,n).isSelected?w.jsx(U.span,{"aria-hidden":!0,...r,ref:t}):null});Qr.displayName=Zr;var Vt="SelectScrollUpButton",Jr=d.forwardRef((e,t)=>{const n=Ce(Vt,e.__scopeSelect),r=nn(Vt,e.__scopeSelect),[o,s]=d.useState(!1),a=X(t,r.onScrollButtonChange);return ne(()=>{if(n.viewport&&n.isPositioned){let i=function(){const l=c.scrollTop>0;s(l)};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?w.jsx(to,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});Jr.displayName=Vt;var zt="SelectScrollDownButton",eo=d.forwardRef((e,t)=>{const n=Ce(zt,e.__scopeSelect),r=nn(zt,e.__scopeSelect),[o,s]=d.useState(!1),a=X(t,r.onScrollButtonChange);return ne(()=>{if(n.viewport&&n.isPositioned){let i=function(){const l=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<l;s(f)};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?w.jsx(to,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});eo.displayName=zt;var to=d.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Ce("SelectScrollButton",n),a=d.useRef(null),i=bt(n),c=d.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return d.useEffect(()=>()=>c(),[c]),ne(()=>{var f;const l=i().find(p=>p.ref.current===document.activeElement);(f=l==null?void 0:l.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),w.jsx(U.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:G(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:G(o.onPointerMove,()=>{var l;(l=s.onItemLeave)==null||l.call(s),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:G(o.onPointerLeave,()=>{c()})})}),nc="SelectSeparator",no=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return w.jsx(U.div,{"aria-hidden":!0,...r,ref:t})});no.displayName=nc;var Ht="SelectArrow",rc=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=xt(n),s=Se(Ht,n),a=Ce(Ht,n);return s.open&&a.position==="popper"?w.jsx(Zi,{...o,...r,ref:t}):null});rc.displayName=Ht;function ro(e){return e===""||e===void 0}var oo=d.forwardRef((e,t)=>{const{value:n,...r}=e,o=d.useRef(null),s=X(t,o),a=yr(n);return d.useEffect(()=>{const i=o.current,c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==n&&f){const p=new Event("change",{bubbles:!0});f.call(i,n),i.dispatchEvent(p)}},[a,n]),w.jsx(Sr,{asChild:!0,children:w.jsx("select",{...r,ref:s,defaultValue:n})})});oo.displayName="BubbleSelect";function so(e){const t=ue(e),n=d.useRef(""),r=d.useRef(0),o=d.useCallback(a=>{const i=n.current+a;t(i),function c(l){n.current=l,window.clearTimeout(r.current),l!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(i)},[t]),s=d.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function io(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=oc(e,Math.max(s,0));o.length===1&&(a=a.filter(l=>l!==n));const c=a.find(l=>l.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function oc(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var sc=Mr,ao=_r,ic=jr,ac=Dr,cc=Br,co=Wr,lc=zr,dc=Ur,lo=Kr,uo=Xr,uc=qr,fc=Qr,fo=Jr,po=eo,mo=no;/**
|
|
42
|
+
* @license lucide-react v0.447.0 - ISC
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the ISC license.
|
|
45
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/const pc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ho=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
|
|
47
|
+
* @license lucide-react v0.447.0 - ISC
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the ISC license.
|
|
50
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/var mc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
52
|
+
* @license lucide-react v0.447.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/const hc=K.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...i},c)=>K.createElement("svg",{ref:c,...mc,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ho("lucide",o),...i},[...a.map(([l,f])=>K.createElement(l,f)),...Array.isArray(s)?s:[s]]));/**
|
|
57
|
+
* @license lucide-react v0.447.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/const rn=(e,t)=>{const n=K.forwardRef(({className:r,...o},s)=>K.createElement(hc,{ref:s,iconNode:t,className:ho(`lucide-${pc(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
|
|
62
|
+
* @license lucide-react v0.447.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const gc=rn("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
67
|
+
* @license lucide-react v0.447.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const go=rn("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
72
|
+
* @license lucide-react v0.447.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const vc=rn("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),bc=({widthClass:e,children:t,...n})=>{const{componentWidth:r,setComponentWidth:o}=an();return K.useEffect(()=>{e!==r&&o(e===void 0?"":e)},[r,e]),w.jsx(sc,{...n,children:t})},xc=dc,wc=ic,vo=d.forwardRef(({triggerClassName:e,className:t,children:n,...r},o)=>{const{componentWidth:s}=an();return w.jsxs(ao,{ref:o,className:Q("flex border-2 border-gray-300 z-50 h-10 items-center justify-between rounded-sm bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e,s),...r,children:[n,w.jsx(ac,{asChild:!0,children:w.jsx(go,{className:"h-4 w-4 opacity-50 pointer-events-auto",role:"navigation"})})]})});vo.displayName=ao.displayName;const on=d.forwardRef(({arrowClassName:e,className:t,...n},r)=>w.jsx(fo,{ref:r,className:Q("flex cursor-default items-center justify-center py-1",e),...n,children:w.jsx(vc,{className:"h-4 w-4 pointer-events-auto","data-testid":"chevronup"})}));on.displayName=fo.displayName;const sn=d.forwardRef(({arrowClassName:e,className:t,...n},r)=>w.jsx(po,{ref:r,className:Q("flex cursor-default items-center justify-center py-1",e),...n,children:w.jsx(go,{className:"h-4 w-4 pointer-events-auto","data-testid":"chevrondown"})}));sn.displayName=po.displayName;const bo=d.forwardRef(({contentClassName:e,className:t,children:n,position:r="popper",...o},s)=>{const{componentWidth:a}=an();return w.jsx(cc,{children:w.jsxs(co,{ref:s,className:Q("border-2 border-gray-300 relative z-[60] min-w-[8rem] max-h-96 mt-[-6px] overflow-hidden rounded-sm bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"h-[var(--radix-select-content-available-height)] data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e,a),position:r,...o,children:[w.jsx(on,{}),w.jsx(lc,{className:Q("p-1",r==="popper"&&" h-[var(--radix-select-content-available-height)] min-w-[var(--radix-select-trigger-width)]"),children:n}),w.jsx(sn,{})]})})});bo.displayName=co.displayName;const xo=d.forwardRef(({labelClassName:e,className:t,...n},r)=>w.jsx(lo,{ref:r,className:Q("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...n}));xo.displayName=lo.displayName;const wo=d.forwardRef(({itemClassName:e,className:t,children:n,...r},o)=>w.jsxs(uo,{ref:o,className:Q("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[w.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:w.jsx(fc,{children:w.jsx(gc,{className:"h-4 w-4"})})}),w.jsx(uc,{children:n})]}));wo.displayName=uo.displayName;const yo=d.forwardRef(({separatorClassName:e,className:t,...n},r)=>w.jsx(mo,{ref:r,className:Q("-mx-1 my-1 h-px bg-muted",e),...n}));yo.displayName=mo.displayName;const yc=K.createContext(void 0),an=()=>{const e=K.useContext(yc);if(!e)throw new Error("useComponentWidth must be used within a ComponentWidthProvider");return e};var cn="Switch",[Sc,Nc]=Yn(cn),[Cc,Ec]=Sc(cn),So=d.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:s,required:a,disabled:i,value:c="on",onCheckedChange:l,form:f,...p}=e,[m,g]=d.useState(null),v=X(t,y=>g(y)),u=d.useRef(!1),h=m?f||!!m.closest("form"):!0,[b=!1,x]=Bt({prop:o,defaultProp:s,onChange:l});return w.jsxs(Cc,{scope:n,checked:b,disabled:i,children:[w.jsx(U.button,{type:"button",role:"switch","aria-checked":b,"aria-required":a,"data-state":Po(b),"data-disabled":i?"":void 0,disabled:i,value:c,...p,ref:v,onClick:G(e.onClick,y=>{x(S=>!S),h&&(u.current=y.isPropagationStopped(),u.current||y.stopPropagation())})}),h&&w.jsx(Pc,{control:m,bubbles:!u.current,name:r,value:c,checked:b,required:a,disabled:i,form:f,style:{transform:"translateX(-100%)"}})]})});So.displayName=cn;var Co="SwitchThumb",Eo=d.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=Ec(Co,n);return w.jsx(U.span,{"data-state":Po(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});Eo.displayName=Co;var Pc=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,s=d.useRef(null),a=yr(n),i=lr(t);return d.useEffect(()=>{const c=s.current,l=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(l,"checked").set;if(a!==n&&p){const m=new Event("click",{bubbles:r});p.call(c,n),c.dispatchEvent(m)}},[a,n,r]),w.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...e.style,...i,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Po(e){return e?"checked":"unchecked"}var Ro=So,Rc=Eo;const Ao=d.forwardRef(({className:e,thumbClassName:t,defaultChecked:n=!1,onCheckedChange:r,...o},s)=>{const a=i=>{r&&r(i)};return w.jsx(Ro,{className:Q("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-orange-400 data-[state=unchecked]:bg-input",e),onCheckedChange:a,defaultChecked:n,...o,ref:s,children:w.jsx(Rc,{className:Q("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0",t)})})});Ao.displayName=Ro.displayName;exports.Badge=zn;exports.Button=Un;exports.Input=Gn;exports.Select=bc;exports.SelectContent=bo;exports.SelectGroup=xc;exports.SelectItem=wo;exports.SelectLabel=xo;exports.SelectScrollDownButton=sn;exports.SelectScrollUpButton=on;exports.SelectSeparator=yo;exports.SelectTrigger=vo;exports.SelectValue=wc;exports.Toggle=Ao;exports.buttonVariants=Hn;
|