@epilot/volt-ui 1.0.0-alpha.19 → 1.0.0-alpha.20
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/dist/index.cjs.js +1 -1
- package/dist/index.es.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),L=require("react"),cr=require("react-dom");function ur(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const l=ur(L),Gt=ur(cr);function dr(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=dr(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function fr(){for(var e,t,o=0,n="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=dr(e))&&(n&&(n+=" "),n+=t);return n}const Fa=(e,t)=>{const o=new Array(e.length+t.length);for(let n=0;n<e.length;n++)o[n]=e[n];for(let n=0;n<t.length;n++)o[e.length+n]=t[n];return o},Va=(e,t)=>({classGroupId:e,validator:t}),pr=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),$t="-",Pn=[],Ba="arbitrary..",Wa=e=>{const t=qa(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return za(s);const a=s.split($t),c=a[0]===""&&a.length>1?1:0;return vr(a,c,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const c=n[s],u=o[s];return c?u?Fa(u,c):c:u||Pn}return o[s]||Pn}}},vr=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;const r=e[t],i=o.nextPart.get(r);if(i){const u=vr(e,t+1,i);if(u)return u}const s=o.validators;if(s===null)return;const a=t===0?e.join($t):e.slice(t).join($t),c=s.length;for(let u=0;u<c;u++){const f=s[u];if(f.validator(a))return f.classGroupId}},za=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),o=t.indexOf(":"),n=t.slice(0,o);return n?Ba+n:void 0})(),qa=e=>{const{theme:t,classGroups:o}=e;return Ha(o,t)},Ha=(e,t)=>{const o=pr();for(const n in e){const r=e[n];Ho(r,o,n,t)}return o},Ho=(e,t,o,n)=>{const r=e.length;for(let i=0;i<r;i++){const s=e[i];Ga(s,t,o,n)}},Ga=(e,t,o,n)=>{if(typeof e=="string"){Ua(e,t,o);return}if(typeof e=="function"){Ka(e,t,o,n);return}Za(e,t,o,n)},Ua=(e,t,o)=>{const n=e===""?t:mr(t,e);n.classGroupId=o},Ka=(e,t,o,n)=>{if(Ya(e)){Ho(e(n),t,o,n);return}t.validators===null&&(t.validators=[]),t.validators.push(Va(o,e))},Za=(e,t,o,n)=>{const r=Object.entries(e),i=r.length;for(let s=0;s<i;s++){const[a,c]=r[s];Ho(c,mr(t,a),o,n)}},mr=(e,t)=>{let o=e;const n=t.split($t),r=n.length;for(let i=0;i<r;i++){const s=n[i];let a=o.nextPart.get(s);a||(a=pr(),o.nextPart.set(s,a)),o=a}return o},Ya=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Xa=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),n=Object.create(null);const r=(i,s)=>{o[i]=s,t++,t>e&&(t=0,n=o,o=Object.create(null))};return{get(i){let s=o[i];if(s!==void 0)return s;if((s=n[i])!==void 0)return r(i,s),s},set(i,s){i in o?o[i]=s:r(i,s)}}},Io="!",Tn=":",Qa=[],An=(e,t,o,n,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:n,isExternal:r}),Ja=e=>{const{prefix:t,experimentalParseClassName:o}=e;let n=r=>{const i=[];let s=0,a=0,c=0,u;const f=r.length;for(let v=0;v<f;v++){const h=r[v];if(s===0&&a===0){if(h===Tn){i.push(r.slice(c,v)),c=v+1;continue}if(h==="/"){u=v;continue}}h==="["?s++:h==="]"?s--:h==="("?a++:h===")"&&a--}const p=i.length===0?r:r.slice(c);let m=p,g=!1;p.endsWith(Io)?(m=p.slice(0,-1),g=!0):p.startsWith(Io)&&(m=p.slice(1),g=!0);const b=u&&u>c?u-c:void 0;return An(i,g,m,b)};if(t){const r=t+Tn,i=n;n=s=>s.startsWith(r)?i(s.slice(r.length)):An(Qa,!1,s,void 0,!0)}if(o){const r=n;n=i=>o({className:i,parseClassName:r})}return n},el=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((o,n)=>{t.set(o,1e6+n)}),o=>{const n=[];let r=[];for(let i=0;i<o.length;i++){const s=o[i],a=s[0]==="[",c=t.has(s);a||c?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(s)):r.push(s)}return r.length>0&&(r.sort(),n.push(...r)),n}},tl=e=>({cache:Xa(e.cacheSize),parseClassName:Ja(e),sortModifiers:el(e),...Wa(e)}),ol=/\s+/,nl=(e,t)=>{const{parseClassName:o,getClassGroupId:n,getConflictingClassGroupIds:r,sortModifiers:i}=t,s=[],a=e.trim().split(ol);let c="";for(let u=a.length-1;u>=0;u-=1){const f=a[u],{isExternal:p,modifiers:m,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:v}=o(f);if(p){c=f+(c.length>0?" "+c:c);continue}let h=!!v,y=n(h?b.substring(0,v):b);if(!y){if(!h){c=f+(c.length>0?" "+c:c);continue}if(y=n(b),!y){c=f+(c.length>0?" "+c:c);continue}h=!1}const x=m.length===0?"":m.length===1?m[0]:i(m).join(":"),w=g?x+Io:x,C=w+y;if(s.indexOf(C)>-1)continue;s.push(C);const S=r(y,h);for(let T=0;T<S.length;++T){const P=S[T];s.push(w+P)}c=f+(c.length>0?" "+c:c)}return c},rl=(...e)=>{let t=0,o,n,r="";for(;t<e.length;)(o=e[t++])&&(n=gr(o))&&(r&&(r+=" "),r+=n);return r},gr=e=>{if(typeof e=="string")return e;let t,o="";for(let n=0;n<e.length;n++)e[n]&&(t=gr(e[n]))&&(o&&(o+=" "),o+=t);return o},il=(e,...t)=>{let o,n,r,i;const s=c=>{const u=t.reduce((f,p)=>p(f),e());return o=tl(u),n=o.cache.get,r=o.cache.set,i=a,a(c)},a=c=>{const u=n(c);if(u)return u;const f=nl(c,o);return r(c,f),f};return i=s,(...c)=>i(rl(...c))},sl=[],ee=e=>{const t=o=>o[e]||sl;return t.isThemeGetter=!0,t},hr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,al=/^\d+\/\d+$/,ll=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cl=/\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$/,ul=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,dl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,He=e=>al.test(e),M=e=>!!e&&!Number.isNaN(Number(e)),Ne=e=>!!e&&Number.isInteger(Number(e)),xo=e=>e.endsWith("%")&&M(e.slice(0,-1)),Re=e=>ll.test(e),pl=()=>!0,vl=e=>cl.test(e)&&!ul.test(e),br=()=>!1,ml=e=>dl.test(e),gl=e=>fl.test(e),hl=e=>!A(e)&&!N(e),xl=e=>et(e,Cr,br),A=e=>hr.test(e),Ve=e=>et(e,Sr,vl),bo=e=>et(e,Sl,M),Nn=e=>et(e,yr,br),bl=e=>et(e,wr,gl),Et=e=>et(e,Rr,ml),N=e=>xr.test(e),ct=e=>tt(e,Sr),yl=e=>tt(e,Rl),In=e=>tt(e,yr),wl=e=>tt(e,Cr),Cl=e=>tt(e,wr),Pt=e=>tt(e,Rr,!0),et=(e,t,o)=>{const n=hr.exec(e);return n?n[1]?t(n[1]):o(n[2]):!1},tt=(e,t,o=!1)=>{const n=xr.exec(e);return n?n[1]?t(n[1]):o:!1},yr=e=>e==="position"||e==="percentage",wr=e=>e==="image"||e==="url",Cr=e=>e==="length"||e==="size"||e==="bg-size",Sr=e=>e==="length",Sl=e=>e==="number",Rl=e=>e==="family-name",Rr=e=>e==="shadow",El=()=>{const e=ee("color"),t=ee("font"),o=ee("text"),n=ee("font-weight"),r=ee("tracking"),i=ee("leading"),s=ee("breakpoint"),a=ee("container"),c=ee("spacing"),u=ee("radius"),f=ee("shadow"),p=ee("inset-shadow"),m=ee("text-shadow"),g=ee("drop-shadow"),b=ee("blur"),v=ee("perspective"),h=ee("aspect"),y=ee("ease"),x=ee("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...C(),N,A],T=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],R=()=>[N,A,c],j=()=>[He,"full","auto",...R()],D=()=>[Ne,"none","subgrid",N,A],z=()=>["auto",{span:["full",Ne,N,A]},Ne,N,A],q=()=>[Ne,"auto",N,A],V=()=>["auto","min","max","fr",N,A],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],H=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...R()],$=()=>[He,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],E=()=>[e,N,A],K=()=>[...C(),In,Nn,{position:[N,A]}],te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ae=()=>["auto","cover","contain",wl,xl,{size:[N,A]}],Se=()=>[xo,ct,Ve],Q=()=>["","none","full",u,N,A],X=()=>["",M,ct,Ve],le=()=>["solid","dashed","dotted","double"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[M,xo,In,Nn],Z=()=>["","none",b,N,A],J=()=>["none",M,N,A],U=()=>["none",M,N,A],G=()=>[M,N,A],B=()=>[He,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Re],breakpoint:[Re],color:[pl],container:[Re],"drop-shadow":[Re],ease:["in","out","in-out"],font:[hl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Re],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Re],shadow:[Re],spacing:["px",M],text:[Re],"text-shadow":[Re],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",He,A,N,h]}],container:["container"],columns:[{columns:[M,A,N,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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"],sr:["sr-only","not-sr-only"],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:S()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:j()}],"inset-x":[{"inset-x":j()}],"inset-y":[{"inset-y":j()}],start:[{start:j()}],end:[{end:j()}],top:[{top:j()}],right:[{right:j()}],bottom:[{bottom:j()}],left:[{left:j()}],visibility:["visible","invisible","collapse"],z:[{z:[Ne,"auto",N,A]}],basis:[{basis:[He,"full","auto",a,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[M,He,"auto","initial","none",A]}],grow:[{grow:["",M,N,A]}],shrink:[{shrink:["",M,N,A]}],order:[{order:[Ne,"first","last","none",N,A]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...H(),"normal"]}],"justify-self":[{"justify-self":["auto",...H()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...H(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...H(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...H(),"baseline"]}],"place-self":[{"place-self":["auto",...H()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[a,"screen",...$()]}],"min-w":[{"min-w":[a,"screen","none",...$()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",o,ct,Ve]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,N,bo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xo,A]}],"font-family":[{font:[yl,A,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,N,A]}],"line-clamp":[{"line-clamp":[M,"none",N,bo]}],leading:[{leading:[i,...R()]}],"list-image":[{"list-image":["none",N,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",N,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[M,"from-font","auto",N,Ve]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[M,"auto",N,A]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N,A]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",N,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:K()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:ae()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ne,N,A],radial:["",N,A],conic:[Ne,N,A]},Cl,bl]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:Se()}],"gradient-via-pos":[{via:Se()}],"gradient-to-pos":[{to:Se()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...le(),"hidden","none"]}],"divide-style":[{divide:[...le(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[M,N,A]}],"outline-w":[{outline:["",M,ct,Ve]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",f,Pt,Et]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",p,Pt,Et]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[M,Ve]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",m,Pt,Et]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[M,N,A]}],"mix-blend":[{"mix-blend":[...me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[M]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[N,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[M]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:K()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:ae()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",N,A]}],filter:[{filter:["","none",N,A]}],blur:[{blur:Z()}],brightness:[{brightness:[M,N,A]}],contrast:[{contrast:[M,N,A]}],"drop-shadow":[{"drop-shadow":["","none",g,Pt,Et]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",M,N,A]}],"hue-rotate":[{"hue-rotate":[M,N,A]}],invert:[{invert:["",M,N,A]}],saturate:[{saturate:[M,N,A]}],sepia:[{sepia:["",M,N,A]}],"backdrop-filter":[{"backdrop-filter":["","none",N,A]}],"backdrop-blur":[{"backdrop-blur":Z()}],"backdrop-brightness":[{"backdrop-brightness":[M,N,A]}],"backdrop-contrast":[{"backdrop-contrast":[M,N,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",M,N,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[M,N,A]}],"backdrop-invert":[{"backdrop-invert":["",M,N,A]}],"backdrop-opacity":[{"backdrop-opacity":[M,N,A]}],"backdrop-saturate":[{"backdrop-saturate":[M,N,A]}],"backdrop-sepia":[{"backdrop-sepia":["",M,N,A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",N,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[M,"initial",N,A]}],ease:[{ease:["linear","initial",y,N,A]}],delay:[{delay:[M,N,A]}],animate:[{animate:["none",x,N,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,N,A]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:U()}],"scale-x":[{"scale-x":U()}],"scale-y":[{"scale-y":U()}],"scale-z":[{"scale-z":U()}],"scale-3d":["scale-3d"],skew:[{skew:G()}],"skew-x":[{"skew-x":G()}],"skew-y":[{"skew-y":G()}],transform:[{transform:[N,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:B()}],"translate-x":[{"translate-x":B()}],"translate-y":[{"translate-y":B()}],"translate-z":[{"translate-z":B()}],"translate-none":["translate-none"],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",N,A]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",N,A]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[M,ct,Ve,bo]}],stroke:[{stroke:["none",...E()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Pl=il(El),k=(...e)=>Pl(fr(e));function kn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function De(...e){return t=>{let o=!1;const n=e.map(r=>{const i=kn(r,t);return!o&&typeof i=="function"&&(o=!0),i});if(o)return()=>{for(let r=0;r<n.length;r++){const i=n[r];typeof i=="function"?i():kn(e[r],null)}}}}function W(...e){return l.useCallback(De(...e),e)}var Tl=Symbol.for("react.lazy"),Lt=l[" use ".trim().toString()];function Al(e){return typeof e=="object"&&e!==null&&"then"in e}function Er(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Tl&&"_payload"in e&&Al(e._payload)}function Nl(e){const t=Il(e),o=l.forwardRef((n,r)=>{let{children:i,...s}=n;Er(i)&&typeof Lt=="function"&&(i=Lt(i._payload));const a=l.Children.toArray(i),c=a.find(Ol);if(c){const u=c.props.children,f=a.map(p=>p===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...s,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}var Go=Nl("Slot");function Il(e){const t=l.forwardRef((o,n)=>{let{children:r,...i}=o;if(Er(r)&&typeof Lt=="function"&&(r=Lt(r._payload)),l.isValidElement(r)){const s=jl(r),a=_l(i,r.props);return r.type!==l.Fragment&&(a.ref=n?De(n,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kl=Symbol("radix.slottable");function Ol(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kl}function _l(e,t){const o={...t};for(const n in t){const r=e[n],i=t[n];/^on[A-Z]/.test(n)?r&&i?o[n]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function jl(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}const On=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_n=fr,Me=(e,t)=>o=>{var n;if((t==null?void 0:t.variants)==null)return _n(e,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:r,defaultVariants:i}=t,s=Object.keys(r).map(u=>{const f=o==null?void 0:o[u],p=i==null?void 0:i[u];if(f===null)return null;const m=On(f)||On(p);return r[u][m]}),a=o&&Object.entries(o).reduce((u,f)=>{let[p,m]=f;return m===void 0||(u[p]=m),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,f)=>{let{class:p,className:m,...g}=f;return Object.entries(g).every(b=>{let[v,h]=b;return Array.isArray(h)?h.includes({...i,...a}[v]):{...i,...a}[v]===h})?[...u,p,m]:u},[]);return _n(e,s,c,o==null?void 0:o.class,o==null?void 0:o.className)},Dl=Me("volt-ui-inline-flex volt-ui-items-center volt-ui-justify-center volt-ui-font-normal volt-ui-whitespace-nowrap volt-ui-transition-all volt-ui-cursor-pointer volt-ui-focus-visible:outline-2 volt-ui-focus-visible:outline-offset-2 volt-ui-disabled:pointer-events-none volt-ui-disabled:opacity-50 volt-ui-rounded-full volt-ui-shrink-0 [&_svg]:shrink-0 [&_svg]:pointer-events-none",{variants:{variant:{primary:"volt-ui-bg-accent-solid volt-ui-text-accent-contrast volt-ui-hover:bg-accent-solid-hover volt-ui-active:bg-accent-solid-hover volt-ui-focus-visible:outline-accent-a8",secondary:"volt-ui-bg-accent-soft volt-ui-text-accent-light volt-ui-hover:bg-accent-soft-hover volt-ui-focus-visible:outline-accent-a8",tertiary:"volt-ui-bg-transparent volt-ui-text-accent-light volt-ui-hover:bg-accent-soft volt-ui-focus-visible:outline-accent-a8",destructive:"volt-ui-bg-error-a9 volt-ui-text-error-contrast volt-ui-hover:bg-error-solid-hover volt-ui-active:bg-error-solid-hover volt-ui-focus-visible:outline-error-a8"},size:{xs:"volt-ui-px-2 volt-ui-py-1 volt-ui-min-h-5 volt-ui-text-xs volt-ui-gap-[4px] [&_svg]:size-[12px]",sm:"volt-ui-px-3 volt-ui-py-1 volt-ui-min-h-6 volt-ui-text-sm volt-ui-gap-[6px] [&_svg]:size-[14px]",base:"volt-ui-px-4 volt-ui-py-1 volt-ui-min-h-9 volt-ui-text-base volt-ui-gap-2 [&_svg]:size-4 volt-ui-has-[>svg]:px-3",large:"volt-ui-px-6 volt-ui-py-2.5 volt-ui-min-h-10 volt-ui-text-lg volt-ui-gap-2 [&_svg]:size-6"}},defaultVariants:{variant:"primary",size:"base"}}),Pr=L.forwardRef(({variant:e,size:t,asChild:o=!1,className:n,...r},i)=>{const s=o?Go:"button";return d.jsx(s,{"data-slot":"button",className:k(Dl({variant:e,size:t,className:n})),ref:i,...r})});Pr.displayName="Button";function dt(e){const t=Ml(e),o=l.forwardRef((n,r)=>{const{children:i,...s}=n,a=l.Children.toArray(i),c=a.find(Ll);if(c){const u=c.props.children,f=a.map(p=>p===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...s,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}function Ml(e){const t=l.forwardRef((o,n)=>{const{children:r,...i}=o;if(l.isValidElement(r)){const s=Vl(r),a=Fl(i,r.props);return r.type!==l.Fragment&&(a.ref=n?De(n,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $l=Symbol("radix.slottable");function Ll(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$l}function Fl(e,t){const o={...t};for(const n in t){const r=e[n],i=t[n];/^on[A-Z]/.test(n)?r&&i?o[n]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function Vl(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var Bl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wl=Bl.reduce((e,t)=>{const o=dt(`Primitive.${t}`),n=l.forwardRef((r,i)=>{const{asChild:s,...a}=r,c=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),zl="Separator",jn="horizontal",ql=["horizontal","vertical"],Tr=l.forwardRef((e,t)=>{const{decorative:o,orientation:n=jn,...r}=e,i=Hl(n)?n:jn,a=o?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return d.jsx(Wl.div,{"data-orientation":i,...a,...r,ref:t})});Tr.displayName=zl;function Hl(e){return ql.includes(e)}var Gl=Tr;const Ar=({className:e,orientation:t="horizontal",decorative:o=!0,...n})=>d.jsx(Gl,{"data-slot":"separator",decorative:o,orientation:t,className:k("volt-ui-bg-gray-a5 volt-ui-shrink-0 volt-ui-data-[orientation=horizontal]:h-px volt-ui-data-[orientation=horizontal]:w-full volt-ui-data-[orientation=vertical]:h-full volt-ui-data-[orientation=vertical]:w-px",e),...n}),Ul=Me("volt-ui-flex volt-ui-w-fit volt-ui-items-stretch volt-ui-*:focus-visible:z-10 volt-ui-*:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='volt-ui-w-'])]:w-fit [&>input]:flex-1 volt-ui-has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md volt-ui-has-[>[data-slot=button-group]]:gap-2",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"volt-ui-flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}}),Kl=({className:e,orientation:t,...o})=>d.jsx("div",{role:"group","data-slot":"volt-ui-button-group","data-orientation":t,className:k(Ul({orientation:t}),e),...o}),Zl=({className:e,asChild:t=!1,...o})=>{const n=t?Go:"div";return d.jsx(n,{className:k("volt-ui-bg-gray-a4 volt-ui-flex volt-ui-items-center volt-ui-gap-2 volt-ui-rounded-md volt-ui-border volt-ui-px-4 volt-ui-py-3 volt-ui-text-sm volt-ui-font-medium volt-ui-shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='volt-ui-size-'])]:size-4",e),...o})},Yl=({className:e,orientation:t="vertical",...o})=>d.jsx(Ar,{"data-slot":"volt-ui-button-group-separator",orientation:t,className:k("volt-ui-bg-body! volt-ui-m-0 volt-ui-relative volt-ui-self-stretch volt-ui-data-[orientation=vertical]:h-px",e),...o});var Xl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ql=Xl.reduce((e,t)=>{const o=dt(`Primitive.${t}`),n=l.forwardRef((r,i)=>{const{asChild:s,...a}=r,c=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Jl="Label",Nr=l.forwardRef((e,t)=>d.jsx(Ql.label,{...e,ref:t,onMouseDown:o=>{var r;o.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,o),!o.defaultPrevented&&o.detail>1&&o.preventDefault())}}));Nr.displayName=Jl;var ec=Nr;const tc=Me("volt-ui-flex volt-ui-items-center volt-ui-gap-2 volt-ui-leading-none volt-ui-font-normal volt-ui-group-data-[disabled=true]:pointer-events-none volt-ui-group-data-[disabled=true]:opacity-50 volt-ui-peer-disabled:cursor-not-allowed volt-ui-peer-disabled:opacity-50",{variants:{variant:{primary:"volt-ui-text-gray-default",destructive:"volt-ui-text-error-a12"},size:{sm:"volt-ui-text-xs",base:"volt-ui-text-sm",large:"volt-ui-text-base"}},defaultVariants:{variant:"primary",size:"base"}}),Ir=({variant:e,size:t,className:o,...n})=>d.jsx(ec,{"data-slot":"label",className:k(tc({variant:e,size:t,className:o})),...n}),kr=L.createContext(null),Ut=()=>{const e=L.useContext(kr);if(!e)throw new Error("FieldInput must be used within a Field component");return e},oc=({className:e,...t})=>d.jsx("div",{"data-slot":"field-group",className:k("volt-ui-group/field-group volt-ui-@container/field-group volt-ui-flex volt-ui-w-full volt-ui-flex-col volt-ui-gap-2 volt-ui-*:data-[slot=field-group]:gap-2 [&>div[data-slot=field]+[data-slot=field-description]]:pl-3",e),...t}),nc=({className:e,...t})=>d.jsx("fieldset",{"data-slot":"field-set",className:k("volt-ui-flex volt-ui-flex-col volt-ui-gap-6",e),...t}),rc=({className:e,children:t,onClick:o,...n})=>{const r=l.useRef(null);return d.jsx(kr.Provider,{value:{inputRef:r},children:d.jsx("div",{role:"group","data-slot":"field",className:k("volt-ui-flex-col volt-ui-*:w-full [&>.sr-only]:w-auto volt-ui-group/field volt-ui-flex volt-ui-w-full volt-ui-py-2 volt-ui-px-3 volt-ui-gap-1 volt-ui-rounded-lg volt-ui-transition-all volt-ui-bg-accent-a3 volt-ui-data-[invalid=true]:bg-error-soft volt-ui-focus-within:outline-2 volt-ui-focus-within:outline-offset-2 [&:not([data-invalid=true]):focus-within]:outline-accent-a8 volt-ui-data-[invalid=true]:focus-within:outline-error-a8","volt-ui-has-[input[data-readonly=true]]:bg-gray-a4 volt-ui-has-[input[disabled]]:bg-gray-a4 volt-ui-has-[input[data-readonly=true]]:focus-within:outline-gray-a8 volt-ui-has-[input[disabled]]:focus-within:outline-gray-a8","volt-ui-has-[button[data-slot=select-trigger][disabled]]:bg-gray-a4 volt-ui-has-[button[data-slot=select-trigger][disabled]]:focus-within:outline-gray-a8","volt-ui-has-[textarea[data-readonly=true]]:bg-gray-a4 volt-ui-has-[textarea[disabled]]:bg-gray-a4 volt-ui-has-[textarea[data-readonly=true]]:focus-within:outline-gray-a8 volt-ui-has-[textarea[disabled]]:focus-within:outline-gray-a8",e),onClick:i=>{var s,a;i.stopPropagation(),i.target===i.currentTarget&&r.current&&!r.current.disabled&&((a=(s=r.current)==null?void 0:s.dataset.slot)!=null&&a.match(/select-trigger/)&&r.current.click(),r.current.focus()),o==null||o(i)},...n,children:t})})},ic=({className:e,...t})=>d.jsx("div",{"data-slot":"field-content",className:k("volt-ui-group/field-content volt-ui-flex volt-ui-flex-1 volt-ui-flex-col volt-ui-gap-2 volt-ui-leading-snug",e),...t}),sc=({className:e,...t})=>d.jsx(Ir,{"data-slot":"field-label",className:k("volt-ui-group/field-label volt-ui-min-h-5 volt-ui-text-xs volt-ui-peer/field-label volt-ui-flex volt-ui-w-fit volt-ui-gap-2 volt-ui-leading-snug volt-ui-group-data-[disabled=true]/field:opacity-50","volt-ui-has-[>[data-slot=field]]:w-full volt-ui-has-[>[data-slot=field]]:flex-col volt-ui-has-[>[data-slot=field]]:rounded-md volt-ui-has-[>[data-slot=field]]:border volt-ui-*:data-[slot=field]:p-4","volt-ui-has-data-[state=checked]:bg-accent-a3/5 volt-ui-has-data-[state=checked]:border-accent-a3 volt-ui-dark:has-data-[state=checked]:bg-accent-a3/10",e),...t}),ac=({className:e,showOnHover:t=!0,...o})=>d.jsx("div",{"data-slot":"field-label-content",className:k("volt-ui-items-center volt-ui-gap-1 volt-ui-transition-opacity volt-ui-duration-150",{"volt-ui-hidden volt-ui-pointer-events-none volt-ui-group-hover/field:inline-flex volt-ui-group-hover/field:pointer-events-auto":t,"volt-ui-inline-flex":!t},e),...o}),lc=({className:e,...t})=>d.jsx("p",{"data-slot":"field-description",className:k("volt-ui-text-gray-default volt-ui-text-xs volt-ui-leading-normal volt-ui-font-normal","volt-ui-last:mt-0 volt-ui-nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a:hover]:text-gray-default [&>a]:underline [&>a]:underline-offset-4",e),...t}),cc=({className:e,children:t,errors:o,...n})=>{const r=L.useMemo(()=>{var s;if(t)return t;if(!(o!=null&&o.length))return null;const i=[...new Map(o.map(a=>[a==null?void 0:a.message,a])).values()];return(i==null?void 0:i.length)==1?(s=i[0])==null?void 0:s.message:d.jsx("ul",{className:"volt-ui-flex volt-ui-list-disc volt-ui-flex-col volt-ui-m-0",children:i.map((a,c)=>(a==null?void 0:a.message)&&d.jsx("li",{className:"volt-ui-text-error-light volt-ui-text-xs volt-ui-font-normal volt-ui-my-1 volt-ui-marker:text-error-light",children:a.message},c))})},[t,o]);return r?d.jsx("div",{role:"alert","data-slot":"field-error",className:k("volt-ui-text-error-light volt-ui-text-xs volt-ui-font-normal",e),...n,children:r}):null},Or=L.forwardRef(({className:e,...t},o)=>{const{inputRef:n}=Ut();return d.jsx("input",{ref:r=>{n.current=r,typeof o=="function"?o(r):o&&(o.current=r)},"data-readonly":t.readOnly,"data-slot":"field-input",className:k("volt-ui-group/field-input volt-ui-w-full volt-ui-h-6 volt-ui-outline-none volt-ui-text-sm volt-ui-text-gray-default volt-ui-focus-visible:outline-none volt-ui-placeholder:text-gray-a8 volt-ui-disabled:cursor-not-allowed",e),...t})});Or.displayName="FieldInput";const _r=L.forwardRef(({className:e,...t},o)=>d.jsx("div",{ref:o,"data-slot":"field-input-group",className:k("volt-ui-flex volt-ui-items-center volt-ui-gap-1",e),...t}));_r.displayName="FieldInputGroup";const uc=Me("volt-ui-text-gray-light volt-ui-flex volt-ui-h-auto volt-ui-cursor-text volt-ui-whitespace-nowrap volt-ui-items-center volt-ui-justify-center volt-ui-gap-2 volt-ui-text-sm volt-ui-font-normal volt-ui-select-none volt-ui-group-data-[disabled=true]/input-group:opacity-50",{variants:{align:{start:"volt-ui-order-first",end:"volt-ui-order-last"}},defaultVariants:{align:"start"}}),dc=({className:e,align:t="start",...o})=>d.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:k(uc({align:t}),e),...o}),jr=L.forwardRef(({className:e,resize:t="none",...o},n)=>{const{inputRef:r}=Ut();return d.jsx("textarea",{ref:i=>{r.current=i,typeof n=="function"?n(i):n&&(n.current=i)},"data-readonly":o.readOnly,"data-slot":"field-textarea","data-resize":t,className:k("volt-ui-group/field-textarea volt-ui-w-full volt-ui-outline-none volt-ui-text-sm volt-ui-text-gray-default volt-ui-focus-visible:outline-none volt-ui-data-[resize=none]:resize-none volt-ui-data-[resize=vertical]:resize-vertical volt-ui-data-[resize=horizontal]:resize-horizontal volt-ui-placeholder:text-gray-a8 volt-ui-disabled:cursor-not-allowed",e),...o})});jr.displayName="FieldTextarea";function Dn(e,[t,o]){return Math.min(o,Math.max(t,e))}function _(e,t,{checkForDefaultPrevented:o=!0}={}){return function(r){if(e==null||e(r),o===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function fc(e,t){const o=l.createContext(t),n=i=>{const{children:s,...a}=i,c=l.useMemo(()=>a,Object.values(a));return d.jsx(o.Provider,{value:c,children:s})};n.displayName=e+"Provider";function r(i){const s=l.useContext(o);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,r]}function fe(e,t=[]){let o=[];function n(i,s){const a=l.createContext(s),c=o.length;o=[...o,s];const u=p=>{var y;const{scope:m,children:g,...b}=p,v=((y=m==null?void 0:m[e])==null?void 0:y[c])||a,h=l.useMemo(()=>b,Object.values(b));return d.jsx(v.Provider,{value:h,children:g})};u.displayName=i+"Provider";function f(p,m){var v;const g=((v=m==null?void 0:m[e])==null?void 0:v[c])||a,b=l.useContext(g);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[u,f]}const r=()=>{const i=o.map(s=>l.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[n,pc(r,...t)]}function pc(...e){const t=e[0];if(e.length===1)return t;const o=()=>{const n=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=n.reduce((a,{useScope:c,scopeName:u})=>{const p=c(i)[`__scope${u}`];return{...a,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return o.scopeName=t.scopeName,o}function Dr(e){const t=e+"CollectionProvider",[o,n]=fe(t),[r,i]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:h,children:y}=v,x=L.useRef(null),w=L.useRef(new Map).current;return d.jsx(r,{scope:h,itemMap:w,collectionRef:x,children:y})};s.displayName=t;const a=e+"CollectionSlot",c=dt(a),u=L.forwardRef((v,h)=>{const{scope:y,children:x}=v,w=i(a,y),C=W(h,w.collectionRef);return d.jsx(c,{ref:C,children:x})});u.displayName=a;const f=e+"CollectionItemSlot",p="data-radix-collection-item",m=dt(f),g=L.forwardRef((v,h)=>{const{scope:y,children:x,...w}=v,C=L.useRef(null),S=W(h,C),T=i(f,y);return L.useEffect(()=>(T.itemMap.set(C,{ref:C,...w}),()=>void T.itemMap.delete(C))),d.jsx(m,{[p]:"",ref:S,children:x})});g.displayName=f;function b(v){const h=i(e+"CollectionConsumer",v);return L.useCallback(()=>{const x=h.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((T,P)=>w.indexOf(T.ref.current)-w.indexOf(P.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:s,Slot:u,ItemSlot:g},b,n]}var vc=l.createContext(void 0);function Uo(e){const t=l.useContext(vc);return e||t||"ltr"}var mc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y=mc.reduce((e,t)=>{const o=dt(`Primitive.${t}`),n=l.forwardRef((r,i)=>{const{asChild:s,...a}=r,c=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function gc(e,t){e&&Gt.flushSync(()=>e.dispatchEvent(t))}function Oe(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...o)=>{var n;return(n=t.current)==null?void 0:n.call(t,...o)},[])}function hc(e,t=globalThis==null?void 0:globalThis.document){const o=Oe(e);l.useEffect(()=>{const n=r=>{r.key==="Escape"&&o(r)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[o,t])}var xc="DismissableLayer",ko="dismissableLayer.update",bc="dismissableLayer.pointerDownOutside",yc="dismissableLayer.focusOutside",Mn,Mr=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ht=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:n,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,u=l.useContext(Mr),[f,p]=l.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=l.useState({}),b=W(t,P=>p(P)),v=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(h),x=f?v.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=y,S=Sc(P=>{const R=P.target,j=[...u.branches].some(D=>D.contains(R));!C||j||(r==null||r(P),s==null||s(P),P.defaultPrevented||a==null||a())},m),T=Rc(P=>{const R=P.target;[...u.branches].some(D=>D.contains(R))||(i==null||i(P),s==null||s(P),P.defaultPrevented||a==null||a())},m);return hc(P=>{x===u.layers.size-1&&(n==null||n(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},m),l.useEffect(()=>{if(f)return o&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Mn=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),$n(),()=>{o&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Mn)}},[f,m,o,u]),l.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),$n())},[f,u]),l.useEffect(()=>{const P=()=>g({});return document.addEventListener(ko,P),()=>document.removeEventListener(ko,P)},[]),d.jsx(Y.div,{...c,ref:b,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:_(e.onFocusCapture,T.onFocusCapture),onBlurCapture:_(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:_(e.onPointerDownCapture,S.onPointerDownCapture)})});ht.displayName=xc;var wc="DismissableLayerBranch",Cc=l.forwardRef((e,t)=>{const o=l.useContext(Mr),n=l.useRef(null),r=W(t,n);return l.useEffect(()=>{const i=n.current;if(i)return o.branches.add(i),()=>{o.branches.delete(i)}},[o.branches]),d.jsx(Y.div,{...e,ref:r})});Cc.displayName=wc;function Sc(e,t=globalThis==null?void 0:globalThis.document){const o=Oe(e),n=l.useRef(!1),r=l.useRef(()=>{});return l.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let c=function(){$r(bc,o,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,o]),{onPointerDownCapture:()=>n.current=!0}}function Rc(e,t=globalThis==null?void 0:globalThis.document){const o=Oe(e),n=l.useRef(!1);return l.useEffect(()=>{const r=i=>{i.target&&!n.current&&$r(yc,o,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,o]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function $n(){const e=new CustomEvent(ko);document.dispatchEvent(e)}function $r(e,t,o,{discrete:n}){const r=o.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:o});t&&r.addEventListener(e,t,{once:!0}),n?gc(r,i):r.dispatchEvent(i)}var yo=0;function Ko(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ln()),document.body.insertAdjacentElement("beforeend",e[1]??Ln()),yo++,()=>{yo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yo--}},[])}function Ln(){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 wo="focusScope.autoFocusOnMount",Co="focusScope.autoFocusOnUnmount",Fn={bubbles:!1,cancelable:!0},Ec="FocusScope",Kt=l.forwardRef((e,t)=>{const{loop:o=!1,trapped:n=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...s}=e,[a,c]=l.useState(null),u=Oe(r),f=Oe(i),p=l.useRef(null),m=W(t,v=>c(v)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let v=function(w){if(g.paused||!a)return;const C=w.target;a.contains(C)?p.current=C:Ie(p.current,{select:!0})},h=function(w){if(g.paused||!a)return;const C=w.relatedTarget;C!==null&&(a.contains(C)||Ie(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Ie(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",h);const x=new MutationObserver(y);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",h),x.disconnect()}}},[n,a,g.paused]),l.useEffect(()=>{if(a){Bn.add(g);const v=document.activeElement;if(!a.contains(v)){const y=new CustomEvent(wo,Fn);a.addEventListener(wo,u),a.dispatchEvent(y),y.defaultPrevented||(Pc(kc(Lr(a)),{select:!0}),document.activeElement===v&&Ie(a))}return()=>{a.removeEventListener(wo,u),setTimeout(()=>{const y=new CustomEvent(Co,Fn);a.addEventListener(Co,f),a.dispatchEvent(y),y.defaultPrevented||Ie(v??document.body,{select:!0}),a.removeEventListener(Co,f),Bn.remove(g)},0)}}},[a,u,f,g]);const b=l.useCallback(v=>{if(!o&&!n||g.paused)return;const h=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(h&&y){const x=v.currentTarget,[w,C]=Tc(x);w&&C?!v.shiftKey&&y===C?(v.preventDefault(),o&&Ie(w,{select:!0})):v.shiftKey&&y===w&&(v.preventDefault(),o&&Ie(C,{select:!0})):y===x&&v.preventDefault()}},[o,n,g.paused]);return d.jsx(Y.div,{tabIndex:-1,...s,ref:m,onKeyDown:b})});Kt.displayName=Ec;function Pc(e,{select:t=!1}={}){const o=document.activeElement;for(const n of e)if(Ie(n,{select:t}),document.activeElement!==o)return}function Tc(e){const t=Lr(e),o=Vn(t,e),n=Vn(t.reverse(),e);return[o,n]}function Lr(e){const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t}function Vn(e,t){for(const o of e)if(!Ac(o,{upTo:t}))return o}function Ac(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 Nc(e){return e instanceof HTMLInputElement&&"select"in e}function Ie(e,{select:t=!1}={}){if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&Nc(e)&&t&&e.select()}}var Bn=Ic();function Ic(){let e=[];return{add(t){const o=e[0];t!==o&&(o==null||o.pause()),e=Wn(e,t),e.unshift(t)},remove(t){var o;e=Wn(e,t),(o=e[0])==null||o.resume()}}}function Wn(e,t){const o=[...e],n=o.indexOf(t);return n!==-1&&o.splice(n,1),o}function kc(e){return e.filter(t=>t.tagName!=="A")}var oe=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Oc=l[" useId ".trim().toString()]||(()=>{}),_c=0;function Ee(e){const[t,o]=l.useState(Oc());return oe(()=>{o(n=>n??String(_c++))},[e]),e||(t?`radix-${t}`:"")}const jc=["top","right","bottom","left"],_e=Math.min,re=Math.max,Ft=Math.round,Tt=Math.floor,be=e=>({x:e,y:e}),Dc={left:"right",right:"left",bottom:"top",top:"bottom"},Mc={start:"end",end:"start"};function Oo(e,t,o){return re(e,_e(t,o))}function Pe(e,t){return typeof e=="function"?e(t):e}function Te(e){return e.split("-")[0]}function ot(e){return e.split("-")[1]}function Zo(e){return e==="x"?"y":"x"}function Yo(e){return e==="y"?"height":"width"}const $c=new Set(["top","bottom"]);function xe(e){return $c.has(Te(e))?"y":"x"}function Xo(e){return Zo(xe(e))}function Lc(e,t,o){o===void 0&&(o=!1);const n=ot(e),r=Xo(e),i=Yo(r);let s=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Vt(s)),[s,Vt(s)]}function Fc(e){const t=Vt(e);return[_o(e),t,_o(t)]}function _o(e){return e.replace(/start|end/g,t=>Mc[t])}const zn=["left","right"],qn=["right","left"],Vc=["top","bottom"],Bc=["bottom","top"];function Wc(e,t,o){switch(e){case"top":case"bottom":return o?t?qn:zn:t?zn:qn;case"left":case"right":return t?Vc:Bc;default:return[]}}function zc(e,t,o,n){const r=ot(e);let i=Wc(Te(e),o==="start",n);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(_o)))),i}function Vt(e){return e.replace(/left|right|bottom|top/g,t=>Dc[t])}function qc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Fr(e){return typeof e!="number"?qc(e):{top:e,right:e,bottom:e,left:e}}function Bt(e){const{x:t,y:o,width:n,height:r}=e;return{width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function Hn(e,t,o){let{reference:n,floating:r}=e;const i=xe(t),s=Xo(t),a=Yo(s),c=Te(t),u=i==="y",f=n.x+n.width/2-r.width/2,p=n.y+n.height/2-r.height/2,m=n[a]/2-r[a]/2;let g;switch(c){case"top":g={x:f,y:n.y-r.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:p};break;case"left":g={x:n.x-r.width,y:p};break;default:g={x:n.x,y:n.y}}switch(ot(t)){case"start":g[s]-=m*(o&&u?-1:1);break;case"end":g[s]+=m*(o&&u?-1:1);break}return g}const Hc=async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:s}=o,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:p}=Hn(u,n,c),m=n,g={},b=0;for(let v=0;v<a.length;v++){const{name:h,fn:y}=a[v],{x,y:w,data:C,reset:S}=await y({x:f,y:p,initialPlacement:n,placement:m,strategy:r,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:t}});f=x??f,p=w??p,g={...g,[h]:{...g[h],...C}},S&&b<=50&&(b++,typeof S=="object"&&(S.placement&&(m=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:f,y:p}=Hn(u,m,c)),v=-1)}return{x:f,y:p,placement:m,strategy:r,middlewareData:g}};async function ft(e,t){var o;t===void 0&&(t={});const{x:n,y:r,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=Pe(t,e),b=Fr(g),h=a[m?p==="floating"?"reference":"floating":p],y=Bt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(h)))==null||o?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:c})),x=p==="floating"?{x:n,y:r,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},S=Bt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:w,strategy:c}):x);return{top:(y.top-S.top+b.top)/C.y,bottom:(S.bottom-y.bottom+b.bottom)/C.y,left:(y.left-S.left+b.left)/C.x,right:(S.right-y.right+b.right)/C.x}}const Gc=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:r,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:u,padding:f=0}=Pe(e,t)||{};if(u==null)return{};const p=Fr(f),m={x:o,y:n},g=Xo(r),b=Yo(g),v=await s.getDimensions(u),h=g==="y",y=h?"top":"left",x=h?"bottom":"right",w=h?"clientHeight":"clientWidth",C=i.reference[b]+i.reference[g]-m[g]-i.floating[b],S=m[g]-i.reference[g],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let P=T?T[w]:0;(!P||!await(s.isElement==null?void 0:s.isElement(T)))&&(P=a.floating[w]||i.floating[b]);const R=C/2-S/2,j=P/2-v[b]/2-1,D=_e(p[y],j),z=_e(p[x],j),q=D,V=P-v[b]-z,F=P/2-v[b]/2+R,H=Oo(q,F,V),O=!c.arrow&&ot(r)!=null&&F!==H&&i.reference[b]/2-(F<q?D:z)-v[b]/2<0,$=O?F<q?F-q:F-V:0;return{[g]:m[g]+$,data:{[g]:H,centerOffset:F-H-$,...O&&{alignmentOffset:$}},reset:O}}}),Uc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...h}=Pe(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};const y=Te(r),x=xe(a),w=Te(a)===a,C=await(c.isRTL==null?void 0:c.isRTL(u.floating)),S=m||(w||!v?[Vt(a)]:Fc(a)),T=b!=="none";!m&&T&&S.push(...zc(a,v,b,C));const P=[a,...S],R=await ft(t,h),j=[];let D=((n=i.flip)==null?void 0:n.overflows)||[];if(f&&j.push(R[y]),p){const F=Lc(r,s,C);j.push(R[F[0]],R[F[1]])}if(D=[...D,{placement:r,overflows:j}],!j.every(F=>F<=0)){var z,q;const F=(((z=i.flip)==null?void 0:z.index)||0)+1,H=P[F];if(H&&(!(p==="alignment"?x!==xe(H):!1)||D.every(E=>xe(E.placement)===x?E.overflows[0]>0:!0)))return{data:{index:F,overflows:D},reset:{placement:H}};let O=(q=D.filter($=>$.overflows[0]<=0).sort(($,E)=>$.overflows[1]-E.overflows[1])[0])==null?void 0:q.placement;if(!O)switch(g){case"bestFit":{var V;const $=(V=D.filter(E=>{if(T){const K=xe(E.placement);return K===x||K==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(K=>K>0).reduce((K,te)=>K+te,0)]).sort((E,K)=>E[1]-K[1])[0])==null?void 0:V[0];$&&(O=$);break}case"initialPlacement":O=a;break}if(r!==O)return{reset:{placement:O}}}return{}}}};function Gn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Un(e){return jc.some(t=>e[t]>=0)}const Kc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:o}=t,{strategy:n="referenceHidden",...r}=Pe(e,t);switch(n){case"referenceHidden":{const i=await ft(t,{...r,elementContext:"reference"}),s=Gn(i,o.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Un(s)}}}case"escaped":{const i=await ft(t,{...r,altBoundary:!0}),s=Gn(i,o.floating);return{data:{escapedOffsets:s,escaped:Un(s)}}}default:return{}}}}},Vr=new Set(["left","top"]);async function Zc(e,t){const{placement:o,platform:n,elements:r}=e,i=await(n.isRTL==null?void 0:n.isRTL(r.floating)),s=Te(o),a=ot(o),c=xe(o)==="y",u=Vr.has(s)?-1:1,f=i&&c?-1:1,p=Pe(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof b=="number"&&(g=a==="end"?b*-1:b),c?{x:g*f,y:m*u}:{x:m*u,y:g*f}}const Yc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:r,y:i,placement:s,middlewareData:a}=t,c=await Zc(t,e);return s===((o=a.offset)==null?void 0:o.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},Xc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:h=>{let{x:y,y:x}=h;return{x:y,y:x}}},...c}=Pe(e,t),u={x:o,y:n},f=await ft(t,c),p=xe(Te(r)),m=Zo(p);let g=u[m],b=u[p];if(i){const h=m==="y"?"top":"left",y=m==="y"?"bottom":"right",x=g+f[h],w=g-f[y];g=Oo(x,g,w)}if(s){const h=p==="y"?"top":"left",y=p==="y"?"bottom":"right",x=b+f[h],w=b-f[y];b=Oo(x,b,w)}const v=a.fn({...t,[m]:g,[p]:b});return{...v,data:{x:v.x-o,y:v.y-n,enabled:{[m]:i,[p]:s}}}}}},Qc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:o,y:n,placement:r,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=Pe(e,t),f={x:o,y:n},p=xe(r),m=Zo(p);let g=f[m],b=f[p];const v=Pe(a,t),h=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const w=m==="y"?"height":"width",C=i.reference[m]-i.floating[w]+h.mainAxis,S=i.reference[m]+i.reference[w]-h.mainAxis;g<C?g=C:g>S&&(g=S)}if(u){var y,x;const w=m==="y"?"width":"height",C=Vr.has(Te(r)),S=i.reference[p]-i.floating[w]+(C&&((y=s.offset)==null?void 0:y[p])||0)+(C?0:h.crossAxis),T=i.reference[p]+i.reference[w]+(C?0:((x=s.offset)==null?void 0:x[p])||0)-(C?h.crossAxis:0);b<S?b=S:b>T&&(b=T)}return{[m]:g,[p]:b}}}},Jc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,n;const{placement:r,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...u}=Pe(e,t),f=await ft(t,u),p=Te(r),m=ot(r),g=xe(r)==="y",{width:b,height:v}=i.floating;let h,y;p==="top"||p==="bottom"?(h=p,y=m===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=p,h=m==="end"?"top":"bottom");const x=v-f.top-f.bottom,w=b-f.left-f.right,C=_e(v-f[h],x),S=_e(b-f[y],w),T=!t.middlewareData.shift;let P=C,R=S;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(R=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(P=x),T&&!m){const D=re(f.left,0),z=re(f.right,0),q=re(f.top,0),V=re(f.bottom,0);g?R=b-2*(D!==0||z!==0?D+z:re(f.left,f.right)):P=v-2*(q!==0||V!==0?q+V:re(f.top,f.bottom))}await c({...t,availableWidth:R,availableHeight:P});const j=await s.getDimensions(a.floating);return b!==j.width||v!==j.height?{reset:{rects:!0}}:{}}}};function Zt(){return typeof window<"u"}function nt(e){return Br(e)?(e.nodeName||"").toLowerCase():"#document"}function ie(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(Br(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Br(e){return Zt()?e instanceof Node||e instanceof ie(e).Node:!1}function ue(e){return Zt()?e instanceof Element||e instanceof ie(e).Element:!1}function ye(e){return Zt()?e instanceof HTMLElement||e instanceof ie(e).HTMLElement:!1}function Kn(e){return!Zt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ie(e).ShadowRoot}const eu=new Set(["inline","contents"]);function xt(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=de(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!eu.has(r)}const tu=new Set(["table","td","th"]);function ou(e){return tu.has(nt(e))}const nu=[":popover-open",":modal"];function Yt(e){return nu.some(t=>{try{return e.matches(t)}catch{return!1}})}const ru=["transform","translate","scale","rotate","perspective"],iu=["transform","translate","scale","rotate","perspective","filter"],su=["paint","layout","strict","content"];function Qo(e){const t=Jo(),o=ue(e)?de(e):e;return ru.some(n=>o[n]?o[n]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||iu.some(n=>(o.willChange||"").includes(n))||su.some(n=>(o.contain||"").includes(n))}function au(e){let t=je(e);for(;ye(t)&&!Xe(t);){if(Qo(t))return t;if(Yt(t))return null;t=je(t)}return null}function Jo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lu=new Set(["html","body","#document"]);function Xe(e){return lu.has(nt(e))}function de(e){return ie(e).getComputedStyle(e)}function Xt(e){return ue(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function je(e){if(nt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Kn(e)&&e.host||we(e);return Kn(t)?t.host:t}function Wr(e){const t=je(e);return Xe(t)?e.ownerDocument?e.ownerDocument.body:e.body:ye(t)&&xt(t)?t:Wr(t)}function pt(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const r=Wr(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=ie(r);if(i){const a=jo(s);return t.concat(s,s.visualViewport||[],xt(r)?r:[],a&&o?pt(a):[])}return t.concat(r,pt(r,[],o))}function jo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zr(e){const t=de(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=ye(e),i=r?e.offsetWidth:o,s=r?e.offsetHeight:n,a=Ft(o)!==i||Ft(n)!==s;return a&&(o=i,n=s),{width:o,height:n,$:a}}function en(e){return ue(e)?e:e.contextElement}function Ze(e){const t=en(e);if(!ye(t))return be(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:i}=zr(t);let s=(i?Ft(o.width):o.width)/n,a=(i?Ft(o.height):o.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const cu=be(0);function qr(e){const t=ie(e);return!Jo()||!t.visualViewport?cu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uu(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==ie(e)?!1:t}function Be(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),i=en(e);let s=be(1);t&&(n?ue(n)&&(s=Ze(n)):s=Ze(e));const a=uu(i,o,n)?qr(i):be(0);let c=(r.left+a.x)/s.x,u=(r.top+a.y)/s.y,f=r.width/s.x,p=r.height/s.y;if(i){const m=ie(i),g=n&&ue(n)?ie(n):n;let b=m,v=jo(b);for(;v&&n&&g!==b;){const h=Ze(v),y=v.getBoundingClientRect(),x=de(v),w=y.left+(v.clientLeft+parseFloat(x.paddingLeft))*h.x,C=y.top+(v.clientTop+parseFloat(x.paddingTop))*h.y;c*=h.x,u*=h.y,f*=h.x,p*=h.y,c+=w,u+=C,b=ie(v),v=jo(b)}}return Bt({width:f,height:p,x:c,y:u})}function Qt(e,t){const o=Xt(e).scrollLeft;return t?t.left+o:Be(we(e)).left+o}function Hr(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-Qt(e,o),r=o.top+t.scrollTop;return{x:n,y:r}}function du(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const i=r==="fixed",s=we(n),a=t?Yt(t.floating):!1;if(n===s||a&&i)return o;let c={scrollLeft:0,scrollTop:0},u=be(1);const f=be(0),p=ye(n);if((p||!p&&!i)&&((nt(n)!=="body"||xt(s))&&(c=Xt(n)),ye(n))){const g=Be(n);u=Ze(n),f.x=g.x+n.clientLeft,f.y=g.y+n.clientTop}const m=s&&!p&&!i?Hr(s,c):be(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-c.scrollLeft*u.x+f.x+m.x,y:o.y*u.y-c.scrollTop*u.y+f.y+m.y}}function fu(e){return Array.from(e.getClientRects())}function pu(e){const t=we(e),o=Xt(e),n=e.ownerDocument.body,r=re(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=re(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-o.scrollLeft+Qt(e);const a=-o.scrollTop;return de(n).direction==="rtl"&&(s+=re(t.clientWidth,n.clientWidth)-r),{width:r,height:i,x:s,y:a}}const Zn=25;function vu(e,t){const o=ie(e),n=we(e),r=o.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,c=0;if(r){i=r.width,s=r.height;const f=Jo();(!f||f&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}const u=Qt(n);if(u<=0){const f=n.ownerDocument,p=f.body,m=getComputedStyle(p),g=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,b=Math.abs(n.clientWidth-p.clientWidth-g);b<=Zn&&(i-=b)}else u<=Zn&&(i+=u);return{width:i,height:s,x:a,y:c}}const mu=new Set(["absolute","fixed"]);function gu(e,t){const o=Be(e,!0,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,i=ye(e)?Ze(e):be(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,u=n*i.y;return{width:s,height:a,x:c,y:u}}function Yn(e,t,o){let n;if(t==="viewport")n=vu(e,o);else if(t==="document")n=pu(we(e));else if(ue(t))n=gu(t,o);else{const r=qr(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Bt(n)}function Gr(e,t){const o=je(e);return o===t||!ue(o)||Xe(o)?!1:de(o).position==="fixed"||Gr(o,t)}function hu(e,t){const o=t.get(e);if(o)return o;let n=pt(e,[],!1).filter(a=>ue(a)&&nt(a)!=="body"),r=null;const i=de(e).position==="fixed";let s=i?je(e):e;for(;ue(s)&&!Xe(s);){const a=de(s),c=Qo(s);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&mu.has(r.position)||xt(s)&&!c&&Gr(e,s))?n=n.filter(f=>f!==s):r=a,s=je(s)}return t.set(e,n),n}function xu(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const s=[...o==="clippingAncestors"?Yt(t)?[]:hu(t,this._c):[].concat(o),n],a=s[0],c=s.reduce((u,f)=>{const p=Yn(t,f,r);return u.top=re(p.top,u.top),u.right=_e(p.right,u.right),u.bottom=_e(p.bottom,u.bottom),u.left=re(p.left,u.left),u},Yn(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function bu(e){const{width:t,height:o}=zr(e);return{width:t,height:o}}function yu(e,t,o){const n=ye(t),r=we(t),i=o==="fixed",s=Be(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=be(0);function u(){c.x=Qt(r)}if(n||!n&&!i)if((nt(t)!=="body"||xt(r))&&(a=Xt(t)),n){const g=Be(t,!0,i,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else r&&u();i&&!n&&r&&u();const f=r&&!n&&!i?Hr(r,a):be(0),p=s.left+a.scrollLeft-c.x-f.x,m=s.top+a.scrollTop-c.y-f.y;return{x:p,y:m,width:s.width,height:s.height}}function So(e){return de(e).position==="static"}function Xn(e,t){if(!ye(e)||de(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return we(e)===o&&(o=o.ownerDocument.body),o}function Ur(e,t){const o=ie(e);if(Yt(e))return o;if(!ye(e)){let r=je(e);for(;r&&!Xe(r);){if(ue(r)&&!So(r))return r;r=je(r)}return o}let n=Xn(e,t);for(;n&&ou(n)&&So(n);)n=Xn(n,t);return n&&Xe(n)&&So(n)&&!Qo(n)?o:n||au(e)||o}const wu=async function(e){const t=this.getOffsetParent||Ur,o=this.getDimensions,n=await o(e.floating);return{reference:yu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Cu(e){return de(e).direction==="rtl"}const Su={convertOffsetParentRelativeRectToViewportRelativeRect:du,getDocumentElement:we,getClippingRect:xu,getOffsetParent:Ur,getElementRects:wu,getClientRects:fu,getDimensions:bu,getScale:Ze,isElement:ue,isRTL:Cu};function Kr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ru(e,t){let o=null,n;const r=we(e);function i(){var a;clearTimeout(n),(a=o)==null||a.disconnect(),o=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:f,top:p,width:m,height:g}=u;if(a||t(),!m||!g)return;const b=Tt(p),v=Tt(r.clientWidth-(f+m)),h=Tt(r.clientHeight-(p+g)),y=Tt(f),w={rootMargin:-b+"px "+-v+"px "+-h+"px "+-y+"px",threshold:re(0,_e(1,c))||1};let C=!0;function S(T){const P=T[0].intersectionRatio;if(P!==c){if(!C)return s();P?s(!1,P):n=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!Kr(u,e.getBoundingClientRect())&&s(),C=!1}try{o=new IntersectionObserver(S,{...w,root:r.ownerDocument})}catch{o=new IntersectionObserver(S,w)}o.observe(e)}return s(!0),i}function Eu(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=en(e),f=r||i?[...u?pt(u):[],...pt(t)]:[];f.forEach(y=>{r&&y.addEventListener("scroll",o,{passive:!0}),i&&y.addEventListener("resize",o)});const p=u&&a?Ru(u,o):null;let m=-1,g=null;s&&(g=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),o()}),u&&!c&&g.observe(u),g.observe(t));let b,v=c?Be(e):null;c&&h();function h(){const y=Be(e);v&&!Kr(v,y)&&o(),v=y,b=requestAnimationFrame(h)}return o(),()=>{var y;f.forEach(x=>{r&&x.removeEventListener("scroll",o),i&&x.removeEventListener("resize",o)}),p==null||p(),(y=g)==null||y.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const Pu=Yc,Tu=Xc,Au=Uc,Nu=Jc,Iu=Kc,Qn=Gc,ku=Qc,Ou=(e,t,o)=>{const n=new Map,r={platform:Su,...o},i={...r.platform,_c:n};return Hc(e,t,{...r,platform:i})};var _u=typeof document<"u",ju=function(){},jt=_u?L.useLayoutEffect:ju;function Wt(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 o,n,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(n=o;n--!==0;)if(!Wt(e[n],t[n]))return!1;return!0}if(r=Object.keys(e),o=r.length,o!==Object.keys(t).length)return!1;for(n=o;n--!==0;)if(!{}.hasOwnProperty.call(t,r[n]))return!1;for(n=o;n--!==0;){const i=r[n];if(!(i==="_owner"&&e.$$typeof)&&!Wt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Zr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jn(e,t){const o=Zr(e);return Math.round(t*o)/o}function Ro(e){const t=l.useRef(e);return jt(()=>{t.current=e}),t}function Du(e){e===void 0&&(e={});const{placement:t="bottom",strategy:o="absolute",middleware:n=[],platform:r,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[f,p]=l.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=l.useState(n);Wt(m,n)||g(n);const[b,v]=l.useState(null),[h,y]=l.useState(null),x=l.useCallback(E=>{E!==T.current&&(T.current=E,v(E))},[]),w=l.useCallback(E=>{E!==P.current&&(P.current=E,y(E))},[]),C=i||b,S=s||h,T=l.useRef(null),P=l.useRef(null),R=l.useRef(f),j=c!=null,D=Ro(c),z=Ro(r),q=Ro(u),V=l.useCallback(()=>{if(!T.current||!P.current)return;const E={placement:t,strategy:o,middleware:m};z.current&&(E.platform=z.current),Ou(T.current,P.current,E).then(K=>{const te={...K,isPositioned:q.current!==!1};F.current&&!Wt(R.current,te)&&(R.current=te,Gt.flushSync(()=>{p(te)}))})},[m,t,o,z,q]);jt(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(E=>({...E,isPositioned:!1})))},[u]);const F=l.useRef(!1);jt(()=>(F.current=!0,()=>{F.current=!1}),[]),jt(()=>{if(C&&(T.current=C),S&&(P.current=S),C&&S){if(D.current)return D.current(C,S,V);V()}},[C,S,V,D,j]);const H=l.useMemo(()=>({reference:T,floating:P,setReference:x,setFloating:w}),[x,w]),O=l.useMemo(()=>({reference:C,floating:S}),[C,S]),$=l.useMemo(()=>{const E={position:o,left:0,top:0};if(!O.floating)return E;const K=Jn(O.floating,f.x),te=Jn(O.floating,f.y);return a?{...E,transform:"translate("+K+"px, "+te+"px)",...Zr(O.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:K,top:te}},[o,a,O.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:V,refs:H,elements:O,floatingStyles:$}),[f,V,H,O,$])}const Mu=e=>{function t(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){const{element:n,padding:r}=typeof e=="function"?e(o):e;return n&&t(n)?n.current!=null?Qn({element:n.current,padding:r}).fn(o):{}:n?Qn({element:n,padding:r}).fn(o):{}}}},$u=(e,t)=>({...Pu(e),options:[e,t]}),Lu=(e,t)=>({...Tu(e),options:[e,t]}),Fu=(e,t)=>({...ku(e),options:[e,t]}),Vu=(e,t)=>({...Au(e),options:[e,t]}),Bu=(e,t)=>({...Nu(e),options:[e,t]}),Wu=(e,t)=>({...Iu(e),options:[e,t]}),zu=(e,t)=>({...Mu(e),options:[e,t]});var qu="Arrow",Yr=l.forwardRef((e,t)=>{const{children:o,width:n=10,height:r=5,...i}=e;return d.jsx(Y.svg,{...i,ref:t,width:n,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?o:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Yr.displayName=qu;var Hu=Yr;function Jt(e){const[t,o]=l.useState(void 0);return oe(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;o({width:s,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else o(void 0)},[e]),t}var tn="Popper",[Xr,rt]=fe(tn),[Gu,Qr]=Xr(tn),Jr=e=>{const{__scopePopper:t,children:o}=e,[n,r]=l.useState(null);return d.jsx(Gu,{scope:t,anchor:n,onAnchorChange:r,children:o})};Jr.displayName=tn;var ei="PopperAnchor",ti=l.forwardRef((e,t)=>{const{__scopePopper:o,virtualRef:n,...r}=e,i=Qr(ei,o),s=l.useRef(null),a=W(t,s),c=l.useRef(null);return l.useEffect(()=>{const u=c.current;c.current=(n==null?void 0:n.current)||s.current,u!==c.current&&i.onAnchorChange(c.current)}),n?null:d.jsx(Y.div,{...r,ref:a})});ti.displayName=ei;var on="PopperContent",[Uu,Ku]=Xr(on),oi=l.forwardRef((e,t)=>{var I,Z,J,U,G,B;const{__scopePopper:o,side:n="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:b,...v}=e,h=Qr(on,o),[y,x]=l.useState(null),w=W(t,ne=>x(ne)),[C,S]=l.useState(null),T=Jt(C),P=(T==null?void 0:T.width)??0,R=(T==null?void 0:T.height)??0,j=n+(i!=="center"?"-"+i:""),D=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},z=Array.isArray(u)?u:[u],q=z.length>0,V={padding:D,boundary:z.filter(Yu),altBoundary:q},{refs:F,floatingStyles:H,placement:O,isPositioned:$,middlewareData:E}=Du({strategy:"fixed",placement:j,whileElementsMounted:(...ne)=>Eu(...ne,{animationFrame:g==="always"}),elements:{reference:h.anchor},middleware:[$u({mainAxis:r+R,alignmentAxis:s}),c&&Lu({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Fu():void 0,...V}),c&&Vu({...V}),Bu({...V,apply:({elements:ne,rects:ge,availableWidth:st,availableHeight:at})=>{const{width:lt,height:La}=ge.reference,Rt=ne.floating.style;Rt.setProperty("--radix-popper-available-width",`${st}px`),Rt.setProperty("--radix-popper-available-height",`${at}px`),Rt.setProperty("--radix-popper-anchor-width",`${lt}px`),Rt.setProperty("--radix-popper-anchor-height",`${La}px`)}}),C&&zu({element:C,padding:a}),Xu({arrowWidth:P,arrowHeight:R}),m&&Wu({strategy:"referenceHidden",...V})]}),[K,te]=ii(O),ae=Oe(b);oe(()=>{$&&(ae==null||ae())},[$,ae]);const Se=(I=E.arrow)==null?void 0:I.x,Q=(Z=E.arrow)==null?void 0:Z.y,X=((J=E.arrow)==null?void 0:J.centerOffset)!==0,[le,me]=l.useState();return oe(()=>{y&&me(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:$?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[(U=E.transformOrigin)==null?void 0:U.x,(G=E.transformOrigin)==null?void 0:G.y].join(" "),...((B=E.hide)==null?void 0:B.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(Uu,{scope:o,placedSide:K,onArrowChange:S,arrowX:Se,arrowY:Q,shouldHideArrow:X,children:d.jsx(Y.div,{"data-side":K,"data-align":te,...v,ref:w,style:{...v.style,animation:$?void 0:"none"}})})})});oi.displayName=on;var ni="PopperArrow",Zu={top:"bottom",right:"left",bottom:"top",left:"right"},ri=l.forwardRef(function(t,o){const{__scopePopper:n,...r}=t,i=Ku(ni,n),s=Zu[i.placedSide];return d.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:d.jsx(Hu,{...r,ref:o,style:{...r.style,display:"block"}})})});ri.displayName=ni;function Yu(e){return e!==null}var Xu=e=>({name:"transformOrigin",options:e,fn(t){var h,y,x;const{placement:o,rects:n,middlewareData:r}=t,s=((h=r.arrow)==null?void 0:h.centerOffset)!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[u,f]=ii(o),p={start:"0%",center:"50%",end:"100%"}[f],m=(((y=r.arrow)==null?void 0:y.x)??0)+a/2,g=(((x=r.arrow)==null?void 0:x.y)??0)+c/2;let b="",v="";return u==="bottom"?(b=s?p:`${m}px`,v=`${-c}px`):u==="top"?(b=s?p:`${m}px`,v=`${n.floating.height+c}px`):u==="right"?(b=`${-c}px`,v=s?p:`${g}px`):u==="left"&&(b=`${n.floating.width+c}px`,v=s?p:`${g}px`),{data:{x:b,y:v}}}});function ii(e){const[t,o="center"]=e.split("-");return[t,o]}var nn=Jr,eo=ti,rn=oi,sn=ri,Qu="Portal",bt=l.forwardRef((e,t)=>{var a;const{container:o,...n}=e,[r,i]=l.useState(!1);oe(()=>i(!0),[]);const s=o||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?cr.createPortal(d.jsx(Y.div,{...n,ref:t}),s):null});bt.displayName=Qu;function si(e){const t=Ju(e),o=l.forwardRef((n,r)=>{const{children:i,...s}=n,a=l.Children.toArray(i),c=a.find(td);if(c){const u=c.props.children,f=a.map(p=>p===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...s,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}function Ju(e){const t=l.forwardRef((o,n)=>{const{children:r,...i}=o;if(l.isValidElement(r)){const s=nd(r),a=od(i,r.props);return r.type!==l.Fragment&&(a.ref=n?De(n,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ed=Symbol("radix.slottable");function td(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ed}function od(e,t){const o={...t};for(const n in t){const r=e[n],i=t[n];/^on[A-Z]/.test(n)?r&&i?o[n]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function nd(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var rd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],se=rd.reduce((e,t)=>{const o=si(`Primitive.${t}`),n=l.forwardRef((r,i)=>{const{asChild:s,...a}=r,c=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),id=l[" useInsertionEffect ".trim().toString()]||oe;function Ae({prop:e,defaultProp:t,onChange:o=()=>{},caller:n}){const[r,i,s]=sd({defaultProp:t,onChange:o}),a=e!==void 0,c=a?e:r;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const p=f.current;p!==a&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=a},[a,n])}const u=l.useCallback(f=>{var p;if(a){const m=ad(f)?f(e):f;m!==e&&((p=s.current)==null||p.call(s,m))}else i(f)},[a,e,i,s]);return[c,u]}function sd({defaultProp:e,onChange:t}){const[o,n]=l.useState(e),r=l.useRef(o),i=l.useRef(t);return id(()=>{i.current=t},[t]),l.useEffect(()=>{var s;r.current!==o&&((s=i.current)==null||s.call(i,o),r.current=o)},[o,r]),[o,n,i]}function ad(e){return typeof e=="function"}function to(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ai=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ld="VisuallyHidden",li=l.forwardRef((e,t)=>d.jsx(Y.span,{...e,ref:t,style:{...ai,...e.style}}));li.displayName=ld;var cd=li,ud=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ge=new WeakMap,At=new WeakMap,Nt={},Eo=0,ci=function(e){return e&&(e.host||ci(e.parentNode))},dd=function(e,t){return t.map(function(o){if(e.contains(o))return o;var n=ci(o);return n&&e.contains(n)?n:(console.error("aria-hidden",o,"in not contained inside",e,". Doing nothing"),null)}).filter(function(o){return!!o})},fd=function(e,t,o,n){var r=dd(t,Array.isArray(e)?e:[e]);Nt[o]||(Nt[o]=new WeakMap);var i=Nt[o],s=[],a=new Set,c=new Set(r),u=function(p){!p||a.has(p)||(a.add(p),u(p.parentNode))};r.forEach(u);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(m){if(a.has(m))f(m);else try{var g=m.getAttribute(n),b=g!==null&&g!=="false",v=(Ge.get(m)||0)+1,h=(i.get(m)||0)+1;Ge.set(m,v),i.set(m,h),s.push(m),v===1&&b&&At.set(m,!0),h===1&&m.setAttribute(o,"true"),b||m.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return f(t),a.clear(),Eo++,function(){s.forEach(function(p){var m=Ge.get(p)-1,g=i.get(p)-1;Ge.set(p,m),i.set(p,g),m||(At.has(p)||p.removeAttribute(n),At.delete(p)),g||p.removeAttribute(o)}),Eo--,Eo||(Ge=new WeakMap,Ge=new WeakMap,At=new WeakMap,Nt={})}},an=function(e,t,o){o===void 0&&(o="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),r=ud(e);return r?(n.push.apply(n,Array.from(r.querySelectorAll("[aria-live], script"))),fd(n,r,o,"aria-hidden")):function(){return null}},he=function(){return he=Object.assign||function(t){for(var o,n=1,r=arguments.length;n<r;n++){o=arguments[n];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},he.apply(this,arguments)};function ui(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o}function pd(e,t,o){if(o||arguments.length===2)for(var n=0,r=t.length,i;n<r;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var Dt="right-scroll-bar-position",Mt="width-before-scroll-bar",vd="with-scroll-bars-hidden",md="--removed-body-scroll-bar-size";function Po(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function gd(e,t){var o=L.useState(function(){return{value:e,callback:t,facade:{get current(){return o.value},set current(n){var r=o.value;r!==n&&(o.value=n,o.callback(n,r))}}}})[0];return o.callback=t,o.facade}var hd=typeof window<"u"?l.useLayoutEffect:l.useEffect,er=new WeakMap;function xd(e,t){var o=gd(null,function(n){return e.forEach(function(r){return Po(r,n)})});return hd(function(){var n=er.get(o);if(n){var r=new Set(n),i=new Set(e),s=o.current;r.forEach(function(a){i.has(a)||Po(a,null)}),i.forEach(function(a){r.has(a)||Po(a,s)})}er.set(o,e)},[e]),o}function bd(e){return e}function yd(e,t){t===void 0&&(t=bd);var o=[],n=!1,r={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:e},useMedium:function(i){var s=t(i,n);return o.push(s),function(){o=o.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(n=!0;o.length;){var s=o;o=[],s.forEach(i)}o={push:function(a){return i(a)},filter:function(){return o}}},assignMedium:function(i){n=!0;var s=[];if(o.length){var a=o;o=[],a.forEach(i),s=o}var c=function(){var f=s;s=[],f.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),o={push:function(f){s.push(f),u()},filter:function(f){return s=s.filter(f),o}}}};return r}function wd(e){e===void 0&&(e={});var t=yd(null);return t.options=he({async:!0,ssr:!1},e),t}var di=function(e){var t=e.sideCar,o=ui(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return l.createElement(n,he({},o))};di.isSideCarExport=!0;function Cd(e,t){return e.useMedium(t),di}var fi=wd(),To=function(){},oo=l.forwardRef(function(e,t){var o=l.useRef(null),n=l.useState({onScrollCapture:To,onWheelCapture:To,onTouchMoveCapture:To}),r=n[0],i=n[1],s=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,g=e.noRelative,b=e.noIsolation,v=e.inert,h=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,w=e.gapMode,C=ui(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=m,T=xd([o,t]),P=he(he({},C),r);return l.createElement(l.Fragment,null,f&&l.createElement(S,{sideCar:fi,removeScrollBar:u,shards:p,noRelative:g,noIsolation:b,inert:v,setCallbacks:i,allowPinchZoom:!!h,lockRef:o,gapMode:w}),s?l.cloneElement(l.Children.only(a),he(he({},P),{ref:T})):l.createElement(x,he({},P,{className:c,ref:T}),a))});oo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};oo.classNames={fullWidth:Mt,zeroRight:Dt};var Sd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Rd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Sd();return t&&e.setAttribute("nonce",t),e}function Ed(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Pd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Td=function(){var e=0,t=null;return{add:function(o){e==0&&(t=Rd())&&(Ed(t,o),Pd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ad=function(){var e=Td();return function(t,o){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&o])}},pi=function(){var e=Ad(),t=function(o){var n=o.styles,r=o.dynamic;return e(n,r),null};return t},Nd={left:0,top:0,right:0,gap:0},Ao=function(e){return parseInt(e||"",10)||0},Id=function(e){var t=window.getComputedStyle(document.body),o=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Ao(o),Ao(n),Ao(r)]},kd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Nd;var t=Id(e),o=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-o+t[2]-t[0])}},Od=pi(),Ye="data-scroll-locked",_d=function(e,t,o,n){var r=e.left,i=e.top,s=e.right,a=e.gap;return o===void 0&&(o="margin"),`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),L=require("react"),cr=require("react-dom");function ur(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const l=ur(L),Gt=ur(cr);function dr(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=dr(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function fr(){for(var e,t,o=0,n="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=dr(e))&&(n&&(n+=" "),n+=t);return n}const Fa=(e,t)=>{const o=new Array(e.length+t.length);for(let n=0;n<e.length;n++)o[n]=e[n];for(let n=0;n<t.length;n++)o[e.length+n]=t[n];return o},Va=(e,t)=>({classGroupId:e,validator:t}),pr=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),$t="-",Pn=[],Ba="arbitrary..",Wa=e=>{const t=qa(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return za(s);const a=s.split($t),c=a[0]===""&&a.length>1?1:0;return vr(a,c,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const c=n[s],u=o[s];return c?u?Fa(u,c):c:u||Pn}return o[s]||Pn}}},vr=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;const r=e[t],i=o.nextPart.get(r);if(i){const u=vr(e,t+1,i);if(u)return u}const s=o.validators;if(s===null)return;const a=t===0?e.join($t):e.slice(t).join($t),c=s.length;for(let u=0;u<c;u++){const f=s[u];if(f.validator(a))return f.classGroupId}},za=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),o=t.indexOf(":"),n=t.slice(0,o);return n?Ba+n:void 0})(),qa=e=>{const{theme:t,classGroups:o}=e;return Ha(o,t)},Ha=(e,t)=>{const o=pr();for(const n in e){const r=e[n];Ho(r,o,n,t)}return o},Ho=(e,t,o,n)=>{const r=e.length;for(let i=0;i<r;i++){const s=e[i];Ga(s,t,o,n)}},Ga=(e,t,o,n)=>{if(typeof e=="string"){Ua(e,t,o);return}if(typeof e=="function"){Ka(e,t,o,n);return}Za(e,t,o,n)},Ua=(e,t,o)=>{const n=e===""?t:mr(t,e);n.classGroupId=o},Ka=(e,t,o,n)=>{if(Ya(e)){Ho(e(n),t,o,n);return}t.validators===null&&(t.validators=[]),t.validators.push(Va(o,e))},Za=(e,t,o,n)=>{const r=Object.entries(e),i=r.length;for(let s=0;s<i;s++){const[a,c]=r[s];Ho(c,mr(t,a),o,n)}},mr=(e,t)=>{let o=e;const n=t.split($t),r=n.length;for(let i=0;i<r;i++){const s=n[i];let a=o.nextPart.get(s);a||(a=pr(),o.nextPart.set(s,a)),o=a}return o},Ya=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Xa=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),n=Object.create(null);const r=(i,s)=>{o[i]=s,t++,t>e&&(t=0,n=o,o=Object.create(null))};return{get(i){let s=o[i];if(s!==void 0)return s;if((s=n[i])!==void 0)return r(i,s),s},set(i,s){i in o?o[i]=s:r(i,s)}}},Io="!",Tn=":",Qa=[],An=(e,t,o,n,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:n,isExternal:r}),Ja=e=>{const{prefix:t,experimentalParseClassName:o}=e;let n=r=>{const i=[];let s=0,a=0,c=0,u;const f=r.length;for(let v=0;v<f;v++){const h=r[v];if(s===0&&a===0){if(h===Tn){i.push(r.slice(c,v)),c=v+1;continue}if(h==="/"){u=v;continue}}h==="["?s++:h==="]"?s--:h==="("?a++:h===")"&&a--}const p=i.length===0?r:r.slice(c);let m=p,g=!1;p.endsWith(Io)?(m=p.slice(0,-1),g=!0):p.startsWith(Io)&&(m=p.slice(1),g=!0);const b=u&&u>c?u-c:void 0;return An(i,g,m,b)};if(t){const r=t+Tn,i=n;n=s=>s.startsWith(r)?i(s.slice(r.length)):An(Qa,!1,s,void 0,!0)}if(o){const r=n;n=i=>o({className:i,parseClassName:r})}return n},el=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((o,n)=>{t.set(o,1e6+n)}),o=>{const n=[];let r=[];for(let i=0;i<o.length;i++){const s=o[i],a=s[0]==="[",c=t.has(s);a||c?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(s)):r.push(s)}return r.length>0&&(r.sort(),n.push(...r)),n}},tl=e=>({cache:Xa(e.cacheSize),parseClassName:Ja(e),sortModifiers:el(e),...Wa(e)}),ol=/\s+/,nl=(e,t)=>{const{parseClassName:o,getClassGroupId:n,getConflictingClassGroupIds:r,sortModifiers:i}=t,s=[],a=e.trim().split(ol);let c="";for(let u=a.length-1;u>=0;u-=1){const f=a[u],{isExternal:p,modifiers:m,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:v}=o(f);if(p){c=f+(c.length>0?" "+c:c);continue}let h=!!v,y=n(h?b.substring(0,v):b);if(!y){if(!h){c=f+(c.length>0?" "+c:c);continue}if(y=n(b),!y){c=f+(c.length>0?" "+c:c);continue}h=!1}const x=m.length===0?"":m.length===1?m[0]:i(m).join(":"),w=g?x+Io:x,C=w+y;if(s.indexOf(C)>-1)continue;s.push(C);const S=r(y,h);for(let T=0;T<S.length;++T){const P=S[T];s.push(w+P)}c=f+(c.length>0?" "+c:c)}return c},rl=(...e)=>{let t=0,o,n,r="";for(;t<e.length;)(o=e[t++])&&(n=gr(o))&&(r&&(r+=" "),r+=n);return r},gr=e=>{if(typeof e=="string")return e;let t,o="";for(let n=0;n<e.length;n++)e[n]&&(t=gr(e[n]))&&(o&&(o+=" "),o+=t);return o},il=(e,...t)=>{let o,n,r,i;const s=c=>{const u=t.reduce((f,p)=>p(f),e());return o=tl(u),n=o.cache.get,r=o.cache.set,i=a,a(c)},a=c=>{const u=n(c);if(u)return u;const f=nl(c,o);return r(c,f),f};return i=s,(...c)=>i(rl(...c))},sl=[],ee=e=>{const t=o=>o[e]||sl;return t.isThemeGetter=!0,t},hr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,al=/^\d+\/\d+$/,ll=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cl=/\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$/,ul=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,dl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,He=e=>al.test(e),M=e=>!!e&&!Number.isNaN(Number(e)),Ne=e=>!!e&&Number.isInteger(Number(e)),xo=e=>e.endsWith("%")&&M(e.slice(0,-1)),Re=e=>ll.test(e),pl=()=>!0,vl=e=>cl.test(e)&&!ul.test(e),br=()=>!1,ml=e=>dl.test(e),gl=e=>fl.test(e),hl=e=>!A(e)&&!N(e),xl=e=>et(e,Cr,br),A=e=>hr.test(e),Ve=e=>et(e,Sr,vl),bo=e=>et(e,Sl,M),Nn=e=>et(e,yr,br),bl=e=>et(e,wr,gl),Et=e=>et(e,Rr,ml),N=e=>xr.test(e),ct=e=>tt(e,Sr),yl=e=>tt(e,Rl),In=e=>tt(e,yr),wl=e=>tt(e,Cr),Cl=e=>tt(e,wr),Pt=e=>tt(e,Rr,!0),et=(e,t,o)=>{const n=hr.exec(e);return n?n[1]?t(n[1]):o(n[2]):!1},tt=(e,t,o=!1)=>{const n=xr.exec(e);return n?n[1]?t(n[1]):o:!1},yr=e=>e==="position"||e==="percentage",wr=e=>e==="image"||e==="url",Cr=e=>e==="length"||e==="size"||e==="bg-size",Sr=e=>e==="length",Sl=e=>e==="number",Rl=e=>e==="family-name",Rr=e=>e==="shadow",El=()=>{const e=ee("color"),t=ee("font"),o=ee("text"),n=ee("font-weight"),r=ee("tracking"),i=ee("leading"),s=ee("breakpoint"),a=ee("container"),c=ee("spacing"),u=ee("radius"),f=ee("shadow"),p=ee("inset-shadow"),m=ee("text-shadow"),g=ee("drop-shadow"),b=ee("blur"),v=ee("perspective"),h=ee("aspect"),y=ee("ease"),x=ee("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...C(),N,A],T=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],R=()=>[N,A,c],j=()=>[He,"full","auto",...R()],D=()=>[Ne,"none","subgrid",N,A],z=()=>["auto",{span:["full",Ne,N,A]},Ne,N,A],q=()=>[Ne,"auto",N,A],V=()=>["auto","min","max","fr",N,A],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],H=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...R()],$=()=>[He,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],E=()=>[e,N,A],K=()=>[...C(),In,Nn,{position:[N,A]}],te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ae=()=>["auto","cover","contain",wl,xl,{size:[N,A]}],Se=()=>[xo,ct,Ve],Q=()=>["","none","full",u,N,A],X=()=>["",M,ct,Ve],le=()=>["solid","dashed","dotted","double"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[M,xo,In,Nn],Z=()=>["","none",b,N,A],J=()=>["none",M,N,A],U=()=>["none",M,N,A],G=()=>[M,N,A],B=()=>[He,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Re],breakpoint:[Re],color:[pl],container:[Re],"drop-shadow":[Re],ease:["in","out","in-out"],font:[hl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Re],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Re],shadow:[Re],spacing:["px",M],text:[Re],"text-shadow":[Re],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",He,A,N,h]}],container:["container"],columns:[{columns:[M,A,N,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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"],sr:["sr-only","not-sr-only"],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:S()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:j()}],"inset-x":[{"inset-x":j()}],"inset-y":[{"inset-y":j()}],start:[{start:j()}],end:[{end:j()}],top:[{top:j()}],right:[{right:j()}],bottom:[{bottom:j()}],left:[{left:j()}],visibility:["visible","invisible","collapse"],z:[{z:[Ne,"auto",N,A]}],basis:[{basis:[He,"full","auto",a,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[M,He,"auto","initial","none",A]}],grow:[{grow:["",M,N,A]}],shrink:[{shrink:["",M,N,A]}],order:[{order:[Ne,"first","last","none",N,A]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...H(),"normal"]}],"justify-self":[{"justify-self":["auto",...H()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...H(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...H(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...H(),"baseline"]}],"place-self":[{"place-self":["auto",...H()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[a,"screen",...$()]}],"min-w":[{"min-w":[a,"screen","none",...$()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",o,ct,Ve]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,N,bo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xo,A]}],"font-family":[{font:[yl,A,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,N,A]}],"line-clamp":[{"line-clamp":[M,"none",N,bo]}],leading:[{leading:[i,...R()]}],"list-image":[{"list-image":["none",N,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",N,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[M,"from-font","auto",N,Ve]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[M,"auto",N,A]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N,A]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",N,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:K()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:ae()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ne,N,A],radial:["",N,A],conic:[Ne,N,A]},Cl,bl]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:Se()}],"gradient-via-pos":[{via:Se()}],"gradient-to-pos":[{to:Se()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...le(),"hidden","none"]}],"divide-style":[{divide:[...le(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[M,N,A]}],"outline-w":[{outline:["",M,ct,Ve]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",f,Pt,Et]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",p,Pt,Et]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[M,Ve]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",m,Pt,Et]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[M,N,A]}],"mix-blend":[{"mix-blend":[...me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[M]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[N,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[M]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:K()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:ae()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",N,A]}],filter:[{filter:["","none",N,A]}],blur:[{blur:Z()}],brightness:[{brightness:[M,N,A]}],contrast:[{contrast:[M,N,A]}],"drop-shadow":[{"drop-shadow":["","none",g,Pt,Et]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",M,N,A]}],"hue-rotate":[{"hue-rotate":[M,N,A]}],invert:[{invert:["",M,N,A]}],saturate:[{saturate:[M,N,A]}],sepia:[{sepia:["",M,N,A]}],"backdrop-filter":[{"backdrop-filter":["","none",N,A]}],"backdrop-blur":[{"backdrop-blur":Z()}],"backdrop-brightness":[{"backdrop-brightness":[M,N,A]}],"backdrop-contrast":[{"backdrop-contrast":[M,N,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",M,N,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[M,N,A]}],"backdrop-invert":[{"backdrop-invert":["",M,N,A]}],"backdrop-opacity":[{"backdrop-opacity":[M,N,A]}],"backdrop-saturate":[{"backdrop-saturate":[M,N,A]}],"backdrop-sepia":[{"backdrop-sepia":["",M,N,A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",N,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[M,"initial",N,A]}],ease:[{ease:["linear","initial",y,N,A]}],delay:[{delay:[M,N,A]}],animate:[{animate:["none",x,N,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,N,A]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:U()}],"scale-x":[{"scale-x":U()}],"scale-y":[{"scale-y":U()}],"scale-z":[{"scale-z":U()}],"scale-3d":["scale-3d"],skew:[{skew:G()}],"skew-x":[{"skew-x":G()}],"skew-y":[{"skew-y":G()}],transform:[{transform:[N,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:B()}],"translate-x":[{"translate-x":B()}],"translate-y":[{"translate-y":B()}],"translate-z":[{"translate-z":B()}],"translate-none":["translate-none"],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",N,A]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",N,A]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[M,ct,Ve,bo]}],stroke:[{stroke:["none",...E()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Pl=il(El),k=(...e)=>Pl(fr(e));function kn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function De(...e){return t=>{let o=!1;const n=e.map(r=>{const i=kn(r,t);return!o&&typeof i=="function"&&(o=!0),i});if(o)return()=>{for(let r=0;r<n.length;r++){const i=n[r];typeof i=="function"?i():kn(e[r],null)}}}}function W(...e){return l.useCallback(De(...e),e)}var Tl=Symbol.for("react.lazy"),Lt=l[" use ".trim().toString()];function Al(e){return typeof e=="object"&&e!==null&&"then"in e}function Er(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Tl&&"_payload"in e&&Al(e._payload)}function Nl(e){const t=Il(e),o=l.forwardRef((n,r)=>{let{children:i,...s}=n;Er(i)&&typeof Lt=="function"&&(i=Lt(i._payload));const a=l.Children.toArray(i),c=a.find(Ol);if(c){const u=c.props.children,f=a.map(p=>p===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...s,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}var Go=Nl("Slot");function Il(e){const t=l.forwardRef((o,n)=>{let{children:r,...i}=o;if(Er(r)&&typeof Lt=="function"&&(r=Lt(r._payload)),l.isValidElement(r)){const s=jl(r),a=_l(i,r.props);return r.type!==l.Fragment&&(a.ref=n?De(n,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kl=Symbol("radix.slottable");function Ol(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kl}function _l(e,t){const o={...t};for(const n in t){const r=e[n],i=t[n];/^on[A-Z]/.test(n)?r&&i?o[n]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function jl(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}const On=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_n=fr,Me=(e,t)=>o=>{var n;if((t==null?void 0:t.variants)==null)return _n(e,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:r,defaultVariants:i}=t,s=Object.keys(r).map(u=>{const f=o==null?void 0:o[u],p=i==null?void 0:i[u];if(f===null)return null;const m=On(f)||On(p);return r[u][m]}),a=o&&Object.entries(o).reduce((u,f)=>{let[p,m]=f;return m===void 0||(u[p]=m),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,f)=>{let{class:p,className:m,...g}=f;return Object.entries(g).every(b=>{let[v,h]=b;return Array.isArray(h)?h.includes({...i,...a}[v]):{...i,...a}[v]===h})?[...u,p,m]:u},[]);return _n(e,s,c,o==null?void 0:o.class,o==null?void 0:o.className)},Dl=Me("volt-ui-inline-flex volt-ui-items-center volt-ui-justify-center volt-ui-font-normal volt-ui-whitespace-nowrap volt-ui-transition-all volt-ui-cursor-pointer volt-ui-focus-visible:outline-2 volt-ui-focus-visible:outline-offset-2 volt-ui-disabled:pointer-events-none volt-ui-disabled:opacity-50 volt-ui-rounded-full volt-ui-shrink-0 [&_svg]:shrink-0 [&_svg]:pointer-events-none",{variants:{variant:{primary:"volt-ui-bg-accent-solid volt-ui-text-accent-contrast volt-ui-hover:bg-accent-solid-hover volt-ui-active:bg-accent-solid-hover volt-ui-focus-visible:outline-accent-a8",secondary:"volt-ui-bg-accent-soft volt-ui-text-accent-light volt-ui-hover:bg-accent-soft-hover volt-ui-focus-visible:outline-accent-a8",tertiary:"volt-ui-bg-transparent volt-ui-text-accent-light volt-ui-hover:bg-accent-soft volt-ui-focus-visible:outline-accent-a8",destructive:"volt-ui-bg-error-a9 volt-ui-text-error-contrast volt-ui-hover:bg-error-solid-hover volt-ui-active:bg-error-solid-hover volt-ui-focus-visible:outline-error-a8"},size:{xs:"volt-ui-px-2 volt-ui-py-1 volt-ui-min-h-5 volt-ui-text-xs volt-ui-gap-[4px] [&_svg]:size-[12px] volt-ui-has-[>svg]:px-1",sm:"volt-ui-px-3 volt-ui-py-1 volt-ui-min-h-6 volt-ui-text-sm volt-ui-gap-[6px] [&_svg]:size-[14px] volt-ui-has-[>svg]:px-1.25",base:"volt-ui-px-4 volt-ui-py-1 volt-ui-min-h-9 volt-ui-text-base volt-ui-gap-2 [&_svg]:size-4 volt-ui-has-[>svg]:px-2.5",large:"volt-ui-px-6 volt-ui-py-2.5 volt-ui-min-h-10 volt-ui-text-lg volt-ui-gap-2 [&_svg]:size-6 volt-ui-has-[>svg]:px-2.5"}},defaultVariants:{variant:"primary",size:"base"}}),Pr=L.forwardRef(({variant:e,size:t,asChild:o=!1,className:n,...r},i)=>{const s=o?Go:"button";return d.jsx(s,{"data-slot":"button",className:k(Dl({variant:e,size:t,className:n})),ref:i,...r})});Pr.displayName="Button";function dt(e){const t=Ml(e),o=l.forwardRef((n,r)=>{const{children:i,...s}=n,a=l.Children.toArray(i),c=a.find(Ll);if(c){const u=c.props.children,f=a.map(p=>p===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...s,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}function Ml(e){const t=l.forwardRef((o,n)=>{const{children:r,...i}=o;if(l.isValidElement(r)){const s=Vl(r),a=Fl(i,r.props);return r.type!==l.Fragment&&(a.ref=n?De(n,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $l=Symbol("radix.slottable");function Ll(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$l}function Fl(e,t){const o={...t};for(const n in t){const r=e[n],i=t[n];/^on[A-Z]/.test(n)?r&&i?o[n]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function Vl(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var Bl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wl=Bl.reduce((e,t)=>{const o=dt(`Primitive.${t}`),n=l.forwardRef((r,i)=>{const{asChild:s,...a}=r,c=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),zl="Separator",jn="horizontal",ql=["horizontal","vertical"],Tr=l.forwardRef((e,t)=>{const{decorative:o,orientation:n=jn,...r}=e,i=Hl(n)?n:jn,a=o?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return d.jsx(Wl.div,{"data-orientation":i,...a,...r,ref:t})});Tr.displayName=zl;function Hl(e){return ql.includes(e)}var Gl=Tr;const Ar=({className:e,orientation:t="horizontal",decorative:o=!0,...n})=>d.jsx(Gl,{"data-slot":"separator",decorative:o,orientation:t,className:k("volt-ui-bg-gray-a5 volt-ui-shrink-0 volt-ui-data-[orientation=horizontal]:h-px volt-ui-data-[orientation=horizontal]:w-full volt-ui-data-[orientation=vertical]:h-full volt-ui-data-[orientation=vertical]:w-px",e),...n}),Ul=Me("volt-ui-flex volt-ui-w-fit volt-ui-items-stretch volt-ui-*:focus-visible:z-10 volt-ui-*:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='volt-ui-w-'])]:w-fit [&>input]:flex-1 volt-ui-has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md volt-ui-has-[>[data-slot=button-group]]:gap-2",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"volt-ui-flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}}),Kl=({className:e,orientation:t,...o})=>d.jsx("div",{role:"group","data-slot":"volt-ui-button-group","data-orientation":t,className:k(Ul({orientation:t}),e),...o}),Zl=({className:e,asChild:t=!1,...o})=>{const n=t?Go:"div";return d.jsx(n,{className:k("volt-ui-bg-gray-a4 volt-ui-flex volt-ui-items-center volt-ui-gap-2 volt-ui-rounded-md volt-ui-border volt-ui-px-4 volt-ui-py-3 volt-ui-text-sm volt-ui-font-medium volt-ui-shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='volt-ui-size-'])]:size-4",e),...o})},Yl=({className:e,orientation:t="vertical",...o})=>d.jsx(Ar,{"data-slot":"volt-ui-button-group-separator",orientation:t,className:k("volt-ui-bg-body! volt-ui-m-0 volt-ui-relative volt-ui-self-stretch volt-ui-data-[orientation=vertical]:h-px",e),...o});var Xl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ql=Xl.reduce((e,t)=>{const o=dt(`Primitive.${t}`),n=l.forwardRef((r,i)=>{const{asChild:s,...a}=r,c=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Jl="Label",Nr=l.forwardRef((e,t)=>d.jsx(Ql.label,{...e,ref:t,onMouseDown:o=>{var r;o.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,o),!o.defaultPrevented&&o.detail>1&&o.preventDefault())}}));Nr.displayName=Jl;var ec=Nr;const tc=Me("volt-ui-flex volt-ui-items-center volt-ui-gap-2 volt-ui-leading-none volt-ui-font-normal volt-ui-group-data-[disabled=true]:pointer-events-none volt-ui-group-data-[disabled=true]:opacity-50 volt-ui-peer-disabled:cursor-not-allowed volt-ui-peer-disabled:opacity-50",{variants:{variant:{primary:"volt-ui-text-gray-default",destructive:"volt-ui-text-error-a12"},size:{sm:"volt-ui-text-xs",base:"volt-ui-text-sm",large:"volt-ui-text-base"}},defaultVariants:{variant:"primary",size:"base"}}),Ir=({variant:e,size:t,className:o,...n})=>d.jsx(ec,{"data-slot":"label",className:k(tc({variant:e,size:t,className:o})),...n}),kr=L.createContext(null),Ut=()=>{const e=L.useContext(kr);if(!e)throw new Error("FieldInput must be used within a Field component");return e},oc=({className:e,...t})=>d.jsx("div",{"data-slot":"field-group",className:k("volt-ui-group/field-group volt-ui-@container/field-group volt-ui-flex volt-ui-w-full volt-ui-flex-col volt-ui-gap-2 volt-ui-*:data-[slot=field-group]:gap-2 [&>div[data-slot=field]+[data-slot=field-description]]:pl-3",e),...t}),nc=({className:e,...t})=>d.jsx("fieldset",{"data-slot":"field-set",className:k("volt-ui-flex volt-ui-flex-col volt-ui-gap-6",e),...t}),rc=({className:e,children:t,onClick:o,...n})=>{const r=l.useRef(null);return d.jsx(kr.Provider,{value:{inputRef:r},children:d.jsx("div",{role:"group","data-slot":"field",className:k("volt-ui-flex-col volt-ui-*:w-full [&>.sr-only]:w-auto volt-ui-group/field volt-ui-flex volt-ui-w-full volt-ui-py-2 volt-ui-px-3 volt-ui-gap-1 volt-ui-rounded-lg volt-ui-transition-all volt-ui-bg-accent-a3 volt-ui-data-[invalid=true]:bg-error-soft volt-ui-focus-within:outline-2 volt-ui-focus-within:outline-offset-2 [&:not([data-invalid=true]):focus-within]:outline-accent-a8 volt-ui-data-[invalid=true]:focus-within:outline-error-a8","volt-ui-has-[input[data-readonly=true]]:bg-gray-a4 volt-ui-has-[input[disabled]]:bg-gray-a4 volt-ui-has-[input[data-readonly=true]]:focus-within:outline-gray-a8 volt-ui-has-[input[disabled]]:focus-within:outline-gray-a8","volt-ui-has-[button[data-slot=select-trigger][disabled]]:bg-gray-a4 volt-ui-has-[button[data-slot=select-trigger][disabled]]:focus-within:outline-gray-a8","volt-ui-has-[textarea[data-readonly=true]]:bg-gray-a4 volt-ui-has-[textarea[disabled]]:bg-gray-a4 volt-ui-has-[textarea[data-readonly=true]]:focus-within:outline-gray-a8 volt-ui-has-[textarea[disabled]]:focus-within:outline-gray-a8",e),onClick:i=>{var s,a;i.stopPropagation(),i.target===i.currentTarget&&r.current&&!r.current.disabled&&((a=(s=r.current)==null?void 0:s.dataset.slot)!=null&&a.match(/select-trigger/)&&r.current.click(),r.current.focus()),o==null||o(i)},...n,children:t})})},ic=({className:e,...t})=>d.jsx("div",{"data-slot":"field-content",className:k("volt-ui-group/field-content volt-ui-flex volt-ui-flex-1 volt-ui-flex-col volt-ui-gap-2 volt-ui-leading-snug",e),...t}),sc=({className:e,...t})=>d.jsx(Ir,{"data-slot":"field-label",className:k("volt-ui-group/field-label volt-ui-min-h-5 volt-ui-text-xs volt-ui-peer/field-label volt-ui-flex volt-ui-w-fit volt-ui-gap-2 volt-ui-leading-snug volt-ui-group-data-[disabled=true]/field:opacity-50","volt-ui-has-[>[data-slot=field]]:w-full volt-ui-has-[>[data-slot=field]]:flex-col volt-ui-has-[>[data-slot=field]]:rounded-md volt-ui-has-[>[data-slot=field]]:border volt-ui-*:data-[slot=field]:p-4","volt-ui-has-data-[state=checked]:bg-accent-a3/5 volt-ui-has-data-[state=checked]:border-accent-a3 volt-ui-dark:has-data-[state=checked]:bg-accent-a3/10",e),...t}),ac=({className:e,showOnHover:t=!0,...o})=>d.jsx("div",{"data-slot":"field-label-content",className:k("volt-ui-items-center volt-ui-gap-1 volt-ui-transition-opacity volt-ui-duration-150",{"volt-ui-hidden volt-ui-pointer-events-none volt-ui-group-hover/field:inline-flex volt-ui-group-hover/field:pointer-events-auto":t,"volt-ui-inline-flex":!t},e),...o}),lc=({className:e,...t})=>d.jsx("p",{"data-slot":"field-description",className:k("volt-ui-text-gray-default volt-ui-text-xs volt-ui-leading-normal volt-ui-font-normal","volt-ui-last:mt-0 volt-ui-nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a:hover]:text-gray-default [&>a]:underline [&>a]:underline-offset-4",e),...t}),cc=({className:e,children:t,errors:o,...n})=>{const r=L.useMemo(()=>{var s;if(t)return t;if(!(o!=null&&o.length))return null;const i=[...new Map(o.map(a=>[a==null?void 0:a.message,a])).values()];return(i==null?void 0:i.length)==1?(s=i[0])==null?void 0:s.message:d.jsx("ul",{className:"volt-ui-flex volt-ui-list-disc volt-ui-flex-col volt-ui-m-0",children:i.map((a,c)=>(a==null?void 0:a.message)&&d.jsx("li",{className:"volt-ui-text-error-light volt-ui-text-xs volt-ui-font-normal volt-ui-my-1 volt-ui-marker:text-error-light",children:a.message},c))})},[t,o]);return r?d.jsx("div",{role:"alert","data-slot":"field-error",className:k("volt-ui-text-error-light volt-ui-text-xs volt-ui-font-normal",e),...n,children:r}):null},Or=L.forwardRef(({className:e,...t},o)=>{const{inputRef:n}=Ut();return d.jsx("input",{ref:r=>{n.current=r,typeof o=="function"?o(r):o&&(o.current=r)},"data-readonly":t.readOnly,"data-slot":"field-input",className:k("volt-ui-group/field-input volt-ui-w-full volt-ui-h-6 volt-ui-outline-none volt-ui-text-sm volt-ui-text-gray-default volt-ui-focus-visible:outline-none volt-ui-placeholder:text-gray-a8 volt-ui-disabled:cursor-not-allowed",e),...t})});Or.displayName="FieldInput";const _r=L.forwardRef(({className:e,...t},o)=>d.jsx("div",{ref:o,"data-slot":"field-input-group",className:k("volt-ui-flex volt-ui-items-center volt-ui-gap-1",e),...t}));_r.displayName="FieldInputGroup";const uc=Me("volt-ui-text-gray-light volt-ui-flex volt-ui-h-auto volt-ui-cursor-text volt-ui-whitespace-nowrap volt-ui-items-center volt-ui-justify-center volt-ui-gap-2 volt-ui-text-sm volt-ui-font-normal volt-ui-select-none volt-ui-group-data-[disabled=true]/input-group:opacity-50",{variants:{align:{start:"volt-ui-order-first",end:"volt-ui-order-last"}},defaultVariants:{align:"start"}}),dc=({className:e,align:t="start",...o})=>d.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:k(uc({align:t}),e),...o}),jr=L.forwardRef(({className:e,resize:t="none",...o},n)=>{const{inputRef:r}=Ut();return d.jsx("textarea",{ref:i=>{r.current=i,typeof n=="function"?n(i):n&&(n.current=i)},"data-readonly":o.readOnly,"data-slot":"field-textarea","data-resize":t,className:k("volt-ui-group/field-textarea volt-ui-w-full volt-ui-outline-none volt-ui-text-sm volt-ui-text-gray-default volt-ui-focus-visible:outline-none volt-ui-data-[resize=none]:resize-none volt-ui-data-[resize=vertical]:resize-vertical volt-ui-data-[resize=horizontal]:resize-horizontal volt-ui-placeholder:text-gray-a8 volt-ui-disabled:cursor-not-allowed",e),...o})});jr.displayName="FieldTextarea";function Dn(e,[t,o]){return Math.min(o,Math.max(t,e))}function _(e,t,{checkForDefaultPrevented:o=!0}={}){return function(r){if(e==null||e(r),o===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function fc(e,t){const o=l.createContext(t),n=i=>{const{children:s,...a}=i,c=l.useMemo(()=>a,Object.values(a));return d.jsx(o.Provider,{value:c,children:s})};n.displayName=e+"Provider";function r(i){const s=l.useContext(o);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,r]}function fe(e,t=[]){let o=[];function n(i,s){const a=l.createContext(s),c=o.length;o=[...o,s];const u=p=>{var y;const{scope:m,children:g,...b}=p,v=((y=m==null?void 0:m[e])==null?void 0:y[c])||a,h=l.useMemo(()=>b,Object.values(b));return d.jsx(v.Provider,{value:h,children:g})};u.displayName=i+"Provider";function f(p,m){var v;const g=((v=m==null?void 0:m[e])==null?void 0:v[c])||a,b=l.useContext(g);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[u,f]}const r=()=>{const i=o.map(s=>l.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[n,pc(r,...t)]}function pc(...e){const t=e[0];if(e.length===1)return t;const o=()=>{const n=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const s=n.reduce((a,{useScope:c,scopeName:u})=>{const p=c(i)[`__scope${u}`];return{...a,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return o.scopeName=t.scopeName,o}function Dr(e){const t=e+"CollectionProvider",[o,n]=fe(t),[r,i]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:h,children:y}=v,x=L.useRef(null),w=L.useRef(new Map).current;return d.jsx(r,{scope:h,itemMap:w,collectionRef:x,children:y})};s.displayName=t;const a=e+"CollectionSlot",c=dt(a),u=L.forwardRef((v,h)=>{const{scope:y,children:x}=v,w=i(a,y),C=W(h,w.collectionRef);return d.jsx(c,{ref:C,children:x})});u.displayName=a;const f=e+"CollectionItemSlot",p="data-radix-collection-item",m=dt(f),g=L.forwardRef((v,h)=>{const{scope:y,children:x,...w}=v,C=L.useRef(null),S=W(h,C),T=i(f,y);return L.useEffect(()=>(T.itemMap.set(C,{ref:C,...w}),()=>void T.itemMap.delete(C))),d.jsx(m,{[p]:"",ref:S,children:x})});g.displayName=f;function b(v){const h=i(e+"CollectionConsumer",v);return L.useCallback(()=>{const x=h.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((T,P)=>w.indexOf(T.ref.current)-w.indexOf(P.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:s,Slot:u,ItemSlot:g},b,n]}var vc=l.createContext(void 0);function Uo(e){const t=l.useContext(vc);return e||t||"ltr"}var mc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y=mc.reduce((e,t)=>{const o=dt(`Primitive.${t}`),n=l.forwardRef((r,i)=>{const{asChild:s,...a}=r,c=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function gc(e,t){e&&Gt.flushSync(()=>e.dispatchEvent(t))}function Oe(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...o)=>{var n;return(n=t.current)==null?void 0:n.call(t,...o)},[])}function hc(e,t=globalThis==null?void 0:globalThis.document){const o=Oe(e);l.useEffect(()=>{const n=r=>{r.key==="Escape"&&o(r)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[o,t])}var xc="DismissableLayer",ko="dismissableLayer.update",bc="dismissableLayer.pointerDownOutside",yc="dismissableLayer.focusOutside",Mn,Mr=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ht=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:n,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,u=l.useContext(Mr),[f,p]=l.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=l.useState({}),b=W(t,P=>p(P)),v=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(h),x=f?v.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=y,S=Sc(P=>{const R=P.target,j=[...u.branches].some(D=>D.contains(R));!C||j||(r==null||r(P),s==null||s(P),P.defaultPrevented||a==null||a())},m),T=Rc(P=>{const R=P.target;[...u.branches].some(D=>D.contains(R))||(i==null||i(P),s==null||s(P),P.defaultPrevented||a==null||a())},m);return hc(P=>{x===u.layers.size-1&&(n==null||n(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},m),l.useEffect(()=>{if(f)return o&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Mn=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),$n(),()=>{o&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Mn)}},[f,m,o,u]),l.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),$n())},[f,u]),l.useEffect(()=>{const P=()=>g({});return document.addEventListener(ko,P),()=>document.removeEventListener(ko,P)},[]),d.jsx(Y.div,{...c,ref:b,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:_(e.onFocusCapture,T.onFocusCapture),onBlurCapture:_(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:_(e.onPointerDownCapture,S.onPointerDownCapture)})});ht.displayName=xc;var wc="DismissableLayerBranch",Cc=l.forwardRef((e,t)=>{const o=l.useContext(Mr),n=l.useRef(null),r=W(t,n);return l.useEffect(()=>{const i=n.current;if(i)return o.branches.add(i),()=>{o.branches.delete(i)}},[o.branches]),d.jsx(Y.div,{...e,ref:r})});Cc.displayName=wc;function Sc(e,t=globalThis==null?void 0:globalThis.document){const o=Oe(e),n=l.useRef(!1),r=l.useRef(()=>{});return l.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let c=function(){$r(bc,o,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,o]),{onPointerDownCapture:()=>n.current=!0}}function Rc(e,t=globalThis==null?void 0:globalThis.document){const o=Oe(e),n=l.useRef(!1);return l.useEffect(()=>{const r=i=>{i.target&&!n.current&&$r(yc,o,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,o]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function $n(){const e=new CustomEvent(ko);document.dispatchEvent(e)}function $r(e,t,o,{discrete:n}){const r=o.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:o});t&&r.addEventListener(e,t,{once:!0}),n?gc(r,i):r.dispatchEvent(i)}var yo=0;function Ko(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ln()),document.body.insertAdjacentElement("beforeend",e[1]??Ln()),yo++,()=>{yo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yo--}},[])}function Ln(){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 wo="focusScope.autoFocusOnMount",Co="focusScope.autoFocusOnUnmount",Fn={bubbles:!1,cancelable:!0},Ec="FocusScope",Kt=l.forwardRef((e,t)=>{const{loop:o=!1,trapped:n=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...s}=e,[a,c]=l.useState(null),u=Oe(r),f=Oe(i),p=l.useRef(null),m=W(t,v=>c(v)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let v=function(w){if(g.paused||!a)return;const C=w.target;a.contains(C)?p.current=C:Ie(p.current,{select:!0})},h=function(w){if(g.paused||!a)return;const C=w.relatedTarget;C!==null&&(a.contains(C)||Ie(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Ie(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",h);const x=new MutationObserver(y);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",h),x.disconnect()}}},[n,a,g.paused]),l.useEffect(()=>{if(a){Bn.add(g);const v=document.activeElement;if(!a.contains(v)){const y=new CustomEvent(wo,Fn);a.addEventListener(wo,u),a.dispatchEvent(y),y.defaultPrevented||(Pc(kc(Lr(a)),{select:!0}),document.activeElement===v&&Ie(a))}return()=>{a.removeEventListener(wo,u),setTimeout(()=>{const y=new CustomEvent(Co,Fn);a.addEventListener(Co,f),a.dispatchEvent(y),y.defaultPrevented||Ie(v??document.body,{select:!0}),a.removeEventListener(Co,f),Bn.remove(g)},0)}}},[a,u,f,g]);const b=l.useCallback(v=>{if(!o&&!n||g.paused)return;const h=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(h&&y){const x=v.currentTarget,[w,C]=Tc(x);w&&C?!v.shiftKey&&y===C?(v.preventDefault(),o&&Ie(w,{select:!0})):v.shiftKey&&y===w&&(v.preventDefault(),o&&Ie(C,{select:!0})):y===x&&v.preventDefault()}},[o,n,g.paused]);return d.jsx(Y.div,{tabIndex:-1,...s,ref:m,onKeyDown:b})});Kt.displayName=Ec;function Pc(e,{select:t=!1}={}){const o=document.activeElement;for(const n of e)if(Ie(n,{select:t}),document.activeElement!==o)return}function Tc(e){const t=Lr(e),o=Vn(t,e),n=Vn(t.reverse(),e);return[o,n]}function Lr(e){const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t}function Vn(e,t){for(const o of e)if(!Ac(o,{upTo:t}))return o}function Ac(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 Nc(e){return e instanceof HTMLInputElement&&"select"in e}function Ie(e,{select:t=!1}={}){if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&Nc(e)&&t&&e.select()}}var Bn=Ic();function Ic(){let e=[];return{add(t){const o=e[0];t!==o&&(o==null||o.pause()),e=Wn(e,t),e.unshift(t)},remove(t){var o;e=Wn(e,t),(o=e[0])==null||o.resume()}}}function Wn(e,t){const o=[...e],n=o.indexOf(t);return n!==-1&&o.splice(n,1),o}function kc(e){return e.filter(t=>t.tagName!=="A")}var oe=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Oc=l[" useId ".trim().toString()]||(()=>{}),_c=0;function Ee(e){const[t,o]=l.useState(Oc());return oe(()=>{o(n=>n??String(_c++))},[e]),e||(t?`radix-${t}`:"")}const jc=["top","right","bottom","left"],_e=Math.min,re=Math.max,Ft=Math.round,Tt=Math.floor,be=e=>({x:e,y:e}),Dc={left:"right",right:"left",bottom:"top",top:"bottom"},Mc={start:"end",end:"start"};function Oo(e,t,o){return re(e,_e(t,o))}function Pe(e,t){return typeof e=="function"?e(t):e}function Te(e){return e.split("-")[0]}function ot(e){return e.split("-")[1]}function Zo(e){return e==="x"?"y":"x"}function Yo(e){return e==="y"?"height":"width"}const $c=new Set(["top","bottom"]);function xe(e){return $c.has(Te(e))?"y":"x"}function Xo(e){return Zo(xe(e))}function Lc(e,t,o){o===void 0&&(o=!1);const n=ot(e),r=Xo(e),i=Yo(r);let s=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Vt(s)),[s,Vt(s)]}function Fc(e){const t=Vt(e);return[_o(e),t,_o(t)]}function _o(e){return e.replace(/start|end/g,t=>Mc[t])}const zn=["left","right"],qn=["right","left"],Vc=["top","bottom"],Bc=["bottom","top"];function Wc(e,t,o){switch(e){case"top":case"bottom":return o?t?qn:zn:t?zn:qn;case"left":case"right":return t?Vc:Bc;default:return[]}}function zc(e,t,o,n){const r=ot(e);let i=Wc(Te(e),o==="start",n);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(_o)))),i}function Vt(e){return e.replace(/left|right|bottom|top/g,t=>Dc[t])}function qc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Fr(e){return typeof e!="number"?qc(e):{top:e,right:e,bottom:e,left:e}}function Bt(e){const{x:t,y:o,width:n,height:r}=e;return{width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function Hn(e,t,o){let{reference:n,floating:r}=e;const i=xe(t),s=Xo(t),a=Yo(s),c=Te(t),u=i==="y",f=n.x+n.width/2-r.width/2,p=n.y+n.height/2-r.height/2,m=n[a]/2-r[a]/2;let g;switch(c){case"top":g={x:f,y:n.y-r.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:p};break;case"left":g={x:n.x-r.width,y:p};break;default:g={x:n.x,y:n.y}}switch(ot(t)){case"start":g[s]-=m*(o&&u?-1:1);break;case"end":g[s]+=m*(o&&u?-1:1);break}return g}const Hc=async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:s}=o,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:p}=Hn(u,n,c),m=n,g={},b=0;for(let v=0;v<a.length;v++){const{name:h,fn:y}=a[v],{x,y:w,data:C,reset:S}=await y({x:f,y:p,initialPlacement:n,placement:m,strategy:r,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:t}});f=x??f,p=w??p,g={...g,[h]:{...g[h],...C}},S&&b<=50&&(b++,typeof S=="object"&&(S.placement&&(m=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:f,y:p}=Hn(u,m,c)),v=-1)}return{x:f,y:p,placement:m,strategy:r,middlewareData:g}};async function ft(e,t){var o;t===void 0&&(t={});const{x:n,y:r,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=Pe(t,e),b=Fr(g),h=a[m?p==="floating"?"reference":"floating":p],y=Bt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(h)))==null||o?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:c})),x=p==="floating"?{x:n,y:r,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},S=Bt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:w,strategy:c}):x);return{top:(y.top-S.top+b.top)/C.y,bottom:(S.bottom-y.bottom+b.bottom)/C.y,left:(y.left-S.left+b.left)/C.x,right:(S.right-y.right+b.right)/C.x}}const Gc=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:r,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:u,padding:f=0}=Pe(e,t)||{};if(u==null)return{};const p=Fr(f),m={x:o,y:n},g=Xo(r),b=Yo(g),v=await s.getDimensions(u),h=g==="y",y=h?"top":"left",x=h?"bottom":"right",w=h?"clientHeight":"clientWidth",C=i.reference[b]+i.reference[g]-m[g]-i.floating[b],S=m[g]-i.reference[g],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let P=T?T[w]:0;(!P||!await(s.isElement==null?void 0:s.isElement(T)))&&(P=a.floating[w]||i.floating[b]);const R=C/2-S/2,j=P/2-v[b]/2-1,D=_e(p[y],j),z=_e(p[x],j),q=D,V=P-v[b]-z,F=P/2-v[b]/2+R,H=Oo(q,F,V),O=!c.arrow&&ot(r)!=null&&F!==H&&i.reference[b]/2-(F<q?D:z)-v[b]/2<0,$=O?F<q?F-q:F-V:0;return{[g]:m[g]+$,data:{[g]:H,centerOffset:F-H-$,...O&&{alignmentOffset:$}},reset:O}}}),Uc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...h}=Pe(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};const y=Te(r),x=xe(a),w=Te(a)===a,C=await(c.isRTL==null?void 0:c.isRTL(u.floating)),S=m||(w||!v?[Vt(a)]:Fc(a)),T=b!=="none";!m&&T&&S.push(...zc(a,v,b,C));const P=[a,...S],R=await ft(t,h),j=[];let D=((n=i.flip)==null?void 0:n.overflows)||[];if(f&&j.push(R[y]),p){const F=Lc(r,s,C);j.push(R[F[0]],R[F[1]])}if(D=[...D,{placement:r,overflows:j}],!j.every(F=>F<=0)){var z,q;const F=(((z=i.flip)==null?void 0:z.index)||0)+1,H=P[F];if(H&&(!(p==="alignment"?x!==xe(H):!1)||D.every(E=>xe(E.placement)===x?E.overflows[0]>0:!0)))return{data:{index:F,overflows:D},reset:{placement:H}};let O=(q=D.filter($=>$.overflows[0]<=0).sort(($,E)=>$.overflows[1]-E.overflows[1])[0])==null?void 0:q.placement;if(!O)switch(g){case"bestFit":{var V;const $=(V=D.filter(E=>{if(T){const K=xe(E.placement);return K===x||K==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(K=>K>0).reduce((K,te)=>K+te,0)]).sort((E,K)=>E[1]-K[1])[0])==null?void 0:V[0];$&&(O=$);break}case"initialPlacement":O=a;break}if(r!==O)return{reset:{placement:O}}}return{}}}};function Gn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Un(e){return jc.some(t=>e[t]>=0)}const Kc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:o}=t,{strategy:n="referenceHidden",...r}=Pe(e,t);switch(n){case"referenceHidden":{const i=await ft(t,{...r,elementContext:"reference"}),s=Gn(i,o.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Un(s)}}}case"escaped":{const i=await ft(t,{...r,altBoundary:!0}),s=Gn(i,o.floating);return{data:{escapedOffsets:s,escaped:Un(s)}}}default:return{}}}}},Vr=new Set(["left","top"]);async function Zc(e,t){const{placement:o,platform:n,elements:r}=e,i=await(n.isRTL==null?void 0:n.isRTL(r.floating)),s=Te(o),a=ot(o),c=xe(o)==="y",u=Vr.has(s)?-1:1,f=i&&c?-1:1,p=Pe(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof b=="number"&&(g=a==="end"?b*-1:b),c?{x:g*f,y:m*u}:{x:m*u,y:g*f}}const Yc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:r,y:i,placement:s,middlewareData:a}=t,c=await Zc(t,e);return s===((o=a.offset)==null?void 0:o.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},Xc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:h=>{let{x:y,y:x}=h;return{x:y,y:x}}},...c}=Pe(e,t),u={x:o,y:n},f=await ft(t,c),p=xe(Te(r)),m=Zo(p);let g=u[m],b=u[p];if(i){const h=m==="y"?"top":"left",y=m==="y"?"bottom":"right",x=g+f[h],w=g-f[y];g=Oo(x,g,w)}if(s){const h=p==="y"?"top":"left",y=p==="y"?"bottom":"right",x=b+f[h],w=b-f[y];b=Oo(x,b,w)}const v=a.fn({...t,[m]:g,[p]:b});return{...v,data:{x:v.x-o,y:v.y-n,enabled:{[m]:i,[p]:s}}}}}},Qc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:o,y:n,placement:r,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=Pe(e,t),f={x:o,y:n},p=xe(r),m=Zo(p);let g=f[m],b=f[p];const v=Pe(a,t),h=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const w=m==="y"?"height":"width",C=i.reference[m]-i.floating[w]+h.mainAxis,S=i.reference[m]+i.reference[w]-h.mainAxis;g<C?g=C:g>S&&(g=S)}if(u){var y,x;const w=m==="y"?"width":"height",C=Vr.has(Te(r)),S=i.reference[p]-i.floating[w]+(C&&((y=s.offset)==null?void 0:y[p])||0)+(C?0:h.crossAxis),T=i.reference[p]+i.reference[w]+(C?0:((x=s.offset)==null?void 0:x[p])||0)-(C?h.crossAxis:0);b<S?b=S:b>T&&(b=T)}return{[m]:g,[p]:b}}}},Jc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,n;const{placement:r,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...u}=Pe(e,t),f=await ft(t,u),p=Te(r),m=ot(r),g=xe(r)==="y",{width:b,height:v}=i.floating;let h,y;p==="top"||p==="bottom"?(h=p,y=m===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=p,h=m==="end"?"top":"bottom");const x=v-f.top-f.bottom,w=b-f.left-f.right,C=_e(v-f[h],x),S=_e(b-f[y],w),T=!t.middlewareData.shift;let P=C,R=S;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(R=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(P=x),T&&!m){const D=re(f.left,0),z=re(f.right,0),q=re(f.top,0),V=re(f.bottom,0);g?R=b-2*(D!==0||z!==0?D+z:re(f.left,f.right)):P=v-2*(q!==0||V!==0?q+V:re(f.top,f.bottom))}await c({...t,availableWidth:R,availableHeight:P});const j=await s.getDimensions(a.floating);return b!==j.width||v!==j.height?{reset:{rects:!0}}:{}}}};function Zt(){return typeof window<"u"}function nt(e){return Br(e)?(e.nodeName||"").toLowerCase():"#document"}function ie(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(Br(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Br(e){return Zt()?e instanceof Node||e instanceof ie(e).Node:!1}function ue(e){return Zt()?e instanceof Element||e instanceof ie(e).Element:!1}function ye(e){return Zt()?e instanceof HTMLElement||e instanceof ie(e).HTMLElement:!1}function Kn(e){return!Zt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ie(e).ShadowRoot}const eu=new Set(["inline","contents"]);function xt(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=de(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!eu.has(r)}const tu=new Set(["table","td","th"]);function ou(e){return tu.has(nt(e))}const nu=[":popover-open",":modal"];function Yt(e){return nu.some(t=>{try{return e.matches(t)}catch{return!1}})}const ru=["transform","translate","scale","rotate","perspective"],iu=["transform","translate","scale","rotate","perspective","filter"],su=["paint","layout","strict","content"];function Qo(e){const t=Jo(),o=ue(e)?de(e):e;return ru.some(n=>o[n]?o[n]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||iu.some(n=>(o.willChange||"").includes(n))||su.some(n=>(o.contain||"").includes(n))}function au(e){let t=je(e);for(;ye(t)&&!Xe(t);){if(Qo(t))return t;if(Yt(t))return null;t=je(t)}return null}function Jo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lu=new Set(["html","body","#document"]);function Xe(e){return lu.has(nt(e))}function de(e){return ie(e).getComputedStyle(e)}function Xt(e){return ue(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function je(e){if(nt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Kn(e)&&e.host||we(e);return Kn(t)?t.host:t}function Wr(e){const t=je(e);return Xe(t)?e.ownerDocument?e.ownerDocument.body:e.body:ye(t)&&xt(t)?t:Wr(t)}function pt(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const r=Wr(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=ie(r);if(i){const a=jo(s);return t.concat(s,s.visualViewport||[],xt(r)?r:[],a&&o?pt(a):[])}return t.concat(r,pt(r,[],o))}function jo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zr(e){const t=de(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=ye(e),i=r?e.offsetWidth:o,s=r?e.offsetHeight:n,a=Ft(o)!==i||Ft(n)!==s;return a&&(o=i,n=s),{width:o,height:n,$:a}}function en(e){return ue(e)?e:e.contextElement}function Ze(e){const t=en(e);if(!ye(t))return be(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:i}=zr(t);let s=(i?Ft(o.width):o.width)/n,a=(i?Ft(o.height):o.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const cu=be(0);function qr(e){const t=ie(e);return!Jo()||!t.visualViewport?cu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uu(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==ie(e)?!1:t}function Be(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),i=en(e);let s=be(1);t&&(n?ue(n)&&(s=Ze(n)):s=Ze(e));const a=uu(i,o,n)?qr(i):be(0);let c=(r.left+a.x)/s.x,u=(r.top+a.y)/s.y,f=r.width/s.x,p=r.height/s.y;if(i){const m=ie(i),g=n&&ue(n)?ie(n):n;let b=m,v=jo(b);for(;v&&n&&g!==b;){const h=Ze(v),y=v.getBoundingClientRect(),x=de(v),w=y.left+(v.clientLeft+parseFloat(x.paddingLeft))*h.x,C=y.top+(v.clientTop+parseFloat(x.paddingTop))*h.y;c*=h.x,u*=h.y,f*=h.x,p*=h.y,c+=w,u+=C,b=ie(v),v=jo(b)}}return Bt({width:f,height:p,x:c,y:u})}function Qt(e,t){const o=Xt(e).scrollLeft;return t?t.left+o:Be(we(e)).left+o}function Hr(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-Qt(e,o),r=o.top+t.scrollTop;return{x:n,y:r}}function du(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const i=r==="fixed",s=we(n),a=t?Yt(t.floating):!1;if(n===s||a&&i)return o;let c={scrollLeft:0,scrollTop:0},u=be(1);const f=be(0),p=ye(n);if((p||!p&&!i)&&((nt(n)!=="body"||xt(s))&&(c=Xt(n)),ye(n))){const g=Be(n);u=Ze(n),f.x=g.x+n.clientLeft,f.y=g.y+n.clientTop}const m=s&&!p&&!i?Hr(s,c):be(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-c.scrollLeft*u.x+f.x+m.x,y:o.y*u.y-c.scrollTop*u.y+f.y+m.y}}function fu(e){return Array.from(e.getClientRects())}function pu(e){const t=we(e),o=Xt(e),n=e.ownerDocument.body,r=re(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=re(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-o.scrollLeft+Qt(e);const a=-o.scrollTop;return de(n).direction==="rtl"&&(s+=re(t.clientWidth,n.clientWidth)-r),{width:r,height:i,x:s,y:a}}const Zn=25;function vu(e,t){const o=ie(e),n=we(e),r=o.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,c=0;if(r){i=r.width,s=r.height;const f=Jo();(!f||f&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}const u=Qt(n);if(u<=0){const f=n.ownerDocument,p=f.body,m=getComputedStyle(p),g=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,b=Math.abs(n.clientWidth-p.clientWidth-g);b<=Zn&&(i-=b)}else u<=Zn&&(i+=u);return{width:i,height:s,x:a,y:c}}const mu=new Set(["absolute","fixed"]);function gu(e,t){const o=Be(e,!0,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,i=ye(e)?Ze(e):be(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,u=n*i.y;return{width:s,height:a,x:c,y:u}}function Yn(e,t,o){let n;if(t==="viewport")n=vu(e,o);else if(t==="document")n=pu(we(e));else if(ue(t))n=gu(t,o);else{const r=qr(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Bt(n)}function Gr(e,t){const o=je(e);return o===t||!ue(o)||Xe(o)?!1:de(o).position==="fixed"||Gr(o,t)}function hu(e,t){const o=t.get(e);if(o)return o;let n=pt(e,[],!1).filter(a=>ue(a)&&nt(a)!=="body"),r=null;const i=de(e).position==="fixed";let s=i?je(e):e;for(;ue(s)&&!Xe(s);){const a=de(s),c=Qo(s);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&mu.has(r.position)||xt(s)&&!c&&Gr(e,s))?n=n.filter(f=>f!==s):r=a,s=je(s)}return t.set(e,n),n}function xu(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const s=[...o==="clippingAncestors"?Yt(t)?[]:hu(t,this._c):[].concat(o),n],a=s[0],c=s.reduce((u,f)=>{const p=Yn(t,f,r);return u.top=re(p.top,u.top),u.right=_e(p.right,u.right),u.bottom=_e(p.bottom,u.bottom),u.left=re(p.left,u.left),u},Yn(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function bu(e){const{width:t,height:o}=zr(e);return{width:t,height:o}}function yu(e,t,o){const n=ye(t),r=we(t),i=o==="fixed",s=Be(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=be(0);function u(){c.x=Qt(r)}if(n||!n&&!i)if((nt(t)!=="body"||xt(r))&&(a=Xt(t)),n){const g=Be(t,!0,i,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else r&&u();i&&!n&&r&&u();const f=r&&!n&&!i?Hr(r,a):be(0),p=s.left+a.scrollLeft-c.x-f.x,m=s.top+a.scrollTop-c.y-f.y;return{x:p,y:m,width:s.width,height:s.height}}function So(e){return de(e).position==="static"}function Xn(e,t){if(!ye(e)||de(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return we(e)===o&&(o=o.ownerDocument.body),o}function Ur(e,t){const o=ie(e);if(Yt(e))return o;if(!ye(e)){let r=je(e);for(;r&&!Xe(r);){if(ue(r)&&!So(r))return r;r=je(r)}return o}let n=Xn(e,t);for(;n&&ou(n)&&So(n);)n=Xn(n,t);return n&&Xe(n)&&So(n)&&!Qo(n)?o:n||au(e)||o}const wu=async function(e){const t=this.getOffsetParent||Ur,o=this.getDimensions,n=await o(e.floating);return{reference:yu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Cu(e){return de(e).direction==="rtl"}const Su={convertOffsetParentRelativeRectToViewportRelativeRect:du,getDocumentElement:we,getClippingRect:xu,getOffsetParent:Ur,getElementRects:wu,getClientRects:fu,getDimensions:bu,getScale:Ze,isElement:ue,isRTL:Cu};function Kr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ru(e,t){let o=null,n;const r=we(e);function i(){var a;clearTimeout(n),(a=o)==null||a.disconnect(),o=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:f,top:p,width:m,height:g}=u;if(a||t(),!m||!g)return;const b=Tt(p),v=Tt(r.clientWidth-(f+m)),h=Tt(r.clientHeight-(p+g)),y=Tt(f),w={rootMargin:-b+"px "+-v+"px "+-h+"px "+-y+"px",threshold:re(0,_e(1,c))||1};let C=!0;function S(T){const P=T[0].intersectionRatio;if(P!==c){if(!C)return s();P?s(!1,P):n=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!Kr(u,e.getBoundingClientRect())&&s(),C=!1}try{o=new IntersectionObserver(S,{...w,root:r.ownerDocument})}catch{o=new IntersectionObserver(S,w)}o.observe(e)}return s(!0),i}function Eu(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=en(e),f=r||i?[...u?pt(u):[],...pt(t)]:[];f.forEach(y=>{r&&y.addEventListener("scroll",o,{passive:!0}),i&&y.addEventListener("resize",o)});const p=u&&a?Ru(u,o):null;let m=-1,g=null;s&&(g=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),o()}),u&&!c&&g.observe(u),g.observe(t));let b,v=c?Be(e):null;c&&h();function h(){const y=Be(e);v&&!Kr(v,y)&&o(),v=y,b=requestAnimationFrame(h)}return o(),()=>{var y;f.forEach(x=>{r&&x.removeEventListener("scroll",o),i&&x.removeEventListener("resize",o)}),p==null||p(),(y=g)==null||y.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const Pu=Yc,Tu=Xc,Au=Uc,Nu=Jc,Iu=Kc,Qn=Gc,ku=Qc,Ou=(e,t,o)=>{const n=new Map,r={platform:Su,...o},i={...r.platform,_c:n};return Hc(e,t,{...r,platform:i})};var _u=typeof document<"u",ju=function(){},jt=_u?L.useLayoutEffect:ju;function Wt(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 o,n,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(n=o;n--!==0;)if(!Wt(e[n],t[n]))return!1;return!0}if(r=Object.keys(e),o=r.length,o!==Object.keys(t).length)return!1;for(n=o;n--!==0;)if(!{}.hasOwnProperty.call(t,r[n]))return!1;for(n=o;n--!==0;){const i=r[n];if(!(i==="_owner"&&e.$$typeof)&&!Wt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Zr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jn(e,t){const o=Zr(e);return Math.round(t*o)/o}function Ro(e){const t=l.useRef(e);return jt(()=>{t.current=e}),t}function Du(e){e===void 0&&(e={});const{placement:t="bottom",strategy:o="absolute",middleware:n=[],platform:r,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[f,p]=l.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=l.useState(n);Wt(m,n)||g(n);const[b,v]=l.useState(null),[h,y]=l.useState(null),x=l.useCallback(E=>{E!==T.current&&(T.current=E,v(E))},[]),w=l.useCallback(E=>{E!==P.current&&(P.current=E,y(E))},[]),C=i||b,S=s||h,T=l.useRef(null),P=l.useRef(null),R=l.useRef(f),j=c!=null,D=Ro(c),z=Ro(r),q=Ro(u),V=l.useCallback(()=>{if(!T.current||!P.current)return;const E={placement:t,strategy:o,middleware:m};z.current&&(E.platform=z.current),Ou(T.current,P.current,E).then(K=>{const te={...K,isPositioned:q.current!==!1};F.current&&!Wt(R.current,te)&&(R.current=te,Gt.flushSync(()=>{p(te)}))})},[m,t,o,z,q]);jt(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(E=>({...E,isPositioned:!1})))},[u]);const F=l.useRef(!1);jt(()=>(F.current=!0,()=>{F.current=!1}),[]),jt(()=>{if(C&&(T.current=C),S&&(P.current=S),C&&S){if(D.current)return D.current(C,S,V);V()}},[C,S,V,D,j]);const H=l.useMemo(()=>({reference:T,floating:P,setReference:x,setFloating:w}),[x,w]),O=l.useMemo(()=>({reference:C,floating:S}),[C,S]),$=l.useMemo(()=>{const E={position:o,left:0,top:0};if(!O.floating)return E;const K=Jn(O.floating,f.x),te=Jn(O.floating,f.y);return a?{...E,transform:"translate("+K+"px, "+te+"px)",...Zr(O.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:K,top:te}},[o,a,O.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:V,refs:H,elements:O,floatingStyles:$}),[f,V,H,O,$])}const Mu=e=>{function t(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){const{element:n,padding:r}=typeof e=="function"?e(o):e;return n&&t(n)?n.current!=null?Qn({element:n.current,padding:r}).fn(o):{}:n?Qn({element:n,padding:r}).fn(o):{}}}},$u=(e,t)=>({...Pu(e),options:[e,t]}),Lu=(e,t)=>({...Tu(e),options:[e,t]}),Fu=(e,t)=>({...ku(e),options:[e,t]}),Vu=(e,t)=>({...Au(e),options:[e,t]}),Bu=(e,t)=>({...Nu(e),options:[e,t]}),Wu=(e,t)=>({...Iu(e),options:[e,t]}),zu=(e,t)=>({...Mu(e),options:[e,t]});var qu="Arrow",Yr=l.forwardRef((e,t)=>{const{children:o,width:n=10,height:r=5,...i}=e;return d.jsx(Y.svg,{...i,ref:t,width:n,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?o:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Yr.displayName=qu;var Hu=Yr;function Jt(e){const[t,o]=l.useState(void 0);return oe(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;o({width:s,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else o(void 0)},[e]),t}var tn="Popper",[Xr,rt]=fe(tn),[Gu,Qr]=Xr(tn),Jr=e=>{const{__scopePopper:t,children:o}=e,[n,r]=l.useState(null);return d.jsx(Gu,{scope:t,anchor:n,onAnchorChange:r,children:o})};Jr.displayName=tn;var ei="PopperAnchor",ti=l.forwardRef((e,t)=>{const{__scopePopper:o,virtualRef:n,...r}=e,i=Qr(ei,o),s=l.useRef(null),a=W(t,s),c=l.useRef(null);return l.useEffect(()=>{const u=c.current;c.current=(n==null?void 0:n.current)||s.current,u!==c.current&&i.onAnchorChange(c.current)}),n?null:d.jsx(Y.div,{...r,ref:a})});ti.displayName=ei;var on="PopperContent",[Uu,Ku]=Xr(on),oi=l.forwardRef((e,t)=>{var I,Z,J,U,G,B;const{__scopePopper:o,side:n="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:b,...v}=e,h=Qr(on,o),[y,x]=l.useState(null),w=W(t,ne=>x(ne)),[C,S]=l.useState(null),T=Jt(C),P=(T==null?void 0:T.width)??0,R=(T==null?void 0:T.height)??0,j=n+(i!=="center"?"-"+i:""),D=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},z=Array.isArray(u)?u:[u],q=z.length>0,V={padding:D,boundary:z.filter(Yu),altBoundary:q},{refs:F,floatingStyles:H,placement:O,isPositioned:$,middlewareData:E}=Du({strategy:"fixed",placement:j,whileElementsMounted:(...ne)=>Eu(...ne,{animationFrame:g==="always"}),elements:{reference:h.anchor},middleware:[$u({mainAxis:r+R,alignmentAxis:s}),c&&Lu({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Fu():void 0,...V}),c&&Vu({...V}),Bu({...V,apply:({elements:ne,rects:ge,availableWidth:st,availableHeight:at})=>{const{width:lt,height:La}=ge.reference,Rt=ne.floating.style;Rt.setProperty("--radix-popper-available-width",`${st}px`),Rt.setProperty("--radix-popper-available-height",`${at}px`),Rt.setProperty("--radix-popper-anchor-width",`${lt}px`),Rt.setProperty("--radix-popper-anchor-height",`${La}px`)}}),C&&zu({element:C,padding:a}),Xu({arrowWidth:P,arrowHeight:R}),m&&Wu({strategy:"referenceHidden",...V})]}),[K,te]=ii(O),ae=Oe(b);oe(()=>{$&&(ae==null||ae())},[$,ae]);const Se=(I=E.arrow)==null?void 0:I.x,Q=(Z=E.arrow)==null?void 0:Z.y,X=((J=E.arrow)==null?void 0:J.centerOffset)!==0,[le,me]=l.useState();return oe(()=>{y&&me(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:$?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[(U=E.transformOrigin)==null?void 0:U.x,(G=E.transformOrigin)==null?void 0:G.y].join(" "),...((B=E.hide)==null?void 0:B.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(Uu,{scope:o,placedSide:K,onArrowChange:S,arrowX:Se,arrowY:Q,shouldHideArrow:X,children:d.jsx(Y.div,{"data-side":K,"data-align":te,...v,ref:w,style:{...v.style,animation:$?void 0:"none"}})})})});oi.displayName=on;var ni="PopperArrow",Zu={top:"bottom",right:"left",bottom:"top",left:"right"},ri=l.forwardRef(function(t,o){const{__scopePopper:n,...r}=t,i=Ku(ni,n),s=Zu[i.placedSide];return d.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:d.jsx(Hu,{...r,ref:o,style:{...r.style,display:"block"}})})});ri.displayName=ni;function Yu(e){return e!==null}var Xu=e=>({name:"transformOrigin",options:e,fn(t){var h,y,x;const{placement:o,rects:n,middlewareData:r}=t,s=((h=r.arrow)==null?void 0:h.centerOffset)!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[u,f]=ii(o),p={start:"0%",center:"50%",end:"100%"}[f],m=(((y=r.arrow)==null?void 0:y.x)??0)+a/2,g=(((x=r.arrow)==null?void 0:x.y)??0)+c/2;let b="",v="";return u==="bottom"?(b=s?p:`${m}px`,v=`${-c}px`):u==="top"?(b=s?p:`${m}px`,v=`${n.floating.height+c}px`):u==="right"?(b=`${-c}px`,v=s?p:`${g}px`):u==="left"&&(b=`${n.floating.width+c}px`,v=s?p:`${g}px`),{data:{x:b,y:v}}}});function ii(e){const[t,o="center"]=e.split("-");return[t,o]}var nn=Jr,eo=ti,rn=oi,sn=ri,Qu="Portal",bt=l.forwardRef((e,t)=>{var a;const{container:o,...n}=e,[r,i]=l.useState(!1);oe(()=>i(!0),[]);const s=o||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?cr.createPortal(d.jsx(Y.div,{...n,ref:t}),s):null});bt.displayName=Qu;function si(e){const t=Ju(e),o=l.forwardRef((n,r)=>{const{children:i,...s}=n,a=l.Children.toArray(i),c=a.find(td);if(c){const u=c.props.children,f=a.map(p=>p===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...s,ref:r,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:r,children:i})});return o.displayName=`${e}.Slot`,o}function Ju(e){const t=l.forwardRef((o,n)=>{const{children:r,...i}=o;if(l.isValidElement(r)){const s=nd(r),a=od(i,r.props);return r.type!==l.Fragment&&(a.ref=n?De(n,s):s),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ed=Symbol("radix.slottable");function td(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ed}function od(e,t){const o={...t};for(const n in t){const r=e[n],i=t[n];/^on[A-Z]/.test(n)?r&&i?o[n]=(...a)=>{const c=i(...a);return r(...a),c}:r&&(o[n]=r):n==="style"?o[n]={...r,...i}:n==="className"&&(o[n]=[r,i].filter(Boolean).join(" "))}return{...e,...o}}function nd(e){var n,r;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var rd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],se=rd.reduce((e,t)=>{const o=si(`Primitive.${t}`),n=l.forwardRef((r,i)=>{const{asChild:s,...a}=r,c=s?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),id=l[" useInsertionEffect ".trim().toString()]||oe;function Ae({prop:e,defaultProp:t,onChange:o=()=>{},caller:n}){const[r,i,s]=sd({defaultProp:t,onChange:o}),a=e!==void 0,c=a?e:r;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const p=f.current;p!==a&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=a},[a,n])}const u=l.useCallback(f=>{var p;if(a){const m=ad(f)?f(e):f;m!==e&&((p=s.current)==null||p.call(s,m))}else i(f)},[a,e,i,s]);return[c,u]}function sd({defaultProp:e,onChange:t}){const[o,n]=l.useState(e),r=l.useRef(o),i=l.useRef(t);return id(()=>{i.current=t},[t]),l.useEffect(()=>{var s;r.current!==o&&((s=i.current)==null||s.call(i,o),r.current=o)},[o,r]),[o,n,i]}function ad(e){return typeof e=="function"}function to(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ai=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ld="VisuallyHidden",li=l.forwardRef((e,t)=>d.jsx(Y.span,{...e,ref:t,style:{...ai,...e.style}}));li.displayName=ld;var cd=li,ud=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ge=new WeakMap,At=new WeakMap,Nt={},Eo=0,ci=function(e){return e&&(e.host||ci(e.parentNode))},dd=function(e,t){return t.map(function(o){if(e.contains(o))return o;var n=ci(o);return n&&e.contains(n)?n:(console.error("aria-hidden",o,"in not contained inside",e,". Doing nothing"),null)}).filter(function(o){return!!o})},fd=function(e,t,o,n){var r=dd(t,Array.isArray(e)?e:[e]);Nt[o]||(Nt[o]=new WeakMap);var i=Nt[o],s=[],a=new Set,c=new Set(r),u=function(p){!p||a.has(p)||(a.add(p),u(p.parentNode))};r.forEach(u);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(m){if(a.has(m))f(m);else try{var g=m.getAttribute(n),b=g!==null&&g!=="false",v=(Ge.get(m)||0)+1,h=(i.get(m)||0)+1;Ge.set(m,v),i.set(m,h),s.push(m),v===1&&b&&At.set(m,!0),h===1&&m.setAttribute(o,"true"),b||m.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return f(t),a.clear(),Eo++,function(){s.forEach(function(p){var m=Ge.get(p)-1,g=i.get(p)-1;Ge.set(p,m),i.set(p,g),m||(At.has(p)||p.removeAttribute(n),At.delete(p)),g||p.removeAttribute(o)}),Eo--,Eo||(Ge=new WeakMap,Ge=new WeakMap,At=new WeakMap,Nt={})}},an=function(e,t,o){o===void 0&&(o="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),r=ud(e);return r?(n.push.apply(n,Array.from(r.querySelectorAll("[aria-live], script"))),fd(n,r,o,"aria-hidden")):function(){return null}},he=function(){return he=Object.assign||function(t){for(var o,n=1,r=arguments.length;n<r;n++){o=arguments[n];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},he.apply(this,arguments)};function ui(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o}function pd(e,t,o){if(o||arguments.length===2)for(var n=0,r=t.length,i;n<r;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var Dt="right-scroll-bar-position",Mt="width-before-scroll-bar",vd="with-scroll-bars-hidden",md="--removed-body-scroll-bar-size";function Po(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function gd(e,t){var o=L.useState(function(){return{value:e,callback:t,facade:{get current(){return o.value},set current(n){var r=o.value;r!==n&&(o.value=n,o.callback(n,r))}}}})[0];return o.callback=t,o.facade}var hd=typeof window<"u"?l.useLayoutEffect:l.useEffect,er=new WeakMap;function xd(e,t){var o=gd(null,function(n){return e.forEach(function(r){return Po(r,n)})});return hd(function(){var n=er.get(o);if(n){var r=new Set(n),i=new Set(e),s=o.current;r.forEach(function(a){i.has(a)||Po(a,null)}),i.forEach(function(a){r.has(a)||Po(a,s)})}er.set(o,e)},[e]),o}function bd(e){return e}function yd(e,t){t===void 0&&(t=bd);var o=[],n=!1,r={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:e},useMedium:function(i){var s=t(i,n);return o.push(s),function(){o=o.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(n=!0;o.length;){var s=o;o=[],s.forEach(i)}o={push:function(a){return i(a)},filter:function(){return o}}},assignMedium:function(i){n=!0;var s=[];if(o.length){var a=o;o=[],a.forEach(i),s=o}var c=function(){var f=s;s=[],f.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),o={push:function(f){s.push(f),u()},filter:function(f){return s=s.filter(f),o}}}};return r}function wd(e){e===void 0&&(e={});var t=yd(null);return t.options=he({async:!0,ssr:!1},e),t}var di=function(e){var t=e.sideCar,o=ui(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return l.createElement(n,he({},o))};di.isSideCarExport=!0;function Cd(e,t){return e.useMedium(t),di}var fi=wd(),To=function(){},oo=l.forwardRef(function(e,t){var o=l.useRef(null),n=l.useState({onScrollCapture:To,onWheelCapture:To,onTouchMoveCapture:To}),r=n[0],i=n[1],s=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,g=e.noRelative,b=e.noIsolation,v=e.inert,h=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,w=e.gapMode,C=ui(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=m,T=xd([o,t]),P=he(he({},C),r);return l.createElement(l.Fragment,null,f&&l.createElement(S,{sideCar:fi,removeScrollBar:u,shards:p,noRelative:g,noIsolation:b,inert:v,setCallbacks:i,allowPinchZoom:!!h,lockRef:o,gapMode:w}),s?l.cloneElement(l.Children.only(a),he(he({},P),{ref:T})):l.createElement(x,he({},P,{className:c,ref:T}),a))});oo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};oo.classNames={fullWidth:Mt,zeroRight:Dt};var Sd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Rd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Sd();return t&&e.setAttribute("nonce",t),e}function Ed(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Pd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Td=function(){var e=0,t=null;return{add:function(o){e==0&&(t=Rd())&&(Ed(t,o),Pd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ad=function(){var e=Td();return function(t,o){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&o])}},pi=function(){var e=Ad(),t=function(o){var n=o.styles,r=o.dynamic;return e(n,r),null};return t},Nd={left:0,top:0,right:0,gap:0},Ao=function(e){return parseInt(e||"",10)||0},Id=function(e){var t=window.getComputedStyle(document.body),o=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Ao(o),Ao(n),Ao(r)]},kd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Nd;var t=Id(e),o=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-o+t[2]-t[0])}},Od=pi(),Ye="data-scroll-locked",_d=function(e,t,o,n){var r=e.left,i=e.top,s=e.right,a=e.gap;return o===void 0&&(o="margin"),`
|
|
2
2
|
.`.concat(vd,` {
|
|
3
3
|
overflow: hidden `).concat(n,`;
|
|
4
4
|
padding-right: `).concat(a,"px ").concat(n,`;
|
package/dist/index.es.js
CHANGED
|
@@ -2891,10 +2891,10 @@ const Dn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, $n = pr, L
|
|
|
2891
2891
|
destructive: "volt-ui-bg-error-a9 volt-ui-text-error-contrast volt-ui-hover:bg-error-solid-hover volt-ui-active:bg-error-solid-hover volt-ui-focus-visible:outline-error-a8"
|
|
2892
2892
|
},
|
|
2893
2893
|
size: {
|
|
2894
|
-
xs: "volt-ui-px-2 volt-ui-py-1 volt-ui-min-h-5 volt-ui-text-xs volt-ui-gap-[4px] [&_svg]:size-[12px]",
|
|
2895
|
-
sm: "volt-ui-px-3 volt-ui-py-1 volt-ui-min-h-6 volt-ui-text-sm volt-ui-gap-[6px] [&_svg]:size-[14px]",
|
|
2896
|
-
base: "volt-ui-px-4 volt-ui-py-1 volt-ui-min-h-9 volt-ui-text-base volt-ui-gap-2 [&_svg]:size-4 volt-ui-has-[>svg]:px-
|
|
2897
|
-
large: "volt-ui-px-6 volt-ui-py-2.5 volt-ui-min-h-10 volt-ui-text-lg volt-ui-gap-2 [&_svg]:size-6"
|
|
2894
|
+
xs: "volt-ui-px-2 volt-ui-py-1 volt-ui-min-h-5 volt-ui-text-xs volt-ui-gap-[4px] [&_svg]:size-[12px] volt-ui-has-[>svg]:px-1",
|
|
2895
|
+
sm: "volt-ui-px-3 volt-ui-py-1 volt-ui-min-h-6 volt-ui-text-sm volt-ui-gap-[6px] [&_svg]:size-[14px] volt-ui-has-[>svg]:px-1.25",
|
|
2896
|
+
base: "volt-ui-px-4 volt-ui-py-1 volt-ui-min-h-9 volt-ui-text-base volt-ui-gap-2 [&_svg]:size-4 volt-ui-has-[>svg]:px-2.5",
|
|
2897
|
+
large: "volt-ui-px-6 volt-ui-py-2.5 volt-ui-min-h-10 volt-ui-text-lg volt-ui-gap-2 [&_svg]:size-6 volt-ui-has-[>svg]:px-2.5"
|
|
2898
2898
|
}
|
|
2899
2899
|
},
|
|
2900
2900
|
defaultVariants: {
|