@qodo/design-system 0.9.6 → 0.9.7

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 CHANGED
@@ -27,7 +27,7 @@ Check the top-level render call using <`+L+">.")}return _}}function ns(y,_){{if(
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,mn,lt,Gu,lt),ss[lt+mn]=!0}}return y===n?Vu(me):Fu(me),me}}function Bu(y,_,L){return as(y,_,L,!0)}function Wu(y,_,L){return as(y,_,L,!1)}var zu=Wu,Hu=Bu;Gt.Fragment=n,Gt.jsx=zu,Gt.jsxs=Hu})()),Gt}var cs;function Qu(){return cs||(cs=1,process.env.NODE_ENV==="production"?pr.exports=Zu():pr.exports=Ju()),pr.exports}var l=Qu();function ca(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ca(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ua(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ca(e))&&(n&&(n+=" "),n+=t);return n}const us=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ds=ua,Fr=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return ds(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const f=r==null?void 0:r[u],p=s==null?void 0:s[u];if(f===null)return null;const h=us(f)||us(p);return o[u][h]}),i=r&&Object.entries(r).reduce((u,f)=>{let[p,h]=f;return h===void 0||(u[p]=h),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,f)=>{let{class:p,className:h,...m}=f;return Object.entries(m).every(w=>{let[g,v]=w;return Array.isArray(v)?v.includes({...s,...i}[g]):{...s,...i}[g]===v})?[...u,p,h]:u},[]);return ds(e,a,c,r==null?void 0:r.class,r==null?void 0:r.className)},eo="-",ed=e=>{const t=rd(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{const i=a.split(eo);return i[0]===""&&i.length!==1&&i.shift(),da(i,t)||td(a)},getConflictingClassGroupIds:(a,i)=>{const c=r[a]||[];return i&&n[a]?[...c,...n[a]]:c}}},da=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?da(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(eo);return(a=t.validators.find(({validator:i})=>i(s)))==null?void 0:a.classGroupId},fs=/^\[(.+)\]$/,td=e=>{if(fs.test(e)){const t=fs.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},rd=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)In(r[o],n,o,t);return n},In=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:ps(t,o);s.classGroupId=r;return}if(typeof o=="function"){if(nd(o)){In(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,a])=>{In(a,ps(t,s),r,n)})})},ps=(e,t)=>{let r=e;return t.split(eo).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},nd=e=>e.isThemeGetter,od=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(s,a)=>{r.set(s,a),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let a=r.get(s);if(a!==void 0)return a;if((a=n.get(s))!==void 0)return o(s,a),a},set(s,a){r.has(s)?r.set(s,a):o(s,a)}}},On="!",Mn=":",sd=Mn.length,ad=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const s=[];let a=0,i=0,c=0,u;for(let w=0;w<o.length;w++){let g=o[w];if(a===0&&i===0){if(g===Mn){s.push(o.slice(c,w)),c=w+sd;continue}if(g==="/"){u=w;continue}}g==="["?a++:g==="]"?a--:g==="("?i++:g===")"&&i--}const f=s.length===0?o:o.substring(c),p=id(f),h=p!==f,m=u&&u>c?u-c:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:m}};if(t){const o=t+Mn,s=n;n=a=>a.startsWith(o)?s(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},id=e=>e.endsWith(On)?e.substring(0,e.length-1):e.startsWith(On)?e.substring(1):e,ld=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let s=[];return n.forEach(a=>{a[0]==="["||t[a]?(o.push(...s.sort(),a),s=[]):s.push(a)}),o.push(...s.sort()),o}},cd=e=>({cache:od(e.cacheSize),parseClassName:ad(e),sortModifiers:ld(e),...ed(e)}),ud=/\s+/,dd=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(ud);let c="";for(let u=i.length-1;u>=0;u-=1){const f=i[u],{isExternal:p,modifiers:h,hasImportantModifier:m,baseClassName:w,maybePostfixModifierPosition:g}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let v=!!g,b=n(v?w.substring(0,g):w);if(!b){if(!v){c=f+(c.length>0?" "+c:c);continue}if(b=n(w),!b){c=f+(c.length>0?" "+c:c);continue}v=!1}const x=s(h).join(":"),C=m?x+On:x,E=C+b;if(a.includes(E))continue;a.push(E);const R=o(b,v);for(let j=0;j<R.length;++j){const A=R[j];a.push(C+A)}c=f+(c.length>0?" "+c:c)}return c};function fd(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=fa(t))&&(n&&(n+=" "),n+=r);return n}const fa=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=fa(e[n]))&&(r&&(r+=" "),r+=t);return r};function pd(e,...t){let r,n,o,s=a;function a(c){const u=t.reduce((f,p)=>p(f),e());return r=cd(u),n=r.cache.get,o=r.cache.set,s=i,i(c)}function i(c){const u=n(c);if(u)return u;const f=dd(c,r);return o(c,f),f}return function(){return s(fd.apply(null,arguments))}}const ge=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},pa=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ma=/^\((?:(\w[\w-]*):)?(.+)\)$/i,md=/^\d+\/\d+$/,gd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hd=/\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$/,vd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ct=e=>md.test(e),se=e=>!!e&&!Number.isNaN(Number(e)),Je=e=>!!e&&Number.isInteger(Number(e)),gn=e=>e.endsWith("%")&&se(e.slice(0,-1)),Ue=e=>gd.test(e),yd=()=>!0,wd=e=>hd.test(e)&&!vd.test(e),ga=()=>!1,Cd=e=>xd.test(e),Sd=e=>bd.test(e),Ed=e=>!V(e)&&!B(e),kd=e=>Lt(e,xa,ga),V=e=>pa.test(e),ct=e=>Lt(e,ba,wd),hn=e=>Lt(e,jd,se),ms=e=>Lt(e,ha,ga),Pd=e=>Lt(e,va,Sd),mr=e=>Lt(e,ya,Cd),B=e=>ma.test(e),Ut=e=>$t(e,ba),Rd=e=>$t(e,Ad),gs=e=>$t(e,ha),Nd=e=>$t(e,xa),Td=e=>$t(e,va),gr=e=>$t(e,ya,!0),Lt=(e,t,r)=>{const n=pa.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},$t=(e,t,r=!1)=>{const n=ma.exec(e);return n?n[1]?t(n[1]):r:!1},ha=e=>e==="position"||e==="percentage",va=e=>e==="image"||e==="url",xa=e=>e==="length"||e==="size"||e==="bg-size",ba=e=>e==="length",jd=e=>e==="number",Ad=e=>e==="family-name",ya=e=>e==="shadow",_d=()=>{const e=ge("color"),t=ge("font"),r=ge("text"),n=ge("font-weight"),o=ge("tracking"),s=ge("leading"),a=ge("breakpoint"),i=ge("container"),c=ge("spacing"),u=ge("radius"),f=ge("shadow"),p=ge("inset-shadow"),h=ge("text-shadow"),m=ge("drop-shadow"),w=ge("blur"),g=ge("perspective"),v=ge("aspect"),b=ge("ease"),x=ge("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...E(),B,V],j=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],N=()=>[B,V,c],G=()=>[Ct,"full","auto",...N()],Y=()=>[Je,"none","subgrid",B,V],ee=()=>["auto",{span:["full",Je,B,V]},Je,B,V],Q=()=>[Je,"auto",B,V],q=()=>["auto","min","max","fr",B,V],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],M=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...N()],D=()=>[Ct,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],k=()=>[e,B,V],H=()=>[...E(),gs,ms,{position:[B,V]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],re=()=>["auto","cover","contain",Nd,kd,{size:[B,V]}],P=()=>[gn,Ut,ct],$=()=>["","none","full",u,B,V],z=()=>["",se,Ut,ct],F=()=>["solid","dashed","dotted","double"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>[se,gn,gs,ms],X=()=>["","none",w,B,V],ne=()=>["none",se,B,V],oe=()=>["none",se,B,V],le=()=>[se,B,V],ae=()=>[Ct,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ue],breakpoint:[Ue],color:[yd],container:[Ue],"drop-shadow":[Ue],ease:["in","out","in-out"],font:[Ed],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ue],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ue],shadow:[Ue],spacing:["px",se],text:[Ue],"text-shadow":[Ue],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ct,V,B,v]}],container:["container"],columns:[{columns:[se,V,B,i]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:R()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[Je,"auto",B,V]}],basis:[{basis:[Ct,"full","auto",i,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[se,Ct,"auto","initial","none",V]}],grow:[{grow:["",se,B,V]}],shrink:[{shrink:["",se,B,V]}],order:[{order:[Je,"first","last","none",B,V]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:ee()}],"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":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...M(),"normal"]}],"justify-self":[{"justify-self":["auto",...M()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...M(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...M(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...M(),"baseline"]}],"place-self":[{"place-self":["auto",...M()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:D()}],w:[{w:[i,"screen",...D()]}],"min-w":[{"min-w":[i,"screen","none",...D()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...D()]}],h:[{h:["screen","lh",...D()]}],"min-h":[{"min-h":["screen","lh","none",...D()]}],"max-h":[{"max-h":["screen","lh",...D()]}],"font-size":[{text:["base",r,Ut,ct]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,B,hn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gn,V]}],"font-family":[{font:[Rd,V,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:[o,B,V]}],"line-clamp":[{"line-clamp":[se,"none",B,hn]}],leading:[{leading:[s,...N()]}],"list-image":[{"list-image":["none",B,V]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",B,V]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:[se,"from-font","auto",B,ct]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[se,"auto",B,V]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B,V]}],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",B,V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:H()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:re()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Je,B,V],radial:["",B,V],conic:[Je,B,V]},Td,Pd]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...F(),"hidden","none"]}],"divide-style":[{divide:[...F(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...F(),"none","hidden"]}],"outline-offset":[{"outline-offset":[se,B,V]}],"outline-w":[{outline:["",se,Ut,ct]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",f,gr,mr]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",p,gr,mr]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[se,ct]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",h,gr,mr]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[se,B,V]}],"mix-blend":[{"mix-blend":[...te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":te()}],"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":[se]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[B,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"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":E()}],"mask-image-conic-pos":[{"mask-conic":[se]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:H()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",B,V]}],filter:[{filter:["","none",B,V]}],blur:[{blur:X()}],brightness:[{brightness:[se,B,V]}],contrast:[{contrast:[se,B,V]}],"drop-shadow":[{"drop-shadow":["","none",m,gr,mr]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",se,B,V]}],"hue-rotate":[{"hue-rotate":[se,B,V]}],invert:[{invert:["",se,B,V]}],saturate:[{saturate:[se,B,V]}],sepia:[{sepia:["",se,B,V]}],"backdrop-filter":[{"backdrop-filter":["","none",B,V]}],"backdrop-blur":[{"backdrop-blur":X()}],"backdrop-brightness":[{"backdrop-brightness":[se,B,V]}],"backdrop-contrast":[{"backdrop-contrast":[se,B,V]}],"backdrop-grayscale":[{"backdrop-grayscale":["",se,B,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[se,B,V]}],"backdrop-invert":[{"backdrop-invert":["",se,B,V]}],"backdrop-opacity":[{"backdrop-opacity":[se,B,V]}],"backdrop-saturate":[{"backdrop-saturate":[se,B,V]}],"backdrop-sepia":[{"backdrop-sepia":["",se,B,V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",B,V]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[se,"initial",B,V]}],ease:[{ease:["linear","initial",b,B,V]}],delay:[{delay:[se,B,V]}],animate:[{animate:["none",x,B,V]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,B,V]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":["scale-3d"],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[B,V,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"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",B,V]}],"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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",B,V]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[se,Ut,ct,hn]}],stroke:[{stroke:["none",...k()]}],"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"]}},Id=pd(_d);function I(...e){return Id(ua(e))}const wa=Fr("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none cursor-pointer",{variants:{variant:{default:"bg-fill-action-emphasis-idle text-action-on-emphasis-idle hover:bg-fill-action-emphasis-hover active:bg-fill-action-emphasis-active disabled:bg-fill-action-emphasis-disabled",secondary:"bg-fill-action-neutral-idle text-text-action-neutral-idle hover:bg-fill-action-neutral-hover active:bg-fill-action-neutral-active disabled:bg-fill-action-neutral-disabled disabled:text-text-action-neutral-disabled",outline:"border border-border-action-neutral-idle text-text-action-neutral-idle hover:bg-fill-action-neutral-hover active:bg-fill-action-neutral-active disabled:bg-none disabled:text-text-action-neutral-disabled",ghost:"text-text-action-neutral-idle hover:text-text-action-neutral-hover active:bg-fill-action-neutral-active disabled:bg-none disabled:text-text-action-neutral-disabled",link:"text-text-action-emphasis-idle hover:text-text-action-emphasis-hover active:bg-fill-action-emphasis-active disabled:bg-none disabled:text-text-action-emphasis-disabled",danger:"border border-border-action-negative-idle text-icon-action-negative-idle hover:bg-fill-action-negative-hover active:bg-fill-action-negative-active disabled-border-action-negative-disabled"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),It=d.forwardRef(({className:e,variant:t,size:r,...n},o)=>l.jsx("button",{className:I(wa({variant:t,size:r,className:e})),ref:o,...n}));It.displayName="Button";const Od=Fr("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground border-input flex h-9 w-full min-w-0 rounded-md border bg-background px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:dark:border-transparent disabled:opacity-50 md:text-sm dark:border-input dark:bg-background dark:text-foreground dark:placeholder:text-muted-foreground",{variants:{variant:{default:"bg-purple-mutted-700 border-purple-mutted-500 text-purple-mutted-300 text-sm",secondary:"bg-secondary border-secondary text-secondary-foreground placeholder:text-muted-foreground dark:bg-secondary dark:border-secondary dark:text-secondary-foreground dark:placeholder:text-muted-foreground",accent:"bg-accent border-accent text-accent-foreground placeholder:text-muted-foreground dark:bg-accent dark:border-accent dark:text-accent-foreground dark:placeholder:text-muted-foreground",success:"bg-success border-success text-success-foreground placeholder:text-success-foreground/70 dark:bg-success dark:border-success dark:text-success-foreground dark:placeholder:text-success-foreground/70",warning:"bg-warning border-warning text-warning-foreground placeholder:text-warning-foreground/70 dark:bg-warning dark:border-warning dark:text-warning-foreground dark:placeholder:text-warning-foreground/70",destructive:"border-destructive text-purple-mutted-200 placeholder:text-destructive-foreground/70 dark:border-destructive dark:placeholder:text-destructive-foreground/70"}},defaultVariants:{variant:"default"}});function to({className:e,variant:t,type:r,error:n,...o}){const s=n?"destructive":t;return l.jsx("input",{type:r,"data-slot":"input",className:I(Od({variant:s,className:e})),...o})}function hs(e,[t,r]){return Math.min(r,Math.max(t,e))}function J(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Md(e,t){const r=d.createContext(t),n=s=>{const{children:a,...i}=s,c=d.useMemo(()=>i,Object.values(i));return l.jsx(r.Provider,{value:c,children:a})};n.displayName=e+"Provider";function o(s){const a=d.useContext(r);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[n,o]}function Ne(e,t=[]){let r=[];function n(s,a){const i=d.createContext(a),c=r.length;r=[...r,a];const u=p=>{var b;const{scope:h,children:m,...w}=p,g=((b=h==null?void 0:h[e])==null?void 0:b[c])||i,v=d.useMemo(()=>w,Object.values(w));return l.jsx(g.Provider,{value:v,children:m})};u.displayName=s+"Provider";function f(p,h){var g;const m=((g=h==null?void 0:h[e])==null?void 0:g[c])||i,w=d.useContext(m);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=r.map(a=>d.createContext(a));return function(i){const c=(i==null?void 0:i[e])||s;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[n,Dd(o,...t)]}function Dd(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=n.reduce((i,{useScope:c,scopeName:u})=>{const p=c(s)[`__scope${u}`];return{...i,...p}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function vs(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dt(...e){return t=>{let r=!1;const n=e.map(o=>{const s=vs(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<n.length;o++){const s=n[o];typeof s=="function"?s():vs(e[o],null)}}}}function de(...e){return d.useCallback(dt(...e),e)}function ft(e){const t=$d(e),r=d.forwardRef((n,o)=>{const{children:s,...a}=n,i=d.Children.toArray(s),c=i.find(Vd);if(c){const u=c.props.children,f=i.map(p=>p===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:p);return l.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return l.jsx(t,{...a,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}var Ld=ft("Slot");function $d(e){const t=d.forwardRef((r,n)=>{const{children:o,...s}=r;if(d.isValidElement(o)){const a=Wd(o),i=Bd(s,o.props);return o.type!==d.Fragment&&(i.ref=n?dt(n,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ca=Symbol("radix.slottable");function Fd(e){const t=({children:r})=>l.jsx(l.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Ca,t}function Vd(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ca}function Bd(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function Wd(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function ro(e){const t=e+"CollectionProvider",[r,n]=Ne(t),[o,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=g=>{const{scope:v,children:b}=g,x=S.useRef(null),C=S.useRef(new Map).current;return l.jsx(o,{scope:v,itemMap:C,collectionRef:x,children:b})};a.displayName=t;const i=e+"CollectionSlot",c=ft(i),u=S.forwardRef((g,v)=>{const{scope:b,children:x}=g,C=s(i,b),E=de(v,C.collectionRef);return l.jsx(c,{ref:E,children:x})});u.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",h=ft(f),m=S.forwardRef((g,v)=>{const{scope:b,children:x,...C}=g,E=S.useRef(null),R=de(v,E),j=s(f,b);return S.useEffect(()=>(j.itemMap.set(E,{ref:E,...C}),()=>void j.itemMap.delete(E))),l.jsx(h,{[p]:"",ref:R,children:x})});m.displayName=f;function w(g){const v=s(e+"CollectionConsumer",g);return S.useCallback(()=>{const x=v.collectionRef.current;if(!x)return[];const C=Array.from(x.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((j,A)=>C.indexOf(j.ref.current)-C.indexOf(A.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:u,ItemSlot:m},w,n]}var zd=d.createContext(void 0);function Vr(e){const t=d.useContext(zd);return e||t||"ltr"}var Hd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K=Hd.reduce((e,t)=>{const r=ft(`Primitive.${t}`),n=d.forwardRef((o,s)=>{const{asChild:a,...i}=o,c=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...i,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Gd(e,t){e&&$r.flushSync(()=>e.dispatchEvent(t))}function et(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Ud(e,t=globalThis==null?void 0:globalThis.document){const r=et(e);d.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Kd="DismissableLayer",Dn="dismissableLayer.update",Yd="dismissableLayer.pointerDownOutside",qd="dismissableLayer.focusOutside",xs,Sa=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),nr=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...c}=e,u=d.useContext(Sa),[f,p]=d.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=d.useState({}),w=de(t,A=>p(A)),g=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(v),x=f?g.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,E=x>=b,R=Jd(A=>{const N=A.target,G=[...u.branches].some(Y=>Y.contains(N));!E||G||(o==null||o(A),a==null||a(A),A.defaultPrevented||i==null||i())},h),j=Qd(A=>{const N=A.target;[...u.branches].some(Y=>Y.contains(N))||(s==null||s(A),a==null||a(A),A.defaultPrevented||i==null||i())},h);return Ud(A=>{x===u.layers.size-1&&(n==null||n(A),!A.defaultPrevented&&i&&(A.preventDefault(),i()))},h),d.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(xs=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),bs(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=xs)}},[f,h,r,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),bs())},[f,u]),d.useEffect(()=>{const A=()=>m({});return document.addEventListener(Dn,A),()=>document.removeEventListener(Dn,A)},[]),l.jsx(K.div,{...c,ref:w,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,j.onFocusCapture),onBlurCapture:J(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,R.onPointerDownCapture)})});nr.displayName=Kd;var Xd="DismissableLayerBranch",Zd=d.forwardRef((e,t)=>{const r=d.useContext(Sa),n=d.useRef(null),o=de(t,n);return d.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),l.jsx(K.div,{...e,ref:o})});Zd.displayName=Xd;function Jd(e,t=globalThis==null?void 0:globalThis.document){const r=et(e),n=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const s=i=>{if(i.target&&!n.current){let c=function(){Ea(Yd,r,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Qd(e,t=globalThis==null?void 0:globalThis.document){const r=et(e),n=d.useRef(!1);return d.useEffect(()=>{const o=s=>{s.target&&!n.current&&Ea(qd,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function bs(){const e=new CustomEvent(Dn);document.dispatchEvent(e)}function Ea(e,t,r,{discrete:n}){const o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Gd(o,s):o.dispatchEvent(s)}var vn=0;function no(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ys()),document.body.insertAdjacentElement("beforeend",e[1]??ys()),vn++,()=>{vn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),vn--}},[])}function ys(){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 xn="focusScope.autoFocusOnMount",bn="focusScope.autoFocusOnUnmount",ws={bubbles:!1,cancelable:!0},ef="FocusScope",Br=d.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,c]=d.useState(null),u=et(o),f=et(s),p=d.useRef(null),h=de(t,g=>c(g)),m=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(n){let g=function(C){if(m.paused||!i)return;const E=C.target;i.contains(E)?p.current=E:Qe(p.current,{select:!0})},v=function(C){if(m.paused||!i)return;const E=C.relatedTarget;E!==null&&(i.contains(E)||Qe(p.current,{select:!0}))},b=function(C){if(document.activeElement===document.body)for(const R of C)R.removedNodes.length>0&&Qe(i)};document.addEventListener("focusin",g),document.addEventListener("focusout",v);const x=new MutationObserver(b);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",v),x.disconnect()}}},[n,i,m.paused]),d.useEffect(()=>{if(i){Ss.add(m);const g=document.activeElement;if(!i.contains(g)){const b=new CustomEvent(xn,ws);i.addEventListener(xn,u),i.dispatchEvent(b),b.defaultPrevented||(tf(af(ka(i)),{select:!0}),document.activeElement===g&&Qe(i))}return()=>{i.removeEventListener(xn,u),setTimeout(()=>{const b=new CustomEvent(bn,ws);i.addEventListener(bn,f),i.dispatchEvent(b),b.defaultPrevented||Qe(g??document.body,{select:!0}),i.removeEventListener(bn,f),Ss.remove(m)},0)}}},[i,u,f,m]);const w=d.useCallback(g=>{if(!r&&!n||m.paused)return;const v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,b=document.activeElement;if(v&&b){const x=g.currentTarget,[C,E]=rf(x);C&&E?!g.shiftKey&&b===E?(g.preventDefault(),r&&Qe(C,{select:!0})):g.shiftKey&&b===C&&(g.preventDefault(),r&&Qe(E,{select:!0})):b===x&&g.preventDefault()}},[r,n,m.paused]);return l.jsx(K.div,{tabIndex:-1,...a,ref:h,onKeyDown:w})});Br.displayName=ef;function tf(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Qe(n,{select:t}),document.activeElement!==r)return}function rf(e){const t=ka(e),r=Cs(t,e),n=Cs(t.reverse(),e);return[r,n]}function ka(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Cs(e,t){for(const r of e)if(!nf(r,{upTo:t}))return r}function nf(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 of(e){return e instanceof HTMLInputElement&&"select"in e}function Qe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&of(e)&&t&&e.select()}}var Ss=sf();function sf(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Es(e,t),e.unshift(t)},remove(t){var r;e=Es(e,t),(r=e[0])==null||r.resume()}}}function Es(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function af(e){return e.filter(t=>t.tagName!=="A")}var ve=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},lf=d[" useId ".trim().toString()]||(()=>{}),cf=0;function he(e){const[t,r]=d.useState(lf());return ve(()=>{r(n=>n??String(cf++))},[e]),t?`radix-${t}`:""}const uf=["top","right","bottom","left"],tt=Math.min,Se=Math.max,Pr=Math.round,hr=Math.floor,Be=e=>({x:e,y:e}),df={left:"right",right:"left",bottom:"top",top:"bottom"},ff={start:"end",end:"start"};function Ln(e,t,r){return Se(e,tt(t,r))}function Ke(e,t){return typeof e=="function"?e(t):e}function Ye(e){return e.split("-")[0]}function Ft(e){return e.split("-")[1]}function oo(e){return e==="x"?"y":"x"}function so(e){return e==="y"?"height":"width"}const pf=new Set(["top","bottom"]);function Ve(e){return pf.has(Ye(e))?"y":"x"}function ao(e){return oo(Ve(e))}function mf(e,t,r){r===void 0&&(r=!1);const n=Ft(e),o=ao(e),s=so(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Rr(a)),[a,Rr(a)]}function gf(e){const t=Rr(e);return[$n(e),t,$n(t)]}function $n(e){return e.replace(/start|end/g,t=>ff[t])}const ks=["left","right"],Ps=["right","left"],hf=["top","bottom"],vf=["bottom","top"];function xf(e,t,r){switch(e){case"top":case"bottom":return r?t?Ps:ks:t?ks:Ps;case"left":case"right":return t?hf:vf;default:return[]}}function bf(e,t,r,n){const o=Ft(e);let s=xf(Ye(e),r==="start",n);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map($n)))),s}function Rr(e){return e.replace(/left|right|bottom|top/g,t=>df[t])}function yf(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pa(e){return typeof e!="number"?yf(e):{top:e,right:e,bottom:e,left:e}}function Nr(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Rs(e,t,r){let{reference:n,floating:o}=e;const s=Ve(t),a=ao(t),i=so(a),c=Ye(t),u=s==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,h=n[i]/2-o[i]/2;let m;switch(c){case"top":m={x:f,y:n.y-o.height};break;case"bottom":m={x:f,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:p};break;case"left":m={x:n.x-o.width,y:p};break;default:m={x:n.x,y:n.y}}switch(Ft(t)){case"start":m[a]-=h*(r&&u?-1:1);break;case"end":m[a]+=h*(r&&u?-1:1);break}return m}const wf=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:a}=r,i=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Rs(u,n,c),h=n,m={},w=0;for(let g=0;g<i.length;g++){const{name:v,fn:b}=i[g],{x,y:C,data:E,reset:R}=await b({x:f,y:p,initialPlacement:n,placement:h,strategy:o,middlewareData:m,rects:u,platform:a,elements:{reference:e,floating:t}});f=x??f,p=C??p,m={...m,[v]:{...m[v],...E}},R&&w<=50&&(w++,typeof R=="object"&&(R.placement&&(h=R.placement),R.rects&&(u=R.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:f,y:p}=Rs(u,h,c)),g=-1)}return{x:f,y:p,placement:h,strategy:o,middlewareData:m}};async function Qt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:s,rects:a,elements:i,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:m=0}=Ke(t,e),w=Pa(m),v=i[h?p==="floating"?"reference":"floating":p],b=Nr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(v)))==null||r?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:u,rootBoundary:f,strategy:c})),x=p==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),E=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},R=Nr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:C,strategy:c}):x);return{top:(b.top-R.top+w.top)/E.y,bottom:(R.bottom-b.bottom+w.bottom)/E.y,left:(b.left-R.left+w.left)/E.x,right:(R.right-b.right+w.right)/E.x}}const Cf=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:s,platform:a,elements:i,middlewareData:c}=t,{element:u,padding:f=0}=Ke(e,t)||{};if(u==null)return{};const p=Pa(f),h={x:r,y:n},m=ao(o),w=so(m),g=await a.getDimensions(u),v=m==="y",b=v?"top":"left",x=v?"bottom":"right",C=v?"clientHeight":"clientWidth",E=s.reference[w]+s.reference[m]-h[m]-s.floating[w],R=h[m]-s.reference[m],j=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let A=j?j[C]:0;(!A||!await(a.isElement==null?void 0:a.isElement(j)))&&(A=i.floating[C]||s.floating[w]);const N=E/2-R/2,G=A/2-g[w]/2-1,Y=tt(p[b],G),ee=tt(p[x],G),Q=Y,q=A-g[w]-ee,W=A/2-g[w]/2+N,M=Ln(Q,W,q),T=!c.arrow&&Ft(o)!=null&&W!==M&&s.reference[w]/2-(W<Q?Y:ee)-g[w]/2<0,D=T?W<Q?W-Q:W-q:0;return{[m]:h[m]+D,data:{[m]:M,centerOffset:W-M-D,...T&&{alignmentOffset:D}},reset:T}}}),Sf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:g=!0,...v}=Ke(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const b=Ye(o),x=Ve(i),C=Ye(i)===i,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),R=h||(C||!g?[Rr(i)]:gf(i)),j=w!=="none";!h&&j&&R.push(...bf(i,g,w,E));const A=[i,...R],N=await Qt(t,v),G=[];let Y=((n=s.flip)==null?void 0:n.overflows)||[];if(f&&G.push(N[b]),p){const W=mf(o,a,E);G.push(N[W[0]],N[W[1]])}if(Y=[...Y,{placement:o,overflows:G}],!G.every(W=>W<=0)){var ee,Q;const W=(((ee=s.flip)==null?void 0:ee.index)||0)+1,M=A[W];if(M&&(!(p==="alignment"?x!==Ve(M):!1)||Y.every(k=>Ve(k.placement)===x?k.overflows[0]>0:!0)))return{data:{index:W,overflows:Y},reset:{placement:M}};let T=(Q=Y.filter(D=>D.overflows[0]<=0).sort((D,k)=>D.overflows[1]-k.overflows[1])[0])==null?void 0:Q.placement;if(!T)switch(m){case"bestFit":{var q;const D=(q=Y.filter(k=>{if(j){const H=Ve(k.placement);return H===x||H==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(H=>H>0).reduce((H,U)=>H+U,0)]).sort((k,H)=>k[1]-H[1])[0])==null?void 0:q[0];D&&(T=D);break}case"initialPlacement":T=i;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function Ns(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ts(e){return uf.some(t=>e[t]>=0)}const Ef=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ke(e,t);switch(n){case"referenceHidden":{const s=await Qt(t,{...o,elementContext:"reference"}),a=Ns(s,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ts(a)}}}case"escaped":{const s=await Qt(t,{...o,altBoundary:!0}),a=Ns(s,r.floating);return{data:{escapedOffsets:a,escaped:Ts(a)}}}default:return{}}}}},Ra=new Set(["left","top"]);async function kf(e,t){const{placement:r,platform:n,elements:o}=e,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Ye(r),i=Ft(r),c=Ve(r)==="y",u=Ra.has(a)?-1:1,f=s&&c?-1:1,p=Ke(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof w=="number"&&(m=i==="end"?w*-1:w),c?{x:m*f,y:h*u}:{x:h*u,y:m*f}}const Pf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:s,placement:a,middlewareData:i}=t,c=await kf(t,e);return a===((r=i.offset)==null?void 0:r.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:a}}}}},Rf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:v=>{let{x:b,y:x}=v;return{x:b,y:x}}},...c}=Ke(e,t),u={x:r,y:n},f=await Qt(t,c),p=Ve(Ye(o)),h=oo(p);let m=u[h],w=u[p];if(s){const v=h==="y"?"top":"left",b=h==="y"?"bottom":"right",x=m+f[v],C=m-f[b];m=Ln(x,m,C)}if(a){const v=p==="y"?"top":"left",b=p==="y"?"bottom":"right",x=w+f[v],C=w-f[b];w=Ln(x,w,C)}const g=i.fn({...t,[h]:m,[p]:w});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[h]:s,[p]:a}}}}}},Nf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:c=!0,crossAxis:u=!0}=Ke(e,t),f={x:r,y:n},p=Ve(o),h=oo(p);let m=f[h],w=f[p];const g=Ke(i,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const C=h==="y"?"height":"width",E=s.reference[h]-s.floating[C]+v.mainAxis,R=s.reference[h]+s.reference[C]-v.mainAxis;m<E?m=E:m>R&&(m=R)}if(u){var b,x;const C=h==="y"?"width":"height",E=Ra.has(Ye(o)),R=s.reference[p]-s.floating[C]+(E&&((b=a.offset)==null?void 0:b[p])||0)+(E?0:v.crossAxis),j=s.reference[p]+s.reference[C]+(E?0:((x=a.offset)==null?void 0:x[p])||0)-(E?v.crossAxis:0);w<R?w=R:w>j&&(w=j)}return{[h]:m,[p]:w}}}},Tf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:c=()=>{},...u}=Ke(e,t),f=await Qt(t,u),p=Ye(o),h=Ft(o),m=Ve(o)==="y",{width:w,height:g}=s.floating;let v,b;p==="top"||p==="bottom"?(v=p,b=h===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(b=p,v=h==="end"?"top":"bottom");const x=g-f.top-f.bottom,C=w-f.left-f.right,E=tt(g-f[v],x),R=tt(w-f[b],C),j=!t.middlewareData.shift;let A=E,N=R;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(N=C),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(A=x),j&&!h){const Y=Se(f.left,0),ee=Se(f.right,0),Q=Se(f.top,0),q=Se(f.bottom,0);m?N=w-2*(Y!==0||ee!==0?Y+ee:Se(f.left,f.right)):A=g-2*(Q!==0||q!==0?Q+q:Se(f.top,f.bottom))}await c({...t,availableWidth:N,availableHeight:A});const G=await a.getDimensions(i.floating);return w!==G.width||g!==G.height?{reset:{rects:!0}}:{}}}};function Wr(){return typeof window<"u"}function Vt(e){return Na(e)?(e.nodeName||"").toLowerCase():"#document"}function Ee(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ze(e){var t;return(t=(Na(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Na(e){return Wr()?e instanceof Node||e instanceof Ee(e).Node:!1}function Ae(e){return Wr()?e instanceof Element||e instanceof Ee(e).Element:!1}function We(e){return Wr()?e instanceof HTMLElement||e instanceof Ee(e).HTMLElement:!1}function js(e){return!Wr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ee(e).ShadowRoot}const jf=new Set(["inline","contents"]);function or(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=_e(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!jf.has(o)}const Af=new Set(["table","td","th"]);function _f(e){return Af.has(Vt(e))}const If=[":popover-open",":modal"];function zr(e){return If.some(t=>{try{return e.matches(t)}catch{return!1}})}const Of=["transform","translate","scale","rotate","perspective"],Mf=["transform","translate","scale","rotate","perspective","filter"],Df=["paint","layout","strict","content"];function io(e){const t=lo(),r=Ae(e)?_e(e):e;return Of.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Mf.some(n=>(r.willChange||"").includes(n))||Df.some(n=>(r.contain||"").includes(n))}function Lf(e){let t=rt(e);for(;We(t)&&!Ot(t);){if(io(t))return t;if(zr(t))return null;t=rt(t)}return null}function lo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const $f=new Set(["html","body","#document"]);function Ot(e){return $f.has(Vt(e))}function _e(e){return Ee(e).getComputedStyle(e)}function Hr(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rt(e){if(Vt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||js(e)&&e.host||ze(e);return js(t)?t.host:t}function Ta(e){const t=rt(e);return Ot(t)?e.ownerDocument?e.ownerDocument.body:e.body:We(t)&&or(t)?t:Ta(t)}function er(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Ta(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),a=Ee(o);if(s){const i=Fn(a);return t.concat(a,a.visualViewport||[],or(o)?o:[],i&&r?er(i):[])}return t.concat(o,er(o,[],r))}function Fn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ja(e){const t=_e(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=We(e),s=o?e.offsetWidth:r,a=o?e.offsetHeight:n,i=Pr(r)!==s||Pr(n)!==a;return i&&(r=s,n=a),{width:r,height:n,$:i}}function co(e){return Ae(e)?e:e.contextElement}function At(e){const t=co(e);if(!We(t))return Be(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:s}=ja(t);let a=(s?Pr(r.width):r.width)/n,i=(s?Pr(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Ff=Be(0);function Aa(e){const t=Ee(e);return!lo()||!t.visualViewport?Ff:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vf(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ee(e)?!1:t}function pt(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),s=co(e);let a=Be(1);t&&(n?Ae(n)&&(a=At(n)):a=At(e));const i=Vf(s,r,n)?Aa(s):Be(0);let c=(o.left+i.x)/a.x,u=(o.top+i.y)/a.y,f=o.width/a.x,p=o.height/a.y;if(s){const h=Ee(s),m=n&&Ae(n)?Ee(n):n;let w=h,g=Fn(w);for(;g&&n&&m!==w;){const v=At(g),b=g.getBoundingClientRect(),x=_e(g),C=b.left+(g.clientLeft+parseFloat(x.paddingLeft))*v.x,E=b.top+(g.clientTop+parseFloat(x.paddingTop))*v.y;c*=v.x,u*=v.y,f*=v.x,p*=v.y,c+=C,u+=E,w=Ee(g),g=Fn(w)}}return Nr({width:f,height:p,x:c,y:u})}function Gr(e,t){const r=Hr(e).scrollLeft;return t?t.left+r:pt(ze(e)).left+r}function _a(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Gr(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Bf(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const s=o==="fixed",a=ze(n),i=t?zr(t.floating):!1;if(n===a||i&&s)return r;let c={scrollLeft:0,scrollTop:0},u=Be(1);const f=Be(0),p=We(n);if((p||!p&&!s)&&((Vt(n)!=="body"||or(a))&&(c=Hr(n)),We(n))){const m=pt(n);u=At(n),f.x=m.x+n.clientLeft,f.y=m.y+n.clientTop}const h=a&&!p&&!s?_a(a,c):Be(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+f.x+h.x,y:r.y*u.y-c.scrollTop*u.y+f.y+h.y}}function Wf(e){return Array.from(e.getClientRects())}function zf(e){const t=ze(e),r=Hr(e),n=e.ownerDocument.body,o=Se(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=Se(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Gr(e);const i=-r.scrollTop;return _e(n).direction==="rtl"&&(a+=Se(t.clientWidth,n.clientWidth)-o),{width:o,height:s,x:a,y:i}}const As=25;function Hf(e,t){const r=Ee(e),n=ze(e),o=r.visualViewport;let s=n.clientWidth,a=n.clientHeight,i=0,c=0;if(o){s=o.width,a=o.height;const f=lo();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const u=Gr(n);if(u<=0){const f=n.ownerDocument,p=f.body,h=getComputedStyle(p),m=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,w=Math.abs(n.clientWidth-p.clientWidth-m);w<=As&&(s-=w)}else u<=As&&(s+=u);return{width:s,height:a,x:i,y:c}}const Gf=new Set(["absolute","fixed"]);function Uf(e,t){const r=pt(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,s=We(e)?At(e):Be(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,c=o*s.x,u=n*s.y;return{width:a,height:i,x:c,y:u}}function _s(e,t,r){let n;if(t==="viewport")n=Hf(e,r);else if(t==="document")n=zf(ze(e));else if(Ae(t))n=Uf(t,r);else{const o=Aa(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Nr(n)}function Ia(e,t){const r=rt(e);return r===t||!Ae(r)||Ot(r)?!1:_e(r).position==="fixed"||Ia(r,t)}function Kf(e,t){const r=t.get(e);if(r)return r;let n=er(e,[],!1).filter(i=>Ae(i)&&Vt(i)!=="body"),o=null;const s=_e(e).position==="fixed";let a=s?rt(e):e;for(;Ae(a)&&!Ot(a);){const i=_e(a),c=io(a);!c&&i.position==="fixed"&&(o=null),(s?!c&&!o:!c&&i.position==="static"&&!!o&&Gf.has(o.position)||or(a)&&!c&&Ia(e,a))?n=n.filter(f=>f!==a):o=i,a=rt(a)}return t.set(e,n),n}function Yf(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?zr(t)?[]:Kf(t,this._c):[].concat(r),n],i=a[0],c=a.reduce((u,f)=>{const p=_s(t,f,o);return u.top=Se(p.top,u.top),u.right=tt(p.right,u.right),u.bottom=tt(p.bottom,u.bottom),u.left=Se(p.left,u.left),u},_s(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function qf(e){const{width:t,height:r}=ja(e);return{width:t,height:r}}function Xf(e,t,r){const n=We(t),o=ze(t),s=r==="fixed",a=pt(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const c=Be(0);function u(){c.x=Gr(o)}if(n||!n&&!s)if((Vt(t)!=="body"||or(o))&&(i=Hr(t)),n){const m=pt(t,!0,s,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&u();s&&!n&&o&&u();const f=o&&!n&&!s?_a(o,i):Be(0),p=a.left+i.scrollLeft-c.x-f.x,h=a.top+i.scrollTop-c.y-f.y;return{x:p,y:h,width:a.width,height:a.height}}function yn(e){return _e(e).position==="static"}function Is(e,t){if(!We(e)||_e(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ze(e)===r&&(r=r.ownerDocument.body),r}function Oa(e,t){const r=Ee(e);if(zr(e))return r;if(!We(e)){let o=rt(e);for(;o&&!Ot(o);){if(Ae(o)&&!yn(o))return o;o=rt(o)}return r}let n=Is(e,t);for(;n&&_f(n)&&yn(n);)n=Is(n,t);return n&&Ot(n)&&yn(n)&&!io(n)?r:n||Lf(e)||r}const Zf=async function(e){const t=this.getOffsetParent||Oa,r=this.getDimensions,n=await r(e.floating);return{reference:Xf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Jf(e){return _e(e).direction==="rtl"}const Qf={convertOffsetParentRelativeRectToViewportRelativeRect:Bf,getDocumentElement:ze,getClippingRect:Yf,getOffsetParent:Oa,getElementRects:Zf,getClientRects:Wf,getDimensions:qf,getScale:At,isElement:Ae,isRTL:Jf};function Ma(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ep(e,t){let r=null,n;const o=ze(e);function s(){var i;clearTimeout(n),(i=r)==null||i.disconnect(),r=null}function a(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:f,top:p,width:h,height:m}=u;if(i||t(),!h||!m)return;const w=hr(p),g=hr(o.clientWidth-(f+h)),v=hr(o.clientHeight-(p+m)),b=hr(f),C={rootMargin:-w+"px "+-g+"px "+-v+"px "+-b+"px",threshold:Se(0,tt(1,c))||1};let E=!0;function R(j){const A=j[0].intersectionRatio;if(A!==c){if(!E)return a();A?a(!1,A):n=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!Ma(u,e.getBoundingClientRect())&&a(),E=!1}try{r=new IntersectionObserver(R,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(R,C)}r.observe(e)}return a(!0),s}function tp(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=co(e),f=o||s?[...u?er(u):[],...er(t)]:[];f.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),s&&b.addEventListener("resize",r)});const p=u&&i?ep(u,r):null;let h=-1,m=null;a&&(m=new ResizeObserver(b=>{let[x]=b;x&&x.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),r()}),u&&!c&&m.observe(u),m.observe(t));let w,g=c?pt(e):null;c&&v();function v(){const b=pt(e);g&&!Ma(g,b)&&r(),g=b,w=requestAnimationFrame(v)}return r(),()=>{var b;f.forEach(x=>{o&&x.removeEventListener("scroll",r),s&&x.removeEventListener("resize",r)}),p==null||p(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(w)}}const rp=Pf,np=Rf,op=Sf,sp=Tf,ap=Ef,Os=Cf,ip=Nf,lp=(e,t,r)=>{const n=new Map,o={platform:Qf,...r},s={...o.platform,_c:n};return wf(e,t,{...o,platform:s})};var cp=typeof document<"u",up=function(){},Cr=cp?S.useLayoutEffect:up;function Tr(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Tr(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const s=o[n];if(!(s==="_owner"&&e.$$typeof)&&!Tr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Da(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ms(e,t){const r=Da(e);return Math.round(t*r)/r}function wn(e){const t=d.useRef(e);return Cr(()=>{t.current=e}),t}function dp(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:c,open:u}=e,[f,p]=d.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=d.useState(n);Tr(h,n)||m(n);const[w,g]=d.useState(null),[v,b]=d.useState(null),x=d.useCallback(k=>{k!==j.current&&(j.current=k,g(k))},[]),C=d.useCallback(k=>{k!==A.current&&(A.current=k,b(k))},[]),E=s||w,R=a||v,j=d.useRef(null),A=d.useRef(null),N=d.useRef(f),G=c!=null,Y=wn(c),ee=wn(o),Q=wn(u),q=d.useCallback(()=>{if(!j.current||!A.current)return;const k={placement:t,strategy:r,middleware:h};ee.current&&(k.platform=ee.current),lp(j.current,A.current,k).then(H=>{const U={...H,isPositioned:Q.current!==!1};W.current&&!Tr(N.current,U)&&(N.current=U,$r.flushSync(()=>{p(U)}))})},[h,t,r,ee,Q]);Cr(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(k=>({...k,isPositioned:!1})))},[u]);const W=d.useRef(!1);Cr(()=>(W.current=!0,()=>{W.current=!1}),[]),Cr(()=>{if(E&&(j.current=E),R&&(A.current=R),E&&R){if(Y.current)return Y.current(E,R,q);q()}},[E,R,q,Y,G]);const M=d.useMemo(()=>({reference:j,floating:A,setReference:x,setFloating:C}),[x,C]),T=d.useMemo(()=>({reference:E,floating:R}),[E,R]),D=d.useMemo(()=>{const k={position:r,left:0,top:0};if(!T.floating)return k;const H=Ms(T.floating,f.x),U=Ms(T.floating,f.y);return i?{...k,transform:"translate("+H+"px, "+U+"px)",...Da(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:H,top:U}},[r,i,T.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:q,refs:M,elements:T,floatingStyles:D}),[f,q,M,T,D])}const fp=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Os({element:n.current,padding:o}).fn(r):{}:n?Os({element:n,padding:o}).fn(r):{}}}},pp=(e,t)=>({...rp(e),options:[e,t]}),mp=(e,t)=>({...np(e),options:[e,t]}),gp=(e,t)=>({...ip(e),options:[e,t]}),hp=(e,t)=>({...op(e),options:[e,t]}),vp=(e,t)=>({...sp(e),options:[e,t]}),xp=(e,t)=>({...ap(e),options:[e,t]}),bp=(e,t)=>({...fp(e),options:[e,t]});var yp="Arrow",La=d.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...s}=e;return l.jsx(K.svg,{...s,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});La.displayName=yp;var wp=La;function $a(e){const[t,r]=d.useState(void 0);return ve(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,i=u.blockSize}else a=e.offsetWidth,i=e.offsetHeight;r({width:a,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var uo="Popper",[Fa,Bt]=Ne(uo),[Cp,Va]=Fa(uo),Ba=e=>{const{__scopePopper:t,children:r}=e,[n,o]=d.useState(null);return l.jsx(Cp,{scope:t,anchor:n,onAnchorChange:o,children:r})};Ba.displayName=uo;var Wa="PopperAnchor",za=d.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,s=Va(Wa,r),a=d.useRef(null),i=de(t,a),c=d.useRef(null);return d.useEffect(()=>{const u=c.current;c.current=(n==null?void 0:n.current)||a.current,u!==c.current&&s.onAnchorChange(c.current)}),n?null:l.jsx(K.div,{...o,ref:i})});za.displayName=Wa;var fo="PopperContent",[Sp,Ep]=Fa(fo),Ha=d.forwardRef((e,t)=>{var O,X,ne,oe,le,ae;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:w,...g}=e,v=Va(fo,r),[b,x]=d.useState(null),C=de(t,xe=>x(xe)),[E,R]=d.useState(null),j=$a(E),A=(j==null?void 0:j.width)??0,N=(j==null?void 0:j.height)??0,G=n+(s!=="center"?"-"+s:""),Y=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},ee=Array.isArray(u)?u:[u],Q=ee.length>0,q={padding:Y,boundary:ee.filter(Pp),altBoundary:Q},{refs:W,floatingStyles:M,placement:T,isPositioned:D,middlewareData:k}=dp({strategy:"fixed",placement:G,whileElementsMounted:(...xe)=>tp(...xe,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[pp({mainAxis:o+N,alignmentAxis:a}),c&&mp({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?gp():void 0,...q}),c&&hp({...q}),vp({...q,apply:({elements:xe,rects:Pe,availableWidth:De,availableHeight:Te})=>{const{width:Ze,height:fr}=Pe.reference,Ge=xe.floating.style;Ge.setProperty("--radix-popper-available-width",`${De}px`),Ge.setProperty("--radix-popper-available-height",`${Te}px`),Ge.setProperty("--radix-popper-anchor-width",`${Ze}px`),Ge.setProperty("--radix-popper-anchor-height",`${fr}px`)}}),E&&bp({element:E,padding:i}),Rp({arrowWidth:A,arrowHeight:N}),h&&xp({strategy:"referenceHidden",...q})]}),[H,U]=Ka(T),re=et(w);ve(()=>{D&&(re==null||re())},[D,re]);const P=(O=k.arrow)==null?void 0:O.x,$=(X=k.arrow)==null?void 0:X.y,z=((ne=k.arrow)==null?void 0:ne.centerOffset)!==0,[F,te]=d.useState();return ve(()=>{b&&te(window.getComputedStyle(b).zIndex)},[b]),l.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:D?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:F,"--radix-popper-transform-origin":[(oe=k.transformOrigin)==null?void 0:oe.x,(le=k.transformOrigin)==null?void 0:le.y].join(" "),...((ae=k.hide)==null?void 0:ae.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(Sp,{scope:r,placedSide:H,onArrowChange:R,arrowX:P,arrowY:$,shouldHideArrow:z,children:l.jsx(K.div,{"data-side":H,"data-align":U,...g,ref:C,style:{...g.style,animation:D?void 0:"none"}})})})});Ha.displayName=fo;var Ga="PopperArrow",kp={top:"bottom",right:"left",bottom:"top",left:"right"},Ua=d.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,s=Ep(Ga,n),a=kp[s.placedSide];return l.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsx(wp,{...o,ref:r,style:{...o.style,display:"block"}})})});Ua.displayName=Ga;function Pp(e){return e!==null}var Rp=e=>({name:"transformOrigin",options:e,fn(t){var v,b,x;const{placement:r,rects:n,middlewareData:o}=t,a=((v=o.arrow)==null?void 0:v.centerOffset)!==0,i=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,f]=Ka(r),p={start:"0%",center:"50%",end:"100%"}[f],h=(((b=o.arrow)==null?void 0:b.x)??0)+i/2,m=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let w="",g="";return u==="bottom"?(w=a?p:`${h}px`,g=`${-c}px`):u==="top"?(w=a?p:`${h}px`,g=`${n.floating.height+c}px`):u==="right"?(w=`${-c}px`,g=a?p:`${m}px`):u==="left"&&(w=`${n.floating.width+c}px`,g=a?p:`${m}px`),{data:{x:w,y:g}}}});function Ka(e){const[t,r="center"]=e.split("-");return[t,r]}var po=Ba,Ur=za,mo=Ha,go=Ua,Np="Portal",sr=d.forwardRef((e,t)=>{var i;const{container:r,...n}=e,[o,s]=d.useState(!1);ve(()=>s(!0),[]);const a=r||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return a?rr.createPortal(l.jsx(K.div,{...n,ref:t}),a):null});sr.displayName=Np;var Tp=d[" useInsertionEffect ".trim().toString()]||ve;function ke({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,s,a]=jp({defaultProp:t,onChange:r}),i=e!==void 0,c=i?e:o;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${i?"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=i},[i,n])}const u=d.useCallback(f=>{var p;if(i){const h=Ap(f)?f(e):f;h!==e&&((p=a.current)==null||p.call(a,h))}else s(f)},[i,e,s,a]);return[c,u]}function jp({defaultProp:e,onChange:t}){const[r,n]=d.useState(e),o=d.useRef(r),s=d.useRef(t);return Tp(()=>{s.current=t},[t]),d.useEffect(()=>{var a;o.current!==r&&((a=s.current)==null||a.call(s,r),o.current=r)},[r,o]),[r,n,s]}function Ap(e){return typeof e=="function"}function Ya(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var qa=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"}),_p="VisuallyHidden",Xa=d.forwardRef((e,t)=>l.jsx(K.span,{...e,ref:t,style:{...qa,...e.style}}));Xa.displayName=_p;var Ip=Xa,Op=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},St=new WeakMap,vr=new WeakMap,xr={},Cn=0,Za=function(e){return e&&(e.host||Za(e.parentNode))},Mp=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Za(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Dp=function(e,t,r,n){var o=Mp(t,Array.isArray(e)?e:[e]);xr[r]||(xr[r]=new WeakMap);var s=xr[r],a=[],i=new Set,c=new Set(o),u=function(p){!p||i.has(p)||(i.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(h){if(i.has(h))f(h);else try{var m=h.getAttribute(n),w=m!==null&&m!=="false",g=(St.get(h)||0)+1,v=(s.get(h)||0)+1;St.set(h,g),s.set(h,v),a.push(h),g===1&&w&&vr.set(h,!0),v===1&&h.setAttribute(r,"true"),w||h.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return f(t),i.clear(),Cn++,function(){a.forEach(function(p){var h=St.get(p)-1,m=s.get(p)-1;St.set(p,h),s.set(p,m),h||(vr.has(p)||p.removeAttribute(n),vr.delete(p)),m||p.removeAttribute(r)}),Cn--,Cn||(St=new WeakMap,St=new WeakMap,vr=new WeakMap,xr={})}},ho=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Op(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Dp(n,o,r,"aria-hidden")):function(){return null}},Fe=function(){return Fe=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Fe.apply(this,arguments)};function Ja(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Lp(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}var Sr="right-scroll-bar-position",Er="width-before-scroll-bar",$p="with-scroll-bars-hidden",Fp="--removed-body-scroll-bar-size";function Sn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Vp(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Bp=typeof window<"u"?d.useLayoutEffect:d.useEffect,Ds=new WeakMap;function Wp(e,t){var r=Vp(null,function(n){return e.forEach(function(o){return Sn(o,n)})});return Bp(function(){var n=Ds.get(r);if(n){var o=new Set(n),s=new Set(e),a=r.current;o.forEach(function(i){s.has(i)||Sn(i,null)}),s.forEach(function(i){o.has(i)||Sn(i,a)})}Ds.set(r,e)},[e]),r}function zp(e){return e}function Hp(e,t){t===void 0&&(t=zp);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var a=t(s,n);return r.push(a),function(){r=r.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(n=!0;r.length;){var a=r;r=[],a.forEach(s)}r={push:function(i){return s(i)},filter:function(){return r}}},assignMedium:function(s){n=!0;var a=[];if(r.length){var i=r;r=[],i.forEach(s),a=r}var c=function(){var f=a;a=[],f.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),r}}}};return o}function Gp(e){e===void 0&&(e={});var t=Hp(null);return t.options=Fe({async:!0,ssr:!1},e),t}var Qa=function(e){var t=e.sideCar,r=Ja(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 d.createElement(n,Fe({},r))};Qa.isSideCarExport=!0;function Up(e,t){return e.useMedium(t),Qa}var ei=Gp(),En=function(){},Kr=d.forwardRef(function(e,t){var r=d.useRef(null),n=d.useState({onScrollCapture:En,onWheelCapture:En,onTouchMoveCapture:En}),o=n[0],s=n[1],a=e.forwardProps,i=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,h=e.sideCar,m=e.noRelative,w=e.noIsolation,g=e.inert,v=e.allowPinchZoom,b=e.as,x=b===void 0?"div":b,C=e.gapMode,E=Ja(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=h,j=Wp([r,t]),A=Fe(Fe({},E),o);return d.createElement(d.Fragment,null,f&&d.createElement(R,{sideCar:ei,removeScrollBar:u,shards:p,noRelative:m,noIsolation:w,inert:g,setCallbacks:s,allowPinchZoom:!!v,lockRef:r,gapMode:C}),a?d.cloneElement(d.Children.only(i),Fe(Fe({},A),{ref:j})):d.createElement(x,Fe({},A,{className:c,ref:j}),i))});Kr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Kr.classNames={fullWidth:Er,zeroRight:Sr};var Kp=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Yp(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Kp();return t&&e.setAttribute("nonce",t),e}function qp(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Xp(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Zp=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Yp())&&(qp(t,r),Xp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Jp=function(){var e=Zp();return function(t,r){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ti=function(){var e=Jp(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Qp={left:0,top:0,right:0,gap:0},kn=function(e){return parseInt(e||"",10)||0},em=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[kn(r),kn(n),kn(o)]},tm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qp;var t=em(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},rm=ti(),_t="data-scroll-locked",nm=function(e,t,r,n){var o=e.left,s=e.top,a=e.right,i=e.gap;return r===void 0&&(r="margin"),`
30
+ <%s key={someKey} {...props} />`,mn,lt,Gu,lt),ss[lt+mn]=!0}}return y===n?Vu(me):Fu(me),me}}function Bu(y,_,L){return as(y,_,L,!0)}function Wu(y,_,L){return as(y,_,L,!1)}var zu=Wu,Hu=Bu;Gt.Fragment=n,Gt.jsx=zu,Gt.jsxs=Hu})()),Gt}var cs;function Qu(){return cs||(cs=1,process.env.NODE_ENV==="production"?pr.exports=Zu():pr.exports=Ju()),pr.exports}var l=Qu();function ca(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ca(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ua(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ca(e))&&(n&&(n+=" "),n+=t);return n}const us=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ds=ua,Fr=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return ds(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const f=r==null?void 0:r[u],p=s==null?void 0:s[u];if(f===null)return null;const h=us(f)||us(p);return o[u][h]}),i=r&&Object.entries(r).reduce((u,f)=>{let[p,h]=f;return h===void 0||(u[p]=h),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,f)=>{let{class:p,className:h,...m}=f;return Object.entries(m).every(w=>{let[g,v]=w;return Array.isArray(v)?v.includes({...s,...i}[g]):{...s,...i}[g]===v})?[...u,p,h]:u},[]);return ds(e,a,c,r==null?void 0:r.class,r==null?void 0:r.className)},eo="-",ed=e=>{const t=rd(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{const i=a.split(eo);return i[0]===""&&i.length!==1&&i.shift(),da(i,t)||td(a)},getConflictingClassGroupIds:(a,i)=>{const c=r[a]||[];return i&&n[a]?[...c,...n[a]]:c}}},da=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?da(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(eo);return(a=t.validators.find(({validator:i})=>i(s)))==null?void 0:a.classGroupId},fs=/^\[(.+)\]$/,td=e=>{if(fs.test(e)){const t=fs.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},rd=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)In(r[o],n,o,t);return n},In=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:ps(t,o);s.classGroupId=r;return}if(typeof o=="function"){if(nd(o)){In(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,a])=>{In(a,ps(t,s),r,n)})})},ps=(e,t)=>{let r=e;return t.split(eo).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},nd=e=>e.isThemeGetter,od=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(s,a)=>{r.set(s,a),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let a=r.get(s);if(a!==void 0)return a;if((a=n.get(s))!==void 0)return o(s,a),a},set(s,a){r.has(s)?r.set(s,a):o(s,a)}}},On="!",Mn=":",sd=Mn.length,ad=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const s=[];let a=0,i=0,c=0,u;for(let w=0;w<o.length;w++){let g=o[w];if(a===0&&i===0){if(g===Mn){s.push(o.slice(c,w)),c=w+sd;continue}if(g==="/"){u=w;continue}}g==="["?a++:g==="]"?a--:g==="("?i++:g===")"&&i--}const f=s.length===0?o:o.substring(c),p=id(f),h=p!==f,m=u&&u>c?u-c:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:m}};if(t){const o=t+Mn,s=n;n=a=>a.startsWith(o)?s(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},id=e=>e.endsWith(On)?e.substring(0,e.length-1):e.startsWith(On)?e.substring(1):e,ld=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let s=[];return n.forEach(a=>{a[0]==="["||t[a]?(o.push(...s.sort(),a),s=[]):s.push(a)}),o.push(...s.sort()),o}},cd=e=>({cache:od(e.cacheSize),parseClassName:ad(e),sortModifiers:ld(e),...ed(e)}),ud=/\s+/,dd=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(ud);let c="";for(let u=i.length-1;u>=0;u-=1){const f=i[u],{isExternal:p,modifiers:h,hasImportantModifier:m,baseClassName:w,maybePostfixModifierPosition:g}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let v=!!g,b=n(v?w.substring(0,g):w);if(!b){if(!v){c=f+(c.length>0?" "+c:c);continue}if(b=n(w),!b){c=f+(c.length>0?" "+c:c);continue}v=!1}const x=s(h).join(":"),C=m?x+On:x,E=C+b;if(a.includes(E))continue;a.push(E);const R=o(b,v);for(let j=0;j<R.length;++j){const A=R[j];a.push(C+A)}c=f+(c.length>0?" "+c:c)}return c};function fd(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=fa(t))&&(n&&(n+=" "),n+=r);return n}const fa=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=fa(e[n]))&&(r&&(r+=" "),r+=t);return r};function pd(e,...t){let r,n,o,s=a;function a(c){const u=t.reduce((f,p)=>p(f),e());return r=cd(u),n=r.cache.get,o=r.cache.set,s=i,i(c)}function i(c){const u=n(c);if(u)return u;const f=dd(c,r);return o(c,f),f}return function(){return s(fd.apply(null,arguments))}}const ge=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},pa=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ma=/^\((?:(\w[\w-]*):)?(.+)\)$/i,md=/^\d+\/\d+$/,gd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hd=/\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$/,vd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ct=e=>md.test(e),se=e=>!!e&&!Number.isNaN(Number(e)),Je=e=>!!e&&Number.isInteger(Number(e)),gn=e=>e.endsWith("%")&&se(e.slice(0,-1)),Ue=e=>gd.test(e),yd=()=>!0,wd=e=>hd.test(e)&&!vd.test(e),ga=()=>!1,Cd=e=>xd.test(e),Sd=e=>bd.test(e),Ed=e=>!V(e)&&!B(e),kd=e=>Lt(e,xa,ga),V=e=>pa.test(e),ct=e=>Lt(e,ba,wd),hn=e=>Lt(e,jd,se),ms=e=>Lt(e,ha,ga),Pd=e=>Lt(e,va,Sd),mr=e=>Lt(e,ya,Cd),B=e=>ma.test(e),Ut=e=>$t(e,ba),Rd=e=>$t(e,Ad),gs=e=>$t(e,ha),Nd=e=>$t(e,xa),Td=e=>$t(e,va),gr=e=>$t(e,ya,!0),Lt=(e,t,r)=>{const n=pa.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},$t=(e,t,r=!1)=>{const n=ma.exec(e);return n?n[1]?t(n[1]):r:!1},ha=e=>e==="position"||e==="percentage",va=e=>e==="image"||e==="url",xa=e=>e==="length"||e==="size"||e==="bg-size",ba=e=>e==="length",jd=e=>e==="number",Ad=e=>e==="family-name",ya=e=>e==="shadow",_d=()=>{const e=ge("color"),t=ge("font"),r=ge("text"),n=ge("font-weight"),o=ge("tracking"),s=ge("leading"),a=ge("breakpoint"),i=ge("container"),c=ge("spacing"),u=ge("radius"),f=ge("shadow"),p=ge("inset-shadow"),h=ge("text-shadow"),m=ge("drop-shadow"),w=ge("blur"),g=ge("perspective"),v=ge("aspect"),b=ge("ease"),x=ge("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...E(),B,V],j=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],N=()=>[B,V,c],G=()=>[Ct,"full","auto",...N()],Y=()=>[Je,"none","subgrid",B,V],ee=()=>["auto",{span:["full",Je,B,V]},Je,B,V],Q=()=>[Je,"auto",B,V],q=()=>["auto","min","max","fr",B,V],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],M=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...N()],D=()=>[Ct,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],k=()=>[e,B,V],H=()=>[...E(),gs,ms,{position:[B,V]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],re=()=>["auto","cover","contain",Nd,kd,{size:[B,V]}],P=()=>[gn,Ut,ct],$=()=>["","none","full",u,B,V],z=()=>["",se,Ut,ct],F=()=>["solid","dashed","dotted","double"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>[se,gn,gs,ms],X=()=>["","none",w,B,V],ne=()=>["none",se,B,V],oe=()=>["none",se,B,V],le=()=>[se,B,V],ae=()=>[Ct,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ue],breakpoint:[Ue],color:[yd],container:[Ue],"drop-shadow":[Ue],ease:["in","out","in-out"],font:[Ed],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ue],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ue],shadow:[Ue],spacing:["px",se],text:[Ue],"text-shadow":[Ue],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ct,V,B,v]}],container:["container"],columns:[{columns:[se,V,B,i]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:R()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[Je,"auto",B,V]}],basis:[{basis:[Ct,"full","auto",i,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[se,Ct,"auto","initial","none",V]}],grow:[{grow:["",se,B,V]}],shrink:[{shrink:["",se,B,V]}],order:[{order:[Je,"first","last","none",B,V]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:ee()}],"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":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...M(),"normal"]}],"justify-self":[{"justify-self":["auto",...M()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...M(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...M(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...M(),"baseline"]}],"place-self":[{"place-self":["auto",...M()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:D()}],w:[{w:[i,"screen",...D()]}],"min-w":[{"min-w":[i,"screen","none",...D()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...D()]}],h:[{h:["screen","lh",...D()]}],"min-h":[{"min-h":["screen","lh","none",...D()]}],"max-h":[{"max-h":["screen","lh",...D()]}],"font-size":[{text:["base",r,Ut,ct]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,B,hn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gn,V]}],"font-family":[{font:[Rd,V,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:[o,B,V]}],"line-clamp":[{"line-clamp":[se,"none",B,hn]}],leading:[{leading:[s,...N()]}],"list-image":[{"list-image":["none",B,V]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",B,V]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:[se,"from-font","auto",B,ct]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[se,"auto",B,V]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B,V]}],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",B,V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:H()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:re()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Je,B,V],radial:["",B,V],conic:[Je,B,V]},Td,Pd]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...F(),"hidden","none"]}],"divide-style":[{divide:[...F(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...F(),"none","hidden"]}],"outline-offset":[{"outline-offset":[se,B,V]}],"outline-w":[{outline:["",se,Ut,ct]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",f,gr,mr]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",p,gr,mr]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[se,ct]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",h,gr,mr]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[se,B,V]}],"mix-blend":[{"mix-blend":[...te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":te()}],"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":[se]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[B,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"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":E()}],"mask-image-conic-pos":[{"mask-conic":[se]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:H()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",B,V]}],filter:[{filter:["","none",B,V]}],blur:[{blur:X()}],brightness:[{brightness:[se,B,V]}],contrast:[{contrast:[se,B,V]}],"drop-shadow":[{"drop-shadow":["","none",m,gr,mr]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",se,B,V]}],"hue-rotate":[{"hue-rotate":[se,B,V]}],invert:[{invert:["",se,B,V]}],saturate:[{saturate:[se,B,V]}],sepia:[{sepia:["",se,B,V]}],"backdrop-filter":[{"backdrop-filter":["","none",B,V]}],"backdrop-blur":[{"backdrop-blur":X()}],"backdrop-brightness":[{"backdrop-brightness":[se,B,V]}],"backdrop-contrast":[{"backdrop-contrast":[se,B,V]}],"backdrop-grayscale":[{"backdrop-grayscale":["",se,B,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[se,B,V]}],"backdrop-invert":[{"backdrop-invert":["",se,B,V]}],"backdrop-opacity":[{"backdrop-opacity":[se,B,V]}],"backdrop-saturate":[{"backdrop-saturate":[se,B,V]}],"backdrop-sepia":[{"backdrop-sepia":["",se,B,V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",B,V]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[se,"initial",B,V]}],ease:[{ease:["linear","initial",b,B,V]}],delay:[{delay:[se,B,V]}],animate:[{animate:["none",x,B,V]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,B,V]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":["scale-3d"],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[B,V,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"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",B,V]}],"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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",B,V]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[se,Ut,ct,hn]}],stroke:[{stroke:["none",...k()]}],"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"]}},Id=pd(_d);function I(...e){return Id(ua(e))}const wa=Fr("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none cursor-pointer",{variants:{variant:{default:"bg-fill-action-emphasis-idle text-action-on-emphasis-idle hover:bg-fill-action-emphasis-hover active:bg-fill-action-emphasis-active disabled:bg-fill-action-emphasis-disabled",secondary:"bg-fill-action-neutral-idle text-text-action-neutral-idle hover:bg-fill-action-neutral-hover active:bg-fill-action-neutral-active disabled:bg-fill-action-neutral-disabled disabled:text-text-action-neutral-disabled",outline:"border border-border-action-neutral-idle text-text-action-neutral-idle hover:bg-fill-action-neutral-hover active:bg-fill-action-neutral-active disabled:bg-none disabled:text-text-action-neutral-disabled",ghost:"text-text-action-neutral-idle hover:text-text-action-neutral-hover active:bg-fill-action-neutral-active disabled:bg-none disabled:text-text-action-neutral-disabled",link:"text-text-action-emphasis-idle hover:text-text-action-emphasis-hover active:bg-fill-action-emphasis-active disabled:bg-none disabled:text-text-action-emphasis-disabled",danger:"border border-border-action-negative-idle text-icon-action-negative-idle hover:bg-fill-action-negative-hover active:bg-fill-action-negative-active disabled-border-action-negative-disabled"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),It=d.forwardRef(({className:e,variant:t,size:r,...n},o)=>l.jsx("button",{className:I(wa({variant:t,size:r,className:e})),ref:o,...n}));It.displayName="Button";const Od=Fr("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground border-input flex h-9 w-full min-w-0 rounded-md border bg-background px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:dark:border-transparent disabled:opacity-50 md:text-sm dark:border-input dark:bg-background dark:text-foreground dark:placeholder:text-muted-foreground",{variants:{variant:{default:"bg-purple-mutted-700 border-purple-mutted-500 text-purple-mutted-300 text-sm",secondary:"bg-secondary border-secondary text-secondary-foreground placeholder:text-muted-foreground dark:bg-secondary dark:border-secondary dark:text-secondary-foreground dark:placeholder:text-muted-foreground",accent:"bg-accent border-accent text-accent-foreground placeholder:text-muted-foreground dark:bg-accent dark:border-accent dark:text-accent-foreground dark:placeholder:text-muted-foreground",success:"bg-success border-success text-success-foreground placeholder:text-success-foreground/70 dark:bg-success dark:border-success dark:text-success-foreground dark:placeholder:text-success-foreground/70",warning:"bg-warning border-warning text-warning-foreground placeholder:text-warning-foreground/70 dark:bg-warning dark:border-warning dark:text-warning-foreground dark:placeholder:text-warning-foreground/70",destructive:"border-destructive bg-purple-mutted-700 text-purple-mutted-200 placeholder:text-destructive-foreground/70 dark:border-destructive dark:placeholder:text-destructive-foreground/70"}},defaultVariants:{variant:"default"}});function to({className:e,variant:t,type:r,error:n,...o}){const s=n?"destructive":t;return l.jsx("input",{type:r,"data-slot":"input",className:I(Od({variant:s,className:e})),...o})}function hs(e,[t,r]){return Math.min(r,Math.max(t,e))}function J(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Md(e,t){const r=d.createContext(t),n=s=>{const{children:a,...i}=s,c=d.useMemo(()=>i,Object.values(i));return l.jsx(r.Provider,{value:c,children:a})};n.displayName=e+"Provider";function o(s){const a=d.useContext(r);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[n,o]}function Ne(e,t=[]){let r=[];function n(s,a){const i=d.createContext(a),c=r.length;r=[...r,a];const u=p=>{var b;const{scope:h,children:m,...w}=p,g=((b=h==null?void 0:h[e])==null?void 0:b[c])||i,v=d.useMemo(()=>w,Object.values(w));return l.jsx(g.Provider,{value:v,children:m})};u.displayName=s+"Provider";function f(p,h){var g;const m=((g=h==null?void 0:h[e])==null?void 0:g[c])||i,w=d.useContext(m);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=r.map(a=>d.createContext(a));return function(i){const c=(i==null?void 0:i[e])||s;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[n,Dd(o,...t)]}function Dd(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=n.reduce((i,{useScope:c,scopeName:u})=>{const p=c(s)[`__scope${u}`];return{...i,...p}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function vs(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dt(...e){return t=>{let r=!1;const n=e.map(o=>{const s=vs(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<n.length;o++){const s=n[o];typeof s=="function"?s():vs(e[o],null)}}}}function de(...e){return d.useCallback(dt(...e),e)}function ft(e){const t=$d(e),r=d.forwardRef((n,o)=>{const{children:s,...a}=n,i=d.Children.toArray(s),c=i.find(Vd);if(c){const u=c.props.children,f=i.map(p=>p===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:p);return l.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return l.jsx(t,{...a,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}var Ld=ft("Slot");function $d(e){const t=d.forwardRef((r,n)=>{const{children:o,...s}=r;if(d.isValidElement(o)){const a=Wd(o),i=Bd(s,o.props);return o.type!==d.Fragment&&(i.ref=n?dt(n,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ca=Symbol("radix.slottable");function Fd(e){const t=({children:r})=>l.jsx(l.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Ca,t}function Vd(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ca}function Bd(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function Wd(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function ro(e){const t=e+"CollectionProvider",[r,n]=Ne(t),[o,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=g=>{const{scope:v,children:b}=g,x=S.useRef(null),C=S.useRef(new Map).current;return l.jsx(o,{scope:v,itemMap:C,collectionRef:x,children:b})};a.displayName=t;const i=e+"CollectionSlot",c=ft(i),u=S.forwardRef((g,v)=>{const{scope:b,children:x}=g,C=s(i,b),E=de(v,C.collectionRef);return l.jsx(c,{ref:E,children:x})});u.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",h=ft(f),m=S.forwardRef((g,v)=>{const{scope:b,children:x,...C}=g,E=S.useRef(null),R=de(v,E),j=s(f,b);return S.useEffect(()=>(j.itemMap.set(E,{ref:E,...C}),()=>void j.itemMap.delete(E))),l.jsx(h,{[p]:"",ref:R,children:x})});m.displayName=f;function w(g){const v=s(e+"CollectionConsumer",g);return S.useCallback(()=>{const x=v.collectionRef.current;if(!x)return[];const C=Array.from(x.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((j,A)=>C.indexOf(j.ref.current)-C.indexOf(A.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:u,ItemSlot:m},w,n]}var zd=d.createContext(void 0);function Vr(e){const t=d.useContext(zd);return e||t||"ltr"}var Hd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K=Hd.reduce((e,t)=>{const r=ft(`Primitive.${t}`),n=d.forwardRef((o,s)=>{const{asChild:a,...i}=o,c=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...i,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Gd(e,t){e&&$r.flushSync(()=>e.dispatchEvent(t))}function et(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Ud(e,t=globalThis==null?void 0:globalThis.document){const r=et(e);d.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Kd="DismissableLayer",Dn="dismissableLayer.update",Yd="dismissableLayer.pointerDownOutside",qd="dismissableLayer.focusOutside",xs,Sa=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),nr=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...c}=e,u=d.useContext(Sa),[f,p]=d.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=d.useState({}),w=de(t,A=>p(A)),g=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(v),x=f?g.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,E=x>=b,R=Jd(A=>{const N=A.target,G=[...u.branches].some(Y=>Y.contains(N));!E||G||(o==null||o(A),a==null||a(A),A.defaultPrevented||i==null||i())},h),j=Qd(A=>{const N=A.target;[...u.branches].some(Y=>Y.contains(N))||(s==null||s(A),a==null||a(A),A.defaultPrevented||i==null||i())},h);return Ud(A=>{x===u.layers.size-1&&(n==null||n(A),!A.defaultPrevented&&i&&(A.preventDefault(),i()))},h),d.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(xs=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),bs(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=xs)}},[f,h,r,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),bs())},[f,u]),d.useEffect(()=>{const A=()=>m({});return document.addEventListener(Dn,A),()=>document.removeEventListener(Dn,A)},[]),l.jsx(K.div,{...c,ref:w,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,j.onFocusCapture),onBlurCapture:J(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,R.onPointerDownCapture)})});nr.displayName=Kd;var Xd="DismissableLayerBranch",Zd=d.forwardRef((e,t)=>{const r=d.useContext(Sa),n=d.useRef(null),o=de(t,n);return d.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),l.jsx(K.div,{...e,ref:o})});Zd.displayName=Xd;function Jd(e,t=globalThis==null?void 0:globalThis.document){const r=et(e),n=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const s=i=>{if(i.target&&!n.current){let c=function(){Ea(Yd,r,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Qd(e,t=globalThis==null?void 0:globalThis.document){const r=et(e),n=d.useRef(!1);return d.useEffect(()=>{const o=s=>{s.target&&!n.current&&Ea(qd,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function bs(){const e=new CustomEvent(Dn);document.dispatchEvent(e)}function Ea(e,t,r,{discrete:n}){const o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Gd(o,s):o.dispatchEvent(s)}var vn=0;function no(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ys()),document.body.insertAdjacentElement("beforeend",e[1]??ys()),vn++,()=>{vn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),vn--}},[])}function ys(){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 xn="focusScope.autoFocusOnMount",bn="focusScope.autoFocusOnUnmount",ws={bubbles:!1,cancelable:!0},ef="FocusScope",Br=d.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,c]=d.useState(null),u=et(o),f=et(s),p=d.useRef(null),h=de(t,g=>c(g)),m=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(n){let g=function(C){if(m.paused||!i)return;const E=C.target;i.contains(E)?p.current=E:Qe(p.current,{select:!0})},v=function(C){if(m.paused||!i)return;const E=C.relatedTarget;E!==null&&(i.contains(E)||Qe(p.current,{select:!0}))},b=function(C){if(document.activeElement===document.body)for(const R of C)R.removedNodes.length>0&&Qe(i)};document.addEventListener("focusin",g),document.addEventListener("focusout",v);const x=new MutationObserver(b);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",v),x.disconnect()}}},[n,i,m.paused]),d.useEffect(()=>{if(i){Ss.add(m);const g=document.activeElement;if(!i.contains(g)){const b=new CustomEvent(xn,ws);i.addEventListener(xn,u),i.dispatchEvent(b),b.defaultPrevented||(tf(af(ka(i)),{select:!0}),document.activeElement===g&&Qe(i))}return()=>{i.removeEventListener(xn,u),setTimeout(()=>{const b=new CustomEvent(bn,ws);i.addEventListener(bn,f),i.dispatchEvent(b),b.defaultPrevented||Qe(g??document.body,{select:!0}),i.removeEventListener(bn,f),Ss.remove(m)},0)}}},[i,u,f,m]);const w=d.useCallback(g=>{if(!r&&!n||m.paused)return;const v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,b=document.activeElement;if(v&&b){const x=g.currentTarget,[C,E]=rf(x);C&&E?!g.shiftKey&&b===E?(g.preventDefault(),r&&Qe(C,{select:!0})):g.shiftKey&&b===C&&(g.preventDefault(),r&&Qe(E,{select:!0})):b===x&&g.preventDefault()}},[r,n,m.paused]);return l.jsx(K.div,{tabIndex:-1,...a,ref:h,onKeyDown:w})});Br.displayName=ef;function tf(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Qe(n,{select:t}),document.activeElement!==r)return}function rf(e){const t=ka(e),r=Cs(t,e),n=Cs(t.reverse(),e);return[r,n]}function ka(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Cs(e,t){for(const r of e)if(!nf(r,{upTo:t}))return r}function nf(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 of(e){return e instanceof HTMLInputElement&&"select"in e}function Qe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&of(e)&&t&&e.select()}}var Ss=sf();function sf(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Es(e,t),e.unshift(t)},remove(t){var r;e=Es(e,t),(r=e[0])==null||r.resume()}}}function Es(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function af(e){return e.filter(t=>t.tagName!=="A")}var ve=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},lf=d[" useId ".trim().toString()]||(()=>{}),cf=0;function he(e){const[t,r]=d.useState(lf());return ve(()=>{r(n=>n??String(cf++))},[e]),t?`radix-${t}`:""}const uf=["top","right","bottom","left"],tt=Math.min,Se=Math.max,Pr=Math.round,hr=Math.floor,Be=e=>({x:e,y:e}),df={left:"right",right:"left",bottom:"top",top:"bottom"},ff={start:"end",end:"start"};function Ln(e,t,r){return Se(e,tt(t,r))}function Ke(e,t){return typeof e=="function"?e(t):e}function Ye(e){return e.split("-")[0]}function Ft(e){return e.split("-")[1]}function oo(e){return e==="x"?"y":"x"}function so(e){return e==="y"?"height":"width"}const pf=new Set(["top","bottom"]);function Ve(e){return pf.has(Ye(e))?"y":"x"}function ao(e){return oo(Ve(e))}function mf(e,t,r){r===void 0&&(r=!1);const n=Ft(e),o=ao(e),s=so(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Rr(a)),[a,Rr(a)]}function gf(e){const t=Rr(e);return[$n(e),t,$n(t)]}function $n(e){return e.replace(/start|end/g,t=>ff[t])}const ks=["left","right"],Ps=["right","left"],hf=["top","bottom"],vf=["bottom","top"];function xf(e,t,r){switch(e){case"top":case"bottom":return r?t?Ps:ks:t?ks:Ps;case"left":case"right":return t?hf:vf;default:return[]}}function bf(e,t,r,n){const o=Ft(e);let s=xf(Ye(e),r==="start",n);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map($n)))),s}function Rr(e){return e.replace(/left|right|bottom|top/g,t=>df[t])}function yf(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pa(e){return typeof e!="number"?yf(e):{top:e,right:e,bottom:e,left:e}}function Nr(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Rs(e,t,r){let{reference:n,floating:o}=e;const s=Ve(t),a=ao(t),i=so(a),c=Ye(t),u=s==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,h=n[i]/2-o[i]/2;let m;switch(c){case"top":m={x:f,y:n.y-o.height};break;case"bottom":m={x:f,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:p};break;case"left":m={x:n.x-o.width,y:p};break;default:m={x:n.x,y:n.y}}switch(Ft(t)){case"start":m[a]-=h*(r&&u?-1:1);break;case"end":m[a]+=h*(r&&u?-1:1);break}return m}const wf=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:a}=r,i=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Rs(u,n,c),h=n,m={},w=0;for(let g=0;g<i.length;g++){const{name:v,fn:b}=i[g],{x,y:C,data:E,reset:R}=await b({x:f,y:p,initialPlacement:n,placement:h,strategy:o,middlewareData:m,rects:u,platform:a,elements:{reference:e,floating:t}});f=x??f,p=C??p,m={...m,[v]:{...m[v],...E}},R&&w<=50&&(w++,typeof R=="object"&&(R.placement&&(h=R.placement),R.rects&&(u=R.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:f,y:p}=Rs(u,h,c)),g=-1)}return{x:f,y:p,placement:h,strategy:o,middlewareData:m}};async function Qt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:s,rects:a,elements:i,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:m=0}=Ke(t,e),w=Pa(m),v=i[h?p==="floating"?"reference":"floating":p],b=Nr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(v)))==null||r?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:u,rootBoundary:f,strategy:c})),x=p==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),E=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},R=Nr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:C,strategy:c}):x);return{top:(b.top-R.top+w.top)/E.y,bottom:(R.bottom-b.bottom+w.bottom)/E.y,left:(b.left-R.left+w.left)/E.x,right:(R.right-b.right+w.right)/E.x}}const Cf=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:s,platform:a,elements:i,middlewareData:c}=t,{element:u,padding:f=0}=Ke(e,t)||{};if(u==null)return{};const p=Pa(f),h={x:r,y:n},m=ao(o),w=so(m),g=await a.getDimensions(u),v=m==="y",b=v?"top":"left",x=v?"bottom":"right",C=v?"clientHeight":"clientWidth",E=s.reference[w]+s.reference[m]-h[m]-s.floating[w],R=h[m]-s.reference[m],j=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let A=j?j[C]:0;(!A||!await(a.isElement==null?void 0:a.isElement(j)))&&(A=i.floating[C]||s.floating[w]);const N=E/2-R/2,G=A/2-g[w]/2-1,Y=tt(p[b],G),ee=tt(p[x],G),Q=Y,q=A-g[w]-ee,W=A/2-g[w]/2+N,M=Ln(Q,W,q),T=!c.arrow&&Ft(o)!=null&&W!==M&&s.reference[w]/2-(W<Q?Y:ee)-g[w]/2<0,D=T?W<Q?W-Q:W-q:0;return{[m]:h[m]+D,data:{[m]:M,centerOffset:W-M-D,...T&&{alignmentOffset:D}},reset:T}}}),Sf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:g=!0,...v}=Ke(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const b=Ye(o),x=Ve(i),C=Ye(i)===i,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),R=h||(C||!g?[Rr(i)]:gf(i)),j=w!=="none";!h&&j&&R.push(...bf(i,g,w,E));const A=[i,...R],N=await Qt(t,v),G=[];let Y=((n=s.flip)==null?void 0:n.overflows)||[];if(f&&G.push(N[b]),p){const W=mf(o,a,E);G.push(N[W[0]],N[W[1]])}if(Y=[...Y,{placement:o,overflows:G}],!G.every(W=>W<=0)){var ee,Q;const W=(((ee=s.flip)==null?void 0:ee.index)||0)+1,M=A[W];if(M&&(!(p==="alignment"?x!==Ve(M):!1)||Y.every(k=>Ve(k.placement)===x?k.overflows[0]>0:!0)))return{data:{index:W,overflows:Y},reset:{placement:M}};let T=(Q=Y.filter(D=>D.overflows[0]<=0).sort((D,k)=>D.overflows[1]-k.overflows[1])[0])==null?void 0:Q.placement;if(!T)switch(m){case"bestFit":{var q;const D=(q=Y.filter(k=>{if(j){const H=Ve(k.placement);return H===x||H==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(H=>H>0).reduce((H,U)=>H+U,0)]).sort((k,H)=>k[1]-H[1])[0])==null?void 0:q[0];D&&(T=D);break}case"initialPlacement":T=i;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function Ns(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ts(e){return uf.some(t=>e[t]>=0)}const Ef=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ke(e,t);switch(n){case"referenceHidden":{const s=await Qt(t,{...o,elementContext:"reference"}),a=Ns(s,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ts(a)}}}case"escaped":{const s=await Qt(t,{...o,altBoundary:!0}),a=Ns(s,r.floating);return{data:{escapedOffsets:a,escaped:Ts(a)}}}default:return{}}}}},Ra=new Set(["left","top"]);async function kf(e,t){const{placement:r,platform:n,elements:o}=e,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Ye(r),i=Ft(r),c=Ve(r)==="y",u=Ra.has(a)?-1:1,f=s&&c?-1:1,p=Ke(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof w=="number"&&(m=i==="end"?w*-1:w),c?{x:m*f,y:h*u}:{x:h*u,y:m*f}}const Pf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:s,placement:a,middlewareData:i}=t,c=await kf(t,e);return a===((r=i.offset)==null?void 0:r.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:a}}}}},Rf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:v=>{let{x:b,y:x}=v;return{x:b,y:x}}},...c}=Ke(e,t),u={x:r,y:n},f=await Qt(t,c),p=Ve(Ye(o)),h=oo(p);let m=u[h],w=u[p];if(s){const v=h==="y"?"top":"left",b=h==="y"?"bottom":"right",x=m+f[v],C=m-f[b];m=Ln(x,m,C)}if(a){const v=p==="y"?"top":"left",b=p==="y"?"bottom":"right",x=w+f[v],C=w-f[b];w=Ln(x,w,C)}const g=i.fn({...t,[h]:m,[p]:w});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[h]:s,[p]:a}}}}}},Nf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:c=!0,crossAxis:u=!0}=Ke(e,t),f={x:r,y:n},p=Ve(o),h=oo(p);let m=f[h],w=f[p];const g=Ke(i,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const C=h==="y"?"height":"width",E=s.reference[h]-s.floating[C]+v.mainAxis,R=s.reference[h]+s.reference[C]-v.mainAxis;m<E?m=E:m>R&&(m=R)}if(u){var b,x;const C=h==="y"?"width":"height",E=Ra.has(Ye(o)),R=s.reference[p]-s.floating[C]+(E&&((b=a.offset)==null?void 0:b[p])||0)+(E?0:v.crossAxis),j=s.reference[p]+s.reference[C]+(E?0:((x=a.offset)==null?void 0:x[p])||0)-(E?v.crossAxis:0);w<R?w=R:w>j&&(w=j)}return{[h]:m,[p]:w}}}},Tf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:c=()=>{},...u}=Ke(e,t),f=await Qt(t,u),p=Ye(o),h=Ft(o),m=Ve(o)==="y",{width:w,height:g}=s.floating;let v,b;p==="top"||p==="bottom"?(v=p,b=h===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(b=p,v=h==="end"?"top":"bottom");const x=g-f.top-f.bottom,C=w-f.left-f.right,E=tt(g-f[v],x),R=tt(w-f[b],C),j=!t.middlewareData.shift;let A=E,N=R;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(N=C),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(A=x),j&&!h){const Y=Se(f.left,0),ee=Se(f.right,0),Q=Se(f.top,0),q=Se(f.bottom,0);m?N=w-2*(Y!==0||ee!==0?Y+ee:Se(f.left,f.right)):A=g-2*(Q!==0||q!==0?Q+q:Se(f.top,f.bottom))}await c({...t,availableWidth:N,availableHeight:A});const G=await a.getDimensions(i.floating);return w!==G.width||g!==G.height?{reset:{rects:!0}}:{}}}};function Wr(){return typeof window<"u"}function Vt(e){return Na(e)?(e.nodeName||"").toLowerCase():"#document"}function Ee(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ze(e){var t;return(t=(Na(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Na(e){return Wr()?e instanceof Node||e instanceof Ee(e).Node:!1}function Ae(e){return Wr()?e instanceof Element||e instanceof Ee(e).Element:!1}function We(e){return Wr()?e instanceof HTMLElement||e instanceof Ee(e).HTMLElement:!1}function js(e){return!Wr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ee(e).ShadowRoot}const jf=new Set(["inline","contents"]);function or(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=_e(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!jf.has(o)}const Af=new Set(["table","td","th"]);function _f(e){return Af.has(Vt(e))}const If=[":popover-open",":modal"];function zr(e){return If.some(t=>{try{return e.matches(t)}catch{return!1}})}const Of=["transform","translate","scale","rotate","perspective"],Mf=["transform","translate","scale","rotate","perspective","filter"],Df=["paint","layout","strict","content"];function io(e){const t=lo(),r=Ae(e)?_e(e):e;return Of.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Mf.some(n=>(r.willChange||"").includes(n))||Df.some(n=>(r.contain||"").includes(n))}function Lf(e){let t=rt(e);for(;We(t)&&!Ot(t);){if(io(t))return t;if(zr(t))return null;t=rt(t)}return null}function lo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const $f=new Set(["html","body","#document"]);function Ot(e){return $f.has(Vt(e))}function _e(e){return Ee(e).getComputedStyle(e)}function Hr(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rt(e){if(Vt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||js(e)&&e.host||ze(e);return js(t)?t.host:t}function Ta(e){const t=rt(e);return Ot(t)?e.ownerDocument?e.ownerDocument.body:e.body:We(t)&&or(t)?t:Ta(t)}function er(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Ta(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),a=Ee(o);if(s){const i=Fn(a);return t.concat(a,a.visualViewport||[],or(o)?o:[],i&&r?er(i):[])}return t.concat(o,er(o,[],r))}function Fn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ja(e){const t=_e(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=We(e),s=o?e.offsetWidth:r,a=o?e.offsetHeight:n,i=Pr(r)!==s||Pr(n)!==a;return i&&(r=s,n=a),{width:r,height:n,$:i}}function co(e){return Ae(e)?e:e.contextElement}function At(e){const t=co(e);if(!We(t))return Be(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:s}=ja(t);let a=(s?Pr(r.width):r.width)/n,i=(s?Pr(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Ff=Be(0);function Aa(e){const t=Ee(e);return!lo()||!t.visualViewport?Ff:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vf(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ee(e)?!1:t}function pt(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),s=co(e);let a=Be(1);t&&(n?Ae(n)&&(a=At(n)):a=At(e));const i=Vf(s,r,n)?Aa(s):Be(0);let c=(o.left+i.x)/a.x,u=(o.top+i.y)/a.y,f=o.width/a.x,p=o.height/a.y;if(s){const h=Ee(s),m=n&&Ae(n)?Ee(n):n;let w=h,g=Fn(w);for(;g&&n&&m!==w;){const v=At(g),b=g.getBoundingClientRect(),x=_e(g),C=b.left+(g.clientLeft+parseFloat(x.paddingLeft))*v.x,E=b.top+(g.clientTop+parseFloat(x.paddingTop))*v.y;c*=v.x,u*=v.y,f*=v.x,p*=v.y,c+=C,u+=E,w=Ee(g),g=Fn(w)}}return Nr({width:f,height:p,x:c,y:u})}function Gr(e,t){const r=Hr(e).scrollLeft;return t?t.left+r:pt(ze(e)).left+r}function _a(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Gr(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Bf(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const s=o==="fixed",a=ze(n),i=t?zr(t.floating):!1;if(n===a||i&&s)return r;let c={scrollLeft:0,scrollTop:0},u=Be(1);const f=Be(0),p=We(n);if((p||!p&&!s)&&((Vt(n)!=="body"||or(a))&&(c=Hr(n)),We(n))){const m=pt(n);u=At(n),f.x=m.x+n.clientLeft,f.y=m.y+n.clientTop}const h=a&&!p&&!s?_a(a,c):Be(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+f.x+h.x,y:r.y*u.y-c.scrollTop*u.y+f.y+h.y}}function Wf(e){return Array.from(e.getClientRects())}function zf(e){const t=ze(e),r=Hr(e),n=e.ownerDocument.body,o=Se(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=Se(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Gr(e);const i=-r.scrollTop;return _e(n).direction==="rtl"&&(a+=Se(t.clientWidth,n.clientWidth)-o),{width:o,height:s,x:a,y:i}}const As=25;function Hf(e,t){const r=Ee(e),n=ze(e),o=r.visualViewport;let s=n.clientWidth,a=n.clientHeight,i=0,c=0;if(o){s=o.width,a=o.height;const f=lo();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const u=Gr(n);if(u<=0){const f=n.ownerDocument,p=f.body,h=getComputedStyle(p),m=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,w=Math.abs(n.clientWidth-p.clientWidth-m);w<=As&&(s-=w)}else u<=As&&(s+=u);return{width:s,height:a,x:i,y:c}}const Gf=new Set(["absolute","fixed"]);function Uf(e,t){const r=pt(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,s=We(e)?At(e):Be(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,c=o*s.x,u=n*s.y;return{width:a,height:i,x:c,y:u}}function _s(e,t,r){let n;if(t==="viewport")n=Hf(e,r);else if(t==="document")n=zf(ze(e));else if(Ae(t))n=Uf(t,r);else{const o=Aa(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Nr(n)}function Ia(e,t){const r=rt(e);return r===t||!Ae(r)||Ot(r)?!1:_e(r).position==="fixed"||Ia(r,t)}function Kf(e,t){const r=t.get(e);if(r)return r;let n=er(e,[],!1).filter(i=>Ae(i)&&Vt(i)!=="body"),o=null;const s=_e(e).position==="fixed";let a=s?rt(e):e;for(;Ae(a)&&!Ot(a);){const i=_e(a),c=io(a);!c&&i.position==="fixed"&&(o=null),(s?!c&&!o:!c&&i.position==="static"&&!!o&&Gf.has(o.position)||or(a)&&!c&&Ia(e,a))?n=n.filter(f=>f!==a):o=i,a=rt(a)}return t.set(e,n),n}function Yf(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?zr(t)?[]:Kf(t,this._c):[].concat(r),n],i=a[0],c=a.reduce((u,f)=>{const p=_s(t,f,o);return u.top=Se(p.top,u.top),u.right=tt(p.right,u.right),u.bottom=tt(p.bottom,u.bottom),u.left=Se(p.left,u.left),u},_s(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function qf(e){const{width:t,height:r}=ja(e);return{width:t,height:r}}function Xf(e,t,r){const n=We(t),o=ze(t),s=r==="fixed",a=pt(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const c=Be(0);function u(){c.x=Gr(o)}if(n||!n&&!s)if((Vt(t)!=="body"||or(o))&&(i=Hr(t)),n){const m=pt(t,!0,s,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&u();s&&!n&&o&&u();const f=o&&!n&&!s?_a(o,i):Be(0),p=a.left+i.scrollLeft-c.x-f.x,h=a.top+i.scrollTop-c.y-f.y;return{x:p,y:h,width:a.width,height:a.height}}function yn(e){return _e(e).position==="static"}function Is(e,t){if(!We(e)||_e(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ze(e)===r&&(r=r.ownerDocument.body),r}function Oa(e,t){const r=Ee(e);if(zr(e))return r;if(!We(e)){let o=rt(e);for(;o&&!Ot(o);){if(Ae(o)&&!yn(o))return o;o=rt(o)}return r}let n=Is(e,t);for(;n&&_f(n)&&yn(n);)n=Is(n,t);return n&&Ot(n)&&yn(n)&&!io(n)?r:n||Lf(e)||r}const Zf=async function(e){const t=this.getOffsetParent||Oa,r=this.getDimensions,n=await r(e.floating);return{reference:Xf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Jf(e){return _e(e).direction==="rtl"}const Qf={convertOffsetParentRelativeRectToViewportRelativeRect:Bf,getDocumentElement:ze,getClippingRect:Yf,getOffsetParent:Oa,getElementRects:Zf,getClientRects:Wf,getDimensions:qf,getScale:At,isElement:Ae,isRTL:Jf};function Ma(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ep(e,t){let r=null,n;const o=ze(e);function s(){var i;clearTimeout(n),(i=r)==null||i.disconnect(),r=null}function a(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:f,top:p,width:h,height:m}=u;if(i||t(),!h||!m)return;const w=hr(p),g=hr(o.clientWidth-(f+h)),v=hr(o.clientHeight-(p+m)),b=hr(f),C={rootMargin:-w+"px "+-g+"px "+-v+"px "+-b+"px",threshold:Se(0,tt(1,c))||1};let E=!0;function R(j){const A=j[0].intersectionRatio;if(A!==c){if(!E)return a();A?a(!1,A):n=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!Ma(u,e.getBoundingClientRect())&&a(),E=!1}try{r=new IntersectionObserver(R,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(R,C)}r.observe(e)}return a(!0),s}function tp(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=co(e),f=o||s?[...u?er(u):[],...er(t)]:[];f.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),s&&b.addEventListener("resize",r)});const p=u&&i?ep(u,r):null;let h=-1,m=null;a&&(m=new ResizeObserver(b=>{let[x]=b;x&&x.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),r()}),u&&!c&&m.observe(u),m.observe(t));let w,g=c?pt(e):null;c&&v();function v(){const b=pt(e);g&&!Ma(g,b)&&r(),g=b,w=requestAnimationFrame(v)}return r(),()=>{var b;f.forEach(x=>{o&&x.removeEventListener("scroll",r),s&&x.removeEventListener("resize",r)}),p==null||p(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(w)}}const rp=Pf,np=Rf,op=Sf,sp=Tf,ap=Ef,Os=Cf,ip=Nf,lp=(e,t,r)=>{const n=new Map,o={platform:Qf,...r},s={...o.platform,_c:n};return wf(e,t,{...o,platform:s})};var cp=typeof document<"u",up=function(){},Cr=cp?S.useLayoutEffect:up;function Tr(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Tr(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const s=o[n];if(!(s==="_owner"&&e.$$typeof)&&!Tr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Da(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ms(e,t){const r=Da(e);return Math.round(t*r)/r}function wn(e){const t=d.useRef(e);return Cr(()=>{t.current=e}),t}function dp(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:c,open:u}=e,[f,p]=d.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=d.useState(n);Tr(h,n)||m(n);const[w,g]=d.useState(null),[v,b]=d.useState(null),x=d.useCallback(k=>{k!==j.current&&(j.current=k,g(k))},[]),C=d.useCallback(k=>{k!==A.current&&(A.current=k,b(k))},[]),E=s||w,R=a||v,j=d.useRef(null),A=d.useRef(null),N=d.useRef(f),G=c!=null,Y=wn(c),ee=wn(o),Q=wn(u),q=d.useCallback(()=>{if(!j.current||!A.current)return;const k={placement:t,strategy:r,middleware:h};ee.current&&(k.platform=ee.current),lp(j.current,A.current,k).then(H=>{const U={...H,isPositioned:Q.current!==!1};W.current&&!Tr(N.current,U)&&(N.current=U,$r.flushSync(()=>{p(U)}))})},[h,t,r,ee,Q]);Cr(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(k=>({...k,isPositioned:!1})))},[u]);const W=d.useRef(!1);Cr(()=>(W.current=!0,()=>{W.current=!1}),[]),Cr(()=>{if(E&&(j.current=E),R&&(A.current=R),E&&R){if(Y.current)return Y.current(E,R,q);q()}},[E,R,q,Y,G]);const M=d.useMemo(()=>({reference:j,floating:A,setReference:x,setFloating:C}),[x,C]),T=d.useMemo(()=>({reference:E,floating:R}),[E,R]),D=d.useMemo(()=>{const k={position:r,left:0,top:0};if(!T.floating)return k;const H=Ms(T.floating,f.x),U=Ms(T.floating,f.y);return i?{...k,transform:"translate("+H+"px, "+U+"px)",...Da(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:H,top:U}},[r,i,T.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:q,refs:M,elements:T,floatingStyles:D}),[f,q,M,T,D])}const fp=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Os({element:n.current,padding:o}).fn(r):{}:n?Os({element:n,padding:o}).fn(r):{}}}},pp=(e,t)=>({...rp(e),options:[e,t]}),mp=(e,t)=>({...np(e),options:[e,t]}),gp=(e,t)=>({...ip(e),options:[e,t]}),hp=(e,t)=>({...op(e),options:[e,t]}),vp=(e,t)=>({...sp(e),options:[e,t]}),xp=(e,t)=>({...ap(e),options:[e,t]}),bp=(e,t)=>({...fp(e),options:[e,t]});var yp="Arrow",La=d.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...s}=e;return l.jsx(K.svg,{...s,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});La.displayName=yp;var wp=La;function $a(e){const[t,r]=d.useState(void 0);return ve(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,i=u.blockSize}else a=e.offsetWidth,i=e.offsetHeight;r({width:a,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var uo="Popper",[Fa,Bt]=Ne(uo),[Cp,Va]=Fa(uo),Ba=e=>{const{__scopePopper:t,children:r}=e,[n,o]=d.useState(null);return l.jsx(Cp,{scope:t,anchor:n,onAnchorChange:o,children:r})};Ba.displayName=uo;var Wa="PopperAnchor",za=d.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,s=Va(Wa,r),a=d.useRef(null),i=de(t,a),c=d.useRef(null);return d.useEffect(()=>{const u=c.current;c.current=(n==null?void 0:n.current)||a.current,u!==c.current&&s.onAnchorChange(c.current)}),n?null:l.jsx(K.div,{...o,ref:i})});za.displayName=Wa;var fo="PopperContent",[Sp,Ep]=Fa(fo),Ha=d.forwardRef((e,t)=>{var O,X,ne,oe,le,ae;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:w,...g}=e,v=Va(fo,r),[b,x]=d.useState(null),C=de(t,xe=>x(xe)),[E,R]=d.useState(null),j=$a(E),A=(j==null?void 0:j.width)??0,N=(j==null?void 0:j.height)??0,G=n+(s!=="center"?"-"+s:""),Y=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},ee=Array.isArray(u)?u:[u],Q=ee.length>0,q={padding:Y,boundary:ee.filter(Pp),altBoundary:Q},{refs:W,floatingStyles:M,placement:T,isPositioned:D,middlewareData:k}=dp({strategy:"fixed",placement:G,whileElementsMounted:(...xe)=>tp(...xe,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[pp({mainAxis:o+N,alignmentAxis:a}),c&&mp({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?gp():void 0,...q}),c&&hp({...q}),vp({...q,apply:({elements:xe,rects:Pe,availableWidth:De,availableHeight:Te})=>{const{width:Ze,height:fr}=Pe.reference,Ge=xe.floating.style;Ge.setProperty("--radix-popper-available-width",`${De}px`),Ge.setProperty("--radix-popper-available-height",`${Te}px`),Ge.setProperty("--radix-popper-anchor-width",`${Ze}px`),Ge.setProperty("--radix-popper-anchor-height",`${fr}px`)}}),E&&bp({element:E,padding:i}),Rp({arrowWidth:A,arrowHeight:N}),h&&xp({strategy:"referenceHidden",...q})]}),[H,U]=Ka(T),re=et(w);ve(()=>{D&&(re==null||re())},[D,re]);const P=(O=k.arrow)==null?void 0:O.x,$=(X=k.arrow)==null?void 0:X.y,z=((ne=k.arrow)==null?void 0:ne.centerOffset)!==0,[F,te]=d.useState();return ve(()=>{b&&te(window.getComputedStyle(b).zIndex)},[b]),l.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:D?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:F,"--radix-popper-transform-origin":[(oe=k.transformOrigin)==null?void 0:oe.x,(le=k.transformOrigin)==null?void 0:le.y].join(" "),...((ae=k.hide)==null?void 0:ae.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(Sp,{scope:r,placedSide:H,onArrowChange:R,arrowX:P,arrowY:$,shouldHideArrow:z,children:l.jsx(K.div,{"data-side":H,"data-align":U,...g,ref:C,style:{...g.style,animation:D?void 0:"none"}})})})});Ha.displayName=fo;var Ga="PopperArrow",kp={top:"bottom",right:"left",bottom:"top",left:"right"},Ua=d.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,s=Ep(Ga,n),a=kp[s.placedSide];return l.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsx(wp,{...o,ref:r,style:{...o.style,display:"block"}})})});Ua.displayName=Ga;function Pp(e){return e!==null}var Rp=e=>({name:"transformOrigin",options:e,fn(t){var v,b,x;const{placement:r,rects:n,middlewareData:o}=t,a=((v=o.arrow)==null?void 0:v.centerOffset)!==0,i=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,f]=Ka(r),p={start:"0%",center:"50%",end:"100%"}[f],h=(((b=o.arrow)==null?void 0:b.x)??0)+i/2,m=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let w="",g="";return u==="bottom"?(w=a?p:`${h}px`,g=`${-c}px`):u==="top"?(w=a?p:`${h}px`,g=`${n.floating.height+c}px`):u==="right"?(w=`${-c}px`,g=a?p:`${m}px`):u==="left"&&(w=`${n.floating.width+c}px`,g=a?p:`${m}px`),{data:{x:w,y:g}}}});function Ka(e){const[t,r="center"]=e.split("-");return[t,r]}var po=Ba,Ur=za,mo=Ha,go=Ua,Np="Portal",sr=d.forwardRef((e,t)=>{var i;const{container:r,...n}=e,[o,s]=d.useState(!1);ve(()=>s(!0),[]);const a=r||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return a?rr.createPortal(l.jsx(K.div,{...n,ref:t}),a):null});sr.displayName=Np;var Tp=d[" useInsertionEffect ".trim().toString()]||ve;function ke({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,s,a]=jp({defaultProp:t,onChange:r}),i=e!==void 0,c=i?e:o;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${i?"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=i},[i,n])}const u=d.useCallback(f=>{var p;if(i){const h=Ap(f)?f(e):f;h!==e&&((p=a.current)==null||p.call(a,h))}else s(f)},[i,e,s,a]);return[c,u]}function jp({defaultProp:e,onChange:t}){const[r,n]=d.useState(e),o=d.useRef(r),s=d.useRef(t);return Tp(()=>{s.current=t},[t]),d.useEffect(()=>{var a;o.current!==r&&((a=s.current)==null||a.call(s,r),o.current=r)},[r,o]),[r,n,s]}function Ap(e){return typeof e=="function"}function Ya(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var qa=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"}),_p="VisuallyHidden",Xa=d.forwardRef((e,t)=>l.jsx(K.span,{...e,ref:t,style:{...qa,...e.style}}));Xa.displayName=_p;var Ip=Xa,Op=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},St=new WeakMap,vr=new WeakMap,xr={},Cn=0,Za=function(e){return e&&(e.host||Za(e.parentNode))},Mp=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Za(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Dp=function(e,t,r,n){var o=Mp(t,Array.isArray(e)?e:[e]);xr[r]||(xr[r]=new WeakMap);var s=xr[r],a=[],i=new Set,c=new Set(o),u=function(p){!p||i.has(p)||(i.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(h){if(i.has(h))f(h);else try{var m=h.getAttribute(n),w=m!==null&&m!=="false",g=(St.get(h)||0)+1,v=(s.get(h)||0)+1;St.set(h,g),s.set(h,v),a.push(h),g===1&&w&&vr.set(h,!0),v===1&&h.setAttribute(r,"true"),w||h.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return f(t),i.clear(),Cn++,function(){a.forEach(function(p){var h=St.get(p)-1,m=s.get(p)-1;St.set(p,h),s.set(p,m),h||(vr.has(p)||p.removeAttribute(n),vr.delete(p)),m||p.removeAttribute(r)}),Cn--,Cn||(St=new WeakMap,St=new WeakMap,vr=new WeakMap,xr={})}},ho=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Op(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Dp(n,o,r,"aria-hidden")):function(){return null}},Fe=function(){return Fe=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Fe.apply(this,arguments)};function Ja(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Lp(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}var Sr="right-scroll-bar-position",Er="width-before-scroll-bar",$p="with-scroll-bars-hidden",Fp="--removed-body-scroll-bar-size";function Sn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Vp(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Bp=typeof window<"u"?d.useLayoutEffect:d.useEffect,Ds=new WeakMap;function Wp(e,t){var r=Vp(null,function(n){return e.forEach(function(o){return Sn(o,n)})});return Bp(function(){var n=Ds.get(r);if(n){var o=new Set(n),s=new Set(e),a=r.current;o.forEach(function(i){s.has(i)||Sn(i,null)}),s.forEach(function(i){o.has(i)||Sn(i,a)})}Ds.set(r,e)},[e]),r}function zp(e){return e}function Hp(e,t){t===void 0&&(t=zp);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var a=t(s,n);return r.push(a),function(){r=r.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(n=!0;r.length;){var a=r;r=[],a.forEach(s)}r={push:function(i){return s(i)},filter:function(){return r}}},assignMedium:function(s){n=!0;var a=[];if(r.length){var i=r;r=[],i.forEach(s),a=r}var c=function(){var f=a;a=[],f.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),r}}}};return o}function Gp(e){e===void 0&&(e={});var t=Hp(null);return t.options=Fe({async:!0,ssr:!1},e),t}var Qa=function(e){var t=e.sideCar,r=Ja(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 d.createElement(n,Fe({},r))};Qa.isSideCarExport=!0;function Up(e,t){return e.useMedium(t),Qa}var ei=Gp(),En=function(){},Kr=d.forwardRef(function(e,t){var r=d.useRef(null),n=d.useState({onScrollCapture:En,onWheelCapture:En,onTouchMoveCapture:En}),o=n[0],s=n[1],a=e.forwardProps,i=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,h=e.sideCar,m=e.noRelative,w=e.noIsolation,g=e.inert,v=e.allowPinchZoom,b=e.as,x=b===void 0?"div":b,C=e.gapMode,E=Ja(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=h,j=Wp([r,t]),A=Fe(Fe({},E),o);return d.createElement(d.Fragment,null,f&&d.createElement(R,{sideCar:ei,removeScrollBar:u,shards:p,noRelative:m,noIsolation:w,inert:g,setCallbacks:s,allowPinchZoom:!!v,lockRef:r,gapMode:C}),a?d.cloneElement(d.Children.only(i),Fe(Fe({},A),{ref:j})):d.createElement(x,Fe({},A,{className:c,ref:j}),i))});Kr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Kr.classNames={fullWidth:Er,zeroRight:Sr};var Kp=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Yp(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Kp();return t&&e.setAttribute("nonce",t),e}function qp(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Xp(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Zp=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Yp())&&(qp(t,r),Xp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Jp=function(){var e=Zp();return function(t,r){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ti=function(){var e=Jp(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Qp={left:0,top:0,right:0,gap:0},kn=function(e){return parseInt(e||"",10)||0},em=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[kn(r),kn(n),kn(o)]},tm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qp;var t=em(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},rm=ti(),_t="data-scroll-locked",nm=function(e,t,r,n){var o=e.left,s=e.top,a=e.right,i=e.gap;return r===void 0&&(r="margin"),`
31
31
  .`.concat($p,` {
32
32
  overflow: hidden `).concat(n,`;
33
33
  padding-right: `).concat(i,"px ").concat(n,`;