@adamosuiteservices/ui 2.10.11 → 2.10.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/dist/accordion-rounded.cjs +4 -4
  2. package/dist/accordion-rounded.js +3 -2
  3. package/dist/accordion.cjs +5 -5
  4. package/dist/accordion.js +11 -10
  5. package/dist/alert.cjs +1 -1
  6. package/dist/alert.js +1 -0
  7. package/dist/avatar.cjs +1 -1
  8. package/dist/avatar.js +1 -0
  9. package/dist/badge.cjs +2 -2
  10. package/dist/badge.js +1 -0
  11. package/dist/breadcrumb.cjs +3 -3
  12. package/dist/breadcrumb.js +10 -9
  13. package/dist/{button-BXTNbWAk.js → button-CBy_oQDu.js} +1 -0
  14. package/dist/button-group.cjs +3 -3
  15. package/dist/button-group.js +10 -9
  16. package/dist/{button-r2Y2aX25.cjs → button-hCW1Pww0.cjs} +1 -1
  17. package/dist/button.cjs +1 -1
  18. package/dist/button.js +1 -1
  19. package/dist/calendar.cjs +1 -1
  20. package/dist/calendar.js +3 -2
  21. package/dist/card.cjs +3 -3
  22. package/dist/card.js +1 -0
  23. package/dist/{checkbox-DmvyFfB3.js → checkbox-B-Lu1-qJ.js} +3 -2
  24. package/dist/checkbox-DHFt3l5c.cjs +22 -0
  25. package/dist/checkbox.cjs +1 -1
  26. package/dist/checkbox.js +1 -1
  27. package/dist/collapsible.cjs +1 -1
  28. package/dist/collapsible.js +10 -9
  29. package/dist/combobox.cjs +1 -1
  30. package/dist/combobox.js +6 -5
  31. package/dist/context-menu.cjs +1 -1
  32. package/dist/context-menu.js +3 -2
  33. package/dist/dialog.cjs +1 -1
  34. package/dist/dialog.js +3 -2
  35. package/dist/dropdown-menu.cjs +1 -1
  36. package/dist/dropdown-menu.js +3 -2
  37. package/dist/field.cjs +1 -1
  38. package/dist/field.js +39 -38
  39. package/dist/hover-card.cjs +1 -1
  40. package/dist/hover-card.js +5 -4
  41. package/dist/icon-DKAhvlX_.js +36 -0
  42. package/dist/{icon-Bg5HV6Ls.cjs → icon-DPMQJBkA.cjs} +1 -1
  43. package/dist/icon.cjs +1 -1
  44. package/dist/icon.js +1 -1
  45. package/dist/index-8iwAKZIp.cjs +1 -0
  46. package/dist/{index-Se4vRnIO.js → index-B6gxHWt9.js} +2 -1
  47. package/dist/{index-yWvyIlmA.js → index-B76LQ4E5.js} +4 -3
  48. package/dist/{index-B0M7VOwp.js → index-BAEhLEFF.js} +1 -0
  49. package/dist/{index-DniCthJA.js → index-BIydBVaH.js} +60 -59
  50. package/dist/{index-CZZ3llmi.js → index-BPOsnOxS.js} +1 -0
  51. package/dist/index-BaCYnOIG.cjs +1 -0
  52. package/dist/index-BnkHpTJs.cjs +1 -0
  53. package/dist/index-C2P2kXMc.cjs +41 -0
  54. package/dist/index-CBuLZ39k.cjs +1 -0
  55. package/dist/index-CC6DBo2g.cjs +1 -0
  56. package/dist/index-CRWn-2fF.cjs +1 -0
  57. package/dist/{index-BpWB3aFK.js → index-CSFEzRxy.js} +17 -16
  58. package/dist/index-CZWDxvEo.js +16 -0
  59. package/dist/index-Ca99LLZF.cjs +5 -0
  60. package/dist/{index-BBoIAjAs.js → index-Ce7JfyIP.js} +2 -1
  61. package/dist/{index-CUWMxxKG.js → index-CmWhhuj7.js} +1 -0
  62. package/dist/index-Cqf5g2f_.cjs +1 -0
  63. package/dist/index-DE3jjVoC.cjs +1 -0
  64. package/dist/{index-C0YiLSjW.js → index-D_hmhfRp.js} +3 -2
  65. package/dist/index-Da298sEl.cjs +1 -0
  66. package/dist/{index-CBjZooac.js → index-e0gNU5O1.js} +1 -0
  67. package/dist/index-i5lLg35-.cjs +1 -0
  68. package/dist/{index-DFPDUUq7.js → index-wujanfX3.js} +8 -7
  69. package/dist/{input-DSmxdfq5.cjs → input-CWDpI1Ua.cjs} +2 -2
  70. package/dist/{input-BQZUpTEY.js → input-DFvZLcgm.js} +1 -0
  71. package/dist/input-group.cjs +1 -1
  72. package/dist/input-group.js +4 -3
  73. package/dist/input.cjs +1 -1
  74. package/dist/input.js +1 -1
  75. package/dist/kbd.cjs +1 -1
  76. package/dist/kbd.js +1 -0
  77. package/dist/{label-CrsELeIw.js → label-C6zVnc3d.js} +1 -0
  78. package/dist/label-DqfX9cHc.cjs +7 -0
  79. package/dist/label.cjs +1 -1
  80. package/dist/label.js +1 -1
  81. package/dist/pagination.cjs +1 -1
  82. package/dist/pagination.js +4 -3
  83. package/dist/{popover-DAwH8jUh.js → popover-DcQ18EVl.js} +71 -70
  84. package/dist/popover-cGp_rNLg.cjs +15 -0
  85. package/dist/popover.cjs +1 -1
  86. package/dist/popover.js +1 -1
  87. package/dist/progress.cjs +1 -1
  88. package/dist/progress.js +1 -0
  89. package/dist/radio-group.cjs +1 -1
  90. package/dist/radio-group.js +5 -4
  91. package/dist/select.cjs +1 -1
  92. package/dist/select.js +7 -6
  93. package/dist/separator-CCGaTo09.cjs +7 -0
  94. package/dist/{separator-DVypR3Qf.js → separator-CsaqP20m.js} +1 -0
  95. package/dist/separator.cjs +1 -1
  96. package/dist/separator.js +1 -1
  97. package/dist/{sheet-mV8cYfd2.js → sheet-CPf9Guon.js} +3 -2
  98. package/dist/{sheet-IGhaVAfU.cjs → sheet-DVT_djHX.cjs} +3 -3
  99. package/dist/sheet.cjs +1 -1
  100. package/dist/sheet.js +1 -1
  101. package/dist/sidebar.cjs +1 -1
  102. package/dist/sidebar.js +25 -24
  103. package/dist/skeleton.cjs +1 -1
  104. package/dist/skeleton.js +6 -5
  105. package/dist/slider.cjs +1 -1
  106. package/dist/slider.js +2 -1
  107. package/dist/spinner.cjs +1 -1
  108. package/dist/spinner.js +10 -9
  109. package/dist/switch.cjs +1 -1
  110. package/dist/switch.js +14 -13
  111. package/dist/table.cjs +6 -6
  112. package/dist/table.js +1 -0
  113. package/dist/tabs-underline.cjs +1 -1
  114. package/dist/tabs-underline.js +8 -7
  115. package/dist/tabs.cjs +1 -1
  116. package/dist/tabs.js +3 -2
  117. package/dist/{textarea-CUPWKl-S.js → textarea-BRCnIxdB.js} +1 -0
  118. package/dist/{textarea-CG7iQcb3.cjs → textarea-DkFUS_oS.cjs} +1 -1
  119. package/dist/textarea.cjs +1 -1
  120. package/dist/textarea.js +1 -1
  121. package/dist/toaster.cjs +2 -2
  122. package/dist/toaster.js +2 -1
  123. package/dist/toggle.cjs +1 -1
  124. package/dist/toggle.js +1 -0
  125. package/dist/tooltip.cjs +1 -1
  126. package/dist/tooltip.js +5 -4
  127. package/dist/typography.cjs +1 -1
  128. package/dist/typography.js +5 -4
  129. package/package.json +2 -1
  130. package/dist/checkbox-Bn7H8EaT.cjs +0 -22
  131. package/dist/icon-DG_i4bz2.js +0 -35
  132. package/dist/index-BFyr34mw.cjs +0 -5
  133. package/dist/index-BX9hz-JD.js +0 -15
  134. package/dist/index-BcGMAmWE.cjs +0 -1
  135. package/dist/index-Bd0gQB0k.cjs +0 -1
  136. package/dist/index-BeWgla7c.cjs +0 -1
  137. package/dist/index-COuvjZLM.cjs +0 -1
  138. package/dist/index-CTjlbbt9.cjs +0 -1
  139. package/dist/index-Cmx9M9cZ.cjs +0 -1
  140. package/dist/index-CzRiuk60.cjs +0 -1
  141. package/dist/index-DIwmXz1u.cjs +0 -1
  142. package/dist/index-DMs8RL3E.cjs +0 -41
  143. package/dist/index-Dbj9vHNq.cjs +0 -1
  144. package/dist/index-DmGzwG2z.cjs +0 -1
  145. package/dist/label-1jx6a0Sm.cjs +0 -7
  146. package/dist/popover-CYbik-H4.cjs +0 -15
  147. package/dist/separator-Brpax0EI.cjs +0 -7
@@ -1 +0,0 @@
1
- "use strict";const qt=require("react"),Oe=require("react-dom"),At=require("./index-CocSS1YK.cjs"),X=require("./jsx-runtime-BB_1_6y_.cjs"),Xt=require("./index-_XxjJPRD.cjs"),Pe=require("./index-cwZN7ZY3.cjs"),Ce=require("./index-CzY-WZXL.cjs"),$t=require("./index-MQ0c3ZX_.cjs"),Se=require("./index-bSPhqlcX.cjs");function Yt(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const R=Yt(qt),Ee=Yt(Oe),De=["top","right","bottom","left"],Z=Math.min,_=Math.max,at=Math.round,ct=Math.floor,z=t=>({x:t,y:t}),Le={left:"right",right:"left",bottom:"top",top:"bottom"},Me={start:"end",end:"start"};function yt(t,e,n){return _(t,Z(e,n))}function Y(t,e){return typeof t=="function"?t(e):t}function U(t){return t.split("-")[0]}function tt(t){return t.split("-")[1]}function Rt(t){return t==="x"?"y":"x"}function Ot(t){return t==="y"?"height":"width"}const Te=new Set(["top","bottom"]);function V(t){return Te.has(U(t))?"y":"x"}function Pt(t){return Rt(V(t))}function $e(t,e,n){n===void 0&&(n=!1);const o=tt(t),r=Pt(t),i=Ot(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=ft(s)),[s,ft(s)]}function ke(t){const e=ft(t);return[vt(t),e,vt(e)]}function vt(t){return t.replace(/start|end/g,e=>Me[e])}const kt=["left","right"],Ft=["right","left"],Fe=["top","bottom"],Ne=["bottom","top"];function _e(t,e,n){switch(t){case"top":case"bottom":return n?e?Ft:kt:e?kt:Ft;case"left":case"right":return e?Fe:Ne;default:return[]}}function je(t,e,n,o){const r=tt(t);let i=_e(U(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(vt)))),i}function ft(t){return t.replace(/left|right|bottom|top/g,e=>Le[e])}function We(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ut(t){return typeof t!="number"?We(t):{top:t,right:t,bottom:t,left:t}}function ut(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function Nt(t,e,n){let{reference:o,floating:r}=t;const i=V(e),s=Pt(e),c=Ot(s),l=U(e),a=i==="y",f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,m=o[c]/2-r[c]/2;let d;switch(l){case"top":d={x:f,y:o.y-r.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-r.width,y:u};break;default:d={x:o.x,y:o.y}}switch(tt(e)){case"start":d[s]-=m*(n&&a?-1:1);break;case"end":d[s]+=m*(n&&a?-1:1);break}return d}const He=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:u}=Nt(a,o,l),m=o,d={},p=0;for(let h=0;h<c.length;h++){const{name:w,fn:g}=c[h],{x,y:b,data:y,reset:v}=await g({x:f,y:u,initialPlacement:o,placement:m,strategy:r,middlewareData:d,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,u=b??u,d={...d,[w]:{...d[w],...y}},v&&p<=50&&(p++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(a=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):v.rects),{x:f,y:u}=Nt(a,m,l)),h=-1)}return{x:f,y:u,placement:m,strategy:r,middlewareData:d}};async function ot(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:d=0}=Y(e,t),p=Ut(d),w=c[m?u==="floating"?"reference":"floating":u],g=ut(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),x=u==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),y=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},v=ut(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:l}):x);return{top:(g.top-v.top+p.top)/y.y,bottom:(v.bottom-g.bottom+p.bottom)/y.y,left:(g.left-v.left+p.left)/y.x,right:(v.right-g.right+p.right)/y.x}}const Be=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:f=0}=Y(t,e)||{};if(a==null)return{};const u=Ut(f),m={x:n,y:o},d=Pt(r),p=Ot(d),h=await s.getDimensions(a),w=d==="y",g=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",y=i.reference[p]+i.reference[d]-m[d]-i.floating[p],v=m[d]-i.reference[d],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let O=P?P[b]:0;(!O||!await(s.isElement==null?void 0:s.isElement(P)))&&(O=c.floating[b]||i.floating[p]);const M=y/2-v/2,F=O/2-h[p]/2-1,L=Z(u[g],F),$=Z(u[x],F),k=L,S=O-h[p]-$,C=O/2-h[p]/2+M,N=yt(k,C,S),E=!l.arrow&&tt(r)!=null&&C!==N&&i.reference[p]/2-(C<k?L:$)-h[p]/2<0,D=E?C<k?C-k:C-S:0;return{[d]:m[d]+D,data:{[d]:N,centerOffset:C-N-D,...E&&{alignmentOffset:D}},reset:E}}}),Ve=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...w}=Y(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=U(r),x=V(c),b=U(c)===c,y=await(l.isRTL==null?void 0:l.isRTL(a.floating)),v=m||(b||!h?[ft(c)]:ke(c)),P=p!=="none";!m&&P&&v.push(...je(c,h,p,y));const O=[c,...v],M=await ot(e,w),F=[];let L=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&F.push(M[g]),u){const C=$e(r,s,y);F.push(M[C[0]],M[C[1]])}if(L=[...L,{placement:r,overflows:F}],!F.every(C=>C<=0)){var $,k;const C=((($=i.flip)==null?void 0:$.index)||0)+1,N=O[C];if(N&&(!(u==="alignment"?x!==V(N):!1)||L.every(A=>V(A.placement)===x?A.overflows[0]>0:!0)))return{data:{index:C,overflows:L},reset:{placement:N}};let E=(k=L.filter(D=>D.overflows[0]<=0).sort((D,A)=>D.overflows[1]-A.overflows[1])[0])==null?void 0:k.placement;if(!E)switch(d){case"bestFit":{var S;const D=(S=L.filter(A=>{if(P){const T=V(A.placement);return T===x||T==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(T=>T>0).reduce((T,B)=>T+B,0)]).sort((A,T)=>A[1]-T[1])[0])==null?void 0:S[0];D&&(E=D);break}case"initialPlacement":E=c;break}if(r!==E)return{reset:{placement:E}}}return{}}}};function _t(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function jt(t){return De.some(e=>t[e]>=0)}const ze=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...r}=Y(t,e);switch(o){case"referenceHidden":{const i=await ot(e,{...r,elementContext:"reference"}),s=_t(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:jt(s)}}}case"escaped":{const i=await ot(e,{...r,altBoundary:!0}),s=_t(i,n.floating);return{data:{escapedOffsets:s,escaped:jt(s)}}}default:return{}}}}},Zt=new Set(["left","top"]);async function Ie(t,e){const{placement:n,platform:o,elements:r}=t,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=U(n),c=tt(n),l=V(n)==="y",a=Zt.has(s)?-1:1,f=i&&l?-1:1,u=Y(e,t);let{mainAxis:m,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*f,y:m*a}:{x:m*a,y:d*f}}const qe=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=e,l=await Ie(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},Xe=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:x}=w;return{x:g,y:x}}},...l}=Y(t,e),a={x:n,y:o},f=await ot(e,l),u=V(U(r)),m=Rt(u);let d=a[m],p=a[u];if(i){const w=m==="y"?"top":"left",g=m==="y"?"bottom":"right",x=d+f[w],b=d-f[g];d=yt(x,d,b)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",x=p+f[w],b=p-f[g];p=yt(x,p,b)}const h=c.fn({...e,[m]:d,[u]:p});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:i,[u]:s}}}}}},Ye=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=Y(t,e),f={x:n,y:o},u=V(r),m=Rt(u);let d=f[m],p=f[u];const h=Y(c,e),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const b=m==="y"?"height":"width",y=i.reference[m]-i.floating[b]+w.mainAxis,v=i.reference[m]+i.reference[b]-w.mainAxis;d<y?d=y:d>v&&(d=v)}if(a){var g,x;const b=m==="y"?"width":"height",y=Zt.has(U(r)),v=i.reference[u]-i.floating[b]+(y&&((g=s.offset)==null?void 0:g[u])||0)+(y?0:w.crossAxis),P=i.reference[u]+i.reference[b]+(y?0:((x=s.offset)==null?void 0:x[u])||0)-(y?w.crossAxis:0);p<v?p=v:p>P&&(p=P)}return{[m]:d,[u]:p}}}},Ue=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:s,elements:c}=e,{apply:l=()=>{},...a}=Y(t,e),f=await ot(e,a),u=U(r),m=tt(r),d=V(r)==="y",{width:p,height:h}=i.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=m==="end"?"top":"bottom");const x=h-f.top-f.bottom,b=p-f.left-f.right,y=Z(h-f[w],x),v=Z(p-f[g],b),P=!e.middlewareData.shift;let O=y,M=v;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(M=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(O=x),P&&!m){const L=_(f.left,0),$=_(f.right,0),k=_(f.top,0),S=_(f.bottom,0);d?M=p-2*(L!==0||$!==0?L+$:_(f.left,f.right)):O=h-2*(k!==0||S!==0?k+S:_(f.top,f.bottom))}await l({...e,availableWidth:M,availableHeight:O});const F=await s.getDimensions(c.floating);return p!==F.width||h!==F.height?{reset:{rects:!0}}:{}}}};function pt(){return typeof window<"u"}function et(t){return Kt(t)?(t.nodeName||"").toLowerCase():"#document"}function j(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function q(t){var e;return(e=(Kt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Kt(t){return pt()?t instanceof Node||t instanceof j(t).Node:!1}function W(t){return pt()?t instanceof Element||t instanceof j(t).Element:!1}function I(t){return pt()?t instanceof HTMLElement||t instanceof j(t).HTMLElement:!1}function Wt(t){return!pt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof j(t).ShadowRoot}const Ze=new Set(["inline","contents"]);function it(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=H(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!Ze.has(r)}const Ke=new Set(["table","td","th"]);function Ge(t){return Ke.has(et(t))}const Je=[":popover-open",":modal"];function mt(t){return Je.some(e=>{try{return t.matches(e)}catch{return!1}})}const Qe=["transform","translate","scale","rotate","perspective"],tn=["transform","translate","scale","rotate","perspective","filter"],en=["paint","layout","strict","content"];function Ct(t){const e=St(),n=W(t)?H(t):t;return Qe.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||tn.some(o=>(n.willChange||"").includes(o))||en.some(o=>(n.contain||"").includes(o))}function nn(t){let e=K(t);for(;I(e)&&!Q(e);){if(Ct(e))return e;if(mt(e))return null;e=K(e)}return null}function St(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const on=new Set(["html","body","#document"]);function Q(t){return on.has(et(t))}function H(t){return j(t).getComputedStyle(t)}function ht(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(et(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Wt(t)&&t.host||q(t);return Wt(e)?e.host:e}function Gt(t){const e=K(t);return Q(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&it(e)?e:Gt(e)}function rt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Gt(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=j(r);if(i){const c=bt(s);return e.concat(s,s.visualViewport||[],it(r)?r:[],c&&n?rt(c):[])}return e.concat(r,rt(r,[],n))}function bt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Jt(t){const e=H(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=I(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,c=at(n)!==i||at(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function Et(t){return W(t)?t:t.contextElement}function J(t){const e=Et(t);if(!I(e))return z(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=Jt(e);let s=(i?at(n.width):n.width)/o,c=(i?at(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const rn=z(0);function Qt(t){const e=j(t);return!St()||!e.visualViewport?rn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function sn(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==j(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=Et(t);let s=z(1);e&&(o?W(o)&&(s=J(o)):s=J(t));const c=sn(i,n,o)?Qt(i):z(0);let l=(r.left+c.x)/s.x,a=(r.top+c.y)/s.y,f=r.width/s.x,u=r.height/s.y;if(i){const m=j(i),d=o&&W(o)?j(o):o;let p=m,h=bt(p);for(;h&&o&&d!==p;){const w=J(h),g=h.getBoundingClientRect(),x=H(h),b=g.left+(h.clientLeft+parseFloat(x.paddingLeft))*w.x,y=g.top+(h.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=b,a+=y,p=j(h),h=bt(p)}}return ut({width:f,height:u,x:l,y:a})}function gt(t,e){const n=ht(t).scrollLeft;return e?e.left+n:G(q(t)).left+n}function te(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-gt(t,n),r=n.top+e.scrollTop;return{x:o,y:r}}function cn(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=q(o),c=e?mt(e.floating):!1;if(o===s||c&&i)return n;let l={scrollLeft:0,scrollTop:0},a=z(1);const f=z(0),u=I(o);if((u||!u&&!i)&&((et(o)!=="body"||it(s))&&(l=ht(o)),I(o))){const d=G(o);a=J(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const m=s&&!u&&!i?te(s,l):z(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+m.x,y:n.y*a.y-l.scrollTop*a.y+f.y+m.y}}function ln(t){return Array.from(t.getClientRects())}function an(t){const e=q(t),n=ht(t),o=t.ownerDocument.body,r=_(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=_(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+gt(t);const c=-n.scrollTop;return H(o).direction==="rtl"&&(s+=_(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}const Ht=25;function fn(t,e){const n=j(t),o=q(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,l=0;if(r){i=r.width,s=r.height;const f=St();(!f||f&&e==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}const a=gt(o);if(a<=0){const f=o.ownerDocument,u=f.body,m=getComputedStyle(u),d=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,p=Math.abs(o.clientWidth-u.clientWidth-d);p<=Ht&&(i-=p)}else a<=Ht&&(i+=a);return{width:i,height:s,x:c,y:l}}const un=new Set(["absolute","fixed"]);function dn(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=I(t)?J(t):z(1),s=t.clientWidth*i.x,c=t.clientHeight*i.y,l=r*i.x,a=o*i.y;return{width:s,height:c,x:l,y:a}}function Bt(t,e,n){let o;if(e==="viewport")o=fn(t,n);else if(e==="document")o=an(q(t));else if(W(e))o=dn(e,n);else{const r=Qt(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return ut(o)}function ee(t,e){const n=K(t);return n===e||!W(n)||Q(n)?!1:H(n).position==="fixed"||ee(n,e)}function pn(t,e){const n=e.get(t);if(n)return n;let o=rt(t,[],!1).filter(c=>W(c)&&et(c)!=="body"),r=null;const i=H(t).position==="fixed";let s=i?K(t):t;for(;W(s)&&!Q(s);){const c=H(s),l=Ct(s);!l&&c.position==="fixed"&&(r=null),(i?!l&&!r:!l&&c.position==="static"&&!!r&&un.has(r.position)||it(s)&&!l&&ee(t,s))?o=o.filter(f=>f!==s):r=c,s=K(s)}return e.set(t,o),o}function mn(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?mt(e)?[]:pn(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,f)=>{const u=Bt(e,f,r);return a.top=_(u.top,a.top),a.right=Z(u.right,a.right),a.bottom=Z(u.bottom,a.bottom),a.left=_(u.left,a.left),a},Bt(e,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function hn(t){const{width:e,height:n}=Jt(t);return{width:e,height:n}}function gn(t,e,n){const o=I(e),r=q(e),i=n==="fixed",s=G(t,!0,i,e);let c={scrollLeft:0,scrollTop:0};const l=z(0);function a(){l.x=gt(r)}if(o||!o&&!i)if((et(e)!=="body"||it(r))&&(c=ht(e)),o){const d=G(e,!0,i,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else r&&a();i&&!o&&r&&a();const f=r&&!o&&!i?te(r,c):z(0),u=s.left+c.scrollLeft-l.x-f.x,m=s.top+c.scrollTop-l.y-f.y;return{x:u,y:m,width:s.width,height:s.height}}function wt(t){return H(t).position==="static"}function Vt(t,e){if(!I(t)||H(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return q(t)===n&&(n=n.ownerDocument.body),n}function ne(t,e){const n=j(t);if(mt(t))return n;if(!I(t)){let r=K(t);for(;r&&!Q(r);){if(W(r)&&!wt(r))return r;r=K(r)}return n}let o=Vt(t,e);for(;o&&Ge(o)&&wt(o);)o=Vt(o,e);return o&&Q(o)&&wt(o)&&!Ct(o)?n:o||nn(t)||n}const wn=async function(t){const e=this.getOffsetParent||ne,n=this.getDimensions,o=await n(t.floating);return{reference:gn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function xn(t){return H(t).direction==="rtl"}const yn={convertOffsetParentRelativeRectToViewportRelativeRect:cn,getDocumentElement:q,getClippingRect:mn,getOffsetParent:ne,getElementRects:wn,getClientRects:ln,getDimensions:hn,getScale:J,isElement:W,isRTL:xn};function oe(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function vn(t,e){let n=null,o;const r=q(t);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),i();const a=t.getBoundingClientRect(),{left:f,top:u,width:m,height:d}=a;if(c||e(),!m||!d)return;const p=ct(u),h=ct(r.clientWidth-(f+m)),w=ct(r.clientHeight-(u+d)),g=ct(f),b={rootMargin:-p+"px "+-h+"px "+-w+"px "+-g+"px",threshold:_(0,Z(1,l))||1};let y=!0;function v(P){const O=P[0].intersectionRatio;if(O!==l){if(!y)return s();O?s(!1,O):o=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!oe(a,t.getBoundingClientRect())&&s(),y=!1}try{n=new IntersectionObserver(v,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(v,b)}n.observe(t)}return s(!0),i}function bn(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Et(t),f=r||i?[...a?rt(a):[],...rt(e)]:[];f.forEach(g=>{r&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const u=a&&c?vn(a,n):null;let m=-1,d=null;s&&(d=new ResizeObserver(g=>{let[x]=g;x&&x.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(e)})),n()}),a&&!l&&d.observe(a),d.observe(e));let p,h=l?G(t):null;l&&w();function w(){const g=G(t);h&&!oe(h,g)&&n(),h=g,p=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),u?.(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const An=qe,Rn=Xe,On=Ve,Pn=Ue,Cn=ze,zt=Be,Sn=Ye,En=(t,e,n)=>{const o=new Map,r={platform:yn,...n},i={...r.platform,_c:o};return He(t,e,{...r,platform:i})};var Dn=typeof document<"u",Ln=function(){},lt=Dn?qt.useLayoutEffect:Ln;function dt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,r;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!dt(t[o],e[o]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&t.$$typeof)&&!dt(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function re(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function It(t,e){const n=re(t);return Math.round(e*n)/n}function xt(t){const e=R.useRef(t);return lt(()=>{e.current=t}),e}function Mn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[f,u]=R.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[m,d]=R.useState(o);dt(m,o)||d(o);const[p,h]=R.useState(null),[w,g]=R.useState(null),x=R.useCallback(A=>{A!==P.current&&(P.current=A,h(A))},[]),b=R.useCallback(A=>{A!==O.current&&(O.current=A,g(A))},[]),y=i||p,v=s||w,P=R.useRef(null),O=R.useRef(null),M=R.useRef(f),F=l!=null,L=xt(l),$=xt(r),k=xt(a),S=R.useCallback(()=>{if(!P.current||!O.current)return;const A={placement:e,strategy:n,middleware:m};$.current&&(A.platform=$.current),En(P.current,O.current,A).then(T=>{const B={...T,isPositioned:k.current!==!1};C.current&&!dt(M.current,B)&&(M.current=B,Ee.flushSync(()=>{u(B)}))})},[m,e,n,$,k]);lt(()=>{a===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[a]);const C=R.useRef(!1);lt(()=>(C.current=!0,()=>{C.current=!1}),[]),lt(()=>{if(y&&(P.current=y),v&&(O.current=v),y&&v){if(L.current)return L.current(y,v,S);S()}},[y,v,S,L,F]);const N=R.useMemo(()=>({reference:P,floating:O,setReference:x,setFloating:b}),[x,b]),E=R.useMemo(()=>({reference:y,floating:v}),[y,v]),D=R.useMemo(()=>{const A={position:n,left:0,top:0};if(!E.floating)return A;const T=It(E.floating,f.x),B=It(E.floating,f.y);return c?{...A,transform:"translate("+T+"px, "+B+"px)",...re(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:B}},[n,c,E.floating,f.x,f.y]);return R.useMemo(()=>({...f,update:S,refs:N,elements:E,floatingStyles:D}),[f,S,N,E,D])}const Tn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:r}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?zt({element:o.current,padding:r}).fn(n):{}:o?zt({element:o,padding:r}).fn(n):{}}}},$n=(t,e)=>({...An(t),options:[t,e]}),kn=(t,e)=>({...Rn(t),options:[t,e]}),Fn=(t,e)=>({...Sn(t),options:[t,e]}),Nn=(t,e)=>({...On(t),options:[t,e]}),_n=(t,e)=>({...Pn(t),options:[t,e]}),jn=(t,e)=>({...Cn(t),options:[t,e]}),Wn=(t,e)=>({...Tn(t),options:[t,e]});var Hn="Arrow",ie=R.forwardRef((t,e)=>{const{children:n,width:o=10,height:r=5,...i}=t;return X.jsxRuntimeExports.jsx(At.Primitive.svg,{...i,ref:e,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:X.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});ie.displayName=Hn;var Bn=ie,Dt="Popper",[se,Vn]=Pe.createContextScope(Dt),[zn,ce]=se(Dt),le=t=>{const{__scopePopper:e,children:n}=t,[o,r]=R.useState(null);return X.jsxRuntimeExports.jsx(zn,{scope:e,anchor:o,onAnchorChange:r,children:n})};le.displayName=Dt;var ae="PopperAnchor",fe=R.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:o,...r}=t,i=ce(ae,n),s=R.useRef(null),c=Xt.useComposedRefs(e,s),l=R.useRef(null);return R.useEffect(()=>{const a=l.current;l.current=o?.current||s.current,a!==l.current&&i.onAnchorChange(l.current)}),o?null:X.jsxRuntimeExports.jsx(At.Primitive.div,{...r,ref:c})});fe.displayName=ae;var Lt="PopperContent",[In,qn]=se(Lt),ue=R.forwardRef((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:m=!1,updatePositionStrategy:d="optimized",onPlaced:p,...h}=t,w=ce(Lt,n),[g,x]=R.useState(null),b=Xt.useComposedRefs(e,nt=>x(nt)),[y,v]=R.useState(null),P=Se.useSize(y),O=P?.width??0,M=P?.height??0,F=o+(i!=="center"?"-"+i:""),L=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(a)?a:[a],k=$.length>0,S={padding:L,boundary:$.filter(Yn),altBoundary:k},{refs:C,floatingStyles:N,placement:E,isPositioned:D,middlewareData:A}=Mn({strategy:"fixed",placement:F,whileElementsMounted:(...nt)=>bn(...nt,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[$n({mainAxis:r+M,alignmentAxis:s}),l&&kn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Fn():void 0,...S}),l&&Nn({...S}),_n({...S,apply:({elements:nt,rects:Tt,availableWidth:ve,availableHeight:be})=>{const{width:Ae,height:Re}=Tt.reference,st=nt.floating.style;st.setProperty("--radix-popper-available-width",`${ve}px`),st.setProperty("--radix-popper-available-height",`${be}px`),st.setProperty("--radix-popper-anchor-width",`${Ae}px`),st.setProperty("--radix-popper-anchor-height",`${Re}px`)}}),y&&Wn({element:y,padding:c}),Un({arrowWidth:O,arrowHeight:M}),m&&jn({strategy:"referenceHidden",...S})]}),[T,B]=me(E),Mt=Ce.useCallbackRef(p);$t.useLayoutEffect2(()=>{D&&Mt?.()},[D,Mt]);const he=A.arrow?.x,ge=A.arrow?.y,we=A.arrow?.centerOffset!==0,[xe,ye]=R.useState();return $t.useLayoutEffect2(()=>{g&&ye(window.getComputedStyle(g).zIndex)},[g]),X.jsxRuntimeExports.jsx("div",{ref:C.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:D?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:xe,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:X.jsxRuntimeExports.jsx(In,{scope:n,placedSide:T,onArrowChange:v,arrowX:he,arrowY:ge,shouldHideArrow:we,children:X.jsxRuntimeExports.jsx(At.Primitive.div,{"data-side":T,"data-align":B,...h,ref:b,style:{...h.style,animation:D?void 0:"none"}})})})});ue.displayName=Lt;var de="PopperArrow",Xn={top:"bottom",right:"left",bottom:"top",left:"right"},pe=R.forwardRef(function(e,n){const{__scopePopper:o,...r}=e,i=qn(de,o),s=Xn[i.placedSide];return X.jsxRuntimeExports.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:X.jsxRuntimeExports.jsx(Bn,{...r,ref:n,style:{...r.style,display:"block"}})})});pe.displayName=de;function Yn(t){return t!==null}var Un=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:r}=e,s=r.arrow?.centerOffset!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[a,f]=me(n),u={start:"0%",center:"50%",end:"100%"}[f],m=(r.arrow?.x??0)+c/2,d=(r.arrow?.y??0)+l/2;let p="",h="";return a==="bottom"?(p=s?u:`${m}px`,h=`${-l}px`):a==="top"?(p=s?u:`${m}px`,h=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,h=s?u:`${d}px`):a==="left"&&(p=`${o.floating.width+l}px`,h=s?u:`${d}px`),{data:{x:p,y:h}}}});function me(t){const[e,n="center"]=t.split("-");return[e,n]}var Zn=le,Kn=fe,Gn=ue,Jn=pe;exports.Anchor=Kn;exports.Arrow=Jn;exports.Content=Gn;exports.Root2=Zn;exports.createPopperScope=Vn;
@@ -1 +0,0 @@
1
- "use strict";const T=require("react"),E=require("./index-_XxjJPRD.cjs"),g=require("./index-MQ0c3ZX_.cjs");function P(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const o=P(T);function R(n,e){return o.useReducer((t,r)=>e[t][r]??t,n)}var A=n=>{const{present:e,children:t}=n,r=S(e),a=typeof t=="function"?t({present:r.isPresent}):o.Children.only(t),u=E.useComposedRefs(r.ref,v(a));return typeof t=="function"||r.isPresent?o.cloneElement(a,{ref:u}):null};A.displayName="Presence";function S(n){const[e,t]=o.useState(),r=o.useRef(null),a=o.useRef(n),u=o.useRef("none"),p=n?"mounted":"unmounted",[N,s]=R(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o.useEffect(()=>{const i=l(r.current);u.current=N==="mounted"?i:"none"},[N]),g.useLayoutEffect2(()=>{const i=r.current,d=a.current;if(d!==n){const f=u.current,c=l(i);n?s("MOUNT"):c==="none"||i?.display==="none"?s("UNMOUNT"):s(d&&f!==c?"ANIMATION_OUT":"UNMOUNT"),a.current=n}},[n,s]),g.useLayoutEffect2(()=>{if(e){let i;const d=e.ownerDocument.defaultView??window,m=c=>{const y=l(r.current).includes(CSS.escape(c.animationName));if(c.target===e&&y&&(s("ANIMATION_END"),!a.current)){const M=e.style.animationFillMode;e.style.animationFillMode="forwards",i=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=M)})}},f=c=>{c.target===e&&(u.current=l(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",m),e.addEventListener("animationend",m),()=>{d.clearTimeout(i),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",m),e.removeEventListener("animationend",m)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(N),ref:o.useCallback(i=>{r.current=i?getComputedStyle(i):null,t(i)},[])}}function l(n){return n?.animationName||"none"}function v(n){let e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}exports.Presence=A;
@@ -1 +0,0 @@
1
- "use strict";const A=require("react"),p=require("./index-BWaO7kQK.cjs"),h=require("./index-CocSS1YK.cjs"),w=require("./index-_XxjJPRD.cjs"),m=require("./index-CzY-WZXL.cjs"),x=require("./jsx-runtime-BB_1_6y_.cjs");function q(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const o=q(A);function H(t,e=globalThis?.document){const n=m.useCallbackRef(t);o.useEffect(()=>{const s=r=>{r.key==="Escape"&&n(r)};return e.addEventListener("keydown",s,{capture:!0}),()=>e.removeEventListener("keydown",s,{capture:!0})},[n,e])}var U="DismissableLayer",b="dismissableLayer.update",z="dismissableLayer.pointerDownOutside",K="dismissableLayer.focusOutside",R,T=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),B=o.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:c,onInteractOutside:f,onDismiss:d,...E}=t,a=o.useContext(T),[u,k]=o.useState(null),l=u?.ownerDocument??globalThis?.document,[,F]=o.useState({}),I=w.useComposedRefs(e,i=>k(i)),D=Array.from(a.layers),[N]=[...a.layersWithOutsidePointerEventsDisabled].slice(-1),W=D.indexOf(N),O=u?D.indexOf(u):-1,_=a.layersWithOutsidePointerEventsDisabled.size>0,P=O>=W,j=X(i=>{const v=i.target,L=[...a.branches].some(y=>y.contains(v));!P||L||(r?.(i),f?.(i),i.defaultPrevented||d?.())},l),C=Y(i=>{const v=i.target;[...a.branches].some(y=>y.contains(v))||(c?.(i),f?.(i),i.defaultPrevented||d?.())},l);return H(i=>{O===a.layers.size-1&&(s?.(i),!i.defaultPrevented&&d&&(i.preventDefault(),d()))},l),o.useEffect(()=>{if(u)return n&&(a.layersWithOutsidePointerEventsDisabled.size===0&&(R=l.body.style.pointerEvents,l.body.style.pointerEvents="none"),a.layersWithOutsidePointerEventsDisabled.add(u)),a.layers.add(u),g(),()=>{n&&a.layersWithOutsidePointerEventsDisabled.size===1&&(l.body.style.pointerEvents=R)}},[u,l,n,a]),o.useEffect(()=>()=>{u&&(a.layers.delete(u),a.layersWithOutsidePointerEventsDisabled.delete(u),g())},[u,a]),o.useEffect(()=>{const i=()=>F({});return document.addEventListener(b,i),()=>document.removeEventListener(b,i)},[]),x.jsxRuntimeExports.jsx(h.Primitive.div,{...E,ref:I,style:{pointerEvents:_?P?"auto":"none":void 0,...t.style},onFocusCapture:p.composeEventHandlers(t.onFocusCapture,C.onFocusCapture),onBlurCapture:p.composeEventHandlers(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:p.composeEventHandlers(t.onPointerDownCapture,j.onPointerDownCapture)})});B.displayName=U;var M="DismissableLayerBranch",$=o.forwardRef((t,e)=>{const n=o.useContext(T),s=o.useRef(null),r=w.useComposedRefs(e,s);return o.useEffect(()=>{const c=s.current;if(c)return n.branches.add(c),()=>{n.branches.delete(c)}},[n.branches]),x.jsxRuntimeExports.jsx(h.Primitive.div,{...t,ref:r})});$.displayName=M;function X(t,e=globalThis?.document){const n=m.useCallbackRef(t),s=o.useRef(!1),r=o.useRef(()=>{});return o.useEffect(()=>{const c=d=>{if(d.target&&!s.current){let E=function(){S(z,n,a,{discrete:!0})};const a={originalEvent:d};d.pointerType==="touch"?(e.removeEventListener("click",r.current),r.current=E,e.addEventListener("click",r.current,{once:!0})):E()}else e.removeEventListener("click",r.current);s.current=!1},f=window.setTimeout(()=>{e.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(f),e.removeEventListener("pointerdown",c),e.removeEventListener("click",r.current)}},[e,n]),{onPointerDownCapture:()=>s.current=!0}}function Y(t,e=globalThis?.document){const n=m.useCallbackRef(t),s=o.useRef(!1);return o.useEffect(()=>{const r=c=>{c.target&&!s.current&&S(K,n,{originalEvent:c},{discrete:!1})};return e.addEventListener("focusin",r),()=>e.removeEventListener("focusin",r)},[e,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function g(){const t=new CustomEvent(b);document.dispatchEvent(t)}function S(t,e,n,{discrete:s}){const r=n.originalEvent.target,c=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&r.addEventListener(t,e,{once:!0}),s?h.dispatchDiscreteCustomEvent(r,c):r.dispatchEvent(c)}exports.DismissableLayer=B;
@@ -1 +0,0 @@
1
- "use strict";const B=require("react"),f=require("./index-BWaO7kQK.cjs"),P=require("./index-CzRiuk60.cjs"),Y=require("./index-_XxjJPRD.cjs"),z=require("./index-cwZN7ZY3.cjs"),V=require("./index-WIv2ndLu.cjs"),D=require("./index-CocSS1YK.cjs"),J=require("./index-CzY-WZXL.cjs"),p=require("./jsx-runtime-BB_1_6y_.cjs");function Q(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const c=Q(B);var y="rovingFocusGroup.onEntryFocus",W={bubbles:!1,cancelable:!0},b="RovingFocusGroup",[j,G,X]=P.createCollection(b),[Z,ee]=z.createContextScope(b,[X]),[te,oe]=Z(b),N=c.forwardRef((e,o)=>p.jsxRuntimeExports.jsx(j.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsxRuntimeExports.jsx(j.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsxRuntimeExports.jsx(re,{...e,ref:o})})}));N.displayName=b;var re=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:r,orientation:t,loop:F=!1,dir:S,currentTabStopId:v,defaultCurrentTabStopId:T,onCurrentTabStopIdChange:w,onEntryFocus:m,preventScrollOnEntryFocus:u=!1,...I}=e,R=c.useRef(null),g=Y.useComposedRefs(o,R),x=P.useDirection(S),[E,n]=f.useControllableState({prop:v,defaultProp:T??null,onChange:w,caller:b}),[a,C]=c.useState(!1),i=J.useCallbackRef(m),l=G(r),_=c.useRef(!1),[q,A]=c.useState(0);return c.useEffect(()=>{const s=R.current;if(s)return s.addEventListener(y,i),()=>s.removeEventListener(y,i)},[i]),p.jsxRuntimeExports.jsx(te,{scope:r,orientation:t,dir:x,loop:F,currentTabStopId:E,onItemFocus:c.useCallback(s=>n(s),[n]),onItemShiftTab:c.useCallback(()=>C(!0),[]),onFocusableItemAdd:c.useCallback(()=>A(s=>s+1),[]),onFocusableItemRemove:c.useCallback(()=>A(s=>s-1),[]),children:p.jsxRuntimeExports.jsx(D.Primitive.div,{tabIndex:a||q===0?-1:0,"data-orientation":t,...I,ref:g,style:{outline:"none",...e.style},onMouseDown:f.composeEventHandlers(e.onMouseDown,()=>{_.current=!0}),onFocus:f.composeEventHandlers(e.onFocus,s=>{const L=!_.current;if(s.target===s.currentTarget&&L&&!a){const O=new CustomEvent(y,W);if(s.currentTarget.dispatchEvent(O),!O.defaultPrevented){const h=l().filter(d=>d.focusable),U=h.find(d=>d.active),H=h.find(d=>d.id===E),$=[U,H,...h].filter(Boolean).map(d=>d.ref.current);k($,u)}}_.current=!1}),onBlur:f.composeEventHandlers(e.onBlur,()=>C(!1))})})}),K="RovingFocusGroupItem",M=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:r,focusable:t=!0,active:F=!1,tabStopId:S,children:v,...T}=e,w=V.useId(),m=S||w,u=oe(K,r),I=u.currentTabStopId===m,R=G(r),{onFocusableItemAdd:g,onFocusableItemRemove:x,currentTabStopId:E}=u;return c.useEffect(()=>{if(t)return g(),()=>x()},[t,g,x]),p.jsxRuntimeExports.jsx(j.ItemSlot,{scope:r,id:m,focusable:t,active:F,children:p.jsxRuntimeExports.jsx(D.Primitive.span,{tabIndex:I?0:-1,"data-orientation":u.orientation,...T,ref:o,onMouseDown:f.composeEventHandlers(e.onMouseDown,n=>{t?u.onItemFocus(m):n.preventDefault()}),onFocus:f.composeEventHandlers(e.onFocus,()=>u.onItemFocus(m)),onKeyDown:f.composeEventHandlers(e.onKeyDown,n=>{if(n.key==="Tab"&&n.shiftKey){u.onItemShiftTab();return}if(n.target!==n.currentTarget)return;const a=ce(n,u.orientation,u.dir);if(a!==void 0){if(n.metaKey||n.ctrlKey||n.altKey||n.shiftKey)return;n.preventDefault();let i=R().filter(l=>l.focusable).map(l=>l.ref.current);if(a==="last")i.reverse();else if(a==="prev"||a==="next"){a==="prev"&&i.reverse();const l=i.indexOf(n.currentTarget);i=u.loop?ue(i,l+1):i.slice(l+1)}setTimeout(()=>k(i))}}),children:typeof v=="function"?v({isCurrentTabStop:I,hasTabStop:E!=null}):v})})});M.displayName=K;var ne={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function se(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ce(e,o,r){const t=se(e.key,r);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(t))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(t)))return ne[t]}function k(e,o=!1){const r=document.activeElement;for(const t of e)if(t===r||(t.focus({preventScroll:o}),document.activeElement!==r))return}function ue(e,o){return e.map((r,t)=>e[(o+t)%e.length])}var ie=N,ae=M;exports.Item=ae;exports.Root=ie;exports.createRovingFocusGroupScope=ee;
@@ -1 +0,0 @@
1
- "use strict";const Xe=require("react"),v=require("./index-BWaO7kQK.cjs"),Re=require("./index-CzRiuk60.cjs"),_=require("./index-_XxjJPRD.cjs"),ze=require("./index-cwZN7ZY3.cjs"),Ze=require("./index-BeWgla7c.cjs"),V=require("./index-DMs8RL3E.cjs"),me=require("./index-WIv2ndLu.cjs"),j=require("./index-BcGMAmWE.cjs"),Je=require("./index-Dbj9vHNq.cjs"),$=require("./index-Bd0gQB0k.cjs"),w=require("./index-CocSS1YK.cjs"),W=require("./index-COuvjZLM.cjs"),a=require("./jsx-runtime-BB_1_6y_.cjs"),ee=require("./index-CzY-WZXL.cjs");function Qe(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=Qe(Xe);function et(e){const n=tt(e),t=r.forwardRef((o,s)=>{const{children:c,...l}=o,f=r.Children.toArray(c),m=f.find(ot);if(m){const p=m.props.children,d=f.map(u=>u===m?r.Children.count(p)>1?r.Children.only(null):r.isValidElement(p)?p.props.children:null:u);return a.jsxRuntimeExports.jsx(n,{...l,ref:s,children:r.isValidElement(p)?r.cloneElement(p,void 0,d):null})}return a.jsxRuntimeExports.jsx(n,{...l,ref:s,children:c})});return t.displayName=`${e}.Slot`,t}function tt(e){const n=r.forwardRef((t,o)=>{const{children:s,...c}=t;if(r.isValidElement(s)){const l=st(s),f=rt(c,s.props);return s.type!==r.Fragment&&(f.ref=o?_.composeRefs(o,l):l),r.cloneElement(s,f)}return r.Children.count(s)>1?r.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var nt=Symbol("radix.slottable");function ot(e){return r.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===nt}function rt(e,n){const t={...n};for(const o in n){const s=e[o],c=n[o];/^on[A-Z]/.test(o)?s&&c?t[o]=(...f)=>{const m=c(...f);return s(...f),m}:s&&(t[o]=s):o==="style"?t[o]={...s,...c}:o==="className"&&(t[o]=[s,c].filter(Boolean).join(" "))}return{...e,...t}}function st(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var Q=["Enter"," "],ct=["ArrowDown","PageUp","Home"],ve=["ArrowUp","PageDown","End"],ut=[...ct,...ve],at={ltr:[...Q,"ArrowRight"],rtl:[...Q,"ArrowLeft"]},it={ltr:["ArrowLeft"],rtl:["ArrowRight"]},F="Menu",[k,lt,dt]=Re.createCollection(F),[S,ft]=ze.createContextScope(F,[dt,j.createPopperScope,W.createRovingFocusGroupScope]),L=j.createPopperScope(),Ee=W.createRovingFocusGroupScope(),[Ce,g]=S(F),[pt,G]=S(F),he=e=>{const{__scopeMenu:n,open:t=!1,children:o,dir:s,onOpenChange:c,modal:l=!0}=e,f=L(n),[m,p]=r.useState(null),d=r.useRef(!1),u=ee.useCallbackRef(c),x=Re.useDirection(s);return r.useEffect(()=>{const C=()=>{d.current=!0,document.addEventListener("pointerdown",R,{capture:!0,once:!0}),document.addEventListener("pointermove",R,{capture:!0,once:!0})},R=()=>d.current=!1;return document.addEventListener("keydown",C,{capture:!0}),()=>{document.removeEventListener("keydown",C,{capture:!0}),document.removeEventListener("pointerdown",R,{capture:!0}),document.removeEventListener("pointermove",R,{capture:!0})}},[]),a.jsxRuntimeExports.jsx(j.Root2,{...f,children:a.jsxRuntimeExports.jsx(Ce,{scope:n,open:t,onOpenChange:u,content:m,onContentChange:p,children:a.jsxRuntimeExports.jsx(pt,{scope:n,onClose:r.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:d,dir:x,modal:l,children:o})})})};he.displayName=F;var mt="MenuAnchor",te=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,s=L(t);return a.jsxRuntimeExports.jsx(j.Anchor,{...s,...o,ref:n})});te.displayName=mt;var ne="MenuPortal",[xt,ge]=S(ne,{forceMount:void 0}),Me=e=>{const{__scopeMenu:n,forceMount:t,children:o,container:s}=e,c=g(ne,n);return a.jsxRuntimeExports.jsx(xt,{scope:n,forceMount:t,children:a.jsxRuntimeExports.jsx($.Presence,{present:t||c.open,children:a.jsxRuntimeExports.jsx(Je.Portal,{asChild:!0,container:s,children:o})})})};Me.displayName=ne;var h="MenuContent",[Rt,oe]=S(h),_e=r.forwardRef((e,n)=>{const t=ge(h,e.__scopeMenu),{forceMount:o=t.forceMount,...s}=e,c=g(h,e.__scopeMenu),l=G(h,e.__scopeMenu);return a.jsxRuntimeExports.jsx(k.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx($.Presence,{present:o||c.open,children:a.jsxRuntimeExports.jsx(k.Slot,{scope:e.__scopeMenu,children:l.modal?a.jsxRuntimeExports.jsx(vt,{...s,ref:n}):a.jsxRuntimeExports.jsx(Et,{...s,ref:n})})})})}),vt=r.forwardRef((e,n)=>{const t=g(h,e.__scopeMenu),o=r.useRef(null),s=_.useComposedRefs(n,o);return r.useEffect(()=>{const c=o.current;if(c)return V.hideOthers(c)},[]),a.jsxRuntimeExports.jsx(re,{...e,ref:s,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:v.composeEventHandlers(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),Et=r.forwardRef((e,n)=>{const t=g(h,e.__scopeMenu);return a.jsxRuntimeExports.jsx(re,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),Ct=et("MenuContent.ScrollLock"),re=r.forwardRef((e,n)=>{const{__scopeMenu:t,loop:o=!1,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:l,disableOutsidePointerEvents:f,onEntryFocus:m,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:x,onDismiss:C,disableOutsideScroll:R,...P}=e,T=g(h,t),y=G(h,t),He=L(t),Ue=Ee(t),ie=lt(t),[Ve,le]=r.useState(null),K=r.useRef(null),qe=_.useComposedRefs(n,K,T.onContentChange),H=r.useRef(0),U=r.useRef(""),Be=r.useRef(0),X=r.useRef(null),de=r.useRef("right"),z=r.useRef(0),$e=R?V.ReactRemoveScroll:r.Fragment,We=R?{as:Ct,allowPinchZoom:!0}:void 0,Ye=i=>{const b=U.current+i,M=ie().filter(E=>!E.disabled),O=document.activeElement,Z=M.find(E=>E.ref.current===O)?.textValue,J=M.map(E=>E.textValue),fe=Tt(J,b,Z),A=M.find(E=>E.textValue===fe)?.ref.current;(function E(pe){U.current=pe,window.clearTimeout(H.current),pe!==""&&(H.current=window.setTimeout(()=>E(""),1e3))})(b),A&&setTimeout(()=>A.focus())};r.useEffect(()=>()=>window.clearTimeout(H.current),[]),V.useFocusGuards();const I=r.useCallback(i=>de.current===X.current?.side&&At(i,X.current?.area),[]);return a.jsxRuntimeExports.jsx(Rt,{scope:t,searchRef:U,onItemEnter:r.useCallback(i=>{I(i)&&i.preventDefault()},[I]),onItemLeave:r.useCallback(i=>{I(i)||(K.current?.focus(),le(null))},[I]),onTriggerLeave:r.useCallback(i=>{I(i)&&i.preventDefault()},[I]),pointerGraceTimerRef:Be,onPointerGraceIntentChange:r.useCallback(i=>{X.current=i},[]),children:a.jsxRuntimeExports.jsx($e,{...We,children:a.jsxRuntimeExports.jsx(V.FocusScope,{asChild:!0,trapped:s,onMountAutoFocus:v.composeEventHandlers(c,i=>{i.preventDefault(),K.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:a.jsxRuntimeExports.jsx(Ze.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:p,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:x,onDismiss:C,children:a.jsxRuntimeExports.jsx(W.Root,{asChild:!0,...Ue,dir:y.dir,orientation:"vertical",loop:o,currentTabStopId:Ve,onCurrentTabStopIdChange:le,onEntryFocus:v.composeEventHandlers(m,i=>{y.isUsingKeyboardRef.current||i.preventDefault()}),preventScrollOnEntryFocus:!0,children:a.jsxRuntimeExports.jsx(j.Content,{role:"menu","aria-orientation":"vertical","data-state":Ke(T.open),"data-radix-menu-content":"",dir:y.dir,...He,...P,ref:qe,style:{outline:"none",...P.style},onKeyDown:v.composeEventHandlers(P.onKeyDown,i=>{const M=i.target.closest("[data-radix-menu-content]")===i.currentTarget,O=i.ctrlKey||i.altKey||i.metaKey,Z=i.key.length===1;M&&(i.key==="Tab"&&i.preventDefault(),!O&&Z&&Ye(i.key));const J=K.current;if(i.target!==J||!ut.includes(i.key))return;i.preventDefault();const A=ie().filter(E=>!E.disabled).map(E=>E.ref.current);ve.includes(i.key)&&A.reverse(),bt(A)}),onBlur:v.composeEventHandlers(e.onBlur,i=>{i.currentTarget.contains(i.target)||(window.clearTimeout(H.current),U.current="")}),onPointerMove:v.composeEventHandlers(e.onPointerMove,N(i=>{const b=i.target,M=z.current!==i.clientX;if(i.currentTarget.contains(b)&&M){const O=i.clientX>z.current?"right":"left";de.current=O,z.current=i.clientX}}))})})})})})})});_e.displayName=h;var ht="MenuGroup",se=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(w.Primitive.div,{role:"group",...o,ref:n})});se.displayName=ht;var gt="MenuLabel",je=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(w.Primitive.div,{...o,ref:n})});je.displayName=gt;var q="MenuItem",xe="menu.itemSelect",Y=r.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:o,...s}=e,c=r.useRef(null),l=G(q,e.__scopeMenu),f=oe(q,e.__scopeMenu),m=_.useComposedRefs(n,c),p=r.useRef(!1),d=()=>{const u=c.current;if(!t&&u){const x=new CustomEvent(xe,{bubbles:!0,cancelable:!0});u.addEventListener(xe,C=>o?.(C),{once:!0}),w.dispatchDiscreteCustomEvent(u,x),x.defaultPrevented?p.current=!1:l.onClose()}};return a.jsxRuntimeExports.jsx(Se,{...s,ref:m,disabled:t,onClick:v.composeEventHandlers(e.onClick,d),onPointerDown:u=>{e.onPointerDown?.(u),p.current=!0},onPointerUp:v.composeEventHandlers(e.onPointerUp,u=>{p.current||u.currentTarget?.click()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,u=>{const x=f.searchRef.current!=="";t||x&&u.key===" "||Q.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});Y.displayName=q;var Se=r.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:o=!1,textValue:s,...c}=e,l=oe(q,t),f=Ee(t),m=r.useRef(null),p=_.useComposedRefs(n,m),[d,u]=r.useState(!1),[x,C]=r.useState("");return r.useEffect(()=>{const R=m.current;R&&C((R.textContent??"").trim())},[c.children]),a.jsxRuntimeExports.jsx(k.ItemSlot,{scope:t,disabled:o,textValue:s??x,children:a.jsxRuntimeExports.jsx(W.Item,{asChild:!0,...f,focusable:!o,children:a.jsxRuntimeExports.jsx(w.Primitive.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...c,ref:p,onPointerMove:v.composeEventHandlers(e.onPointerMove,N(R=>{o?l.onItemLeave(R):(l.onItemEnter(R),R.defaultPrevented||R.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,N(R=>l.onItemLeave(R))),onFocus:v.composeEventHandlers(e.onFocus,()=>u(!0)),onBlur:v.composeEventHandlers(e.onBlur,()=>u(!1))})})})}),Mt="MenuCheckboxItem",Pe=r.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:o,...s}=e;return a.jsxRuntimeExports.jsx(Te,{scope:e.__scopeMenu,checked:t,children:a.jsxRuntimeExports.jsx(Y,{role:"menuitemcheckbox","aria-checked":B(t)?"mixed":t,...s,ref:n,"data-state":ae(t),onSelect:v.composeEventHandlers(s.onSelect,()=>o?.(B(t)?!0:!t),{checkForDefaultPrevented:!1})})})});Pe.displayName=Mt;var ye="MenuRadioGroup",[_t,jt]=S(ye,{value:void 0,onValueChange:()=>{}}),Ie=r.forwardRef((e,n)=>{const{value:t,onValueChange:o,...s}=e,c=ee.useCallbackRef(o);return a.jsxRuntimeExports.jsx(_t,{scope:e.__scopeMenu,value:t,onValueChange:c,children:a.jsxRuntimeExports.jsx(se,{...s,ref:n})})});Ie.displayName=ye;var be="MenuRadioItem",we=r.forwardRef((e,n)=>{const{value:t,...o}=e,s=jt(be,e.__scopeMenu),c=t===s.value;return a.jsxRuntimeExports.jsx(Te,{scope:e.__scopeMenu,checked:c,children:a.jsxRuntimeExports.jsx(Y,{role:"menuitemradio","aria-checked":c,...o,ref:n,"data-state":ae(c),onSelect:v.composeEventHandlers(o.onSelect,()=>s.onValueChange?.(t),{checkForDefaultPrevented:!1})})})});we.displayName=be;var ce="MenuItemIndicator",[Te,St]=S(ce,{checked:!1}),Oe=r.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:o,...s}=e,c=St(ce,t);return a.jsxRuntimeExports.jsx($.Presence,{present:o||B(c.checked)||c.checked===!0,children:a.jsxRuntimeExports.jsx(w.Primitive.span,{...s,ref:n,"data-state":ae(c.checked)})})});Oe.displayName=ce;var Pt="MenuSeparator",Ae=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(w.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})});Ae.displayName=Pt;var yt="MenuArrow",De=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,s=L(t);return a.jsxRuntimeExports.jsx(j.Arrow,{...s,...o,ref:n})});De.displayName=yt;var ue="MenuSub",[It,ke]=S(ue),Ne=e=>{const{__scopeMenu:n,children:t,open:o=!1,onOpenChange:s}=e,c=g(ue,n),l=L(n),[f,m]=r.useState(null),[p,d]=r.useState(null),u=ee.useCallbackRef(s);return r.useEffect(()=>(c.open===!1&&u(!1),()=>u(!1)),[c.open,u]),a.jsxRuntimeExports.jsx(j.Root2,{...l,children:a.jsxRuntimeExports.jsx(Ce,{scope:n,open:o,onOpenChange:u,content:p,onContentChange:d,children:a.jsxRuntimeExports.jsx(It,{scope:n,contentId:me.useId(),triggerId:me.useId(),trigger:f,onTriggerChange:m,children:t})})})};Ne.displayName=ue;var D="MenuSubTrigger",Fe=r.forwardRef((e,n)=>{const t=g(D,e.__scopeMenu),o=G(D,e.__scopeMenu),s=ke(D,e.__scopeMenu),c=oe(D,e.__scopeMenu),l=r.useRef(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:m}=c,p={__scopeMenu:e.__scopeMenu},d=r.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return r.useEffect(()=>d,[d]),r.useEffect(()=>{const u=f.current;return()=>{window.clearTimeout(u),m(null)}},[f,m]),a.jsxRuntimeExports.jsx(te,{asChild:!0,...p,children:a.jsxRuntimeExports.jsx(Se,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":s.contentId,"data-state":Ke(t.open),...e,ref:_.composeRefs(n,s.onTriggerChange),onClick:u=>{e.onClick?.(u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:v.composeEventHandlers(e.onPointerMove,N(u=>{c.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!t.open&&!l.current&&(c.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{t.onOpenChange(!0),d()},100))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,N(u=>{d();const x=t.content?.getBoundingClientRect();if(x){const C=t.content?.dataset.side,R=C==="right",P=R?-5:5,T=x[R?"left":"right"],y=x[R?"right":"left"];c.onPointerGraceIntentChange({area:[{x:u.clientX+P,y:u.clientY},{x:T,y:x.top},{x:y,y:x.top},{x:y,y:x.bottom},{x:T,y:x.bottom}],side:C}),window.clearTimeout(f.current),f.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(u),u.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:v.composeEventHandlers(e.onKeyDown,u=>{const x=c.searchRef.current!=="";e.disabled||x&&u.key===" "||at[o.dir].includes(u.key)&&(t.onOpenChange(!0),t.content?.focus(),u.preventDefault())})})})});Fe.displayName=D;var Le="MenuSubContent",Ge=r.forwardRef((e,n)=>{const t=ge(h,e.__scopeMenu),{forceMount:o=t.forceMount,...s}=e,c=g(h,e.__scopeMenu),l=G(h,e.__scopeMenu),f=ke(Le,e.__scopeMenu),m=r.useRef(null),p=_.useComposedRefs(n,m);return a.jsxRuntimeExports.jsx(k.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx($.Presence,{present:o||c.open,children:a.jsxRuntimeExports.jsx(k.Slot,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(re,{id:f.contentId,"aria-labelledby":f.triggerId,...s,ref:p,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{l.isUsingKeyboardRef.current&&m.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:v.composeEventHandlers(e.onFocusOutside,d=>{d.target!==f.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:v.composeEventHandlers(e.onEscapeKeyDown,d=>{l.onClose(),d.preventDefault()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,d=>{const u=d.currentTarget.contains(d.target),x=it[l.dir].includes(d.key);u&&x&&(c.onOpenChange(!1),f.trigger?.focus(),d.preventDefault())})})})})})});Ge.displayName=Le;function Ke(e){return e?"open":"closed"}function B(e){return e==="indeterminate"}function ae(e){return B(e)?"indeterminate":e?"checked":"unchecked"}function bt(e){const n=document.activeElement;for(const t of e)if(t===n||(t.focus(),document.activeElement!==n))return}function wt(e,n){return e.map((t,o)=>e[(n+o)%e.length])}function Tt(e,n,t){const s=n.length>1&&Array.from(n).every(p=>p===n[0])?n[0]:n,c=t?e.indexOf(t):-1;let l=wt(e,Math.max(c,0));s.length===1&&(l=l.filter(p=>p!==t));const m=l.find(p=>p.toLowerCase().startsWith(s.toLowerCase()));return m!==t?m:void 0}function Ot(e,n){const{x:t,y:o}=e;let s=!1;for(let c=0,l=n.length-1;c<n.length;l=c++){const f=n[c],m=n[l],p=f.x,d=f.y,u=m.x,x=m.y;d>o!=x>o&&t<(u-p)*(o-d)/(x-d)+p&&(s=!s)}return s}function At(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return Ot(t,n)}function N(e){return n=>n.pointerType==="mouse"?e(n):void 0}var Dt=he,kt=te,Nt=Me,Ft=_e,Lt=se,Gt=je,Kt=Y,Ht=Pe,Ut=Ie,Vt=we,qt=Oe,Bt=Ae,$t=De,Wt=Ne,Yt=Fe,Xt=Ge;exports.Anchor2=kt;exports.Arrow2=$t;exports.CheckboxItem=Ht;exports.Content2=Ft;exports.Group=Lt;exports.Item2=Kt;exports.ItemIndicator=qt;exports.Label=Gt;exports.Portal=Nt;exports.RadioGroup=Ut;exports.RadioItem=Vt;exports.Root3=Dt;exports.Separator=Bt;exports.Sub=Wt;exports.SubContent=Xt;exports.SubTrigger=Yt;exports.createMenuScope=ft;
@@ -1 +0,0 @@
1
- "use strict";const w=require("react"),T=require("./index-BWaO7kQK.cjs"),A=require("./index-cwZN7ZY3.cjs"),I=require("./index-MQ0c3ZX_.cjs"),$=require("./index-_XxjJPRD.cjs"),m=require("./index-CocSS1YK.cjs"),D=require("./index-Bd0gQB0k.cjs"),M=require("./index-WIv2ndLu.cjs"),c=require("./jsx-runtime-BB_1_6y_.cjs");function k(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return s.default=e,Object.freeze(s)}const r=k(w);var f="Collapsible",[L,F]=A.createContextScope(f),[B,g]=L(f),q=r.forwardRef((e,s)=>{const{__scopeCollapsible:t,open:n,defaultOpen:o,disabled:l,onOpenChange:a,...b}=e,[u,d]=T.useControllableState({prop:n,defaultProp:o??!1,onChange:a,caller:f});return c.jsxRuntimeExports.jsx(B,{scope:t,disabled:l,contentId:M.useId(),open:u,onOpenToggle:r.useCallback(()=>d(x=>!x),[d]),children:c.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":j(u),"data-disabled":l?"":void 0,...b,ref:s})})});q.displayName=f;var S="CollapsibleTrigger",R=r.forwardRef((e,s)=>{const{__scopeCollapsible:t,...n}=e,o=g(S,t);return c.jsxRuntimeExports.jsx(m.Primitive.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":j(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:s,onClick:T.composeEventHandlers(e.onClick,o.onOpenToggle)})});R.displayName=S;var v="CollapsibleContent",h=r.forwardRef((e,s)=>{const{forceMount:t,...n}=e,o=g(v,e.__scopeCollapsible);return c.jsxRuntimeExports.jsx(D.Presence,{present:t||o.open,children:({present:l})=>c.jsxRuntimeExports.jsx(G,{...n,ref:s,present:l})})});h.displayName=v;var G=r.forwardRef((e,s)=>{const{__scopeCollapsible:t,present:n,children:o,...l}=e,a=g(v,t),[b,u]=r.useState(n),d=r.useRef(null),x=$.useComposedRefs(s,d),y=r.useRef(0),P=y.current,E=r.useRef(0),N=E.current,C=a.open||b,_=r.useRef(C),p=r.useRef(void 0);return r.useEffect(()=>{const i=requestAnimationFrame(()=>_.current=!1);return()=>cancelAnimationFrame(i)},[]),I.useLayoutEffect2(()=>{const i=d.current;if(i){p.current=p.current||{transitionDuration:i.style.transitionDuration,animationName:i.style.animationName},i.style.transitionDuration="0s",i.style.animationName="none";const O=i.getBoundingClientRect();y.current=O.height,E.current=O.width,_.current||(i.style.transitionDuration=p.current.transitionDuration,i.style.animationName=p.current.animationName),u(n)}},[a.open,n]),c.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":j(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!C,...l,ref:x,style:{"--radix-collapsible-content-height":P?`${P}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...e.style},children:C&&o})});function j(e){return e?"open":"closed"}var z=q,H=R,J=h;exports.CollapsibleContent=h;exports.CollapsibleTrigger=R;exports.Content=J;exports.Root=z;exports.Trigger=H;exports.createCollapsibleScope=F;
@@ -1 +0,0 @@
1
- "use strict";const d=require("react"),A=require("./index-cwZN7ZY3.cjs"),g=require("./index-_XxjJPRD.cjs"),E=require("./jsx-runtime-BB_1_6y_.cjs");function v(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const l=v(d);function _(e){const t=D(e),o=l.forwardRef((n,r)=>{const{children:c,...u}=n,s=l.Children.toArray(c),m=s.find(T);if(m){const a=m.props.children,y=s.map(S=>S===m?l.Children.count(a)>1?l.Children.only(null):l.isValidElement(a)?a.props.children:null:S);return E.jsxRuntimeExports.jsx(t,{...u,ref:r,children:l.isValidElement(a)?l.cloneElement(a,void 0,y):null})}return E.jsxRuntimeExports.jsx(t,{...u,ref:r,children:c})});return o.displayName=`${e}.Slot`,o}function D(e){const t=l.forwardRef((o,n)=>{const{children:r,...c}=o;if(l.isValidElement(r)){const u=w(r),s=h(c,r.props);return r.type!==l.Fragment&&(s.ref=n?g.composeRefs(n,u):u),l.cloneElement(r,s)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var P=Symbol("radix.slottable");function T(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===P}function h(e,t){const o={...t};for(const n in t){const r=e[n],c=t[n];/^on[A-Z]/.test(n)?r&&c?o[n]=(...s)=>{const m=c(...s);return r(...s),m}:r&&(o[n]=r):n==="style"?o[n]={...r,...c}:n==="className"&&(o[n]=[r,c].filter(Boolean).join(" "))}return{...e,...o}}function w(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}function V(e){const t=e+"CollectionProvider",[o,n]=A.createContextScope(t),[r,c]=o(t,{collectionRef:{current:null},itemMap:new Map}),u=C=>{const{scope:i,children:R}=C,f=d.useRef(null),p=d.useRef(new Map).current;return E.jsxRuntimeExports.jsx(r,{scope:i,itemMap:p,collectionRef:f,children:R})};u.displayName=t;const s=e+"CollectionSlot",m=_(s),a=d.forwardRef((C,i)=>{const{scope:R,children:f}=C,p=c(s,R),x=g.useComposedRefs(i,p.collectionRef);return E.jsxRuntimeExports.jsx(m,{ref:x,children:f})});a.displayName=s;const y=e+"CollectionItemSlot",S="data-radix-collection-item",b=_(y),j=d.forwardRef((C,i)=>{const{scope:R,children:f,...p}=C,x=d.useRef(null),O=g.useComposedRefs(i,x),I=c(y,R);return d.useEffect(()=>(I.itemMap.set(x,{ref:x,...p}),()=>void I.itemMap.delete(x))),E.jsxRuntimeExports.jsx(b,{[S]:"",ref:O,children:f})});j.displayName=y;function M(C){const i=c(e+"CollectionConsumer",C);return d.useCallback(()=>{const f=i.collectionRef.current;if(!f)return[];const p=Array.from(f.querySelectorAll(`[${S}]`));return Array.from(i.itemMap.values()).sort((I,N)=>p.indexOf(I.ref.current)-p.indexOf(N.ref.current))},[i.collectionRef,i.itemMap])}return[{Provider:u,Slot:a,ItemSlot:j},M,n]}var L=l.createContext(void 0);function q(e){const t=l.useContext(L);return e||t||"ltr"}exports.createCollection=V;exports.useDirection=q;
@@ -1 +0,0 @@
1
- "use strict";const l=require("react"),Q=require("./index-cwZN7ZY3.cjs"),T=require("./index-CzRiuk60.cjs"),W=require("./index-_XxjJPRD.cjs"),N=require("./index-BWaO7kQK.cjs"),q=require("./index-CocSS1YK.cjs"),v=require("./index-Cmx9M9cZ.cjs"),X=require("./index-WIv2ndLu.cjs"),n=require("./jsx-runtime-BB_1_6y_.cjs");var d="Accordion",Z=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[y,ee,oe]=T.createCollection(d),[R]=Q.createContextScope(d,[oe,v.createCollapsibleScope]),k=v.createCollapsibleScope(),M=l.forwardRef((o,c)=>{const{type:e,...t}=o,i=t,r=t;return n.jsxRuntimeExports.jsx(y.Provider,{scope:o.__scopeAccordion,children:e==="multiple"?n.jsxRuntimeExports.jsx(ce,{...r,ref:c}):n.jsxRuntimeExports.jsx(ne,{...i,ref:c})})});M.displayName=d;var[H,re]=R(d),[V,te]=R(d,{collapsible:!1}),ne=l.forwardRef((o,c)=>{const{value:e,defaultValue:t,onValueChange:i=()=>{},collapsible:r=!1,...a}=o,[s,u]=N.useControllableState({prop:e,defaultProp:t??"",onChange:i,caller:d});return n.jsxRuntimeExports.jsx(H,{scope:o.__scopeAccordion,value:l.useMemo(()=>s?[s]:[],[s]),onItemOpen:u,onItemClose:l.useCallback(()=>r&&u(""),[r,u]),children:n.jsxRuntimeExports.jsx(V,{scope:o.__scopeAccordion,collapsible:r,children:n.jsxRuntimeExports.jsx($,{...a,ref:c})})})}),ce=l.forwardRef((o,c)=>{const{value:e,defaultValue:t,onValueChange:i=()=>{},...r}=o,[a,s]=N.useControllableState({prop:e,defaultProp:t??[],onChange:i,caller:d}),u=l.useCallback(f=>s((x=[])=>[...x,f]),[s]),m=l.useCallback(f=>s((x=[])=>x.filter(b=>b!==f)),[s]);return n.jsxRuntimeExports.jsx(H,{scope:o.__scopeAccordion,value:a,onItemOpen:u,onItemClose:m,children:n.jsxRuntimeExports.jsx(V,{scope:o.__scopeAccordion,collapsible:!0,children:n.jsxRuntimeExports.jsx($,{...r,ref:c})})})}),[ie,j]=R(d),$=l.forwardRef((o,c)=>{const{__scopeAccordion:e,disabled:t,dir:i,orientation:r="vertical",...a}=o,s=l.useRef(null),u=W.useComposedRefs(s,c),m=ee(e),x=T.useDirection(i)==="ltr",b=N.composeEventHandlers(o.onKeyDown,C=>{if(!Z.includes(C.key))return;const F=C.target,I=m().filter(P=>!P.ref.current?.disabled),A=I.findIndex(P=>P.ref.current===F),O=I.length;if(A===-1)return;C.preventDefault();let p=A;const h=0,E=O-1,_=()=>{p=A+1,p>E&&(p=h)},w=()=>{p=A-1,p<h&&(p=E)};switch(C.key){case"Home":p=h;break;case"End":p=E;break;case"ArrowRight":r==="horizontal"&&(x?_():w());break;case"ArrowDown":r==="vertical"&&_();break;case"ArrowLeft":r==="horizontal"&&(x?w():_());break;case"ArrowUp":r==="vertical"&&w();break}const J=p%O;I[J].ref.current?.focus()});return n.jsxRuntimeExports.jsx(ie,{scope:e,disabled:t,direction:i,orientation:r,children:n.jsxRuntimeExports.jsx(y.Slot,{scope:e,children:n.jsxRuntimeExports.jsx(q.Primitive.div,{...a,"data-orientation":r,ref:u,onKeyDown:t?void 0:b})})})}),g="AccordionItem",[se,D]=R(g),K=l.forwardRef((o,c)=>{const{__scopeAccordion:e,value:t,...i}=o,r=j(g,e),a=re(g,e),s=k(e),u=X.useId(),m=t&&a.value.includes(t)||!1,f=r.disabled||o.disabled;return n.jsxRuntimeExports.jsx(se,{scope:e,open:m,disabled:f,triggerId:u,children:n.jsxRuntimeExports.jsx(v.Root,{"data-orientation":r.orientation,"data-state":B(m),...s,...i,ref:c,disabled:f,open:m,onOpenChange:x=>{x?a.onItemOpen(t):a.onItemClose(t)}})})});K.displayName=g;var L="AccordionHeader",z=l.forwardRef((o,c)=>{const{__scopeAccordion:e,...t}=o,i=j(d,e),r=D(L,e);return n.jsxRuntimeExports.jsx(q.Primitive.h3,{"data-orientation":i.orientation,"data-state":B(r.open),"data-disabled":r.disabled?"":void 0,...t,ref:c})});z.displayName=L;var S="AccordionTrigger",G=l.forwardRef((o,c)=>{const{__scopeAccordion:e,...t}=o,i=j(d,e),r=D(S,e),a=te(S,e),s=k(e);return n.jsxRuntimeExports.jsx(y.ItemSlot,{scope:e,children:n.jsxRuntimeExports.jsx(v.Trigger,{"aria-disabled":r.open&&!a.collapsible||void 0,"data-orientation":i.orientation,id:r.triggerId,...s,...t,ref:c})})});G.displayName=S;var U="AccordionContent",Y=l.forwardRef((o,c)=>{const{__scopeAccordion:e,...t}=o,i=j(d,e),r=D(U,e),a=k(e);return n.jsxRuntimeExports.jsx(v.Content,{role:"region","aria-labelledby":r.triggerId,"data-orientation":i.orientation,...a,...t,ref:c,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...o.style}})});Y.displayName=U;function B(o){return o?"open":"closed"}var ae=M,le=K,de=z,ue=G,pe=Y;exports.Content2=pe;exports.Header=de;exports.Item=le;exports.Root2=ae;exports.Trigger2=ue;
@@ -1,41 +0,0 @@
1
- "use strict";const oe=require("react"),ge=require("./index-_XxjJPRD.cjs"),ye=require("./index-CocSS1YK.cjs"),G=require("./index-CzY-WZXL.cjs"),be=require("./jsx-runtime-BB_1_6y_.cjs");function Ee(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=Ee(oe);var j="focusScope.autoFocusOnMount",_="focusScope.autoFocusOnUnmount",z={bubbles:!1,cancelable:!0},Se="FocusScope",ce=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:i,...s}=e,[a,S]=u.useState(null),b=G.useCallbackRef(c),g=G.useCallbackRef(i),f=u.useRef(null),v=ge.useComposedRefs(t,o=>S(o)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let o=function(p){if(h.paused||!a)return;const y=p.target;a.contains(y)?f.current=y:k(f.current,{select:!0})},l=function(p){if(h.paused||!a)return;const y=p.relatedTarget;y!==null&&(a.contains(y)||k(f.current,{select:!0}))},d=function(p){if(document.activeElement===document.body)for(const E of p)E.removedNodes.length>0&&k(a)};document.addEventListener("focusin",o),document.addEventListener("focusout",l);const m=new MutationObserver(d);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",o),document.removeEventListener("focusout",l),m.disconnect()}}},[r,a,h.paused]),u.useEffect(()=>{if(a){Q.add(h);const o=document.activeElement;if(!a.contains(o)){const d=new CustomEvent(j,z);a.addEventListener(j,b),a.dispatchEvent(d),d.defaultPrevented||(we(Te(ue(a)),{select:!0}),document.activeElement===o&&k(a))}return()=>{a.removeEventListener(j,b),setTimeout(()=>{const d=new CustomEvent(_,z);a.addEventListener(_,g),a.dispatchEvent(d),d.defaultPrevented||k(o??document.body,{select:!0}),a.removeEventListener(_,g),Q.remove(h)},0)}}},[a,b,g,h]);const w=u.useCallback(o=>{if(!n&&!r||h.paused)return;const l=o.key==="Tab"&&!o.altKey&&!o.ctrlKey&&!o.metaKey,d=document.activeElement;if(l&&d){const m=o.currentTarget,[p,y]=Ce(m);p&&y?!o.shiftKey&&d===y?(o.preventDefault(),n&&k(p,{select:!0})):o.shiftKey&&d===p&&(o.preventDefault(),n&&k(y,{select:!0})):d===m&&o.preventDefault()}},[n,r,h.paused]);return be.jsxRuntimeExports.jsx(ye.Primitive.div,{tabIndex:-1,...s,ref:v,onKeyDown:w})});ce.displayName=Se;function we(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(k(r,{select:t}),document.activeElement!==n)return}function Ce(e){const t=ue(e),n=Z(t,e),r=Z(t.reverse(),e);return[n,r]}function ue(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Z(e,t){for(const n of e)if(!Re(n,{upTo:t}))return n}function Re(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ke(e){return e instanceof HTMLInputElement&&"select"in e}function k(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ke(e)&&t&&e.select()}}var Q=Ae();function Ae(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=$(e,t),e.unshift(t)},remove(t){e=$(e,t),e[0]?.resume()}}}function $(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Te(e){return e.filter(t=>t.tagName!=="A")}var U=0;function Oe(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??J()),document.body.insertAdjacentElement("beforeend",e[1]??J()),U++,()=>{U===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),U--}},[])}function J(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var C=function(){return C=Object.assign||function(t){for(var n,r=1,c=arguments.length;r<c;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},C.apply(this,arguments)};function ie(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(e);c<r.length;c++)t.indexOf(r[c])<0&&Object.prototype.propertyIsEnumerable.call(e,r[c])&&(n[r[c]]=e[r[c]]);return n}function Ne(e,t,n){if(n||arguments.length===2)for(var r=0,c=t.length,i;r<c;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var W="right-scroll-bar-position",D="width-before-scroll-bar",Me="with-scroll-bars-hidden",Fe="--removed-body-scroll-bar-size";function K(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Pe(e,t){var n=oe.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var c=n.value;c!==r&&(n.value=r,n.callback(r,c))}}}})[0];return n.callback=t,n.facade}var Le=typeof window<"u"?u.useLayoutEffect:u.useEffect,ee=new WeakMap;function xe(e,t){var n=Pe(null,function(r){return e.forEach(function(c){return K(c,r)})});return Le(function(){var r=ee.get(n);if(r){var c=new Set(r),i=new Set(e),s=n.current;c.forEach(function(a){i.has(a)||K(a,null)}),i.forEach(function(a){c.has(a)||K(a,s)})}ee.set(n,e)},[e]),n}function Ie(e){return e}function We(e,t){t===void 0&&(t=Ie);var n=[],r=!1,c={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var S=function(){var g=s;s=[],g.forEach(i)},b=function(){return Promise.resolve().then(S)};b(),n={push:function(g){s.push(g),b()},filter:function(g){return s=s.filter(g),n}}}};return c}function De(e){e===void 0&&(e={});var t=We(null);return t.options=C({async:!0,ssr:!1},e),t}var le=function(e){var t=e.sideCar,n=ie(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,C({},n))};le.isSideCarExport=!0;function Be(e,t){return e.useMedium(t),le}var se=De(),H=function(){},B=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:H,onWheelCapture:H,onTouchMoveCapture:H}),c=r[0],i=r[1],s=e.forwardProps,a=e.children,S=e.className,b=e.removeScrollBar,g=e.enabled,f=e.shards,v=e.sideCar,h=e.noRelative,w=e.noIsolation,o=e.inert,l=e.allowPinchZoom,d=e.as,m=d===void 0?"div":d,p=e.gapMode,y=ie(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=v,A=xe([n,t]),R=C(C({},y),c);return u.createElement(u.Fragment,null,g&&u.createElement(E,{sideCar:se,removeScrollBar:b,shards:f,noRelative:h,noIsolation:w,inert:o,setCallbacks:i,allowPinchZoom:!!l,lockRef:n,gapMode:p}),s?u.cloneElement(u.Children.only(a),C(C({},R),{ref:A})):u.createElement(m,C({},R,{className:S,ref:A}),a))});B.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};B.classNames={fullWidth:D,zeroRight:W};var je=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _e(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=je();return t&&e.setAttribute("nonce",t),e}function Ue(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ke(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var He=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_e())&&(Ue(t,n),Ke(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ve=function(){var e=He();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},fe=function(){var e=Ve(),t=function(n){var r=n.styles,c=n.dynamic;return e(r,c),null};return t},Xe={left:0,top:0,right:0,gap:0},V=function(e){return parseInt(e||"",10)||0},Ye=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],c=t[e==="padding"?"paddingRight":"marginRight"];return[V(n),V(r),V(c)]},qe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Xe;var t=Ye(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ge=fe(),M="data-scroll-locked",ze=function(e,t,n,r){var c=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
2
- .`.concat(Me,` {
3
- overflow: hidden `).concat(r,`;
4
- padding-right: `).concat(a,"px ").concat(r,`;
5
- }
6
- body[`).concat(M,`] {
7
- overflow: hidden `).concat(r,`;
8
- overscroll-behavior: contain;
9
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10
- padding-left: `.concat(c,`px;
11
- padding-top: `).concat(i,`px;
12
- padding-right: `).concat(s,`px;
13
- margin-left:0;
14
- margin-top:0;
15
- margin-right: `).concat(a,"px ").concat(r,`;
16
- `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
17
- }
18
-
19
- .`).concat(W,` {
20
- right: `).concat(a,"px ").concat(r,`;
21
- }
22
-
23
- .`).concat(D,` {
24
- margin-right: `).concat(a,"px ").concat(r,`;
25
- }
26
-
27
- .`).concat(W," .").concat(W,` {
28
- right: 0 `).concat(r,`;
29
- }
30
-
31
- .`).concat(D," .").concat(D,` {
32
- margin-right: 0 `).concat(r,`;
33
- }
34
-
35
- body[`).concat(M,`] {
36
- `).concat(Fe,": ").concat(a,`px;
37
- }
38
- `)},te=function(){var e=parseInt(document.body.getAttribute(M)||"0",10);return isFinite(e)?e:0},Ze=function(){u.useEffect(function(){return document.body.setAttribute(M,(te()+1).toString()),function(){var e=te()-1;e<=0?document.body.removeAttribute(M):document.body.setAttribute(M,e.toString())}},[])},Qe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,c=r===void 0?"margin":r;Ze();var i=u.useMemo(function(){return qe(c)},[c]);return u.createElement(Ge,{styles:ze(i,!t,c,n?"":"!important")})},Y=!1;if(typeof window<"u")try{var P=Object.defineProperty({},"passive",{get:function(){return Y=!0,!0}});window.addEventListener("test",P,P),window.removeEventListener("test",P,P)}catch{Y=!1}var T=Y?{passive:!1}:!1,$e=function(e){return e.tagName==="TEXTAREA"},de=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!$e(e)&&n[t]==="visible")},Je=function(e){return de(e,"overflowY")},et=function(e){return de(e,"overflowX")},ne=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var c=ve(e,r);if(c){var i=he(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},tt=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},nt=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ve=function(e,t){return e==="v"?Je(t):et(t)},he=function(e,t){return e==="v"?tt(t):nt(t)},rt=function(e,t){return e==="h"&&t==="rtl"?-1:1},at=function(e,t,n,r,c){var i=rt(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,S=t.contains(a),b=!1,g=s>0,f=0,v=0;do{if(!a)break;var h=he(e,a),w=h[0],o=h[1],l=h[2],d=o-l-i*w;(w||d)&&ve(e,a)&&(f+=d,v+=w);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!S&&a!==document.body||S&&(t.contains(a)||t===a));return(g&&Math.abs(f)<1||!g&&Math.abs(v)<1)&&(b=!0),b},L=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},re=function(e){return[e.deltaX,e.deltaY]},ae=function(e){return e&&"current"in e?e.current:e},ot=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ct=function(e){return`
39
- .block-interactivity-`.concat(e,` {pointer-events: none;}
40
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},ut=0,O=[];function it(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),c=u.useState(ut++)[0],i=u.useState(fe)[0],s=u.useRef(e);u.useEffect(function(){s.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var o=Ne([e.lockRef.current],(e.shards||[]).map(ae),!0).filter(Boolean);return o.forEach(function(l){return l.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),o.forEach(function(l){return l.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var a=u.useCallback(function(o,l){if("touches"in o&&o.touches.length===2||o.type==="wheel"&&o.ctrlKey)return!s.current.allowPinchZoom;var d=L(o),m=n.current,p="deltaX"in o?o.deltaX:m[0]-d[0],y="deltaY"in o?o.deltaY:m[1]-d[1],E,A=o.target,R=Math.abs(p)>Math.abs(y)?"h":"v";if("touches"in o&&R==="h"&&A.type==="range")return!1;var F=ne(R,A);if(!F)return!0;if(F?E=R:(E=R==="v"?"h":"v",F=ne(R,A)),!F)return!1;if(!r.current&&"changedTouches"in o&&(p||y)&&(r.current=E),!E)return!0;var q=r.current||E;return at(q,l,o,q==="h"?p:y)},[]),S=u.useCallback(function(o){var l=o;if(!(!O.length||O[O.length-1]!==i)){var d="deltaY"in l?re(l):L(l),m=t.current.filter(function(E){return E.name===l.type&&(E.target===l.target||l.target===E.shadowParent)&&ot(E.delta,d)})[0];if(m&&m.should){l.cancelable&&l.preventDefault();return}if(!m){var p=(s.current.shards||[]).map(ae).filter(Boolean).filter(function(E){return E.contains(l.target)}),y=p.length>0?a(l,p[0]):!s.current.noIsolation;y&&l.cancelable&&l.preventDefault()}}},[]),b=u.useCallback(function(o,l,d,m){var p={name:o,delta:l,target:d,should:m,shadowParent:lt(d)};t.current.push(p),setTimeout(function(){t.current=t.current.filter(function(y){return y!==p})},1)},[]),g=u.useCallback(function(o){n.current=L(o),r.current=void 0},[]),f=u.useCallback(function(o){b(o.type,re(o),o.target,a(o,e.lockRef.current))},[]),v=u.useCallback(function(o){b(o.type,L(o),o.target,a(o,e.lockRef.current))},[]);u.useEffect(function(){return O.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",S,T),document.addEventListener("touchmove",S,T),document.addEventListener("touchstart",g,T),function(){O=O.filter(function(o){return o!==i}),document.removeEventListener("wheel",S,T),document.removeEventListener("touchmove",S,T),document.removeEventListener("touchstart",g,T)}},[]);var h=e.removeScrollBar,w=e.inert;return u.createElement(u.Fragment,null,w?u.createElement(i,{styles:ct(c)}):null,h?u.createElement(Qe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function lt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const st=Be(se,it);var me=u.forwardRef(function(e,t){return u.createElement(B,C({},e,{ref:t,sideCar:st}))});me.classNames=B.classNames;var ft=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},N=new WeakMap,x=new WeakMap,I={},X=0,pe=function(e){return e&&(e.host||pe(e.parentNode))},dt=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=pe(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},vt=function(e,t,n,r){var c=dt(t,Array.isArray(e)?e:[e]);I[n]||(I[n]=new WeakMap);var i=I[n],s=[],a=new Set,S=new Set(c),b=function(f){!f||a.has(f)||(a.add(f),b(f.parentNode))};c.forEach(b);var g=function(f){!f||S.has(f)||Array.prototype.forEach.call(f.children,function(v){if(a.has(v))g(v);else try{var h=v.getAttribute(r),w=h!==null&&h!=="false",o=(N.get(v)||0)+1,l=(i.get(v)||0)+1;N.set(v,o),i.set(v,l),s.push(v),o===1&&w&&x.set(v,!0),l===1&&v.setAttribute(n,"true"),w||v.setAttribute(r,"true")}catch(d){console.error("aria-hidden: cannot operate on ",v,d)}})};return g(t),a.clear(),X++,function(){s.forEach(function(f){var v=N.get(f)-1,h=i.get(f)-1;N.set(f,v),i.set(f,h),v||(x.has(f)||f.removeAttribute(r),x.delete(f)),h||f.removeAttribute(n)}),X--,X||(N=new WeakMap,N=new WeakMap,x=new WeakMap,I={})}},ht=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),c=ft(e);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live], script"))),vt(r,c,n,"aria-hidden")):function(){return null}};exports.FocusScope=ce;exports.ReactRemoveScroll=me;exports.hideOthers=ht;exports.useFocusGuards=Oe;
@@ -1 +0,0 @@
1
- "use strict";const u=require("react"),l=require("react-dom"),f=require("./index-CocSS1YK.cjs"),d=require("./index-MQ0c3ZX_.cjs"),p=require("./jsx-runtime-BB_1_6y_.cjs");function m(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const a=m(u);var P="Portal",c=a.forwardRef((e,r)=>{const{container:t,...n}=e,[s,i]=a.useState(!1);d.useLayoutEffect2(()=>i(!0),[]);const o=t||s&&globalThis?.document?.body;return o?l.createPortal(p.jsxRuntimeExports.jsx(f.Primitive.div,{...n,ref:r}),o):null});c.displayName=P;exports.Portal=c;
@@ -1 +0,0 @@
1
- "use strict";const A=require("react"),x=require("./index-BWaO7kQK.cjs"),M=require("./index-cwZN7ZY3.cjs"),f=require("./index-COuvjZLM.cjs"),N=require("./index-Bd0gQB0k.cjs"),m=require("./index-CocSS1YK.cjs"),q=require("./index-CzRiuk60.cjs"),F=require("./index-WIv2ndLu.cjs"),d=require("./jsx-runtime-BB_1_6y_.cjs");function $(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,t.get?t:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const v=$(A);var g="Tabs",[w]=M.createContextScope(g,[f.createRovingFocusGroupScope]),R=f.createRovingFocusGroupScope(),[D,T]=w(g),j=v.forwardRef((e,n)=>{const{__scopeTabs:o,value:t,onValueChange:i,defaultValue:c,orientation:r="horizontal",dir:u,activationMode:p="automatic",...b}=e,s=q.useDirection(u),[a,l]=x.useControllableState({prop:t,onChange:i,defaultProp:c??"",caller:g});return d.jsxRuntimeExports.jsx(D,{scope:o,baseId:F.useId(),value:a,onValueChange:l,orientation:r,dir:s,activationMode:p,children:d.jsxRuntimeExports.jsx(m.Primitive.div,{dir:s,"data-orientation":r,...b,ref:n})})});j.displayName=g;var E="TabsList",C=v.forwardRef((e,n)=>{const{__scopeTabs:o,loop:t=!0,...i}=e,c=T(E,o),r=R(o);return d.jsxRuntimeExports.jsx(f.Root,{asChild:!0,...r,orientation:c.orientation,dir:c.dir,loop:t,children:d.jsxRuntimeExports.jsx(m.Primitive.div,{role:"tablist","aria-orientation":c.orientation,...i,ref:n})})});C.displayName=E;var h="TabsTrigger",I=v.forwardRef((e,n)=>{const{__scopeTabs:o,value:t,disabled:i=!1,...c}=e,r=T(h,o),u=R(o),p=P(r.baseId,t),b=S(r.baseId,t),s=t===r.value;return d.jsxRuntimeExports.jsx(f.Item,{asChild:!0,...u,focusable:!i,active:s,children:d.jsxRuntimeExports.jsx(m.Primitive.button,{type:"button",role:"tab","aria-selected":s,"aria-controls":b,"data-state":s?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:p,...c,ref:n,onMouseDown:x.composeEventHandlers(e.onMouseDown,a=>{!i&&a.button===0&&a.ctrlKey===!1?r.onValueChange(t):a.preventDefault()}),onKeyDown:x.composeEventHandlers(e.onKeyDown,a=>{[" ","Enter"].includes(a.key)&&r.onValueChange(t)}),onFocus:x.composeEventHandlers(e.onFocus,()=>{const a=r.activationMode!=="manual";!s&&!i&&a&&r.onValueChange(t)})})})});I.displayName=h;var _="TabsContent",y=v.forwardRef((e,n)=>{const{__scopeTabs:o,value:t,forceMount:i,children:c,...r}=e,u=T(_,o),p=P(u.baseId,t),b=S(u.baseId,t),s=t===u.value,a=v.useRef(s);return v.useEffect(()=>{const l=requestAnimationFrame(()=>a.current=!1);return()=>cancelAnimationFrame(l)},[]),d.jsxRuntimeExports.jsx(N.Presence,{present:i||s,children:({present:l})=>d.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":s?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":p,hidden:!l,id:b,tabIndex:0,...r,ref:n,style:{...e.style,animationDuration:a.current?"0s":void 0},children:l&&c})})});y.displayName=_;function P(e,n){return`${e}-trigger-${n}`}function S(e,n){return`${e}-content-${n}`}var G=j,V=C,O=I,L=y;exports.Content=L;exports.List=V;exports.Root2=G;exports.Trigger=O;
@@ -1,7 +0,0 @@
1
- "use strict";const n=require("./jsx-runtime-BB_1_6y_.cjs"),d=require("react"),s=require("./index-CocSS1YK.cjs"),i=require("./index-DoxiiusW.cjs");function u(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const l=u(d);var c="Label",o=l.forwardRef((e,a)=>n.jsxRuntimeExports.jsx(s.Primitive.label,{...e,ref:a,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));o.displayName=c;var m=o;function f({className:e,...a}){return n.jsxRuntimeExports.jsx(m,{"data-slot":"label",className:i.cn(`
2
- adm:flex adm:items-center adm:gap-2 adm:text-xs adm:leading-none
3
- adm:font-medium adm:text-muted-foreground adm:select-none
4
- adm:group-data-[disabled=true]:pointer-events-none
5
- adm:group-data-[disabled=true]:opacity-50
6
- adm:peer-disabled:cursor-not-allowed adm:peer-disabled:opacity-50
7
- `,e),...a})}exports.Label=f;
@@ -1,15 +0,0 @@
1
- "use strict";const c=require("./jsx-runtime-BB_1_6y_.cjs"),k=require("react"),g=require("./index-BWaO7kQK.cjs"),j=require("./index-_XxjJPRD.cjs"),q=require("./index-cwZN7ZY3.cjs"),H=require("./index-BeWgla7c.cjs"),h=require("./index-DMs8RL3E.cjs"),V=require("./index-WIv2ndLu.cjs"),m=require("./index-BcGMAmWE.cjs"),L=require("./index-Dbj9vHNq.cjs"),A=require("./index-Bd0gQB0k.cjs"),_=require("./index-CocSS1YK.cjs"),W=require("./index-DoxiiusW.cjs");function z(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const a=z(k);function G(e){const t=B(e),o=a.forwardRef((n,r)=>{const{children:s,...i}=n,p=a.Children.toArray(s),u=p.find(Z);if(u){const l=u.props.children,v=p.map(f=>f===u?a.Children.count(l)>1?a.Children.only(null):a.isValidElement(l)?l.props.children:null:f);return c.jsxRuntimeExports.jsx(t,{...i,ref:r,children:a.isValidElement(l)?a.cloneElement(l,void 0,v):null})}return c.jsxRuntimeExports.jsx(t,{...i,ref:r,children:s})});return o.displayName=`${e}.Slot`,o}function B(e){const t=a.forwardRef((o,n)=>{const{children:r,...s}=o;if(a.isValidElement(r)){const i=J(r),p=U(s,r.props);return r.type!==a.Fragment&&(p.ref=n?j.composeRefs(n,i):i),a.cloneElement(r,p)}return a.Children.count(r)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var K=Symbol("radix.slottable");function Z(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===K}function U(e,t){const o={...t};for(const n in t){const r=e[n],s=t[n];/^on[A-Z]/.test(n)?r&&s?o[n]=(...p)=>{const u=s(...p);return r(...p),u}:r&&(o[n]=r):n==="style"?o[n]={...r,...s}:n==="className"&&(o[n]=[r,s].filter(Boolean).join(" "))}return{...e,...o}}function J(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var C="Popover",[b]=q.createContextScope(C,[m.createPopperScope]),R=m.createPopperScope(),[Q,d]=b(C),y=e=>{const{__scopePopover:t,children:o,open:n,defaultOpen:r,onOpenChange:s,modal:i=!1}=e,p=R(t),u=a.useRef(null),[l,v]=a.useState(!1),[f,x]=g.useControllableState({prop:n,defaultProp:r??!1,onChange:s,caller:C});return c.jsxRuntimeExports.jsx(m.Root2,{...p,children:c.jsxRuntimeExports.jsx(Q,{scope:t,contentId:V.useId(),triggerRef:u,open:f,onOpenChange:x,onOpenToggle:a.useCallback(()=>x(E=>!E),[x]),hasCustomAnchor:l,onCustomAnchorAdd:a.useCallback(()=>v(!0),[]),onCustomAnchorRemove:a.useCallback(()=>v(!1),[]),modal:i,children:o})})};y.displayName=C;var S="PopoverAnchor",w=a.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=d(S,o),s=R(o),{onCustomAnchorAdd:i,onCustomAnchorRemove:p}=r;return a.useEffect(()=>(i(),()=>p()),[i,p]),c.jsxRuntimeExports.jsx(m.Anchor,{...s,...n,ref:t})});w.displayName=S;var N="PopoverTrigger",F=a.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=d(N,o),s=R(o),i=j.useComposedRefs(t,r.triggerRef),p=c.jsxRuntimeExports.jsx(_.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":$(r.open),...n,ref:i,onClick:g.composeEventHandlers(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?p:c.jsxRuntimeExports.jsx(m.Anchor,{asChild:!0,...s,children:p})});F.displayName=N;var O="PopoverPortal",[X,Y]=b(O,{forceMount:void 0}),D=e=>{const{__scopePopover:t,forceMount:o,children:n,container:r}=e,s=d(O,t);return c.jsxRuntimeExports.jsx(X,{scope:t,forceMount:o,children:c.jsxRuntimeExports.jsx(A.Presence,{present:o||s.open,children:c.jsxRuntimeExports.jsx(L.Portal,{asChild:!0,container:r,children:n})})})};D.displayName=O;var P="PopoverContent",T=a.forwardRef((e,t)=>{const o=Y(P,e.__scopePopover),{forceMount:n=o.forceMount,...r}=e,s=d(P,e.__scopePopover);return c.jsxRuntimeExports.jsx(A.Presence,{present:n||s.open,children:s.modal?c.jsxRuntimeExports.jsx(oe,{...r,ref:t}):c.jsxRuntimeExports.jsx(te,{...r,ref:t})})});T.displayName=P;var ee=G("PopoverContent.RemoveScroll"),oe=a.forwardRef((e,t)=>{const o=d(P,e.__scopePopover),n=a.useRef(null),r=j.useComposedRefs(t,n),s=a.useRef(!1);return a.useEffect(()=>{const i=n.current;if(i)return h.hideOthers(i)},[]),c.jsxRuntimeExports.jsx(h.ReactRemoveScroll,{as:ee,allowPinchZoom:!0,children:c.jsxRuntimeExports.jsx(I,{...e,ref:r,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g.composeEventHandlers(e.onCloseAutoFocus,i=>{i.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:g.composeEventHandlers(e.onPointerDownOutside,i=>{const p=i.detail.originalEvent,u=p.button===0&&p.ctrlKey===!0,l=p.button===2||u;s.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:g.composeEventHandlers(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),te=a.forwardRef((e,t)=>{const o=d(P,e.__scopePopover),n=a.useRef(!1),r=a.useRef(!1);return c.jsxRuntimeExports.jsx(I,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(n.current||o.triggerRef.current?.focus(),s.preventDefault()),n.current=!1,r.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const i=s.target;o.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),I=a.forwardRef((e,t)=>{const{__scopePopover:o,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:p,onPointerDownOutside:u,onFocusOutside:l,onInteractOutside:v,...f}=e,x=d(P,o),E=R(o);return h.useFocusGuards(),c.jsxRuntimeExports.jsx(h.FocusScope,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:s,children:c.jsxRuntimeExports.jsx(H.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:v,onEscapeKeyDown:p,onPointerDownOutside:u,onFocusOutside:l,onDismiss:()=>x.onOpenChange(!1),children:c.jsxRuntimeExports.jsx(m.Content,{"data-state":$(x.open),role:"dialog",id:x.contentId,...E,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),M="PopoverClose",re=a.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=d(M,o);return c.jsxRuntimeExports.jsx(_.Primitive.button,{type:"button",...n,ref:t,onClick:g.composeEventHandlers(e.onClick,()=>r.onOpenChange(!1))})});re.displayName=M;var ne="PopoverArrow",se=a.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=R(o);return c.jsxRuntimeExports.jsx(m.Arrow,{...r,...n,ref:t})});se.displayName=ne;function $(e){return e?"open":"closed"}var ae=y,ie=w,ce=F,pe=D,ue=T;function le({...e}){return c.jsxRuntimeExports.jsx(ae,{"data-slot":"popover",...e})}function de({...e}){return c.jsxRuntimeExports.jsx(ce,{"data-slot":"popover-trigger",...e})}function fe({className:e,align:t="center",sideOffset:o=4,...n}){return c.jsxRuntimeExports.jsx(pe,{children:c.jsxRuntimeExports.jsx(ue,{"data-slot":"popover-content",align:t,sideOffset:o,className:W.cn(`
2
- adm:z-50 adm:w-72
3
- adm:origin-(--radix-popover-content-transform-origin) adm:rounded-md
4
- adm:border adm:bg-popover adm:p-4 adm:text-popover-foreground
5
- adm:shadow-xs adm:outline-hidden
6
- adm:data-[side=bottom]:slide-in-from-top-2
7
- adm:data-[side=left]:slide-in-from-right-2
8
- adm:data-[side=right]:slide-in-from-left-2
9
- adm:data-[side=top]:slide-in-from-bottom-2
10
- adm:data-[state=closed]:animate-out
11
- adm:data-[state=closed]:fade-out-0
12
- adm:data-[state=closed]:zoom-out-95
13
- adm:data-[state=open]:animate-in adm:data-[state=open]:fade-in-0
14
- adm:data-[state=open]:zoom-in-95
15
- `,e),...n})})}function xe({...e}){return c.jsxRuntimeExports.jsx(ie,{"data-slot":"popover-anchor",...e})}exports.Popover=le;exports.PopoverAnchor=xe;exports.PopoverContent=fe;exports.PopoverTrigger=de;
@@ -1,7 +0,0 @@
1
- "use strict";const i=require("./jsx-runtime-BB_1_6y_.cjs"),d=require("react"),u=require("./index-CocSS1YK.cjs"),p=require("./index-DoxiiusW.cjs");function m(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const e=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(a,r,e.get?e:{enumerable:!0,get:()=>t[r]})}}return a.default=t,Object.freeze(a)}const f=m(d);var v="Separator",n="horizontal",O=["horizontal","vertical"],s=f.forwardRef((t,a)=>{const{decorative:r,orientation:e=n,...c}=t,o=x(e)?e:n,l=r?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return i.jsxRuntimeExports.jsx(u.Primitive.div,{"data-orientation":o,...l,...c,ref:a})});s.displayName=v;function x(t){return O.includes(t)}var b=s;function j({className:t,orientation:a="horizontal",decorative:r=!0,...e}){return i.jsxRuntimeExports.jsx(b,{"data-slot":"separator",decorative:r,orientation:a,className:p.cn(`
2
- adm:shrink-0 adm:bg-border
3
- adm:data-[orientation=horizontal]:h-px
4
- adm:data-[orientation=horizontal]:w-full
5
- adm:data-[orientation=vertical]:h-full
6
- adm:data-[orientation=vertical]:w-px
7
- `,t),...e})}exports.Separator=j;