@hari_digitus/sms-ui-library 9.0.7 → 9.0.9
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/SideNavBar.cjs.js +1 -1
- package/dist/SideNavBar.es.js +2 -1
- package/package.json +1 -1
package/dist/SideNavBar.cjs.js
CHANGED
|
@@ -56,4 +56,4 @@ Check the top-level render call using <`+g+">.")}return f}}function mt(n,f){{if(
|
|
|
56
56
|
<%s {...props} />
|
|
57
57
|
React keys must be passed directly to JSX without using spread:
|
|
58
58
|
let props = %s;
|
|
59
|
-
<%s key={someKey} {...props} />`,He,le,ur,le),gt[le+He]=!0}}return n===o?ir(Y):or(Y),Y}}function sr(n,f,g){return vt(n,f,g,!0)}function ar(n,f,g){return vt(n,f,g,!1)}var lr=ar,cr=sr;Ct.Fragment=o,Ct.jsx=lr,Ct.jsxs=cr})()),Ct}var Yr;function jo(){return Yr||(Yr=1,process.env.NODE_ENV==="production"?dr.exports=Co():dr.exports=Oo()),dr.exports}var M=jo();function vn(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=vn(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function yn(){for(var e,t,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=vn(e))&&(o&&(o+=" "),o+=t);return o}const Vr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Hr=yn,Po=(e,t)=>r=>{var o;if((t==null?void 0:t.variants)==null)return Hr(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:s}=t,a=Object.keys(i).map(d=>{const u=r==null?void 0:r[d],p=s==null?void 0:s[d];if(u===null)return null;const h=Vr(u)||Vr(p);return i[d][h]}),c=r&&Object.entries(r).reduce((d,u)=>{let[p,h]=u;return h===void 0||(d[p]=h),d},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((d,u)=>{let{class:p,className:h,...v}=u;return Object.entries(v).every(y=>{let[b,k]=y;return Array.isArray(k)?k.includes({...s,...c}[b]):{...s,...c}[b]===k})?[...d,p,h]:d},[]);return Hr(e,a,l,r==null?void 0:r.class,r==null?void 0:r.className)},Cr="-",To=e=>{const t=Do(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const s=i.split(Cr);return s[0]===""&&s.length!==1&&s.shift(),bn(s,t)||No(i)},getConflictingClassGroupIds:(i,s)=>{const a=r[i]||[];return s&&o[i]?[...a,...o[i]]:a}}},bn=(e,t)=>{var r;if(e.length===0)return t.classGroupId;const o=e[0],i=t.nextPart.get(o),s=i?bn(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;const a=e.join(Cr);return(r=t.validators.find(({validator:c})=>c(a)))==null?void 0:r.classGroupId},Gr=/^\[(.+)\]$/,No=e=>{if(Gr.test(e)){const t=Gr.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Do=e=>{const{theme:t,classGroups:r}=e,o={nextPart:new Map,validators:[]};for(const i in r)yr(r[i],o,i,t);return o},yr=(e,t,r,o)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:Xr(t,i);s.classGroupId=r;return}if(typeof i=="function"){if(Ao(i)){yr(i(o),t,r,o);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([s,a])=>{yr(a,Xr(t,s),r,o)})})},Xr=(e,t)=>{let r=e;return t.split(Cr).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Ao=e=>e.isThemeGetter,Io=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const i=(s,a)=>{r.set(s,a),t++,t>e&&(t=0,o=r,r=new Map)};return{get(s){let a=r.get(s);if(a!==void 0)return a;if((a=o.get(s))!==void 0)return i(s,a),a},set(s,a){r.has(s)?r.set(s,a):i(s,a)}}},br="!",xr=":",Lo=xr.length,$o=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=i=>{const s=[];let a=0,c=0,l=0,d;for(let y=0;y<i.length;y++){let b=i[y];if(a===0&&c===0){if(b===xr){s.push(i.slice(l,y)),l=y+Lo;continue}if(b==="/"){d=y;continue}}b==="["?a++:b==="]"?a--:b==="("?c++:b===")"&&c--}const u=s.length===0?i:i.substring(l),p=zo(u),h=p!==u,v=d&&d>l?d-l:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:v}};if(t){const i=t+xr,s=o;o=a=>a.startsWith(i)?s(a.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(r){const i=o;o=s=>r({className:s,parseClassName:i})}return o},zo=e=>e.endsWith(br)?e.substring(0,e.length-1):e.startsWith(br)?e.substring(1):e,Fo=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let i=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...i.sort(),s),i=[]):i.push(s)}),o.push(...i.sort()),o}},Mo=e=>({cache:Io(e.cacheSize),parseClassName:$o(e),sortModifiers:Fo(e),...To(e)}),Wo=/\s+/,Bo=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:i,sortModifiers:s}=t,a=[],c=e.trim().split(Wo);let l="";for(let d=c.length-1;d>=0;d-=1){const u=c[d],{isExternal:p,modifiers:h,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:b}=r(u);if(p){l=u+(l.length>0?" "+l:l);continue}let k=!!b,E=o(k?y.substring(0,b):y);if(!E){if(!k){l=u+(l.length>0?" "+l:l);continue}if(E=o(y),!E){l=u+(l.length>0?" "+l:l);continue}k=!1}const x=s(h).join(":"),T=v?x+br:x,O=T+E;if(a.includes(O))continue;a.push(O);const F=i(E,k);for(let $=0;$<F.length;++$){const A=F[$];a.push(T+A)}l=u+(l.length>0?" "+l:l)}return l};function Uo(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=xn(t))&&(o&&(o+=" "),o+=r);return o}const xn=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=xn(e[o]))&&(r&&(r+=" "),r+=t);return r};function Yo(e,...t){let r,o,i,s=a;function a(l){const d=t.reduce((u,p)=>p(u),e());return r=Mo(d),o=r.cache.get,i=r.cache.set,s=c,c(l)}function c(l){const d=o(l);if(d)return d;const u=Bo(l,r);return i(l,u),u}return function(){return s(Uo.apply(null,arguments))}}const ie=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},wn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,kn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Vo=/^\d+\/\d+$/,Ho=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Go=/\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$/,Xo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ko=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qe=e=>Vo.test(e),G=e=>!!e&&!Number.isNaN(Number(e)),Ie=e=>!!e&&Number.isInteger(Number(e)),pr=e=>e.endsWith("%")&&G(e.slice(0,-1)),Pe=e=>Ho.test(e),qo=()=>!0,Qo=e=>Go.test(e)&&!Xo.test(e),En=()=>!1,Zo=e=>Ko.test(e),ei=e=>Jo.test(e),ti=e=>!j(e)&&!P(e),ri=e=>tt(e,_n,En),j=e=>wn.test(e),Ge=e=>tt(e,Cn,Qo),mr=e=>tt(e,ai,G),Kr=e=>tt(e,Rn,En),ni=e=>tt(e,Sn,ei),Ot=e=>tt(e,On,Zo),P=e=>kn.test(e),wt=e=>rt(e,Cn),oi=e=>rt(e,li),Jr=e=>rt(e,Rn),ii=e=>rt(e,_n),si=e=>rt(e,Sn),jt=e=>rt(e,On,!0),tt=(e,t,r)=>{const o=wn.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},rt=(e,t,r=!1)=>{const o=kn.exec(e);return o?o[1]?t(o[1]):r:!1},Rn=e=>e==="position"||e==="percentage",Sn=e=>e==="image"||e==="url",_n=e=>e==="length"||e==="size"||e==="bg-size",Cn=e=>e==="length",ai=e=>e==="number",li=e=>e==="family-name",On=e=>e==="shadow",ci=()=>{const e=ie("color"),t=ie("font"),r=ie("text"),o=ie("font-weight"),i=ie("tracking"),s=ie("leading"),a=ie("breakpoint"),c=ie("container"),l=ie("spacing"),d=ie("radius"),u=ie("shadow"),p=ie("inset-shadow"),h=ie("text-shadow"),v=ie("drop-shadow"),y=ie("blur"),b=ie("perspective"),k=ie("aspect"),E=ie("ease"),x=ie("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...O(),P,j],$=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],_=()=>[P,j,l],V=()=>[qe,"full","auto",..._()],K=()=>[Ie,"none","subgrid",P,j],ne=()=>["auto",{span:["full",Ie,P,j]},Ie,P,j],q=()=>[Ie,"auto",P,j],H=()=>["auto","min","max","fr",P,j],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",..._()],U=()=>[qe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],R=()=>[e,P,j],L=()=>[...O(),Jr,Kr,{position:[P,j]}],oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ce=()=>["auto","cover","contain",ii,ri,{size:[P,j]}],ue=()=>[pr,wt,Ge],ee=()=>["","none","full",d,P,j],X=()=>["",G,wt,Ge],he=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>[G,pr,Jr,Kr],de=()=>["","none",y,P,j],pe=()=>["none",G,P,j],se=()=>["none",G,P,j],Oe=()=>[G,P,j],we=()=>[qe,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pe],breakpoint:[Pe],color:[qo],container:[Pe],"drop-shadow":[Pe],ease:["in","out","in-out"],font:[ti],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pe],shadow:[Pe],spacing:["px",G],text:[Pe],"text-shadow":[Pe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",qe,j,P,k]}],container:["container"],columns:[{columns:[G,j,P,c]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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:F()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[Ie,"auto",P,j]}],basis:[{basis:[qe,"full","auto",c,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[G,qe,"auto","initial","none",j]}],grow:[{grow:["",G,P,j]}],shrink:[{shrink:["",G,P,j]}],order:[{order:[Ie,"first","last","none",P,j]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:ne()}],"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":H()}],"auto-rows":[{"auto-rows":H()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[c,"screen",...U()]}],"min-w":[{"min-w":[c,"screen","none",...U()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[a]},...U()]}],h:[{h:["screen",...U()]}],"min-h":[{"min-h":["screen","none",...U()]}],"max-h":[{"max-h":["screen",...U()]}],"font-size":[{text:["base",r,wt,Ge]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,P,mr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",pr,j]}],"font-family":[{font:[oi,j,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:[i,P,j]}],"line-clamp":[{"line-clamp":[G,"none",P,mr]}],leading:[{leading:[s,..._()]}],"list-image":[{"list-image":["none",P,j]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[G,"from-font","auto",P,Ge]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[G,"auto",P,j]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P,j]}],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",P,j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:ce()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ie,P,j],radial:["",P,j],conic:[Ie,P,j]},si,ni]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:ue()}],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[G,P,j]}],"outline-w":[{outline:["",G,wt,Ge]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",u,jt,Ot]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",p,jt,Ot]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[G,Ge]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",h,jt,Ot]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[G,P,j]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"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":[G]}],"mask-image-linear-from-pos":[{"mask-linear-from":Z()}],"mask-image-linear-to-pos":[{"mask-linear-to":Z()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":Z()}],"mask-image-t-to-pos":[{"mask-t-to":Z()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":Z()}],"mask-image-r-to-pos":[{"mask-r-to":Z()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":Z()}],"mask-image-b-to-pos":[{"mask-b-to":Z()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":Z()}],"mask-image-l-to-pos":[{"mask-l-to":Z()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":Z()}],"mask-image-x-to-pos":[{"mask-x-to":Z()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":Z()}],"mask-image-y-to-pos":[{"mask-y-to":Z()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[P,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":Z()}],"mask-image-radial-to-pos":[{"mask-radial-to":Z()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"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":O()}],"mask-image-conic-pos":[{"mask-conic":[G]}],"mask-image-conic-from-pos":[{"mask-conic-from":Z()}],"mask-image-conic-to-pos":[{"mask-conic-to":Z()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:ce()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,j]}],filter:[{filter:["","none",P,j]}],blur:[{blur:de()}],brightness:[{brightness:[G,P,j]}],contrast:[{contrast:[G,P,j]}],"drop-shadow":[{"drop-shadow":["","none",v,jt,Ot]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",G,P,j]}],"hue-rotate":[{"hue-rotate":[G,P,j]}],invert:[{invert:["",G,P,j]}],saturate:[{saturate:[G,P,j]}],sepia:[{sepia:["",G,P,j]}],"backdrop-filter":[{"backdrop-filter":["","none",P,j]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[G,P,j]}],"backdrop-contrast":[{"backdrop-contrast":[G,P,j]}],"backdrop-grayscale":[{"backdrop-grayscale":["",G,P,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[G,P,j]}],"backdrop-invert":[{"backdrop-invert":["",G,P,j]}],"backdrop-opacity":[{"backdrop-opacity":[G,P,j]}],"backdrop-saturate":[{"backdrop-saturate":[G,P,j]}],"backdrop-sepia":[{"backdrop-sepia":["",G,P,j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,j]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[G,"initial",P,j]}],ease:[{ease:["linear","initial",E,P,j]}],delay:[{delay:[G,P,j]}],animate:[{animate:["none",x,P,j]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,P,j]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:se()}],"scale-x":[{"scale-x":se()}],"scale-y":[{"scale-y":se()}],"scale-z":[{"scale-z":se()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[P,j,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:we()}],"translate-x":[{"translate-x":we()}],"translate-y":[{"translate-y":we()}],"translate-z":[{"translate-z":we()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"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",P,j]}],"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":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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",P,j]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[G,wt,Ge,mr]}],stroke:[{stroke:["none",...R()]}],"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"]}},ui=Yo(ci);function fi(...e){return ui(yn(e))}function Te(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 qr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function jn(...e){return t=>{let r=!1;const o=e.map(i=>{const s=qr(i,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let i=0;i<o.length;i++){const s=o[i];typeof s=="function"?s():qr(e[i],null)}}}}function Je(...e){return m.useCallback(jn(...e),e)}function Pn(e,t=[]){let r=[];function o(s,a){const c=m.createContext(a),l=r.length;r=[...r,a];const d=p=>{var h;const{scope:v,children:y,...b}=p,k=((h=v==null?void 0:v[e])==null?void 0:h[l])||c,E=m.useMemo(()=>b,Object.values(b));return M.jsx(k.Provider,{value:E,children:y})};d.displayName=s+"Provider";function u(p,h){var v;const y=((v=h==null?void 0:h[e])==null?void 0:v[l])||c,b=m.useContext(y);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[d,u]}const i=()=>{const s=r.map(a=>m.createContext(a));return function(a){const c=(a==null?void 0:a[e])||s;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return i.scopeName=e,[o,di(i,...t)]}function di(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(i){const s=o.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function pi(e){const t=mi(e),r=m.forwardRef((o,i)=>{const{children:s,...a}=o,c=m.Children.toArray(s),l=c.find(gi);if(l){const d=l.props.children,u=c.map(p=>p===l?m.Children.count(d)>1?m.Children.only(null):m.isValidElement(d)?d.props.children:null:p);return M.jsx(t,{...a,ref:i,children:m.isValidElement(d)?m.cloneElement(d,void 0,u):null})}return M.jsx(t,{...a,ref:i,children:s})});return r.displayName=`${e}.Slot`,r}function mi(e){const t=m.forwardRef((r,o)=>{const{children:i,...s}=r;if(m.isValidElement(i)){const a=yi(i),c=vi(s,i.props);return i.type!==m.Fragment&&(c.ref=o?jn(o,a):a),m.cloneElement(i,c)}return m.Children.count(i)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Tn=Symbol("radix.slottable");function hi(e){const t=({children:r})=>M.jsx(M.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Tn,t}function gi(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Tn}function vi(e,t){const r={...t};for(const o in t){const i=e[o],s=t[o];/^on[A-Z]/.test(o)?i&&s?r[o]=(...a)=>{const c=s(...a);return i(...a),c}:i&&(r[o]=i):o==="style"?r[o]={...i,...s}:o==="className"&&(r[o]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}function yi(e){var t,r;let o=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?e.ref:(o=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,i=o&&"isReactWarning"in o&&o.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var bi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fe=bi.reduce((e,t)=>{const r=pi(`Primitive.${t}`),o=m.forwardRef((i,s)=>{const{asChild:a,...c}=i,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),M.jsx(l,{...c,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function xi(e,t){e&&mn.flushSync(()=>e.dispatchEvent(t))}function $t(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...r)=>{var o;return(o=t.current)==null?void 0:o.call(t,...r)},[])}function wi(e,t=globalThis==null?void 0:globalThis.document){const r=$t(e);m.useEffect(()=>{const o=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[r,t])}var ki="DismissableLayer",wr="dismissableLayer.update",Ei="dismissableLayer.pointerDownOutside",Ri="dismissableLayer.focusOutside",Qr,Nn=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dn=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,d=m.useContext(Nn),[u,p]=m.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=m.useState({}),y=Je(t,A=>p(A)),b=Array.from(d.layers),[k]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),E=b.indexOf(k),x=u?b.indexOf(u):-1,T=d.layersWithOutsidePointerEventsDisabled.size>0,O=x>=E,F=Ci(A=>{const _=A.target,V=[...d.branches].some(K=>K.contains(_));!O||V||(i==null||i(A),a==null||a(A),A.defaultPrevented||c==null||c())},h),$=Oi(A=>{const _=A.target;[...d.branches].some(V=>V.contains(_))||(s==null||s(A),a==null||a(A),A.defaultPrevented||c==null||c())},h);return wi(A=>{x===d.layers.size-1&&(o==null||o(A),!A.defaultPrevented&&c&&(A.preventDefault(),c()))},h),m.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Qr=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Zr(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Qr)}},[u,h,r,d]),m.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Zr())},[u,d]),m.useEffect(()=>{const A=()=>v({});return document.addEventListener(wr,A),()=>document.removeEventListener(wr,A)},[]),M.jsx(Fe.div,{...l,ref:y,style:{pointerEvents:T?O?"auto":"none":void 0,...e.style},onFocusCapture:Te(e.onFocusCapture,$.onFocusCapture),onBlurCapture:Te(e.onBlurCapture,$.onBlurCapture),onPointerDownCapture:Te(e.onPointerDownCapture,F.onPointerDownCapture)})});Dn.displayName=ki;var Si="DismissableLayerBranch",_i=m.forwardRef((e,t)=>{const r=m.useContext(Nn),o=m.useRef(null),i=Je(t,o);return m.useEffect(()=>{const s=o.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),M.jsx(Fe.div,{...e,ref:i})});_i.displayName=Si;function Ci(e,t=globalThis==null?void 0:globalThis.document){const r=$t(e),o=m.useRef(!1),i=m.useRef(()=>{});return m.useEffect(()=>{const s=c=>{if(c.target&&!o.current){let l=function(){An(Ei,r,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>o.current=!0}}function Oi(e,t=globalThis==null?void 0:globalThis.document){const r=$t(e),o=m.useRef(!1);return m.useEffect(()=>{const i=s=>{s.target&&!o.current&&An(Ri,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Zr(){const e=new CustomEvent(wr);document.dispatchEvent(e)}function An(e,t,r,{discrete:o}){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),o?xi(i,s):i.dispatchEvent(s)}var Le=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},ji=m[" useId ".trim().toString()]||(()=>{}),Pi=0;function Ti(e){const[t,r]=m.useState(ji());return Le(()=>{r(o=>o??String(Pi++))},[e]),t?`radix-${t}`:""}const Ni=["top","right","bottom","left"],$e=Math.min,be=Math.max,Dt=Math.round,Pt=Math.floor,_e=e=>({x:e,y:e}),Di={left:"right",right:"left",bottom:"top",top:"bottom"};function kr(e,t,r){return be(e,$e(t,r))}function Ne(e,t){return typeof e=="function"?e(t):e}function De(e){return e.split("-")[0]}function nt(e){return e.split("-")[1]}function Or(e){return e==="x"?"y":"x"}function jr(e){return e==="y"?"height":"width"}function Se(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Pr(e){return Or(Se(e))}function Ai(e,t,r){r===void 0&&(r=!1);const o=nt(e),i=Pr(e),s=jr(i);let a=i==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=At(a)),[a,At(a)]}function Ii(e){const t=At(e);return[Er(e),t,Er(t)]}function Er(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const en=["left","right"],tn=["right","left"],Li=["top","bottom"],$i=["bottom","top"];function zi(e,t,r){switch(e){case"top":case"bottom":return r?t?tn:en:t?en:tn;case"left":case"right":return t?Li:$i;default:return[]}}function Fi(e,t,r,o){const i=nt(e);let s=zi(De(e),r==="start",o);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(Er)))),s}function At(e){const t=De(e);return Di[t]+e.slice(t.length)}function Mi(e){return{top:0,right:0,bottom:0,left:0,...e}}function In(e){return typeof e!="number"?Mi(e):{top:e,right:e,bottom:e,left:e}}function It(e){const{x:t,y:r,width:o,height:i}=e;return{width:o,height:i,top:r,left:t,right:t+o,bottom:r+i,x:t,y:r}}function rn(e,t,r){let{reference:o,floating:i}=e;const s=Se(t),a=Pr(t),c=jr(a),l=De(t),d=s==="y",u=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,h=o[c]/2-i[c]/2;let v;switch(l){case"top":v={x:u,y:o.y-i.height};break;case"bottom":v={x:u,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:p};break;case"left":v={x:o.x-i.width,y:p};break;default:v={x:o.x,y:o.y}}switch(nt(t)){case"start":v[a]-=h*(r&&d?-1:1);break;case"end":v[a]+=h*(r&&d?-1:1);break}return v}async function Wi(e,t){var r;t===void 0&&(t={});const{x:o,y:i,platform:s,rects:a,elements:c,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:h=!1,padding:v=0}=Ne(t,e),y=In(v),b=c[h?p==="floating"?"reference":"floating":p],k=It(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(b)))==null||r?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:d,rootBoundary:u,strategy:l})),E=p==="floating"?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),T=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},O=It(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:E,offsetParent:x,strategy:l}):E);return{top:(k.top-O.top+y.top)/T.y,bottom:(O.bottom-k.bottom+y.bottom)/T.y,left:(k.left-O.left+y.left)/T.x,right:(O.right-k.right+y.right)/T.x}}const Bi=50,Ui=async(e,t,r)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:a}=r,c=a.detectOverflow?a:{...a,detectOverflow:Wi},l=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:p}=rn(d,o,l),h=o,v=0;const y={};for(let b=0;b<s.length;b++){const k=s[b];if(!k)continue;const{name:E,fn:x}=k,{x:T,y:O,data:F,reset:$}=await x({x:u,y:p,initialPlacement:o,placement:h,strategy:i,middlewareData:y,rects:d,platform:c,elements:{reference:e,floating:t}});u=T??u,p=O??p,y[E]={...y[E],...F},$&&v<Bi&&(v++,typeof $=="object"&&($.placement&&(h=$.placement),$.rects&&(d=$.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):$.rects),{x:u,y:p}=rn(d,h,l)),b=-1)}return{x:u,y:p,placement:h,strategy:i,middlewareData:y}},Yi=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:i,rects:s,platform:a,elements:c,middlewareData:l}=t,{element:d,padding:u=0}=Ne(e,t)||{};if(d==null)return{};const p=In(u),h={x:r,y:o},v=Pr(i),y=jr(v),b=await a.getDimensions(d),k=v==="y",E=k?"top":"left",x=k?"bottom":"right",T=k?"clientHeight":"clientWidth",O=s.reference[y]+s.reference[v]-h[v]-s.floating[y],F=h[v]-s.reference[v],$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let A=$?$[T]:0;(!A||!await(a.isElement==null?void 0:a.isElement($)))&&(A=c.floating[T]||s.floating[y]);const _=O/2-F/2,V=A/2-b[y]/2-1,K=$e(p[E],V),ne=$e(p[x],V),q=K,H=A-b[y]-ne,W=A/2-b[y]/2+_,J=kr(q,W,H),z=!l.arrow&&nt(i)!=null&&W!==J&&s.reference[y]/2-(W<q?K:ne)-b[y]/2<0,U=z?W<q?W-q:W-H:0;return{[v]:h[v]+U,data:{[v]:J,centerOffset:W-J-U,...z&&{alignmentOffset:U}},reset:z}}}),Vi=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:i,middlewareData:s,rects:a,initialPlacement:c,platform:l,elements:d}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:b=!0,...k}=Ne(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const E=De(i),x=Se(c),T=De(c)===c,O=await(l.isRTL==null?void 0:l.isRTL(d.floating)),F=h||(T||!b?[At(c)]:Ii(c)),$=y!=="none";!h&&$&&F.push(...Fi(c,b,y,O));const A=[c,...F],_=await l.detectOverflow(t,k),V=[];let K=((o=s.flip)==null?void 0:o.overflows)||[];if(u&&V.push(_[E]),p){const W=Ai(i,a,O);V.push(_[W[0]],_[W[1]])}if(K=[...K,{placement:i,overflows:V}],!V.every(W=>W<=0)){var ne,q;const W=(((ne=s.flip)==null?void 0:ne.index)||0)+1,J=A[W];if(J&&(!(p==="alignment"&&x!==Se(J))||K.every(U=>Se(U.placement)===x?U.overflows[0]>0:!0)))return{data:{index:W,overflows:K},reset:{placement:J}};let z=(q=K.filter(U=>U.overflows[0]<=0).sort((U,R)=>U.overflows[1]-R.overflows[1])[0])==null?void 0:q.placement;if(!z)switch(v){case"bestFit":{var H;const U=(H=K.filter(R=>{if($){const L=Se(R.placement);return L===x||L==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(L=>L>0).reduce((L,oe)=>L+oe,0)]).sort((R,L)=>R[1]-L[1])[0])==null?void 0:H[0];U&&(z=U);break}case"initialPlacement":z=c;break}if(i!==z)return{reset:{placement:z}}}return{}}}};function nn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function on(e){return Ni.some(t=>e[t]>=0)}const Hi=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:o}=t,{strategy:i="referenceHidden",...s}=Ne(e,t);switch(i){case"referenceHidden":{const a=await o.detectOverflow(t,{...s,elementContext:"reference"}),c=nn(a,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:on(c)}}}case"escaped":{const a=await o.detectOverflow(t,{...s,altBoundary:!0}),c=nn(a,r.floating);return{data:{escapedOffsets:c,escaped:on(c)}}}default:return{}}}}},Ln=new Set(["left","top"]);async function Gi(e,t){const{placement:r,platform:o,elements:i}=e,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),a=De(r),c=nt(r),l=Se(r)==="y",d=Ln.has(a)?-1:1,u=s&&l?-1:1,p=Ne(t,e);let{mainAxis:h,crossAxis:v,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof y=="number"&&(v=c==="end"?y*-1:y),l?{x:v*u,y:h*d}:{x:h*d,y:v*u}}const Xi=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:i,y:s,placement:a,middlewareData:c}=t,l=await Gi(t,e);return a===((r=c.offset)==null?void 0:r.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:a}}}}},Ki=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:i,platform:s}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:l={fn:E=>{let{x,y:T}=E;return{x,y:T}}},...d}=Ne(e,t),u={x:r,y:o},p=await s.detectOverflow(t,d),h=Se(De(i)),v=Or(h);let y=u[v],b=u[h];if(a){const E=v==="y"?"top":"left",x=v==="y"?"bottom":"right",T=y+p[E],O=y-p[x];y=kr(T,y,O)}if(c){const E=h==="y"?"top":"left",x=h==="y"?"bottom":"right",T=b+p[E],O=b-p[x];b=kr(T,b,O)}const k=l.fn({...t,[v]:y,[h]:b});return{...k,data:{x:k.x-r,y:k.y-o,enabled:{[v]:a,[h]:c}}}}}},Ji=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:o,placement:i,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:l=!0,crossAxis:d=!0}=Ne(e,t),u={x:r,y:o},p=Se(i),h=Or(p);let v=u[h],y=u[p];const b=Ne(c,t),k=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const T=h==="y"?"height":"width",O=s.reference[h]-s.floating[T]+k.mainAxis,F=s.reference[h]+s.reference[T]-k.mainAxis;v<O?v=O:v>F&&(v=F)}if(d){var E,x;const T=h==="y"?"width":"height",O=Ln.has(De(i)),F=s.reference[p]-s.floating[T]+(O&&((E=a.offset)==null?void 0:E[p])||0)+(O?0:k.crossAxis),$=s.reference[p]+s.reference[T]+(O?0:((x=a.offset)==null?void 0:x[p])||0)-(O?k.crossAxis:0);y<F?y=F:y>$&&(y=$)}return{[h]:v,[p]:y}}}},qi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;const{placement:i,rects:s,platform:a,elements:c}=t,{apply:l=()=>{},...d}=Ne(e,t),u=await a.detectOverflow(t,d),p=De(i),h=nt(i),v=Se(i)==="y",{width:y,height:b}=s.floating;let k,E;p==="top"||p==="bottom"?(k=p,E=h===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(E=p,k=h==="end"?"top":"bottom");const x=b-u.top-u.bottom,T=y-u.left-u.right,O=$e(b-u[k],x),F=$e(y-u[E],T),$=!t.middlewareData.shift;let A=O,_=F;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(_=T),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(A=x),$&&!h){const K=be(u.left,0),ne=be(u.right,0),q=be(u.top,0),H=be(u.bottom,0);v?_=y-2*(K!==0||ne!==0?K+ne:be(u.left,u.right)):A=b-2*(q!==0||H!==0?q+H:be(u.top,u.bottom))}await l({...t,availableWidth:_,availableHeight:A});const V=await a.getDimensions(c.floating);return y!==V.width||b!==V.height?{reset:{rects:!0}}:{}}}};function zt(){return typeof window<"u"}function ot(e){return $n(e)?(e.nodeName||"").toLowerCase():"#document"}function xe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ce(e){var t;return(t=($n(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $n(e){return zt()?e instanceof Node||e instanceof xe(e).Node:!1}function Ee(e){return zt()?e instanceof Element||e instanceof xe(e).Element:!1}function Ae(e){return zt()?e instanceof HTMLElement||e instanceof xe(e).HTMLElement:!1}function sn(e){return!zt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xe(e).ShadowRoot}function Rt(e){const{overflow:t,overflowX:r,overflowY:o,display:i}=Re(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&i!=="inline"&&i!=="contents"}function Qi(e){return/^(table|td|th)$/.test(ot(e))}function Ft(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Zi=/transform|translate|scale|rotate|perspective|filter/,es=/paint|layout|strict|content/,Xe=e=>!!e&&e!=="none";let hr;function Tr(e){const t=Ee(e)?Re(e):e;return Xe(t.transform)||Xe(t.translate)||Xe(t.scale)||Xe(t.rotate)||Xe(t.perspective)||!Nr()&&(Xe(t.backdropFilter)||Xe(t.filter))||Zi.test(t.willChange||"")||es.test(t.contain||"")}function ts(e){let t=ze(e);for(;Ae(t)&&!Ze(t);){if(Tr(t))return t;if(Ft(t))return null;t=ze(t)}return null}function Nr(){return hr==null&&(hr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),hr}function Ze(e){return/^(html|body|#document)$/.test(ot(e))}function Re(e){return xe(e).getComputedStyle(e)}function Mt(e){return Ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ze(e){if(ot(e)==="html")return e;const t=e.assignedSlot||e.parentNode||sn(e)&&e.host||Ce(e);return sn(t)?t.host:t}function zn(e){const t=ze(e);return Ze(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ae(t)&&Rt(t)?t:zn(t)}function kt(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=zn(e),s=i===((o=e.ownerDocument)==null?void 0:o.body),a=xe(i);if(s){const c=Rr(a);return t.concat(a,a.visualViewport||[],Rt(i)?i:[],c&&r?kt(c):[])}else return t.concat(i,kt(i,[],r))}function Rr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Fn(e){const t=Re(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=Ae(e),s=i?e.offsetWidth:r,a=i?e.offsetHeight:o,c=Dt(r)!==s||Dt(o)!==a;return c&&(r=s,o=a),{width:r,height:o,$:c}}function Dr(e){return Ee(e)?e:e.contextElement}function Qe(e){const t=Dr(e);if(!Ae(t))return _e(1);const r=t.getBoundingClientRect(),{width:o,height:i,$:s}=Fn(t);let a=(s?Dt(r.width):r.width)/o,c=(s?Dt(r.height):r.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const rs=_e(0);function Mn(e){const t=xe(e);return!Nr()||!t.visualViewport?rs:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ns(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==xe(e)?!1:t}function Ke(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),s=Dr(e);let a=_e(1);t&&(o?Ee(o)&&(a=Qe(o)):a=Qe(e));const c=ns(s,r,o)?Mn(s):_e(0);let l=(i.left+c.x)/a.x,d=(i.top+c.y)/a.y,u=i.width/a.x,p=i.height/a.y;if(s){const h=xe(s),v=o&&Ee(o)?xe(o):o;let y=h,b=Rr(y);for(;b&&o&&v!==y;){const k=Qe(b),E=b.getBoundingClientRect(),x=Re(b),T=E.left+(b.clientLeft+parseFloat(x.paddingLeft))*k.x,O=E.top+(b.clientTop+parseFloat(x.paddingTop))*k.y;l*=k.x,d*=k.y,u*=k.x,p*=k.y,l+=T,d+=O,y=xe(b),b=Rr(y)}}return It({width:u,height:p,x:l,y:d})}function Wt(e,t){const r=Mt(e).scrollLeft;return t?t.left+r:Ke(Ce(e)).left+r}function Wn(e,t){const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-Wt(e,r),i=r.top+t.scrollTop;return{x:o,y:i}}function os(e){let{elements:t,rect:r,offsetParent:o,strategy:i}=e;const s=i==="fixed",a=Ce(o),c=t?Ft(t.floating):!1;if(o===a||c&&s)return r;let l={scrollLeft:0,scrollTop:0},d=_e(1);const u=_e(0),p=Ae(o);if((p||!p&&!s)&&((ot(o)!=="body"||Rt(a))&&(l=Mt(o)),p)){const v=Ke(o);d=Qe(o),u.x=v.x+o.clientLeft,u.y=v.y+o.clientTop}const h=a&&!p&&!s?Wn(a,l):_e(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+u.x+h.x,y:r.y*d.y-l.scrollTop*d.y+u.y+h.y}}function is(e){return Array.from(e.getClientRects())}function ss(e){const t=Ce(e),r=Mt(e),o=e.ownerDocument.body,i=be(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=be(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-r.scrollLeft+Wt(e);const c=-r.scrollTop;return Re(o).direction==="rtl"&&(a+=be(t.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:c}}const an=25;function as(e,t){const r=xe(e),o=Ce(e),i=r.visualViewport;let s=o.clientWidth,a=o.clientHeight,c=0,l=0;if(i){s=i.width,a=i.height;const u=Nr();(!u||u&&t==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}const d=Wt(o);if(d<=0){const u=o.ownerDocument,p=u.body,h=getComputedStyle(p),v=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,y=Math.abs(o.clientWidth-p.clientWidth-v);y<=an&&(s-=y)}else d<=an&&(s+=d);return{width:s,height:a,x:c,y:l}}function ls(e,t){const r=Ke(e,!0,t==="fixed"),o=r.top+e.clientTop,i=r.left+e.clientLeft,s=Ae(e)?Qe(e):_e(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,l=i*s.x,d=o*s.y;return{width:a,height:c,x:l,y:d}}function ln(e,t,r){let o;if(t==="viewport")o=as(e,r);else if(t==="document")o=ss(Ce(e));else if(Ee(t))o=ls(t,r);else{const i=Mn(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return It(o)}function Bn(e,t){const r=ze(e);return r===t||!Ee(r)||Ze(r)?!1:Re(r).position==="fixed"||Bn(r,t)}function cs(e,t){const r=t.get(e);if(r)return r;let o=kt(e,[],!1).filter(c=>Ee(c)&&ot(c)!=="body"),i=null;const s=Re(e).position==="fixed";let a=s?ze(e):e;for(;Ee(a)&&!Ze(a);){const c=Re(a),l=Tr(a);!l&&c.position==="fixed"&&(i=null),(s?!l&&!i:!l&&c.position==="static"&&i&&(i.position==="absolute"||i.position==="fixed")||Rt(a)&&!l&&Bn(e,a))?o=o.filter(d=>d!==a):i=c,a=ze(a)}return t.set(e,o),o}function us(e){let{element:t,boundary:r,rootBoundary:o,strategy:i}=e;const s=[...r==="clippingAncestors"?Ft(t)?[]:cs(t,this._c):[].concat(r),o],a=ln(t,s[0],i);let c=a.top,l=a.right,d=a.bottom,u=a.left;for(let p=1;p<s.length;p++){const h=ln(t,s[p],i);c=be(h.top,c),l=$e(h.right,l),d=$e(h.bottom,d),u=be(h.left,u)}return{width:l-u,height:d-c,x:u,y:c}}function fs(e){const{width:t,height:r}=Fn(e);return{width:t,height:r}}function ds(e,t,r){const o=Ae(t),i=Ce(t),s=r==="fixed",a=Ke(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=_e(0);function d(){l.x=Wt(i)}if(o||!o&&!s)if((ot(t)!=="body"||Rt(i))&&(c=Mt(t)),o){const v=Ke(t,!0,s,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else i&&d();s&&!o&&i&&d();const u=i&&!o&&!s?Wn(i,c):_e(0),p=a.left+c.scrollLeft-l.x-u.x,h=a.top+c.scrollTop-l.y-u.y;return{x:p,y:h,width:a.width,height:a.height}}function gr(e){return Re(e).position==="static"}function cn(e,t){if(!Ae(e)||Re(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ce(e)===r&&(r=r.ownerDocument.body),r}function Un(e,t){const r=xe(e);if(Ft(e))return r;if(!Ae(e)){let i=ze(e);for(;i&&!Ze(i);){if(Ee(i)&&!gr(i))return i;i=ze(i)}return r}let o=cn(e,t);for(;o&&Qi(o)&&gr(o);)o=cn(o,t);return o&&Ze(o)&&gr(o)&&!Tr(o)?r:o||ts(e)||r}const ps=async function(e){const t=this.getOffsetParent||Un,r=this.getDimensions,o=await r(e.floating);return{reference:ds(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ms(e){return Re(e).direction==="rtl"}const hs={convertOffsetParentRelativeRectToViewportRelativeRect:os,getDocumentElement:Ce,getClippingRect:us,getOffsetParent:Un,getElementRects:ps,getClientRects:is,getDimensions:fs,getScale:Qe,isElement:Ee,isRTL:ms};function Yn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gs(e,t){let r=null,o;const i=Ce(e);function s(){var c;clearTimeout(o),(c=r)==null||c.disconnect(),r=null}function a(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const d=e.getBoundingClientRect(),{left:u,top:p,width:h,height:v}=d;if(c||t(),!h||!v)return;const y=Pt(p),b=Pt(i.clientWidth-(u+h)),k=Pt(i.clientHeight-(p+v)),E=Pt(u),x={rootMargin:-y+"px "+-b+"px "+-k+"px "+-E+"px",threshold:be(0,$e(1,l))||1};let T=!0;function O(F){const $=F[0].intersectionRatio;if($!==l){if(!T)return a();$?a(!1,$):o=setTimeout(()=>{a(!1,1e-7)},1e3)}$===1&&!Yn(d,e.getBoundingClientRect())&&a(),T=!1}try{r=new IntersectionObserver(O,{...x,root:i.ownerDocument})}catch{r=new IntersectionObserver(O,x)}r.observe(e)}return a(!0),s}function vs(e,t,r,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,d=Dr(e),u=i||s?[...d?kt(d):[],...t?kt(t):[]]:[];u.forEach(E=>{i&&E.addEventListener("scroll",r,{passive:!0}),s&&E.addEventListener("resize",r)});const p=d&&c?gs(d,r):null;let h=-1,v=null;a&&(v=new ResizeObserver(E=>{let[x]=E;x&&x.target===d&&v&&t&&(v.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var T;(T=v)==null||T.observe(t)})),r()}),d&&!l&&v.observe(d),t&&v.observe(t));let y,b=l?Ke(e):null;l&&k();function k(){const E=Ke(e);b&&!Yn(b,E)&&r(),b=E,y=requestAnimationFrame(k)}return r(),()=>{var E;u.forEach(x=>{i&&x.removeEventListener("scroll",r),s&&x.removeEventListener("resize",r)}),p==null||p(),(E=v)==null||E.disconnect(),v=null,l&&cancelAnimationFrame(y)}}const ys=Xi,bs=Ki,xs=Vi,ws=qi,ks=Hi,un=Yi,Es=Ji,Rs=(e,t,r)=>{const o=new Map,i={platform:hs,...r},s={...i.platform,_c:o};return Ui(e,t,{...i,platform:s})};var Ss=typeof document<"u",_s=function(){},Nt=Ss?ae.useLayoutEffect:_s;function Lt(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,o,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(o=r;o--!==0;)if(!Lt(e[o],t[o]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(t,i[o]))return!1;for(o=r;o--!==0;){const s=i[o];if(!(s==="_owner"&&e.$$typeof)&&!Lt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Vn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fn(e,t){const r=Vn(e);return Math.round(t*r)/r}function vr(e){const t=m.useRef(e);return Nt(()=>{t.current=e}),t}function Cs(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:l,open:d}=e,[u,p]=m.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,v]=m.useState(o);Lt(h,o)||v(o);const[y,b]=m.useState(null),[k,E]=m.useState(null),x=m.useCallback(R=>{R!==$.current&&($.current=R,b(R))},[]),T=m.useCallback(R=>{R!==A.current&&(A.current=R,E(R))},[]),O=s||y,F=a||k,$=m.useRef(null),A=m.useRef(null),_=m.useRef(u),V=l!=null,K=vr(l),ne=vr(i),q=vr(d),H=m.useCallback(()=>{if(!$.current||!A.current)return;const R={placement:t,strategy:r,middleware:h};ne.current&&(R.platform=ne.current),Rs($.current,A.current,R).then(L=>{const oe={...L,isPositioned:q.current!==!1};W.current&&!Lt(_.current,oe)&&(_.current=oe,mn.flushSync(()=>{p(oe)}))})},[h,t,r,ne,q]);Nt(()=>{d===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,p(R=>({...R,isPositioned:!1})))},[d]);const W=m.useRef(!1);Nt(()=>(W.current=!0,()=>{W.current=!1}),[]),Nt(()=>{if(O&&($.current=O),F&&(A.current=F),O&&F){if(K.current)return K.current(O,F,H);H()}},[O,F,H,K,V]);const J=m.useMemo(()=>({reference:$,floating:A,setReference:x,setFloating:T}),[x,T]),z=m.useMemo(()=>({reference:O,floating:F}),[O,F]),U=m.useMemo(()=>{const R={position:r,left:0,top:0};if(!z.floating)return R;const L=fn(z.floating,u.x),oe=fn(z.floating,u.y);return c?{...R,transform:"translate("+L+"px, "+oe+"px)",...Vn(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:L,top:oe}},[r,c,z.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:H,refs:J,elements:z,floatingStyles:U}),[u,H,J,z,U])}const Os=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:o,padding:i}=typeof e=="function"?e(r):e;return o&&t(o)?o.current!=null?un({element:o.current,padding:i}).fn(r):{}:o?un({element:o,padding:i}).fn(r):{}}}},js=(e,t)=>{const r=ys(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ps=(e,t)=>{const r=bs(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ts=(e,t)=>({fn:Es(e).fn,options:[e,t]}),Ns=(e,t)=>{const r=xs(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ds=(e,t)=>{const r=ws(e);return{name:r.name,fn:r.fn,options:[e,t]}},As=(e,t)=>{const r=ks(e);return{name:r.name,fn:r.fn,options:[e,t]}},Is=(e,t)=>{const r=Os(e);return{name:r.name,fn:r.fn,options:[e,t]}};var Ls="Arrow",Hn=m.forwardRef((e,t)=>{const{children:r,width:o=10,height:i=5,...s}=e;return M.jsx(Fe.svg,{...s,ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:M.jsx("polygon",{points:"0,0 30,0 15,10"})})});Hn.displayName=Ls;var $s=Hn;function zs(e){const[t,r]=m.useState(void 0);return Le(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let a,c;if("borderBoxSize"in s){const l=s.borderBoxSize,d=Array.isArray(l)?l[0]:l;a=d.inlineSize,c=d.blockSize}else a=e.offsetWidth,c=e.offsetHeight;r({width:a,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else r(void 0)},[e]),t}var Ar="Popper",[Gn,Xn]=Pn(Ar),[Fs,Kn]=Gn(Ar),Jn=e=>{const{__scopePopper:t,children:r}=e,[o,i]=m.useState(null);return M.jsx(Fs,{scope:t,anchor:o,onAnchorChange:i,children:r})};Jn.displayName=Ar;var qn="PopperAnchor",Qn=m.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:o,...i}=e,s=Kn(qn,r),a=m.useRef(null),c=Je(t,a),l=m.useRef(null);return m.useEffect(()=>{const d=l.current;l.current=(o==null?void 0:o.current)||a.current,d!==l.current&&s.onAnchorChange(l.current)}),o?null:M.jsx(Fe.div,{...i,ref:c})});Qn.displayName=qn;var Ir="PopperContent",[Ms,Ws]=Gn(Ir),Zn=m.forwardRef((e,t)=>{var r,o,i,s,a,c;const{__scopePopper:l,side:d="bottom",sideOffset:u=0,align:p="center",alignOffset:h=0,arrowPadding:v=0,avoidCollisions:y=!0,collisionBoundary:b=[],collisionPadding:k=0,sticky:E="partial",hideWhenDetached:x=!1,updatePositionStrategy:T="optimized",onPlaced:O,...F}=e,$=Kn(Ir,l),[A,_]=m.useState(null),V=Je(t,je=>_(je)),[K,ne]=m.useState(null),q=zs(K),H=(q==null?void 0:q.width)??0,W=(q==null?void 0:q.height)??0,J=d+(p!=="center"?"-"+p:""),z=typeof k=="number"?k:{top:0,right:0,bottom:0,left:0,...k},U=Array.isArray(b)?b:[b],R=U.length>0,L={padding:z,boundary:U.filter(Us),altBoundary:R},{refs:oe,floatingStyles:ce,placement:ue,isPositioned:ee,middlewareData:X}=Cs({strategy:"fixed",placement:J,whileElementsMounted:(...je)=>vs(...je,{animationFrame:T==="always"}),elements:{reference:$.anchor},middleware:[js({mainAxis:u+W,alignmentAxis:h}),y&&Ps({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?Ts():void 0,...L}),y&&Ns({...L}),Ds({...L,apply:({elements:je,rects:it,availableWidth:ke,availableHeight:ge})=>{const{width:Me,height:We}=it.reference,me=je.floating.style;me.setProperty("--radix-popper-available-width",`${ke}px`),me.setProperty("--radix-popper-available-height",`${ge}px`),me.setProperty("--radix-popper-anchor-width",`${Me}px`),me.setProperty("--radix-popper-anchor-height",`${We}px`)}}),K&&Is({element:K,padding:v}),Ys({arrowWidth:H,arrowHeight:W}),x&&As({strategy:"referenceHidden",...L})]}),[he,fe]=ro(ue),Z=$t(O);Le(()=>{ee&&(Z==null||Z())},[ee,Z]);const de=(r=X.arrow)==null?void 0:r.x,pe=(o=X.arrow)==null?void 0:o.y,se=((i=X.arrow)==null?void 0:i.centerOffset)!==0,[Oe,we]=m.useState();return Le(()=>{A&&we(window.getComputedStyle(A).zIndex)},[A]),M.jsx("div",{ref:oe.setFloating,"data-radix-popper-content-wrapper":"",style:{...ce,transform:ee?ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Oe,"--radix-popper-transform-origin":[(s=X.transformOrigin)==null?void 0:s.x,(a=X.transformOrigin)==null?void 0:a.y].join(" "),...((c=X.hide)==null?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:M.jsx(Ms,{scope:l,placedSide:he,onArrowChange:ne,arrowX:de,arrowY:pe,shouldHideArrow:se,children:M.jsx(Fe.div,{"data-side":he,"data-align":fe,...F,ref:V,style:{...F.style,animation:ee?void 0:"none"}})})})});Zn.displayName=Ir;var eo="PopperArrow",Bs={top:"bottom",right:"left",bottom:"top",left:"right"},to=m.forwardRef(function(e,t){const{__scopePopper:r,...o}=e,i=Ws(eo,r),s=Bs[i.placedSide];return M.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:M.jsx($s,{...o,ref:t,style:{...o.style,display:"block"}})})});to.displayName=eo;function Us(e){return e!==null}var Ys=e=>({name:"transformOrigin",options:e,fn(t){var r,o,i;const{placement:s,rects:a,middlewareData:c}=t,l=((r=c.arrow)==null?void 0:r.centerOffset)!==0,d=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[p,h]=ro(s),v={start:"0%",center:"50%",end:"100%"}[h],y=(((o=c.arrow)==null?void 0:o.x)??0)+d/2,b=(((i=c.arrow)==null?void 0:i.y)??0)+u/2;let k="",E="";return p==="bottom"?(k=l?v:`${y}px`,E=`${-u}px`):p==="top"?(k=l?v:`${y}px`,E=`${a.floating.height+u}px`):p==="right"?(k=`${-u}px`,E=l?v:`${b}px`):p==="left"&&(k=`${a.floating.width+u}px`,E=l?v:`${b}px`),{data:{x:k,y:E}}}});function ro(e){const[t,r="center"]=e.split("-");return[t,r]}var Vs=Jn,Hs=Qn,Gs=Zn,Xs=to,Ks="Portal",no=m.forwardRef((e,t)=>{var r;const{container:o,...i}=e,[s,a]=m.useState(!1);Le(()=>a(!0),[]);const c=o||s&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return c?dn.createPortal(M.jsx(Fe.div,{...i,ref:t}),c):null});no.displayName=Ks;function Js(e,t){return m.useReducer((r,o)=>t[r][o]??r,e)}var Lr=e=>{const{present:t,children:r}=e,o=qs(t),i=typeof r=="function"?r({present:o.isPresent}):m.Children.only(r),s=Je(o.ref,Qs(i));return typeof r=="function"||o.isPresent?m.cloneElement(i,{ref:s}):null};Lr.displayName="Presence";function qs(e){const[t,r]=m.useState(),o=m.useRef(null),i=m.useRef(e),s=m.useRef("none"),a=e?"mounted":"unmounted",[c,l]=Js(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const d=Tt(o.current);s.current=c==="mounted"?d:"none"},[c]),Le(()=>{const d=o.current,u=i.current;if(u!==e){const p=s.current,h=Tt(d);e?l("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(u&&p!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Le(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,p=v=>{const y=Tt(o.current).includes(CSS.escape(v.animationName));if(v.target===t&&y&&(l("ANIMATION_END"),!i.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=v=>{v.target===t&&(s.current=Tt(o.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(d),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:m.useCallback(d=>{o.current=d?getComputedStyle(d):null,r(d)},[])}}function Tt(e){return(e==null?void 0:e.animationName)||"none"}function Qs(e){var t,r;let o=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?e.ref:(o=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,i=o&&"isReactWarning"in o&&o.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var Zs=m[" useInsertionEffect ".trim().toString()]||Le;function ea({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){const[i,s,a]=ta({defaultProp:t,onChange:r}),c=e!==void 0,l=c?e:i;{const u=m.useRef(e!==void 0);m.useEffect(()=>{const p=u.current;p!==c&&console.warn(`${o} is changing from ${p?"controlled":"uncontrolled"} to ${c?"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.`),u.current=c},[c,o])}const d=m.useCallback(u=>{var p;if(c){const h=ra(u)?u(e):u;h!==e&&((p=a.current)==null||p.call(a,h))}else s(u)},[c,e,s,a]);return[l,d]}function ta({defaultProp:e,onChange:t}){const[r,o]=m.useState(e),i=m.useRef(r),s=m.useRef(t);return Zs(()=>{s.current=t},[t]),m.useEffect(()=>{var a;i.current!==r&&((a=s.current)==null||a.call(s,r),i.current=r)},[r,i]),[r,o,s]}function ra(e){return typeof e=="function"}var na=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"}),oa="VisuallyHidden",oo=m.forwardRef((e,t)=>M.jsx(Fe.span,{...e,ref:t,style:{...na,...e.style}}));oo.displayName=oa;var ia=oo,[Bt]=Pn("Tooltip",[Xn]),Ut=Xn(),io="TooltipProvider",sa=700,Sr="tooltip.open",[aa,$r]=Bt(io),so=e=>{const{__scopeTooltip:t,delayDuration:r=sa,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:s}=e,a=m.useRef(!0),c=m.useRef(!1),l=m.useRef(0);return m.useEffect(()=>{const d=l.current;return()=>window.clearTimeout(d)},[]),M.jsx(aa,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:m.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:m.useCallback(d=>{c.current=d},[]),disableHoverableContent:i,children:s})};so.displayName=io;var Et="Tooltip",[la,St]=Bt(Et),ao=e=>{const{__scopeTooltip:t,children:r,open:o,defaultOpen:i,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,l=$r(Et,e.__scopeTooltip),d=Ut(t),[u,p]=m.useState(null),h=Ti(),v=m.useRef(0),y=a??l.disableHoverableContent,b=c??l.delayDuration,k=m.useRef(!1),[E,x]=ea({prop:o,defaultProp:i??!1,onChange:A=>{A?(l.onOpen(),document.dispatchEvent(new CustomEvent(Sr))):l.onClose(),s==null||s(A)},caller:Et}),T=m.useMemo(()=>E?k.current?"delayed-open":"instant-open":"closed",[E]),O=m.useCallback(()=>{window.clearTimeout(v.current),v.current=0,k.current=!1,x(!0)},[x]),F=m.useCallback(()=>{window.clearTimeout(v.current),v.current=0,x(!1)},[x]),$=m.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{k.current=!0,x(!0),v.current=0},b)},[b,x]);return m.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),M.jsx(Vs,{...d,children:M.jsx(la,{scope:t,contentId:h,open:E,stateAttribute:T,trigger:u,onTriggerChange:p,onTriggerEnter:m.useCallback(()=>{l.isOpenDelayedRef.current?$():O()},[l.isOpenDelayedRef,$,O]),onTriggerLeave:m.useCallback(()=>{y?F():(window.clearTimeout(v.current),v.current=0)},[F,y]),onOpen:O,onClose:F,disableHoverableContent:y,children:r})})};ao.displayName=Et;var _r="TooltipTrigger",lo=m.forwardRef((e,t)=>{const{__scopeTooltip:r,...o}=e,i=St(_r,r),s=$r(_r,r),a=Ut(r),c=m.useRef(null),l=Je(t,c,i.onTriggerChange),d=m.useRef(!1),u=m.useRef(!1),p=m.useCallback(()=>d.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),M.jsx(Hs,{asChild:!0,...a,children:M.jsx(Fe.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...o,ref:l,onPointerMove:Te(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:Te(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:Te(e.onPointerDown,()=>{i.open&&i.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:Te(e.onFocus,()=>{d.current||i.onOpen()}),onBlur:Te(e.onBlur,i.onClose),onClick:Te(e.onClick,i.onClose)})})});lo.displayName=_r;var zr="TooltipPortal",[ca,ua]=Bt(zr,{forceMount:void 0}),co=e=>{const{__scopeTooltip:t,forceMount:r,children:o,container:i}=e,s=St(zr,t);return M.jsx(ca,{scope:t,forceMount:r,children:M.jsx(Lr,{present:r||s.open,children:M.jsx(no,{asChild:!0,container:i,children:o})})})};co.displayName=zr;var et="TooltipContent",uo=m.forwardRef((e,t)=>{const r=ua(et,e.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...s}=e,a=St(et,e.__scopeTooltip);return M.jsx(Lr,{present:o||a.open,children:a.disableHoverableContent?M.jsx(fo,{side:i,...s,ref:t}):M.jsx(fa,{side:i,...s,ref:t})})}),fa=m.forwardRef((e,t)=>{const r=St(et,e.__scopeTooltip),o=$r(et,e.__scopeTooltip),i=m.useRef(null),s=Je(t,i),[a,c]=m.useState(null),{trigger:l,onClose:d}=r,u=i.current,{onPointerInTransitChange:p}=o,h=m.useCallback(()=>{c(null),p(!1)},[p]),v=m.useCallback((y,b)=>{const k=y.currentTarget,E={x:y.clientX,y:y.clientY},x=ha(E,k.getBoundingClientRect()),T=ga(E,x),O=va(b.getBoundingClientRect()),F=ba([...T,...O]);c(F),p(!0)},[p]);return m.useEffect(()=>()=>h(),[h]),m.useEffect(()=>{if(l&&u){const y=k=>v(k,u),b=k=>v(k,l);return l.addEventListener("pointerleave",y),u.addEventListener("pointerleave",b),()=>{l.removeEventListener("pointerleave",y),u.removeEventListener("pointerleave",b)}}},[l,u,v,h]),m.useEffect(()=>{if(a){const y=b=>{const k=b.target,E={x:b.clientX,y:b.clientY},x=(l==null?void 0:l.contains(k))||(u==null?void 0:u.contains(k)),T=!ya(E,a);x?h():T&&(h(),d())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,u,a,d,h]),M.jsx(fo,{...e,ref:s})}),[da,pa]=Bt(Et,{isInside:!1}),ma=hi("TooltipContent"),fo=m.forwardRef((e,t)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,l=St(et,r),d=Ut(r),{onClose:u}=l;return m.useEffect(()=>(document.addEventListener(Sr,u),()=>document.removeEventListener(Sr,u)),[u]),m.useEffect(()=>{if(l.trigger){const p=h=>{const v=h.target;v!=null&&v.contains(l.trigger)&&u()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,u]),M.jsx(Dn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:u,children:M.jsxs(Gs,{"data-state":l.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[M.jsx(ma,{children:o}),M.jsx(da,{scope:r,isInside:!0,children:M.jsx(ia,{id:l.contentId,role:"tooltip",children:i||o})})]})})});uo.displayName=et;var po="TooltipArrow",mo=m.forwardRef((e,t)=>{const{__scopeTooltip:r,...o}=e,i=Ut(r);return pa(po,r).isInside?null:M.jsx(Xs,{...i,...o,ref:t})});mo.displayName=po;function ha(e,t){const r=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,o,i,s)){case s:return"left";case i:return"right";case r:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function ga(e,t,r=5){const o=[];switch(t){case"top":o.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":o.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":o.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":o.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return o}function va(e){const{top:t,right:r,bottom:o,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:o},{x:i,y:o}]}function ya(e,t){const{x:r,y:o}=e;let i=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],l=t[a],d=c.x,u=c.y,p=l.x,h=l.y;u>o!=h>o&&r<(p-d)*(o-u)/(h-u)+d&&(i=!i)}return i}function ba(e){const t=e.slice();return t.sort((r,o)=>r.x<o.x?-1:r.x>o.x?1:r.y<o.y?-1:r.y>o.y?1:0),xa(t)}function xa(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const i=e[o];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))t.pop();else break}t.push(i)}t.pop();const r=[];for(let o=e.length-1;o>=0;o--){const i=e[o];for(;r.length>=2;){const s=r[r.length-1],a=r[r.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))r.pop();else break}r.push(i)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var wa=so,ka=ao,Ea=lo,Ra=co,ho=uo,Sa=mo;const _a=wa,Ca=ka,Oa=Ea,go=m.forwardRef(({className:e,sideOffset:t=6,...r},o)=>M.jsx(Ra,{children:M.jsxs(ho,{ref:o,sideOffset:t,className:`z-50 overflow-hidden rounded-lg border border-slate-950 bg-slate-950 px-3 py-1 text-xs text-white ${e??""}`,...r,children:[r.children,M.jsx(Sa,{className:"fill-slate-950"})]})}));go.displayName=ho.displayName;const ja=Po("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-blue-500 text-white",save:"text-white",delete:"text-white",update:"text-white",cancel:"text-[#414651] border border-[#D5D7DA]",outline:"text-[#003B71]"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3 text-xs",lg:"h-11 rounded-md px-8",icon:"h-10 w-10",xs:"h-5 px-2 text-xs rounded"}},defaultVariants:{variant:"default",size:"default"}}),vo=ae.forwardRef(({className:e,variant:t,size:r,loading:o=!1,disabled:i,children:s,leftIcon:a,datatestid:c,rightIcon:l,style:d,iconButton:u=!1,tooltipLabel:p,saveColor:h="#003B71",deleteColor:v="#FF6070",updateColor:y="#003B71",cancelColor:b="#ffffff",outlineColor:k="#003B71",...E},x)=>{const T={...t&&{save:{backgroundColor:h},delete:{backgroundColor:v},update:{backgroundColor:y},cancel:{backgroundColor:b},outline:{backgroundColor:k}}[t],...d},O=M.jsxs("button",{ref:x,"data-testid":c,className:fi(ja({variant:t,size:r}),e),style:T,disabled:i||o,...E,children:[o&&M.jsx("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),!o&&a&&a,s,!o&&l&&l]});return u?M.jsx(_a,{children:M.jsxs(Ca,{children:[M.jsx(Oa,{asChild:!0,children:O}),p&&M.jsx(go,{children:p})]})}):O});vo.displayName="Button";const Pa=({config:e})=>{const{navItems:t,user:r,createButtonRoles:o,createButtonLabel:i="Create",createButtonPath:s,brandName:a="Amphenol",brandSubtitle:c="COMMUNICATION SOLUTIONS",logo:l,helpLabel:d="Help Center",helpIcon:u,onSignOut:p,onNavigate:h,className:v=""}=e,{isExpanded:y,toggleSidebar:b,openSubmenu:k,toggleSubmenu:E}=gn(),[x,T]=ae.useState(window.location.pathname),[O,F]=ae.useState(!1),[$,A]=ae.useState(!1),[_,V]=ae.useState(null);ae.useEffect(()=>{const z=()=>T(window.location.pathname);return window.addEventListener("popstate",z),()=>window.removeEventListener("popstate",z)},[]);const K=(z,U)=>{z.preventDefault(),U&&(h?h(U):(window.history.pushState({},"",U),window.dispatchEvent(new PopStateEvent("popstate"))))},ne=()=>r.email?r.email.split("@")[0]:"User",q=()=>r.email?r.email.charAt(0).toUpperCase():"U",H=()=>{p?p():window.location.href="/c/portal/logout"},W=!o||o.includes(r.role),J=t.reduce((z,U)=>{const R=U.section||"GENERAL";return z[R]||(z[R]=[]),z[R].push(U),z},{});return D.jsxs("aside",{style:{backgroundColor:"#0f172a"},className:`rdr-sidebar ${y?"expanded":"collapsed"} ${v}`,children:[D.jsxs("div",{className:"sidebar-header ",style:{paddingTop:"10px"},children:[D.jsxs("div",{className:"logo-section",onClick:b,children:[D.jsx("span",{className:"logo-icon ",style:{color:"var(--sidebar-accent)",marginTop:"15px"},children:l??D.jsx(Ro,{})}),y&&D.jsxs("div",{className:"brand-text",children:[D.jsx("h2",{children:a}),c&&D.jsx("span",{children:c})]})]}),y&&D.jsx(vo,{className:"menu-toggle",onClick:b,"aria-label":"Collapse sidebar",children:D.jsx(ko,{})})]}),W&&s&&D.jsx("div",{className:"sidebar-actions",children:D.jsxs("button",{className:"sidebar-create-btn",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",width:y?"100%":"44px",height:"44px",padding:y?"0 16px":"0",borderRadius:"10px",border:"none",outline:"none",boxShadow:"none",cursor:"pointer",fontSize:"14px",fontWeight:600,color:"#fff",background:$?"#149B6E":"#18B885",transition:"background-color 0.2s ease"},onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),onClick:z=>K(z,s),children:[D.jsx(So,{}),y&&D.jsx("span",{children:i})]})}),D.jsx("div",{className:"sidebar-nav",children:Object.entries(J).map(([z,U])=>{const R=U.filter(L=>!L.roles||L.roles.includes(r.role));return R.length?D.jsxs("div",{className:"nav-section",style:{listStyleType:"none"},children:[y&&D.jsx("h4",{className:"section-title",children:z}),D.jsx("ul",{className:"nav-items",children:R.map(L=>{var ue,ee;const oe=(ue=L.subItems)==null?void 0:ue.some(X=>X.path&&x.includes(X.path)),ce=L.path?x===L.path:!1;return D.jsx("li",{children:(ee=L.subItems)!=null&&ee.length?D.jsxs(D.Fragment,{children:[D.jsxs("div",{className:`nav-item ${k===L.name||oe?"active":""}`,"data-label":L.name,onClick:()=>E(L.name),onMouseEnter:()=>V(L.name),onMouseLeave:()=>V(null),style:k===L.name||oe||_===L.name?{backgroundColor:"#10B981",border:"1px solid #10B981",borderRadius:"8px"}:{},children:[D.jsx("span",{className:"nav-icon",children:L.icon}),y&&D.jsxs(D.Fragment,{children:[D.jsx("span",{className:"nav-text",children:L.name}),D.jsx("span",{className:"submenu-arrow",children:k===L.name?"−":"+"})]})]}),y&&k===L.name&&D.jsx("ul",{className:"submenu",children:L.subItems.map(X=>{const he=X.path?x===X.path:!1;return D.jsx("li",{children:D.jsxs("a",{href:X.path||"/",onClick:fe=>K(fe,X.path),className:`submenu-item ${he?"active-sub":""}`,children:[X.icon&&D.jsx("span",{className:"submenu-icon",children:X.icon}),D.jsx("span",{children:X.name})]})},X.name)})})]}):D.jsxs("a",{href:L.path||"/","data-label":L.name,onClick:X=>K(X,L.path),style:ce||_===L.name?{backgroundColor:"#10B981",border:"none",borderRadius:"8px",outline:"1px solid #10B981",outlineOffset:"0px"}:{border:"none"},onMouseEnter:()=>V(L.name),onMouseLeave:()=>V(null),className:`nav-item ${ce?"active":""}`,children:[D.jsx("span",{className:"nav-icon",children:L.icon}),y&&D.jsx("span",{className:"nav-text",children:L.name})]})},L.name)})})]},z):null})}),D.jsxs("div",{className:"sidebar-footer",children:[D.jsxs("div",{className:"footer-link","data-label":d,children:[D.jsx("span",{children:u??D.jsx(Eo,{})}),y&&D.jsx("span",{children:d})]}),D.jsxs("div",{className:"user-profile-wrapper",children:[D.jsxs("div",{className:"user-profile",onClick:()=>F(z=>!z),children:[D.jsx("div",{className:"avatar",children:q()}),y&&D.jsxs("div",{className:"user-info",children:[D.jsx("div",{className:"user-name",children:ne()}),D.jsx("div",{className:"user-role",children:r.roleName})]})]}),O&&D.jsxs("div",{className:"profile-popup",children:[D.jsx("button",{className:"popup-close",onClick:()=>F(!1),"aria-label":"Close",children:"✕"}),D.jsxs("div",{className:"popup-header",children:[D.jsx("div",{className:"popup-avatar",children:q()}),D.jsxs("div",{className:"popup-user-details",children:[D.jsx("div",{className:"popup-name",children:ne()}),D.jsx("div",{className:"popup-role",children:r.roleName}),D.jsx("div",{className:"popup-email",children:r.email})]})]}),D.jsx("div",{className:"popup-divider"}),D.jsxs("button",{className:"signout-btn",onClick:H,children:[D.jsx(_o,{}),D.jsx("span",{children:"Sign Out"})]})]})]})]})]})};exports.SideNavbar=Pa;exports.SidebarProvider=wo;exports.useSidebar=gn;
|
|
59
|
+
<%s key={someKey} {...props} />`,He,le,ur,le),gt[le+He]=!0}}return n===o?ir(Y):or(Y),Y}}function sr(n,f,g){return vt(n,f,g,!0)}function ar(n,f,g){return vt(n,f,g,!1)}var lr=ar,cr=sr;Ct.Fragment=o,Ct.jsx=lr,Ct.jsxs=cr})()),Ct}var Yr;function jo(){return Yr||(Yr=1,process.env.NODE_ENV==="production"?dr.exports=Co():dr.exports=Oo()),dr.exports}var M=jo();function vn(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=vn(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function yn(){for(var e,t,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=vn(e))&&(o&&(o+=" "),o+=t);return o}const Vr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Hr=yn,Po=(e,t)=>r=>{var o;if((t==null?void 0:t.variants)==null)return Hr(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:s}=t,a=Object.keys(i).map(d=>{const u=r==null?void 0:r[d],p=s==null?void 0:s[d];if(u===null)return null;const h=Vr(u)||Vr(p);return i[d][h]}),c=r&&Object.entries(r).reduce((d,u)=>{let[p,h]=u;return h===void 0||(d[p]=h),d},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((d,u)=>{let{class:p,className:h,...v}=u;return Object.entries(v).every(y=>{let[b,k]=y;return Array.isArray(k)?k.includes({...s,...c}[b]):{...s,...c}[b]===k})?[...d,p,h]:d},[]);return Hr(e,a,l,r==null?void 0:r.class,r==null?void 0:r.className)},Cr="-",To=e=>{const t=Do(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const s=i.split(Cr);return s[0]===""&&s.length!==1&&s.shift(),bn(s,t)||No(i)},getConflictingClassGroupIds:(i,s)=>{const a=r[i]||[];return s&&o[i]?[...a,...o[i]]:a}}},bn=(e,t)=>{var r;if(e.length===0)return t.classGroupId;const o=e[0],i=t.nextPart.get(o),s=i?bn(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;const a=e.join(Cr);return(r=t.validators.find(({validator:c})=>c(a)))==null?void 0:r.classGroupId},Gr=/^\[(.+)\]$/,No=e=>{if(Gr.test(e)){const t=Gr.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Do=e=>{const{theme:t,classGroups:r}=e,o={nextPart:new Map,validators:[]};for(const i in r)yr(r[i],o,i,t);return o},yr=(e,t,r,o)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:Xr(t,i);s.classGroupId=r;return}if(typeof i=="function"){if(Ao(i)){yr(i(o),t,r,o);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([s,a])=>{yr(a,Xr(t,s),r,o)})})},Xr=(e,t)=>{let r=e;return t.split(Cr).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Ao=e=>e.isThemeGetter,Io=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const i=(s,a)=>{r.set(s,a),t++,t>e&&(t=0,o=r,r=new Map)};return{get(s){let a=r.get(s);if(a!==void 0)return a;if((a=o.get(s))!==void 0)return i(s,a),a},set(s,a){r.has(s)?r.set(s,a):i(s,a)}}},br="!",xr=":",Lo=xr.length,$o=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=i=>{const s=[];let a=0,c=0,l=0,d;for(let y=0;y<i.length;y++){let b=i[y];if(a===0&&c===0){if(b===xr){s.push(i.slice(l,y)),l=y+Lo;continue}if(b==="/"){d=y;continue}}b==="["?a++:b==="]"?a--:b==="("?c++:b===")"&&c--}const u=s.length===0?i:i.substring(l),p=zo(u),h=p!==u,v=d&&d>l?d-l:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:v}};if(t){const i=t+xr,s=o;o=a=>a.startsWith(i)?s(a.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(r){const i=o;o=s=>r({className:s,parseClassName:i})}return o},zo=e=>e.endsWith(br)?e.substring(0,e.length-1):e.startsWith(br)?e.substring(1):e,Fo=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let i=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...i.sort(),s),i=[]):i.push(s)}),o.push(...i.sort()),o}},Mo=e=>({cache:Io(e.cacheSize),parseClassName:$o(e),sortModifiers:Fo(e),...To(e)}),Wo=/\s+/,Bo=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:i,sortModifiers:s}=t,a=[],c=e.trim().split(Wo);let l="";for(let d=c.length-1;d>=0;d-=1){const u=c[d],{isExternal:p,modifiers:h,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:b}=r(u);if(p){l=u+(l.length>0?" "+l:l);continue}let k=!!b,E=o(k?y.substring(0,b):y);if(!E){if(!k){l=u+(l.length>0?" "+l:l);continue}if(E=o(y),!E){l=u+(l.length>0?" "+l:l);continue}k=!1}const x=s(h).join(":"),T=v?x+br:x,O=T+E;if(a.includes(O))continue;a.push(O);const F=i(E,k);for(let $=0;$<F.length;++$){const A=F[$];a.push(T+A)}l=u+(l.length>0?" "+l:l)}return l};function Uo(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=xn(t))&&(o&&(o+=" "),o+=r);return o}const xn=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=xn(e[o]))&&(r&&(r+=" "),r+=t);return r};function Yo(e,...t){let r,o,i,s=a;function a(l){const d=t.reduce((u,p)=>p(u),e());return r=Mo(d),o=r.cache.get,i=r.cache.set,s=c,c(l)}function c(l){const d=o(l);if(d)return d;const u=Bo(l,r);return i(l,u),u}return function(){return s(Uo.apply(null,arguments))}}const ie=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},wn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,kn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Vo=/^\d+\/\d+$/,Ho=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Go=/\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$/,Xo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ko=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qe=e=>Vo.test(e),G=e=>!!e&&!Number.isNaN(Number(e)),Ie=e=>!!e&&Number.isInteger(Number(e)),pr=e=>e.endsWith("%")&&G(e.slice(0,-1)),Pe=e=>Ho.test(e),qo=()=>!0,Qo=e=>Go.test(e)&&!Xo.test(e),En=()=>!1,Zo=e=>Ko.test(e),ei=e=>Jo.test(e),ti=e=>!j(e)&&!P(e),ri=e=>tt(e,_n,En),j=e=>wn.test(e),Ge=e=>tt(e,Cn,Qo),mr=e=>tt(e,ai,G),Kr=e=>tt(e,Rn,En),ni=e=>tt(e,Sn,ei),Ot=e=>tt(e,On,Zo),P=e=>kn.test(e),wt=e=>rt(e,Cn),oi=e=>rt(e,li),Jr=e=>rt(e,Rn),ii=e=>rt(e,_n),si=e=>rt(e,Sn),jt=e=>rt(e,On,!0),tt=(e,t,r)=>{const o=wn.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},rt=(e,t,r=!1)=>{const o=kn.exec(e);return o?o[1]?t(o[1]):r:!1},Rn=e=>e==="position"||e==="percentage",Sn=e=>e==="image"||e==="url",_n=e=>e==="length"||e==="size"||e==="bg-size",Cn=e=>e==="length",ai=e=>e==="number",li=e=>e==="family-name",On=e=>e==="shadow",ci=()=>{const e=ie("color"),t=ie("font"),r=ie("text"),o=ie("font-weight"),i=ie("tracking"),s=ie("leading"),a=ie("breakpoint"),c=ie("container"),l=ie("spacing"),d=ie("radius"),u=ie("shadow"),p=ie("inset-shadow"),h=ie("text-shadow"),v=ie("drop-shadow"),y=ie("blur"),b=ie("perspective"),k=ie("aspect"),E=ie("ease"),x=ie("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...O(),P,j],$=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],_=()=>[P,j,l],V=()=>[qe,"full","auto",..._()],K=()=>[Ie,"none","subgrid",P,j],ne=()=>["auto",{span:["full",Ie,P,j]},Ie,P,j],q=()=>[Ie,"auto",P,j],H=()=>["auto","min","max","fr",P,j],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",..._()],U=()=>[qe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],R=()=>[e,P,j],L=()=>[...O(),Jr,Kr,{position:[P,j]}],oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ce=()=>["auto","cover","contain",ii,ri,{size:[P,j]}],ue=()=>[pr,wt,Ge],ee=()=>["","none","full",d,P,j],X=()=>["",G,wt,Ge],he=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>[G,pr,Jr,Kr],de=()=>["","none",y,P,j],pe=()=>["none",G,P,j],se=()=>["none",G,P,j],Oe=()=>[G,P,j],we=()=>[qe,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pe],breakpoint:[Pe],color:[qo],container:[Pe],"drop-shadow":[Pe],ease:["in","out","in-out"],font:[ti],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pe],shadow:[Pe],spacing:["px",G],text:[Pe],"text-shadow":[Pe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",qe,j,P,k]}],container:["container"],columns:[{columns:[G,j,P,c]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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:F()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[Ie,"auto",P,j]}],basis:[{basis:[qe,"full","auto",c,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[G,qe,"auto","initial","none",j]}],grow:[{grow:["",G,P,j]}],shrink:[{shrink:["",G,P,j]}],order:[{order:[Ie,"first","last","none",P,j]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:ne()}],"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":H()}],"auto-rows":[{"auto-rows":H()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[c,"screen",...U()]}],"min-w":[{"min-w":[c,"screen","none",...U()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[a]},...U()]}],h:[{h:["screen",...U()]}],"min-h":[{"min-h":["screen","none",...U()]}],"max-h":[{"max-h":["screen",...U()]}],"font-size":[{text:["base",r,wt,Ge]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,P,mr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",pr,j]}],"font-family":[{font:[oi,j,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:[i,P,j]}],"line-clamp":[{"line-clamp":[G,"none",P,mr]}],leading:[{leading:[s,..._()]}],"list-image":[{"list-image":["none",P,j]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[G,"from-font","auto",P,Ge]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[G,"auto",P,j]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P,j]}],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",P,j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:ce()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ie,P,j],radial:["",P,j],conic:[Ie,P,j]},si,ni]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:ue()}],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[G,P,j]}],"outline-w":[{outline:["",G,wt,Ge]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",u,jt,Ot]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",p,jt,Ot]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[G,Ge]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",h,jt,Ot]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[G,P,j]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"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":[G]}],"mask-image-linear-from-pos":[{"mask-linear-from":Z()}],"mask-image-linear-to-pos":[{"mask-linear-to":Z()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":Z()}],"mask-image-t-to-pos":[{"mask-t-to":Z()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":Z()}],"mask-image-r-to-pos":[{"mask-r-to":Z()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":Z()}],"mask-image-b-to-pos":[{"mask-b-to":Z()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":Z()}],"mask-image-l-to-pos":[{"mask-l-to":Z()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":Z()}],"mask-image-x-to-pos":[{"mask-x-to":Z()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":Z()}],"mask-image-y-to-pos":[{"mask-y-to":Z()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[P,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":Z()}],"mask-image-radial-to-pos":[{"mask-radial-to":Z()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"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":O()}],"mask-image-conic-pos":[{"mask-conic":[G]}],"mask-image-conic-from-pos":[{"mask-conic-from":Z()}],"mask-image-conic-to-pos":[{"mask-conic-to":Z()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:ce()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,j]}],filter:[{filter:["","none",P,j]}],blur:[{blur:de()}],brightness:[{brightness:[G,P,j]}],contrast:[{contrast:[G,P,j]}],"drop-shadow":[{"drop-shadow":["","none",v,jt,Ot]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",G,P,j]}],"hue-rotate":[{"hue-rotate":[G,P,j]}],invert:[{invert:["",G,P,j]}],saturate:[{saturate:[G,P,j]}],sepia:[{sepia:["",G,P,j]}],"backdrop-filter":[{"backdrop-filter":["","none",P,j]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[G,P,j]}],"backdrop-contrast":[{"backdrop-contrast":[G,P,j]}],"backdrop-grayscale":[{"backdrop-grayscale":["",G,P,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[G,P,j]}],"backdrop-invert":[{"backdrop-invert":["",G,P,j]}],"backdrop-opacity":[{"backdrop-opacity":[G,P,j]}],"backdrop-saturate":[{"backdrop-saturate":[G,P,j]}],"backdrop-sepia":[{"backdrop-sepia":["",G,P,j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,j]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[G,"initial",P,j]}],ease:[{ease:["linear","initial",E,P,j]}],delay:[{delay:[G,P,j]}],animate:[{animate:["none",x,P,j]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,P,j]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:se()}],"scale-x":[{"scale-x":se()}],"scale-y":[{"scale-y":se()}],"scale-z":[{"scale-z":se()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[P,j,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:we()}],"translate-x":[{"translate-x":we()}],"translate-y":[{"translate-y":we()}],"translate-z":[{"translate-z":we()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"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",P,j]}],"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":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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",P,j]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[G,wt,Ge,mr]}],stroke:[{stroke:["none",...R()]}],"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"]}},ui=Yo(ci);function fi(...e){return ui(yn(e))}function Te(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 qr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function jn(...e){return t=>{let r=!1;const o=e.map(i=>{const s=qr(i,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let i=0;i<o.length;i++){const s=o[i];typeof s=="function"?s():qr(e[i],null)}}}}function Je(...e){return m.useCallback(jn(...e),e)}function Pn(e,t=[]){let r=[];function o(s,a){const c=m.createContext(a),l=r.length;r=[...r,a];const d=p=>{var h;const{scope:v,children:y,...b}=p,k=((h=v==null?void 0:v[e])==null?void 0:h[l])||c,E=m.useMemo(()=>b,Object.values(b));return M.jsx(k.Provider,{value:E,children:y})};d.displayName=s+"Provider";function u(p,h){var v;const y=((v=h==null?void 0:h[e])==null?void 0:v[l])||c,b=m.useContext(y);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[d,u]}const i=()=>{const s=r.map(a=>m.createContext(a));return function(a){const c=(a==null?void 0:a[e])||s;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return i.scopeName=e,[o,di(i,...t)]}function di(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(i){const s=o.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function pi(e){const t=mi(e),r=m.forwardRef((o,i)=>{const{children:s,...a}=o,c=m.Children.toArray(s),l=c.find(gi);if(l){const d=l.props.children,u=c.map(p=>p===l?m.Children.count(d)>1?m.Children.only(null):m.isValidElement(d)?d.props.children:null:p);return M.jsx(t,{...a,ref:i,children:m.isValidElement(d)?m.cloneElement(d,void 0,u):null})}return M.jsx(t,{...a,ref:i,children:s})});return r.displayName=`${e}.Slot`,r}function mi(e){const t=m.forwardRef((r,o)=>{const{children:i,...s}=r;if(m.isValidElement(i)){const a=yi(i),c=vi(s,i.props);return i.type!==m.Fragment&&(c.ref=o?jn(o,a):a),m.cloneElement(i,c)}return m.Children.count(i)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Tn=Symbol("radix.slottable");function hi(e){const t=({children:r})=>M.jsx(M.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Tn,t}function gi(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Tn}function vi(e,t){const r={...t};for(const o in t){const i=e[o],s=t[o];/^on[A-Z]/.test(o)?i&&s?r[o]=(...a)=>{const c=s(...a);return i(...a),c}:i&&(r[o]=i):o==="style"?r[o]={...i,...s}:o==="className"&&(r[o]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}function yi(e){var t,r;let o=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?e.ref:(o=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,i=o&&"isReactWarning"in o&&o.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var bi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fe=bi.reduce((e,t)=>{const r=pi(`Primitive.${t}`),o=m.forwardRef((i,s)=>{const{asChild:a,...c}=i,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),M.jsx(l,{...c,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function xi(e,t){e&&mn.flushSync(()=>e.dispatchEvent(t))}function $t(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...r)=>{var o;return(o=t.current)==null?void 0:o.call(t,...r)},[])}function wi(e,t=globalThis==null?void 0:globalThis.document){const r=$t(e);m.useEffect(()=>{const o=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[r,t])}var ki="DismissableLayer",wr="dismissableLayer.update",Ei="dismissableLayer.pointerDownOutside",Ri="dismissableLayer.focusOutside",Qr,Nn=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dn=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,d=m.useContext(Nn),[u,p]=m.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=m.useState({}),y=Je(t,A=>p(A)),b=Array.from(d.layers),[k]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),E=b.indexOf(k),x=u?b.indexOf(u):-1,T=d.layersWithOutsidePointerEventsDisabled.size>0,O=x>=E,F=Ci(A=>{const _=A.target,V=[...d.branches].some(K=>K.contains(_));!O||V||(i==null||i(A),a==null||a(A),A.defaultPrevented||c==null||c())},h),$=Oi(A=>{const _=A.target;[...d.branches].some(V=>V.contains(_))||(s==null||s(A),a==null||a(A),A.defaultPrevented||c==null||c())},h);return wi(A=>{x===d.layers.size-1&&(o==null||o(A),!A.defaultPrevented&&c&&(A.preventDefault(),c()))},h),m.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Qr=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Zr(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Qr)}},[u,h,r,d]),m.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Zr())},[u,d]),m.useEffect(()=>{const A=()=>v({});return document.addEventListener(wr,A),()=>document.removeEventListener(wr,A)},[]),M.jsx(Fe.div,{...l,ref:y,style:{pointerEvents:T?O?"auto":"none":void 0,...e.style},onFocusCapture:Te(e.onFocusCapture,$.onFocusCapture),onBlurCapture:Te(e.onBlurCapture,$.onBlurCapture),onPointerDownCapture:Te(e.onPointerDownCapture,F.onPointerDownCapture)})});Dn.displayName=ki;var Si="DismissableLayerBranch",_i=m.forwardRef((e,t)=>{const r=m.useContext(Nn),o=m.useRef(null),i=Je(t,o);return m.useEffect(()=>{const s=o.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),M.jsx(Fe.div,{...e,ref:i})});_i.displayName=Si;function Ci(e,t=globalThis==null?void 0:globalThis.document){const r=$t(e),o=m.useRef(!1),i=m.useRef(()=>{});return m.useEffect(()=>{const s=c=>{if(c.target&&!o.current){let l=function(){An(Ei,r,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>o.current=!0}}function Oi(e,t=globalThis==null?void 0:globalThis.document){const r=$t(e),o=m.useRef(!1);return m.useEffect(()=>{const i=s=>{s.target&&!o.current&&An(Ri,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Zr(){const e=new CustomEvent(wr);document.dispatchEvent(e)}function An(e,t,r,{discrete:o}){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),o?xi(i,s):i.dispatchEvent(s)}var Le=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},ji=m[" useId ".trim().toString()]||(()=>{}),Pi=0;function Ti(e){const[t,r]=m.useState(ji());return Le(()=>{r(o=>o??String(Pi++))},[e]),t?`radix-${t}`:""}const Ni=["top","right","bottom","left"],$e=Math.min,be=Math.max,Dt=Math.round,Pt=Math.floor,_e=e=>({x:e,y:e}),Di={left:"right",right:"left",bottom:"top",top:"bottom"};function kr(e,t,r){return be(e,$e(t,r))}function Ne(e,t){return typeof e=="function"?e(t):e}function De(e){return e.split("-")[0]}function nt(e){return e.split("-")[1]}function Or(e){return e==="x"?"y":"x"}function jr(e){return e==="y"?"height":"width"}function Se(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Pr(e){return Or(Se(e))}function Ai(e,t,r){r===void 0&&(r=!1);const o=nt(e),i=Pr(e),s=jr(i);let a=i==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=At(a)),[a,At(a)]}function Ii(e){const t=At(e);return[Er(e),t,Er(t)]}function Er(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const en=["left","right"],tn=["right","left"],Li=["top","bottom"],$i=["bottom","top"];function zi(e,t,r){switch(e){case"top":case"bottom":return r?t?tn:en:t?en:tn;case"left":case"right":return t?Li:$i;default:return[]}}function Fi(e,t,r,o){const i=nt(e);let s=zi(De(e),r==="start",o);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(Er)))),s}function At(e){const t=De(e);return Di[t]+e.slice(t.length)}function Mi(e){return{top:0,right:0,bottom:0,left:0,...e}}function In(e){return typeof e!="number"?Mi(e):{top:e,right:e,bottom:e,left:e}}function It(e){const{x:t,y:r,width:o,height:i}=e;return{width:o,height:i,top:r,left:t,right:t+o,bottom:r+i,x:t,y:r}}function rn(e,t,r){let{reference:o,floating:i}=e;const s=Se(t),a=Pr(t),c=jr(a),l=De(t),d=s==="y",u=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,h=o[c]/2-i[c]/2;let v;switch(l){case"top":v={x:u,y:o.y-i.height};break;case"bottom":v={x:u,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:p};break;case"left":v={x:o.x-i.width,y:p};break;default:v={x:o.x,y:o.y}}switch(nt(t)){case"start":v[a]-=h*(r&&d?-1:1);break;case"end":v[a]+=h*(r&&d?-1:1);break}return v}async function Wi(e,t){var r;t===void 0&&(t={});const{x:o,y:i,platform:s,rects:a,elements:c,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:h=!1,padding:v=0}=Ne(t,e),y=In(v),b=c[h?p==="floating"?"reference":"floating":p],k=It(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(b)))==null||r?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:d,rootBoundary:u,strategy:l})),E=p==="floating"?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),T=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},O=It(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:E,offsetParent:x,strategy:l}):E);return{top:(k.top-O.top+y.top)/T.y,bottom:(O.bottom-k.bottom+y.bottom)/T.y,left:(k.left-O.left+y.left)/T.x,right:(O.right-k.right+y.right)/T.x}}const Bi=50,Ui=async(e,t,r)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:a}=r,c=a.detectOverflow?a:{...a,detectOverflow:Wi},l=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:p}=rn(d,o,l),h=o,v=0;const y={};for(let b=0;b<s.length;b++){const k=s[b];if(!k)continue;const{name:E,fn:x}=k,{x:T,y:O,data:F,reset:$}=await x({x:u,y:p,initialPlacement:o,placement:h,strategy:i,middlewareData:y,rects:d,platform:c,elements:{reference:e,floating:t}});u=T??u,p=O??p,y[E]={...y[E],...F},$&&v<Bi&&(v++,typeof $=="object"&&($.placement&&(h=$.placement),$.rects&&(d=$.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):$.rects),{x:u,y:p}=rn(d,h,l)),b=-1)}return{x:u,y:p,placement:h,strategy:i,middlewareData:y}},Yi=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:i,rects:s,platform:a,elements:c,middlewareData:l}=t,{element:d,padding:u=0}=Ne(e,t)||{};if(d==null)return{};const p=In(u),h={x:r,y:o},v=Pr(i),y=jr(v),b=await a.getDimensions(d),k=v==="y",E=k?"top":"left",x=k?"bottom":"right",T=k?"clientHeight":"clientWidth",O=s.reference[y]+s.reference[v]-h[v]-s.floating[y],F=h[v]-s.reference[v],$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let A=$?$[T]:0;(!A||!await(a.isElement==null?void 0:a.isElement($)))&&(A=c.floating[T]||s.floating[y]);const _=O/2-F/2,V=A/2-b[y]/2-1,K=$e(p[E],V),ne=$e(p[x],V),q=K,H=A-b[y]-ne,W=A/2-b[y]/2+_,J=kr(q,W,H),z=!l.arrow&&nt(i)!=null&&W!==J&&s.reference[y]/2-(W<q?K:ne)-b[y]/2<0,U=z?W<q?W-q:W-H:0;return{[v]:h[v]+U,data:{[v]:J,centerOffset:W-J-U,...z&&{alignmentOffset:U}},reset:z}}}),Vi=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:i,middlewareData:s,rects:a,initialPlacement:c,platform:l,elements:d}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:b=!0,...k}=Ne(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const E=De(i),x=Se(c),T=De(c)===c,O=await(l.isRTL==null?void 0:l.isRTL(d.floating)),F=h||(T||!b?[At(c)]:Ii(c)),$=y!=="none";!h&&$&&F.push(...Fi(c,b,y,O));const A=[c,...F],_=await l.detectOverflow(t,k),V=[];let K=((o=s.flip)==null?void 0:o.overflows)||[];if(u&&V.push(_[E]),p){const W=Ai(i,a,O);V.push(_[W[0]],_[W[1]])}if(K=[...K,{placement:i,overflows:V}],!V.every(W=>W<=0)){var ne,q;const W=(((ne=s.flip)==null?void 0:ne.index)||0)+1,J=A[W];if(J&&(!(p==="alignment"&&x!==Se(J))||K.every(U=>Se(U.placement)===x?U.overflows[0]>0:!0)))return{data:{index:W,overflows:K},reset:{placement:J}};let z=(q=K.filter(U=>U.overflows[0]<=0).sort((U,R)=>U.overflows[1]-R.overflows[1])[0])==null?void 0:q.placement;if(!z)switch(v){case"bestFit":{var H;const U=(H=K.filter(R=>{if($){const L=Se(R.placement);return L===x||L==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(L=>L>0).reduce((L,oe)=>L+oe,0)]).sort((R,L)=>R[1]-L[1])[0])==null?void 0:H[0];U&&(z=U);break}case"initialPlacement":z=c;break}if(i!==z)return{reset:{placement:z}}}return{}}}};function nn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function on(e){return Ni.some(t=>e[t]>=0)}const Hi=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:o}=t,{strategy:i="referenceHidden",...s}=Ne(e,t);switch(i){case"referenceHidden":{const a=await o.detectOverflow(t,{...s,elementContext:"reference"}),c=nn(a,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:on(c)}}}case"escaped":{const a=await o.detectOverflow(t,{...s,altBoundary:!0}),c=nn(a,r.floating);return{data:{escapedOffsets:c,escaped:on(c)}}}default:return{}}}}},Ln=new Set(["left","top"]);async function Gi(e,t){const{placement:r,platform:o,elements:i}=e,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),a=De(r),c=nt(r),l=Se(r)==="y",d=Ln.has(a)?-1:1,u=s&&l?-1:1,p=Ne(t,e);let{mainAxis:h,crossAxis:v,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof y=="number"&&(v=c==="end"?y*-1:y),l?{x:v*u,y:h*d}:{x:h*d,y:v*u}}const Xi=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:i,y:s,placement:a,middlewareData:c}=t,l=await Gi(t,e);return a===((r=c.offset)==null?void 0:r.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:a}}}}},Ki=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:i,platform:s}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:l={fn:E=>{let{x,y:T}=E;return{x,y:T}}},...d}=Ne(e,t),u={x:r,y:o},p=await s.detectOverflow(t,d),h=Se(De(i)),v=Or(h);let y=u[v],b=u[h];if(a){const E=v==="y"?"top":"left",x=v==="y"?"bottom":"right",T=y+p[E],O=y-p[x];y=kr(T,y,O)}if(c){const E=h==="y"?"top":"left",x=h==="y"?"bottom":"right",T=b+p[E],O=b-p[x];b=kr(T,b,O)}const k=l.fn({...t,[v]:y,[h]:b});return{...k,data:{x:k.x-r,y:k.y-o,enabled:{[v]:a,[h]:c}}}}}},Ji=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:o,placement:i,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:l=!0,crossAxis:d=!0}=Ne(e,t),u={x:r,y:o},p=Se(i),h=Or(p);let v=u[h],y=u[p];const b=Ne(c,t),k=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const T=h==="y"?"height":"width",O=s.reference[h]-s.floating[T]+k.mainAxis,F=s.reference[h]+s.reference[T]-k.mainAxis;v<O?v=O:v>F&&(v=F)}if(d){var E,x;const T=h==="y"?"width":"height",O=Ln.has(De(i)),F=s.reference[p]-s.floating[T]+(O&&((E=a.offset)==null?void 0:E[p])||0)+(O?0:k.crossAxis),$=s.reference[p]+s.reference[T]+(O?0:((x=a.offset)==null?void 0:x[p])||0)-(O?k.crossAxis:0);y<F?y=F:y>$&&(y=$)}return{[h]:v,[p]:y}}}},qi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;const{placement:i,rects:s,platform:a,elements:c}=t,{apply:l=()=>{},...d}=Ne(e,t),u=await a.detectOverflow(t,d),p=De(i),h=nt(i),v=Se(i)==="y",{width:y,height:b}=s.floating;let k,E;p==="top"||p==="bottom"?(k=p,E=h===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(E=p,k=h==="end"?"top":"bottom");const x=b-u.top-u.bottom,T=y-u.left-u.right,O=$e(b-u[k],x),F=$e(y-u[E],T),$=!t.middlewareData.shift;let A=O,_=F;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(_=T),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(A=x),$&&!h){const K=be(u.left,0),ne=be(u.right,0),q=be(u.top,0),H=be(u.bottom,0);v?_=y-2*(K!==0||ne!==0?K+ne:be(u.left,u.right)):A=b-2*(q!==0||H!==0?q+H:be(u.top,u.bottom))}await l({...t,availableWidth:_,availableHeight:A});const V=await a.getDimensions(c.floating);return y!==V.width||b!==V.height?{reset:{rects:!0}}:{}}}};function zt(){return typeof window<"u"}function ot(e){return $n(e)?(e.nodeName||"").toLowerCase():"#document"}function xe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ce(e){var t;return(t=($n(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $n(e){return zt()?e instanceof Node||e instanceof xe(e).Node:!1}function Ee(e){return zt()?e instanceof Element||e instanceof xe(e).Element:!1}function Ae(e){return zt()?e instanceof HTMLElement||e instanceof xe(e).HTMLElement:!1}function sn(e){return!zt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xe(e).ShadowRoot}function Rt(e){const{overflow:t,overflowX:r,overflowY:o,display:i}=Re(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&i!=="inline"&&i!=="contents"}function Qi(e){return/^(table|td|th)$/.test(ot(e))}function Ft(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Zi=/transform|translate|scale|rotate|perspective|filter/,es=/paint|layout|strict|content/,Xe=e=>!!e&&e!=="none";let hr;function Tr(e){const t=Ee(e)?Re(e):e;return Xe(t.transform)||Xe(t.translate)||Xe(t.scale)||Xe(t.rotate)||Xe(t.perspective)||!Nr()&&(Xe(t.backdropFilter)||Xe(t.filter))||Zi.test(t.willChange||"")||es.test(t.contain||"")}function ts(e){let t=ze(e);for(;Ae(t)&&!Ze(t);){if(Tr(t))return t;if(Ft(t))return null;t=ze(t)}return null}function Nr(){return hr==null&&(hr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),hr}function Ze(e){return/^(html|body|#document)$/.test(ot(e))}function Re(e){return xe(e).getComputedStyle(e)}function Mt(e){return Ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ze(e){if(ot(e)==="html")return e;const t=e.assignedSlot||e.parentNode||sn(e)&&e.host||Ce(e);return sn(t)?t.host:t}function zn(e){const t=ze(e);return Ze(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ae(t)&&Rt(t)?t:zn(t)}function kt(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=zn(e),s=i===((o=e.ownerDocument)==null?void 0:o.body),a=xe(i);if(s){const c=Rr(a);return t.concat(a,a.visualViewport||[],Rt(i)?i:[],c&&r?kt(c):[])}else return t.concat(i,kt(i,[],r))}function Rr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Fn(e){const t=Re(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=Ae(e),s=i?e.offsetWidth:r,a=i?e.offsetHeight:o,c=Dt(r)!==s||Dt(o)!==a;return c&&(r=s,o=a),{width:r,height:o,$:c}}function Dr(e){return Ee(e)?e:e.contextElement}function Qe(e){const t=Dr(e);if(!Ae(t))return _e(1);const r=t.getBoundingClientRect(),{width:o,height:i,$:s}=Fn(t);let a=(s?Dt(r.width):r.width)/o,c=(s?Dt(r.height):r.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const rs=_e(0);function Mn(e){const t=xe(e);return!Nr()||!t.visualViewport?rs:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ns(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==xe(e)?!1:t}function Ke(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),s=Dr(e);let a=_e(1);t&&(o?Ee(o)&&(a=Qe(o)):a=Qe(e));const c=ns(s,r,o)?Mn(s):_e(0);let l=(i.left+c.x)/a.x,d=(i.top+c.y)/a.y,u=i.width/a.x,p=i.height/a.y;if(s){const h=xe(s),v=o&&Ee(o)?xe(o):o;let y=h,b=Rr(y);for(;b&&o&&v!==y;){const k=Qe(b),E=b.getBoundingClientRect(),x=Re(b),T=E.left+(b.clientLeft+parseFloat(x.paddingLeft))*k.x,O=E.top+(b.clientTop+parseFloat(x.paddingTop))*k.y;l*=k.x,d*=k.y,u*=k.x,p*=k.y,l+=T,d+=O,y=xe(b),b=Rr(y)}}return It({width:u,height:p,x:l,y:d})}function Wt(e,t){const r=Mt(e).scrollLeft;return t?t.left+r:Ke(Ce(e)).left+r}function Wn(e,t){const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-Wt(e,r),i=r.top+t.scrollTop;return{x:o,y:i}}function os(e){let{elements:t,rect:r,offsetParent:o,strategy:i}=e;const s=i==="fixed",a=Ce(o),c=t?Ft(t.floating):!1;if(o===a||c&&s)return r;let l={scrollLeft:0,scrollTop:0},d=_e(1);const u=_e(0),p=Ae(o);if((p||!p&&!s)&&((ot(o)!=="body"||Rt(a))&&(l=Mt(o)),p)){const v=Ke(o);d=Qe(o),u.x=v.x+o.clientLeft,u.y=v.y+o.clientTop}const h=a&&!p&&!s?Wn(a,l):_e(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+u.x+h.x,y:r.y*d.y-l.scrollTop*d.y+u.y+h.y}}function is(e){return Array.from(e.getClientRects())}function ss(e){const t=Ce(e),r=Mt(e),o=e.ownerDocument.body,i=be(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=be(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-r.scrollLeft+Wt(e);const c=-r.scrollTop;return Re(o).direction==="rtl"&&(a+=be(t.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:c}}const an=25;function as(e,t){const r=xe(e),o=Ce(e),i=r.visualViewport;let s=o.clientWidth,a=o.clientHeight,c=0,l=0;if(i){s=i.width,a=i.height;const u=Nr();(!u||u&&t==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}const d=Wt(o);if(d<=0){const u=o.ownerDocument,p=u.body,h=getComputedStyle(p),v=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,y=Math.abs(o.clientWidth-p.clientWidth-v);y<=an&&(s-=y)}else d<=an&&(s+=d);return{width:s,height:a,x:c,y:l}}function ls(e,t){const r=Ke(e,!0,t==="fixed"),o=r.top+e.clientTop,i=r.left+e.clientLeft,s=Ae(e)?Qe(e):_e(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,l=i*s.x,d=o*s.y;return{width:a,height:c,x:l,y:d}}function ln(e,t,r){let o;if(t==="viewport")o=as(e,r);else if(t==="document")o=ss(Ce(e));else if(Ee(t))o=ls(t,r);else{const i=Mn(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return It(o)}function Bn(e,t){const r=ze(e);return r===t||!Ee(r)||Ze(r)?!1:Re(r).position==="fixed"||Bn(r,t)}function cs(e,t){const r=t.get(e);if(r)return r;let o=kt(e,[],!1).filter(c=>Ee(c)&&ot(c)!=="body"),i=null;const s=Re(e).position==="fixed";let a=s?ze(e):e;for(;Ee(a)&&!Ze(a);){const c=Re(a),l=Tr(a);!l&&c.position==="fixed"&&(i=null),(s?!l&&!i:!l&&c.position==="static"&&i&&(i.position==="absolute"||i.position==="fixed")||Rt(a)&&!l&&Bn(e,a))?o=o.filter(d=>d!==a):i=c,a=ze(a)}return t.set(e,o),o}function us(e){let{element:t,boundary:r,rootBoundary:o,strategy:i}=e;const s=[...r==="clippingAncestors"?Ft(t)?[]:cs(t,this._c):[].concat(r),o],a=ln(t,s[0],i);let c=a.top,l=a.right,d=a.bottom,u=a.left;for(let p=1;p<s.length;p++){const h=ln(t,s[p],i);c=be(h.top,c),l=$e(h.right,l),d=$e(h.bottom,d),u=be(h.left,u)}return{width:l-u,height:d-c,x:u,y:c}}function fs(e){const{width:t,height:r}=Fn(e);return{width:t,height:r}}function ds(e,t,r){const o=Ae(t),i=Ce(t),s=r==="fixed",a=Ke(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=_e(0);function d(){l.x=Wt(i)}if(o||!o&&!s)if((ot(t)!=="body"||Rt(i))&&(c=Mt(t)),o){const v=Ke(t,!0,s,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else i&&d();s&&!o&&i&&d();const u=i&&!o&&!s?Wn(i,c):_e(0),p=a.left+c.scrollLeft-l.x-u.x,h=a.top+c.scrollTop-l.y-u.y;return{x:p,y:h,width:a.width,height:a.height}}function gr(e){return Re(e).position==="static"}function cn(e,t){if(!Ae(e)||Re(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ce(e)===r&&(r=r.ownerDocument.body),r}function Un(e,t){const r=xe(e);if(Ft(e))return r;if(!Ae(e)){let i=ze(e);for(;i&&!Ze(i);){if(Ee(i)&&!gr(i))return i;i=ze(i)}return r}let o=cn(e,t);for(;o&&Qi(o)&&gr(o);)o=cn(o,t);return o&&Ze(o)&&gr(o)&&!Tr(o)?r:o||ts(e)||r}const ps=async function(e){const t=this.getOffsetParent||Un,r=this.getDimensions,o=await r(e.floating);return{reference:ds(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ms(e){return Re(e).direction==="rtl"}const hs={convertOffsetParentRelativeRectToViewportRelativeRect:os,getDocumentElement:Ce,getClippingRect:us,getOffsetParent:Un,getElementRects:ps,getClientRects:is,getDimensions:fs,getScale:Qe,isElement:Ee,isRTL:ms};function Yn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gs(e,t){let r=null,o;const i=Ce(e);function s(){var c;clearTimeout(o),(c=r)==null||c.disconnect(),r=null}function a(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const d=e.getBoundingClientRect(),{left:u,top:p,width:h,height:v}=d;if(c||t(),!h||!v)return;const y=Pt(p),b=Pt(i.clientWidth-(u+h)),k=Pt(i.clientHeight-(p+v)),E=Pt(u),x={rootMargin:-y+"px "+-b+"px "+-k+"px "+-E+"px",threshold:be(0,$e(1,l))||1};let T=!0;function O(F){const $=F[0].intersectionRatio;if($!==l){if(!T)return a();$?a(!1,$):o=setTimeout(()=>{a(!1,1e-7)},1e3)}$===1&&!Yn(d,e.getBoundingClientRect())&&a(),T=!1}try{r=new IntersectionObserver(O,{...x,root:i.ownerDocument})}catch{r=new IntersectionObserver(O,x)}r.observe(e)}return a(!0),s}function vs(e,t,r,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,d=Dr(e),u=i||s?[...d?kt(d):[],...t?kt(t):[]]:[];u.forEach(E=>{i&&E.addEventListener("scroll",r,{passive:!0}),s&&E.addEventListener("resize",r)});const p=d&&c?gs(d,r):null;let h=-1,v=null;a&&(v=new ResizeObserver(E=>{let[x]=E;x&&x.target===d&&v&&t&&(v.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var T;(T=v)==null||T.observe(t)})),r()}),d&&!l&&v.observe(d),t&&v.observe(t));let y,b=l?Ke(e):null;l&&k();function k(){const E=Ke(e);b&&!Yn(b,E)&&r(),b=E,y=requestAnimationFrame(k)}return r(),()=>{var E;u.forEach(x=>{i&&x.removeEventListener("scroll",r),s&&x.removeEventListener("resize",r)}),p==null||p(),(E=v)==null||E.disconnect(),v=null,l&&cancelAnimationFrame(y)}}const ys=Xi,bs=Ki,xs=Vi,ws=qi,ks=Hi,un=Yi,Es=Ji,Rs=(e,t,r)=>{const o=new Map,i={platform:hs,...r},s={...i.platform,_c:o};return Ui(e,t,{...i,platform:s})};var Ss=typeof document<"u",_s=function(){},Nt=Ss?ae.useLayoutEffect:_s;function Lt(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,o,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(o=r;o--!==0;)if(!Lt(e[o],t[o]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(t,i[o]))return!1;for(o=r;o--!==0;){const s=i[o];if(!(s==="_owner"&&e.$$typeof)&&!Lt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Vn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fn(e,t){const r=Vn(e);return Math.round(t*r)/r}function vr(e){const t=m.useRef(e);return Nt(()=>{t.current=e}),t}function Cs(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:l,open:d}=e,[u,p]=m.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,v]=m.useState(o);Lt(h,o)||v(o);const[y,b]=m.useState(null),[k,E]=m.useState(null),x=m.useCallback(R=>{R!==$.current&&($.current=R,b(R))},[]),T=m.useCallback(R=>{R!==A.current&&(A.current=R,E(R))},[]),O=s||y,F=a||k,$=m.useRef(null),A=m.useRef(null),_=m.useRef(u),V=l!=null,K=vr(l),ne=vr(i),q=vr(d),H=m.useCallback(()=>{if(!$.current||!A.current)return;const R={placement:t,strategy:r,middleware:h};ne.current&&(R.platform=ne.current),Rs($.current,A.current,R).then(L=>{const oe={...L,isPositioned:q.current!==!1};W.current&&!Lt(_.current,oe)&&(_.current=oe,mn.flushSync(()=>{p(oe)}))})},[h,t,r,ne,q]);Nt(()=>{d===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,p(R=>({...R,isPositioned:!1})))},[d]);const W=m.useRef(!1);Nt(()=>(W.current=!0,()=>{W.current=!1}),[]),Nt(()=>{if(O&&($.current=O),F&&(A.current=F),O&&F){if(K.current)return K.current(O,F,H);H()}},[O,F,H,K,V]);const J=m.useMemo(()=>({reference:$,floating:A,setReference:x,setFloating:T}),[x,T]),z=m.useMemo(()=>({reference:O,floating:F}),[O,F]),U=m.useMemo(()=>{const R={position:r,left:0,top:0};if(!z.floating)return R;const L=fn(z.floating,u.x),oe=fn(z.floating,u.y);return c?{...R,transform:"translate("+L+"px, "+oe+"px)",...Vn(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:L,top:oe}},[r,c,z.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:H,refs:J,elements:z,floatingStyles:U}),[u,H,J,z,U])}const Os=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:o,padding:i}=typeof e=="function"?e(r):e;return o&&t(o)?o.current!=null?un({element:o.current,padding:i}).fn(r):{}:o?un({element:o,padding:i}).fn(r):{}}}},js=(e,t)=>{const r=ys(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ps=(e,t)=>{const r=bs(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ts=(e,t)=>({fn:Es(e).fn,options:[e,t]}),Ns=(e,t)=>{const r=xs(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ds=(e,t)=>{const r=ws(e);return{name:r.name,fn:r.fn,options:[e,t]}},As=(e,t)=>{const r=ks(e);return{name:r.name,fn:r.fn,options:[e,t]}},Is=(e,t)=>{const r=Os(e);return{name:r.name,fn:r.fn,options:[e,t]}};var Ls="Arrow",Hn=m.forwardRef((e,t)=>{const{children:r,width:o=10,height:i=5,...s}=e;return M.jsx(Fe.svg,{...s,ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:M.jsx("polygon",{points:"0,0 30,0 15,10"})})});Hn.displayName=Ls;var $s=Hn;function zs(e){const[t,r]=m.useState(void 0);return Le(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let a,c;if("borderBoxSize"in s){const l=s.borderBoxSize,d=Array.isArray(l)?l[0]:l;a=d.inlineSize,c=d.blockSize}else a=e.offsetWidth,c=e.offsetHeight;r({width:a,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else r(void 0)},[e]),t}var Ar="Popper",[Gn,Xn]=Pn(Ar),[Fs,Kn]=Gn(Ar),Jn=e=>{const{__scopePopper:t,children:r}=e,[o,i]=m.useState(null);return M.jsx(Fs,{scope:t,anchor:o,onAnchorChange:i,children:r})};Jn.displayName=Ar;var qn="PopperAnchor",Qn=m.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:o,...i}=e,s=Kn(qn,r),a=m.useRef(null),c=Je(t,a),l=m.useRef(null);return m.useEffect(()=>{const d=l.current;l.current=(o==null?void 0:o.current)||a.current,d!==l.current&&s.onAnchorChange(l.current)}),o?null:M.jsx(Fe.div,{...i,ref:c})});Qn.displayName=qn;var Ir="PopperContent",[Ms,Ws]=Gn(Ir),Zn=m.forwardRef((e,t)=>{var r,o,i,s,a,c;const{__scopePopper:l,side:d="bottom",sideOffset:u=0,align:p="center",alignOffset:h=0,arrowPadding:v=0,avoidCollisions:y=!0,collisionBoundary:b=[],collisionPadding:k=0,sticky:E="partial",hideWhenDetached:x=!1,updatePositionStrategy:T="optimized",onPlaced:O,...F}=e,$=Kn(Ir,l),[A,_]=m.useState(null),V=Je(t,je=>_(je)),[K,ne]=m.useState(null),q=zs(K),H=(q==null?void 0:q.width)??0,W=(q==null?void 0:q.height)??0,J=d+(p!=="center"?"-"+p:""),z=typeof k=="number"?k:{top:0,right:0,bottom:0,left:0,...k},U=Array.isArray(b)?b:[b],R=U.length>0,L={padding:z,boundary:U.filter(Us),altBoundary:R},{refs:oe,floatingStyles:ce,placement:ue,isPositioned:ee,middlewareData:X}=Cs({strategy:"fixed",placement:J,whileElementsMounted:(...je)=>vs(...je,{animationFrame:T==="always"}),elements:{reference:$.anchor},middleware:[js({mainAxis:u+W,alignmentAxis:h}),y&&Ps({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?Ts():void 0,...L}),y&&Ns({...L}),Ds({...L,apply:({elements:je,rects:it,availableWidth:ke,availableHeight:ge})=>{const{width:Me,height:We}=it.reference,me=je.floating.style;me.setProperty("--radix-popper-available-width",`${ke}px`),me.setProperty("--radix-popper-available-height",`${ge}px`),me.setProperty("--radix-popper-anchor-width",`${Me}px`),me.setProperty("--radix-popper-anchor-height",`${We}px`)}}),K&&Is({element:K,padding:v}),Ys({arrowWidth:H,arrowHeight:W}),x&&As({strategy:"referenceHidden",...L})]}),[he,fe]=ro(ue),Z=$t(O);Le(()=>{ee&&(Z==null||Z())},[ee,Z]);const de=(r=X.arrow)==null?void 0:r.x,pe=(o=X.arrow)==null?void 0:o.y,se=((i=X.arrow)==null?void 0:i.centerOffset)!==0,[Oe,we]=m.useState();return Le(()=>{A&&we(window.getComputedStyle(A).zIndex)},[A]),M.jsx("div",{ref:oe.setFloating,"data-radix-popper-content-wrapper":"",style:{...ce,transform:ee?ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Oe,"--radix-popper-transform-origin":[(s=X.transformOrigin)==null?void 0:s.x,(a=X.transformOrigin)==null?void 0:a.y].join(" "),...((c=X.hide)==null?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:M.jsx(Ms,{scope:l,placedSide:he,onArrowChange:ne,arrowX:de,arrowY:pe,shouldHideArrow:se,children:M.jsx(Fe.div,{"data-side":he,"data-align":fe,...F,ref:V,style:{...F.style,animation:ee?void 0:"none"}})})})});Zn.displayName=Ir;var eo="PopperArrow",Bs={top:"bottom",right:"left",bottom:"top",left:"right"},to=m.forwardRef(function(e,t){const{__scopePopper:r,...o}=e,i=Ws(eo,r),s=Bs[i.placedSide];return M.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:M.jsx($s,{...o,ref:t,style:{...o.style,display:"block"}})})});to.displayName=eo;function Us(e){return e!==null}var Ys=e=>({name:"transformOrigin",options:e,fn(t){var r,o,i;const{placement:s,rects:a,middlewareData:c}=t,l=((r=c.arrow)==null?void 0:r.centerOffset)!==0,d=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[p,h]=ro(s),v={start:"0%",center:"50%",end:"100%"}[h],y=(((o=c.arrow)==null?void 0:o.x)??0)+d/2,b=(((i=c.arrow)==null?void 0:i.y)??0)+u/2;let k="",E="";return p==="bottom"?(k=l?v:`${y}px`,E=`${-u}px`):p==="top"?(k=l?v:`${y}px`,E=`${a.floating.height+u}px`):p==="right"?(k=`${-u}px`,E=l?v:`${b}px`):p==="left"&&(k=`${a.floating.width+u}px`,E=l?v:`${b}px`),{data:{x:k,y:E}}}});function ro(e){const[t,r="center"]=e.split("-");return[t,r]}var Vs=Jn,Hs=Qn,Gs=Zn,Xs=to,Ks="Portal",no=m.forwardRef((e,t)=>{var r;const{container:o,...i}=e,[s,a]=m.useState(!1);Le(()=>a(!0),[]);const c=o||s&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return c?dn.createPortal(M.jsx(Fe.div,{...i,ref:t}),c):null});no.displayName=Ks;function Js(e,t){return m.useReducer((r,o)=>t[r][o]??r,e)}var Lr=e=>{const{present:t,children:r}=e,o=qs(t),i=typeof r=="function"?r({present:o.isPresent}):m.Children.only(r),s=Je(o.ref,Qs(i));return typeof r=="function"||o.isPresent?m.cloneElement(i,{ref:s}):null};Lr.displayName="Presence";function qs(e){const[t,r]=m.useState(),o=m.useRef(null),i=m.useRef(e),s=m.useRef("none"),a=e?"mounted":"unmounted",[c,l]=Js(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const d=Tt(o.current);s.current=c==="mounted"?d:"none"},[c]),Le(()=>{const d=o.current,u=i.current;if(u!==e){const p=s.current,h=Tt(d);e?l("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(u&&p!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Le(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,p=v=>{const y=Tt(o.current).includes(CSS.escape(v.animationName));if(v.target===t&&y&&(l("ANIMATION_END"),!i.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=v=>{v.target===t&&(s.current=Tt(o.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(d),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:m.useCallback(d=>{o.current=d?getComputedStyle(d):null,r(d)},[])}}function Tt(e){return(e==null?void 0:e.animationName)||"none"}function Qs(e){var t,r;let o=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?e.ref:(o=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,i=o&&"isReactWarning"in o&&o.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var Zs=m[" useInsertionEffect ".trim().toString()]||Le;function ea({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){const[i,s,a]=ta({defaultProp:t,onChange:r}),c=e!==void 0,l=c?e:i;{const u=m.useRef(e!==void 0);m.useEffect(()=>{const p=u.current;p!==c&&console.warn(`${o} is changing from ${p?"controlled":"uncontrolled"} to ${c?"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.`),u.current=c},[c,o])}const d=m.useCallback(u=>{var p;if(c){const h=ra(u)?u(e):u;h!==e&&((p=a.current)==null||p.call(a,h))}else s(u)},[c,e,s,a]);return[l,d]}function ta({defaultProp:e,onChange:t}){const[r,o]=m.useState(e),i=m.useRef(r),s=m.useRef(t);return Zs(()=>{s.current=t},[t]),m.useEffect(()=>{var a;i.current!==r&&((a=s.current)==null||a.call(s,r),i.current=r)},[r,i]),[r,o,s]}function ra(e){return typeof e=="function"}var na=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"}),oa="VisuallyHidden",oo=m.forwardRef((e,t)=>M.jsx(Fe.span,{...e,ref:t,style:{...na,...e.style}}));oo.displayName=oa;var ia=oo,[Bt]=Pn("Tooltip",[Xn]),Ut=Xn(),io="TooltipProvider",sa=700,Sr="tooltip.open",[aa,$r]=Bt(io),so=e=>{const{__scopeTooltip:t,delayDuration:r=sa,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:s}=e,a=m.useRef(!0),c=m.useRef(!1),l=m.useRef(0);return m.useEffect(()=>{const d=l.current;return()=>window.clearTimeout(d)},[]),M.jsx(aa,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:m.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:m.useCallback(d=>{c.current=d},[]),disableHoverableContent:i,children:s})};so.displayName=io;var Et="Tooltip",[la,St]=Bt(Et),ao=e=>{const{__scopeTooltip:t,children:r,open:o,defaultOpen:i,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,l=$r(Et,e.__scopeTooltip),d=Ut(t),[u,p]=m.useState(null),h=Ti(),v=m.useRef(0),y=a??l.disableHoverableContent,b=c??l.delayDuration,k=m.useRef(!1),[E,x]=ea({prop:o,defaultProp:i??!1,onChange:A=>{A?(l.onOpen(),document.dispatchEvent(new CustomEvent(Sr))):l.onClose(),s==null||s(A)},caller:Et}),T=m.useMemo(()=>E?k.current?"delayed-open":"instant-open":"closed",[E]),O=m.useCallback(()=>{window.clearTimeout(v.current),v.current=0,k.current=!1,x(!0)},[x]),F=m.useCallback(()=>{window.clearTimeout(v.current),v.current=0,x(!1)},[x]),$=m.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{k.current=!0,x(!0),v.current=0},b)},[b,x]);return m.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),M.jsx(Vs,{...d,children:M.jsx(la,{scope:t,contentId:h,open:E,stateAttribute:T,trigger:u,onTriggerChange:p,onTriggerEnter:m.useCallback(()=>{l.isOpenDelayedRef.current?$():O()},[l.isOpenDelayedRef,$,O]),onTriggerLeave:m.useCallback(()=>{y?F():(window.clearTimeout(v.current),v.current=0)},[F,y]),onOpen:O,onClose:F,disableHoverableContent:y,children:r})})};ao.displayName=Et;var _r="TooltipTrigger",lo=m.forwardRef((e,t)=>{const{__scopeTooltip:r,...o}=e,i=St(_r,r),s=$r(_r,r),a=Ut(r),c=m.useRef(null),l=Je(t,c,i.onTriggerChange),d=m.useRef(!1),u=m.useRef(!1),p=m.useCallback(()=>d.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),M.jsx(Hs,{asChild:!0,...a,children:M.jsx(Fe.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...o,ref:l,onPointerMove:Te(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:Te(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:Te(e.onPointerDown,()=>{i.open&&i.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:Te(e.onFocus,()=>{d.current||i.onOpen()}),onBlur:Te(e.onBlur,i.onClose),onClick:Te(e.onClick,i.onClose)})})});lo.displayName=_r;var zr="TooltipPortal",[ca,ua]=Bt(zr,{forceMount:void 0}),co=e=>{const{__scopeTooltip:t,forceMount:r,children:o,container:i}=e,s=St(zr,t);return M.jsx(ca,{scope:t,forceMount:r,children:M.jsx(Lr,{present:r||s.open,children:M.jsx(no,{asChild:!0,container:i,children:o})})})};co.displayName=zr;var et="TooltipContent",uo=m.forwardRef((e,t)=>{const r=ua(et,e.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...s}=e,a=St(et,e.__scopeTooltip);return M.jsx(Lr,{present:o||a.open,children:a.disableHoverableContent?M.jsx(fo,{side:i,...s,ref:t}):M.jsx(fa,{side:i,...s,ref:t})})}),fa=m.forwardRef((e,t)=>{const r=St(et,e.__scopeTooltip),o=$r(et,e.__scopeTooltip),i=m.useRef(null),s=Je(t,i),[a,c]=m.useState(null),{trigger:l,onClose:d}=r,u=i.current,{onPointerInTransitChange:p}=o,h=m.useCallback(()=>{c(null),p(!1)},[p]),v=m.useCallback((y,b)=>{const k=y.currentTarget,E={x:y.clientX,y:y.clientY},x=ha(E,k.getBoundingClientRect()),T=ga(E,x),O=va(b.getBoundingClientRect()),F=ba([...T,...O]);c(F),p(!0)},[p]);return m.useEffect(()=>()=>h(),[h]),m.useEffect(()=>{if(l&&u){const y=k=>v(k,u),b=k=>v(k,l);return l.addEventListener("pointerleave",y),u.addEventListener("pointerleave",b),()=>{l.removeEventListener("pointerleave",y),u.removeEventListener("pointerleave",b)}}},[l,u,v,h]),m.useEffect(()=>{if(a){const y=b=>{const k=b.target,E={x:b.clientX,y:b.clientY},x=(l==null?void 0:l.contains(k))||(u==null?void 0:u.contains(k)),T=!ya(E,a);x?h():T&&(h(),d())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,u,a,d,h]),M.jsx(fo,{...e,ref:s})}),[da,pa]=Bt(Et,{isInside:!1}),ma=hi("TooltipContent"),fo=m.forwardRef((e,t)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,l=St(et,r),d=Ut(r),{onClose:u}=l;return m.useEffect(()=>(document.addEventListener(Sr,u),()=>document.removeEventListener(Sr,u)),[u]),m.useEffect(()=>{if(l.trigger){const p=h=>{const v=h.target;v!=null&&v.contains(l.trigger)&&u()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,u]),M.jsx(Dn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:u,children:M.jsxs(Gs,{"data-state":l.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[M.jsx(ma,{children:o}),M.jsx(da,{scope:r,isInside:!0,children:M.jsx(ia,{id:l.contentId,role:"tooltip",children:i||o})})]})})});uo.displayName=et;var po="TooltipArrow",mo=m.forwardRef((e,t)=>{const{__scopeTooltip:r,...o}=e,i=Ut(r);return pa(po,r).isInside?null:M.jsx(Xs,{...i,...o,ref:t})});mo.displayName=po;function ha(e,t){const r=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,o,i,s)){case s:return"left";case i:return"right";case r:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function ga(e,t,r=5){const o=[];switch(t){case"top":o.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":o.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":o.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":o.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return o}function va(e){const{top:t,right:r,bottom:o,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:o},{x:i,y:o}]}function ya(e,t){const{x:r,y:o}=e;let i=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],l=t[a],d=c.x,u=c.y,p=l.x,h=l.y;u>o!=h>o&&r<(p-d)*(o-u)/(h-u)+d&&(i=!i)}return i}function ba(e){const t=e.slice();return t.sort((r,o)=>r.x<o.x?-1:r.x>o.x?1:r.y<o.y?-1:r.y>o.y?1:0),xa(t)}function xa(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const i=e[o];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))t.pop();else break}t.push(i)}t.pop();const r=[];for(let o=e.length-1;o>=0;o--){const i=e[o];for(;r.length>=2;){const s=r[r.length-1],a=r[r.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))r.pop();else break}r.push(i)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var wa=so,ka=ao,Ea=lo,Ra=co,ho=uo,Sa=mo;const _a=wa,Ca=ka,Oa=Ea,go=m.forwardRef(({className:e,sideOffset:t=6,...r},o)=>M.jsx(Ra,{children:M.jsxs(ho,{ref:o,sideOffset:t,className:`z-50 overflow-hidden rounded-lg border border-slate-950 bg-slate-950 px-3 py-1 text-xs text-white ${e??""}`,...r,children:[r.children,M.jsx(Sa,{className:"fill-slate-950"})]})}));go.displayName=ho.displayName;const ja=Po("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-blue-500 text-white",save:"text-white",delete:"text-white",update:"text-white",cancel:"text-[#414651] border border-[#D5D7DA]",outline:"text-[#003B71]"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3 text-xs",lg:"h-11 rounded-md px-8",icon:"h-10 w-10",xs:"h-5 px-2 text-xs rounded"}},defaultVariants:{variant:"default",size:"default"}}),vo=ae.forwardRef(({className:e,variant:t,size:r,loading:o=!1,disabled:i,children:s,leftIcon:a,datatestid:c,rightIcon:l,style:d,iconButton:u=!1,tooltipLabel:p,saveColor:h="#003B71",deleteColor:v="#FF6070",updateColor:y="#003B71",cancelColor:b="#ffffff",outlineColor:k="#003B71",...E},x)=>{const T={...t&&{save:{backgroundColor:h},delete:{backgroundColor:v},update:{backgroundColor:y},cancel:{backgroundColor:b},outline:{backgroundColor:k}}[t],...d},O=M.jsxs("button",{ref:x,"data-testid":c,className:fi(ja({variant:t,size:r}),e),style:T,disabled:i||o,...E,children:[o&&M.jsx("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),!o&&a&&a,s,!o&&l&&l]});return u?M.jsx(_a,{children:M.jsxs(Ca,{children:[M.jsx(Oa,{asChild:!0,children:O}),p&&M.jsx(go,{children:p})]})}):O});vo.displayName="Button";const Pa=({config:e})=>{const{navItems:t,user:r,createButtonRoles:o,createButtonLabel:i="Create",createButtonPath:s,brandName:a="Amphenol",brandSubtitle:c="COMMUNICATION SOLUTIONS",logo:l,helpLabel:d="Help Center",helpIcon:u,onSignOut:p,onNavigate:h,className:v=""}=e,{isExpanded:y,toggleSidebar:b,openSubmenu:k,toggleSubmenu:E}=gn(),[x,T]=ae.useState(window.location.pathname),[O,F]=ae.useState(!1),[$,A]=ae.useState(!1),[_,V]=ae.useState(null);ae.useEffect(()=>{const z=()=>T(window.location.pathname);return window.addEventListener("popstate",z),()=>window.removeEventListener("popstate",z)},[]);const K=(z,U)=>{z.preventDefault(),U&&(h?h(U):(window.history.pushState({},"",U),window.dispatchEvent(new PopStateEvent("popstate"))))},ne=()=>r.email?r.email.split("@")[0]:"User",q=()=>r.email?r.email.charAt(0).toUpperCase():"U",H=()=>{p?p():window.location.href="/c/portal/logout"},W=!o||o.includes(r.role),J=t.reduce((z,U)=>{const R=U.section||"GENERAL";return z[R]||(z[R]=[]),z[R].push(U),z},{});return D.jsxs("aside",{style:{backgroundColor:"#0f172a"},className:`rdr-sidebar ${y?"expanded":"collapsed"} ${v}`,children:[D.jsxs("div",{className:"sidebar-header ",style:{paddingTop:"10px"},children:[D.jsxs("div",{className:"logo-section",onClick:b,children:[D.jsx("span",{className:"logo-icon ",style:{color:"var(--sidebar-accent)",marginTop:"15px"},children:l??D.jsx(Ro,{})}),y&&D.jsxs("div",{className:"brand-text",children:[D.jsx("h2",{children:a}),c&&D.jsx("span",{children:c})]})]}),y&&D.jsx(vo,{className:"menu-toggle ",style:{paddingLeft:"0px",marginLeft:"0px"},onClick:b,"aria-label":"Collapse sidebar",children:D.jsx(ko,{})})]}),W&&s&&D.jsx("div",{className:"sidebar-actions",children:D.jsxs("button",{className:"sidebar-create-btn",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",width:y?"100%":"44px",height:"44px",padding:y?"0 16px":"0",borderRadius:"10px",border:"none",outline:"none",boxShadow:"none",cursor:"pointer",fontSize:"14px",fontWeight:600,color:"#fff",background:$?"#149B6E":"#18B885",transition:"background-color 0.2s ease"},onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),onClick:z=>K(z,s),children:[D.jsx(So,{}),y&&D.jsx("span",{children:i})]})}),D.jsx("div",{className:"sidebar-nav",children:Object.entries(J).map(([z,U])=>{const R=U.filter(L=>!L.roles||L.roles.includes(r.role));return R.length?D.jsxs("div",{className:"nav-section",style:{listStyleType:"none"},children:[y&&D.jsx("h4",{className:"section-title",children:z}),D.jsx("ul",{className:"nav-items",children:R.map(L=>{var ue,ee;const oe=(ue=L.subItems)==null?void 0:ue.some(X=>X.path&&x.includes(X.path)),ce=L.path?x===L.path:!1;return D.jsx("li",{children:(ee=L.subItems)!=null&&ee.length?D.jsxs(D.Fragment,{children:[D.jsxs("div",{className:`nav-item ${k===L.name||oe?"active":""}`,"data-label":L.name,onClick:()=>E(L.name),onMouseEnter:()=>V(L.name),onMouseLeave:()=>V(null),style:k===L.name||oe||_===L.name?{backgroundColor:"#10B981",border:"1px solid #10B981",borderRadius:"8px"}:{},children:[D.jsx("span",{className:"nav-icon",children:L.icon}),y&&D.jsxs(D.Fragment,{children:[D.jsx("span",{className:"nav-text",children:L.name}),D.jsx("span",{className:"submenu-arrow",children:k===L.name?"−":"+"})]})]}),y&&k===L.name&&D.jsx("ul",{className:"submenu",children:L.subItems.map(X=>{const he=X.path?x===X.path:!1;return D.jsx("li",{children:D.jsxs("a",{href:X.path||"/",onClick:fe=>K(fe,X.path),className:`submenu-item ${he?"active-sub":""}`,children:[X.icon&&D.jsx("span",{className:"submenu-icon",children:X.icon}),D.jsx("span",{children:X.name})]})},X.name)})})]}):D.jsxs("a",{href:L.path||"/","data-label":L.name,onClick:X=>K(X,L.path),style:ce||_===L.name?{backgroundColor:"#10B981",border:"none",borderRadius:"8px",outline:"1px solid #10B981",outlineOffset:"0px"}:{border:"none"},onMouseEnter:()=>V(L.name),onMouseLeave:()=>V(null),className:`nav-item ${ce?"active":""}`,children:[D.jsx("span",{className:"nav-icon",children:L.icon}),y&&D.jsx("span",{className:"nav-text",children:L.name})]})},L.name)})})]},z):null})}),D.jsxs("div",{className:"sidebar-footer",children:[D.jsxs("div",{className:"footer-link","data-label":d,children:[D.jsx("span",{children:u??D.jsx(Eo,{})}),y&&D.jsx("span",{children:d})]}),D.jsxs("div",{className:"user-profile-wrapper",children:[D.jsxs("div",{className:"user-profile",onClick:()=>F(z=>!z),children:[D.jsx("div",{className:"avatar",children:q()}),y&&D.jsxs("div",{className:"user-info",children:[D.jsx("div",{className:"user-name",children:ne()}),D.jsx("div",{className:"user-role",children:r.roleName})]})]}),O&&D.jsxs("div",{className:"profile-popup",children:[D.jsx("button",{className:"popup-close",onClick:()=>F(!1),"aria-label":"Close",children:"✕"}),D.jsxs("div",{className:"popup-header",children:[D.jsx("div",{className:"popup-avatar",children:q()}),D.jsxs("div",{className:"popup-user-details",children:[D.jsx("div",{className:"popup-name",children:ne()}),D.jsx("div",{className:"popup-role",children:r.roleName}),D.jsx("div",{className:"popup-email",children:r.email})]})]}),D.jsx("div",{className:"popup-divider"}),D.jsxs("button",{className:"signout-btn",onClick:H,children:[D.jsx(_o,{}),D.jsx("span",{children:"Sign Out"})]})]})]})]})]})};exports.SideNavbar=Pa;exports.SidebarProvider=wo;exports.useSidebar=gn;
|
package/dist/SideNavBar.es.js
CHANGED
|
@@ -6528,7 +6528,8 @@ const $a = ({ config: e }) => {
|
|
|
6528
6528
|
y && /* @__PURE__ */ D.jsx(
|
|
6529
6529
|
ho,
|
|
6530
6530
|
{
|
|
6531
|
-
className: "menu-toggle",
|
|
6531
|
+
className: "menu-toggle ",
|
|
6532
|
+
style: { paddingLeft: "0px", marginLeft: "0px" },
|
|
6532
6533
|
onClick: b,
|
|
6533
6534
|
"aria-label": "Collapse sidebar",
|
|
6534
6535
|
children: /* @__PURE__ */ D.jsx(_o, {})
|