nave-ui-library 1.0.0-beta.66 → 1.0.0-beta.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react/index.d.ts +2 -1
- package/dist/react/index.js +5 -3
- package/dist/wc/index.js +2 -2
- package/package.json +1 -1
package/dist/react/index.d.ts
CHANGED
|
@@ -1432,8 +1432,9 @@ declare const AccordionContent: ({ className, children, ...props }: ComponentPro
|
|
|
1432
1432
|
|
|
1433
1433
|
declare const AccordionItem: ({ className, ...props }: ComponentProps<typeof AccordionPrimitive.Item>) => react_jsx_runtime.JSX.Element;
|
|
1434
1434
|
|
|
1435
|
-
declare const AccordionTrigger: ({ className, children, ...props }: ComponentProps<typeof AccordionPrimitive.Trigger> & {
|
|
1435
|
+
declare const AccordionTrigger: ({ className, children, label, ...props }: ComponentProps<typeof AccordionPrimitive.Trigger> & {
|
|
1436
1436
|
size?: "sm" | "md";
|
|
1437
|
+
label?: string;
|
|
1437
1438
|
}) => react_jsx_runtime.JSX.Element;
|
|
1438
1439
|
|
|
1439
1440
|
declare const Accordion: typeof Accordion$1 & {
|
package/dist/react/index.js
CHANGED
|
@@ -37299,10 +37299,12 @@ var ACCORDION_STYLE2 = "ui-accordion";
|
|
|
37299
37299
|
var AccordionTrigger = (_a2) => {
|
|
37300
37300
|
var _b = _a2, {
|
|
37301
37301
|
className,
|
|
37302
|
-
children
|
|
37302
|
+
children,
|
|
37303
|
+
label
|
|
37303
37304
|
} = _b, props = __objRest(_b, [
|
|
37304
37305
|
"className",
|
|
37305
|
-
"children"
|
|
37306
|
+
"children",
|
|
37307
|
+
"label"
|
|
37306
37308
|
]);
|
|
37307
37309
|
return /* @__PURE__ */ jsx32(AccordionPrimitive4.Header, { children: /* @__PURE__ */ jsxs23(
|
|
37308
37310
|
AccordionPrimitive4.Trigger,
|
|
@@ -37311,7 +37313,7 @@ var AccordionTrigger = (_a2) => {
|
|
|
37311
37313
|
}, props), {
|
|
37312
37314
|
children: [
|
|
37313
37315
|
/* @__PURE__ */ jsxs23("div", { className: `${ACCORDION_STYLE2}-trigger`, children: [
|
|
37314
|
-
/* @__PURE__ */ jsx32("span", { className: `${ACCORDION_STYLE2}-label`, children:
|
|
37316
|
+
label && /* @__PURE__ */ jsx32("span", { className: `${ACCORDION_STYLE2}-label`, children: label }),
|
|
37315
37317
|
/* @__PURE__ */ jsx32("span", { className: `${ACCORDION_STYLE2}-title`, children })
|
|
37316
37318
|
] }),
|
|
37317
37319
|
/* @__PURE__ */ jsx32(ChevronDownIcon, { className: `${ACCORDION_STYLE2}-icon` })
|
package/dist/wc/index.js
CHANGED
|
@@ -23,7 +23,7 @@ Error generating stack: `+r.message+`
|
|
|
23
23
|
transition-all
|
|
24
24
|
data-[state=closed]:animate-accordion-up
|
|
25
25
|
data-[state=open]:animate-accordion-down
|
|
26
|
-
`,{variants:{size:{sm:"",md:""}},defaultVariants:{size:"md"}}),YT=o=>{var i=o,{size:e="md",tokens:t,type:a="multiple"}=i,r=H(i,["size","tokens","type"]);var g,h,v;let n=U("accordion",qT,{tokens:t,size:e}),C=r,{collapsible:s}=C,l=H(C,["collapsible"]),c=a==="multiple"?l:r,u=j01[e],d=(v=(h=(g=A1(n==null?void 0:n.tokens,"sizes",u))==null?void 0:g.trigger)==null?void 0:h.fontSize)!=null?v:"16px",f=S(p({},n.styles),{"--accordion-font-size":d,fontFamily:"var(--accordion-font-family)",lineHeight:"var(--accordion-line-height)",letterSpacing:"var(--accordion-letter-spacing)"});return(0,Vb.jsx)(Ib.Provider,{value:e,children:(0,Vb.jsx)(FT,p({"data-slot":"accordion","data-size":e,className:"group",style:f,type:a},c))})};var XT=w(I(),1);var Pb=w(T(),1),af=r=>{var o=r,{className:e,children:t}=o,a=H(o,["className","children"]);let i=(0,XT.useContext)(Ib);return(0,Pb.jsx)(UT,S(p({className:`${e} ${GT}-content`},a),{children:(0,Pb.jsx)("div",{className:"pt-2",children:t})}))};var $T=w(T(),1),rf=a=>{var r=a,{className:e}=r,t=H(r,["className"]);return(0,$T.jsx)(zT,p({"data-slot":"accordion-item",className:O("border-b px-2 pb-3 border-[--accordion-border-color]","[&:last-child]:border-b-0",e)},t))};var nf=w(I());var QT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),U01=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,r)=>r?r.toUpperCase():a.toLowerCase()),Zb=e=>{let t=U01(e);return t.charAt(0).toUpperCase()+t.slice(1)},of=(...e)=>e.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim(),JT=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var fs=w(I());var eD={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var tD=(0,fs.forwardRef)((c,l)=>{var u=c,{color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:n}=u,s=H(u,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return(0,fs.createElement)("svg",p(p(S(p({ref:l},eD),{width:t,height:t,stroke:e,strokeWidth:r?Number(a)*24/Number(t):a,className:of("lucide",o)}),!i&&!JT(s)&&{"aria-hidden":"true"}),s),[...n.map(([d,f])=>(0,fs.createElement)(d,f)),...Array.isArray(i)?i:[i]])});var o5=(e,t)=>{let a=(0,nf.forwardRef)((n,i)=>{var s=n,{className:r}=s,o=H(s,["className"]);return(0,nf.createElement)(tD,p({ref:i,iconNode:t,className:of(`lucide-${QT(Zb(e))}`,`lucide-${e}`,r)},o))});return a.displayName=Zb(e),a};var q01=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Cs=o5("calendar",q01);var W01=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ca=o5("check",W01);var G01=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],u7=o5("chevron-down",G01);var Y01=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],pa=o5("chevron-left",Y01);var X01=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],kt=o5("chevron-right",X01);var $01=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],tr=o5("chevrons-up-down",$01);var Q01=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],ps=o5("circle-dashed",Q01);var J01=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],ma=o5("ellipsis",J01);var e41=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],ms=o5("eye-off",e41);var t41=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],gs=o5("eye",t41);var a41=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],hs=o5("info",a41);var r41=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],j0=o5("loader-circle",r41);var o41=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],vs=o5("lock-keyhole",o41);var i41=[["path",{d:"M5 12h14",key:"1ays0h"}]],ys=o5("minus",i41);var n41=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ga=o5("search",n41);var s41=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xs=o5("x",s41);var U0=w(T(),1),bs="ui-accordion",sf=r=>{var o=r,{className:e,children:t}=o,a=H(o,["className","children"]);return(0,U0.jsx)(KT,{children:(0,U0.jsxs)(jT,S(p({className:`${e} ${bs} group`},a),{children:[(0,U0.jsxs)("div",{className:`${bs}-trigger`,children:[(0,U0.jsx)("span",{className:`${bs}-label`,children:"Label"}),(0,U0.jsx)("span",{className:`${bs}-title`,children:t})]}),(0,U0.jsx)(u7,{className:`${bs}-icon`})]}))})};var Ls=YT;Ls.Content=af;Ls.Item=rf;Ls.Trigger=sf;var aD=w(I(),1);var B6=w(T(),1),l41={"--table-bg":{tokenPath:"background",fallback:"#FFFFFF"},"--table-border":{tokenPath:"border",fallback:"#E2E5E9"},"--table-radius":{tokenPath:"radius",fallback:"16px"},"--table-shadow":{tokenPath:"shadow",fallback:"none"},"--th-bg":{tokenPath:"headerBackground",fallback:"#F9F9FA"},"--th-text":{tokenPath:"headerTextColor",fallback:"#6E7991"},"--th-size":{tokenPath:"headerFontSize",fallback:"12px"},"--th-weight":{tokenPath:"headerFontWeight",fallback:"600"},"--row-hover":{tokenPath:"rowHoverBackground",fallback:"rgba(0,0,0,.03)"},"--row-selected":{tokenPath:"rowSelectedBackground",fallback:"#F4F0FF"},"--cell-text":{tokenPath:"cellTextColor",fallback:"#3A3F4B"},"--cell-size":{tokenPath:"cellFontSize",fallback:"14px"},"--cell-desc-text":{tokenPath:"descriptionColor",fallback:"#6E7991"},"--cell-desc-size":{tokenPath:"descriptionFontSize",fallback:"12px"},"--cell-desc-weight":{tokenPath:"descriptionFontWeight",fallback:"400"},"--table-font-family":{tokenPath:"fontFamily",fallback:"'Inter', sans-serif"},"--table-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--table-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"}},c41=aD.createContext(null);function rD(r){var o=r,{className:e,tokens:t}=o,a=H(o,["className","tokens"]);let i=U("table",l41,{tokens:t}),n=S(p({},i.styles),{fontFamily:"var(--table-font-family)",lineHeight:"var(--table-line-height)",letterSpacing:"var(--table-letter-spacing)"});return(0,B6.jsx)(c41.Provider,{value:i.tokens,children:(0,B6.jsx)("div",{"data-slot":"table-container",style:n,className:"w-full rounded-[var(--table-radius)] bg-[var(--table-bg)] border border-[var(--table-border)] shadow-[var(--table-shadow)] overflow-hidden",children:(0,B6.jsx)("table",p({"data-slot":"table",className:O("w-full text-sm border-collapse",e)},a))})})}function oD(e){return(0,B6.jsx)("thead",p({className:"bg-[var(--th-bg)] text-[var(--th-text)] border-b border-[var(--table-border)]"},e))}function iD(e){return(0,B6.jsx)("tbody",p({"data-slot":"table-body",className:O("[&_tr:last-child]:border-0",e.className)},e))}function lf(e){return(0,B6.jsx)("tr",p({className:"border-b border-[var(--table-border)] hover:bg-[var(--row-hover)] data-[state=selected]:bg-[var(--row-selected)] transition-colors"},e))}function nD(e){return(0,B6.jsx)("th",p({className:"h-12 px-4 py-3 text-[var(--th-size)] font-[var(--th-weight)] text-left align-middle whitespace-nowrap uppercase tracking-[var(--table-letter-spacing)] [font-family:var(--table-font-family)] leading-[var(--table-line-height)]"},e))}function Ab(e){return(0,B6.jsx)("td",p({className:"px-4 py-3 text-[var(--cell-size)] text-[var(--cell-text)] align-middle [font-family:var(--table-font-family)] leading-[var(--table-line-height)] tracking-[var(--table-letter-spacing)]"},e))}function sD(r){var o=r,{children:e,className:t}=o,a=H(o,["children","className"]);return(0,B6.jsx)("tfoot",S(p({"data-slot":"table-footer",className:O("bg-[var(--table-bg)] border-t border-[var(--table-border)]",t)},a),{children:(0,B6.jsx)("tr",{children:(0,B6.jsx)("td",{colSpan:100,className:"p-0",children:(0,B6.jsx)("div",{className:"flex w-full items-center justify-between px-4 py-3",children:e})})})}))}function lD(e){return(0,B6.jsx)("caption",p({"data-slot":"table-caption",className:O("mt-4 text-sm text-slate-500",e.className)},e))}var se=w(I(),1);var uD=w(I(),1),m41=w(j5(),1);var J2=w(I(),1);var cf=w(T(),1);function cD(e){let t=u41(e),a=J2.forwardRef((r,o)=>{let c=r,{children:i}=c,n=H(c,["children"]),s=J2.Children.toArray(i),l=s.find(f41);if(l){let u=l.props.children,d=s.map(f=>f===l?J2.Children.count(u)>1?J2.Children.only(null):J2.isValidElement(u)?u.props.children:null:f);return(0,cf.jsx)(t,S(p({},n),{ref:o,children:J2.isValidElement(u)?J2.cloneElement(u,void 0,d):null}))}return(0,cf.jsx)(t,S(p({},n),{ref:o,children:i}))});return a.displayName=`${e}.Slot`,a}function u41(e){let t=J2.forwardRef((a,r)=>{let n=a,{children:o}=n,i=H(n,["children"]);if(J2.isValidElement(o)){let s=p41(o),l=C41(i,o.props);return o.type!==J2.Fragment&&(l.ref=r?S1(r,s):s),J2.cloneElement(o,l)}return J2.Children.count(o)>1?J2.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var d41=Symbol("radix.slottable");function f41(e){return J2.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===d41}function C41(e,t){let a=p({},t);for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?a[r]=(...s)=>{let l=i(...s);return o(...s),l}:o&&(a[r]=o):r==="style"?a[r]=p(p({},o),i):r==="className"&&(a[r]=[o,i].filter(Boolean).join(" "))}return p(p({},e),a)}function p41(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var dD=w(T(),1);var g41=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],fD=g41.reduce((e,t)=>{let a=cD(`Primitive.${t}`),r=uD.forwardRef((o,i)=>{let c=o,{asChild:n}=c,s=H(c,["asChild"]),l=n?a:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),(0,dD.jsx)(l,S(p({},s),{ref:i}))});return r.displayName=`Primitive.${t}`,S(p({},e),{[t]:r})},{});var d1=w(I(),1);var f2=w(I(),1);var pD=w(I(),1),mD=w(j5(),1);var ee=w(I(),1);var uf=w(T(),1);function CD(e){let t=h41(e),a=ee.forwardRef((r,o)=>{let c=r,{children:i}=c,n=H(c,["children"]),s=ee.Children.toArray(i),l=s.find(y41);if(l){let u=l.props.children,d=s.map(f=>f===l?ee.Children.count(u)>1?ee.Children.only(null):ee.isValidElement(u)?u.props.children:null:f);return(0,uf.jsx)(t,S(p({},n),{ref:o,children:ee.isValidElement(u)?ee.cloneElement(u,void 0,d):null}))}return(0,uf.jsx)(t,S(p({},n),{ref:o,children:i}))});return a.displayName=`${e}.Slot`,a}function h41(e){let t=ee.forwardRef((a,r)=>{let n=a,{children:o}=n,i=H(n,["children"]);if(ee.isValidElement(o)){let s=b41(o),l=x41(i,o.props);return o.type!==ee.Fragment&&(l.ref=r?S1(r,s):s),ee.cloneElement(o,l)}return ee.Children.count(o)>1?ee.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var v41=Symbol("radix.slottable");function y41(e){return ee.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===v41}function x41(e,t){let a=p({},t);for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?a[r]=(...s)=>{let l=i(...s);return o(...s),l}:o&&(a[r]=o):r==="style"?a[r]=p(p({},o),i):r==="className"&&(a[r]=[o,i].filter(Boolean).join(" "))}return p(p({},e),a)}function b41(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var gD=w(T(),1);var L41=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Rb=L41.reduce((e,t)=>{let a=CD(`Primitive.${t}`),r=pD.forwardRef((o,i)=>{let c=o,{asChild:n}=c,s=H(c,["asChild"]),l=n?a:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),(0,gD.jsx)(l,S(p({},s),{ref:i}))});return r.displayName=`Primitive.${t}`,S(p({},e),{[t]:r})},{});function hD(e,t){e&&mD.flushSync(()=>e.dispatchEvent(t))}var z8=w(I(),1);function Me(e){let t=z8.useRef(e);return z8.useEffect(()=>{t.current=e}),z8.useMemo(()=>(...a)=>{var r;return(r=t.current)==null?void 0:r.call(t,...a)},[])}var vD=w(I(),1);function yD(e,t=globalThis==null?void 0:globalThis.document){let a=Me(e);vD.useEffect(()=>{let r=o=>{o.key==="Escape"&&a(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[a,t])}var Db=w(T(),1);var w41="DismissableLayer",Tb="dismissableLayer.update",M41="dismissableLayer.pointerDownOutside",_41="dismissableLayer.focusOutside",xD,LD=f2.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ha=f2.forwardRef((e,t)=>{var V;let M=e,{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:n,onDismiss:s}=M,l=H(M,["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]),c=f2.useContext(LD),[u,d]=f2.useState(null),f=(V=u==null?void 0:u.ownerDocument)!=null?V:globalThis==null?void 0:globalThis.document,[,C]=f2.useState({}),g=y1(t,k=>d(k)),h=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=h.indexOf(v),y=u?h.indexOf(u):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,x=y>=m,_=k41(k=>{let Z=k.target,R=[...c.branches].some(P=>P.contains(Z));!x||R||(o==null||o(k),n==null||n(k),k.defaultPrevented||s==null||s())},f),L=V41(k=>{let Z=k.target;[...c.branches].some(P=>P.contains(Z))||(i==null||i(k),n==null||n(k),k.defaultPrevented||s==null||s())},f);return yD(k=>{y===c.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&s&&(k.preventDefault(),s()))},f),f2.useEffect(()=>{if(u)return a&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(xD=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),bD(),()=>{a&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=xD)}},[u,f,a,c]),f2.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),bD())},[u,c]),f2.useEffect(()=>{let k=()=>C({});return document.addEventListener(Tb,k),()=>document.removeEventListener(Tb,k)},[]),(0,Db.jsx)(Rb.div,S(p({},l),{ref:g,style:p({pointerEvents:b?x?"auto":"none":void 0},e.style),onFocusCapture:t1(e.onFocusCapture,L.onFocusCapture),onBlurCapture:t1(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:t1(e.onPointerDownCapture,_.onPointerDownCapture)}))});ha.displayName=w41;var S41="DismissableLayerBranch",H41=f2.forwardRef((e,t)=>{let a=f2.useContext(LD),r=f2.useRef(null),o=y1(t,r);return f2.useEffect(()=>{let i=r.current;if(i)return a.branches.add(i),()=>{a.branches.delete(i)}},[a.branches]),(0,Db.jsx)(Rb.div,S(p({},e),{ref:o}))});H41.displayName=S41;function k41(e,t=globalThis==null?void 0:globalThis.document){let a=Me(e),r=f2.useRef(!1),o=f2.useRef(()=>{});return f2.useEffect(()=>{let i=s=>{if(s.target&&!r.current){let c=function(){wD(M41,a,u,{discrete:!0})};var l=c;let u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},n=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(n),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,a]),{onPointerDownCapture:()=>r.current=!0}}function V41(e,t=globalThis==null?void 0:globalThis.document){let a=Me(e),r=f2.useRef(!1);return f2.useEffect(()=>{let o=i=>{i.target&&!r.current&&wD(_41,a,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,a]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function bD(){let e=new CustomEvent(Tb);document.dispatchEvent(e)}function wD(e,t,a,{discrete:r}){let o=a.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&o.addEventListener(e,t,{once:!0}),r?hD(o,i):o.dispatchEvent(i)}var _D=w(I(),1),Eb=0;function K8(){_D.useEffect(()=>{var t,a;let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(t=e[0])!=null?t:MD()),document.body.insertAdjacentElement("beforeend",(a=e[1])!=null?a:MD()),Eb++,()=>{Eb===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Eb--}},[])}function MD(){let 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 K7=w(I(),1);var HD=w(I(),1),T41=w(j5(),1);var te=w(I(),1);var df=w(T(),1);function SD(e){let t=I41(e),a=te.forwardRef((r,o)=>{let c=r,{children:i}=c,n=H(c,["children"]),s=te.Children.toArray(i),l=s.find(Z41);if(l){let u=l.props.children,d=s.map(f=>f===l?te.Children.count(u)>1?te.Children.only(null):te.isValidElement(u)?u.props.children:null:f);return(0,df.jsx)(t,S(p({},n),{ref:o,children:te.isValidElement(u)?te.cloneElement(u,void 0,d):null}))}return(0,df.jsx)(t,S(p({},n),{ref:o,children:i}))});return a.displayName=`${e}.Slot`,a}function I41(e){let t=te.forwardRef((a,r)=>{let n=a,{children:o}=n,i=H(n,["children"]);if(te.isValidElement(o)){let s=R41(o),l=A41(i,o.props);return o.type!==te.Fragment&&(l.ref=r?S1(r,s):s),te.cloneElement(o,l)}return te.Children.count(o)>1?te.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var P41=Symbol("radix.slottable");function Z41(e){return te.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===P41}function A41(e,t){let a=p({},t);for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?a[r]=(...s)=>{let l=i(...s);return o(...s),l}:o&&(a[r]=o):r==="style"?a[r]=p(p({},o),i):r==="className"&&(a[r]=[o,i].filter(Boolean).join(" "))}return p(p({},e),a)}function R41(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var kD=w(T(),1);var D41=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],VD=D41.reduce((e,t)=>{let a=SD(`Primitive.${t}`),r=HD.forwardRef((o,i)=>{let c=o,{asChild:n}=c,s=H(c,["asChild"]),l=n?a:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),(0,kD.jsx)(l,S(p({},s),{ref:i}))});return r.displayName=`Primitive.${t}`,S(p({},e),{[t]:r})},{});var RD=w(T(),1);var Ob="focusScope.autoFocusOnMount",Bb="focusScope.autoFocusOnUnmount",ID={bubbles:!1,cancelable:!0},E41="FocusScope",ar=K7.forwardRef((e,t)=>{let h=e,{loop:a=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i}=h,n=H(h,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]),[s,l]=K7.useState(null),c=Me(o),u=Me(i),d=K7.useRef(null),f=y1(t,v=>l(v)),C=K7.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;K7.useEffect(()=>{if(r){let b=function(M){if(C.paused||!s)return;let V=M.target;s.contains(V)?d.current=V:q0(d.current,{select:!0})},x=function(M){if(C.paused||!s)return;let V=M.relatedTarget;V!==null&&(s.contains(V)||q0(d.current,{select:!0}))},_=function(M){if(document.activeElement===document.body)for(let k of M)k.removedNodes.length>0&&q0(s)};var v=b,m=x,y=_;document.addEventListener("focusin",b),document.addEventListener("focusout",x);let L=new MutationObserver(_);return s&&L.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",x),L.disconnect()}}},[r,s,C.paused]),K7.useEffect(()=>{if(s){ZD.add(C);let v=document.activeElement;if(!s.contains(v)){let y=new CustomEvent(Ob,ID);s.addEventListener(Ob,c),s.dispatchEvent(y),y.defaultPrevented||(O41(K41(TD(s)),{select:!0}),document.activeElement===v&&q0(s))}return()=>{s.removeEventListener(Ob,c),setTimeout(()=>{let y=new CustomEvent(Bb,ID);s.addEventListener(Bb,u),s.dispatchEvent(y),y.defaultPrevented||q0(v!=null?v:document.body,{select:!0}),s.removeEventListener(Bb,u),ZD.remove(C)},0)}}},[s,c,u,C]);let g=K7.useCallback(v=>{if(!a&&!r||C.paused)return;let m=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(m&&y){let b=v.currentTarget,[x,_]=B41(b);x&&_?!v.shiftKey&&y===_?(v.preventDefault(),a&&q0(x,{select:!0})):v.shiftKey&&y===x&&(v.preventDefault(),a&&q0(_,{select:!0})):y===b&&v.preventDefault()}},[a,r,C.paused]);return(0,RD.jsx)(VD.div,S(p({tabIndex:-1},n),{ref:f,onKeyDown:g}))});ar.displayName=E41;function O41(e,{select:t=!1}={}){let a=document.activeElement;for(let r of e)if(q0(r,{select:t}),document.activeElement!==a)return}function B41(e){let t=TD(e),a=PD(t,e),r=PD(t.reverse(),e);return[a,r]}function TD(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{let o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t}function PD(e,t){for(let a of e)if(!N41(a,{upTo:t}))return a}function N41(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 F41(e){return e instanceof HTMLInputElement&&"select"in e}function q0(e,{select:t=!1}={}){if(e&&e.focus){let a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&F41(e)&&t&&e.select()}}var ZD=z41();function z41(){let e=[];return{add(t){let a=e[0];t!==a&&(a==null||a.pause()),e=AD(e,t),e.unshift(t)},remove(t){var a;e=AD(e,t),(a=e[0])==null||a.resume()}}}function AD(e,t){let a=[...e],r=a.indexOf(t);return r!==-1&&a.splice(r,1),a}function K41(e){return e.filter(t=>t.tagName!=="A")}var F6=w(I(),1);var OD=["top","right","bottom","left"];var c3=Math.min,d6=Math.max,Ms=Math.round,_s=Math.floor,Vt=e=>({x:e,y:e}),j41={left:"right",right:"left",bottom:"top",top:"bottom"},U41={start:"end",end:"start"};function Cf(e,t,a){return d6(e,c3(t,a))}function u3(e,t){return typeof e=="function"?e(t):e}function d3(e){return e.split("-")[0]}function rr(e){return e.split("-")[1]}function pf(e){return e==="x"?"y":"x"}function mf(e){return e==="y"?"height":"width"}var q41=new Set(["top","bottom"]);function It(e){return q41.has(d3(e))?"y":"x"}function gf(e){return pf(It(e))}function BD(e,t,a){a===void 0&&(a=!1);let r=rr(e),o=gf(e),i=mf(o),n=o==="x"?r===(a?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(n=ws(n)),[n,ws(n)]}function ND(e){let t=ws(e);return[ff(e),t,ff(t)]}function ff(e){return e.replace(/start|end/g,t=>U41[t])}var DD=["left","right"],ED=["right","left"],W41=["top","bottom"],G41=["bottom","top"];function Y41(e,t,a){switch(e){case"top":case"bottom":return a?t?ED:DD:t?DD:ED;case"left":case"right":return t?W41:G41;default:return[]}}function FD(e,t,a,r){let o=rr(e),i=Y41(d3(e),a==="start",r);return o&&(i=i.map(n=>n+"-"+o),t&&(i=i.concat(i.map(ff)))),i}function ws(e){return e.replace(/left|right|bottom|top/g,t=>j41[t])}function X41(e){return p({top:0,right:0,bottom:0,left:0},e)}function Nb(e){return typeof e!="number"?X41(e):{top:e,right:e,bottom:e,left:e}}function or(e){let{x:t,y:a,width:r,height:o}=e;return{width:r,height:o,top:a,left:t,right:t+r,bottom:a+o,x:t,y:a}}function zD(e,t,a){let{reference:r,floating:o}=e,i=It(t),n=gf(t),s=mf(n),l=d3(t),c=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2,C;switch(l){case"top":C={x:u,y:r.y-o.height};break;case"bottom":C={x:u,y:r.y+r.height};break;case"right":C={x:r.x+r.width,y:d};break;case"left":C={x:r.x-o.width,y:d};break;default:C={x:r.x,y:r.y}}switch(rr(t)){case"start":C[n]-=f*(a&&c?-1:1);break;case"end":C[n]+=f*(a&&c?-1:1);break}return C}var UD=async(e,t,a)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:n}=a,s=i.filter(Boolean),l=await(n.isRTL==null?void 0:n.isRTL(t)),c=await n.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=zD(c,r,l),f=r,C={},g=0;for(let h=0;h<s.length;h++){let{name:v,fn:m}=s[h],{x:y,y:b,data:x,reset:_}=await m({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:C,rects:c,platform:n,elements:{reference:e,floating:t}});u=y!=null?y:u,d=b!=null?b:d,C=S(p({},C),{[v]:p(p({},C[v]),x)}),_&&g<=50&&(g++,typeof _=="object"&&(_.placement&&(f=_.placement),_.rects&&(c=_.rects===!0?await n.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:u,y:d}=zD(c,f,l)),h=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:C}};async function j8(e,t){var a;t===void 0&&(t={});let{x:r,y:o,platform:i,rects:n,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:C=0}=u3(t,e),g=Nb(C),v=s[f?d==="floating"?"reference":"floating":d],m=or(await i.getClippingRect({element:(a=await(i.isElement==null?void 0:i.isElement(v)))==null||a?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y=d==="floating"?{x:r,y:o,width:n.floating.width,height:n.floating.height}:n.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),x=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},_=or(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(m.top-_.top+g.top)/x.y,bottom:(_.bottom-m.bottom+g.bottom)/x.y,left:(m.left-_.left+g.left)/x.x,right:(_.right-m.right+g.right)/x.x}}var qD=e=>({name:"arrow",options:e,async fn(t){let{x:a,y:r,placement:o,rects:i,platform:n,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=u3(e,t)||{};if(c==null)return{};let d=Nb(u),f={x:a,y:r},C=gf(o),g=mf(C),h=await n.getDimensions(c),v=C==="y",m=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[C]-f[C]-i.floating[g],_=f[C]-i.reference[C],L=await(n.getOffsetParent==null?void 0:n.getOffsetParent(c)),M=L?L[b]:0;(!M||!await(n.isElement==null?void 0:n.isElement(L)))&&(M=s.floating[b]||i.floating[g]);let V=x/2-_/2,k=M/2-h[g]/2-1,Z=c3(d[m],k),R=c3(d[y],k),P=Z,D=M-h[g]-R,A=M/2-h[g]/2+V,B=Cf(P,A,D),W=!l.arrow&&rr(o)!=null&&A!==B&&i.reference[g]/2-(A<P?Z:R)-h[g]/2<0,K=W?A<P?A-P:A-D:0;return{[C]:f[C]+K,data:p({[C]:B,centerOffset:A-B-K},W&&{alignmentOffset:K}),reset:W}}});var WD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,r;let{placement:o,middlewareData:i,rects:n,initialPlacement:s,platform:l,elements:c}=t,A=u3(e,t),{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0}=A,v=H(A,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((a=i.arrow)!=null&&a.alignmentOffset)return{};let m=d3(o),y=It(s),b=d3(s)===s,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),_=f||(b||!h?[ws(s)]:ND(s)),L=g!=="none";!f&&L&&_.push(...FD(s,h,g,x));let M=[s,..._],V=await j8(t,v),k=[],Z=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&k.push(V[m]),d){let B=BD(o,n,x);k.push(V[B[0]],V[B[1]])}if(Z=[...Z,{placement:o,overflows:k}],!k.every(B=>B<=0)){var R,P;let B=(((R=i.flip)==null?void 0:R.index)||0)+1,W=M[B];if(W&&(!(d==="alignment"?y!==It(W):!1)||Z.every(G=>It(G.placement)===y?G.overflows[0]>0:!0)))return{data:{index:B,overflows:Z},reset:{placement:W}};let K=(P=Z.filter(q=>q.overflows[0]<=0).sort((q,G)=>q.overflows[1]-G.overflows[1])[0])==null?void 0:P.placement;if(!K)switch(C){case"bestFit":{var D;let q=(D=Z.filter(G=>{if(L){let N=It(G.placement);return N===y||N==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(N=>N>0).reduce((N,r1)=>N+r1,0)]).sort((G,N)=>G[1]-N[1])[0])==null?void 0:D[0];q&&(K=q);break}case"initialPlacement":K=s;break}if(o!==K)return{reset:{placement:K}}}return{}}}};function KD(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jD(e){return OD.some(t=>e[t]>=0)}var GD=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a}=t,i=u3(e,t),{strategy:r="referenceHidden"}=i,o=H(i,["strategy"]);switch(r){case"referenceHidden":{let n=await j8(t,S(p({},o),{elementContext:"reference"})),s=KD(n,a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:jD(s)}}}case"escaped":{let n=await j8(t,S(p({},o),{altBoundary:!0})),s=KD(n,a.floating);return{data:{escapedOffsets:s,escaped:jD(s)}}}default:return{}}}}};var YD=new Set(["left","top"]);async function $41(e,t){let{placement:a,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),n=d3(a),s=rr(a),l=It(a)==="y",c=YD.has(n)?-1:1,u=i&&l?-1:1,d=u3(t,e),{mainAxis:f,crossAxis:C,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(C=s==="end"?g*-1:g),l?{x:C*u,y:f*c}:{x:f*c,y:C*u}}var XD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,r;let{x:o,y:i,placement:n,middlewareData:s}=t,l=await $41(t,e);return n===((a=s.offset)==null?void 0:a.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:S(p({},l),{placement:n})}}}},$D=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:r,placement:o}=t,v=u3(e,t),{mainAxis:i=!0,crossAxis:n=!1,limiter:s={fn:m=>{let{x:y,y:b}=m;return{x:y,y:b}}}}=v,l=H(v,["mainAxis","crossAxis","limiter"]),c={x:a,y:r},u=await j8(t,l),d=It(d3(o)),f=pf(d),C=c[f],g=c[d];if(i){let m=f==="y"?"top":"left",y=f==="y"?"bottom":"right",b=C+u[m],x=C-u[y];C=Cf(b,C,x)}if(n){let m=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=g+u[m],x=g-u[y];g=Cf(b,g,x)}let h=s.fn(S(p({},t),{[f]:C,[d]:g}));return S(p({},h),{data:{x:h.x-a,y:h.y-r,enabled:{[f]:i,[d]:n}}})}}},QD=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:a,y:r,placement:o,rects:i,middlewareData:n}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=u3(e,t),u={x:a,y:r},d=It(o),f=pf(d),C=u[f],g=u[d],h=u3(s,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:p({mainAxis:0,crossAxis:0},h);if(l){let b=f==="y"?"height":"width",x=i.reference[f]-i.floating[b]+v.mainAxis,_=i.reference[f]+i.reference[b]-v.mainAxis;C<x?C=x:C>_&&(C=_)}if(c){var m,y;let b=f==="y"?"width":"height",x=YD.has(d3(o)),_=i.reference[d]-i.floating[b]+(x&&((m=n.offset)==null?void 0:m[d])||0)+(x?0:v.crossAxis),L=i.reference[d]+i.reference[b]+(x?0:((y=n.offset)==null?void 0:y[d])||0)-(x?v.crossAxis:0);g<_?g=_:g>L&&(g=L)}return{[f]:C,[d]:g}}}},JD=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a,r;let{placement:o,rects:i,platform:n,elements:s}=t,Z=u3(e,t),{apply:l=()=>{}}=Z,c=H(Z,["apply"]),u=await j8(t,c),d=d3(o),f=rr(o),C=It(o)==="y",{width:g,height:h}=i.floating,v,m;d==="top"||d==="bottom"?(v=d,m=f===(await(n.isRTL==null?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right"):(m=d,v=f==="end"?"top":"bottom");let y=h-u.top-u.bottom,b=g-u.left-u.right,x=c3(h-u[v],y),_=c3(g-u[m],b),L=!t.middlewareData.shift,M=x,V=_;if((a=t.middlewareData.shift)!=null&&a.enabled.x&&(V=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=y),L&&!f){let R=d6(u.left,0),P=d6(u.right,0),D=d6(u.top,0),A=d6(u.bottom,0);C?V=g-2*(R!==0||P!==0?R+P:d6(u.left,u.right)):M=h-2*(D!==0||A!==0?D+A:d6(u.top,u.bottom))}await l(S(p({},t),{availableWidth:V,availableHeight:M}));let k=await n.getDimensions(s.floating);return g!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function hf(){return typeof window!="undefined"}function nr(e){return tE(e)?(e.nodeName||"").toLowerCase():"#document"}function N6(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pt(e){var t;return(t=(tE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tE(e){return hf()?e instanceof Node||e instanceof N6(e).Node:!1}function j7(e){return hf()?e instanceof Element||e instanceof N6(e).Element:!1}function Zt(e){return hf()?e instanceof HTMLElement||e instanceof N6(e).HTMLElement:!1}function eE(e){return!hf()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof N6(e).ShadowRoot}var Q41=new Set(["inline","contents"]);function U8(e){let{overflow:t,overflowX:a,overflowY:r,display:o}=U7(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+a)&&!Q41.has(o)}var J41=new Set(["table","td","th"]);function aE(e){return J41.has(nr(e))}var er1=[":popover-open",":modal"];function Ss(e){return er1.some(t=>{try{return e.matches(t)}catch(a){return!1}})}var tr1=["transform","translate","scale","rotate","perspective"],ar1=["transform","translate","scale","rotate","perspective","filter"],rr1=["paint","layout","strict","content"];function vf(e){let t=yf(),a=j7(e)?U7(e):e;return tr1.some(r=>a[r]?a[r]!=="none":!1)||(a.containerType?a.containerType!=="normal":!1)||!t&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!t&&(a.filter?a.filter!=="none":!1)||ar1.some(r=>(a.willChange||"").includes(r))||rr1.some(r=>(a.contain||"").includes(r))}function rE(e){let t=va(e);for(;Zt(t)&&!sr(t);){if(vf(t))return t;if(Ss(t))return null;t=va(t)}return null}function yf(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var or1=new Set(["html","body","#document"]);function sr(e){return or1.has(nr(e))}function U7(e){return N6(e).getComputedStyle(e)}function Hs(e){return j7(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function va(e){if(nr(e)==="html")return e;let t=e.assignedSlot||e.parentNode||eE(e)&&e.host||Pt(e);return eE(t)?t.host:t}function oE(e){let t=va(e);return sr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zt(t)&&U8(t)?t:oE(t)}function ir(e,t,a){var r;t===void 0&&(t=[]),a===void 0&&(a=!0);let o=oE(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),n=N6(o);if(i){let s=xf(n);return t.concat(n,n.visualViewport||[],U8(o)?o:[],s&&a?ir(s):[])}return t.concat(o,ir(o,[],a))}function xf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lE(e){let t=U7(e),a=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Zt(e),i=o?e.offsetWidth:a,n=o?e.offsetHeight:r,s=Ms(a)!==i||Ms(r)!==n;return s&&(a=i,r=n),{width:a,height:r,$:s}}function zb(e){return j7(e)?e:e.contextElement}function q8(e){let t=zb(e);if(!Zt(t))return Vt(1);let a=t.getBoundingClientRect(),{width:r,height:o,$:i}=lE(t),n=(i?Ms(a.width):a.width)/r,s=(i?Ms(a.height):a.height)/o;return(!n||!Number.isFinite(n))&&(n=1),(!s||!Number.isFinite(s))&&(s=1),{x:n,y:s}}var ir1=Vt(0);function cE(e){let t=N6(e);return!yf()||!t.visualViewport?ir1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function nr1(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==N6(e)?!1:t}function lr(e,t,a,r){t===void 0&&(t=!1),a===void 0&&(a=!1);let o=e.getBoundingClientRect(),i=zb(e),n=Vt(1);t&&(r?j7(r)&&(n=q8(r)):n=q8(e));let s=nr1(i,a,r)?cE(i):Vt(0),l=(o.left+s.x)/n.x,c=(o.top+s.y)/n.y,u=o.width/n.x,d=o.height/n.y;if(i){let f=N6(i),C=r&&j7(r)?N6(r):r,g=f,h=xf(g);for(;h&&r&&C!==g;){let v=q8(h),m=h.getBoundingClientRect(),y=U7(h),b=m.left+(h.clientLeft+parseFloat(y.paddingLeft))*v.x,x=m.top+(h.clientTop+parseFloat(y.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=b,c+=x,g=N6(h),h=xf(g)}}return or({width:u,height:d,x:l,y:c})}function bf(e,t){let a=Hs(e).scrollLeft;return t?t.left+a:lr(Pt(e)).left+a}function uE(e,t){let a=e.getBoundingClientRect(),r=a.left+t.scrollLeft-bf(e,a),o=a.top+t.scrollTop;return{x:r,y:o}}function sr1(e){let{elements:t,rect:a,offsetParent:r,strategy:o}=e,i=o==="fixed",n=Pt(r),s=t?Ss(t.floating):!1;if(r===n||s&&i)return a;let l={scrollLeft:0,scrollTop:0},c=Vt(1),u=Vt(0),d=Zt(r);if((d||!d&&!i)&&((nr(r)!=="body"||U8(n))&&(l=Hs(r)),Zt(r))){let C=lr(r);c=q8(r),u.x=C.x+r.clientLeft,u.y=C.y+r.clientTop}let f=n&&!d&&!i?uE(n,l):Vt(0);return{width:a.width*c.x,height:a.height*c.y,x:a.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:a.y*c.y-l.scrollTop*c.y+u.y+f.y}}function lr1(e){return Array.from(e.getClientRects())}function cr1(e){let t=Pt(e),a=Hs(e),r=e.ownerDocument.body,o=d6(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=d6(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-a.scrollLeft+bf(e),s=-a.scrollTop;return U7(r).direction==="rtl"&&(n+=d6(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:n,y:s}}var iE=25;function ur1(e,t){let a=N6(e),r=Pt(e),o=a.visualViewport,i=r.clientWidth,n=r.clientHeight,s=0,l=0;if(o){i=o.width,n=o.height;let u=yf();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}let c=bf(r);if(c<=0){let u=r.ownerDocument,d=u.body,f=getComputedStyle(d),C=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-C);g<=iE&&(i-=g)}else c<=iE&&(i+=c);return{width:i,height:n,x:s,y:l}}var dr1=new Set(["absolute","fixed"]);function fr1(e,t){let a=lr(e,!0,t==="fixed"),r=a.top+e.clientTop,o=a.left+e.clientLeft,i=Zt(e)?q8(e):Vt(1),n=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:n,height:s,x:l,y:c}}function nE(e,t,a){let r;if(t==="viewport")r=ur1(e,a);else if(t==="document")r=cr1(Pt(e));else if(j7(t))r=fr1(t,a);else{let o=cE(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return or(r)}function dE(e,t){let a=va(e);return a===t||!j7(a)||sr(a)?!1:U7(a).position==="fixed"||dE(a,t)}function Cr1(e,t){let a=t.get(e);if(a)return a;let r=ir(e,[],!1).filter(s=>j7(s)&&nr(s)!=="body"),o=null,i=U7(e).position==="fixed",n=i?va(e):e;for(;j7(n)&&!sr(n);){let s=U7(n),l=vf(n);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&dr1.has(o.position)||U8(n)&&!l&&dE(e,n))?r=r.filter(u=>u!==n):o=s,n=va(n)}return t.set(e,r),r}function pr1(e){let{element:t,boundary:a,rootBoundary:r,strategy:o}=e,n=[...a==="clippingAncestors"?Ss(t)?[]:Cr1(t,this._c):[].concat(a),r],s=n[0],l=n.reduce((c,u)=>{let d=nE(t,u,o);return c.top=d6(d.top,c.top),c.right=c3(d.right,c.right),c.bottom=c3(d.bottom,c.bottom),c.left=d6(d.left,c.left),c},nE(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function mr1(e){let{width:t,height:a}=lE(e);return{width:t,height:a}}function gr1(e,t,a){let r=Zt(t),o=Pt(t),i=a==="fixed",n=lr(e,!0,i,t),s={scrollLeft:0,scrollTop:0},l=Vt(0);function c(){l.x=bf(o)}if(r||!r&&!i)if((nr(t)!=="body"||U8(o))&&(s=Hs(t)),r){let C=lr(t,!0,i,t);l.x=C.x+t.clientLeft,l.y=C.y+t.clientTop}else o&&c();i&&!r&&o&&c();let u=o&&!r&&!i?uE(o,s):Vt(0),d=n.left+s.scrollLeft-l.x-u.x,f=n.top+s.scrollTop-l.y-u.y;return{x:d,y:f,width:n.width,height:n.height}}function Fb(e){return U7(e).position==="static"}function sE(e,t){if(!Zt(e)||U7(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return Pt(e)===a&&(a=a.ownerDocument.body),a}function fE(e,t){let a=N6(e);if(Ss(e))return a;if(!Zt(e)){let o=va(e);for(;o&&!sr(o);){if(j7(o)&&!Fb(o))return o;o=va(o)}return a}let r=sE(e,t);for(;r&&aE(r)&&Fb(r);)r=sE(r,t);return r&&sr(r)&&Fb(r)&&!vf(r)?a:r||rE(e)||a}var hr1=async function(e){let t=this.getOffsetParent||fE,a=this.getDimensions,r=await a(e.floating);return{reference:gr1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function vr1(e){return U7(e).direction==="rtl"}var CE={convertOffsetParentRelativeRectToViewportRelativeRect:sr1,getDocumentElement:Pt,getClippingRect:pr1,getOffsetParent:fE,getElementRects:hr1,getClientRects:lr1,getDimensions:mr1,getScale:q8,isElement:j7,isRTL:vr1};function pE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yr1(e,t){let a=null,r,o=Pt(e);function i(){var s;clearTimeout(r),(s=a)==null||s.disconnect(),a=null}function n(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();let c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:C}=c;if(s||t(),!f||!C)return;let g=_s(d),h=_s(o.clientWidth-(u+f)),v=_s(o.clientHeight-(d+C)),m=_s(u),b={rootMargin:-g+"px "+-h+"px "+-v+"px "+-m+"px",threshold:d6(0,c3(1,l))||1},x=!0;function _(L){let M=L[0].intersectionRatio;if(M!==l){if(!x)return n();M?n(!1,M):r=setTimeout(()=>{n(!1,1e-7)},1e3)}M===1&&!pE(c,e.getBoundingClientRect())&&n(),x=!1}try{a=new IntersectionObserver(_,S(p({},b),{root:o.ownerDocument}))}catch(L){a=new IntersectionObserver(_,b)}a.observe(e)}return n(!0),i}function Kb(e,t,a,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=zb(e),u=o||i?[...c?ir(c):[],...ir(t)]:[];u.forEach(m=>{o&&m.addEventListener("scroll",a,{passive:!0}),i&&m.addEventListener("resize",a)});let d=c&&s?yr1(c,a):null,f=-1,C=null;n&&(C=new ResizeObserver(m=>{let[y]=m;y&&y.target===c&&C&&(C.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=C)==null||b.observe(t)})),a()}),c&&!l&&C.observe(c),C.observe(t));let g,h=l?lr(e):null;l&&v();function v(){let m=lr(e);h&&!pE(h,m)&&a(),h=m,g=requestAnimationFrame(v)}return a(),()=>{var m;u.forEach(y=>{o&&y.removeEventListener("scroll",a),i&&y.removeEventListener("resize",a)}),d==null||d(),(m=C)==null||m.disconnect(),C=null,l&&cancelAnimationFrame(g)}}var mE=XD;var gE=$D,hE=WD,vE=JD,yE=GD,jb=qD;var xE=QD,Ub=(e,t,a)=>{let r=new Map,o=p({platform:CE},a),i=S(p({},o.platform),{_c:r});return UD(e,t,S(p({},o),{platform:i}))};var E2=w(I(),1),LE=w(I(),1),wE=w(j5(),1);var xr1=typeof document!="undefined",br1=function(){},Lf=xr1?LE.useLayoutEffect:br1;function wf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let a,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(r=a;r--!==0;)if(!wf(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),a=o.length,a!==Object.keys(t).length)return!1;for(r=a;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=a;r--!==0;){let i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!wf(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ME(e){return typeof window=="undefined"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bE(e,t){let a=ME(e);return Math.round(t*a)/a}function qb(e){let t=E2.useRef(e);return Lf(()=>{t.current=e}),t}function _E(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:n}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=E2.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[f,C]=E2.useState(r);wf(f,r)||C(r);let[g,h]=E2.useState(null),[v,m]=E2.useState(null),y=E2.useCallback(q=>{q!==L.current&&(L.current=q,h(q))},[]),b=E2.useCallback(q=>{q!==M.current&&(M.current=q,m(q))},[]),x=i||g,_=n||v,L=E2.useRef(null),M=E2.useRef(null),V=E2.useRef(u),k=l!=null,Z=qb(l),R=qb(o),P=qb(c),D=E2.useCallback(()=>{if(!L.current||!M.current)return;let q={placement:t,strategy:a,middleware:f};R.current&&(q.platform=R.current),Ub(L.current,M.current,q).then(G=>{let N=S(p({},G),{isPositioned:P.current!==!1});A.current&&!wf(V.current,N)&&(V.current=N,wE.flushSync(()=>{d(N)}))})},[f,t,a,R,P]);Lf(()=>{c===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,d(q=>S(p({},q),{isPositioned:!1})))},[c]);let A=E2.useRef(!1);Lf(()=>(A.current=!0,()=>{A.current=!1}),[]),Lf(()=>{if(x&&(L.current=x),_&&(M.current=_),x&&_){if(Z.current)return Z.current(x,_,D);D()}},[x,_,D,Z,k]);let B=E2.useMemo(()=>({reference:L,floating:M,setReference:y,setFloating:b}),[y,b]),W=E2.useMemo(()=>({reference:x,floating:_}),[x,_]),K=E2.useMemo(()=>{let q={position:a,left:0,top:0};if(!W.floating)return q;let G=bE(W.floating,u.x),N=bE(W.floating,u.y);return s?p(S(p({},q),{transform:"translate("+G+"px, "+N+"px)"}),ME(W.floating)>=1.5&&{willChange:"transform"}):{position:a,left:G,top:N}},[a,s,W.floating,u.x,u.y]);return E2.useMemo(()=>S(p({},u),{update:D,refs:B,elements:W,floatingStyles:K}),[u,D,B,W,K])}var Lr1=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){let{element:r,padding:o}=typeof e=="function"?e(a):e;return r&&t(r)?r.current!=null?jb({element:r.current,padding:o}).fn(a):{}:r?jb({element:r,padding:o}).fn(a):{}}}},SE=(e,t)=>S(p({},mE(e)),{options:[e,t]}),HE=(e,t)=>S(p({},gE(e)),{options:[e,t]}),kE=(e,t)=>S(p({},xE(e)),{options:[e,t]}),VE=(e,t)=>S(p({},hE(e)),{options:[e,t]}),IE=(e,t)=>S(p({},vE(e)),{options:[e,t]});var PE=(e,t)=>S(p({},yE(e)),{options:[e,t]});var ZE=(e,t)=>S(p({},Lr1(e)),{options:[e,t]});var EE=w(I(),1);var RE=w(I(),1),kr1=w(j5(),1);var ae=w(I(),1);var Mf=w(T(),1);function AE(e){let t=wr1(e),a=ae.forwardRef((r,o)=>{let c=r,{children:i}=c,n=H(c,["children"]),s=ae.Children.toArray(i),l=s.find(_r1);if(l){let u=l.props.children,d=s.map(f=>f===l?ae.Children.count(u)>1?ae.Children.only(null):ae.isValidElement(u)?u.props.children:null:f);return(0,Mf.jsx)(t,S(p({},n),{ref:o,children:ae.isValidElement(u)?ae.cloneElement(u,void 0,d):null}))}return(0,Mf.jsx)(t,S(p({},n),{ref:o,children:i}))});return a.displayName=`${e}.Slot`,a}function wr1(e){let t=ae.forwardRef((a,r)=>{let n=a,{children:o}=n,i=H(n,["children"]);if(ae.isValidElement(o)){let s=Hr1(o),l=Sr1(i,o.props);return o.type!==ae.Fragment&&(l.ref=r?S1(r,s):s),ae.cloneElement(o,l)}return ae.Children.count(o)>1?ae.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Mr1=Symbol("radix.slottable");function _r1(e){return ae.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Mr1}function Sr1(e,t){let a=p({},t);for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?a[r]=(...s)=>{let l=i(...s);return o(...s),l}:o&&(a[r]=o):r==="style"?a[r]=p(p({},o),i):r==="className"&&(a[r]=[o,i].filter(Boolean).join(" "))}return p(p({},e),a)}function Hr1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var TE=w(T(),1);var Vr1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],DE=Vr1.reduce((e,t)=>{let a=AE(`Primitive.${t}`),r=RE.forwardRef((o,i)=>{let c=o,{asChild:n}=c,s=H(c,["asChild"]),l=n?a:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),(0,TE.jsx)(l,S(p({},s),{ref:i}))});return r.displayName=`Primitive.${t}`,S(p({},e),{[t]:r})},{});var Wb=w(T(),1);var Ir1="Arrow",OE=EE.forwardRef((e,t)=>{let n=e,{children:a,width:r=10,height:o=5}=n,i=H(n,["children","width","height"]);return(0,Wb.jsx)(DE.svg,S(p({},i),{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?a:(0,Wb.jsx)("polygon",{points:"0,0 30,0 15,10"})}))});OE.displayName=Ir1;var BE=OE;var FE=w(I(),1),Er1=w(j5(),1);var re=w(I(),1);var _f=w(T(),1);function NE(e){let t=Zr1(e),a=re.forwardRef((r,o)=>{let c=r,{children:i}=c,n=H(c,["children"]),s=re.Children.toArray(i),l=s.find(Rr1);if(l){let u=l.props.children,d=s.map(f=>f===l?re.Children.count(u)>1?re.Children.only(null):re.isValidElement(u)?u.props.children:null:f);return(0,_f.jsx)(t,S(p({},n),{ref:o,children:re.isValidElement(u)?re.cloneElement(u,void 0,d):null}))}return(0,_f.jsx)(t,S(p({},n),{ref:o,children:i}))});return a.displayName=`${e}.Slot`,a}function Zr1(e){let t=re.forwardRef((a,r)=>{let n=a,{children:o}=n,i=H(n,["children"]);if(re.isValidElement(o)){let s=Dr1(o),l=Tr1(i,o.props);return o.type!==re.Fragment&&(l.ref=r?S1(r,s):s),re.cloneElement(o,l)}return re.Children.count(o)>1?re.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ar1=Symbol("radix.slottable");function Rr1(e){return re.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ar1}function Tr1(e,t){let a=p({},t);for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?a[r]=(...s)=>{let l=i(...s);return o(...s),l}:o&&(a[r]=o):r==="style"?a[r]=p(p({},o),i):r==="className"&&(a[r]=[o,i].filter(Boolean).join(" "))}return p(p({},e),a)}function Dr1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var zE=w(T(),1);var Or1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Gb=Or1.reduce((e,t)=>{let a=NE(`Primitive.${t}`),r=FE.forwardRef((o,i)=>{let c=o,{asChild:n}=c,s=H(c,["asChild"]),l=n?a:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),(0,zE.jsx)(l,S(p({},s),{ref:i}))});return r.displayName=`Primitive.${t}`,S(p({},e),{[t]:r})},{});var KE=w(I(),1);function W0(e){let[t,a]=KE.useState(void 0);return D2(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;let i=o[0],n,s;if("borderBoxSize"in i){let l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;n=c.inlineSize,s=c.blockSize}else n=e.offsetWidth,s=e.offsetHeight;a({width:n,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else a(void 0)},[e]),t}var G0=w(T(),1);var Yb="Popper",[jE,ya]=r5(Yb),[Br1,UE]=jE(Yb),qE=e=>{let{__scopePopper:t,children:a}=e,[r,o]=F6.useState(null);return(0,G0.jsx)(Br1,{scope:t,anchor:r,onAnchorChange:o,children:a})};qE.displayName=Yb;var WE="PopperAnchor",GE=F6.forwardRef((e,t)=>{let c=e,{__scopePopper:a,virtualRef:r}=c,o=H(c,["__scopePopper","virtualRef"]),i=UE(WE,a),n=F6.useRef(null),s=y1(t,n),l=F6.useRef(null);return F6.useEffect(()=>{let u=l.current;l.current=(r==null?void 0:r.current)||n.current,u!==l.current&&i.onAnchorChange(l.current)}),r?null:(0,G0.jsx)(Gb.div,S(p({},o),{ref:s}))});GE.displayName=WE;var Xb="PopperContent",[Nr1,Fr1]=jE(Xb),YE=F6.forwardRef((e,t)=>{var h5,F,n1,C1,j,s5,$,l5;let k1=e,{__scopePopper:a,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:n=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:C="optimized",onPlaced:g}=k1,h=H(k1,["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","onPlaced"]),v=UE(Xb,a),[m,y]=F6.useState(null),b=y1(t,t5=>y(t5)),[x,_]=F6.useState(null),L=W0(x),M=(h5=L==null?void 0:L.width)!=null?h5:0,V=(F=L==null?void 0:L.height)!=null?F:0,k=r+(i!=="center"?"-"+i:""),Z=typeof u=="number"?u:p({top:0,right:0,bottom:0,left:0},u),R=Array.isArray(c)?c:[c],P=R.length>0,D={padding:Z,boundary:R.filter(Kr1),altBoundary:P},{refs:A,floatingStyles:B,placement:W,isPositioned:K,middlewareData:q}=_E({strategy:"fixed",placement:k,whileElementsMounted:(...t5)=>Kb(...t5,{animationFrame:C==="always"}),elements:{reference:v.anchor},middleware:[SE({mainAxis:o+V,alignmentAxis:n}),l&&HE(p({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?kE():void 0},D)),l&&VE(p({},D)),IE(S(p({},D),{apply:({elements:t5,rects:z5,availableWidth:Re,availableHeight:w6})=>{let{width:q2,height:i6}=z5.reference,Te=t5.floating.style;Te.setProperty("--radix-popper-available-width",`${Re}px`),Te.setProperty("--radix-popper-available-height",`${w6}px`),Te.setProperty("--radix-popper-anchor-width",`${q2}px`),Te.setProperty("--radix-popper-anchor-height",`${i6}px`)}})),x&&ZE({element:x,padding:s}),jr1({arrowWidth:M,arrowHeight:V}),f&&PE(p({strategy:"referenceHidden"},D))]}),[G,N]=QE(W),r1=Me(g);D2(()=>{K&&(r1==null||r1())},[K,r1]);let x1=(n1=q.arrow)==null?void 0:n1.x,v1=(C1=q.arrow)==null?void 0:C1.y,I1=((j=q.arrow)==null?void 0:j.centerOffset)!==0,[Y1,T5]=F6.useState();return D2(()=>{m&&T5(window.getComputedStyle(m).zIndex)},[m]),(0,G0.jsx)("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:p(S(p({},B),{transform:K?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y1,"--radix-popper-transform-origin":[(s5=q.transformOrigin)==null?void 0:s5.x,($=q.transformOrigin)==null?void 0:$.y].join(" ")}),((l5=q.hide)==null?void 0:l5.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}),dir:e.dir,children:(0,G0.jsx)(Nr1,{scope:a,placedSide:G,onArrowChange:_,arrowX:x1,arrowY:v1,shouldHideArrow:I1,children:(0,G0.jsx)(Gb.div,S(p({"data-side":G,"data-align":N},h),{ref:b,style:S(p({},h.style),{animation:K?void 0:"none"})}))})})});YE.displayName=Xb;var XE="PopperArrow",zr1={top:"bottom",right:"left",bottom:"top",left:"right"},$E=F6.forwardRef(function(t,a){let s=t,{__scopePopper:r}=s,o=H(s,["__scopePopper"]),i=Fr1(XE,r),n=zr1[i.placedSide];return(0,G0.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[n]: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:(0,G0.jsx)(BE,S(p({},o),{ref:a,style:S(p({},o.style),{display:"block"})}))})});$E.displayName=XE;function Kr1(e){return e!==null}var jr1=e=>({name:"transformOrigin",options:e,fn(t){var v,m,y,b,x;let{placement:a,rects:r,middlewareData:o}=t,n=((v=o.arrow)==null?void 0:v.centerOffset)!==0,s=n?0:e.arrowWidth,l=n?0:e.arrowHeight,[c,u]=QE(a),d={start:"0%",center:"50%",end:"100%"}[u],f=((y=(m=o.arrow)==null?void 0:m.x)!=null?y:0)+s/2,C=((x=(b=o.arrow)==null?void 0:b.y)!=null?x:0)+l/2,g="",h="";return c==="bottom"?(g=n?d:`${f}px`,h=`${-l}px`):c==="top"?(g=n?d:`${f}px`,h=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,h=n?d:`${C}px`):c==="left"&&(g=`${r.floating.width+l}px`,h=n?d:`${C}px`),{data:{x:g,y:h}}}});function QE(e){let[t,a="center"]=e.split("-");return[t,a]}var cr=qE,ur=GE,W8=YE,G8=$E;var Hf=w(I(),1),rO=w(j5(),1);var eO=w(I(),1),Xr1=w(j5(),1);var oe=w(I(),1);var Sf=w(T(),1);function JE(e){let t=Ur1(e),a=oe.forwardRef((r,o)=>{let c=r,{children:i}=c,n=H(c,["children"]),s=oe.Children.toArray(i),l=s.find(Wr1);if(l){let u=l.props.children,d=s.map(f=>f===l?oe.Children.count(u)>1?oe.Children.only(null):oe.isValidElement(u)?u.props.children:null:f);return(0,Sf.jsx)(t,S(p({},n),{ref:o,children:oe.isValidElement(u)?oe.cloneElement(u,void 0,d):null}))}return(0,Sf.jsx)(t,S(p({},n),{ref:o,children:i}))});return a.displayName=`${e}.Slot`,a}function Ur1(e){let t=oe.forwardRef((a,r)=>{let n=a,{children:o}=n,i=H(n,["children"]);if(oe.isValidElement(o)){let s=Yr1(o),l=Gr1(i,o.props);return o.type!==oe.Fragment&&(l.ref=r?S1(r,s):s),oe.cloneElement(o,l)}return oe.Children.count(o)>1?oe.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qr1=Symbol("radix.slottable");function Wr1(e){return oe.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qr1}function Gr1(e,t){let a=p({},t);for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?a[r]=(...s)=>{let l=i(...s);return o(...s),l}:o&&(a[r]=o):r==="style"?a[r]=p(p({},o),i):r==="className"&&(a[r]=[o,i].filter(Boolean).join(" "))}return p(p({},e),a)}function Yr1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var tO=w(T(),1);var $r1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],aO=$r1.reduce((e,t)=>{let a=JE(`Primitive.${t}`),r=eO.forwardRef((o,i)=>{let c=o,{asChild:n}=c,s=H(c,["asChild"]),l=n?a:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),(0,tO.jsx)(l,S(p({},s),{ref:i}))});return r.displayName=`Primitive.${t}`,S(p({},e),{[t]:r})},{});var oO=w(T(),1);var Qr1="Portal",xa=Hf.forwardRef((e,t)=>{var l;let s=e,{container:a}=s,r=H(s,["container"]),[o,i]=Hf.useState(!1);D2(()=>i(!0),[]);let n=a||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return n?rO.default.createPortal((0,oO.jsx)(aO.div,S(p({},r),{ref:t})),n):null});xa.displayName=Qr1;var iO=w(I(),1),nO=w(j5(),1);var ie=w(I(),1);var kf=w(T(),1);function Vf(e){let t=Jr1(e),a=ie.forwardRef((r,o)=>{let c=r,{children:i}=c,n=H(c,["children"]),s=ie.Children.toArray(i),l=s.find(to1);if(l){let u=l.props.children,d=s.map(f=>f===l?ie.Children.count(u)>1?ie.Children.only(null):ie.isValidElement(u)?u.props.children:null:f);return(0,kf.jsx)(t,S(p({},n),{ref:o,children:ie.isValidElement(u)?ie.cloneElement(u,void 0,d):null}))}return(0,kf.jsx)(t,S(p({},n),{ref:o,children:i}))});return a.displayName=`${e}.Slot`,a}function Jr1(e){let t=ie.forwardRef((a,r)=>{let n=a,{children:o}=n,i=H(n,["children"]);if(ie.isValidElement(o)){let s=ro1(o),l=ao1(i,o.props);return o.type!==ie.Fragment&&(l.ref=r?S1(r,s):s),ie.cloneElement(o,l)}return ie.Children.count(o)>1?ie.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var eo1=Symbol("radix.slottable");function to1(e){return ie.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===eo1}function ao1(e,t){let a=p({},t);for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?a[r]=(...s)=>{let l=i(...s);return o(...s),l}:o&&(a[r]=o):r==="style"?a[r]=p(p({},o),i):r==="className"&&(a[r]=[o,i].filter(Boolean).join(" "))}return p(p({},e),a)}function ro1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var sO=w(T(),1);var oo1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y8=oo1.reduce((e,t)=>{let a=Vf(`Primitive.${t}`),r=iO.forwardRef((o,i)=>{let c=o,{asChild:n}=c,s=H(c,["asChild"]),l=n?a:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),(0,sO.jsx)(l,S(p({},s),{ref:i}))});return r.displayName=`Primitive.${t}`,S(p({},e),{[t]:r})},{});function lO(e,t){e&&nO.flushSync(()=>e.dispatchEvent(t))}var _e=w(I(),1);var uO=w(I(),1),uo1=w(j5(),1);var ne=w(I(),1);var If=w(T(),1);function cO(e){let t=io1(e),a=ne.forwardRef((r,o)=>{let c=r,{children:i}=c,n=H(c,["children"]),s=ne.Children.toArray(i),l=s.find(so1);if(l){let u=l.props.children,d=s.map(f=>f===l?ne.Children.count(u)>1?ne.Children.only(null):ne.isValidElement(u)?u.props.children:null:f);return(0,If.jsx)(t,S(p({},n),{ref:o,children:ne.isValidElement(u)?ne.cloneElement(u,void 0,d):null}))}return(0,If.jsx)(t,S(p({},n),{ref:o,children:i}))});return a.displayName=`${e}.Slot`,a}function io1(e){let t=ne.forwardRef((a,r)=>{let n=a,{children:o}=n,i=H(n,["children"]);if(ne.isValidElement(o)){let s=co1(o),l=lo1(i,o.props);return o.type!==ne.Fragment&&(l.ref=r?S1(r,s):s),ne.cloneElement(o,l)}return ne.Children.count(o)>1?ne.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var no1=Symbol("radix.slottable");function so1(e){return ne.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===no1}function lo1(e,t){let a=p({},t);for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?a[r]=(...s)=>{let l=i(...s);return o(...s),l}:o&&(a[r]=o):r==="style"?a[r]=p(p({},o),i):r==="className"&&(a[r]=[o,i].filter(Boolean).join(" "))}return p(p({},e),a)}function co1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var dO=w(T(),1);var do1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qb=do1.reduce((e,t)=>{let a=cO(`Primitive.${t}`),r=uO.forwardRef((o,i)=>{let c=o,{asChild:n}=c,s=H(c,["asChild"]),l=n?a:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),(0,dO.jsx)(l,S(p({},s),{ref:i}))});return r.displayName=`Primitive.${t}`,S(p({},e),{[t]:r})},{});var Y0=w(T(),1);var Jb="rovingFocusGroup.onEntryFocus",fo1={bubbles:!1,cancelable:!0},ks="RovingFocusGroup",[eL,fO,Co1]=F8(ks),[po1,ba]=r5(ks,[Co1]),[mo1,go1]=po1(ks),CO=_e.forwardRef((e,t)=>(0,Y0.jsx)(eL.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,Y0.jsx)(eL.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,Y0.jsx)(ho1,S(p({},e),{ref:t}))})}));CO.displayName=ks;var ho1=_e.forwardRef((e,t)=>{let V=e,{__scopeRovingFocusGroup:a,orientation:r,loop:o=!1,dir:i,currentTabStopId:n,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1}=V,d=H(V,["__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopId","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus"]),f=_e.useRef(null),C=y1(t,f),g=l3(i),[h,v]=d2({prop:n,defaultProp:s!=null?s:null,onChange:l,caller:ks}),[m,y]=_e.useState(!1),b=Me(c),x=fO(a),_=_e.useRef(!1),[L,M]=_e.useState(0);return _e.useEffect(()=>{let k=f.current;if(k)return k.addEventListener(Jb,b),()=>k.removeEventListener(Jb,b)},[b]),(0,Y0.jsx)(mo1,{scope:a,orientation:r,dir:g,loop:o,currentTabStopId:h,onItemFocus:_e.useCallback(k=>v(k),[v]),onItemShiftTab:_e.useCallback(()=>y(!0),[]),onFocusableItemAdd:_e.useCallback(()=>M(k=>k+1),[]),onFocusableItemRemove:_e.useCallback(()=>M(k=>k-1),[]),children:(0,Y0.jsx)(Qb.div,S(p({tabIndex:m||L===0?-1:0,"data-orientation":r},d),{ref:C,style:p({outline:"none"},e.style),onMouseDown:t1(e.onMouseDown,()=>{_.current=!0}),onFocus:t1(e.onFocus,k=>{let Z=!_.current;if(k.target===k.currentTarget&&Z&&!m){let R=new CustomEvent(Jb,fo1);if(k.currentTarget.dispatchEvent(R),!R.defaultPrevented){let P=x().filter(K=>K.focusable),D=P.find(K=>K.active),A=P.find(K=>K.id===h),W=[D,A,...P].filter(Boolean).map(K=>K.ref.current);gO(W,u)}}_.current=!1}),onBlur:t1(e.onBlur,()=>y(!1))}))})}),pO="RovingFocusGroupItem",mO=_e.forwardRef((e,t)=>{let v=e,{__scopeRovingFocusGroup:a,focusable:r=!0,active:o=!1,tabStopId:i,children:n}=v,s=H(v,["__scopeRovingFocusGroup","focusable","active","tabStopId","children"]),l=v2(),c=i||l,u=go1(pO,a),d=u.currentTabStopId===c,f=fO(a),{onFocusableItemAdd:C,onFocusableItemRemove:g,currentTabStopId:h}=u;return _e.useEffect(()=>{if(r)return C(),()=>g()},[r,C,g]),(0,Y0.jsx)(eL.ItemSlot,{scope:a,id:c,focusable:r,active:o,children:(0,Y0.jsx)(Qb.span,S(p({tabIndex:d?0:-1,"data-orientation":u.orientation},s),{ref:t,onMouseDown:t1(e.onMouseDown,m=>{r?u.onItemFocus(c):m.preventDefault()}),onFocus:t1(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:t1(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){u.onItemShiftTab();return}if(m.target!==m.currentTarget)return;let y=xo1(m,u.orientation,u.dir);if(y!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let x=f().filter(_=>_.focusable).map(_=>_.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();let _=x.indexOf(m.currentTarget);x=u.loop?bo1(x,_+1):x.slice(_+1)}setTimeout(()=>gO(x))}}),children:typeof n=="function"?n({isCurrentTabStop:d,hasTabStop:h!=null}):n}))})});mO.displayName=pO;var vo1={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function yo1(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function xo1(e,t,a){let r=yo1(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return vo1[r]}function gO(e,t=!1){let a=document.activeElement;for(let r of e)if(r===a||(r.focus({preventScroll:t}),document.activeElement!==a))return}function bo1(e,t){return e.map((a,r)=>e[(t+r)%e.length])}var X8=CO,$8=mO;var Lo1=function(e){if(typeof document=="undefined")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Q8=new WeakMap,Pf=new WeakMap,Zf={},aL=0,hO=function(e){return e&&(e.host||hO(e.parentNode))},wo1=function(e,t){return t.map(function(a){if(e.contains(a))return a;var r=hO(a);return r&&e.contains(r)?r:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},Mo1=function(e,t,a,r){var o=wo1(t,Array.isArray(e)?e:[e]);Zf[a]||(Zf[a]=new WeakMap);var i=Zf[a],n=[],s=new Set,l=new Set(o),c=function(d){!d||s.has(d)||(s.add(d),c(d.parentNode))};o.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(s.has(f))u(f);else try{var C=f.getAttribute(r),g=C!==null&&C!=="false",h=(Q8.get(f)||0)+1,v=(i.get(f)||0)+1;Q8.set(f,h),i.set(f,v),n.push(f),h===1&&g&&Pf.set(f,!0),v===1&&f.setAttribute(a,"true"),g||f.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",f,m)}})};return u(t),s.clear(),aL++,function(){n.forEach(function(d){var f=Q8.get(d)-1,C=i.get(d)-1;Q8.set(d,f),i.set(d,C),f||(Pf.has(d)||d.removeAttribute(r),Pf.delete(d)),C||d.removeAttribute(a)}),aL--,aL||(Q8=new WeakMap,Q8=new WeakMap,Pf=new WeakMap,Zf={})}},J8=function(e,t,a){a===void 0&&(a="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||Lo1(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Mo1(r,o,a,"aria-hidden")):function(){return null}};var z6=function(){return z6=Object.assign||function(t){for(var a,r=1,o=arguments.length;r<o;r++){a=arguments[r];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},z6.apply(this,arguments)};function Af(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(a[r[o]]=e[r[o]]);return a}function vO(e,t,a){if(a||arguments.length===2)for(var r=0,o=t.length,i;r<o;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 Of=w(I());var Xe=w(I());var dr="right-scroll-bar-position",fr="width-before-scroll-bar",rL="with-scroll-bars-hidden",oL="--removed-body-scroll-bar-size";function Rf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var yO=w(I());function xO(e,t){var a=(0,yO.useState)(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(r){var o=a.value;o!==r&&(a.value=r,a.callback(r,o))}}}})[0];return a.callback=t,a.facade}var Tf=w(I());var _o1=typeof window!="undefined"?Tf.useLayoutEffect:Tf.useEffect,bO=new WeakMap;function iL(e,t){var a=xO(t||null,function(r){return e.forEach(function(o){return Rf(o,r)})});return _o1(function(){var r=bO.get(a);if(r){var o=new Set(r),i=new Set(e),n=a.current;o.forEach(function(s){i.has(s)||Rf(s,null)}),i.forEach(function(s){o.has(s)||Rf(s,n)})}bO.set(a,e)},[e]),a}function So1(e){return e}function Ho1(e,t){t===void 0&&(t=So1);var a=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(i){var n=t(i,r);return a.push(n),function(){a=a.filter(function(s){return s!==n})}},assignSyncMedium:function(i){for(r=!0;a.length;){var n=a;a=[],n.forEach(i)}a={push:function(s){return i(s)},filter:function(){return a}}},assignMedium:function(i){r=!0;var n=[];if(a.length){var s=a;a=[],s.forEach(i),n=a}var l=function(){var u=n;n=[],u.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),a={push:function(u){n.push(u),c()},filter:function(u){return n=n.filter(u),a}}}};return o}function nL(e){e===void 0&&(e={});var t=Ho1(null);return t.options=z6({async:!0,ssr:!1},e),t}var LO=w(I()),wO=function(e){var t=e.sideCar,a=Af(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 LO.createElement(r,z6({},a))};wO.isSideCarExport=!0;function sL(e,t){return e.useMedium(t),wO}var Df=nL();var lL=function(){},Vs=Xe.forwardRef(function(e,t){var a=Xe.useRef(null),r=Xe.useState({onScrollCapture:lL,onWheelCapture:lL,onTouchMoveCapture:lL}),o=r[0],i=r[1],n=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,C=e.noRelative,g=e.noIsolation,h=e.inert,v=e.allowPinchZoom,m=e.as,y=m===void 0?"div":m,b=e.gapMode,x=Af(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=f,L=iL([a,t]),M=z6(z6({},x),o);return Xe.createElement(Xe.Fragment,null,u&&Xe.createElement(_,{sideCar:Df,removeScrollBar:c,shards:d,noRelative:C,noIsolation:g,inert:h,setCallbacks:i,allowPinchZoom:!!v,lockRef:a,gapMode:b}),n?Xe.cloneElement(Xe.Children.only(s),z6(z6({},M),{ref:L})):Xe.createElement(y,z6({},M,{className:l,ref:L}),s))});Vs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vs.classNames={fullWidth:fr,zeroRight:dr};var X5=w(I());var t9=w(I());var SO=w(I());var MO;var _O=function(){if(MO)return MO;if(typeof __webpack_nonce__!="undefined")return __webpack_nonce__};function ko1(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=_O();return t&&e.setAttribute("nonce",t),e}function Vo1(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Io1(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var cL=function(){var e=0,t=null;return{add:function(a){e==0&&(t=ko1())&&(Vo1(t,a),Io1(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var uL=function(){var e=cL();return function(t,a){SO.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&a])}};var Is=function(){var e=uL(),t=function(a){var r=a.styles,o=a.dynamic;return e(r,o),null};return t};var Po1={left:0,top:0,right:0,gap:0},dL=function(e){return parseInt(e||"",10)||0},Zo1=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[dL(a),dL(r),dL(o)]},fL=function(e){if(e===void 0&&(e="margin"),typeof window=="undefined")return Po1;var t=Zo1(e),a=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-a+t[2]-t[0])}};var Ao1=Is(),e9="data-scroll-locked",Ro1=function(e,t,a,r){var o=e.left,i=e.top,n=e.right,s=e.gap;return a===void 0&&(a="margin"),`
|
|
26
|
+
`,{variants:{size:{sm:"",md:""}},defaultVariants:{size:"md"}}),YT=o=>{var i=o,{size:e="md",tokens:t,type:a="multiple"}=i,r=H(i,["size","tokens","type"]);var g,h,v;let n=U("accordion",qT,{tokens:t,size:e}),C=r,{collapsible:s}=C,l=H(C,["collapsible"]),c=a==="multiple"?l:r,u=j01[e],d=(v=(h=(g=A1(n==null?void 0:n.tokens,"sizes",u))==null?void 0:g.trigger)==null?void 0:h.fontSize)!=null?v:"16px",f=S(p({},n.styles),{"--accordion-font-size":d,fontFamily:"var(--accordion-font-family)",lineHeight:"var(--accordion-line-height)",letterSpacing:"var(--accordion-letter-spacing)"});return(0,Vb.jsx)(Ib.Provider,{value:e,children:(0,Vb.jsx)(FT,p({"data-slot":"accordion","data-size":e,className:"group",style:f,type:a},c))})};var XT=w(I(),1);var Pb=w(T(),1),af=r=>{var o=r,{className:e,children:t}=o,a=H(o,["className","children"]);let i=(0,XT.useContext)(Ib);return(0,Pb.jsx)(UT,S(p({className:`${e} ${GT}-content`},a),{children:(0,Pb.jsx)("div",{className:"pt-2",children:t})}))};var $T=w(T(),1),rf=a=>{var r=a,{className:e}=r,t=H(r,["className"]);return(0,$T.jsx)(zT,p({"data-slot":"accordion-item",className:O("border-b px-2 pb-3 border-[--accordion-border-color]","[&:last-child]:border-b-0",e)},t))};var nf=w(I());var QT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),U01=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,r)=>r?r.toUpperCase():a.toLowerCase()),Zb=e=>{let t=U01(e);return t.charAt(0).toUpperCase()+t.slice(1)},of=(...e)=>e.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim(),JT=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var fs=w(I());var eD={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var tD=(0,fs.forwardRef)((c,l)=>{var u=c,{color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:n}=u,s=H(u,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return(0,fs.createElement)("svg",p(p(S(p({ref:l},eD),{width:t,height:t,stroke:e,strokeWidth:r?Number(a)*24/Number(t):a,className:of("lucide",o)}),!i&&!JT(s)&&{"aria-hidden":"true"}),s),[...n.map(([d,f])=>(0,fs.createElement)(d,f)),...Array.isArray(i)?i:[i]])});var o5=(e,t)=>{let a=(0,nf.forwardRef)((n,i)=>{var s=n,{className:r}=s,o=H(s,["className"]);return(0,nf.createElement)(tD,p({ref:i,iconNode:t,className:of(`lucide-${QT(Zb(e))}`,`lucide-${e}`,r)},o))});return a.displayName=Zb(e),a};var q01=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Cs=o5("calendar",q01);var W01=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ca=o5("check",W01);var G01=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],u7=o5("chevron-down",G01);var Y01=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],pa=o5("chevron-left",Y01);var X01=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],kt=o5("chevron-right",X01);var $01=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],tr=o5("chevrons-up-down",$01);var Q01=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],ps=o5("circle-dashed",Q01);var J01=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],ma=o5("ellipsis",J01);var e41=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],ms=o5("eye-off",e41);var t41=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],gs=o5("eye",t41);var a41=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],hs=o5("info",a41);var r41=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],j0=o5("loader-circle",r41);var o41=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],vs=o5("lock-keyhole",o41);var i41=[["path",{d:"M5 12h14",key:"1ays0h"}]],ys=o5("minus",i41);var n41=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ga=o5("search",n41);var s41=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xs=o5("x",s41);var U0=w(T(),1),bs="ui-accordion",sf=o=>{var i=o,{className:e,children:t,label:a}=i,r=H(i,["className","children","label"]);return(0,U0.jsx)(KT,{children:(0,U0.jsxs)(jT,S(p({className:`${e} ${bs} group`},r),{children:[(0,U0.jsxs)("div",{className:`${bs}-trigger`,children:[a&&(0,U0.jsx)("span",{className:`${bs}-label`,children:a}),(0,U0.jsx)("span",{className:`${bs}-title`,children:t})]}),(0,U0.jsx)(u7,{className:`${bs}-icon`})]}))})};var Ls=YT;Ls.Content=af;Ls.Item=rf;Ls.Trigger=sf;var aD=w(I(),1);var B6=w(T(),1),l41={"--table-bg":{tokenPath:"background",fallback:"#FFFFFF"},"--table-border":{tokenPath:"border",fallback:"#E2E5E9"},"--table-radius":{tokenPath:"radius",fallback:"16px"},"--table-shadow":{tokenPath:"shadow",fallback:"none"},"--th-bg":{tokenPath:"headerBackground",fallback:"#F9F9FA"},"--th-text":{tokenPath:"headerTextColor",fallback:"#6E7991"},"--th-size":{tokenPath:"headerFontSize",fallback:"12px"},"--th-weight":{tokenPath:"headerFontWeight",fallback:"600"},"--row-hover":{tokenPath:"rowHoverBackground",fallback:"rgba(0,0,0,.03)"},"--row-selected":{tokenPath:"rowSelectedBackground",fallback:"#F4F0FF"},"--cell-text":{tokenPath:"cellTextColor",fallback:"#3A3F4B"},"--cell-size":{tokenPath:"cellFontSize",fallback:"14px"},"--cell-desc-text":{tokenPath:"descriptionColor",fallback:"#6E7991"},"--cell-desc-size":{tokenPath:"descriptionFontSize",fallback:"12px"},"--cell-desc-weight":{tokenPath:"descriptionFontWeight",fallback:"400"},"--table-font-family":{tokenPath:"fontFamily",fallback:"'Inter', sans-serif"},"--table-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--table-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"}},c41=aD.createContext(null);function rD(r){var o=r,{className:e,tokens:t}=o,a=H(o,["className","tokens"]);let i=U("table",l41,{tokens:t}),n=S(p({},i.styles),{fontFamily:"var(--table-font-family)",lineHeight:"var(--table-line-height)",letterSpacing:"var(--table-letter-spacing)"});return(0,B6.jsx)(c41.Provider,{value:i.tokens,children:(0,B6.jsx)("div",{"data-slot":"table-container",style:n,className:"w-full rounded-[var(--table-radius)] bg-[var(--table-bg)] border border-[var(--table-border)] shadow-[var(--table-shadow)] overflow-hidden",children:(0,B6.jsx)("table",p({"data-slot":"table",className:O("w-full text-sm border-collapse",e)},a))})})}function oD(e){return(0,B6.jsx)("thead",p({className:"bg-[var(--th-bg)] text-[var(--th-text)] border-b border-[var(--table-border)]"},e))}function iD(e){return(0,B6.jsx)("tbody",p({"data-slot":"table-body",className:O("[&_tr:last-child]:border-0",e.className)},e))}function lf(e){return(0,B6.jsx)("tr",p({className:"border-b border-[var(--table-border)] hover:bg-[var(--row-hover)] data-[state=selected]:bg-[var(--row-selected)] transition-colors"},e))}function nD(e){return(0,B6.jsx)("th",p({className:"h-12 px-4 py-3 text-[var(--th-size)] font-[var(--th-weight)] text-left align-middle whitespace-nowrap uppercase tracking-[var(--table-letter-spacing)] [font-family:var(--table-font-family)] leading-[var(--table-line-height)]"},e))}function Ab(e){return(0,B6.jsx)("td",p({className:"px-4 py-3 text-[var(--cell-size)] text-[var(--cell-text)] align-middle [font-family:var(--table-font-family)] leading-[var(--table-line-height)] tracking-[var(--table-letter-spacing)]"},e))}function sD(r){var o=r,{children:e,className:t}=o,a=H(o,["children","className"]);return(0,B6.jsx)("tfoot",S(p({"data-slot":"table-footer",className:O("bg-[var(--table-bg)] border-t border-[var(--table-border)]",t)},a),{children:(0,B6.jsx)("tr",{children:(0,B6.jsx)("td",{colSpan:100,className:"p-0",children:(0,B6.jsx)("div",{className:"flex w-full items-center justify-between px-4 py-3",children:e})})})}))}function lD(e){return(0,B6.jsx)("caption",p({"data-slot":"table-caption",className:O("mt-4 text-sm text-slate-500",e.className)},e))}var se=w(I(),1);var uD=w(I(),1),m41=w(j5(),1);var J2=w(I(),1);var cf=w(T(),1);function cD(e){let t=u41(e),a=J2.forwardRef((r,o)=>{let c=r,{children:i}=c,n=H(c,["children"]),s=J2.Children.toArray(i),l=s.find(f41);if(l){let u=l.props.children,d=s.map(f=>f===l?J2.Children.count(u)>1?J2.Children.only(null):J2.isValidElement(u)?u.props.children:null:f);return(0,cf.jsx)(t,S(p({},n),{ref:o,children:J2.isValidElement(u)?J2.cloneElement(u,void 0,d):null}))}return(0,cf.jsx)(t,S(p({},n),{ref:o,children:i}))});return a.displayName=`${e}.Slot`,a}function u41(e){let t=J2.forwardRef((a,r)=>{let n=a,{children:o}=n,i=H(n,["children"]);if(J2.isValidElement(o)){let s=p41(o),l=C41(i,o.props);return o.type!==J2.Fragment&&(l.ref=r?S1(r,s):s),J2.cloneElement(o,l)}return J2.Children.count(o)>1?J2.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var d41=Symbol("radix.slottable");function f41(e){return J2.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===d41}function C41(e,t){let a=p({},t);for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?a[r]=(...s)=>{let l=i(...s);return o(...s),l}:o&&(a[r]=o):r==="style"?a[r]=p(p({},o),i):r==="className"&&(a[r]=[o,i].filter(Boolean).join(" "))}return p(p({},e),a)}function p41(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var dD=w(T(),1);var g41=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],fD=g41.reduce((e,t)=>{let a=cD(`Primitive.${t}`),r=uD.forwardRef((o,i)=>{let c=o,{asChild:n}=c,s=H(c,["asChild"]),l=n?a:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),(0,dD.jsx)(l,S(p({},s),{ref:i}))});return r.displayName=`Primitive.${t}`,S(p({},e),{[t]:r})},{});var d1=w(I(),1);var f2=w(I(),1);var pD=w(I(),1),mD=w(j5(),1);var ee=w(I(),1);var uf=w(T(),1);function CD(e){let t=h41(e),a=ee.forwardRef((r,o)=>{let c=r,{children:i}=c,n=H(c,["children"]),s=ee.Children.toArray(i),l=s.find(y41);if(l){let u=l.props.children,d=s.map(f=>f===l?ee.Children.count(u)>1?ee.Children.only(null):ee.isValidElement(u)?u.props.children:null:f);return(0,uf.jsx)(t,S(p({},n),{ref:o,children:ee.isValidElement(u)?ee.cloneElement(u,void 0,d):null}))}return(0,uf.jsx)(t,S(p({},n),{ref:o,children:i}))});return a.displayName=`${e}.Slot`,a}function h41(e){let t=ee.forwardRef((a,r)=>{let n=a,{children:o}=n,i=H(n,["children"]);if(ee.isValidElement(o)){let s=b41(o),l=x41(i,o.props);return o.type!==ee.Fragment&&(l.ref=r?S1(r,s):s),ee.cloneElement(o,l)}return ee.Children.count(o)>1?ee.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var v41=Symbol("radix.slottable");function y41(e){return ee.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===v41}function x41(e,t){let a=p({},t);for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?a[r]=(...s)=>{let l=i(...s);return o(...s),l}:o&&(a[r]=o):r==="style"?a[r]=p(p({},o),i):r==="className"&&(a[r]=[o,i].filter(Boolean).join(" "))}return p(p({},e),a)}function b41(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var gD=w(T(),1);var L41=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Rb=L41.reduce((e,t)=>{let a=CD(`Primitive.${t}`),r=pD.forwardRef((o,i)=>{let c=o,{asChild:n}=c,s=H(c,["asChild"]),l=n?a:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),(0,gD.jsx)(l,S(p({},s),{ref:i}))});return r.displayName=`Primitive.${t}`,S(p({},e),{[t]:r})},{});function hD(e,t){e&&mD.flushSync(()=>e.dispatchEvent(t))}var z8=w(I(),1);function Me(e){let t=z8.useRef(e);return z8.useEffect(()=>{t.current=e}),z8.useMemo(()=>(...a)=>{var r;return(r=t.current)==null?void 0:r.call(t,...a)},[])}var vD=w(I(),1);function yD(e,t=globalThis==null?void 0:globalThis.document){let a=Me(e);vD.useEffect(()=>{let r=o=>{o.key==="Escape"&&a(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[a,t])}var Db=w(T(),1);var w41="DismissableLayer",Tb="dismissableLayer.update",M41="dismissableLayer.pointerDownOutside",_41="dismissableLayer.focusOutside",xD,LD=f2.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ha=f2.forwardRef((e,t)=>{var V;let M=e,{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:n,onDismiss:s}=M,l=H(M,["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]),c=f2.useContext(LD),[u,d]=f2.useState(null),f=(V=u==null?void 0:u.ownerDocument)!=null?V:globalThis==null?void 0:globalThis.document,[,C]=f2.useState({}),g=y1(t,k=>d(k)),h=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=h.indexOf(v),y=u?h.indexOf(u):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,x=y>=m,_=k41(k=>{let Z=k.target,R=[...c.branches].some(P=>P.contains(Z));!x||R||(o==null||o(k),n==null||n(k),k.defaultPrevented||s==null||s())},f),L=V41(k=>{let Z=k.target;[...c.branches].some(P=>P.contains(Z))||(i==null||i(k),n==null||n(k),k.defaultPrevented||s==null||s())},f);return yD(k=>{y===c.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&s&&(k.preventDefault(),s()))},f),f2.useEffect(()=>{if(u)return a&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(xD=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),bD(),()=>{a&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=xD)}},[u,f,a,c]),f2.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),bD())},[u,c]),f2.useEffect(()=>{let k=()=>C({});return document.addEventListener(Tb,k),()=>document.removeEventListener(Tb,k)},[]),(0,Db.jsx)(Rb.div,S(p({},l),{ref:g,style:p({pointerEvents:b?x?"auto":"none":void 0},e.style),onFocusCapture:t1(e.onFocusCapture,L.onFocusCapture),onBlurCapture:t1(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:t1(e.onPointerDownCapture,_.onPointerDownCapture)}))});ha.displayName=w41;var S41="DismissableLayerBranch",H41=f2.forwardRef((e,t)=>{let a=f2.useContext(LD),r=f2.useRef(null),o=y1(t,r);return f2.useEffect(()=>{let i=r.current;if(i)return a.branches.add(i),()=>{a.branches.delete(i)}},[a.branches]),(0,Db.jsx)(Rb.div,S(p({},e),{ref:o}))});H41.displayName=S41;function k41(e,t=globalThis==null?void 0:globalThis.document){let a=Me(e),r=f2.useRef(!1),o=f2.useRef(()=>{});return f2.useEffect(()=>{let i=s=>{if(s.target&&!r.current){let c=function(){wD(M41,a,u,{discrete:!0})};var l=c;let u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},n=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(n),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,a]),{onPointerDownCapture:()=>r.current=!0}}function V41(e,t=globalThis==null?void 0:globalThis.document){let a=Me(e),r=f2.useRef(!1);return f2.useEffect(()=>{let o=i=>{i.target&&!r.current&&wD(_41,a,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,a]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function bD(){let e=new CustomEvent(Tb);document.dispatchEvent(e)}function wD(e,t,a,{discrete:r}){let o=a.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&o.addEventListener(e,t,{once:!0}),r?hD(o,i):o.dispatchEvent(i)}var _D=w(I(),1),Eb=0;function K8(){_D.useEffect(()=>{var t,a;let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(t=e[0])!=null?t:MD()),document.body.insertAdjacentElement("beforeend",(a=e[1])!=null?a:MD()),Eb++,()=>{Eb===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Eb--}},[])}function MD(){let 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 K7=w(I(),1);var HD=w(I(),1),T41=w(j5(),1);var te=w(I(),1);var df=w(T(),1);function SD(e){let t=I41(e),a=te.forwardRef((r,o)=>{let c=r,{children:i}=c,n=H(c,["children"]),s=te.Children.toArray(i),l=s.find(Z41);if(l){let u=l.props.children,d=s.map(f=>f===l?te.Children.count(u)>1?te.Children.only(null):te.isValidElement(u)?u.props.children:null:f);return(0,df.jsx)(t,S(p({},n),{ref:o,children:te.isValidElement(u)?te.cloneElement(u,void 0,d):null}))}return(0,df.jsx)(t,S(p({},n),{ref:o,children:i}))});return a.displayName=`${e}.Slot`,a}function I41(e){let t=te.forwardRef((a,r)=>{let n=a,{children:o}=n,i=H(n,["children"]);if(te.isValidElement(o)){let s=R41(o),l=A41(i,o.props);return o.type!==te.Fragment&&(l.ref=r?S1(r,s):s),te.cloneElement(o,l)}return te.Children.count(o)>1?te.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var P41=Symbol("radix.slottable");function Z41(e){return te.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===P41}function A41(e,t){let a=p({},t);for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?a[r]=(...s)=>{let l=i(...s);return o(...s),l}:o&&(a[r]=o):r==="style"?a[r]=p(p({},o),i):r==="className"&&(a[r]=[o,i].filter(Boolean).join(" "))}return p(p({},e),a)}function R41(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var kD=w(T(),1);var D41=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],VD=D41.reduce((e,t)=>{let a=SD(`Primitive.${t}`),r=HD.forwardRef((o,i)=>{let c=o,{asChild:n}=c,s=H(c,["asChild"]),l=n?a:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),(0,kD.jsx)(l,S(p({},s),{ref:i}))});return r.displayName=`Primitive.${t}`,S(p({},e),{[t]:r})},{});var RD=w(T(),1);var Ob="focusScope.autoFocusOnMount",Bb="focusScope.autoFocusOnUnmount",ID={bubbles:!1,cancelable:!0},E41="FocusScope",ar=K7.forwardRef((e,t)=>{let h=e,{loop:a=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i}=h,n=H(h,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]),[s,l]=K7.useState(null),c=Me(o),u=Me(i),d=K7.useRef(null),f=y1(t,v=>l(v)),C=K7.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;K7.useEffect(()=>{if(r){let b=function(M){if(C.paused||!s)return;let V=M.target;s.contains(V)?d.current=V:q0(d.current,{select:!0})},x=function(M){if(C.paused||!s)return;let V=M.relatedTarget;V!==null&&(s.contains(V)||q0(d.current,{select:!0}))},_=function(M){if(document.activeElement===document.body)for(let k of M)k.removedNodes.length>0&&q0(s)};var v=b,m=x,y=_;document.addEventListener("focusin",b),document.addEventListener("focusout",x);let L=new MutationObserver(_);return s&&L.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",x),L.disconnect()}}},[r,s,C.paused]),K7.useEffect(()=>{if(s){ZD.add(C);let v=document.activeElement;if(!s.contains(v)){let y=new CustomEvent(Ob,ID);s.addEventListener(Ob,c),s.dispatchEvent(y),y.defaultPrevented||(O41(K41(TD(s)),{select:!0}),document.activeElement===v&&q0(s))}return()=>{s.removeEventListener(Ob,c),setTimeout(()=>{let y=new CustomEvent(Bb,ID);s.addEventListener(Bb,u),s.dispatchEvent(y),y.defaultPrevented||q0(v!=null?v:document.body,{select:!0}),s.removeEventListener(Bb,u),ZD.remove(C)},0)}}},[s,c,u,C]);let g=K7.useCallback(v=>{if(!a&&!r||C.paused)return;let m=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(m&&y){let b=v.currentTarget,[x,_]=B41(b);x&&_?!v.shiftKey&&y===_?(v.preventDefault(),a&&q0(x,{select:!0})):v.shiftKey&&y===x&&(v.preventDefault(),a&&q0(_,{select:!0})):y===b&&v.preventDefault()}},[a,r,C.paused]);return(0,RD.jsx)(VD.div,S(p({tabIndex:-1},n),{ref:f,onKeyDown:g}))});ar.displayName=E41;function O41(e,{select:t=!1}={}){let a=document.activeElement;for(let r of e)if(q0(r,{select:t}),document.activeElement!==a)return}function B41(e){let t=TD(e),a=PD(t,e),r=PD(t.reverse(),e);return[a,r]}function TD(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{let o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t}function PD(e,t){for(let a of e)if(!N41(a,{upTo:t}))return a}function N41(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 F41(e){return e instanceof HTMLInputElement&&"select"in e}function q0(e,{select:t=!1}={}){if(e&&e.focus){let a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&F41(e)&&t&&e.select()}}var ZD=z41();function z41(){let e=[];return{add(t){let a=e[0];t!==a&&(a==null||a.pause()),e=AD(e,t),e.unshift(t)},remove(t){var a;e=AD(e,t),(a=e[0])==null||a.resume()}}}function AD(e,t){let a=[...e],r=a.indexOf(t);return r!==-1&&a.splice(r,1),a}function K41(e){return e.filter(t=>t.tagName!=="A")}var F6=w(I(),1);var OD=["top","right","bottom","left"];var c3=Math.min,d6=Math.max,Ms=Math.round,_s=Math.floor,Vt=e=>({x:e,y:e}),j41={left:"right",right:"left",bottom:"top",top:"bottom"},U41={start:"end",end:"start"};function Cf(e,t,a){return d6(e,c3(t,a))}function u3(e,t){return typeof e=="function"?e(t):e}function d3(e){return e.split("-")[0]}function rr(e){return e.split("-")[1]}function pf(e){return e==="x"?"y":"x"}function mf(e){return e==="y"?"height":"width"}var q41=new Set(["top","bottom"]);function It(e){return q41.has(d3(e))?"y":"x"}function gf(e){return pf(It(e))}function BD(e,t,a){a===void 0&&(a=!1);let r=rr(e),o=gf(e),i=mf(o),n=o==="x"?r===(a?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(n=ws(n)),[n,ws(n)]}function ND(e){let t=ws(e);return[ff(e),t,ff(t)]}function ff(e){return e.replace(/start|end/g,t=>U41[t])}var DD=["left","right"],ED=["right","left"],W41=["top","bottom"],G41=["bottom","top"];function Y41(e,t,a){switch(e){case"top":case"bottom":return a?t?ED:DD:t?DD:ED;case"left":case"right":return t?W41:G41;default:return[]}}function FD(e,t,a,r){let o=rr(e),i=Y41(d3(e),a==="start",r);return o&&(i=i.map(n=>n+"-"+o),t&&(i=i.concat(i.map(ff)))),i}function ws(e){return e.replace(/left|right|bottom|top/g,t=>j41[t])}function X41(e){return p({top:0,right:0,bottom:0,left:0},e)}function Nb(e){return typeof e!="number"?X41(e):{top:e,right:e,bottom:e,left:e}}function or(e){let{x:t,y:a,width:r,height:o}=e;return{width:r,height:o,top:a,left:t,right:t+r,bottom:a+o,x:t,y:a}}function zD(e,t,a){let{reference:r,floating:o}=e,i=It(t),n=gf(t),s=mf(n),l=d3(t),c=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2,C;switch(l){case"top":C={x:u,y:r.y-o.height};break;case"bottom":C={x:u,y:r.y+r.height};break;case"right":C={x:r.x+r.width,y:d};break;case"left":C={x:r.x-o.width,y:d};break;default:C={x:r.x,y:r.y}}switch(rr(t)){case"start":C[n]-=f*(a&&c?-1:1);break;case"end":C[n]+=f*(a&&c?-1:1);break}return C}var UD=async(e,t,a)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:n}=a,s=i.filter(Boolean),l=await(n.isRTL==null?void 0:n.isRTL(t)),c=await n.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=zD(c,r,l),f=r,C={},g=0;for(let h=0;h<s.length;h++){let{name:v,fn:m}=s[h],{x:y,y:b,data:x,reset:_}=await m({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:C,rects:c,platform:n,elements:{reference:e,floating:t}});u=y!=null?y:u,d=b!=null?b:d,C=S(p({},C),{[v]:p(p({},C[v]),x)}),_&&g<=50&&(g++,typeof _=="object"&&(_.placement&&(f=_.placement),_.rects&&(c=_.rects===!0?await n.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:u,y:d}=zD(c,f,l)),h=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:C}};async function j8(e,t){var a;t===void 0&&(t={});let{x:r,y:o,platform:i,rects:n,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:C=0}=u3(t,e),g=Nb(C),v=s[f?d==="floating"?"reference":"floating":d],m=or(await i.getClippingRect({element:(a=await(i.isElement==null?void 0:i.isElement(v)))==null||a?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y=d==="floating"?{x:r,y:o,width:n.floating.width,height:n.floating.height}:n.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),x=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},_=or(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(m.top-_.top+g.top)/x.y,bottom:(_.bottom-m.bottom+g.bottom)/x.y,left:(m.left-_.left+g.left)/x.x,right:(_.right-m.right+g.right)/x.x}}var qD=e=>({name:"arrow",options:e,async fn(t){let{x:a,y:r,placement:o,rects:i,platform:n,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=u3(e,t)||{};if(c==null)return{};let d=Nb(u),f={x:a,y:r},C=gf(o),g=mf(C),h=await n.getDimensions(c),v=C==="y",m=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[C]-f[C]-i.floating[g],_=f[C]-i.reference[C],L=await(n.getOffsetParent==null?void 0:n.getOffsetParent(c)),M=L?L[b]:0;(!M||!await(n.isElement==null?void 0:n.isElement(L)))&&(M=s.floating[b]||i.floating[g]);let V=x/2-_/2,k=M/2-h[g]/2-1,Z=c3(d[m],k),R=c3(d[y],k),P=Z,D=M-h[g]-R,A=M/2-h[g]/2+V,B=Cf(P,A,D),W=!l.arrow&&rr(o)!=null&&A!==B&&i.reference[g]/2-(A<P?Z:R)-h[g]/2<0,K=W?A<P?A-P:A-D:0;return{[C]:f[C]+K,data:p({[C]:B,centerOffset:A-B-K},W&&{alignmentOffset:K}),reset:W}}});var WD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,r;let{placement:o,middlewareData:i,rects:n,initialPlacement:s,platform:l,elements:c}=t,A=u3(e,t),{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0}=A,v=H(A,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((a=i.arrow)!=null&&a.alignmentOffset)return{};let m=d3(o),y=It(s),b=d3(s)===s,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),_=f||(b||!h?[ws(s)]:ND(s)),L=g!=="none";!f&&L&&_.push(...FD(s,h,g,x));let M=[s,..._],V=await j8(t,v),k=[],Z=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&k.push(V[m]),d){let B=BD(o,n,x);k.push(V[B[0]],V[B[1]])}if(Z=[...Z,{placement:o,overflows:k}],!k.every(B=>B<=0)){var R,P;let B=(((R=i.flip)==null?void 0:R.index)||0)+1,W=M[B];if(W&&(!(d==="alignment"?y!==It(W):!1)||Z.every(G=>It(G.placement)===y?G.overflows[0]>0:!0)))return{data:{index:B,overflows:Z},reset:{placement:W}};let K=(P=Z.filter(q=>q.overflows[0]<=0).sort((q,G)=>q.overflows[1]-G.overflows[1])[0])==null?void 0:P.placement;if(!K)switch(C){case"bestFit":{var D;let q=(D=Z.filter(G=>{if(L){let N=It(G.placement);return N===y||N==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(N=>N>0).reduce((N,r1)=>N+r1,0)]).sort((G,N)=>G[1]-N[1])[0])==null?void 0:D[0];q&&(K=q);break}case"initialPlacement":K=s;break}if(o!==K)return{reset:{placement:K}}}return{}}}};function KD(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jD(e){return OD.some(t=>e[t]>=0)}var GD=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a}=t,i=u3(e,t),{strategy:r="referenceHidden"}=i,o=H(i,["strategy"]);switch(r){case"referenceHidden":{let n=await j8(t,S(p({},o),{elementContext:"reference"})),s=KD(n,a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:jD(s)}}}case"escaped":{let n=await j8(t,S(p({},o),{altBoundary:!0})),s=KD(n,a.floating);return{data:{escapedOffsets:s,escaped:jD(s)}}}default:return{}}}}};var YD=new Set(["left","top"]);async function $41(e,t){let{placement:a,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),n=d3(a),s=rr(a),l=It(a)==="y",c=YD.has(n)?-1:1,u=i&&l?-1:1,d=u3(t,e),{mainAxis:f,crossAxis:C,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(C=s==="end"?g*-1:g),l?{x:C*u,y:f*c}:{x:f*c,y:C*u}}var XD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,r;let{x:o,y:i,placement:n,middlewareData:s}=t,l=await $41(t,e);return n===((a=s.offset)==null?void 0:a.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:S(p({},l),{placement:n})}}}},$D=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:r,placement:o}=t,v=u3(e,t),{mainAxis:i=!0,crossAxis:n=!1,limiter:s={fn:m=>{let{x:y,y:b}=m;return{x:y,y:b}}}}=v,l=H(v,["mainAxis","crossAxis","limiter"]),c={x:a,y:r},u=await j8(t,l),d=It(d3(o)),f=pf(d),C=c[f],g=c[d];if(i){let m=f==="y"?"top":"left",y=f==="y"?"bottom":"right",b=C+u[m],x=C-u[y];C=Cf(b,C,x)}if(n){let m=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=g+u[m],x=g-u[y];g=Cf(b,g,x)}let h=s.fn(S(p({},t),{[f]:C,[d]:g}));return S(p({},h),{data:{x:h.x-a,y:h.y-r,enabled:{[f]:i,[d]:n}}})}}},QD=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:a,y:r,placement:o,rects:i,middlewareData:n}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=u3(e,t),u={x:a,y:r},d=It(o),f=pf(d),C=u[f],g=u[d],h=u3(s,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:p({mainAxis:0,crossAxis:0},h);if(l){let b=f==="y"?"height":"width",x=i.reference[f]-i.floating[b]+v.mainAxis,_=i.reference[f]+i.reference[b]-v.mainAxis;C<x?C=x:C>_&&(C=_)}if(c){var m,y;let b=f==="y"?"width":"height",x=YD.has(d3(o)),_=i.reference[d]-i.floating[b]+(x&&((m=n.offset)==null?void 0:m[d])||0)+(x?0:v.crossAxis),L=i.reference[d]+i.reference[b]+(x?0:((y=n.offset)==null?void 0:y[d])||0)-(x?v.crossAxis:0);g<_?g=_:g>L&&(g=L)}return{[f]:C,[d]:g}}}},JD=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a,r;let{placement:o,rects:i,platform:n,elements:s}=t,Z=u3(e,t),{apply:l=()=>{}}=Z,c=H(Z,["apply"]),u=await j8(t,c),d=d3(o),f=rr(o),C=It(o)==="y",{width:g,height:h}=i.floating,v,m;d==="top"||d==="bottom"?(v=d,m=f===(await(n.isRTL==null?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right"):(m=d,v=f==="end"?"top":"bottom");let y=h-u.top-u.bottom,b=g-u.left-u.right,x=c3(h-u[v],y),_=c3(g-u[m],b),L=!t.middlewareData.shift,M=x,V=_;if((a=t.middlewareData.shift)!=null&&a.enabled.x&&(V=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=y),L&&!f){let R=d6(u.left,0),P=d6(u.right,0),D=d6(u.top,0),A=d6(u.bottom,0);C?V=g-2*(R!==0||P!==0?R+P:d6(u.left,u.right)):M=h-2*(D!==0||A!==0?D+A:d6(u.top,u.bottom))}await l(S(p({},t),{availableWidth:V,availableHeight:M}));let k=await n.getDimensions(s.floating);return g!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function hf(){return typeof window!="undefined"}function nr(e){return tE(e)?(e.nodeName||"").toLowerCase():"#document"}function N6(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pt(e){var t;return(t=(tE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tE(e){return hf()?e instanceof Node||e instanceof N6(e).Node:!1}function j7(e){return hf()?e instanceof Element||e instanceof N6(e).Element:!1}function Zt(e){return hf()?e instanceof HTMLElement||e instanceof N6(e).HTMLElement:!1}function eE(e){return!hf()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof N6(e).ShadowRoot}var Q41=new Set(["inline","contents"]);function U8(e){let{overflow:t,overflowX:a,overflowY:r,display:o}=U7(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+a)&&!Q41.has(o)}var J41=new Set(["table","td","th"]);function aE(e){return J41.has(nr(e))}var er1=[":popover-open",":modal"];function Ss(e){return er1.some(t=>{try{return e.matches(t)}catch(a){return!1}})}var tr1=["transform","translate","scale","rotate","perspective"],ar1=["transform","translate","scale","rotate","perspective","filter"],rr1=["paint","layout","strict","content"];function vf(e){let t=yf(),a=j7(e)?U7(e):e;return tr1.some(r=>a[r]?a[r]!=="none":!1)||(a.containerType?a.containerType!=="normal":!1)||!t&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!t&&(a.filter?a.filter!=="none":!1)||ar1.some(r=>(a.willChange||"").includes(r))||rr1.some(r=>(a.contain||"").includes(r))}function rE(e){let t=va(e);for(;Zt(t)&&!sr(t);){if(vf(t))return t;if(Ss(t))return null;t=va(t)}return null}function yf(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var or1=new Set(["html","body","#document"]);function sr(e){return or1.has(nr(e))}function U7(e){return N6(e).getComputedStyle(e)}function Hs(e){return j7(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function va(e){if(nr(e)==="html")return e;let t=e.assignedSlot||e.parentNode||eE(e)&&e.host||Pt(e);return eE(t)?t.host:t}function oE(e){let t=va(e);return sr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zt(t)&&U8(t)?t:oE(t)}function ir(e,t,a){var r;t===void 0&&(t=[]),a===void 0&&(a=!0);let o=oE(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),n=N6(o);if(i){let s=xf(n);return t.concat(n,n.visualViewport||[],U8(o)?o:[],s&&a?ir(s):[])}return t.concat(o,ir(o,[],a))}function xf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lE(e){let t=U7(e),a=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Zt(e),i=o?e.offsetWidth:a,n=o?e.offsetHeight:r,s=Ms(a)!==i||Ms(r)!==n;return s&&(a=i,r=n),{width:a,height:r,$:s}}function zb(e){return j7(e)?e:e.contextElement}function q8(e){let t=zb(e);if(!Zt(t))return Vt(1);let a=t.getBoundingClientRect(),{width:r,height:o,$:i}=lE(t),n=(i?Ms(a.width):a.width)/r,s=(i?Ms(a.height):a.height)/o;return(!n||!Number.isFinite(n))&&(n=1),(!s||!Number.isFinite(s))&&(s=1),{x:n,y:s}}var ir1=Vt(0);function cE(e){let t=N6(e);return!yf()||!t.visualViewport?ir1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function nr1(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==N6(e)?!1:t}function lr(e,t,a,r){t===void 0&&(t=!1),a===void 0&&(a=!1);let o=e.getBoundingClientRect(),i=zb(e),n=Vt(1);t&&(r?j7(r)&&(n=q8(r)):n=q8(e));let s=nr1(i,a,r)?cE(i):Vt(0),l=(o.left+s.x)/n.x,c=(o.top+s.y)/n.y,u=o.width/n.x,d=o.height/n.y;if(i){let f=N6(i),C=r&&j7(r)?N6(r):r,g=f,h=xf(g);for(;h&&r&&C!==g;){let v=q8(h),m=h.getBoundingClientRect(),y=U7(h),b=m.left+(h.clientLeft+parseFloat(y.paddingLeft))*v.x,x=m.top+(h.clientTop+parseFloat(y.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=b,c+=x,g=N6(h),h=xf(g)}}return or({width:u,height:d,x:l,y:c})}function bf(e,t){let a=Hs(e).scrollLeft;return t?t.left+a:lr(Pt(e)).left+a}function uE(e,t){let a=e.getBoundingClientRect(),r=a.left+t.scrollLeft-bf(e,a),o=a.top+t.scrollTop;return{x:r,y:o}}function sr1(e){let{elements:t,rect:a,offsetParent:r,strategy:o}=e,i=o==="fixed",n=Pt(r),s=t?Ss(t.floating):!1;if(r===n||s&&i)return a;let l={scrollLeft:0,scrollTop:0},c=Vt(1),u=Vt(0),d=Zt(r);if((d||!d&&!i)&&((nr(r)!=="body"||U8(n))&&(l=Hs(r)),Zt(r))){let C=lr(r);c=q8(r),u.x=C.x+r.clientLeft,u.y=C.y+r.clientTop}let f=n&&!d&&!i?uE(n,l):Vt(0);return{width:a.width*c.x,height:a.height*c.y,x:a.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:a.y*c.y-l.scrollTop*c.y+u.y+f.y}}function lr1(e){return Array.from(e.getClientRects())}function cr1(e){let t=Pt(e),a=Hs(e),r=e.ownerDocument.body,o=d6(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=d6(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-a.scrollLeft+bf(e),s=-a.scrollTop;return U7(r).direction==="rtl"&&(n+=d6(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:n,y:s}}var iE=25;function ur1(e,t){let a=N6(e),r=Pt(e),o=a.visualViewport,i=r.clientWidth,n=r.clientHeight,s=0,l=0;if(o){i=o.width,n=o.height;let u=yf();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}let c=bf(r);if(c<=0){let u=r.ownerDocument,d=u.body,f=getComputedStyle(d),C=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-C);g<=iE&&(i-=g)}else c<=iE&&(i+=c);return{width:i,height:n,x:s,y:l}}var dr1=new Set(["absolute","fixed"]);function fr1(e,t){let a=lr(e,!0,t==="fixed"),r=a.top+e.clientTop,o=a.left+e.clientLeft,i=Zt(e)?q8(e):Vt(1),n=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:n,height:s,x:l,y:c}}function nE(e,t,a){let r;if(t==="viewport")r=ur1(e,a);else if(t==="document")r=cr1(Pt(e));else if(j7(t))r=fr1(t,a);else{let o=cE(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return or(r)}function dE(e,t){let a=va(e);return a===t||!j7(a)||sr(a)?!1:U7(a).position==="fixed"||dE(a,t)}function Cr1(e,t){let a=t.get(e);if(a)return a;let r=ir(e,[],!1).filter(s=>j7(s)&&nr(s)!=="body"),o=null,i=U7(e).position==="fixed",n=i?va(e):e;for(;j7(n)&&!sr(n);){let s=U7(n),l=vf(n);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&dr1.has(o.position)||U8(n)&&!l&&dE(e,n))?r=r.filter(u=>u!==n):o=s,n=va(n)}return t.set(e,r),r}function pr1(e){let{element:t,boundary:a,rootBoundary:r,strategy:o}=e,n=[...a==="clippingAncestors"?Ss(t)?[]:Cr1(t,this._c):[].concat(a),r],s=n[0],l=n.reduce((c,u)=>{let d=nE(t,u,o);return c.top=d6(d.top,c.top),c.right=c3(d.right,c.right),c.bottom=c3(d.bottom,c.bottom),c.left=d6(d.left,c.left),c},nE(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function mr1(e){let{width:t,height:a}=lE(e);return{width:t,height:a}}function gr1(e,t,a){let r=Zt(t),o=Pt(t),i=a==="fixed",n=lr(e,!0,i,t),s={scrollLeft:0,scrollTop:0},l=Vt(0);function c(){l.x=bf(o)}if(r||!r&&!i)if((nr(t)!=="body"||U8(o))&&(s=Hs(t)),r){let C=lr(t,!0,i,t);l.x=C.x+t.clientLeft,l.y=C.y+t.clientTop}else o&&c();i&&!r&&o&&c();let u=o&&!r&&!i?uE(o,s):Vt(0),d=n.left+s.scrollLeft-l.x-u.x,f=n.top+s.scrollTop-l.y-u.y;return{x:d,y:f,width:n.width,height:n.height}}function Fb(e){return U7(e).position==="static"}function sE(e,t){if(!Zt(e)||U7(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return Pt(e)===a&&(a=a.ownerDocument.body),a}function fE(e,t){let a=N6(e);if(Ss(e))return a;if(!Zt(e)){let o=va(e);for(;o&&!sr(o);){if(j7(o)&&!Fb(o))return o;o=va(o)}return a}let r=sE(e,t);for(;r&&aE(r)&&Fb(r);)r=sE(r,t);return r&&sr(r)&&Fb(r)&&!vf(r)?a:r||rE(e)||a}var hr1=async function(e){let t=this.getOffsetParent||fE,a=this.getDimensions,r=await a(e.floating);return{reference:gr1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function vr1(e){return U7(e).direction==="rtl"}var CE={convertOffsetParentRelativeRectToViewportRelativeRect:sr1,getDocumentElement:Pt,getClippingRect:pr1,getOffsetParent:fE,getElementRects:hr1,getClientRects:lr1,getDimensions:mr1,getScale:q8,isElement:j7,isRTL:vr1};function pE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yr1(e,t){let a=null,r,o=Pt(e);function i(){var s;clearTimeout(r),(s=a)==null||s.disconnect(),a=null}function n(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();let c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:C}=c;if(s||t(),!f||!C)return;let g=_s(d),h=_s(o.clientWidth-(u+f)),v=_s(o.clientHeight-(d+C)),m=_s(u),b={rootMargin:-g+"px "+-h+"px "+-v+"px "+-m+"px",threshold:d6(0,c3(1,l))||1},x=!0;function _(L){let M=L[0].intersectionRatio;if(M!==l){if(!x)return n();M?n(!1,M):r=setTimeout(()=>{n(!1,1e-7)},1e3)}M===1&&!pE(c,e.getBoundingClientRect())&&n(),x=!1}try{a=new IntersectionObserver(_,S(p({},b),{root:o.ownerDocument}))}catch(L){a=new IntersectionObserver(_,b)}a.observe(e)}return n(!0),i}function Kb(e,t,a,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=zb(e),u=o||i?[...c?ir(c):[],...ir(t)]:[];u.forEach(m=>{o&&m.addEventListener("scroll",a,{passive:!0}),i&&m.addEventListener("resize",a)});let d=c&&s?yr1(c,a):null,f=-1,C=null;n&&(C=new ResizeObserver(m=>{let[y]=m;y&&y.target===c&&C&&(C.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=C)==null||b.observe(t)})),a()}),c&&!l&&C.observe(c),C.observe(t));let g,h=l?lr(e):null;l&&v();function v(){let m=lr(e);h&&!pE(h,m)&&a(),h=m,g=requestAnimationFrame(v)}return a(),()=>{var m;u.forEach(y=>{o&&y.removeEventListener("scroll",a),i&&y.removeEventListener("resize",a)}),d==null||d(),(m=C)==null||m.disconnect(),C=null,l&&cancelAnimationFrame(g)}}var mE=XD;var gE=$D,hE=WD,vE=JD,yE=GD,jb=qD;var xE=QD,Ub=(e,t,a)=>{let r=new Map,o=p({platform:CE},a),i=S(p({},o.platform),{_c:r});return UD(e,t,S(p({},o),{platform:i}))};var E2=w(I(),1),LE=w(I(),1),wE=w(j5(),1);var xr1=typeof document!="undefined",br1=function(){},Lf=xr1?LE.useLayoutEffect:br1;function wf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let a,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(r=a;r--!==0;)if(!wf(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),a=o.length,a!==Object.keys(t).length)return!1;for(r=a;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=a;r--!==0;){let i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!wf(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ME(e){return typeof window=="undefined"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bE(e,t){let a=ME(e);return Math.round(t*a)/a}function qb(e){let t=E2.useRef(e);return Lf(()=>{t.current=e}),t}function _E(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:n}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=E2.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[f,C]=E2.useState(r);wf(f,r)||C(r);let[g,h]=E2.useState(null),[v,m]=E2.useState(null),y=E2.useCallback(q=>{q!==L.current&&(L.current=q,h(q))},[]),b=E2.useCallback(q=>{q!==M.current&&(M.current=q,m(q))},[]),x=i||g,_=n||v,L=E2.useRef(null),M=E2.useRef(null),V=E2.useRef(u),k=l!=null,Z=qb(l),R=qb(o),P=qb(c),D=E2.useCallback(()=>{if(!L.current||!M.current)return;let q={placement:t,strategy:a,middleware:f};R.current&&(q.platform=R.current),Ub(L.current,M.current,q).then(G=>{let N=S(p({},G),{isPositioned:P.current!==!1});A.current&&!wf(V.current,N)&&(V.current=N,wE.flushSync(()=>{d(N)}))})},[f,t,a,R,P]);Lf(()=>{c===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,d(q=>S(p({},q),{isPositioned:!1})))},[c]);let A=E2.useRef(!1);Lf(()=>(A.current=!0,()=>{A.current=!1}),[]),Lf(()=>{if(x&&(L.current=x),_&&(M.current=_),x&&_){if(Z.current)return Z.current(x,_,D);D()}},[x,_,D,Z,k]);let B=E2.useMemo(()=>({reference:L,floating:M,setReference:y,setFloating:b}),[y,b]),W=E2.useMemo(()=>({reference:x,floating:_}),[x,_]),K=E2.useMemo(()=>{let q={position:a,left:0,top:0};if(!W.floating)return q;let G=bE(W.floating,u.x),N=bE(W.floating,u.y);return s?p(S(p({},q),{transform:"translate("+G+"px, "+N+"px)"}),ME(W.floating)>=1.5&&{willChange:"transform"}):{position:a,left:G,top:N}},[a,s,W.floating,u.x,u.y]);return E2.useMemo(()=>S(p({},u),{update:D,refs:B,elements:W,floatingStyles:K}),[u,D,B,W,K])}var Lr1=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){let{element:r,padding:o}=typeof e=="function"?e(a):e;return r&&t(r)?r.current!=null?jb({element:r.current,padding:o}).fn(a):{}:r?jb({element:r,padding:o}).fn(a):{}}}},SE=(e,t)=>S(p({},mE(e)),{options:[e,t]}),HE=(e,t)=>S(p({},gE(e)),{options:[e,t]}),kE=(e,t)=>S(p({},xE(e)),{options:[e,t]}),VE=(e,t)=>S(p({},hE(e)),{options:[e,t]}),IE=(e,t)=>S(p({},vE(e)),{options:[e,t]});var PE=(e,t)=>S(p({},yE(e)),{options:[e,t]});var ZE=(e,t)=>S(p({},Lr1(e)),{options:[e,t]});var EE=w(I(),1);var RE=w(I(),1),kr1=w(j5(),1);var ae=w(I(),1);var Mf=w(T(),1);function AE(e){let t=wr1(e),a=ae.forwardRef((r,o)=>{let c=r,{children:i}=c,n=H(c,["children"]),s=ae.Children.toArray(i),l=s.find(_r1);if(l){let u=l.props.children,d=s.map(f=>f===l?ae.Children.count(u)>1?ae.Children.only(null):ae.isValidElement(u)?u.props.children:null:f);return(0,Mf.jsx)(t,S(p({},n),{ref:o,children:ae.isValidElement(u)?ae.cloneElement(u,void 0,d):null}))}return(0,Mf.jsx)(t,S(p({},n),{ref:o,children:i}))});return a.displayName=`${e}.Slot`,a}function wr1(e){let t=ae.forwardRef((a,r)=>{let n=a,{children:o}=n,i=H(n,["children"]);if(ae.isValidElement(o)){let s=Hr1(o),l=Sr1(i,o.props);return o.type!==ae.Fragment&&(l.ref=r?S1(r,s):s),ae.cloneElement(o,l)}return ae.Children.count(o)>1?ae.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Mr1=Symbol("radix.slottable");function _r1(e){return ae.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Mr1}function Sr1(e,t){let a=p({},t);for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?a[r]=(...s)=>{let l=i(...s);return o(...s),l}:o&&(a[r]=o):r==="style"?a[r]=p(p({},o),i):r==="className"&&(a[r]=[o,i].filter(Boolean).join(" "))}return p(p({},e),a)}function Hr1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var TE=w(T(),1);var Vr1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],DE=Vr1.reduce((e,t)=>{let a=AE(`Primitive.${t}`),r=RE.forwardRef((o,i)=>{let c=o,{asChild:n}=c,s=H(c,["asChild"]),l=n?a:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),(0,TE.jsx)(l,S(p({},s),{ref:i}))});return r.displayName=`Primitive.${t}`,S(p({},e),{[t]:r})},{});var Wb=w(T(),1);var Ir1="Arrow",OE=EE.forwardRef((e,t)=>{let n=e,{children:a,width:r=10,height:o=5}=n,i=H(n,["children","width","height"]);return(0,Wb.jsx)(DE.svg,S(p({},i),{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?a:(0,Wb.jsx)("polygon",{points:"0,0 30,0 15,10"})}))});OE.displayName=Ir1;var BE=OE;var FE=w(I(),1),Er1=w(j5(),1);var re=w(I(),1);var _f=w(T(),1);function NE(e){let t=Zr1(e),a=re.forwardRef((r,o)=>{let c=r,{children:i}=c,n=H(c,["children"]),s=re.Children.toArray(i),l=s.find(Rr1);if(l){let u=l.props.children,d=s.map(f=>f===l?re.Children.count(u)>1?re.Children.only(null):re.isValidElement(u)?u.props.children:null:f);return(0,_f.jsx)(t,S(p({},n),{ref:o,children:re.isValidElement(u)?re.cloneElement(u,void 0,d):null}))}return(0,_f.jsx)(t,S(p({},n),{ref:o,children:i}))});return a.displayName=`${e}.Slot`,a}function Zr1(e){let t=re.forwardRef((a,r)=>{let n=a,{children:o}=n,i=H(n,["children"]);if(re.isValidElement(o)){let s=Dr1(o),l=Tr1(i,o.props);return o.type!==re.Fragment&&(l.ref=r?S1(r,s):s),re.cloneElement(o,l)}return re.Children.count(o)>1?re.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ar1=Symbol("radix.slottable");function Rr1(e){return re.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ar1}function Tr1(e,t){let a=p({},t);for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?a[r]=(...s)=>{let l=i(...s);return o(...s),l}:o&&(a[r]=o):r==="style"?a[r]=p(p({},o),i):r==="className"&&(a[r]=[o,i].filter(Boolean).join(" "))}return p(p({},e),a)}function Dr1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var zE=w(T(),1);var Or1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Gb=Or1.reduce((e,t)=>{let a=NE(`Primitive.${t}`),r=FE.forwardRef((o,i)=>{let c=o,{asChild:n}=c,s=H(c,["asChild"]),l=n?a:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),(0,zE.jsx)(l,S(p({},s),{ref:i}))});return r.displayName=`Primitive.${t}`,S(p({},e),{[t]:r})},{});var KE=w(I(),1);function W0(e){let[t,a]=KE.useState(void 0);return D2(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;let i=o[0],n,s;if("borderBoxSize"in i){let l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;n=c.inlineSize,s=c.blockSize}else n=e.offsetWidth,s=e.offsetHeight;a({width:n,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else a(void 0)},[e]),t}var G0=w(T(),1);var Yb="Popper",[jE,ya]=r5(Yb),[Br1,UE]=jE(Yb),qE=e=>{let{__scopePopper:t,children:a}=e,[r,o]=F6.useState(null);return(0,G0.jsx)(Br1,{scope:t,anchor:r,onAnchorChange:o,children:a})};qE.displayName=Yb;var WE="PopperAnchor",GE=F6.forwardRef((e,t)=>{let c=e,{__scopePopper:a,virtualRef:r}=c,o=H(c,["__scopePopper","virtualRef"]),i=UE(WE,a),n=F6.useRef(null),s=y1(t,n),l=F6.useRef(null);return F6.useEffect(()=>{let u=l.current;l.current=(r==null?void 0:r.current)||n.current,u!==l.current&&i.onAnchorChange(l.current)}),r?null:(0,G0.jsx)(Gb.div,S(p({},o),{ref:s}))});GE.displayName=WE;var Xb="PopperContent",[Nr1,Fr1]=jE(Xb),YE=F6.forwardRef((e,t)=>{var h5,F,n1,C1,j,s5,$,l5;let k1=e,{__scopePopper:a,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:n=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:C="optimized",onPlaced:g}=k1,h=H(k1,["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","onPlaced"]),v=UE(Xb,a),[m,y]=F6.useState(null),b=y1(t,t5=>y(t5)),[x,_]=F6.useState(null),L=W0(x),M=(h5=L==null?void 0:L.width)!=null?h5:0,V=(F=L==null?void 0:L.height)!=null?F:0,k=r+(i!=="center"?"-"+i:""),Z=typeof u=="number"?u:p({top:0,right:0,bottom:0,left:0},u),R=Array.isArray(c)?c:[c],P=R.length>0,D={padding:Z,boundary:R.filter(Kr1),altBoundary:P},{refs:A,floatingStyles:B,placement:W,isPositioned:K,middlewareData:q}=_E({strategy:"fixed",placement:k,whileElementsMounted:(...t5)=>Kb(...t5,{animationFrame:C==="always"}),elements:{reference:v.anchor},middleware:[SE({mainAxis:o+V,alignmentAxis:n}),l&&HE(p({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?kE():void 0},D)),l&&VE(p({},D)),IE(S(p({},D),{apply:({elements:t5,rects:z5,availableWidth:Re,availableHeight:w6})=>{let{width:q2,height:i6}=z5.reference,Te=t5.floating.style;Te.setProperty("--radix-popper-available-width",`${Re}px`),Te.setProperty("--radix-popper-available-height",`${w6}px`),Te.setProperty("--radix-popper-anchor-width",`${q2}px`),Te.setProperty("--radix-popper-anchor-height",`${i6}px`)}})),x&&ZE({element:x,padding:s}),jr1({arrowWidth:M,arrowHeight:V}),f&&PE(p({strategy:"referenceHidden"},D))]}),[G,N]=QE(W),r1=Me(g);D2(()=>{K&&(r1==null||r1())},[K,r1]);let x1=(n1=q.arrow)==null?void 0:n1.x,v1=(C1=q.arrow)==null?void 0:C1.y,I1=((j=q.arrow)==null?void 0:j.centerOffset)!==0,[Y1,T5]=F6.useState();return D2(()=>{m&&T5(window.getComputedStyle(m).zIndex)},[m]),(0,G0.jsx)("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:p(S(p({},B),{transform:K?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y1,"--radix-popper-transform-origin":[(s5=q.transformOrigin)==null?void 0:s5.x,($=q.transformOrigin)==null?void 0:$.y].join(" ")}),((l5=q.hide)==null?void 0:l5.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}),dir:e.dir,children:(0,G0.jsx)(Nr1,{scope:a,placedSide:G,onArrowChange:_,arrowX:x1,arrowY:v1,shouldHideArrow:I1,children:(0,G0.jsx)(Gb.div,S(p({"data-side":G,"data-align":N},h),{ref:b,style:S(p({},h.style),{animation:K?void 0:"none"})}))})})});YE.displayName=Xb;var XE="PopperArrow",zr1={top:"bottom",right:"left",bottom:"top",left:"right"},$E=F6.forwardRef(function(t,a){let s=t,{__scopePopper:r}=s,o=H(s,["__scopePopper"]),i=Fr1(XE,r),n=zr1[i.placedSide];return(0,G0.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[n]: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:(0,G0.jsx)(BE,S(p({},o),{ref:a,style:S(p({},o.style),{display:"block"})}))})});$E.displayName=XE;function Kr1(e){return e!==null}var jr1=e=>({name:"transformOrigin",options:e,fn(t){var v,m,y,b,x;let{placement:a,rects:r,middlewareData:o}=t,n=((v=o.arrow)==null?void 0:v.centerOffset)!==0,s=n?0:e.arrowWidth,l=n?0:e.arrowHeight,[c,u]=QE(a),d={start:"0%",center:"50%",end:"100%"}[u],f=((y=(m=o.arrow)==null?void 0:m.x)!=null?y:0)+s/2,C=((x=(b=o.arrow)==null?void 0:b.y)!=null?x:0)+l/2,g="",h="";return c==="bottom"?(g=n?d:`${f}px`,h=`${-l}px`):c==="top"?(g=n?d:`${f}px`,h=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,h=n?d:`${C}px`):c==="left"&&(g=`${r.floating.width+l}px`,h=n?d:`${C}px`),{data:{x:g,y:h}}}});function QE(e){let[t,a="center"]=e.split("-");return[t,a]}var cr=qE,ur=GE,W8=YE,G8=$E;var Hf=w(I(),1),rO=w(j5(),1);var eO=w(I(),1),Xr1=w(j5(),1);var oe=w(I(),1);var Sf=w(T(),1);function JE(e){let t=Ur1(e),a=oe.forwardRef((r,o)=>{let c=r,{children:i}=c,n=H(c,["children"]),s=oe.Children.toArray(i),l=s.find(Wr1);if(l){let u=l.props.children,d=s.map(f=>f===l?oe.Children.count(u)>1?oe.Children.only(null):oe.isValidElement(u)?u.props.children:null:f);return(0,Sf.jsx)(t,S(p({},n),{ref:o,children:oe.isValidElement(u)?oe.cloneElement(u,void 0,d):null}))}return(0,Sf.jsx)(t,S(p({},n),{ref:o,children:i}))});return a.displayName=`${e}.Slot`,a}function Ur1(e){let t=oe.forwardRef((a,r)=>{let n=a,{children:o}=n,i=H(n,["children"]);if(oe.isValidElement(o)){let s=Yr1(o),l=Gr1(i,o.props);return o.type!==oe.Fragment&&(l.ref=r?S1(r,s):s),oe.cloneElement(o,l)}return oe.Children.count(o)>1?oe.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qr1=Symbol("radix.slottable");function Wr1(e){return oe.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qr1}function Gr1(e,t){let a=p({},t);for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?a[r]=(...s)=>{let l=i(...s);return o(...s),l}:o&&(a[r]=o):r==="style"?a[r]=p(p({},o),i):r==="className"&&(a[r]=[o,i].filter(Boolean).join(" "))}return p(p({},e),a)}function Yr1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var tO=w(T(),1);var $r1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],aO=$r1.reduce((e,t)=>{let a=JE(`Primitive.${t}`),r=eO.forwardRef((o,i)=>{let c=o,{asChild:n}=c,s=H(c,["asChild"]),l=n?a:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),(0,tO.jsx)(l,S(p({},s),{ref:i}))});return r.displayName=`Primitive.${t}`,S(p({},e),{[t]:r})},{});var oO=w(T(),1);var Qr1="Portal",xa=Hf.forwardRef((e,t)=>{var l;let s=e,{container:a}=s,r=H(s,["container"]),[o,i]=Hf.useState(!1);D2(()=>i(!0),[]);let n=a||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return n?rO.default.createPortal((0,oO.jsx)(aO.div,S(p({},r),{ref:t})),n):null});xa.displayName=Qr1;var iO=w(I(),1),nO=w(j5(),1);var ie=w(I(),1);var kf=w(T(),1);function Vf(e){let t=Jr1(e),a=ie.forwardRef((r,o)=>{let c=r,{children:i}=c,n=H(c,["children"]),s=ie.Children.toArray(i),l=s.find(to1);if(l){let u=l.props.children,d=s.map(f=>f===l?ie.Children.count(u)>1?ie.Children.only(null):ie.isValidElement(u)?u.props.children:null:f);return(0,kf.jsx)(t,S(p({},n),{ref:o,children:ie.isValidElement(u)?ie.cloneElement(u,void 0,d):null}))}return(0,kf.jsx)(t,S(p({},n),{ref:o,children:i}))});return a.displayName=`${e}.Slot`,a}function Jr1(e){let t=ie.forwardRef((a,r)=>{let n=a,{children:o}=n,i=H(n,["children"]);if(ie.isValidElement(o)){let s=ro1(o),l=ao1(i,o.props);return o.type!==ie.Fragment&&(l.ref=r?S1(r,s):s),ie.cloneElement(o,l)}return ie.Children.count(o)>1?ie.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var eo1=Symbol("radix.slottable");function to1(e){return ie.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===eo1}function ao1(e,t){let a=p({},t);for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?a[r]=(...s)=>{let l=i(...s);return o(...s),l}:o&&(a[r]=o):r==="style"?a[r]=p(p({},o),i):r==="className"&&(a[r]=[o,i].filter(Boolean).join(" "))}return p(p({},e),a)}function ro1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var sO=w(T(),1);var oo1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y8=oo1.reduce((e,t)=>{let a=Vf(`Primitive.${t}`),r=iO.forwardRef((o,i)=>{let c=o,{asChild:n}=c,s=H(c,["asChild"]),l=n?a:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),(0,sO.jsx)(l,S(p({},s),{ref:i}))});return r.displayName=`Primitive.${t}`,S(p({},e),{[t]:r})},{});function lO(e,t){e&&nO.flushSync(()=>e.dispatchEvent(t))}var _e=w(I(),1);var uO=w(I(),1),uo1=w(j5(),1);var ne=w(I(),1);var If=w(T(),1);function cO(e){let t=io1(e),a=ne.forwardRef((r,o)=>{let c=r,{children:i}=c,n=H(c,["children"]),s=ne.Children.toArray(i),l=s.find(so1);if(l){let u=l.props.children,d=s.map(f=>f===l?ne.Children.count(u)>1?ne.Children.only(null):ne.isValidElement(u)?u.props.children:null:f);return(0,If.jsx)(t,S(p({},n),{ref:o,children:ne.isValidElement(u)?ne.cloneElement(u,void 0,d):null}))}return(0,If.jsx)(t,S(p({},n),{ref:o,children:i}))});return a.displayName=`${e}.Slot`,a}function io1(e){let t=ne.forwardRef((a,r)=>{let n=a,{children:o}=n,i=H(n,["children"]);if(ne.isValidElement(o)){let s=co1(o),l=lo1(i,o.props);return o.type!==ne.Fragment&&(l.ref=r?S1(r,s):s),ne.cloneElement(o,l)}return ne.Children.count(o)>1?ne.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var no1=Symbol("radix.slottable");function so1(e){return ne.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===no1}function lo1(e,t){let a=p({},t);for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?a[r]=(...s)=>{let l=i(...s);return o(...s),l}:o&&(a[r]=o):r==="style"?a[r]=p(p({},o),i):r==="className"&&(a[r]=[o,i].filter(Boolean).join(" "))}return p(p({},e),a)}function co1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var dO=w(T(),1);var do1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qb=do1.reduce((e,t)=>{let a=cO(`Primitive.${t}`),r=uO.forwardRef((o,i)=>{let c=o,{asChild:n}=c,s=H(c,["asChild"]),l=n?a:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),(0,dO.jsx)(l,S(p({},s),{ref:i}))});return r.displayName=`Primitive.${t}`,S(p({},e),{[t]:r})},{});var Y0=w(T(),1);var Jb="rovingFocusGroup.onEntryFocus",fo1={bubbles:!1,cancelable:!0},ks="RovingFocusGroup",[eL,fO,Co1]=F8(ks),[po1,ba]=r5(ks,[Co1]),[mo1,go1]=po1(ks),CO=_e.forwardRef((e,t)=>(0,Y0.jsx)(eL.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,Y0.jsx)(eL.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,Y0.jsx)(ho1,S(p({},e),{ref:t}))})}));CO.displayName=ks;var ho1=_e.forwardRef((e,t)=>{let V=e,{__scopeRovingFocusGroup:a,orientation:r,loop:o=!1,dir:i,currentTabStopId:n,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1}=V,d=H(V,["__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopId","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus"]),f=_e.useRef(null),C=y1(t,f),g=l3(i),[h,v]=d2({prop:n,defaultProp:s!=null?s:null,onChange:l,caller:ks}),[m,y]=_e.useState(!1),b=Me(c),x=fO(a),_=_e.useRef(!1),[L,M]=_e.useState(0);return _e.useEffect(()=>{let k=f.current;if(k)return k.addEventListener(Jb,b),()=>k.removeEventListener(Jb,b)},[b]),(0,Y0.jsx)(mo1,{scope:a,orientation:r,dir:g,loop:o,currentTabStopId:h,onItemFocus:_e.useCallback(k=>v(k),[v]),onItemShiftTab:_e.useCallback(()=>y(!0),[]),onFocusableItemAdd:_e.useCallback(()=>M(k=>k+1),[]),onFocusableItemRemove:_e.useCallback(()=>M(k=>k-1),[]),children:(0,Y0.jsx)(Qb.div,S(p({tabIndex:m||L===0?-1:0,"data-orientation":r},d),{ref:C,style:p({outline:"none"},e.style),onMouseDown:t1(e.onMouseDown,()=>{_.current=!0}),onFocus:t1(e.onFocus,k=>{let Z=!_.current;if(k.target===k.currentTarget&&Z&&!m){let R=new CustomEvent(Jb,fo1);if(k.currentTarget.dispatchEvent(R),!R.defaultPrevented){let P=x().filter(K=>K.focusable),D=P.find(K=>K.active),A=P.find(K=>K.id===h),W=[D,A,...P].filter(Boolean).map(K=>K.ref.current);gO(W,u)}}_.current=!1}),onBlur:t1(e.onBlur,()=>y(!1))}))})}),pO="RovingFocusGroupItem",mO=_e.forwardRef((e,t)=>{let v=e,{__scopeRovingFocusGroup:a,focusable:r=!0,active:o=!1,tabStopId:i,children:n}=v,s=H(v,["__scopeRovingFocusGroup","focusable","active","tabStopId","children"]),l=v2(),c=i||l,u=go1(pO,a),d=u.currentTabStopId===c,f=fO(a),{onFocusableItemAdd:C,onFocusableItemRemove:g,currentTabStopId:h}=u;return _e.useEffect(()=>{if(r)return C(),()=>g()},[r,C,g]),(0,Y0.jsx)(eL.ItemSlot,{scope:a,id:c,focusable:r,active:o,children:(0,Y0.jsx)(Qb.span,S(p({tabIndex:d?0:-1,"data-orientation":u.orientation},s),{ref:t,onMouseDown:t1(e.onMouseDown,m=>{r?u.onItemFocus(c):m.preventDefault()}),onFocus:t1(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:t1(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){u.onItemShiftTab();return}if(m.target!==m.currentTarget)return;let y=xo1(m,u.orientation,u.dir);if(y!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let x=f().filter(_=>_.focusable).map(_=>_.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();let _=x.indexOf(m.currentTarget);x=u.loop?bo1(x,_+1):x.slice(_+1)}setTimeout(()=>gO(x))}}),children:typeof n=="function"?n({isCurrentTabStop:d,hasTabStop:h!=null}):n}))})});mO.displayName=pO;var vo1={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function yo1(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function xo1(e,t,a){let r=yo1(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return vo1[r]}function gO(e,t=!1){let a=document.activeElement;for(let r of e)if(r===a||(r.focus({preventScroll:t}),document.activeElement!==a))return}function bo1(e,t){return e.map((a,r)=>e[(t+r)%e.length])}var X8=CO,$8=mO;var Lo1=function(e){if(typeof document=="undefined")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Q8=new WeakMap,Pf=new WeakMap,Zf={},aL=0,hO=function(e){return e&&(e.host||hO(e.parentNode))},wo1=function(e,t){return t.map(function(a){if(e.contains(a))return a;var r=hO(a);return r&&e.contains(r)?r:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},Mo1=function(e,t,a,r){var o=wo1(t,Array.isArray(e)?e:[e]);Zf[a]||(Zf[a]=new WeakMap);var i=Zf[a],n=[],s=new Set,l=new Set(o),c=function(d){!d||s.has(d)||(s.add(d),c(d.parentNode))};o.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(s.has(f))u(f);else try{var C=f.getAttribute(r),g=C!==null&&C!=="false",h=(Q8.get(f)||0)+1,v=(i.get(f)||0)+1;Q8.set(f,h),i.set(f,v),n.push(f),h===1&&g&&Pf.set(f,!0),v===1&&f.setAttribute(a,"true"),g||f.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",f,m)}})};return u(t),s.clear(),aL++,function(){n.forEach(function(d){var f=Q8.get(d)-1,C=i.get(d)-1;Q8.set(d,f),i.set(d,C),f||(Pf.has(d)||d.removeAttribute(r),Pf.delete(d)),C||d.removeAttribute(a)}),aL--,aL||(Q8=new WeakMap,Q8=new WeakMap,Pf=new WeakMap,Zf={})}},J8=function(e,t,a){a===void 0&&(a="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||Lo1(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Mo1(r,o,a,"aria-hidden")):function(){return null}};var z6=function(){return z6=Object.assign||function(t){for(var a,r=1,o=arguments.length;r<o;r++){a=arguments[r];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},z6.apply(this,arguments)};function Af(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(a[r[o]]=e[r[o]]);return a}function vO(e,t,a){if(a||arguments.length===2)for(var r=0,o=t.length,i;r<o;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 Of=w(I());var Xe=w(I());var dr="right-scroll-bar-position",fr="width-before-scroll-bar",rL="with-scroll-bars-hidden",oL="--removed-body-scroll-bar-size";function Rf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var yO=w(I());function xO(e,t){var a=(0,yO.useState)(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(r){var o=a.value;o!==r&&(a.value=r,a.callback(r,o))}}}})[0];return a.callback=t,a.facade}var Tf=w(I());var _o1=typeof window!="undefined"?Tf.useLayoutEffect:Tf.useEffect,bO=new WeakMap;function iL(e,t){var a=xO(t||null,function(r){return e.forEach(function(o){return Rf(o,r)})});return _o1(function(){var r=bO.get(a);if(r){var o=new Set(r),i=new Set(e),n=a.current;o.forEach(function(s){i.has(s)||Rf(s,null)}),i.forEach(function(s){o.has(s)||Rf(s,n)})}bO.set(a,e)},[e]),a}function So1(e){return e}function Ho1(e,t){t===void 0&&(t=So1);var a=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(i){var n=t(i,r);return a.push(n),function(){a=a.filter(function(s){return s!==n})}},assignSyncMedium:function(i){for(r=!0;a.length;){var n=a;a=[],n.forEach(i)}a={push:function(s){return i(s)},filter:function(){return a}}},assignMedium:function(i){r=!0;var n=[];if(a.length){var s=a;a=[],s.forEach(i),n=a}var l=function(){var u=n;n=[],u.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),a={push:function(u){n.push(u),c()},filter:function(u){return n=n.filter(u),a}}}};return o}function nL(e){e===void 0&&(e={});var t=Ho1(null);return t.options=z6({async:!0,ssr:!1},e),t}var LO=w(I()),wO=function(e){var t=e.sideCar,a=Af(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 LO.createElement(r,z6({},a))};wO.isSideCarExport=!0;function sL(e,t){return e.useMedium(t),wO}var Df=nL();var lL=function(){},Vs=Xe.forwardRef(function(e,t){var a=Xe.useRef(null),r=Xe.useState({onScrollCapture:lL,onWheelCapture:lL,onTouchMoveCapture:lL}),o=r[0],i=r[1],n=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,C=e.noRelative,g=e.noIsolation,h=e.inert,v=e.allowPinchZoom,m=e.as,y=m===void 0?"div":m,b=e.gapMode,x=Af(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=f,L=iL([a,t]),M=z6(z6({},x),o);return Xe.createElement(Xe.Fragment,null,u&&Xe.createElement(_,{sideCar:Df,removeScrollBar:c,shards:d,noRelative:C,noIsolation:g,inert:h,setCallbacks:i,allowPinchZoom:!!v,lockRef:a,gapMode:b}),n?Xe.cloneElement(Xe.Children.only(s),z6(z6({},M),{ref:L})):Xe.createElement(y,z6({},M,{className:l,ref:L}),s))});Vs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vs.classNames={fullWidth:fr,zeroRight:dr};var X5=w(I());var t9=w(I());var SO=w(I());var MO;var _O=function(){if(MO)return MO;if(typeof __webpack_nonce__!="undefined")return __webpack_nonce__};function ko1(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=_O();return t&&e.setAttribute("nonce",t),e}function Vo1(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Io1(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var cL=function(){var e=0,t=null;return{add:function(a){e==0&&(t=ko1())&&(Vo1(t,a),Io1(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var uL=function(){var e=cL();return function(t,a){SO.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&a])}};var Is=function(){var e=uL(),t=function(a){var r=a.styles,o=a.dynamic;return e(r,o),null};return t};var Po1={left:0,top:0,right:0,gap:0},dL=function(e){return parseInt(e||"",10)||0},Zo1=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[dL(a),dL(r),dL(o)]},fL=function(e){if(e===void 0&&(e="margin"),typeof window=="undefined")return Po1;var t=Zo1(e),a=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-a+t[2]-t[0])}};var Ao1=Is(),e9="data-scroll-locked",Ro1=function(e,t,a,r){var o=e.left,i=e.top,n=e.right,s=e.gap;return a===void 0&&(a="margin"),`
|
|
27
27
|
.`.concat(rL,` {
|
|
28
28
|
overflow: hidden `).concat(r,`;
|
|
29
29
|
padding-right: `).concat(s,"px ").concat(r,`;
|
|
@@ -182,7 +182,7 @@ You can add a description to the \`${C9}\` by passing a \`${cz}\` component as a
|
|
|
182
182
|
|
|
183
183
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${C9}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
184
184
|
|
|
185
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return f7.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},pz=az,mz=rz,gz=oz,hz=iz,vz=nz,yz=dz,xz=Cz,bz=lz,Lz=uz;var p9=w(I(),1);var He=w(T(),1),hn1={"--alert-bg-overlay":{tokenPath:"overlay.background",fallback:"rgba(0,0,0,.5)"},"--alert-bg":{tokenPath:"content.background",fallback:"#ffffff"},"--alert-radius":{tokenPath:"content.radius",fallback:"12px"},"--alert-border-color":{tokenPath:"content.borderColor",fallback:"#E5E7EB"},"--alert-width":{tokenPath:"content.width",fallback:"clamp(360px, calc(100dvw - 32px), 512px)"},"--alert-max-width":{tokenPath:"content.maxWidth",fallback:"512px"},"--alert-max-height":{tokenPath:"content.maxHeight",fallback:"calc(100dvh - 64px)"},"--alert-title-color":{tokenPath:"title.color",fallback:"#020303"},"--alert-title-font-size":{tokenPath:"title.fontSize",fallback:"18px"},"--alert-title-font-weight":{tokenPath:"title.fontWeight",fallback:"550"},"--alert-title-font-family":{tokenPath:"title.fontFamily",fallback:"inherit"},"--alert-title-line-height":{tokenPath:"title.lineHeight",fallback:"130%"},"--alert-title-letter-spacing":{tokenPath:"title.letterSpacing",fallback:"-0.04em"},"--alert-description-color":{tokenPath:"description.color",fallback:"#6B7280"},"--alert-description-font-size":{tokenPath:"description.fontSize",fallback:"16px"},"--alert-description-font-weight":{tokenPath:"description.fontWeight",fallback:"400"},"--alert-description-font-family":{tokenPath:"description.fontFamily",fallback:"inherit"},"--alert-description-line-height":{tokenPath:"description.lineHeight",fallback:"130%"},"--alert-description-letter-spacing":{tokenPath:"description.letterSpacing",fallback:"-0.04em"}},wz=p9.createContext(null),Mz=p9.createContext("left");function m9(){return p9.useContext(Mz)}var qL={left:{content:"text-left",header:"items-start text-left",footer:"flex-row justify-end"},center:{content:"text-center",header:"items-center text-center",footer:"flex-col items-stretch"}};function _z(o){var i=o,{tokens:e,alignment:t="center",size:a="regular"}=i,r=H(i,["tokens","alignment","size"]);var c,u,d,f;let n=U("alertDialog",hn1,{tokens:e}),s=A1(n.tokens,"sizes",a),l=S(p({},n.styles),{"--alert-padding":(c=s==null?void 0:s.padding)!=null?c:"24px","--alert-gap":(u=s==null?void 0:s.gap)!=null?u:"24px","--alert-header-gap":(d=s==null?void 0:s.headerGap)!=null?d:"16px","--alert-footer-gap":(f=s==null?void 0:s.footerGap)!=null?f:"8px"});return(0,He.jsx)(wz.Provider,{value:l,children:(0,He.jsx)(pz,p({"data-slot":"alert-dialog"},r))})}var Sz=mz,vn1=gz;function yn1(e){return(0,He.jsx)(hz,p({"data-slot":"alert-dialog-overlay",className:O("fixed inset-0 z-50 bg-[--alert-bg-overlay]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0")},e))}function Hz(r){var o=r,{className:e,alignment:t="left"}=o,a=H(o,["className","alignment"]);let i=p9.useContext(wz),n=qL[t];return(0,He.jsx)(Mz.Provider,{value:t,children:(0,He.jsx)(vn1,{children:(0,He.jsxs)("div",{style:i!=null?i:void 0,children:[(0,He.jsx)(yn1,{}),(0,He.jsx)(vz,p({"data-slot":"alert-dialog-content","data-alignment":t,className:O("fixed top-1/2 left-1/2 z-50","w-[var(--alert-width)] max-w-[var(--alert-max-width)]","max-h-[var(--alert-max-height)] overflow-y-auto","translate-x-[-50%] translate-y-[-50%]","rounded-[--alert-radius] bg-[--alert-bg]","p-[var(--alert-padding)] grid gap-[var(--alert-gap)] border border-[--alert-border-color]",n.content,e)},a))]})})})}function kz(a){var r=a,{className:e}=r,t=H(r,["className"]);let o=m9();return(0,He.jsx)("div",p({"data-slot":"alert-dialog-header",className:O("flex flex-col gap-[var(--alert-header-gap)]",qL[o].header,e)},t))}function Vz(a){var r=a,{className:e}=r,t=H(r,["className"]);let o=m9();return(0,He.jsx)("div",p({"data-slot":"alert-dialog-footer",className:O("flex gap-[var(--alert-footer-gap)]",qL[o].footer,e)},t))}function Iz(e){let t=m9();return(0,He.jsx)(bz,p({"data-slot":"alert-dialog-title",style:{fontFamily:"var(--alert-title-font-family)",lineHeight:"var(--alert-title-line-height)",letterSpacing:"var(--alert-title-letter-spacing)",fontWeight:"var(--alert-title-font-weight)"},className:O("text-[color:var(--alert-title-color)] text-[length:var(--alert-title-font-size)]",t==="center"&&"text-center",t==="left"&&"text-left")},e))}function Pz(e){let t=m9();return(0,He.jsx)(Lz,p({"data-slot":"alert-dialog-description",style:{fontFamily:"var(--alert-description-font-family)",lineHeight:"var(--alert-description-line-height)",letterSpacing:"var(--alert-description-letter-spacing)",fontWeight:"var(--alert-description-font-weight)"},className:O("text-[color:var(--alert-description-color)] text-[length:var(--alert-description-font-size)]",t==="center"&&"text-center",t==="left"&&"text-left")},e))}function Zz(r){var o=r,{className:e,children:t}=o,a=H(o,["className","children"]);let i=m9();return(0,He.jsx)(yz,S(p({asChild:!0},a),{children:(0,He.jsx)(u2,{variant:"primary",className:O(i==="center"&&"w-full",e),children:t})}))}function Az(r){var o=r,{className:e,children:t}=o,a=H(o,["className","children"]);let i=m9();return(0,He.jsx)(xz,S(p({asChild:!0},a),{children:(0,He.jsx)(u2,{variant:"secondary",className:O(i==="center"&&"w-full",e),children:t})}))}var C7=w(T(),1),xn1={"--pg-gap":{tokenPath:"gap",fallback:"8px"},"--pg-radius":{tokenPath:"radius",fallback:"8px"},"--pg-font-family":{tokenPath:"fontFamily",fallback:"inherit"},"--pg-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--pg-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"},"--pg-font-size":{tokenPath:"pageNumber.fontSize",fallback:"14px"},"--pg-font-weight":{tokenPath:"pageNumber.fontWeight",fallback:"500"},"--pg-icon-size":{tokenPath:"icon.size",fallback:"16px"},"--pg-icon-color":{tokenPath:"icon.color",fallback:"currentColor"},"--pg-item-bg":{tokenPath:"item.default.background",fallback:"#FFFFFF"},"--pg-item-border":{tokenPath:"item.default.border",fallback:"#D1D5DB"},"--pg-item-text":{tokenPath:"item.default.color",fallback:"#374151"},"--pg-item-hover-bg":{tokenPath:"item.hover.background",fallback:"#E6DCFA"},"--pg-item-hover-border":{tokenPath:"item.hover.border",fallback:"#D1D5DB"},"--pg-active-bg":{tokenPath:"item.active.background",fallback:"#F4F0FF"},"--pg-active-text":{tokenPath:"item.active.text",fallback:"#652BDF"},"--pg-active-border":{tokenPath:"item.active.border",fallback:"transparent"},"--pg-focus-border":{tokenPath:"item.focus.border",fallback:"#652BDF"},"--pg-disabled-bg":{tokenPath:"item.disabled.background",fallback:"#FFFFFF"},"--pg-disabled-text":{tokenPath:"item.disabled.text",fallback:"#9CA3AF"},"--pg-disabled-opacity":{tokenPath:"item.disabled.opacity",fallback:"0.5"}};function Rz(o){var i=o,{className:e,tokens:t,style:a}=i,r=H(i,["className","tokens","style"]);let n=U("pagination",xn1,{tokens:t,extra:a});return(0,C7.jsx)("nav",p({role:"navigation","aria-label":"pagination","data-slot":"pagination",style:n.styles,className:O("mx-auto flex w-full justify-center group/pagination",e)},r))}function vC(o){var i=o,{className:e,isActive:t,disabled:a}=i,r=H(i,["className","isActive","disabled"]);return(0,C7.jsx)("a",p({"data-slot":"pagination-link","aria-current":t?"page":void 0,"data-active":t,style:{fontFamily:"var(--pg-font-family)",lineHeight:"var(--pg-line-height)",letterSpacing:"var(--pg-letter-spacing)"},className:O("inline-flex items-center justify-center w-9 h-9 border text-[var(--pg-font-size)] font-[var(--pg-font-weight)] transition-all select-none cursor-pointer outline-none relative rounded-[var(--pg-radius)]","bg-[var(--pg-item-bg)] border-[var(--pg-item-border)] text-[var(--pg-item-text)]","hover:bg-[var(--pg-item-hover-bg)] hover:border-[var(--pg-item-hover-border)]","data-[active=true]:bg-[var(--pg-active-bg)] data-[active=true]:text-[var(--pg-active-text)] data-[active=true]:border-[var(--pg-active-border)] data-[active=true]:shadow-sm","focus:z-10 focus:border-[var(--pg-focus-border)] focus:ring-1 focus:ring-[var(--pg-focus-border)]","data-[active=true]:focus:border-[var(--pg-focus-border)]","disabled:pointer-events-none disabled:bg-[var(--pg-disabled-bg)] disabled:text-[var(--pg-disabled-text)] disabled:opacity-[var(--pg-disabled-opacity)]",a&&"pointer-events-none bg-[var(--pg-disabled-bg)] text-[var(--pg-disabled-text)] opacity-[var(--pg-disabled-opacity)]",e)},r))}function Tz(a){var r=a,{className:e}=r,t=H(r,["className"]);return(0,C7.jsx)("ul",p({"data-slot":"pagination-content",className:O("flex items-center gap-[var(--pg-gap)]",e)},t))}function $s(e){return(0,C7.jsx)("li",p({"data-slot":"pagination-item"},e))}function Dz(a){var r=a,{className:e}=r,t=H(r,["className"]);return(0,C7.jsx)(vC,S(p({"aria-label":"Go to previous page",className:O("gap-1 px-2.5",e)},t),{children:(0,C7.jsx)(pa,{style:{width:"var(--pg-icon-size)",height:"var(--pg-icon-size)"}})}))}function Ez(a){var r=a,{className:e}=r,t=H(r,["className"]);return(0,C7.jsx)(vC,S(p({"aria-label":"Go to next page",className:O("gap-1 px-2.5",e)},t),{children:(0,C7.jsx)(kt,{style:{width:"var(--pg-icon-size)",height:"var(--pg-icon-size)"}})}))}function Oz(a){var r=a,{className:e}=r,t=H(r,["className"]);return(0,C7.jsxs)("span",S(p({"data-slot":"pagination-ellipsis",className:O("inline-flex items-center justify-center w-9 h-9 text-[var(--pg-icon-color)]",e)},t),{children:[(0,C7.jsx)(ma,{style:{width:"var(--pg-icon-size)",height:"var(--pg-icon-size)"}}),(0,C7.jsx)("span",{className:"sr-only",children:"More pages"})]}))}var Sa=w(I(),1);var Nz=w(I(),1),Sn1=w(j5(),1);var pe=w(I(),1);var yC=w(T(),1);function Bz(e){let t=bn1(e),a=pe.forwardRef((r,o)=>{let c=r,{children:i}=c,n=H(c,["children"]),s=pe.Children.toArray(i),l=s.find(wn1);if(l){let u=l.props.children,d=s.map(f=>f===l?pe.Children.count(u)>1?pe.Children.only(null):pe.isValidElement(u)?u.props.children:null:f);return(0,yC.jsx)(t,S(p({},n),{ref:o,children:pe.isValidElement(u)?pe.cloneElement(u,void 0,d):null}))}return(0,yC.jsx)(t,S(p({},n),{ref:o,children:i}))});return a.displayName=`${e}.Slot`,a}function bn1(e){let t=pe.forwardRef((a,r)=>{let n=a,{children:o}=n,i=H(n,["children"]);if(pe.isValidElement(o)){let s=_n1(o),l=Mn1(i,o.props);return o.type!==pe.Fragment&&(l.ref=r?S1(r,s):s),pe.cloneElement(o,l)}return pe.Children.count(o)>1?pe.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ln1=Symbol("radix.slottable");function wn1(e){return pe.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ln1}function Mn1(e,t){let a=p({},t);for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?a[r]=(...s)=>{let l=i(...s);return o(...s),l}:o&&(a[r]=o):r==="style"?a[r]=p(p({},o),i):r==="className"&&(a[r]=[o,i].filter(Boolean).join(" "))}return p(p({},e),a)}function _n1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var Fz=w(T(),1);var Hn1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qs=Hn1.reduce((e,t)=>{let a=Bz(`Primitive.${t}`),r=Nz.forwardRef((o,i)=>{let c=o,{asChild:n}=c,s=H(c,["asChild"]),l=n?a:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),(0,Fz.jsx)(l,S(p({},s),{ref:i}))});return r.displayName=`Primitive.${t}`,S(p({},e),{[t]:r})},{});var _a=w(T(),1);var xC="Tabs",[kn1,WB1]=r5(xC,[ba]),zz=ba(),[Vn1,WL]=kn1(xC),Kz=Sa.forwardRef((e,t)=>{let C=e,{__scopeTabs:a,value:r,onValueChange:o,defaultValue:i,orientation:n="horizontal",dir:s,activationMode:l="automatic"}=C,c=H(C,["__scopeTabs","value","onValueChange","defaultValue","orientation","dir","activationMode"]),u=l3(s),[d,f]=d2({prop:r,onChange:o,defaultProp:i!=null?i:"",caller:xC});return(0,_a.jsx)(Vn1,{scope:a,baseId:v2(),value:d,onValueChange:f,orientation:n,dir:u,activationMode:l,children:(0,_a.jsx)(Qs.div,S(p({dir:u,"data-orientation":n},c),{ref:t}))})});Kz.displayName=xC;var jz="TabsList",Uz=Sa.forwardRef((e,t)=>{let s=e,{__scopeTabs:a,loop:r=!0}=s,o=H(s,["__scopeTabs","loop"]),i=WL(jz,a),n=zz(a);return(0,_a.jsx)(X8,S(p({asChild:!0},n),{orientation:i.orientation,dir:i.dir,loop:r,children:(0,_a.jsx)(Qs.div,S(p({role:"tablist","aria-orientation":i.orientation},o),{ref:t}))}))});Uz.displayName=jz;var qz="TabsTrigger",Wz=Sa.forwardRef((e,t)=>{let d=e,{__scopeTabs:a,value:r,disabled:o=!1}=d,i=H(d,["__scopeTabs","value","disabled"]),n=WL(qz,a),s=zz(a),l=Xz(n.baseId,r),c=$z(n.baseId,r),u=r===n.value;return(0,_a.jsx)($8,S(p({asChild:!0},s),{focusable:!o,active:u,children:(0,_a.jsx)(Qs.button,S(p({type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l},i),{ref:t,onMouseDown:t1(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?n.onValueChange(r):f.preventDefault()}),onKeyDown:t1(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&n.onValueChange(r)}),onFocus:t1(e.onFocus,()=>{let f=n.activationMode!=="manual";!u&&!o&&f&&n.onValueChange(r)})}))}))});Wz.displayName=qz;var Gz="TabsContent",Yz=Sa.forwardRef((e,t)=>{let f=e,{__scopeTabs:a,value:r,forceMount:o,children:i}=f,n=H(f,["__scopeTabs","value","forceMount","children"]),s=WL(Gz,a),l=Xz(s.baseId,r),c=$z(s.baseId,r),u=r===s.value,d=Sa.useRef(u);return Sa.useEffect(()=>{let C=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(C)},[]),(0,_a.jsx)(r2,{present:o||u,children:({present:C})=>(0,_a.jsx)(Qs.div,S(p({"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!C,id:c,tabIndex:0},n),{ref:t,style:S(p({},e.style),{animationDuration:d.current?"0s":void 0}),children:C&&i}))})});Yz.displayName=Gz;function Xz(e,t){return`${e}-trigger-${t}`}function $z(e,t){return`${e}-content-${t}`}var Qz=Kz,Jz=Uz,eK=Wz,tK=Yz;var Js=w(T(),1),Pn1={"--tabs-list-bg":{tokenPath:"tabsList.background",fallback:"#e2e5e9"},"--tabs-list-text":{tokenPath:"tabsList.color",fallback:"#000000"},"--tabs-trigger-color":{tokenPath:"tabsTrigger.color",fallback:"#000000"},"--tabs-trigger-active-bg":{tokenPath:"tabsTrigger.active.background",fallback:"#a3aab8"},"--tabs-trigger-active-text":{tokenPath:"tabsTrigger.active.color",fallback:"#000000"},"--tabs-trigger-disabled-opacity":{tokenPath:"tabsTrigger.disabled.opacity",fallback:"0.5"},"--tabs-trigger-disabled-bg":{tokenPath:"tabsTrigger.disabled.background",fallback:"#FFFFFF"},"--tabs-trigger-active-box-shadow":{tokenPath:"tabsTrigger.active.boxShadow",fallback:"0px 1px 2px rgba(0, 0, 0, 0.05)"},"--tabs-font-family":{tokenPath:"fontFamily",fallback:"inherit"},"--tabs-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--tabs-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"},"--tabs-hover-bg":{tokenPath:"tabsTrigger.hover.background",fallback:"#a3aab8"},"--tabs-trigger-disabled-color":{tokenPath:"tabsTrigger.disabled.color",fallback:"#000000"},"--tabs-focus-inner":{tokenPath:"tabsFocusRing.innerColor",fallback:"var(--color-white)"},"--tabs-focus-outer":{tokenPath:"tabsFocusRing.outerColor",fallback:"var(--color-focus-ring)"},"--tabs-focus-inner-size":{tokenPath:"tabsFocusRing.innerSize",fallback:"2px"},"--tabs-focus-outer-size":{tokenPath:"tabsFocusRing.outerSize",fallback:"4px"},"--tabs-list-border-radius":{tokenPath:"tabsList.radius",fallback:"6px"},"--tabs-trigger-border-radius":{tokenPath:"tabsList.radius",fallback:"6px"}};function aK(o){var i=o,{className:e,size:t="medium",tokens:a}=i,r=H(i,["className","size","tokens"]);let n=U("tabs",Pn1,{size:t,tokens:a}),s=A1(n.tokens,"sizes",t),l=S(p({},n.styles),{"--tabs-font-size":s.fontSize,"--tabs-font-weight":s.fontWeight});return(0,Js.jsx)(Qz,p({"data-slot":"tabs","data-size":t,style:l,className:O("group/tabs flex flex-col gap-2",e)},r))}function rK(a){var r=a,{className:e}=r,t=H(r,["className"]);return(0,Js.jsx)(Jz,p({"data-slot":"tabs-list",style:{fontFamily:"var(--tabs-font-family)",lineHeight:"var(--tabs-line-height)",letterSpacing:"var(--tabs-letter-spacing)"},className:O("inline-flex items-center gap-1 rounded-[var(--tabs-list-border-radius)]","bg-[var(--tabs-list-bg)] text-[color:var(--tabs-list-text)]","text-[length:var(--tabs-font-size)] font-[var(--tabs-font-weight)]","group-data-[size=medium]/tabs:h-[42px]","group-data-[size=small]/tabs:h-[32px]","group-data-[size=medium]/tabs:p-[4px]","group-data-[size=small]/tabs:p-[3px]","group/tabs",e)},t))}function oK(a){var r=a,{className:e}=r,t=H(r,["className"]);return(0,Js.jsx)(eK,p({"data-slot":"tabs-trigger",style:{fontFamily:"var(--tabs-font-family)",lineHeight:"var(--tabs-line-height)",letterSpacing:"var(--tabs-letter-spacing)"},className:O("inline-flex items-center justify-center whitespace-nowrap","rounded-[var(--tabs-trigger-border-radius)] border border-transparent transition-all","text-[var(--tabs-trigger-color)]","text-[length:var(--tabs-font-size)] font-[var(--tabs-font-weight)]","data-[state=active]:bg-[var(--tabs-trigger-active-bg)]","data-[state=active]:text-[var(--tabs-trigger-active-text)]","data-[state=active]:shadow-[0px_2px_4px_-1px_#0000000F,0px_4px_6px_-1px_#0000001A]","data-[state=active]:disabled:bg-[var(--tabs-trigger-active-bg)]","disabled:bg-[var(--tabs-trigger-disabled-bg)]","disabled:text-[var(--tabs-trigger-disabled-color)]","disabled:pointer-events-none","hover:bg-[var(--tabs-hover-bg)]","focus-visible:outline-none","focus-visible:relative","focus-visible:after:absolute","focus-visible:after:inset-0","focus-visible:after:rounded-[var(--tabs-trigger-border-radius)]","focus-visible:after:pointer-events-none","focus-visible:after:shadow-[0_0_0_var(--tabs-focus-inner-size)_var(--tabs-focus-inner),0_0_0_var(--tabs-focus-outer-size)_var(--tabs-focus-outer)]","group-data-[size=medium]/tabs:h-[34px]","group-data-[size=medium]/tabs:px-[12px]","group-data-[size=small]/tabs:h-[28px]","group-data-[size=small]/tabs:px-[10px]",e)},t))}function iK(a){var r=a,{className:e}=r,t=H(r,["className"]);return(0,Js.jsx)(tK,p({"data-slot":"tabs-content",className:O("outline-none",e)},t))}var Q=w(T(),1);function sK({type:e="single",size:t,collapsible:a,items:r,defaultValue:o,value:i,onValueChange:n,tokens:s,className:l}){let c=Array.isArray(r)?r:[];return(0,Q.jsx)(Ls,{type:e,size:t,collapsible:a,defaultValue:o,value:i,onValueChange:n,tokens:s,className:l,children:c.map(u=>(0,Q.jsxs)(rf,{value:u.value,children:[(0,Q.jsx)(sf,{disabled:u.disabled,children:u.trigger}),(0,Q.jsx)(af,{children:u.content})]},u.value))})}function lK({defaultValue:e,value:t,onValueChange:a,size:r,tabs:o,tokens:i,className:n}){var l;let s=Array.isArray(o)?o:[];return(0,Q.jsxs)(aK,{defaultValue:e||((l=s[0])==null?void 0:l.value),value:t,onValueChange:a,size:r,tokens:i,className:n,children:[(0,Q.jsx)(rK,{children:s.map(c=>(0,Q.jsx)(oK,{value:c.value,disabled:c.disabled,children:c.label},c.value))}),s.map(c=>(0,Q.jsx)(iK,{value:c.value,children:c.content},c.value))]})}function cK({value:e,defaultValue:t,onValueChange:a,items:r,className:o}){let i=Array.isArray(r)?r:[];return(0,Q.jsx)($N,{value:e,defaultValue:t,onValueChange:a,className:o,children:i.map(n=>(0,Q.jsx)(QN,{value:n.value,label:n.label,description:n.description,disabled:n.disabled,size:n.size,tokens:n.tokens},n.value))})}function uK({triggerLabel:e,content:t,side:a="top",sideOffset:r,delayDuration:o,tokens:i,className:n}){return(0,Q.jsx)(AL,{delayDuration:o,children:(0,Q.jsxs)($f,{tokens:i,children:[(0,Q.jsx)(Qf,{asChild:!0,children:(0,Q.jsx)(u2,{variant:"secondary",size:"small",children:e})}),(0,Q.jsx)(Jf,{side:a,sideOffset:r,tokens:i,className:n,children:t})]})})}function dK({triggerLabel:e,content:t,align:a,side:r,sideOffset:o,open:i,defaultOpen:n,onOpenChange:s,tokens:l,className:c}){return(0,Q.jsxs)(tN,{open:i,defaultOpen:n,onOpenChange:s,children:[(0,Q.jsx)(aN,{asChild:!0,children:(0,Q.jsx)(u2,{variant:"secondary",size:"small",children:e})}),(0,Q.jsx)(rN,{align:a,sideOffset:o,tokens:l,className:c,children:t})]})}function fK({triggerLabel:e,items:t,align:a="end",sideOffset:r,open:o,onOpenChange:i,onItemClick:n,tokens:s,className:l}){let c=Array.isArray(t)?t:[];return(0,Q.jsxs)(Os,{open:o,onOpenChange:i,tokens:s,children:[(0,Q.jsx)(Bs,{asChild:!0,children:(0,Q.jsx)(u2,{variant:"secondary",size:"small",children:e})}),(0,Q.jsx)(Ns,{align:a,sideOffset:r,className:l,children:c.map((u,d)=>u.type==="separator"?(0,Q.jsx)(FB,{},d):u.type==="label"?(0,Q.jsx)(NB,{children:u.label},d):(0,Q.jsx)(Fs,{disabled:u.disabled,destructive:u.destructive,onClick:()=>n==null?void 0:n(u),children:u.label},d))})]})}function CK({triggerLabel:e,triggerVariant:t="primary",triggerSize:a="medium",title:r,description:o,bodyText:i,direction:n,closeLabel:s="Cerrar",open:l,onOpenChange:c,tokens:u,className:d}){return(0,Q.jsxs)(jF,{direction:n,open:l,onOpenChange:c,tokens:u,children:[e&&(0,Q.jsx)(UF,{asChild:!0,children:(0,Q.jsx)(u2,{variant:t,size:a,children:e})}),(0,Q.jsxs)(WF,{className:d,children:[(0,Q.jsxs)(GF,{children:[r&&(0,Q.jsx)(QF,{children:r}),o&&(0,Q.jsx)(JF,{children:o}),(0,Q.jsx)($F,{})]}),i&&(0,Q.jsx)(YF,{children:(0,Q.jsx)("p",{children:i})}),(0,Q.jsx)(XF,{children:(0,Q.jsx)(qF,{asChild:!0,children:(0,Q.jsx)(u2,{variant:"secondary",size:"medium",children:s})})})]})]})}function pK({triggerLabel:e,triggerVariant:t="primary",triggerSize:a="medium",title:r,description:o,cancelLabel:i="Cancelar",actionLabel:n="Confirmar",onAction:s,onCancel:l,alignment:c,size:u,open:d,onOpenChange:f,tokens:C,className:g}){return(0,Q.jsxs)(_z,{open:d,onOpenChange:f,tokens:C,children:[e&&(0,Q.jsx)(Sz,{asChild:!0,children:(0,Q.jsx)(u2,{variant:t,size:a,children:e})}),(0,Q.jsxs)(Hz,{alignment:c,className:g,children:[(0,Q.jsxs)(kz,{children:[(0,Q.jsx)(Iz,{children:r}),o&&(0,Q.jsx)(Pz,{children:o})]}),(0,Q.jsxs)(Vz,{children:[(0,Q.jsx)(Az,{onClick:l,children:i}),(0,Q.jsx)(Zz,{onClick:s,children:n})]})]})]})}function mK({items:e,size:t,tokens:a,className:r}){let o=Array.isArray(e)?e:[];return(0,Q.jsx)(eF,{size:t,tokens:a,className:r,children:(0,Q.jsx)(tF,{children:o.map((i,n)=>(0,Q.jsxs)(nK.default.Fragment,{children:[n>0&&(0,Q.jsx)(iF,{}),(0,Q.jsx)(aF,{children:i.href?(0,Q.jsx)(rF,{href:i.href,children:i.label}):(0,Q.jsx)(oF,{children:i.label})})]},n))})})}function Zn1(e,t,a=1){if(t<=1)return[1];let r=[],o=Math.max(2,e-a),i=Math.min(t-1,e+a);r.push(1),o>2&&r.push("dots");for(let n=o;n<=i;n++)r.push(n);return i<t-1&&r.push("dots"),t>1&&r.push(t),r}function gK({currentPage:e=1,totalPages:t=1,siblingCount:a=1,onPageChange:r,tokens:o,className:i}){let n=Zn1(e,t,a);return(0,Q.jsx)(Rz,{tokens:o,className:i,children:(0,Q.jsxs)(Tz,{children:[(0,Q.jsx)($s,{children:(0,Q.jsx)(Dz,{href:"#",onClick:s=>{s.preventDefault(),e>1&&(r==null||r(e-1))}})}),n.map((s,l)=>s==="dots"?(0,Q.jsx)($s,{children:(0,Q.jsx)(Oz,{})},`d${l}`):(0,Q.jsx)($s,{children:(0,Q.jsx)(vC,{href:"#",isActive:s===e,onClick:c=>{c.preventDefault(),r==null||r(s)},children:s})},s)),(0,Q.jsx)($s,{children:(0,Q.jsx)(Ez,{href:"#",onClick:s=>{s.preventDefault(),e<t&&(r==null||r(e+1))}})})]})})}function hK({columns:e,rows:t,caption:a,footer:r,tokens:o,className:i}){let n=Array.isArray(e)?e:[],s=Array.isArray(t)?t:[],l=Array.isArray(r)?r:[];return(0,Q.jsxs)(rD,{tokens:o,className:i,children:[a&&(0,Q.jsx)(lD,{children:a}),n.length>0&&(0,Q.jsx)(oD,{children:(0,Q.jsx)(lf,{children:n.map((c,u)=>(0,Q.jsx)(nD,{children:c},u))})}),(0,Q.jsx)(iD,{children:s.map((c,u)=>(0,Q.jsx)(lf,{children:(Array.isArray(c)?c:[]).map((d,f)=>(0,Q.jsx)(Ab,{children:d},f))},u))}),l.length>0&&(0,Q.jsx)(sD,{children:l.map((c,u)=>(0,Q.jsx)(lf,{children:(Array.isArray(c)?c:[]).map((d,f)=>(0,Q.jsx)(Ab,{children:d},f))},u))})]})}var Ha=w(I(),1);var je=w(T(),1),An1="ui-input w-full outline-none",Rn1=d5(An1,{variants:{},defaultVariants:{size:"medium"}});function vK({value:e,onValueChange:t,placeholder:a="Seleccionar...",items:r,label:o,size:i="medium",error:n=!1,disabled:s,tokens:l,className:c,open:u,onOpenChange:d,closeOnSelect:f=!0,searchPlaceholder:C="Buscar...",searchRef:g}){var R;let h=U("select",A6,{tokens:l,size:i}),v=A1(h.tokens,"sizes",i),m=p(p({},h.styles),R6(v)),[y,b]=Ha.useState(!1),x=u!==void 0,_=x?u:y,L=Ha.useCallback(P=>{x||b(P),d==null||d(P)},[x,d]),[M,V]=Ha.useState(""),k=r.find(P=>P.value===e),Z=Ha.useMemo(()=>{if(!M.trim())return r;let P=M.toLowerCase();return r.filter(D=>D.label.toLowerCase().includes(P))},[r,M]);return Ha.useEffect(()=>{_||V("")},[_]),(0,je.jsx)(o9,{open:_,onOpenChange:L,children:(0,je.jsxs)("div",{style:m,children:[o&&(0,je.jsx)("label",{className:"ui-input-label",children:o}),(0,je.jsx)(i9,{asChild:!0,children:(0,je.jsxs)("button",{disabled:s,"data-error":n?"true":"false",className:O(Rn1(),"group w-full inline-flex items-center justify-between",c),children:[(0,je.jsx)("span",{className:"truncate",children:(R=k==null?void 0:k.label)!=null?R:a}),(0,je.jsx)(tr,{className:`
|
|
185
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return f7.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},pz=az,mz=rz,gz=oz,hz=iz,vz=nz,yz=dz,xz=Cz,bz=lz,Lz=uz;var p9=w(I(),1);var He=w(T(),1),hn1={"--alert-bg-overlay":{tokenPath:"overlay.background",fallback:"rgba(0,0,0,.5)"},"--alert-bg":{tokenPath:"content.background",fallback:"#ffffff"},"--alert-radius":{tokenPath:"content.radius",fallback:"12px"},"--alert-border-color":{tokenPath:"content.borderColor",fallback:"#E5E7EB"},"--alert-width":{tokenPath:"content.width",fallback:"clamp(360px, calc(100dvw - 32px), 512px)"},"--alert-max-width":{tokenPath:"content.maxWidth",fallback:"512px"},"--alert-max-height":{tokenPath:"content.maxHeight",fallback:"calc(100dvh - 64px)"},"--alert-title-color":{tokenPath:"title.color",fallback:"#020303"},"--alert-title-font-size":{tokenPath:"title.fontSize",fallback:"18px"},"--alert-title-font-weight":{tokenPath:"title.fontWeight",fallback:"550"},"--alert-title-font-family":{tokenPath:"title.fontFamily",fallback:"inherit"},"--alert-title-line-height":{tokenPath:"title.lineHeight",fallback:"130%"},"--alert-title-letter-spacing":{tokenPath:"title.letterSpacing",fallback:"-0.04em"},"--alert-description-color":{tokenPath:"description.color",fallback:"#6B7280"},"--alert-description-font-size":{tokenPath:"description.fontSize",fallback:"16px"},"--alert-description-font-weight":{tokenPath:"description.fontWeight",fallback:"400"},"--alert-description-font-family":{tokenPath:"description.fontFamily",fallback:"inherit"},"--alert-description-line-height":{tokenPath:"description.lineHeight",fallback:"130%"},"--alert-description-letter-spacing":{tokenPath:"description.letterSpacing",fallback:"-0.04em"}},wz=p9.createContext(null),Mz=p9.createContext("left");function m9(){return p9.useContext(Mz)}var qL={left:{content:"text-left",header:"items-start text-left",footer:"flex-row justify-end"},center:{content:"text-center",header:"items-center text-center",footer:"flex-col items-stretch"}};function _z(o){var i=o,{tokens:e,alignment:t="center",size:a="regular"}=i,r=H(i,["tokens","alignment","size"]);var c,u,d,f;let n=U("alertDialog",hn1,{tokens:e}),s=A1(n.tokens,"sizes",a),l=S(p({},n.styles),{"--alert-padding":(c=s==null?void 0:s.padding)!=null?c:"24px","--alert-gap":(u=s==null?void 0:s.gap)!=null?u:"24px","--alert-header-gap":(d=s==null?void 0:s.headerGap)!=null?d:"16px","--alert-footer-gap":(f=s==null?void 0:s.footerGap)!=null?f:"8px"});return(0,He.jsx)(wz.Provider,{value:l,children:(0,He.jsx)(pz,p({"data-slot":"alert-dialog"},r))})}var Sz=mz,vn1=gz;function yn1(e){return(0,He.jsx)(hz,p({"data-slot":"alert-dialog-overlay",className:O("fixed inset-0 z-50 bg-[--alert-bg-overlay]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0")},e))}function Hz(r){var o=r,{className:e,alignment:t="left"}=o,a=H(o,["className","alignment"]);let i=p9.useContext(wz),n=qL[t];return(0,He.jsx)(Mz.Provider,{value:t,children:(0,He.jsx)(vn1,{children:(0,He.jsxs)("div",{style:i!=null?i:void 0,children:[(0,He.jsx)(yn1,{}),(0,He.jsx)(vz,p({"data-slot":"alert-dialog-content","data-alignment":t,className:O("fixed top-1/2 left-1/2 z-50","w-[var(--alert-width)] max-w-[var(--alert-max-width)]","max-h-[var(--alert-max-height)] overflow-y-auto","translate-x-[-50%] translate-y-[-50%]","rounded-[--alert-radius] bg-[--alert-bg]","p-[var(--alert-padding)] grid gap-[var(--alert-gap)] border border-[--alert-border-color]",n.content,e)},a))]})})})}function kz(a){var r=a,{className:e}=r,t=H(r,["className"]);let o=m9();return(0,He.jsx)("div",p({"data-slot":"alert-dialog-header",className:O("flex flex-col gap-[var(--alert-header-gap)]",qL[o].header,e)},t))}function Vz(a){var r=a,{className:e}=r,t=H(r,["className"]);let o=m9();return(0,He.jsx)("div",p({"data-slot":"alert-dialog-footer",className:O("flex gap-[var(--alert-footer-gap)]",qL[o].footer,e)},t))}function Iz(e){let t=m9();return(0,He.jsx)(bz,p({"data-slot":"alert-dialog-title",style:{fontFamily:"var(--alert-title-font-family)",lineHeight:"var(--alert-title-line-height)",letterSpacing:"var(--alert-title-letter-spacing)",fontWeight:"var(--alert-title-font-weight)"},className:O("text-[color:var(--alert-title-color)] text-[length:var(--alert-title-font-size)]",t==="center"&&"text-center",t==="left"&&"text-left")},e))}function Pz(e){let t=m9();return(0,He.jsx)(Lz,p({"data-slot":"alert-dialog-description",style:{fontFamily:"var(--alert-description-font-family)",lineHeight:"var(--alert-description-line-height)",letterSpacing:"var(--alert-description-letter-spacing)",fontWeight:"var(--alert-description-font-weight)"},className:O("text-[color:var(--alert-description-color)] text-[length:var(--alert-description-font-size)]",t==="center"&&"text-center",t==="left"&&"text-left")},e))}function Zz(r){var o=r,{className:e,children:t}=o,a=H(o,["className","children"]);let i=m9();return(0,He.jsx)(yz,S(p({asChild:!0},a),{children:(0,He.jsx)(u2,{variant:"primary",className:O(i==="center"&&"w-full",e),children:t})}))}function Az(r){var o=r,{className:e,children:t}=o,a=H(o,["className","children"]);let i=m9();return(0,He.jsx)(xz,S(p({asChild:!0},a),{children:(0,He.jsx)(u2,{variant:"secondary",className:O(i==="center"&&"w-full",e),children:t})}))}var C7=w(T(),1),xn1={"--pg-gap":{tokenPath:"gap",fallback:"8px"},"--pg-radius":{tokenPath:"radius",fallback:"8px"},"--pg-font-family":{tokenPath:"fontFamily",fallback:"inherit"},"--pg-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--pg-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"},"--pg-font-size":{tokenPath:"pageNumber.fontSize",fallback:"14px"},"--pg-font-weight":{tokenPath:"pageNumber.fontWeight",fallback:"500"},"--pg-icon-size":{tokenPath:"icon.size",fallback:"16px"},"--pg-icon-color":{tokenPath:"icon.color",fallback:"currentColor"},"--pg-item-bg":{tokenPath:"item.default.background",fallback:"#FFFFFF"},"--pg-item-border":{tokenPath:"item.default.border",fallback:"#D1D5DB"},"--pg-item-text":{tokenPath:"item.default.color",fallback:"#374151"},"--pg-item-hover-bg":{tokenPath:"item.hover.background",fallback:"#E6DCFA"},"--pg-item-hover-border":{tokenPath:"item.hover.border",fallback:"#D1D5DB"},"--pg-active-bg":{tokenPath:"item.active.background",fallback:"#F4F0FF"},"--pg-active-text":{tokenPath:"item.active.text",fallback:"#652BDF"},"--pg-active-border":{tokenPath:"item.active.border",fallback:"transparent"},"--pg-focus-border":{tokenPath:"item.focus.border",fallback:"#652BDF"},"--pg-disabled-bg":{tokenPath:"item.disabled.background",fallback:"#FFFFFF"},"--pg-disabled-text":{tokenPath:"item.disabled.text",fallback:"#9CA3AF"},"--pg-disabled-opacity":{tokenPath:"item.disabled.opacity",fallback:"0.5"}};function Rz(o){var i=o,{className:e,tokens:t,style:a}=i,r=H(i,["className","tokens","style"]);let n=U("pagination",xn1,{tokens:t,extra:a});return(0,C7.jsx)("nav",p({role:"navigation","aria-label":"pagination","data-slot":"pagination",style:n.styles,className:O("mx-auto flex w-full justify-center group/pagination",e)},r))}function vC(o){var i=o,{className:e,isActive:t,disabled:a}=i,r=H(i,["className","isActive","disabled"]);return(0,C7.jsx)("a",p({"data-slot":"pagination-link","aria-current":t?"page":void 0,"data-active":t,style:{fontFamily:"var(--pg-font-family)",lineHeight:"var(--pg-line-height)",letterSpacing:"var(--pg-letter-spacing)"},className:O("inline-flex items-center justify-center w-9 h-9 border text-[var(--pg-font-size)] font-[var(--pg-font-weight)] transition-all select-none cursor-pointer outline-none relative rounded-[var(--pg-radius)]","bg-[var(--pg-item-bg)] border-[var(--pg-item-border)] text-[var(--pg-item-text)]","hover:bg-[var(--pg-item-hover-bg)] hover:border-[var(--pg-item-hover-border)]","data-[active=true]:bg-[var(--pg-active-bg)] data-[active=true]:text-[var(--pg-active-text)] data-[active=true]:border-[var(--pg-active-border)] data-[active=true]:shadow-sm","focus:z-10 focus:border-[var(--pg-focus-border)] focus:ring-1 focus:ring-[var(--pg-focus-border)]","data-[active=true]:focus:border-[var(--pg-focus-border)]","disabled:pointer-events-none disabled:bg-[var(--pg-disabled-bg)] disabled:text-[var(--pg-disabled-text)] disabled:opacity-[var(--pg-disabled-opacity)]",a&&"pointer-events-none bg-[var(--pg-disabled-bg)] text-[var(--pg-disabled-text)] opacity-[var(--pg-disabled-opacity)]",e)},r))}function Tz(a){var r=a,{className:e}=r,t=H(r,["className"]);return(0,C7.jsx)("ul",p({"data-slot":"pagination-content",className:O("flex items-center gap-[var(--pg-gap)]",e)},t))}function $s(e){return(0,C7.jsx)("li",p({"data-slot":"pagination-item"},e))}function Dz(a){var r=a,{className:e}=r,t=H(r,["className"]);return(0,C7.jsx)(vC,S(p({"aria-label":"Go to previous page",className:O("gap-1 px-2.5",e)},t),{children:(0,C7.jsx)(pa,{style:{width:"var(--pg-icon-size)",height:"var(--pg-icon-size)"}})}))}function Ez(a){var r=a,{className:e}=r,t=H(r,["className"]);return(0,C7.jsx)(vC,S(p({"aria-label":"Go to next page",className:O("gap-1 px-2.5",e)},t),{children:(0,C7.jsx)(kt,{style:{width:"var(--pg-icon-size)",height:"var(--pg-icon-size)"}})}))}function Oz(a){var r=a,{className:e}=r,t=H(r,["className"]);return(0,C7.jsxs)("span",S(p({"data-slot":"pagination-ellipsis",className:O("inline-flex items-center justify-center w-9 h-9 text-[var(--pg-icon-color)]",e)},t),{children:[(0,C7.jsx)(ma,{style:{width:"var(--pg-icon-size)",height:"var(--pg-icon-size)"}}),(0,C7.jsx)("span",{className:"sr-only",children:"More pages"})]}))}var Sa=w(I(),1);var Nz=w(I(),1),Sn1=w(j5(),1);var pe=w(I(),1);var yC=w(T(),1);function Bz(e){let t=bn1(e),a=pe.forwardRef((r,o)=>{let c=r,{children:i}=c,n=H(c,["children"]),s=pe.Children.toArray(i),l=s.find(wn1);if(l){let u=l.props.children,d=s.map(f=>f===l?pe.Children.count(u)>1?pe.Children.only(null):pe.isValidElement(u)?u.props.children:null:f);return(0,yC.jsx)(t,S(p({},n),{ref:o,children:pe.isValidElement(u)?pe.cloneElement(u,void 0,d):null}))}return(0,yC.jsx)(t,S(p({},n),{ref:o,children:i}))});return a.displayName=`${e}.Slot`,a}function bn1(e){let t=pe.forwardRef((a,r)=>{let n=a,{children:o}=n,i=H(n,["children"]);if(pe.isValidElement(o)){let s=_n1(o),l=Mn1(i,o.props);return o.type!==pe.Fragment&&(l.ref=r?S1(r,s):s),pe.cloneElement(o,l)}return pe.Children.count(o)>1?pe.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ln1=Symbol("radix.slottable");function wn1(e){return pe.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ln1}function Mn1(e,t){let a=p({},t);for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?a[r]=(...s)=>{let l=i(...s);return o(...s),l}:o&&(a[r]=o):r==="style"?a[r]=p(p({},o),i):r==="className"&&(a[r]=[o,i].filter(Boolean).join(" "))}return p(p({},e),a)}function _n1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var Fz=w(T(),1);var Hn1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qs=Hn1.reduce((e,t)=>{let a=Bz(`Primitive.${t}`),r=Nz.forwardRef((o,i)=>{let c=o,{asChild:n}=c,s=H(c,["asChild"]),l=n?a:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),(0,Fz.jsx)(l,S(p({},s),{ref:i}))});return r.displayName=`Primitive.${t}`,S(p({},e),{[t]:r})},{});var _a=w(T(),1);var xC="Tabs",[kn1,WB1]=r5(xC,[ba]),zz=ba(),[Vn1,WL]=kn1(xC),Kz=Sa.forwardRef((e,t)=>{let C=e,{__scopeTabs:a,value:r,onValueChange:o,defaultValue:i,orientation:n="horizontal",dir:s,activationMode:l="automatic"}=C,c=H(C,["__scopeTabs","value","onValueChange","defaultValue","orientation","dir","activationMode"]),u=l3(s),[d,f]=d2({prop:r,onChange:o,defaultProp:i!=null?i:"",caller:xC});return(0,_a.jsx)(Vn1,{scope:a,baseId:v2(),value:d,onValueChange:f,orientation:n,dir:u,activationMode:l,children:(0,_a.jsx)(Qs.div,S(p({dir:u,"data-orientation":n},c),{ref:t}))})});Kz.displayName=xC;var jz="TabsList",Uz=Sa.forwardRef((e,t)=>{let s=e,{__scopeTabs:a,loop:r=!0}=s,o=H(s,["__scopeTabs","loop"]),i=WL(jz,a),n=zz(a);return(0,_a.jsx)(X8,S(p({asChild:!0},n),{orientation:i.orientation,dir:i.dir,loop:r,children:(0,_a.jsx)(Qs.div,S(p({role:"tablist","aria-orientation":i.orientation},o),{ref:t}))}))});Uz.displayName=jz;var qz="TabsTrigger",Wz=Sa.forwardRef((e,t)=>{let d=e,{__scopeTabs:a,value:r,disabled:o=!1}=d,i=H(d,["__scopeTabs","value","disabled"]),n=WL(qz,a),s=zz(a),l=Xz(n.baseId,r),c=$z(n.baseId,r),u=r===n.value;return(0,_a.jsx)($8,S(p({asChild:!0},s),{focusable:!o,active:u,children:(0,_a.jsx)(Qs.button,S(p({type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l},i),{ref:t,onMouseDown:t1(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?n.onValueChange(r):f.preventDefault()}),onKeyDown:t1(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&n.onValueChange(r)}),onFocus:t1(e.onFocus,()=>{let f=n.activationMode!=="manual";!u&&!o&&f&&n.onValueChange(r)})}))}))});Wz.displayName=qz;var Gz="TabsContent",Yz=Sa.forwardRef((e,t)=>{let f=e,{__scopeTabs:a,value:r,forceMount:o,children:i}=f,n=H(f,["__scopeTabs","value","forceMount","children"]),s=WL(Gz,a),l=Xz(s.baseId,r),c=$z(s.baseId,r),u=r===s.value,d=Sa.useRef(u);return Sa.useEffect(()=>{let C=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(C)},[]),(0,_a.jsx)(r2,{present:o||u,children:({present:C})=>(0,_a.jsx)(Qs.div,S(p({"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!C,id:c,tabIndex:0},n),{ref:t,style:S(p({},e.style),{animationDuration:d.current?"0s":void 0}),children:C&&i}))})});Yz.displayName=Gz;function Xz(e,t){return`${e}-trigger-${t}`}function $z(e,t){return`${e}-content-${t}`}var Qz=Kz,Jz=Uz,eK=Wz,tK=Yz;var Js=w(T(),1),Pn1={"--tabs-list-bg":{tokenPath:"tabsList.background",fallback:"#e2e5e9"},"--tabs-list-text":{tokenPath:"tabsList.color",fallback:"#000000"},"--tabs-trigger-color":{tokenPath:"tabsTrigger.color",fallback:"#000000"},"--tabs-trigger-active-bg":{tokenPath:"tabsTrigger.active.background",fallback:"#a3aab8"},"--tabs-trigger-active-text":{tokenPath:"tabsTrigger.active.color",fallback:"#000000"},"--tabs-trigger-disabled-opacity":{tokenPath:"tabsTrigger.disabled.opacity",fallback:"0.5"},"--tabs-trigger-disabled-bg":{tokenPath:"tabsTrigger.disabled.background",fallback:"#FFFFFF"},"--tabs-trigger-active-box-shadow":{tokenPath:"tabsTrigger.active.boxShadow",fallback:"0px 1px 2px rgba(0, 0, 0, 0.05)"},"--tabs-font-family":{tokenPath:"fontFamily",fallback:"inherit"},"--tabs-line-height":{tokenPath:"lineHeight",fallback:"130%"},"--tabs-letter-spacing":{tokenPath:"letterSpacing",fallback:"-0.04em"},"--tabs-hover-bg":{tokenPath:"tabsTrigger.hover.background",fallback:"#a3aab8"},"--tabs-trigger-disabled-color":{tokenPath:"tabsTrigger.disabled.color",fallback:"#000000"},"--tabs-focus-inner":{tokenPath:"tabsFocusRing.innerColor",fallback:"var(--color-white)"},"--tabs-focus-outer":{tokenPath:"tabsFocusRing.outerColor",fallback:"var(--color-focus-ring)"},"--tabs-focus-inner-size":{tokenPath:"tabsFocusRing.innerSize",fallback:"2px"},"--tabs-focus-outer-size":{tokenPath:"tabsFocusRing.outerSize",fallback:"4px"},"--tabs-list-border-radius":{tokenPath:"tabsList.radius",fallback:"6px"},"--tabs-trigger-border-radius":{tokenPath:"tabsList.radius",fallback:"6px"}};function aK(o){var i=o,{className:e,size:t="medium",tokens:a}=i,r=H(i,["className","size","tokens"]);let n=U("tabs",Pn1,{size:t,tokens:a}),s=A1(n.tokens,"sizes",t),l=S(p({},n.styles),{"--tabs-font-size":s.fontSize,"--tabs-font-weight":s.fontWeight});return(0,Js.jsx)(Qz,p({"data-slot":"tabs","data-size":t,style:l,className:O("group/tabs flex flex-col gap-2",e)},r))}function rK(a){var r=a,{className:e}=r,t=H(r,["className"]);return(0,Js.jsx)(Jz,p({"data-slot":"tabs-list",style:{fontFamily:"var(--tabs-font-family)",lineHeight:"var(--tabs-line-height)",letterSpacing:"var(--tabs-letter-spacing)"},className:O("inline-flex items-center gap-1 rounded-[var(--tabs-list-border-radius)]","bg-[var(--tabs-list-bg)] text-[color:var(--tabs-list-text)]","text-[length:var(--tabs-font-size)] font-[var(--tabs-font-weight)]","group-data-[size=medium]/tabs:h-[42px]","group-data-[size=small]/tabs:h-[32px]","group-data-[size=medium]/tabs:p-[4px]","group-data-[size=small]/tabs:p-[3px]","group/tabs",e)},t))}function oK(a){var r=a,{className:e}=r,t=H(r,["className"]);return(0,Js.jsx)(eK,p({"data-slot":"tabs-trigger",style:{fontFamily:"var(--tabs-font-family)",lineHeight:"var(--tabs-line-height)",letterSpacing:"var(--tabs-letter-spacing)"},className:O("inline-flex items-center justify-center whitespace-nowrap","rounded-[var(--tabs-trigger-border-radius)] border border-transparent transition-all","text-[var(--tabs-trigger-color)]","text-[length:var(--tabs-font-size)] font-[var(--tabs-font-weight)]","data-[state=active]:bg-[var(--tabs-trigger-active-bg)]","data-[state=active]:text-[var(--tabs-trigger-active-text)]","data-[state=active]:shadow-[0px_2px_4px_-1px_#0000000F,0px_4px_6px_-1px_#0000001A]","data-[state=active]:disabled:bg-[var(--tabs-trigger-active-bg)]","disabled:bg-[var(--tabs-trigger-disabled-bg)]","disabled:text-[var(--tabs-trigger-disabled-color)]","disabled:pointer-events-none","hover:bg-[var(--tabs-hover-bg)]","focus-visible:outline-none","focus-visible:relative","focus-visible:after:absolute","focus-visible:after:inset-0","focus-visible:after:rounded-[var(--tabs-trigger-border-radius)]","focus-visible:after:pointer-events-none","focus-visible:after:shadow-[0_0_0_var(--tabs-focus-inner-size)_var(--tabs-focus-inner),0_0_0_var(--tabs-focus-outer-size)_var(--tabs-focus-outer)]","group-data-[size=medium]/tabs:h-[34px]","group-data-[size=medium]/tabs:px-[12px]","group-data-[size=small]/tabs:h-[28px]","group-data-[size=small]/tabs:px-[10px]",e)},t))}function iK(a){var r=a,{className:e}=r,t=H(r,["className"]);return(0,Js.jsx)(tK,p({"data-slot":"tabs-content",className:O("outline-none",e)},t))}var Q=w(T(),1);function sK({type:e="single",size:t,collapsible:a,items:r,defaultValue:o,value:i,onValueChange:n,tokens:s,className:l}){let c=Array.isArray(r)?r:[];return(0,Q.jsx)(Ls,{type:e,size:t,collapsible:a,defaultValue:o,value:i,onValueChange:n,tokens:s,className:l,children:c.map(u=>(0,Q.jsxs)(rf,{value:u.value,children:[(0,Q.jsx)(sf,{disabled:u.disabled,label:u.label,children:u.trigger}),(0,Q.jsx)(af,{children:u.content})]},u.value))})}function lK({defaultValue:e,value:t,onValueChange:a,size:r,tabs:o,tokens:i,className:n}){var l;let s=Array.isArray(o)?o:[];return(0,Q.jsxs)(aK,{defaultValue:e||((l=s[0])==null?void 0:l.value),value:t,onValueChange:a,size:r,tokens:i,className:n,children:[(0,Q.jsx)(rK,{children:s.map(c=>(0,Q.jsx)(oK,{value:c.value,disabled:c.disabled,children:c.label},c.value))}),s.map(c=>(0,Q.jsx)(iK,{value:c.value,children:c.content},c.value))]})}function cK({value:e,defaultValue:t,onValueChange:a,items:r,className:o}){let i=Array.isArray(r)?r:[];return(0,Q.jsx)($N,{value:e,defaultValue:t,onValueChange:a,className:o,children:i.map(n=>(0,Q.jsx)(QN,{value:n.value,label:n.label,description:n.description,disabled:n.disabled,size:n.size,tokens:n.tokens},n.value))})}function uK({triggerLabel:e,content:t,side:a="top",sideOffset:r,delayDuration:o,tokens:i,className:n}){return(0,Q.jsx)(AL,{delayDuration:o,children:(0,Q.jsxs)($f,{tokens:i,children:[(0,Q.jsx)(Qf,{asChild:!0,children:(0,Q.jsx)(u2,{variant:"secondary",size:"small",children:e})}),(0,Q.jsx)(Jf,{side:a,sideOffset:r,tokens:i,className:n,children:t})]})})}function dK({triggerLabel:e,content:t,align:a,side:r,sideOffset:o,open:i,defaultOpen:n,onOpenChange:s,tokens:l,className:c}){return(0,Q.jsxs)(tN,{open:i,defaultOpen:n,onOpenChange:s,children:[(0,Q.jsx)(aN,{asChild:!0,children:(0,Q.jsx)(u2,{variant:"secondary",size:"small",children:e})}),(0,Q.jsx)(rN,{align:a,sideOffset:o,tokens:l,className:c,children:t})]})}function fK({triggerLabel:e,items:t,align:a="end",sideOffset:r,open:o,onOpenChange:i,onItemClick:n,tokens:s,className:l}){let c=Array.isArray(t)?t:[];return(0,Q.jsxs)(Os,{open:o,onOpenChange:i,tokens:s,children:[(0,Q.jsx)(Bs,{asChild:!0,children:(0,Q.jsx)(u2,{variant:"secondary",size:"small",children:e})}),(0,Q.jsx)(Ns,{align:a,sideOffset:r,className:l,children:c.map((u,d)=>u.type==="separator"?(0,Q.jsx)(FB,{},d):u.type==="label"?(0,Q.jsx)(NB,{children:u.label},d):(0,Q.jsx)(Fs,{disabled:u.disabled,destructive:u.destructive,onClick:()=>n==null?void 0:n(u),children:u.label},d))})]})}function CK({triggerLabel:e,triggerVariant:t="primary",triggerSize:a="medium",title:r,description:o,bodyText:i,direction:n,closeLabel:s="Cerrar",open:l,onOpenChange:c,tokens:u,className:d}){return(0,Q.jsxs)(jF,{direction:n,open:l,onOpenChange:c,tokens:u,children:[e&&(0,Q.jsx)(UF,{asChild:!0,children:(0,Q.jsx)(u2,{variant:t,size:a,children:e})}),(0,Q.jsxs)(WF,{className:d,children:[(0,Q.jsxs)(GF,{children:[r&&(0,Q.jsx)(QF,{children:r}),o&&(0,Q.jsx)(JF,{children:o}),(0,Q.jsx)($F,{})]}),i&&(0,Q.jsx)(YF,{children:(0,Q.jsx)("p",{children:i})}),(0,Q.jsx)(XF,{children:(0,Q.jsx)(qF,{asChild:!0,children:(0,Q.jsx)(u2,{variant:"secondary",size:"medium",children:s})})})]})]})}function pK({triggerLabel:e,triggerVariant:t="primary",triggerSize:a="medium",title:r,description:o,cancelLabel:i="Cancelar",actionLabel:n="Confirmar",onAction:s,onCancel:l,alignment:c,size:u,open:d,onOpenChange:f,tokens:C,className:g}){return(0,Q.jsxs)(_z,{open:d,onOpenChange:f,tokens:C,children:[e&&(0,Q.jsx)(Sz,{asChild:!0,children:(0,Q.jsx)(u2,{variant:t,size:a,children:e})}),(0,Q.jsxs)(Hz,{alignment:c,className:g,children:[(0,Q.jsxs)(kz,{children:[(0,Q.jsx)(Iz,{children:r}),o&&(0,Q.jsx)(Pz,{children:o})]}),(0,Q.jsxs)(Vz,{children:[(0,Q.jsx)(Az,{onClick:l,children:i}),(0,Q.jsx)(Zz,{onClick:s,children:n})]})]})]})}function mK({items:e,size:t,tokens:a,className:r}){let o=Array.isArray(e)?e:[];return(0,Q.jsx)(eF,{size:t,tokens:a,className:r,children:(0,Q.jsx)(tF,{children:o.map((i,n)=>(0,Q.jsxs)(nK.default.Fragment,{children:[n>0&&(0,Q.jsx)(iF,{}),(0,Q.jsx)(aF,{children:i.href?(0,Q.jsx)(rF,{href:i.href,children:i.label}):(0,Q.jsx)(oF,{children:i.label})})]},n))})})}function Zn1(e,t,a=1){if(t<=1)return[1];let r=[],o=Math.max(2,e-a),i=Math.min(t-1,e+a);r.push(1),o>2&&r.push("dots");for(let n=o;n<=i;n++)r.push(n);return i<t-1&&r.push("dots"),t>1&&r.push(t),r}function gK({currentPage:e=1,totalPages:t=1,siblingCount:a=1,onPageChange:r,tokens:o,className:i}){let n=Zn1(e,t,a);return(0,Q.jsx)(Rz,{tokens:o,className:i,children:(0,Q.jsxs)(Tz,{children:[(0,Q.jsx)($s,{children:(0,Q.jsx)(Dz,{href:"#",onClick:s=>{s.preventDefault(),e>1&&(r==null||r(e-1))}})}),n.map((s,l)=>s==="dots"?(0,Q.jsx)($s,{children:(0,Q.jsx)(Oz,{})},`d${l}`):(0,Q.jsx)($s,{children:(0,Q.jsx)(vC,{href:"#",isActive:s===e,onClick:c=>{c.preventDefault(),r==null||r(s)},children:s})},s)),(0,Q.jsx)($s,{children:(0,Q.jsx)(Ez,{href:"#",onClick:s=>{s.preventDefault(),e<t&&(r==null||r(e+1))}})})]})})}function hK({columns:e,rows:t,caption:a,footer:r,tokens:o,className:i}){let n=Array.isArray(e)?e:[],s=Array.isArray(t)?t:[],l=Array.isArray(r)?r:[];return(0,Q.jsxs)(rD,{tokens:o,className:i,children:[a&&(0,Q.jsx)(lD,{children:a}),n.length>0&&(0,Q.jsx)(oD,{children:(0,Q.jsx)(lf,{children:n.map((c,u)=>(0,Q.jsx)(nD,{children:c},u))})}),(0,Q.jsx)(iD,{children:s.map((c,u)=>(0,Q.jsx)(lf,{children:(Array.isArray(c)?c:[]).map((d,f)=>(0,Q.jsx)(Ab,{children:d},f))},u))}),l.length>0&&(0,Q.jsx)(sD,{children:l.map((c,u)=>(0,Q.jsx)(lf,{children:(Array.isArray(c)?c:[]).map((d,f)=>(0,Q.jsx)(Ab,{children:d},f))},u))})]})}var Ha=w(I(),1);var je=w(T(),1),An1="ui-input w-full outline-none",Rn1=d5(An1,{variants:{},defaultVariants:{size:"medium"}});function vK({value:e,onValueChange:t,placeholder:a="Seleccionar...",items:r,label:o,size:i="medium",error:n=!1,disabled:s,tokens:l,className:c,open:u,onOpenChange:d,closeOnSelect:f=!0,searchPlaceholder:C="Buscar...",searchRef:g}){var R;let h=U("select",A6,{tokens:l,size:i}),v=A1(h.tokens,"sizes",i),m=p(p({},h.styles),R6(v)),[y,b]=Ha.useState(!1),x=u!==void 0,_=x?u:y,L=Ha.useCallback(P=>{x||b(P),d==null||d(P)},[x,d]),[M,V]=Ha.useState(""),k=r.find(P=>P.value===e),Z=Ha.useMemo(()=>{if(!M.trim())return r;let P=M.toLowerCase();return r.filter(D=>D.label.toLowerCase().includes(P))},[r,M]);return Ha.useEffect(()=>{_||V("")},[_]),(0,je.jsx)(o9,{open:_,onOpenChange:L,children:(0,je.jsxs)("div",{style:m,children:[o&&(0,je.jsx)("label",{className:"ui-input-label",children:o}),(0,je.jsx)(i9,{asChild:!0,children:(0,je.jsxs)("button",{disabled:s,"data-error":n?"true":"false",className:O(Rn1(),"group w-full inline-flex items-center justify-between",c),children:[(0,je.jsx)("span",{className:"truncate",children:(R=k==null?void 0:k.label)!=null?R:a}),(0,je.jsx)(tr,{className:`
|
|
186
186
|
h-4 w-4 shrink-0 ui-input-icon
|
|
187
187
|
`})]})}),(0,je.jsxs)(n9,{align:"start",sideOffset:4,className:`
|
|
188
188
|
z-50 rounded-md border border-[--border-default]
|