@reformer/builder 3.0.0-beta.5 → 3.0.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/assets/{App-BupMDG_t.js → App-DRJnHAjE.js} +212 -212
  2. package/dist/assets/{BootError-CWnToysV.js → BootError-CiPUX-Tr.js} +1 -1
  3. package/dist/assets/{ChatPanel-B4wt7hBH.js → ChatPanel-CnU7eT8N.js} +7 -7
  4. package/dist/assets/{CodeEditor-Cca8j3Z3.js → CodeEditor-Wv0NRzV8.js} +1 -1
  5. package/dist/assets/{MarkdownPreview-CmqjlfzE.js → MarkdownPreview-DXY3eJ1Z.js} +3 -3
  6. package/dist/assets/{RawJsonEditor-D5mwkIJa.js → RawJsonEditor-c354H_pY.js} +1 -1
  7. package/dist/assets/{boot-BCJd6Ujw.js → boot-5_JU0zay.js} +1 -1
  8. package/dist/assets/{byok-B9mwOrn0.js → byok-D0ncJaTq.js} +1 -1
  9. package/dist/assets/{editor.api-BWDeQ8t4.js → editor.api-CMCnIB-P.js} +1 -1
  10. package/dist/assets/{freemarker2-DQaxDgne.js → freemarker2-C645vQBx.js} +1 -1
  11. package/dist/assets/{handlebars-e1hbsCFi.js → handlebars-B5DnoJkq.js} +1 -1
  12. package/dist/assets/{html-QXilGQ4Y.js → html-TNLrm0oH.js} +1 -1
  13. package/dist/assets/{index-BwhW-Atz.js → index--0tYkbnz.js} +3 -3
  14. package/dist/assets/index-BKc-soqk.css +1 -0
  15. package/dist/assets/{index-eRs9yupj.js → index-Bb-H-IRh.js} +1 -1
  16. package/dist/assets/{index-DhcNqNgT.js → index-BivFj4xA.js} +2 -2
  17. package/dist/assets/{index-CF7RI8Bt.js → index-C_YSTVSM.js} +1 -1
  18. package/dist/assets/{index-CLTXPf4k.js → index-D2vdVqoN.js} +1 -1
  19. package/dist/assets/{index-U9gpmElw.js → index-DBBur3Kg.js} +3 -3
  20. package/dist/assets/{javascript-C7cOj8ds.js → javascript-YmJoSFNK.js} +1 -1
  21. package/dist/assets/{jsonMode-DEqS3I0B.js → jsonMode-CUyarZ9Q.js} +1 -1
  22. package/dist/assets/{liquid-grdNDW6i.js → liquid-CsrVJLkL.js} +1 -1
  23. package/dist/assets/load-DahhU28W.js +11 -0
  24. package/dist/assets/{mdx-BGpbXlZS.js → mdx-DDXJg3VI.js} +1 -1
  25. package/dist/assets/{monaco-languages-BZWxuU3F.js → monaco-languages-CfiXabIS.js} +2 -2
  26. package/dist/assets/{monaco-setup-1PbjxubL.js → monaco-setup-DPehMZ7o.js} +3 -3
  27. package/dist/assets/{python-D5X7CY5Y.js → python-DpnOD9VM.js} +1 -1
  28. package/dist/assets/{razor-B2pbhZKy.js → razor-BsF1GcFZ.js} +1 -1
  29. package/dist/assets/{reformer-ui-kit-11-bLtlFFvp.js → reformer-ui-kit-11-Bml4F8Os.js} +1 -1
  30. package/dist/assets/reformer-ui-kit-BWUaVvO0.js +1 -0
  31. package/dist/assets/{typescript-DL3gRsAd.js → typescript-BuFxP6n6.js} +1 -1
  32. package/dist/assets/{typescript-Ccn-IGn9.js → typescript-D7ER-DvA.js} +1 -1
  33. package/dist/assets/{useFormField-BLbvmpme-Dwz_jyMW.js → useFormField-BLbvmpme-CM4hze15.js} +1 -1
  34. package/dist/assets/{xml-NgTjWpvZ.js → xml-5MzZ4-DY.js} +1 -1
  35. package/dist/assets/{yaml-CboCRslW.js → yaml-Ch0E2rII.js} +1 -1
  36. package/dist/index.html +2 -2
  37. package/package.json +1 -1
  38. package/dist/assets/index-BxUg93Np.css +0 -1
  39. package/dist/assets/load-QsSQTL2T.js +0 -11
  40. package/dist/assets/reformer-ui-kit-tUqYBSLv.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as c,e as tr,j as g,W as V}from"./index-DhcNqNgT.js";import{L as yn,H as Ks,M as Cn,O as Rm}from"./useFormField-BLbvmpme-Dwz_jyMW.js";const Mm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Em=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase()),Di=e=>{const t=Em(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ol=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim(),Pm=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var _m={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"};const Dm=c.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:r="",children:s,iconNode:a,...i},l)=>c.createElement("svg",{ref:l,..._m,width:t,height:t,stroke:e,strokeWidth:o?Number(n)*24/Number(t):n,className:Ol("lucide",r),...!s&&!Pm(i)&&{"aria-hidden":"true"},...i},[...a.map(([u,d])=>c.createElement(u,d)),...Array.isArray(s)?s:[s]]));const Me=(e,t)=>{const n=c.forwardRef(({className:o,...r},s)=>c.createElement(Dm,{ref:s,iconNode:t,className:Ol(`lucide-${Mm(Di(e))}`,`lucide-${e}`,o),...r}));return n.displayName=Di(e),n};const Im=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],F_=Me("arrow-down",Im);const Tm=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],$_=Me("arrow-up",Tm);const Om=[["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"}]],j_=Me("calendar",Om);const Am=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],L_=Me("check",Am);const Nm=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],W_=Me("chevron-down",Nm);const km=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],V_=Me("chevron-left",km);const Fm=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],B_=Me("chevron-right",Fm);const $m=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],H_=Me("chevron-up",$m);const jm=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],G_=Me("chevrons-up-down",jm);const Lm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],z_=Me("circle",Lm);const Wm=[["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"}]],Y_=Me("ellipsis",Wm);const Vm=[["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"}]],U_=Me("eye-off",Vm);const Bm=[["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"}]],K_=Me("eye",Bm);const Hm=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],q_=Me("loader-circle",Hm);const Gm=[["path",{d:"M5 12h14",key:"1ays0h"}]],X_=Me("minus",Gm);const zm=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Z_=Me("search",zm);const Ym=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Q_=Me("x",Ym);function Ii(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dn(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Ii(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():Ii(e[r],null)}}}}function H(...e){return c.useCallback(dn(...e),e)}function _t(e){const t=c.forwardRef((n,o)=>{let{children:r,...s}=n,a=null,i=!1;const l=[];Ti(r)&&typeof wo=="function"&&(r=wo(r._payload)),c.Children.forEach(r,p=>{if(Zm(p)){i=!0;const m=p;let h="child"in m.props?m.props.child:m.props.children;Ti(h)&&typeof wo=="function"&&(h=wo(h._payload)),a=Km(m,h),l.push(a?.props?.children)}else l.push(p)}),a?a=c.cloneElement(a,void 0,l):!i&&c.Children.count(r)===1&&c.isValidElement(r)&&(a=r);const u=a?Xm(a):void 0,d=H(o,u);if(!a){if(r||r===0)throw new Error(i?th(e):eh(e));return r}const f=qm(s,a.props??{});return a.type!==c.Fragment&&(f.ref=o?d:u),c.cloneElement(a,f)});return t.displayName=`${e}.Slot`,t}var J_=_t("Slot"),Al=Symbol.for("radix.slottable");function Um(e){const t=n=>"child"in n?n.children(n.child):n.children;return t.displayName=`${e}.Slottable`,t.__radixId=Al,t}var Km=(e,t)=>{if("child"in e.props){const n=e.props.child;return c.isValidElement(n)?c.cloneElement(n,void 0,e.props.children(n.props.children)):null}return c.isValidElement(t)?t:null};function qm(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...i)=>{const l=s(...i);return r(...i),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Xm(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Zm(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Al}var Qm=Symbol.for("react.lazy");function Ti(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Qm&&"_payload"in e&&Jm(e._payload)}function Jm(e){return typeof e=="object"&&e!==null&&"then"in e}var eh=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,th=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,wo=tr[" use ".trim().toString()],nh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],O=nh.reduce((e,t)=>{const n=_t(`Primitive.${t}`),o=c.forwardRef((r,s)=>{const{asChild:a,...i}=r,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...i,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function ko(e,t){e&&yn.flushSync(()=>e.dispatchEvent(t))}var Nl=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),oh="VisuallyHidden",kl=c.forwardRef((e,t)=>g.jsx(O.span,{...e,ref:t,style:{...Nl,...e.style}}));kl.displayName=oh;var Fl=kl;function ve(e,t=[]){let n=[];function o(s,a){const i=c.createContext(a);i.displayName=s+"Context";const l=n.length;n=[...n,a];const u=f=>{const{scope:p,children:m,...h}=f,v=p?.[e]?.[l]||i,y=c.useMemo(()=>h,Object.values(h));return g.jsx(v.Provider,{value:y,children:m})};u.displayName=s+"Provider";function d(f,p,m={}){const{optional:h=!1}=m,v=p?.[e]?.[l]||i,y=c.useContext(v);if(y)return y;if(a!==void 0)return a;if(!h)throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const r=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return r.scopeName=e,[o,rh(r,...t)]}function rh(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const a=o.reduce((i,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...i,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Nt(e){const t=e+"CollectionProvider",[n,o]=ve(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=v=>{const{scope:y,children:w}=v,S=c.useRef(null),C=c.useRef(new Map).current;return g.jsx(r,{scope:y,itemMap:C,collectionRef:S,children:w})};a.displayName=t;const i=e+"CollectionSlot",l=_t(i),u=c.forwardRef((v,y)=>{const{scope:w,children:S}=v,C=s(i,w),b=H(y,C.collectionRef);return g.jsx(l,{ref:b,children:S})});u.displayName=i;const d=e+"CollectionItemSlot",f="data-radix-collection-item",p=_t(d),m=c.forwardRef((v,y)=>{const{scope:w,children:S,...C}=v,b=c.useRef(null),x=H(y,b),R=s(d,w);return c.useEffect(()=>(R.itemMap.set(b,{ref:b,...C}),()=>void R.itemMap.delete(b))),g.jsx(p,{[f]:"",ref:x,children:S})});m.displayName=d;function h(v){const y=s(e+"CollectionConsumer",v);return c.useCallback(()=>{const S=y.collectionRef.current;if(!S)return[];const C=Array.from(S.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((R,M)=>C.indexOf(R.ref.current)-C.indexOf(M.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:a,Slot:u,ItemSlot:m},h,o]}function E(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)}}var ye=globalThis?.document?c.useLayoutEffect:()=>{},sh=tr[" useInsertionEffect ".trim().toString()]||ye;function he({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,a]=ah({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r;{const d=c.useRef(e!==void 0);c.useEffect(()=>{const f=d.current;f!==i&&console.warn(`${o} is changing from ${f?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=i},[i,o])}const u=c.useCallback(d=>{if(i){const f=ih(d)?d(e):d;f!==e&&a.current?.(f)}else s(d)},[i,e,s,a]);return[l,u]}function ah({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),s=c.useRef(t);return sh(()=>{s.current=t},[t]),c.useEffect(()=>{r.current!==n&&(s.current?.(n),r.current=n)},[n,r]),[n,o,s]}function ih(e){return typeof e=="function"}function lh(e,t){return c.useReducer((n,o)=>t[n][o]??n,e)}var ge=e=>{const{present:t,children:n}=e,o=ch(t),r=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),s=uh(o.ref,dh(r));return typeof n=="function"||o.isPresent?c.cloneElement(r,{ref:s}):null};ge.displayName="Presence";function ch(e){const[t,n]=c.useState(),o=c.useRef(null),r=c.useRef(e),s=c.useRef("none"),a=c.useRef(void 0),i=e?"mounted":"unmounted",[l,u]=lh(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{l==="mounted"?(s.current=a.current??Dn(o.current),a.current=void 0):s.current="none"},[l]),ye(()=>{const d=o.current,f=r.current;if(f!==e){const m=s.current,h=Dn(d);e?(a.current=h,u("MOUNT")):h==="none"||d?.display==="none"?u("UNMOUNT"):u(f&&m!==h?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),ye(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=h=>{const y=Dn(o.current).includes(CSS.escape(h.animationName));if(h.target===t&&y&&(u("ANIMATION_END"),!r.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},m=h=>{h.target===t&&(s.current=Dn(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:c.useCallback(d=>{if(d){const f=getComputedStyle(d);o.current=f,a.current=Dn(f)}else o.current=null;n(d)},[])}}function Oi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function uh(...e){const t=c.useRef(e);return t.current=e,c.useCallback(n=>{const o=t.current;let r=!1;const s=o.map(a=>{const i=Oi(a,n);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let a=0;a<s.length;a++){const i=s[a];typeof i=="function"?i():Oi(o[a],null)}}},[])}function Dn(e){return e?.animationName||"none"}function dh(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fh=tr[" useId ".trim().toString()]||(()=>{}),ph=0;function pe(e){const[t,n]=c.useState(fh());return ye(()=>{n(o=>o??String(ph++))},[e]),e||(t?`radix-${t}`:"")}var nr="Collapsible",[gh,$l]=ve(nr),[mh,qs]=gh(nr),jl=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:o,defaultOpen:r,disabled:s,onOpenChange:a,...i}=e,[l,u]=he({prop:o,defaultProp:r??!1,onChange:a,caller:nr});return g.jsx(mh,{scope:n,disabled:s,contentId:pe(),open:l,onOpenToggle:c.useCallback(()=>u(d=>!d),[u]),children:g.jsx(O.div,{"data-state":Zs(l),"data-disabled":s?"":void 0,...i,ref:t})})});jl.displayName=nr;var Ll="CollapsibleTrigger",Wl=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,...o}=e,r=qs(Ll,n);return g.jsx(O.button,{type:"button","aria-controls":r.open?r.contentId:void 0,"aria-expanded":r.open||!1,"data-state":Zs(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...o,ref:t,onClick:E(e.onClick,r.onOpenToggle)})});Wl.displayName=Ll;var Xs="CollapsibleContent",Vl=c.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=qs(Xs,e.__scopeCollapsible);return g.jsx(ge,{present:n||r.open,children:({present:s})=>g.jsx(hh,{...o,ref:t,present:s})})});Vl.displayName=Xs;var hh=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:r,...s}=e,a=qs(Xs,n),[i,l]=c.useState(o),u=c.useRef(null),d=H(t,u),f=c.useRef(0),p=f.current,m=c.useRef(0),h=m.current,v=a.open||i,y=c.useRef(v),w=c.useRef(void 0);return c.useEffect(()=>{const S=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(S)},[]),ye(()=>{const S=u.current;if(S){w.current=w.current||{transitionDuration:S.style.transitionDuration,animationName:S.style.animationName},S.style.transitionDuration="0s",S.style.animationName="none";const C=S.getBoundingClientRect();f.current=C.height,m.current=C.width,y.current||(S.style.transitionDuration=w.current.transitionDuration,S.style.animationName=w.current.animationName),l(o)}},[a.open,o]),g.jsx(O.div,{"data-state":Zs(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!v,...s,ref:d,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:v&&r})});function Zs(e){return e?"open":"closed"}var vh=jl,wh=Wl,yh=Vl,Bl=c.createContext(void 0),e0=e=>{const{dir:t,children:n}=e;return g.jsx(Bl.Provider,{value:t,children:n})};function Qe(e){const t=c.useContext(Bl);return e||t||"ltr"}var Je="Accordion",Ch=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Qs,Sh,bh]=Nt(Je),[or]=ve(Je,[bh,$l]),Js=$l(),Hl=c.forwardRef((e,t)=>{const{type:n,...o}=e,r=o,s=o;return g.jsx(Qs.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?g.jsx(Eh,{...s,ref:t}):g.jsx(Mh,{...r,ref:t})})});Hl.displayName=Je;var[Gl,xh]=or(Je),[zl,Rh]=or(Je,{collapsible:!1}),Mh=c.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},collapsible:s=!1,...a}=e,[i,l]=he({prop:n,defaultProp:o??"",onChange:r,caller:Je});return g.jsx(Gl,{scope:e.__scopeAccordion,value:c.useMemo(()=>i?[i]:[],[i]),onItemOpen:l,onItemClose:c.useCallback(()=>s&&l(""),[s,l]),children:g.jsx(zl,{scope:e.__scopeAccordion,collapsible:s,children:g.jsx(Yl,{...a,ref:t})})})}),Eh=c.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},...s}=e,[a,i]=he({prop:n,defaultProp:o??[],onChange:r,caller:Je}),l=c.useCallback(d=>i((f=[])=>[...f,d]),[i]),u=c.useCallback(d=>i((f=[])=>f.filter(p=>p!==d)),[i]);return g.jsx(Gl,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u,children:g.jsx(zl,{scope:e.__scopeAccordion,collapsible:!0,children:g.jsx(Yl,{...s,ref:t})})})}),[Ph,rr]=or(Je),Yl=c.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:o,dir:r,orientation:s="vertical",...a}=e,i=c.useRef(null),l=H(i,t),u=Sh(n),f=Qe(r)==="ltr",p=E(e.onKeyDown,m=>{if(!Ch.includes(m.key))return;const h=m.target,v=u().filter(I=>!I.ref.current?.disabled),y=v.findIndex(I=>I.ref.current===h),w=v.length;if(y===-1)return;m.preventDefault();let S=y;const C=0,b=w-1,x=()=>{S=y+1,S>b&&(S=C)},R=()=>{S=y-1,S<C&&(S=b)};switch(m.key){case"Home":S=C;break;case"End":S=b;break;case"ArrowRight":s==="horizontal"&&(f?x():R());break;case"ArrowDown":s==="vertical"&&x();break;case"ArrowLeft":s==="horizontal"&&(f?R():x());break;case"ArrowUp":s==="vertical"&&R();break}const M=S%w;v[M].ref.current?.focus()});return g.jsx(Ph,{scope:n,disabled:o,direction:r,orientation:s,children:g.jsx(Qs.Slot,{scope:n,children:g.jsx(O.div,{...a,"data-orientation":s,ref:l,onKeyDown:o?void 0:p})})})}),Fo="AccordionItem",[_h,ea]=or(Fo),Ul=c.forwardRef((e,t)=>{const{__scopeAccordion:n,value:o,...r}=e,s=rr(Fo,n),a=xh(Fo,n),i=Js(n),l=pe(),u=o&&a.value.includes(o)||!1,d=s.disabled||e.disabled;return g.jsx(_h,{scope:n,open:u,disabled:d,triggerId:l,children:g.jsx(vh,{"data-orientation":s.orientation,"data-state":Jl(u),...i,...r,ref:t,disabled:d,open:u,onOpenChange:f=>{f?a.onItemOpen(o):a.onItemClose(o)}})})});Ul.displayName=Fo;var Kl="AccordionHeader",ql=c.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=rr(Je,n),s=ea(Kl,n);return g.jsx(O.h3,{"data-orientation":r.orientation,"data-state":Jl(s.open),"data-disabled":s.disabled?"":void 0,...o,ref:t})});ql.displayName=Kl;var vs="AccordionTrigger",Xl=c.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=rr(Je,n),s=ea(vs,n),a=Rh(vs,n),i=Js(n);return g.jsx(Qs.ItemSlot,{scope:n,children:g.jsx(wh,{"aria-disabled":s.open&&!a.collapsible||void 0,"data-orientation":r.orientation,id:s.triggerId,...i,...o,ref:t})})});Xl.displayName=vs;var Zl="AccordionContent",Ql=c.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=rr(Je,n),s=ea(Zl,n),a=Js(n);return g.jsx(yh,{role:"region","aria-labelledby":s.triggerId,"data-orientation":r.orientation,...a,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Ql.displayName=Zl;function Jl(e){return e?"open":"closed"}var t0=Hl,n0=Ul,o0=ql,r0=Xl,s0=Ql;function de(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>((...n)=>t.current?.(...n)),[])}var Dh="DismissableLayer",ws="dismissableLayer.update",Ih="dismissableLayer.pointerDownOutside",Th="dismissableLayer.focusOutside",Ai,ta=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),kt=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...u}=e,d=c.useContext(ta),[f,p]=c.useState(null),m=f?.ownerDocument??globalThis?.document,[,h]=c.useState({}),v=H(t,p),y=Array.from(d.layers),[w]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),S=w?y.indexOf(w):-1,C=f?y.indexOf(f):-1,b=d.layersWithOutsidePointerEventsDisabled.size>0,x=C>=S,R=c.useRef(!1),M=Fh(D=>{s?.(D),i?.(D),D.defaultPrevented||l?.()},{ownerDocument:m,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:R,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:c.useCallback(D=>{if(!(D instanceof Node))return!1;const N=[...d.branches].some(k=>k.contains(D));return x&&!N},[d.branches,x])}),I=$h(D=>{if(o&&R.current)return;const N=D.target;[...d.branches].some(B=>B.contains(N))||(a?.(D),i?.(D),D.defaultPrevented||l?.())},m),_=f?C===y.length-1:!1,T=de(D=>{D.key==="Escape"&&(r?.(D),!D.defaultPrevented&&l&&(D.preventDefault(),l()))});return c.useEffect(()=>{if(_)return m.addEventListener("keydown",T,{capture:!0}),()=>m.removeEventListener("keydown",T,{capture:!0})},[m,_,T]),c.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ai=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Ni(),()=>{n&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=Ai))}},[f,m,n,d]),c.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Ni())},[f,d]),c.useEffect(()=>{const D=()=>h({});return document.addEventListener(ws,D),()=>document.removeEventListener(ws,D)},[]),g.jsx(O.div,{...u,ref:v,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:E(e.onFocusCapture,I.onFocusCapture),onBlurCapture:E(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:E(e.onPointerDownCapture,M.onPointerDownCapture)})});kt.displayName=Dh;var Oh="DismissableLayerBranch",Ah=c.forwardRef((e,t)=>{const n=c.useContext(ta),o=c.useRef(null),r=H(t,o);return c.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),g.jsx(O.div,{...e,ref:r})});Ah.displayName=Oh;function Nh(){const e=c.useContext(ta),[t,n]=c.useState(null);return c.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}var kh=()=>!0;function Fh(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:s,shouldHandlePointerDownOutside:a=kh}=t,i=de(e),l=c.useRef(!1),u=c.useRef(!1),d=c.useRef(new Map),f=c.useRef(()=>{});return c.useEffect(()=>{function p(){u.current=!1,r.current=!1,d.current.clear()}function m(){return Array.from(d.current.values()).some(Boolean)}function h(C){if(!u.current)return;const b=C.target;b instanceof Node&&[...s].some(R=>R.contains(b))||d.current.set(C.type,!0),C.type==="click"&&window.setTimeout(()=>{u.current&&f.current()},0)}function v(C){u.current&&d.current.set(C.type,!1)}const y=C=>{if(C.target&&!l.current){let b=function(){n.removeEventListener("click",f.current);const R=m();p(),R||ec(Ih,i,x,{discrete:!0})};if(!a(C.target)){n.removeEventListener("click",f.current),p(),l.current=!1;return}const x={originalEvent:C};u.current=!0,r.current=o&&C.button===0,d.current.clear(),!o||C.button!==0?b():(n.removeEventListener("click",f.current),f.current=b,n.addEventListener("click",f.current,{once:!0}))}else n.removeEventListener("click",f.current),p();l.current=!1},w=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const C of w)n.addEventListener(C,h,!0),n.addEventListener(C,v);const S=window.setTimeout(()=>{n.addEventListener("pointerdown",y)},0);return()=>{window.clearTimeout(S),n.removeEventListener("pointerdown",y),n.removeEventListener("click",f.current);for(const C of w)n.removeEventListener(C,h,!0),n.removeEventListener(C,v)}},[n,i,o,r,s,a]),{onPointerDownCapture:()=>l.current=!0}}function $h(e,t=globalThis?.document){const n=de(e),o=c.useRef(!1);return c.useEffect(()=>{const r=s=>{s.target&&!o.current&&ec(Th,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ni(){const e=new CustomEvent(ws);document.dispatchEvent(e)}function ec(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?ko(r,s):r.dispatchEvent(s)}var zr="focusScope.autoFocusOnMount",Yr="focusScope.autoFocusOnUnmount",ki={bubbles:!1,cancelable:!0},jh="FocusScope",Kn=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...a}=e,[i,l]=c.useState(null),u=de(r),d=de(s),f=c.useRef(null),p=H(t,l),m=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let v=function(C){if(m.paused||!i)return;const b=C.target;i.contains(b)?f.current=b:Mt(f.current,{select:!0})},y=function(C){if(m.paused||!i)return;const b=C.relatedTarget;b!==null&&(i.contains(b)||Mt(f.current,{select:!0}))},w=function(C){if(document.activeElement===document.body)for(const x of C)x.removedNodes.length>0&&Mt(i)};document.addEventListener("focusin",v),document.addEventListener("focusout",y);const S=new MutationObserver(w);return i&&S.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y),S.disconnect()}}},[o,i,m.paused]),c.useEffect(()=>{if(i){$i.add(m);const v=document.activeElement;if(!i.contains(v)){const w=new CustomEvent(zr,ki);i.addEventListener(zr,u),i.dispatchEvent(w),w.defaultPrevented||(Lh(Gh(tc(i)),{select:!0}),document.activeElement===v&&Mt(i))}return()=>{i.removeEventListener(zr,u),setTimeout(()=>{const w=new CustomEvent(Yr,ki);i.addEventListener(Yr,d),i.dispatchEvent(w),w.defaultPrevented||Mt(v??document.body,{select:!0}),i.removeEventListener(Yr,d),$i.remove(m)},0)}}},[i,u,d,m]);const h=c.useCallback(v=>{if(!n&&!o||m.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,w=document.activeElement;if(y&&w){const S=v.currentTarget,[C,b]=Wh(S);C&&b?!v.shiftKey&&w===b?(v.preventDefault(),n&&Mt(C,{select:!0})):v.shiftKey&&w===C&&(v.preventDefault(),n&&Mt(b,{select:!0})):w===S&&v.preventDefault()}},[n,o,m.paused]);return g.jsx(O.div,{tabIndex:-1,...a,ref:p,onKeyDown:h})});Kn.displayName=jh;function Lh(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Mt(o,{select:t}),document.activeElement!==n)return}function Wh(e){const t=tc(e),n=Fi(t,e),o=Fi(t.reverse(),e);return[n,o]}function tc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Fi(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const o of e)if(!(n?!o.checkVisibility({checkVisibilityCSS:!0}):Vh(o,{upTo:t})))return o}function Vh(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 Bh(e){return e instanceof HTMLInputElement&&"select"in e}function Mt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Bh(e)&&t&&e.select()}}var $i=Hh();function Hh(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ji(e,t),e.unshift(t)},remove(t){e=ji(e,t),e[0]?.resume()}}}function ji(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Gh(e){return e.filter(t=>t.tagName!=="A")}var zh="Portal",Yt=c.forwardRef((e,t)=>{const{container:n,...o}=e,[r,s]=c.useState(!1);ye(()=>s(!0),[]);const a=n||r&&globalThis?.document?.body;return a?yn.createPortal(g.jsx(O.div,{...o,ref:t}),a):null});Yt.displayName=zh;var yo=0,Jt=null;function sr(){c.useEffect(()=>{Jt||(Jt={start:Li(),end:Li()});const{start:e,end:t}=Jt;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),yo++,()=>{yo===1&&(Jt?.start.remove(),Jt?.end.remove(),Jt=null),yo=Math.max(0,yo-1)}},[])}function Li(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var st=function(){return st=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},st.apply(this,arguments)};function nc(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function Yh(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var Do="right-scroll-bar-position",Io="width-before-scroll-bar",Uh="with-scroll-bars-hidden",Kh="--removed-body-scroll-bar-size";function Ur(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function qh(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var Xh=typeof window<"u"?c.useLayoutEffect:c.useEffect,Wi=new WeakMap;function Zh(e,t){var n=qh(null,function(o){return e.forEach(function(r){return Ur(r,o)})});return Xh(function(){var o=Wi.get(n);if(o){var r=new Set(o),s=new Set(e),a=n.current;r.forEach(function(i){s.has(i)||Ur(i,null)}),s.forEach(function(i){r.has(i)||Ur(i,a)})}Wi.set(n,e)},[e]),n}function Qh(e){return e}function Jh(e,t){t===void 0&&(t=Qh);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,o);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(o=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){o=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var l=function(){var d=a;a=[],d.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return r}function ev(e){e===void 0&&(e={});var t=Jh(null);return t.options=st({async:!0,ssr:!1},e),t}var oc=function(e){var t=e.sideCar,n=nc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return c.createElement(o,st({},n))};oc.isSideCarExport=!0;function tv(e,t){return e.useMedium(t),oc}var rc=ev(),Kr=function(){},ar=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:Kr,onWheelCapture:Kr,onTouchMoveCapture:Kr}),r=o[0],s=o[1],a=e.forwardProps,i=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,v=e.inert,y=e.allowPinchZoom,w=e.as,S=w===void 0?"div":w,C=e.gapMode,b=nc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=p,R=Zh([n,t]),M=st(st({},b),r);return c.createElement(c.Fragment,null,d&&c.createElement(x,{sideCar:rc,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:v,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:C}),a?c.cloneElement(c.Children.only(i),st(st({},M),{ref:R})):c.createElement(S,st({},M,{className:l,ref:R}),i))});ar.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ar.classNames={fullWidth:Io,zeroRight:Do};var nv=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ov(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=nv();return t&&e.setAttribute("nonce",t),e}function rv(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function sv(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var av=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ov())&&(rv(t,n),sv(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},iv=function(){var e=av();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},sc=function(){var e=iv(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},lv={left:0,top:0,right:0,gap:0},qr=function(e){return parseInt(e||"",10)||0},cv=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[qr(n),qr(o),qr(r)]},uv=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return lv;var t=cv(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},dv=sc(),cn="data-scroll-locked",fv=function(e,t,n,o){var r=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
1
+ import{r as c,e as tr,j as g,W as V}from"./index-BivFj4xA.js";import{L as yn,H as Ks,M as Cn,O as Rm}from"./useFormField-BLbvmpme-CM4hze15.js";const Mm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Em=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase()),Di=e=>{const t=Em(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ol=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim(),Pm=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var _m={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"};const Dm=c.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:r="",children:s,iconNode:a,...i},l)=>c.createElement("svg",{ref:l,..._m,width:t,height:t,stroke:e,strokeWidth:o?Number(n)*24/Number(t):n,className:Ol("lucide",r),...!s&&!Pm(i)&&{"aria-hidden":"true"},...i},[...a.map(([u,d])=>c.createElement(u,d)),...Array.isArray(s)?s:[s]]));const Me=(e,t)=>{const n=c.forwardRef(({className:o,...r},s)=>c.createElement(Dm,{ref:s,iconNode:t,className:Ol(`lucide-${Mm(Di(e))}`,`lucide-${e}`,o),...r}));return n.displayName=Di(e),n};const Im=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],F_=Me("arrow-down",Im);const Tm=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],$_=Me("arrow-up",Tm);const Om=[["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"}]],j_=Me("calendar",Om);const Am=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],L_=Me("check",Am);const Nm=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],W_=Me("chevron-down",Nm);const km=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],V_=Me("chevron-left",km);const Fm=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],B_=Me("chevron-right",Fm);const $m=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],H_=Me("chevron-up",$m);const jm=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],G_=Me("chevrons-up-down",jm);const Lm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],z_=Me("circle",Lm);const Wm=[["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"}]],Y_=Me("ellipsis",Wm);const Vm=[["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"}]],U_=Me("eye-off",Vm);const Bm=[["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"}]],K_=Me("eye",Bm);const Hm=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],q_=Me("loader-circle",Hm);const Gm=[["path",{d:"M5 12h14",key:"1ays0h"}]],X_=Me("minus",Gm);const zm=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Z_=Me("search",zm);const Ym=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Q_=Me("x",Ym);function Ii(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dn(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Ii(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():Ii(e[r],null)}}}}function H(...e){return c.useCallback(dn(...e),e)}function _t(e){const t=c.forwardRef((n,o)=>{let{children:r,...s}=n,a=null,i=!1;const l=[];Ti(r)&&typeof wo=="function"&&(r=wo(r._payload)),c.Children.forEach(r,p=>{if(Zm(p)){i=!0;const m=p;let h="child"in m.props?m.props.child:m.props.children;Ti(h)&&typeof wo=="function"&&(h=wo(h._payload)),a=Km(m,h),l.push(a?.props?.children)}else l.push(p)}),a?a=c.cloneElement(a,void 0,l):!i&&c.Children.count(r)===1&&c.isValidElement(r)&&(a=r);const u=a?Xm(a):void 0,d=H(o,u);if(!a){if(r||r===0)throw new Error(i?th(e):eh(e));return r}const f=qm(s,a.props??{});return a.type!==c.Fragment&&(f.ref=o?d:u),c.cloneElement(a,f)});return t.displayName=`${e}.Slot`,t}var J_=_t("Slot"),Al=Symbol.for("radix.slottable");function Um(e){const t=n=>"child"in n?n.children(n.child):n.children;return t.displayName=`${e}.Slottable`,t.__radixId=Al,t}var Km=(e,t)=>{if("child"in e.props){const n=e.props.child;return c.isValidElement(n)?c.cloneElement(n,void 0,e.props.children(n.props.children)):null}return c.isValidElement(t)?t:null};function qm(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...i)=>{const l=s(...i);return r(...i),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Xm(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Zm(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Al}var Qm=Symbol.for("react.lazy");function Ti(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Qm&&"_payload"in e&&Jm(e._payload)}function Jm(e){return typeof e=="object"&&e!==null&&"then"in e}var eh=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,th=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,wo=tr[" use ".trim().toString()],nh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],O=nh.reduce((e,t)=>{const n=_t(`Primitive.${t}`),o=c.forwardRef((r,s)=>{const{asChild:a,...i}=r,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...i,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function ko(e,t){e&&yn.flushSync(()=>e.dispatchEvent(t))}var Nl=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),oh="VisuallyHidden",kl=c.forwardRef((e,t)=>g.jsx(O.span,{...e,ref:t,style:{...Nl,...e.style}}));kl.displayName=oh;var Fl=kl;function ve(e,t=[]){let n=[];function o(s,a){const i=c.createContext(a);i.displayName=s+"Context";const l=n.length;n=[...n,a];const u=f=>{const{scope:p,children:m,...h}=f,v=p?.[e]?.[l]||i,y=c.useMemo(()=>h,Object.values(h));return g.jsx(v.Provider,{value:y,children:m})};u.displayName=s+"Provider";function d(f,p,m={}){const{optional:h=!1}=m,v=p?.[e]?.[l]||i,y=c.useContext(v);if(y)return y;if(a!==void 0)return a;if(!h)throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const r=()=>{const s=n.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return r.scopeName=e,[o,rh(r,...t)]}function rh(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const a=o.reduce((i,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...i,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Nt(e){const t=e+"CollectionProvider",[n,o]=ve(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=v=>{const{scope:y,children:w}=v,S=c.useRef(null),C=c.useRef(new Map).current;return g.jsx(r,{scope:y,itemMap:C,collectionRef:S,children:w})};a.displayName=t;const i=e+"CollectionSlot",l=_t(i),u=c.forwardRef((v,y)=>{const{scope:w,children:S}=v,C=s(i,w),b=H(y,C.collectionRef);return g.jsx(l,{ref:b,children:S})});u.displayName=i;const d=e+"CollectionItemSlot",f="data-radix-collection-item",p=_t(d),m=c.forwardRef((v,y)=>{const{scope:w,children:S,...C}=v,b=c.useRef(null),x=H(y,b),R=s(d,w);return c.useEffect(()=>(R.itemMap.set(b,{ref:b,...C}),()=>void R.itemMap.delete(b))),g.jsx(p,{[f]:"",ref:x,children:S})});m.displayName=d;function h(v){const y=s(e+"CollectionConsumer",v);return c.useCallback(()=>{const S=y.collectionRef.current;if(!S)return[];const C=Array.from(S.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((R,M)=>C.indexOf(R.ref.current)-C.indexOf(M.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:a,Slot:u,ItemSlot:m},h,o]}function E(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)}}var ye=globalThis?.document?c.useLayoutEffect:()=>{},sh=tr[" useInsertionEffect ".trim().toString()]||ye;function he({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,a]=ah({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:r;{const d=c.useRef(e!==void 0);c.useEffect(()=>{const f=d.current;f!==i&&console.warn(`${o} is changing from ${f?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=i},[i,o])}const u=c.useCallback(d=>{if(i){const f=ih(d)?d(e):d;f!==e&&a.current?.(f)}else s(d)},[i,e,s,a]);return[l,u]}function ah({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),s=c.useRef(t);return sh(()=>{s.current=t},[t]),c.useEffect(()=>{r.current!==n&&(s.current?.(n),r.current=n)},[n,r]),[n,o,s]}function ih(e){return typeof e=="function"}function lh(e,t){return c.useReducer((n,o)=>t[n][o]??n,e)}var ge=e=>{const{present:t,children:n}=e,o=ch(t),r=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),s=uh(o.ref,dh(r));return typeof n=="function"||o.isPresent?c.cloneElement(r,{ref:s}):null};ge.displayName="Presence";function ch(e){const[t,n]=c.useState(),o=c.useRef(null),r=c.useRef(e),s=c.useRef("none"),a=c.useRef(void 0),i=e?"mounted":"unmounted",[l,u]=lh(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{l==="mounted"?(s.current=a.current??Dn(o.current),a.current=void 0):s.current="none"},[l]),ye(()=>{const d=o.current,f=r.current;if(f!==e){const m=s.current,h=Dn(d);e?(a.current=h,u("MOUNT")):h==="none"||d?.display==="none"?u("UNMOUNT"):u(f&&m!==h?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),ye(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=h=>{const y=Dn(o.current).includes(CSS.escape(h.animationName));if(h.target===t&&y&&(u("ANIMATION_END"),!r.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},m=h=>{h.target===t&&(s.current=Dn(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:c.useCallback(d=>{if(d){const f=getComputedStyle(d);o.current=f,a.current=Dn(f)}else o.current=null;n(d)},[])}}function Oi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function uh(...e){const t=c.useRef(e);return t.current=e,c.useCallback(n=>{const o=t.current;let r=!1;const s=o.map(a=>{const i=Oi(a,n);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let a=0;a<s.length;a++){const i=s[a];typeof i=="function"?i():Oi(o[a],null)}}},[])}function Dn(e){return e?.animationName||"none"}function dh(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fh=tr[" useId ".trim().toString()]||(()=>{}),ph=0;function pe(e){const[t,n]=c.useState(fh());return ye(()=>{n(o=>o??String(ph++))},[e]),e||(t?`radix-${t}`:"")}var nr="Collapsible",[gh,$l]=ve(nr),[mh,qs]=gh(nr),jl=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:o,defaultOpen:r,disabled:s,onOpenChange:a,...i}=e,[l,u]=he({prop:o,defaultProp:r??!1,onChange:a,caller:nr});return g.jsx(mh,{scope:n,disabled:s,contentId:pe(),open:l,onOpenToggle:c.useCallback(()=>u(d=>!d),[u]),children:g.jsx(O.div,{"data-state":Zs(l),"data-disabled":s?"":void 0,...i,ref:t})})});jl.displayName=nr;var Ll="CollapsibleTrigger",Wl=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,...o}=e,r=qs(Ll,n);return g.jsx(O.button,{type:"button","aria-controls":r.open?r.contentId:void 0,"aria-expanded":r.open||!1,"data-state":Zs(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...o,ref:t,onClick:E(e.onClick,r.onOpenToggle)})});Wl.displayName=Ll;var Xs="CollapsibleContent",Vl=c.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=qs(Xs,e.__scopeCollapsible);return g.jsx(ge,{present:n||r.open,children:({present:s})=>g.jsx(hh,{...o,ref:t,present:s})})});Vl.displayName=Xs;var hh=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:r,...s}=e,a=qs(Xs,n),[i,l]=c.useState(o),u=c.useRef(null),d=H(t,u),f=c.useRef(0),p=f.current,m=c.useRef(0),h=m.current,v=a.open||i,y=c.useRef(v),w=c.useRef(void 0);return c.useEffect(()=>{const S=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(S)},[]),ye(()=>{const S=u.current;if(S){w.current=w.current||{transitionDuration:S.style.transitionDuration,animationName:S.style.animationName},S.style.transitionDuration="0s",S.style.animationName="none";const C=S.getBoundingClientRect();f.current=C.height,m.current=C.width,y.current||(S.style.transitionDuration=w.current.transitionDuration,S.style.animationName=w.current.animationName),l(o)}},[a.open,o]),g.jsx(O.div,{"data-state":Zs(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!v,...s,ref:d,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:v&&r})});function Zs(e){return e?"open":"closed"}var vh=jl,wh=Wl,yh=Vl,Bl=c.createContext(void 0),e0=e=>{const{dir:t,children:n}=e;return g.jsx(Bl.Provider,{value:t,children:n})};function Qe(e){const t=c.useContext(Bl);return e||t||"ltr"}var Je="Accordion",Ch=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Qs,Sh,bh]=Nt(Je),[or]=ve(Je,[bh,$l]),Js=$l(),Hl=c.forwardRef((e,t)=>{const{type:n,...o}=e,r=o,s=o;return g.jsx(Qs.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?g.jsx(Eh,{...s,ref:t}):g.jsx(Mh,{...r,ref:t})})});Hl.displayName=Je;var[Gl,xh]=or(Je),[zl,Rh]=or(Je,{collapsible:!1}),Mh=c.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},collapsible:s=!1,...a}=e,[i,l]=he({prop:n,defaultProp:o??"",onChange:r,caller:Je});return g.jsx(Gl,{scope:e.__scopeAccordion,value:c.useMemo(()=>i?[i]:[],[i]),onItemOpen:l,onItemClose:c.useCallback(()=>s&&l(""),[s,l]),children:g.jsx(zl,{scope:e.__scopeAccordion,collapsible:s,children:g.jsx(Yl,{...a,ref:t})})})}),Eh=c.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},...s}=e,[a,i]=he({prop:n,defaultProp:o??[],onChange:r,caller:Je}),l=c.useCallback(d=>i((f=[])=>[...f,d]),[i]),u=c.useCallback(d=>i((f=[])=>f.filter(p=>p!==d)),[i]);return g.jsx(Gl,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u,children:g.jsx(zl,{scope:e.__scopeAccordion,collapsible:!0,children:g.jsx(Yl,{...s,ref:t})})})}),[Ph,rr]=or(Je),Yl=c.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:o,dir:r,orientation:s="vertical",...a}=e,i=c.useRef(null),l=H(i,t),u=Sh(n),f=Qe(r)==="ltr",p=E(e.onKeyDown,m=>{if(!Ch.includes(m.key))return;const h=m.target,v=u().filter(I=>!I.ref.current?.disabled),y=v.findIndex(I=>I.ref.current===h),w=v.length;if(y===-1)return;m.preventDefault();let S=y;const C=0,b=w-1,x=()=>{S=y+1,S>b&&(S=C)},R=()=>{S=y-1,S<C&&(S=b)};switch(m.key){case"Home":S=C;break;case"End":S=b;break;case"ArrowRight":s==="horizontal"&&(f?x():R());break;case"ArrowDown":s==="vertical"&&x();break;case"ArrowLeft":s==="horizontal"&&(f?R():x());break;case"ArrowUp":s==="vertical"&&R();break}const M=S%w;v[M].ref.current?.focus()});return g.jsx(Ph,{scope:n,disabled:o,direction:r,orientation:s,children:g.jsx(Qs.Slot,{scope:n,children:g.jsx(O.div,{...a,"data-orientation":s,ref:l,onKeyDown:o?void 0:p})})})}),Fo="AccordionItem",[_h,ea]=or(Fo),Ul=c.forwardRef((e,t)=>{const{__scopeAccordion:n,value:o,...r}=e,s=rr(Fo,n),a=xh(Fo,n),i=Js(n),l=pe(),u=o&&a.value.includes(o)||!1,d=s.disabled||e.disabled;return g.jsx(_h,{scope:n,open:u,disabled:d,triggerId:l,children:g.jsx(vh,{"data-orientation":s.orientation,"data-state":Jl(u),...i,...r,ref:t,disabled:d,open:u,onOpenChange:f=>{f?a.onItemOpen(o):a.onItemClose(o)}})})});Ul.displayName=Fo;var Kl="AccordionHeader",ql=c.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=rr(Je,n),s=ea(Kl,n);return g.jsx(O.h3,{"data-orientation":r.orientation,"data-state":Jl(s.open),"data-disabled":s.disabled?"":void 0,...o,ref:t})});ql.displayName=Kl;var vs="AccordionTrigger",Xl=c.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=rr(Je,n),s=ea(vs,n),a=Rh(vs,n),i=Js(n);return g.jsx(Qs.ItemSlot,{scope:n,children:g.jsx(wh,{"aria-disabled":s.open&&!a.collapsible||void 0,"data-orientation":r.orientation,id:s.triggerId,...i,...o,ref:t})})});Xl.displayName=vs;var Zl="AccordionContent",Ql=c.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=rr(Je,n),s=ea(Zl,n),a=Js(n);return g.jsx(yh,{role:"region","aria-labelledby":s.triggerId,"data-orientation":r.orientation,...a,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Ql.displayName=Zl;function Jl(e){return e?"open":"closed"}var t0=Hl,n0=Ul,o0=ql,r0=Xl,s0=Ql;function de(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>((...n)=>t.current?.(...n)),[])}var Dh="DismissableLayer",ws="dismissableLayer.update",Ih="dismissableLayer.pointerDownOutside",Th="dismissableLayer.focusOutside",Ai,ta=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),kt=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...u}=e,d=c.useContext(ta),[f,p]=c.useState(null),m=f?.ownerDocument??globalThis?.document,[,h]=c.useState({}),v=H(t,p),y=Array.from(d.layers),[w]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),S=w?y.indexOf(w):-1,C=f?y.indexOf(f):-1,b=d.layersWithOutsidePointerEventsDisabled.size>0,x=C>=S,R=c.useRef(!1),M=Fh(D=>{s?.(D),i?.(D),D.defaultPrevented||l?.()},{ownerDocument:m,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:R,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:c.useCallback(D=>{if(!(D instanceof Node))return!1;const N=[...d.branches].some(k=>k.contains(D));return x&&!N},[d.branches,x])}),I=$h(D=>{if(o&&R.current)return;const N=D.target;[...d.branches].some(B=>B.contains(N))||(a?.(D),i?.(D),D.defaultPrevented||l?.())},m),_=f?C===y.length-1:!1,T=de(D=>{D.key==="Escape"&&(r?.(D),!D.defaultPrevented&&l&&(D.preventDefault(),l()))});return c.useEffect(()=>{if(_)return m.addEventListener("keydown",T,{capture:!0}),()=>m.removeEventListener("keydown",T,{capture:!0})},[m,_,T]),c.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ai=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Ni(),()=>{n&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=Ai))}},[f,m,n,d]),c.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Ni())},[f,d]),c.useEffect(()=>{const D=()=>h({});return document.addEventListener(ws,D),()=>document.removeEventListener(ws,D)},[]),g.jsx(O.div,{...u,ref:v,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:E(e.onFocusCapture,I.onFocusCapture),onBlurCapture:E(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:E(e.onPointerDownCapture,M.onPointerDownCapture)})});kt.displayName=Dh;var Oh="DismissableLayerBranch",Ah=c.forwardRef((e,t)=>{const n=c.useContext(ta),o=c.useRef(null),r=H(t,o);return c.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),g.jsx(O.div,{...e,ref:r})});Ah.displayName=Oh;function Nh(){const e=c.useContext(ta),[t,n]=c.useState(null);return c.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}var kh=()=>!0;function Fh(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:s,shouldHandlePointerDownOutside:a=kh}=t,i=de(e),l=c.useRef(!1),u=c.useRef(!1),d=c.useRef(new Map),f=c.useRef(()=>{});return c.useEffect(()=>{function p(){u.current=!1,r.current=!1,d.current.clear()}function m(){return Array.from(d.current.values()).some(Boolean)}function h(C){if(!u.current)return;const b=C.target;b instanceof Node&&[...s].some(R=>R.contains(b))||d.current.set(C.type,!0),C.type==="click"&&window.setTimeout(()=>{u.current&&f.current()},0)}function v(C){u.current&&d.current.set(C.type,!1)}const y=C=>{if(C.target&&!l.current){let b=function(){n.removeEventListener("click",f.current);const R=m();p(),R||ec(Ih,i,x,{discrete:!0})};if(!a(C.target)){n.removeEventListener("click",f.current),p(),l.current=!1;return}const x={originalEvent:C};u.current=!0,r.current=o&&C.button===0,d.current.clear(),!o||C.button!==0?b():(n.removeEventListener("click",f.current),f.current=b,n.addEventListener("click",f.current,{once:!0}))}else n.removeEventListener("click",f.current),p();l.current=!1},w=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const C of w)n.addEventListener(C,h,!0),n.addEventListener(C,v);const S=window.setTimeout(()=>{n.addEventListener("pointerdown",y)},0);return()=>{window.clearTimeout(S),n.removeEventListener("pointerdown",y),n.removeEventListener("click",f.current);for(const C of w)n.removeEventListener(C,h,!0),n.removeEventListener(C,v)}},[n,i,o,r,s,a]),{onPointerDownCapture:()=>l.current=!0}}function $h(e,t=globalThis?.document){const n=de(e),o=c.useRef(!1);return c.useEffect(()=>{const r=s=>{s.target&&!o.current&&ec(Th,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Ni(){const e=new CustomEvent(ws);document.dispatchEvent(e)}function ec(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?ko(r,s):r.dispatchEvent(s)}var zr="focusScope.autoFocusOnMount",Yr="focusScope.autoFocusOnUnmount",ki={bubbles:!1,cancelable:!0},jh="FocusScope",Kn=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...a}=e,[i,l]=c.useState(null),u=de(r),d=de(s),f=c.useRef(null),p=H(t,l),m=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let v=function(C){if(m.paused||!i)return;const b=C.target;i.contains(b)?f.current=b:Mt(f.current,{select:!0})},y=function(C){if(m.paused||!i)return;const b=C.relatedTarget;b!==null&&(i.contains(b)||Mt(f.current,{select:!0}))},w=function(C){if(document.activeElement===document.body)for(const x of C)x.removedNodes.length>0&&Mt(i)};document.addEventListener("focusin",v),document.addEventListener("focusout",y);const S=new MutationObserver(w);return i&&S.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y),S.disconnect()}}},[o,i,m.paused]),c.useEffect(()=>{if(i){$i.add(m);const v=document.activeElement;if(!i.contains(v)){const w=new CustomEvent(zr,ki);i.addEventListener(zr,u),i.dispatchEvent(w),w.defaultPrevented||(Lh(Gh(tc(i)),{select:!0}),document.activeElement===v&&Mt(i))}return()=>{i.removeEventListener(zr,u),setTimeout(()=>{const w=new CustomEvent(Yr,ki);i.addEventListener(Yr,d),i.dispatchEvent(w),w.defaultPrevented||Mt(v??document.body,{select:!0}),i.removeEventListener(Yr,d),$i.remove(m)},0)}}},[i,u,d,m]);const h=c.useCallback(v=>{if(!n&&!o||m.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,w=document.activeElement;if(y&&w){const S=v.currentTarget,[C,b]=Wh(S);C&&b?!v.shiftKey&&w===b?(v.preventDefault(),n&&Mt(C,{select:!0})):v.shiftKey&&w===C&&(v.preventDefault(),n&&Mt(b,{select:!0})):w===S&&v.preventDefault()}},[n,o,m.paused]);return g.jsx(O.div,{tabIndex:-1,...a,ref:p,onKeyDown:h})});Kn.displayName=jh;function Lh(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Mt(o,{select:t}),document.activeElement!==n)return}function Wh(e){const t=tc(e),n=Fi(t,e),o=Fi(t.reverse(),e);return[n,o]}function tc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Fi(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const o of e)if(!(n?!o.checkVisibility({checkVisibilityCSS:!0}):Vh(o,{upTo:t})))return o}function Vh(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 Bh(e){return e instanceof HTMLInputElement&&"select"in e}function Mt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Bh(e)&&t&&e.select()}}var $i=Hh();function Hh(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ji(e,t),e.unshift(t)},remove(t){e=ji(e,t),e[0]?.resume()}}}function ji(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Gh(e){return e.filter(t=>t.tagName!=="A")}var zh="Portal",Yt=c.forwardRef((e,t)=>{const{container:n,...o}=e,[r,s]=c.useState(!1);ye(()=>s(!0),[]);const a=n||r&&globalThis?.document?.body;return a?yn.createPortal(g.jsx(O.div,{...o,ref:t}),a):null});Yt.displayName=zh;var yo=0,Jt=null;function sr(){c.useEffect(()=>{Jt||(Jt={start:Li(),end:Li()});const{start:e,end:t}=Jt;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),yo++,()=>{yo===1&&(Jt?.start.remove(),Jt?.end.remove(),Jt=null),yo=Math.max(0,yo-1)}},[])}function Li(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var st=function(){return st=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},st.apply(this,arguments)};function nc(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function Yh(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var Do="right-scroll-bar-position",Io="width-before-scroll-bar",Uh="with-scroll-bars-hidden",Kh="--removed-body-scroll-bar-size";function Ur(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function qh(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var Xh=typeof window<"u"?c.useLayoutEffect:c.useEffect,Wi=new WeakMap;function Zh(e,t){var n=qh(null,function(o){return e.forEach(function(r){return Ur(r,o)})});return Xh(function(){var o=Wi.get(n);if(o){var r=new Set(o),s=new Set(e),a=n.current;r.forEach(function(i){s.has(i)||Ur(i,null)}),s.forEach(function(i){r.has(i)||Ur(i,a)})}Wi.set(n,e)},[e]),n}function Qh(e){return e}function Jh(e,t){t===void 0&&(t=Qh);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,o);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(o=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){o=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var l=function(){var d=a;a=[],d.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return r}function ev(e){e===void 0&&(e={});var t=Jh(null);return t.options=st({async:!0,ssr:!1},e),t}var oc=function(e){var t=e.sideCar,n=nc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return c.createElement(o,st({},n))};oc.isSideCarExport=!0;function tv(e,t){return e.useMedium(t),oc}var rc=ev(),Kr=function(){},ar=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:Kr,onWheelCapture:Kr,onTouchMoveCapture:Kr}),r=o[0],s=o[1],a=e.forwardProps,i=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,v=e.inert,y=e.allowPinchZoom,w=e.as,S=w===void 0?"div":w,C=e.gapMode,b=nc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=p,R=Zh([n,t]),M=st(st({},b),r);return c.createElement(c.Fragment,null,d&&c.createElement(x,{sideCar:rc,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:v,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:C}),a?c.cloneElement(c.Children.only(i),st(st({},M),{ref:R})):c.createElement(S,st({},M,{className:l,ref:R}),i))});ar.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ar.classNames={fullWidth:Io,zeroRight:Do};var nv=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ov(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=nv();return t&&e.setAttribute("nonce",t),e}function rv(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function sv(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var av=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ov())&&(rv(t,n),sv(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},iv=function(){var e=av();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},sc=function(){var e=iv(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},lv={left:0,top:0,right:0,gap:0},qr=function(e){return parseInt(e||"",10)||0},cv=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[qr(n),qr(o),qr(r)]},uv=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return lv;var t=cv(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},dv=sc(),cn="data-scroll-locked",fv=function(e,t,n,o){var r=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
2
2
  .`.concat(Uh,` {
3
3
  overflow: hidden `).concat(o,`;
4
4
  padding-right: `).concat(i,"px ").concat(o,`;