reshaped 3.10.0-canary.7 → 3.10.0-canary.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(I,i){typeof exports=="object"&&typeof module!="undefined"?i(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],i):(I=typeof globalThis!="undefined"?globalThis:I||self,i(I.Reshaped={},I["react/jsx-runtime"],I.React,I.ReactDOM))})(this,(function(I,i,c,He){"use strict";var Ld=Object.defineProperty,Dd=Object.defineProperties;var Pd=Object.getOwnPropertyDescriptors;var Qo=Object.getOwnPropertySymbols;var ql=Object.prototype.hasOwnProperty,Ul=Object.prototype.propertyIsEnumerable;var Yl=I=>{throw TypeError(I)};var dn=(I,i,c)=>i in I?Ld(I,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):I[i]=c,p=(I,i)=>{for(var c in i||(i={}))ql.call(i,c)&&dn(I,c,i[c]);if(Qo)for(var c of Qo(i))Ul.call(i,c)&&dn(I,c,i[c]);return I},z=(I,i)=>Dd(I,Pd(i));var pe=(I,i)=>{var c={};for(var He in I)ql.call(I,He)&&i.indexOf(He)<0&&(c[He]=I[He]);if(I!=null&&Qo)for(var He of Qo(I))i.indexOf(He)<0&&Ul.call(I,He)&&(c[He]=I[He]);return c};var be=(I,i,c)=>dn(I,typeof i!="symbol"?i+"":i,c),Kl=(I,i,c)=>i.has(I)||Yl("Cannot "+c);var V=(I,i,c)=>(Kl(I,i,"read from private field"),c?c.call(I):i.get(I)),Se=(I,i,c)=>i.has(I)?Yl("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(I):i.set(I,c),Ue=(I,i,c,He)=>(Kl(I,i,"write to private field"),He?He.call(I,c):i.set(I,c),c);var xt,Ot,Je,wt,gt,Uo,Yo,Ko,Go,Hl,Mt,we,bt,Wt,qt,Ut,go,Xo,bo,po;const un=e=>{const{el:t,iteration:o}=e,n=(t&&window.getComputedStyle(t)).overflowY,s=n.includes("scroll")||n.includes("auto");return t.parentElement?s&&t.scrollHeight>t.clientHeight?t:un({el:t.parentElement,iteration:o+1}):null},_n=e=>un(z(p({},e),{iteration:0})),Gl=(e,t)=>{let o=e.parentElement;for(;o;){if(t(o))return o;o=o.parentElement}return null},Kt=e=>{const t=e==null?void 0:e.getRootNode();return t instanceof ShadowRoot?t:null},Ro=e=>{let t=null,o=null;return function(...r){o=r,t===null&&(t=requestAnimationFrame(()=>{t=null,e(...o)}))}},mn=()=>{const e=document.documentElement,t=e.dir;return t==="rtl"||t==="ltr"?t==="rtl":window.getComputedStyle(e).direction==="rtl"},hn={left:"0",top:"0",position:"absolute",visibility:"hidden",animation:"none",transition:"none"},Xl=e=>{const{position:t,styles:o,fallbackAdjustLayout:r,fallbackMinHeight:n,width:s,flyoutBounds:l,containerBounds:a,triggerBounds:d}=e,{width:_,height:m}=l,{width:u,height:h,top:g,left:b}=a,f=!!t.match(/^(start|end)/);let y=o.top,x=o.left,v=o.bottom,w=o.right,C=null,k=null;if(r){const E=()=>({top:g+8-y,bottom:y+m+8-g-h,left:b+8-x,right:x+_+8-b-u}),N=E();f?N.top>0?(y=g+8,v!==null&&(v=v-N.top)):N.bottom>0&&(y=y-N.bottom):N.left>0?(x=8+b,w!==null&&(w=w-N.left)):N.right>0&&(x=x-N.right);const S=E();S.top>0?(C=Math.max(parseInt(n!=null?n:"0"),m-S.top),y=y+(m-C)):S.bottom>0&&(C=Math.max(parseInt(n!=null?n:"0"),m-S.bottom),v!==null&&(v=v+(m-C)))}return s==="100%"?(x=8,k=window.innerWidth-16):s==="trigger"&&(k=d.width),{position:t,styles:{left:x,right:w,top:y,bottom:v,height:C,width:k}}},fn=(e,t)=>Math.floor(e/2-t/2),Zl=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,Jl=e=>{const{triggerBounds:t,flyoutBounds:o,position:r,rtl:n,contentGap:s=0,contentShift:l=0}=e,a=n?Zl(r):r;let d=0,_=0,m=null,u=null;const{width:h,height:g}=o,{width:b,height:f,left:y,top:x,right:v,bottom:w}=t,C=y,k=window.innerWidth-v,E=x,N=window.innerHeight-w;switch(a){case"start":case"start-top":case"start-bottom":d=C-h-s,u=k+b+s;break;case"end":case"end-top":case"end-bottom":d=C+b+s;break;case"bottom":case"top":d=C+fn(b,h)+l;break;case"top-start":case"bottom-start":d=C+l;break;case"top-end":case"bottom-end":d=C+b-h+l,u=k-l;break}switch(a){case"top":case"top-start":case"top-end":_=E-g-s,m=N+f+s;break;case"bottom":case"bottom-start":case"bottom-end":_=E+f+s;break;case"start":case"end":_=E+fn(f,g)+l;break;case"start-top":case"end-top":_=E+l;break;case"start-bottom":case"end-bottom":_=E+f-g+l,m=N-l;break}return{position:a,styles:{top:_,left:d,bottom:m,right:u}}},gn={top:["top-start","top-end","top"],bottom:["bottom-start","bottom-end","bottom"],start:["start-top","start-bottom","start"],end:["end-top","end-bottom","end"]},Ql={top:["bottom","start","end"],bottom:["top","end","start"],start:["end","top","bottom"],end:["start","bottom","top"]},Rl=(e,t)=>{const o=new Set([e]),r=e.split("-"),[n]=r,s=gn[n],l=s.indexOf(e),a=[l];return s.forEach((d,_)=>{_!==l&&a.push(_)}),[n,...Ql[n]].forEach(d=>{const _=gn[d];a.forEach(m=>{const u=_[m];(t==null?void 0:t.indexOf(u))!==-1&&o.add(u)})}),Array.from(o)},ea=e=>"width"in e&&e.width!==void 0?e:z(p({},e),{width:0,height:0,left:e.x,right:e.x,top:e.y,bottom:e.y,toJSON:()=>{}}),ta=e=>{const{flyoutBounds:t,containerBounds:o}=e,r=t.left,n=t.top,s=o.left,l=o.top;return!(r<s+8||n<l+8||r+t.width>s+o.width-8||n+t.height>l+o.height-8)},oa=e=>{var $,M;const{trigger:t,content:o,triggerCoordinates:r,container:n,contentShift:s=0,contentGap:l=0,position:a,fallbackPositions:d,fallbackAdjustLayout:_,fallbackMinHeight:m,width:u,lastUsedPosition:h}=e,g=mn(),b=o.cloneNode(!0),f=r||(t==null?void 0:t.getBoundingClientRect()),y=($=n==null?void 0:n.getBoundingClientRect())!=null?$:{width:window.innerWidth,height:window.innerHeight,left:0,top:0};if(b.style.cssText="",!f)throw new Error("Trigger bounds are required");const x=ea(f);Object.keys(hn).forEach(D=>{const P=D,B=hn[P];B&&(b.style[P]=B.toString())});const v=(M=t&&Kt(t))!=null?M:document.body;v.appendChild(b);const w=(D,P)=>{(P==null?void 0:P.width)==="100%"?b.style.width="calc(100% - 16px)":(P==null?void 0:P.width)==="trigger"?b.style.width=`${x.width}px`:u?b.style.width=u:b.style.width="";const B=b.getBoundingClientRect(),L=Jl({triggerBounds:x,flyoutBounds:B,position:D,contentGap:l,contentShift:s,rtl:g});return Xl(z(p({},L),{fallbackAdjustLayout:_,fallbackMinHeight:m,width:P==null?void 0:P.width,flyoutBounds:B,containerBounds:y,triggerBounds:x}))},C=D=>{var B,L;const P={left:D.styles.left,top:D.styles.top,height:(B=D.styles.height)!=null?B:Math.ceil(b.clientHeight),width:(L=D.styles.width)!=null?L:Math.ceil(b.clientWidth)};return ta({flyoutBounds:P,containerBounds:y})};let k=null;const E=Rl(a,d);E.some(D=>{const P=w(D,{width:u}),B=C(P);return B&&(k=P),B}),k||["top","bottom"].filter(P=>E.includes(P)).some(P=>{const B=w(P,{width:"100%"}),L=C(B);return L&&(k=B),L}),k||(k=w(h!=null?h:a,{width:u})),v.removeChild(b);const{styles:N}=k,S=(N.right!==null?-N.right:N.left)+window.scrollX,T=(N.bottom!==null?-N.bottom:N.top)+window.scrollY,j={left:N.right===null?"0px":void 0,right:N.right===null?void 0:"0px",top:N.bottom===null?"0px":void 0,bottom:N.bottom===null?void 0:"0px",height:N.height!==null?`${N.height}px`:void 0,width:N.width!==null?`${N.width}px`:u!=null?u:void 0,transform:`translate(${S}px, ${T}px)`};return Object.entries(j).forEach(([D,P])=>{o.style.removeProperty(D),P&&o.style.setProperty(D,P)}),{position:k.position}};let ra=(Hl=class{constructor(t){Se(this,xt,!1);Se(this,Ot,null);Se(this,Je);Se(this,wt,{});Se(this,gt,()=>{const t=oa(z(p({},V(this,Je)),{lastUsedPosition:V(this,Ot)}));return Ue(this,Ot,t.position),t});Se(this,Uo,()=>{const{trigger:t,onDeactivate:o}=V(this,Je);if(!t)return;const r=_n({el:t}),n=r||window,s=Ro(()=>{if(!V(this,xt))return;if(!r){V(this,gt).call(this);return}const l=t.getBoundingClientRect(),a=r.getBoundingClientRect();l.top<a.top||l.left<a.left||l.right>a.right||l.bottom>a.bottom?o():V(this,gt).call(this)});n.addEventListener("scroll",s,{passive:!0}),V(this,wt).scroll=()=>n.removeEventListener("scroll",s)});Se(this,Yo,()=>{const t=new MutationObserver(()=>{V(this,xt)&&V(this,gt).call(this)});t.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),V(this,wt).rtl=()=>t.disconnect()});Se(this,Ko,()=>{const t=()=>{V(this,xt)&&V(this,gt).call(this)},o=new ResizeObserver(t);window.addEventListener("resize",t),V(this,Je).trigger&&o.observe(V(this,Je).trigger),V(this,Je).content&&o.observe(V(this,Je).content),V(this,wt).resize=()=>{o.disconnect(),window.removeEventListener("resize",t)}});Se(this,Go,()=>{Object.values(V(this,wt)).forEach(t=>t()),Ue(this,wt,{})});be(this,"update",t=>(t&&Ue(this,Je,p(p({},V(this,Je)),t)),V(this,gt).call(this)));be(this,"activate",()=>{const t=V(this,gt).call(this);return V(this,Uo).call(this),V(this,Yo).call(this),V(this,Ko).call(this),Ue(this,xt,!0),t});be(this,"deactivate",()=>{Ue(this,Ot,null),Ue(this,xt,!1),V(this,Go).call(this)});Ue(this,Je,t)}},xt=new WeakMap,Ot=new WeakMap,Je=new WeakMap,wt=new WeakMap,gt=new WeakMap,Uo=new WeakMap,Yo=new WeakMap,Ko=new WeakMap,Go=new WeakMap,Hl);const xo="data-rs-focus",bn='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex],[contenteditable]',Gt=e=>{const t=e?Kt(e):null,o=t!=null?t:document;return o.querySelector(`[${xo}]`)||o.activeElement},wo=(e,t)=>{var n;const o=Kt(e);(n=(o!=null?o:document).querySelector(`[${xo}]`))==null||n.removeAttribute(xo),t!=null&&t.pseudoFocus?e.setAttribute(xo,"true"):e.focus()},Xt=(e,t)=>{const r=Array.from(e.querySelectorAll(bn)).filter(n=>{if(n.hasAttribute("disabled")||n.clientHeight===0||!(t!=null&&t.includeNegativeTabIndex)&&n.getAttribute("tabindex")==="-1")return!1;if(n.type==="radio"){let s;if(n.form){const l=n.form.elements.namedItem(n.name);if(!l)return!1;"length"in l?s=Array.from(l).filter(d=>"type"in d&&d.type==="radio"):s=[l]}else s=Array.from(e.querySelectorAll(`[type="radio"][name="${n.name}"]`));if(s!=null&&s.length){const l=Array.from(s).find(a=>a.checked);if(l&&n!==l||!l&&n!==s[0])return!1}}return!0});return t!=null&&t.additionalElement&&r.length&&r.unshift(t.additionalElement),r},pn=e=>{const{root:t,target:o,options:r}=e,n=Xt(t,{additionalElement:r==null?void 0:r.additionalElement,includeNegativeTabIndex:r==null?void 0:r.includeNegativeTabIndex}),s=n.length-1,l=Gt(t),a=n.indexOf(l),d={next:a+1,prev:a-1,first:0,last:s};let _=d[o];const m=_>s||_<0;return m&&(r!=null&&r.circular?_=o==="prev"?d.last:d.first:_=o==="prev"?d.first:d.last),{overflow:m,el:n[_],focusableElements:n}},Co=(e,t,o)=>{const r=pn({root:e,target:t,options:o});return wo(r.el),{el:r.el,focusableElements:r.focusableElements}},na=(e,t)=>Co(e,"next",z(p({},t),{includeNegativeTabIndex:!0})),sa=(e,t)=>Co(e,"prev",z(p({},t),{includeNegativeTabIndex:!0})),ia=e=>Co(e,"first",{includeNegativeTabIndex:!0}),la=e=>Co(e,"last",{includeNegativeTabIndex:!0}),er="data-rs-keyboard",aa=()=>{document.documentElement.setAttribute(er,"true")},ca=()=>{document.documentElement.removeAttribute(er)},Zt=()=>document.documentElement.hasAttribute(er),Ye={SPACE:" ",ENTER:"Enter",TAB:"Tab",UP:"ArrowUp",DOWN:"ArrowDown",RIGHT:"ArrowRight",LEFT:"ArrowLeft"};class da{constructor(){be(this,"chain",{});be(this,"tailId",null);be(this,"idCounter",0)}generateId(){return this.idCounter+=1,this.idCounter}getAll(){return this.chain}get(t){return this.chain[t]}isLast(t){return this.tailId!==null&&t===this.tailId}isEmpty(){return typeof this.tailId!="number"}add(t){const o=this.tailId,r=o&&this.get(o),n=this.generateId();return this.chain[n]={previousId:o,data:t},r&&(r.nextId=n),this.tailId=n,n}remove(t){var d,_;const o=this.chain[t];if(!o)return;const r=o.previousId,n=r&&this.get(r),s=o.nextId,l=s&&this.get(s);n&&(n.nextId=(d=o.nextId)!=null?d:null),l&&(l.previousId=(_=o.previousId)!=null?_:null),s||(this.tailId=r!=null?r:null);const a=this.get(t).data;return delete this.chain[t],a}removePreviousTill(t,o){const r=this.get(t),n=this.remove(t);return!r||!r.previousId||o(r)?n:this.removePreviousTill(r.previousId,o)}}class ua{constructor(t){be(this,"root");be(this,"hiddenElements",[]);be(this,"hideSiblingsFromScreenReader",t=>{let o=t.parentNode&&t.parentNode.firstChild;for(;o;){const r=o!==t,n=o.nodeType===1&&!o.hasAttribute("aria-hidden");r&&n&&(o.setAttribute("aria-hidden","true"),this.hiddenElements.push(o)),o=o.nextSibling}});be(this,"release",()=>{this.hiddenElements.forEach(t=>{t.removeAttribute("aria-hidden")}),this.hiddenElements=[]});be(this,"trap",()=>{let t=this.root;for(this.release();t!==document.body&&t.parentElement;)this.hideSiblingsFromScreenReader(t),t=t.parentElement});this.root=t}}var Re;class It{constructor(){Se(this,Mt);Se(this,we,null);Se(this,bt,null);Se(this,Wt,{});be(this,"trapped");Se(this,qt,null);Se(this,Ut,null);Se(this,go,t=>{if(t.defaultPrevented||Re.chain.tailId!==V(this,Mt)||!V(this,we))return;const{mode:o,onRelease:r,pseudoFocus:n,includeTrigger:s}=V(this,Wt);let l="tabs";(o==="action-menu"||o==="selection-menu"||o==="action-bar")&&(l="arrows");const a=t.key,d=a===Ye.TAB,_=d&&t.shiftKey,m=d&&!t.shiftKey,u=[Ye.LEFT,Ye.RIGHT,Ye.UP,Ye.DOWN].includes(a),h=l==="arrows"&&a===(o==="action-bar"?Ye.LEFT:Ye.UP),g=l==="arrows"&&a===(o==="action-bar"?Ye.RIGHT:Ye.DOWN),b=_&&l==="tabs"||h,f=m&&l==="tabs"||g,y=Gt(V(this,we))===V(this,bt),x=pn({root:V(this,we),target:b?"prev":"next",options:{additionalElement:s?V(this,bt):void 0,circular:!0}});if(d&&l==="arrows"||o==="content-menu"&&d&&x.overflow){_&&!y&&t.preventDefault(),this.release(),r==null||r();return}if(!b&&!f){u&&(o==="action-bar"||o==="action-menu")&&t.preventDefault();return}t.preventDefault(),x.el&&wo(x.el,{pseudoFocus:n})});Se(this,Xo,()=>{const t=Kt(V(this,we));(t!=null?t:document).addEventListener("keydown",V(this,go))});Se(this,bo,()=>{const t=Kt(V(this,we));(t!=null?t:document).removeEventListener("keydown",V(this,go))});Se(this,po,()=>{const t=Re.chain.tailId&&Re.chain.get(Re.chain.tailId);return t&&V(t.data,we)===V(this,we)});be(this,"trap",(t,o={})=>{const{mode:r="dialog",includeTrigger:n,initialFocusEl:s}=o;Ue(this,we,t),Ue(this,qt,new ua(t));const l=Gt(V(this,we)),a=Xt(V(this,we),{additionalElement:n?l:void 0}),d=r==="selection-menu";if(Ue(this,Wt,z(p({},o),{pseudoFocus:d})),Ue(this,bt,l),Ue(this,Ut,new MutationObserver(()=>{if(!V(this,we)||!V(this,po).call(this))return;const u=Gt(V(this,we));if(V(this,we).contains(u))return;const h=Xt(V(this,we),{additionalElement:n?l:void 0});h.length&&wo(h[0],{pseudoFocus:d})})),V(this,bo).call(this),V(this,Ut).observe(V(this,we),{childList:!0,subtree:!0}),!a.length&&!s)return;V(this,Xo).call(this),r==="dialog"&&V(this,qt).trap();const _=Gt(V(this,we));V(this,po).call(this)||(Ue(this,Mt,Re.chain.add(this)),V(this,we).contains(_)||wo(s||a[0],{pseudoFocus:d})),this.trapped=!0});be(this,"release",(t={})=>{var n,s;const{withoutFocusReturn:o}=t;if(!this.trapped||!V(this,Mt)||!V(this,we))return;this.trapped=!1,V(this,bt)&&!o&&V(this,bt).focus({preventScroll:!Zt()}),Re.chain.removePreviousTill(V(this,Mt),l=>document.body.contains(V(l.data,bt))),(n=V(this,Ut))==null||n.disconnect(),V(this,bo).call(this),(s=V(this,qt))==null||s.release();const r=Re.chain.tailId&&Re.chain.get(Re.chain.tailId);r&&V(r.data,we)&&new Re().trap(V(r.data,we),V(r.data,Wt))})}}Mt=new WeakMap,we=new WeakMap,bt=new WeakMap,Wt=new WeakMap,qt=new WeakMap,Ut=new WeakMap,go=new WeakMap,Xo=new WeakMap,bo=new WeakMap,po=new WeakMap,be(It,"chain",new da),Re=It;const tr=e=>{var o;const t=((o=window.navigator.userAgentData)==null?void 0:o.platform)||window.navigator.platform;return typeof window!="undefined"?e.test(t):!1},_a=()=>tr(/^iPhone/i),ma=()=>tr(/^Mac/i),ha=()=>tr(/^iPad/i)||ma()&&navigator.maxTouchPoints>1,fa=()=>_a()||ha(),F=(...e)=>e.reduce((t,o)=>{if(Array.isArray(o)){const r=F(...o);return r?`${t} ${r}`:t}return o?`${t} ${o}`:t},"").trim();class vn{constructor(){be(this,"cache",new Map);be(this,"set",(t,o)=>{const r={},n=this.cache.get(t);Object.keys(o).forEach(s=>{r[s]=t.style.getPropertyValue(s)}),this.cache.set(t,p(p({},r),n)),Object.assign(t.style,o)});be(this,"reset",()=>{for(const[t,o]of this.cache.entries())Object.assign(t.style,o);this.cache.clear()})}}const yn=new vn,ga=()=>{const e=window.visualViewport,t=(e==null?void 0:e.offsetLeft)||0,o=(e==null?void 0:e.offsetTop)||0,{scrollX:r,scrollY:n}=window;return yn.set(document.body,{position:"fixed",top:`${-(n-Math.floor(o))}px`,left:`${-(r-Math.floor(t))}px`,right:"0",overflow:"hidden"}),()=>{yn.reset(),window.scrollTo({top:n,left:r,behavior:"instant"})}},ba=(()=>{let e;return()=>{if(e)return e;const t=document.createElement("div");return t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),e=t.getBoundingClientRect().width-t.clientWidth,document.body.removeChild(t),e}})(),or=new vn,pa=e=>{const{container:t}=e,o=t.getBoundingClientRect(),r=o.left+o.right<window.innerWidth;if(or.set(t,{overflow:"hidden"}),r){const n=ba();or.set(t,{paddingRight:`${n}px`})}return()=>or.reset()},va=e=>{var s,l,a;const t=fa();let o=()=>{};const r=(l=(s=e==null?void 0:e.containerEl)!=null?s:(e==null?void 0:e.originEl)&&_n({el:e.originEl}))!=null?l:document.body,n=r===document.body;if(r.style.overflow!=="hidden")return t&&n?o=ga():o=pa({container:r}),(a=e==null?void 0:e.callback)==null||a.call(e),d=>{var _;o(),(_=d==null?void 0:d.callback)==null||_.call(d)}},No=e=>e.preventDefault(),Jt=()=>{window.addEventListener("wheel",No,{passive:!1}),window.addEventListener("touchmove",No,{passive:!1}),document.body.style.userSelect="none"},ko=()=>{window.removeEventListener("wheel",No),window.removeEventListener("touchmove",No),document.body.style.userSelect=""},xn=c.forwardRef((e,t)=>{const{children:o,render:r,href:n,onClick:s,type:l,disabled:a,as:d,stopPropagation:_,className:m,attributes:u}=e,h=p({},u),g=s||(u==null?void 0:u.onClick),b=(u==null?void 0:u.onFocus)||(u==null?void 0:u.onBlur),f=!!(n||u!=null&&u.href),y=!!(g||b||l||u!=null&&u.ref),x=!f&&y&&(!d||d==="button");let v;if(f)v="a",h.href=a?void 0:n||(u==null?void 0:u.href);else if(x)v="button",h.type=l||(u==null?void 0:u.type)||"button",h.disabled=a||(u==null?void 0:u.disabled);else if(y){const N=!(d==="label")||g||b;v=d||"span",h.role=N?"button":void 0,h.tabIndex=N?0:void 0}else v=d||"span";const w=E=>{var N;a||(_&&E.stopPropagation(),s==null||s(E),(N=u==null?void 0:u.onClick)==null||N.call(u,E))},C=E=>{const N=E.key===Ye.SPACE,S=E.key===Ye.ENTER;!N&&!S||h.role==="button"&&(_&&E.stopPropagation(),E.preventDefault(),w(E))},k=z(p({ref:t},h),{className:F(m),onClick:w,onKeyDown:C,"aria-disabled":a?!0:void 0,children:o});return r?r(k):i.jsx(v,p({},k))});xn.displayName="Actionable";const Qt="+",Xe=new Map;let Rt=[];const wn=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),zo=e=>wn(e).split(Qt).sort().join(Qt),Cn=e=>{if(e.key)return e.altKey&&/^[Key|Digit|Numpad]/.test(e.code)?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase()},Nn=(e,t)=>{Object.keys(e).forEach(o=>{o.split(",").forEach(r=>{const n=e[o];n&&t(zo(r),n)})})};class ya{constructor(){be(this,"hotkeyMap",{});be(this,"getSize",()=>Object.keys(this.hotkeyMap).length);be(this,"bindHotkeys",(t,o,r)=>{Nn(t,(n,s)=>{s&&(this.hotkeyMap[n]||(this.hotkeyMap[n]=new Set),this.hotkeyMap[n].add({callback:s,ref:o,options:r}))})});be(this,"unbindHotkeys",t=>{Nn(t,(o,r)=>{var n,s;r&&((n=this.hotkeyMap[o])==null||n.forEach(l=>{l.callback===r&&this.hotkeyMap[o].delete(l)}),(s=this.hotkeyMap[o])!=null&&s.size||delete this.hotkeyMap[o])})});be(this,"handleKeyDown",(t,o)=>{if(!t.size)return;const r=[...t.keys()],n=zo(r.join(Qt)),s=n.split(Qt),l=this.hotkeyMap[n],a=zo(n.replace("control","mod")),d=zo(n.replace("meta","mod")),_=s.includes("control")&&this.hotkeyMap[a],m=s.includes("meta")&&this.hotkeyMap[d];[l,_,m].forEach(u=>{u&&u!=null&&u.size&&u.forEach(h=>{const g=o.composedPath()[0];if(h.ref.current&&!(g===h.ref.current||h.ref.current.contains(g)))return;const b=t.get(n);h.options.preventDefault&&(b==null||b.preventDefault(),o.preventDefault()),h.callback(o)})})})}}const rr=new ya,kn=c.createContext({}),xa=e=>{const{children:t}=e,[o,r]=c.useState(0),[n,s]=c.useState(0),l=c.useCallback(g=>{if(g.repeat||n===0)return;const b=Cn(g);b&&(Xe.set(b,g),r(Xe.size),g.metaKey&&Rt.push(...Xe.keys()),Xe.has("Meta")&&Rt.push(b))},[n]),a=c.useCallback(g=>{if(n===0)return;const b=Cn(g);b&&(Xe.delete(b),(b==="meta"||b==="control")&&Xe.delete("mod"),b==="meta"&&(Rt.forEach(f=>{Xe.has(f)&&Xe.delete(f)}),Rt=[]),r(Xe.size))},[n]),d=g=>!wn(g).split(Qt).some(f=>!Xe.has(f)),_=c.useCallback(g=>{g.key&&(l(g),rr.handleKeyDown(Xe,g))},[l]),m=c.useCallback(g=>{g.key&&a(g)},[a]),u=c.useCallback(()=>{Xe.clear(),Rt=[]},[]),h=c.useCallback((g,b,f={})=>(s(y=>y+1),rr.bindHotkeys(g,b,f),()=>{s(y=>y-1),rr.unbindHotkeys(g)}),[]);return c.useEffect(()=>(window.addEventListener("keydown",_),window.addEventListener("keyup",m),window.addEventListener("blur",u),()=>{window.removeEventListener("keydown",_),window.removeEventListener("keyup",m),window.removeEventListener("blur",u)}),[_,m,u]),i.jsx(kn.Provider,{value:{addHotkeys:h,isPressed:d},children:t})},wa=()=>c.useContext(kn),Ca="Escape",zn=c.createContext({disabledRef:null,disable:()=>{},enable:()=>{},activate:()=>{},deactivate:()=>{}}),Na=e=>{const t=c.useRef(!1),o=c.useCallback(()=>{t.current=!0},[]),r=c.useCallback(()=>{t.current=!1},[]),n=c.useCallback(()=>{t.current||aa()},[]),s=c.useCallback(()=>{t.current||ca()},[]),l=c.useCallback(_=>{_.metaKey||_.altKey||_.ctrlKey||_.key!==Ca&&n()},[n]),a=c.useCallback(()=>{s()},[s]);c.useEffect(()=>(window.addEventListener("keydown",l),window.addEventListener("mousedown",a),()=>{window.removeEventListener("keydown",l),window.removeEventListener("mousedown",a)}),[a,l]);const d=c.useMemo(()=>({disabledRef:t,disable:o,enable:r,activate:n,deactivate:s}),[o,r,n,s]);return i.jsx(zn.Provider,{value:d,children:e.children})},ka=()=>c.useContext(zn),fe=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,za=c.createContext({rtl:[!1,()=>{}]}),pt=e=>{const t=c.useState(e||!1),[o,r]=t;return fe(()=>{const n=new MutationObserver(s=>{s.forEach(l=>{if(l.attributeName!=="dir")return;const a=mn();o!==a&&r(a)})});return n.observe(document.documentElement,{attributes:!0}),()=>n.disconnect()},[o]),fe(()=>{document.documentElement.setAttribute("dir",o?"rtl":"ltr")},[o]),t},Sa=e=>{const{children:t,defaultRTL:o}=e,r=pt(o);return i.jsx(za.Provider,{value:{rtl:r},children:t})},Sn=e=>{const{children:t}=e;return i.jsx(Sa,{children:i.jsx(Na,{children:i.jsx(xa,{children:t})})})};Sn.displayName="Headless.ReshapedProvider";const ke=e=>{const t=c.useRef(e);return fe(()=>{t.current=e},[e]),t},Ze=(e,t=[],o)=>{const{addHotkeys:r,isPressed:n}=wa(),s=c.useRef(null),l=(o==null?void 0:o.ref)||s;return c.useEffect(()=>{if(o!=null&&o.disabled)return;const a=r(e,l,{preventDefault:o==null?void 0:o.preventDefault});return()=>a==null?void 0:a()},[r,Object.keys(e).join(","),o==null?void 0:o.disabled,o==null?void 0:o.preventDefault,...t]),{ref:l,checkHotkeyState:n}},nr=e=>{const{ref:t,disabled:o,orientation:r,circular:n}=e,s=[],l=[];(!r||r==="vertical")&&(s.push("ArrowUp"),l.push("ArrowDown")),(!r||r==="horizontal")&&(s.push("ArrowLeft"),l.push("ArrowRight"));const a=c.useCallback(d=>{var g;const{el:_,focusableElements:m}=d,u=m.find(b=>b.getAttribute("tabindex")!=="-1"),h=(g=_!=null?_:u)!=null?g:m[0];m.forEach(b=>b.setAttribute("tabindex","-1")),h==null||h.setAttribute("tabindex","0")},[]);c.useEffect(()=>{if(!t.current||o)return;const d=Xt(t.current);a({focusableElements:d})},[t,a,o]),Ze({[s.join(", ")]:()=>{if(!t.current)return;const d=sa(t.current,{circular:n});a(d)},[l.join(", ")]:()=>{if(!t.current)return;const d=na(t.current,{circular:n});a(d)},Home:()=>{if(!t.current)return;const d=ia(t.current);a(d)},End:()=>{if(!t.current)return;const d=la(t.current);a(d)}},[a,n],{ref:t,preventDefault:!0,disabled:o})},En=(e,t,o)=>{const{disabled:r}=o||{},n=ke(t),s=c.useRef(!1);c.useEffect(()=>{const l=d=>{s.current=!1;const _=d.composedPath()[0];e.forEach(m=>{m.current&&(m.current===_||m.current.contains(_))&&(s.current=!0)})},a=d=>{[Ye.ENTER,Ye.SPACE].includes(d.key)&&l(d)};return document.addEventListener("mousedown",l,{passive:!0}),document.addEventListener("touchstart",l,{passive:!0}),document.addEventListener("keydown",a,{passive:!0}),()=>{document.removeEventListener("mousedown",l),document.removeEventListener("touchstart",l),document.removeEventListener("keydown",a)}},[...e]),c.useEffect(()=>{if(!n.current||r)return;const l=a=>{var d;"button"in a&&a.button===2||s.current||(d=n.current)==null||d.call(n,a)};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}},[n,r,...e])},sr=e=>{const{containerRef:t,originRef:o}=e||{},[r,n]=c.useState(!1),s=c.useRef(null),l=c.useCallback(()=>{s.current=va({containerEl:t==null?void 0:t.current,originEl:o==null?void 0:o.current,callback:()=>n(!0)})},[t,o]),a=c.useCallback(()=>{var d;(d=s.current)==null||d.call(s,{callback:()=>n(!1)}),s.current=null},[]);return c.useMemo(()=>({scrollLocked:r,lockScroll:l,unlockScroll:a}),[r,l,a])},Ct=e=>{const[t,o]=c.useState(e||!1),r=c.useCallback(()=>{o(!0)},[]),n=c.useCallback(()=>{o(!1)},[]),s=c.useCallback(l=>{o(typeof l=="boolean"?l:a=>!a)},[]);return c.useMemo(()=>({active:t,activate:r,deactivate:n,toggle:s}),[r,n,s,t])},Tn=(e,t,o)=>{const{base:r,excludeValueFromClassName:n}=o||{},s=typeof e=="string"?e:e(t);return t===!0&&r||n?s:t===!0&&!r?`${s}-true`:t===!1&&!r?`${s}-false`:t!==void 0?`${s}-${t}`:null},le=(e,t,o,r)=>{if(typeof o!="object"){const n=Tn(t,o,{base:!0,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName});return n?[e[n]]:[]}return Object.keys(o).reduce((n,s)=>{const l=s==="s",a=Tn(t,o[s],{base:l,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName}),d=l?"":`--${s}`;return[...n,e[`${a}${d}`]]},[])},q=(e,t)=>t===void 0?{}:typeof t!="object"?{[`${e}-s`]:t}:Object.keys(t).reduce((o,r)=>{const n=t[r];return n===void 0||n===!1?o:z(p({},o),{[`${e}-${r}`]:n})},{}),Ea=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,ae=(e,t)=>Ea(e)?Object.keys(e).reduce((r,n)=>{const s=e[n];return s==null?r:z(p({},r),{[n]:t(s,n)})},{}):t(e,"s"),Ta=e=>e?{variables:q("--rs-align",e)}:{},$a=e=>e?{variables:q("--rs-ratio",e)}:{},$n={root:"_root_23jyt_1","--bleed":"_--bleed_23jyt_8","--bleed-true--m":"_--bleed-true--m_23jyt_1","--bleed-false--m":"_--bleed-false--m_23jyt_1","--bleed-true--l":"_--bleed-true--l_23jyt_1","--bleed-false--l":"_--bleed-false--l_23jyt_1","--bleed-true--xl":"_--bleed-true--xl_23jyt_1","--bleed-false--xl":"_--bleed-false--xl_23jyt_1"},Ma=e=>{if(e===void 0)return{};const t=le($n,"--bleed",ae(e,r=>typeof r=="number"&&r>0)),o=q("--rs-bleed",e);return{classNames:[$n.root,t],variables:o}},Ia={"--border-neutral":"_--border-neutral_xj2hx_1","--border-neutral-faded":"_--border-neutral-faded_xj2hx_1","--border-positive":"_--border-positive_xj2hx_1","--border-positive-faded":"_--border-positive-faded_xj2hx_1","--border-warning":"_--border-warning_xj2hx_1","--border-warning-faded":"_--border-warning-faded_xj2hx_1","--border-critical":"_--border-critical_xj2hx_1","--border-critical-faded":"_--border-critical-faded_xj2hx_1","--border-primary":"_--border-primary_xj2hx_1","--border-primary-faded":"_--border-primary-faded_xj2hx_1","--border-disabled":"_--border-disabled_xj2hx_1","--border-brand":"_--border-brand_xj2hx_1","--border-transparent":"_--border-transparent_xj2hx_1","--border-neutral--m":"_--border-neutral--m_xj2hx_1","--border-neutral-faded--m":"_--border-neutral-faded--m_xj2hx_1","--border-positive--m":"_--border-positive--m_xj2hx_1","--border-positive-faded--m":"_--border-positive-faded--m_xj2hx_1","--border-warning--m":"_--border-warning--m_xj2hx_1","--border-warning-faded--m":"_--border-warning-faded--m_xj2hx_1","--border-critical--m":"_--border-critical--m_xj2hx_1","--border-critical-faded--m":"_--border-critical-faded--m_xj2hx_1","--border-primary--m":"_--border-primary--m_xj2hx_1","--border-primary-faded--m":"_--border-primary-faded--m_xj2hx_1","--border-disabled--m":"_--border-disabled--m_xj2hx_1","--border-brand--m":"_--border-brand--m_xj2hx_1","--border-transparent--m":"_--border-transparent--m_xj2hx_1","--border-neutral--l":"_--border-neutral--l_xj2hx_1","--border-neutral-faded--l":"_--border-neutral-faded--l_xj2hx_1","--border-positive--l":"_--border-positive--l_xj2hx_1","--border-positive-faded--l":"_--border-positive-faded--l_xj2hx_1","--border-warning--l":"_--border-warning--l_xj2hx_1","--border-warning-faded--l":"_--border-warning-faded--l_xj2hx_1","--border-critical--l":"_--border-critical--l_xj2hx_1","--border-critical-faded--l":"_--border-critical-faded--l_xj2hx_1","--border-primary--l":"_--border-primary--l_xj2hx_1","--border-primary-faded--l":"_--border-primary-faded--l_xj2hx_1","--border-disabled--l":"_--border-disabled--l_xj2hx_1","--border-brand--l":"_--border-brand--l_xj2hx_1","--border-transparent--l":"_--border-transparent--l_xj2hx_1","--border-neutral--xl":"_--border-neutral--xl_xj2hx_1","--border-neutral-faded--xl":"_--border-neutral-faded--xl_xj2hx_1","--border-positive--xl":"_--border-positive--xl_xj2hx_1","--border-positive-faded--xl":"_--border-positive-faded--xl_xj2hx_1","--border-warning--xl":"_--border-warning--xl_xj2hx_1","--border-warning-faded--xl":"_--border-warning-faded--xl_xj2hx_1","--border-critical--xl":"_--border-critical--xl_xj2hx_1","--border-critical-faded--xl":"_--border-critical-faded--xl_xj2hx_1","--border-primary--xl":"_--border-primary--xl_xj2hx_1","--border-primary-faded--xl":"_--border-primary-faded--xl_xj2hx_1","--border-disabled--xl":"_--border-disabled--xl_xj2hx_1","--border-brand--xl":"_--border-brand--xl_xj2hx_1","--border-transparent--xl":"_--border-transparent--xl_xj2hx_1"},ja=e=>e?{variables:q("--rs-border-w",ae(e,t=>t?"1px":"0px"))}:{},La=e=>e?{variables:q("--rs-border-w-top",ae(e,t=>t?"1px":"0px"))}:{},Da=e=>e?{variables:q("--rs-border-w-bottom",ae(e,t=>t?"1px":"0px"))}:{},Pa=e=>e?{variables:q("--rs-border-w-start",ae(e,t=>t?"1px":"0px"))}:{},Fa=e=>e?{variables:q("--rs-border-w-end",ae(e,t=>t?"1px":"0px"))}:{},Aa=e=>e?{variables:q("--rs-border-w-block",ae(e,t=>t?"1px":"0px"))}:{},Va=e=>e?{variables:q("--rs-border-w-inline",ae(e,t=>t?"1px":"0px"))}:{},Ba=e=>e?{classNames:le(Ia,"--border",e)}:{},Mn={root:"_root_14o7b_5","--type-literal":"_--type-literal_14o7b_14","--type-unit":"_--type-unit_14o7b_18","--type-literal--m":"_--type-literal--m_14o7b_1","--type-unit--m":"_--type-unit--m_14o7b_1","--type-literal--l":"_--type-literal--l_14o7b_1","--type-unit--l":"_--type-unit--l_14o7b_1","--type-literal--xl":"_--type-literal--xl_14o7b_1","--type-unit--xl":"_--type-unit--xl_14o7b_1"},Ha=e=>{if(!e)return{};const t=q("--rs-h",e),o=le(Mn,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[Mn.root,o],variables:t}},Oa=e=>e===void 0?{}:{variables:q("--rs-inset",e)},Wa=e=>e===void 0?{}:{variables:q("--rs-inset-top",e)},qa=e=>e===void 0?{}:{variables:q("--rs-inset-bottom",e)},Ua=e=>e===void 0?{}:{variables:q("--rs-inset-start",e)},Ya=e=>e===void 0?{}:{variables:q("--rs-inset-end",e)},Ka=e=>e===void 0?{}:{variables:q("--rs-inset-inline",e)},Ga=e=>e===void 0?{}:{variables:q("--rs-inset-block",e)},Xa=e=>e?{variables:q("--rs-justify",e)}:{},In={root:"_root_1rdxk_1","--type-literal":"_--type-literal_1rdxk_1","--type-unit":"_--type-unit_1rdxk_1","--type-literal--m":"_--type-literal--m_1rdxk_1","--type-unit--m":"_--type-unit--m_1rdxk_1","--type-literal--l":"_--type-literal--l_1rdxk_1","--type-unit--l":"_--type-unit--l_1rdxk_1","--type-literal--xl":"_--type-literal--xl_1rdxk_1","--type-unit--xl":"_--type-unit--xl_1rdxk_1"},Za=e=>{if(!e)return{};const t=q("--rs-max-h",e),o=le(In,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[In.root,o],variables:t}},jn={root:"_root_qeyze_1","--type-literal":"_--type-literal_qeyze_1","--type-unit":"_--type-unit_qeyze_1","--type-literal--m":"_--type-literal--m_qeyze_1","--type-unit--m":"_--type-unit--m_qeyze_1","--type-literal--l":"_--type-literal--l_qeyze_1","--type-unit--l":"_--type-unit--l_qeyze_1","--type-literal--xl":"_--type-literal--xl_qeyze_1","--type-unit--xl":"_--type-unit--xl_qeyze_1"},Ja=e=>{if(!e)return{};const t=q("--rs-max-w",e),o=le(jn,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[jn.root,o],variables:t}},Ln={root:"_root_zookh_1","--type-literal":"_--type-literal_zookh_1","--type-unit":"_--type-unit_zookh_1","--type-literal--m":"_--type-literal--m_zookh_1","--type-unit--m":"_--type-unit--m_zookh_1","--type-literal--l":"_--type-literal--l_zookh_1","--type-unit--l":"_--type-unit--l_zookh_1","--type-literal--xl":"_--type-literal--xl_zookh_1","--type-unit--xl":"_--type-unit--xl_zookh_1"},Qa=e=>{if(!e)return{};const t=q("--rs-min-h",e),o=le(Ln,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[Ln.root,o],variables:t}},Dn={root:"_root_1nz80_1","--type-literal":"_--type-literal_1nz80_1","--type-unit":"_--type-unit_1nz80_1","--type-literal--m":"_--type-literal--m_1nz80_1","--type-unit--m":"_--type-unit--m_1nz80_1","--type-literal--l":"_--type-literal--l_1nz80_1","--type-unit--l":"_--type-unit--l_1nz80_1","--type-literal--xl":"_--type-literal--xl_1nz80_1","--type-unit--xl":"_--type-unit--xl_1nz80_1"},Ra=e=>{if(!e)return{};const t=q("--rs-min-w",e),o=le(Dn,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[Dn.root,o],variables:t}},ec=e=>e?{variables:q("--rs-p",e)}:{},tc=e=>e===void 0?{}:{variables:q("--rs-p-top",e)},oc=e=>e===void 0?{}:{variables:q("--rs-p-bottom",e)},rc=e=>e===void 0?{}:{variables:q("--rs-p-start",e)},nc=e=>e===void 0?{}:{variables:q("--rs-p-end",e)},sc=e=>e===void 0?{}:{variables:q("--rs-p-inline",e)},ic=e=>e===void 0?{}:{variables:q("--rs-p-block",e)},lc=e=>e?{variables:q("--rs-position",e)}:{},Pn={root:"_root_w529z_1","--radius-none":"_--radius-none_w529z_1","--radius-small":"_--radius-small_w529z_1","--radius-medium":"_--radius-medium_w529z_1","--radius-large":"_--radius-large_w529z_1","--radius-circular":"_--radius-circular_w529z_1","--radius-none--m":"_--radius-none--m_w529z_1","--radius-small--m":"_--radius-small--m_w529z_1","--radius-medium--m":"_--radius-medium--m_w529z_1","--radius-large--m":"_--radius-large--m_w529z_1","--radius-circular--m":"_--radius-circular--m_w529z_1","--radius-none--l":"_--radius-none--l_w529z_1","--radius-small--l":"_--radius-small--l_w529z_1","--radius-medium--l":"_--radius-medium--l_w529z_1","--radius-large--l":"_--radius-large--l_w529z_1","--radius-circular--l":"_--radius-circular--l_w529z_1","--radius-none--xl":"_--radius-none--xl_w529z_1","--radius-small--xl":"_--radius-small--xl_w529z_1","--radius-medium--xl":"_--radius-medium--xl_w529z_1","--radius-large--xl":"_--radius-large--xl_w529z_1","--radius-circular--xl":"_--radius-circular--xl_w529z_1"},ac=e=>e?{classNames:[Pn.root,...le(Pn,"--radius",e)]}:{},cc=e=>e?{variables:q("--rs-text-align",e)}:{},Fn={root:"_root_1kn8l_1","--type-literal":"_--type-literal_1kn8l_1","--type-unit":"_--type-unit_1kn8l_1","--type-literal--m":"_--type-literal--m_1kn8l_1","--type-unit--m":"_--type-unit--m_1kn8l_1","--type-literal--l":"_--type-literal--l_1kn8l_1","--type-unit--l":"_--type-unit--l_1kn8l_1","--type-literal--xl":"_--type-literal--xl_1kn8l_1","--type-unit--xl":"_--type-unit--xl_1kn8l_1"},dc={align:Ta,aspectRatio:$a,bleed:Ma,border:ja,borderTop:La,borderBottom:Da,borderStart:Pa,borderEnd:Fa,borderInline:Va,borderBlock:Aa,borderColor:Ba,height:Ha,padding:ec,paddingTop:tc,paddingBottom:oc,paddingStart:rc,paddingEnd:nc,paddingInline:sc,paddingBlock:ic,inset:Oa,insetTop:Wa,insetBottom:qa,insetStart:Ua,insetEnd:Ya,insetInline:Ka,insetBlock:Ga,justify:Xa,maxHeight:Za,maxWidth:Ja,minHeight:Qa,minWidth:Ra,position:lc,radius:ac,textAlign:cc,width:e=>{if(!e)return{};const t=q("--rs-w",e),o=le(Fn,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[Fn.root,o],variables:t}}},et=e=>{const t={variables:{},classNames:[]};return Object.entries(e).forEach(([r,n])=>{const s=dc[r],l=s(n);l.variables&&(t.variables=p(p({},t.variables),l.variables)),l.classNames&&t.classNames.push(l.classNames)}),t},st={root:"_root_johd4_2","--clamp":"_--clamp_johd4_22","--break-all":"_--break-all_johd4_29","--wrap-balance":"_--wrap-balance_johd4_33","--numeric":"_--numeric_johd4_37","--variant-title-1":"_--variant-title-1_johd4_1","--variant-title-2":"_--variant-title-2_johd4_1","--variant-title-3":"_--variant-title-3_johd4_1","--variant-title-4":"_--variant-title-4_johd4_1","--variant-title-5":"_--variant-title-5_johd4_1","--variant-title-6":"_--variant-title-6_johd4_1","--variant-featured-1":"_--variant-featured-1_johd4_1","--variant-featured-2":"_--variant-featured-2_johd4_1","--variant-featured-3":"_--variant-featured-3_johd4_1","--variant-body-1":"_--variant-body-1_johd4_1","--variant-body-2":"_--variant-body-2_johd4_1","--variant-body-3":"_--variant-body-3_johd4_1","--variant-caption-1":"_--variant-caption-1_johd4_1","--variant-caption-2":"_--variant-caption-2_johd4_1","--weight-regular":"_--weight-regular_johd4_1","--weight-medium":"_--weight-medium_johd4_1","--weight-bold":"_--weight-bold_johd4_1","--color-neutral":"_--color-neutral_johd4_1","--color-neutral-faded":"_--color-neutral-faded_johd4_1","--color-primary":"_--color-primary_johd4_1","--color-warning":"_--color-warning_johd4_1","--color-positive":"_--color-positive_johd4_1","--color-critical":"_--color-critical_johd4_1","--color-disabled":"_--color-disabled_johd4_1","--decoration-line-through":"_--decoration-line-through_johd4_175","--monospace":"_--monospace_johd4_179","--variant-title-1--m":"_--variant-title-1--m_johd4_1","--variant-title-2--m":"_--variant-title-2--m_johd4_1","--variant-title-3--m":"_--variant-title-3--m_johd4_1","--variant-title-4--m":"_--variant-title-4--m_johd4_1","--variant-title-5--m":"_--variant-title-5--m_johd4_1","--variant-title-6--m":"_--variant-title-6--m_johd4_1","--variant-featured-1--m":"_--variant-featured-1--m_johd4_1","--variant-featured-2--m":"_--variant-featured-2--m_johd4_1","--variant-featured-3--m":"_--variant-featured-3--m_johd4_1","--variant-body-1--m":"_--variant-body-1--m_johd4_1","--variant-body-2--m":"_--variant-body-2--m_johd4_1","--variant-body-3--m":"_--variant-body-3--m_johd4_1","--variant-caption-1--m":"_--variant-caption-1--m_johd4_1","--variant-caption-2--m":"_--variant-caption-2--m_johd4_1","--weight-regular--m":"_--weight-regular--m_johd4_1","--weight-medium--m":"_--weight-medium--m_johd4_1","--weight-bold--m":"_--weight-bold--m_johd4_1","--variant-title-1--l":"_--variant-title-1--l_johd4_1","--variant-title-2--l":"_--variant-title-2--l_johd4_1","--variant-title-3--l":"_--variant-title-3--l_johd4_1","--variant-title-4--l":"_--variant-title-4--l_johd4_1","--variant-title-5--l":"_--variant-title-5--l_johd4_1","--variant-title-6--l":"_--variant-title-6--l_johd4_1","--variant-featured-1--l":"_--variant-featured-1--l_johd4_1","--variant-featured-2--l":"_--variant-featured-2--l_johd4_1","--variant-featured-3--l":"_--variant-featured-3--l_johd4_1","--variant-body-1--l":"_--variant-body-1--l_johd4_1","--variant-body-2--l":"_--variant-body-2--l_johd4_1","--variant-body-3--l":"_--variant-body-3--l_johd4_1","--variant-caption-1--l":"_--variant-caption-1--l_johd4_1","--variant-caption-2--l":"_--variant-caption-2--l_johd4_1","--weight-regular--l":"_--weight-regular--l_johd4_1","--weight-medium--l":"_--weight-medium--l_johd4_1","--weight-bold--l":"_--weight-bold--l_johd4_1","--variant-title-1--xl":"_--variant-title-1--xl_johd4_1","--variant-title-2--xl":"_--variant-title-2--xl_johd4_1","--variant-title-3--xl":"_--variant-title-3--xl_johd4_1","--variant-title-4--xl":"_--variant-title-4--xl_johd4_1","--variant-title-5--xl":"_--variant-title-5--xl_johd4_1","--variant-title-6--xl":"_--variant-title-6--xl_johd4_1","--variant-featured-1--xl":"_--variant-featured-1--xl_johd4_1","--variant-featured-2--xl":"_--variant-featured-2--xl_johd4_1","--variant-featured-3--xl":"_--variant-featured-3--xl_johd4_1","--variant-body-1--xl":"_--variant-body-1--xl_johd4_1","--variant-body-2--xl":"_--variant-body-2--xl_johd4_1","--variant-body-3--xl":"_--variant-body-3--xl_johd4_1","--variant-caption-1--xl":"_--variant-caption-1--xl_johd4_1","--variant-caption-2--xl":"_--variant-caption-2--xl_johd4_1","--weight-regular--xl":"_--weight-regular--xl_johd4_1","--weight-medium--xl":"_--weight-medium--xl_johd4_1","--weight-bold--xl":"_--weight-bold--xl_johd4_1"},uc={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},ne=e=>{const{variant:t,color:o,weight:r,align:n,decoration:s,maxLines:l,wrap:a,monospace:d,numeric:_,children:m,className:u,attributes:h}=e,g=typeof t=="string"?t:(t==null?void 0:t.xl)||(t==null?void 0:t.l)||(t==null?void 0:t.m)||(t==null?void 0:t.s),b=et({textAlign:n}),f=e.as||g&&uc[g]||"div",y=F(st.root,o&&st[`--color-${o}`],...le(st,"--variant",t),...le(st,"--weight",r),s&&st[`--decoration-${s}`],l!==void 0&&st["--clamp"],l===1&&st["--break-all"],a&&st[`--wrap-${a}`],d&&st["--monospace"],_&&st["--numeric"],u,b.classNames),x=z(p(p({},h==null?void 0:h.style),b.variables),{"--rs-text-lines":l});return i.jsx(f,z(p({},h),{className:y,style:x,children:m}))};ne.displayName="Text";const jt={root:"_root_1tl54_1","--color-neutral":"_--color-neutral_1tl54_25","--blank":"_--blank_1tl54_29","--vertical":"_--vertical_1tl54_35",label:"_label_1tl54_63","--content-position-center":"_--content-position-center_1tl54_89","--content-position-start":"_--content-position-start_1tl54_96","--vertical-true--m":"_--vertical-true--m_1tl54_1","--vertical-false--m":"_--vertical-false--m_1tl54_1","--vertical-true--l":"_--vertical-true--l_1tl54_1","--vertical-false--l":"_--vertical-false--l_1tl54_1","--vertical-true--xl":"_--vertical-true--xl_1tl54_1","--vertical-false--xl":"_--vertical-false--xl_1tl54_1"},eo=e=>{const{vertical:t,blank:o,children:r,contentPosition:n="center",color:s,offset:l,className:a,attributes:d}=e,_=F(jt.root,a,o&&jt["--blank"],s&&jt[`--color-${s}`],r?jt[`--content-position-${n}`]:void 0,...le(jt,"--vertical",t));let m;return(typeof t=="boolean"||t===void 0)&&(m=t?"vertical":"horizontal"),i.jsx("div",z(p({},d),{role:"separator","aria-orientation":m,className:_,style:z(p({},d==null?void 0:d.style),{"--rs-divider-offset":l}),children:r&&i.jsx(ne,{color:"neutral-faded",variant:"caption-1",className:jt.label,children:r})}))};eo.displayName="Divider";const ir={root:"_root_11ilc_1","--hidden":"_--hidden_11ilc_5","--visibility":"_--visibility_11ilc_9","--hidden-true--m":"_--hidden-true--m_11ilc_1","--hidden-false--m":"_--hidden-false--m_11ilc_1","--hidden-true--l":"_--hidden-true--l_11ilc_1","--hidden-false--l":"_--hidden-false--l_11ilc_1","--hidden-true--xl":"_--hidden-true--xl_11ilc_1","--hidden-false--xl":"_--hidden-false--xl_11ilc_1"},Nt=e=>{const{as:t="div",children:o,visibility:r,hide:n}=e,s=F(ir.root,...le(ir,"--hidden",n),r&&ir["--visibility"]);return i.jsx(t,{className:s,children:o})};Nt.displayName="Hidden";const ze={root:"_root_9u073_1",item:"_item_9u073_11","--animated":"_--animated_9u073_19","--bg-neutral":"_--bg-neutral_9u073_1","--bg-positive":"_--bg-positive_9u073_1","--bg-warning":"_--bg-warning_9u073_1","--bg-critical":"_--bg-critical_9u073_1","--bg-primary":"_--bg-primary_9u073_1","--bg-neutral-faded":"_--bg-neutral-faded_9u073_1","--bg-positive-faded":"_--bg-positive-faded_9u073_1","--bg-warning-faded":"_--bg-warning-faded_9u073_1","--bg-critical-faded":"_--bg-critical-faded_9u073_1","--bg-primary-faded":"_--bg-primary-faded_9u073_1","--bg-page":"_--bg-page_9u073_1","--bg-page-faded":"_--bg-page-faded_9u073_1","--bg-disabled":"_--bg-disabled_9u073_1","--bg-disabled-faded":"_--bg-disabled-faded_9u073_1","--bg-elevation-base":"_--bg-elevation-base_9u073_1","--bg-elevation-raised":"_--bg-elevation-raised_9u073_1","--bg-elevation-overlay":"_--bg-elevation-overlay_9u073_1","--bg-brand":"_--bg-brand_9u073_39","--bg-white":"_--bg-white_9u073_44","--bg-black":"_--bg-black_9u073_49","--shadow-raised":"_--shadow-raised_9u073_54","--shadow-overlay":"_--shadow-overlay_9u073_58","--overflow-hidden":"_--overflow-hidden_9u073_62","--overflow-auto":"_--overflow-auto_9u073_66","--divided":"_--divided_9u073_70","--flex":"_--flex_9u073_74","--direction-column":"_--direction-column_9u073_1","item--gap-before":"_item--gap-before_9u073_86","item--gap-auto":"_item--gap-auto_9u073_90","--direction-column-reverse":"_--direction-column-reverse_9u073_1","--direction-row":"_--direction-row_9u073_1","--direction-row-reverse":"_--direction-row-reverse_9u073_1","--nowrap":"_--nowrap_9u073_145","--wrap":"_--wrap_9u073_153","--nowrap-false--m":"_--nowrap-false--m_9u073_1","--wrap-true--m":"_--wrap-true--m_9u073_1","--nowrap-true--m":"_--nowrap-true--m_9u073_1","--wrap-false--m":"_--wrap-false--m_9u073_1","--nowrap-false--l":"_--nowrap-false--l_9u073_1","--wrap-true--l":"_--wrap-true--l_9u073_1","--nowrap-true--l":"_--nowrap-true--l_9u073_1","--wrap-false--l":"_--wrap-false--l_9u073_1","--nowrap-false--xl":"_--nowrap-false--xl_9u073_1","--wrap-true--xl":"_--wrap-true--xl_9u073_1","--nowrap-true--xl":"_--nowrap-true--xl_9u073_1","--wrap-false--xl":"_--wrap-false--xl_9u073_1",divider:"_divider_9u073_171","item--grow":"_item--grow_9u073_175","item--shrink":"_item--shrink_9u073_193","item--columns":"_item--columns_9u073_197","item--columns-1":"_item--columns-1_9u073_1","item--columns-2":"_item--columns-2_9u073_1","item--columns-3":"_item--columns-3_9u073_1","item--columns-4":"_item--columns-4_9u073_1","item--columns-5":"_item--columns-5_9u073_1","item--columns-6":"_item--columns-6_9u073_1","item--columns-7":"_item--columns-7_9u073_1","item--columns-8":"_item--columns-8_9u073_1","item--columns-9":"_item--columns-9_9u073_1","item--columns-10":"_item--columns-10_9u073_1","item--columns-11":"_item--columns-11_9u073_1","item--columns-12":"_item--columns-12_9u073_1","item--columns-auto":"_item--columns-auto_9u073_218","item--columns-1--m":"_item--columns-1--m_9u073_1","item--columns-auto--m":"_item--columns-auto--m_9u073_1","item--columns-2--m":"_item--columns-2--m_9u073_1","item--columns-3--m":"_item--columns-3--m_9u073_1","item--columns-4--m":"_item--columns-4--m_9u073_1","item--columns-5--m":"_item--columns-5--m_9u073_1","item--columns-6--m":"_item--columns-6--m_9u073_1","item--columns-7--m":"_item--columns-7--m_9u073_1","item--columns-8--m":"_item--columns-8--m_9u073_1","item--columns-9--m":"_item--columns-9--m_9u073_1","item--columns-10--m":"_item--columns-10--m_9u073_1","item--columns-11--m":"_item--columns-11--m_9u073_1","item--columns-12--m":"_item--columns-12--m_9u073_1","item--columns-1--l":"_item--columns-1--l_9u073_1","item--columns-auto--l":"_item--columns-auto--l_9u073_1","item--columns-2--l":"_item--columns-2--l_9u073_1","item--columns-3--l":"_item--columns-3--l_9u073_1","item--columns-4--l":"_item--columns-4--l_9u073_1","item--columns-5--l":"_item--columns-5--l_9u073_1","item--columns-6--l":"_item--columns-6--l_9u073_1","item--columns-7--l":"_item--columns-7--l_9u073_1","item--columns-8--l":"_item--columns-8--l_9u073_1","item--columns-9--l":"_item--columns-9--l_9u073_1","item--columns-10--l":"_item--columns-10--l_9u073_1","item--columns-11--l":"_item--columns-11--l_9u073_1","item--columns-12--l":"_item--columns-12--l_9u073_1","item--columns-1--xl":"_item--columns-1--xl_9u073_1","item--columns-auto--xl":"_item--columns-auto--xl_9u073_1","item--columns-2--xl":"_item--columns-2--xl_9u073_1","item--columns-3--xl":"_item--columns-3--xl_9u073_1","item--columns-4--xl":"_item--columns-4--xl_9u073_1","item--columns-5--xl":"_item--columns-5--xl_9u073_1","item--columns-6--xl":"_item--columns-6--xl_9u073_1","item--columns-7--xl":"_item--columns-7--xl_9u073_1","item--columns-8--xl":"_item--columns-8--xl_9u073_1","item--columns-9--xl":"_item--columns-9--xl_9u073_1","item--columns-10--xl":"_item--columns-10--xl_9u073_1","item--columns-11--xl":"_item--columns-11--xl_9u073_1","item--columns-12--xl":"_item--columns-12--xl_9u073_1","--direction-column--m":"_--direction-column--m_9u073_1","--direction-column-reverse--m":"_--direction-column-reverse--m_9u073_1","--direction-row--m":"_--direction-row--m_9u073_1","--direction-row-reverse--m":"_--direction-row-reverse--m_9u073_1","item--grow-true--m":"_item--grow-true--m_9u073_1","item--grow-false--m":"_item--grow-false--m_9u073_1","--direction-column--l":"_--direction-column--l_9u073_1","--direction-column-reverse--l":"_--direction-column-reverse--l_9u073_1","--direction-row--l":"_--direction-row--l_9u073_1","--direction-row-reverse--l":"_--direction-row-reverse--l_9u073_1","item--grow-true--l":"_item--grow-true--l_9u073_1","item--grow-false--l":"_item--grow-false--l_9u073_1","--direction-column--xl":"_--direction-column--xl_9u073_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_9u073_1","--direction-row--xl":"_--direction-row--xl_9u073_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_9u073_1","item--grow-true--xl":"_item--grow-true--xl_9u073_1","item--grow-false--xl":"_item--grow-false--xl_9u073_1"},lr=e=>{const{columns:t,grow:o,shrink:r,gapBefore:n,as:s="div",order:l,children:a,className:d,attributes:_}=e,m=F(ze.item,d,n==="auto"&&ze["item--gap-auto"],n!==void 0&&ze["item--gap-before"],t&&ze["item--columns"],r&&ze["item--shrink"],...le(ze,"item--grow",o),...le(ze,"item--columns",t)),u=p(p({},q("--rs-view-item-order",l)),q("--rs-view-item-gap-before",n));return i.jsx(s,z(p({},_),{style:p(p({},_==null?void 0:_.style),u),className:m,children:a}))},ar=e=>{var Ie;const{align:t,justify:o,wrap:r,gap:n,height:s,width:l,aspectRatio:a,maxHeight:d,maxWidth:_,minHeight:m,minWidth:u,padding:h,paddingInline:g,paddingBlock:b,paddingBottom:f,paddingEnd:y,paddingStart:x,paddingTop:v,bleed:w,animated:C,backgroundColor:k,borderColor:E,borderTop:N,borderBottom:S,borderStart:T,borderEnd:j,borderInline:$,borderBlock:M,borderRadius:D,shadow:P,textAlign:B,overflow:L,position:A,inset:W,insetTop:re,insetBottom:Z,insetStart:Q,insetEnd:U,zIndex:te,grow:X,shrink:oe,as:$e="div",children:de,divided:K,className:ue,attributes:ye}=e,O=(Ie=e.border)!=null?Ie:E?!N&&!S&&!T&&!j&&!$&&!M:void 0;let Y=!!t||!!o||!!n||!!e.direction;const R=e.direction||(Y?"column":void 0),he=et({align:t,inset:W,insetTop:re,insetBottom:Z,insetStart:Q,insetEnd:U,bleed:w,width:l,height:s,maxWidth:_,maxHeight:d,minWidth:u,minHeight:m,position:A,aspectRatio:a,textAlign:B,justify:o,padding:h,paddingInline:g,paddingBlock:b,paddingBottom:f,paddingEnd:y,paddingStart:x,paddingTop:v,borderColor:E,border:O,borderTop:N,borderBottom:S,borderStart:T,borderEnd:j,borderInline:$,borderBlock:M,radius:D});let J=0,G;const se=({className:me,key:ve})=>{const xe=F(ze.divider,me);let Ae=!1;return typeof R=="string"&&R.startsWith("row")?Ae=!0:R&&(Ae=Object.keys(R).reduce((Qe,Ve)=>{const Be=R[Ve];return Be?z(p({},Qe),{[Ve]:Be.startsWith("row")}):Qe},{})),i.jsx("div",{className:xe,children:i.jsx(eo,{vertical:Ae,blank:!0})},`${ve}-divider`)},ie=({className:me,child:ve,index:xe})=>{var Zo,Jo;const Ae=c.isValidElement(ve),De=Ae&&ve.type===lr,Qe=Ae&&ve.type===ar,Ve=ve.key,Be=!!xe&&K&&se({className:me,key:Ve});let Ee;return De?Ee=c.cloneElement(ve,{className:F(me,ve.props.className)}):!me&&(c.isValidElement(ve)||c.Children.count(de===1)||typeof ve=="string")?Ee=ve:Ee=i.jsx("div",{className:me,children:ve},Ve),(De||Qe)&&((Zo=ve.props)!=null&&Zo.grow)&&(G=ve.props.grow,Y=!0),De&&((Jo=ve.props)==null?void 0:Jo.gap)==="auto"&&(G=!0),i.jsxs(c.Fragment,{children:[Be,Ee]},Ve?`${Ve}-fragment`:void 0)},ce=c.Children.map(de,(me,ve)=>{if(!me)return null;const xe=J;if(J+=1,c.isValidElement(me)&&me.type===Nt){const Ae=me.props,{children:De}=Ae,Qe=pe(Ae,["children"]),Ve=me.key||ve;return c.createElement(Nt,z(p({},Qe),{key:Ve}),ie({child:De,index:xe}))}return me.type===c.Fragment&&c.Children.count(me.props.children)>1?me.props.children.map(De=>De?(J+=1,ie({child:De,index:J})):null):ie({child:me,index:xe})}),Ce=F(ze.root,ue,he.classNames,k&&ze[`--bg-${k}`],P&&ze[`--shadow-${P}`],L&&ze[`--overflow-${L}`],C&&ze["--animated"],K&&ze["--divided"],(Y||G)&&ze["--flex"],...le(ze,"--direction",R),...le(ze,"--nowrap",G||r===!1),...le(ze,"--wrap",r),...le(ze,"item--grow",X),oe&&ze["item--shrink"]),Me=p(p(p(p({},ye==null?void 0:ye.style),q("--rs-view-gap",n)),he.variables),te?{"--rs-view-z":te}:{});return i.jsx($e,z(p({},ye),{className:Ce,style:Me,children:ce}))};ar.displayName="View",lr.displayName="View.Item";const H=ar;H.Item=lr;const So={root:"_root_kbofm_1","--position-top":"_--position-top_kbofm_1","--position-top-start":"_--position-top-start_kbofm_1","--position-top-end":"_--position-top-end_kbofm_1","--position-bottom":"_--position-bottom_kbofm_101","--position-bottom-start":"_--position-bottom-start_kbofm_1","--position-bottom-end":"_--position-bottom-end_kbofm_1","--elevated":"_--elevated_kbofm_66","--active":"_--active_kbofm_80"},_c=["top","bottom"],An=e=>{const{position:t="bottom",positionType:o,offset:r,padding:n,paddingBlock:s=3,paddingInline:l=4,children:a,elevated:d,active:_=!0,className:m,attributes:u}=e,h=o!=null?o:r?"absolute":_c.includes(t)?"relative":"absolute",g=r!=null?r:h==="relative"?void 0:4,b=g&&q("--rs-action-bar-offset",g),f=F(So.root,(d||!!b)&&So["--elevated"],t&&So[`--position-${t}`],_&&So["--active"],m);return i.jsx(H,{className:f,attributes:z(p({},u),{style:p(p({},u==null?void 0:u.style),b)}),position:h,paddingBlock:n||s,paddingInline:n||l,children:a})};An.displayName="ActionBar";const cr={root:"_root_wxiwp_1","--auto":"_--auto_wxiwp_12","--color-neutral":"_--color-neutral_wxiwp_1","--color-neutral-faded":"_--color-neutral-faded_wxiwp_1","--color-primary":"_--color-primary_wxiwp_1","--color-positive":"_--color-positive_wxiwp_1","--color-warning":"_--color-warning_wxiwp_1","--color-critical":"_--color-critical_wxiwp_1","--color-disabled":"_--color-disabled_wxiwp_1"},ge=e=>{const{svg:t,className:o,color:r,size:n="1em",autoWidth:s,attributes:l}=e,a=et({height:n}),d=F(cr.root,o,a.classNames,r&&cr[`--color-${r}`],s&&cr["--auto"]),_=c.isValidElement(t)||t===null?t:i.jsx(t,{}),m=p(p({},l==null?void 0:l.style),a.variables);return i.jsx("span",z(p({},l),{"aria-hidden":"true",className:d,style:m,children:_&&c.cloneElement(_,{focusable:!1})}))};ge.displayName="Icon";const mc={icon:"_icon_1elkf_1"},Vn=e=>{const{title:t,children:o,icon:r,actionsSlot:n,color:s="neutral",inline:l,bleed:a,className:d,attributes:_}=e,m=s==="neutral",u=()=>l?i.jsxs(i.Fragment,{children:[t&&i.jsx(ne,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&o&&" ",o&&i.jsx(ne,{variant:"body-3",as:"span",children:o})]}):i.jsxs(H,{gap:1,grow:!0,children:[t&&i.jsx(ne,{variant:"body-3",weight:"medium",children:t}),o&&i.jsx(ne,{variant:"body-3",children:o})]}),h=g=>n?i.jsxs(H,{gap:l?4:2,direction:l?"row":"column",children:[l?i.jsx(H.Item,{grow:!0,children:g}):g,n&&i.jsx(ne,{variant:"body-3",weight:"medium",children:i.jsx(H,{direction:"row",gap:3,children:n})})]}):g;return i.jsx(H,{direction:"row",gap:3,padding:4,bleed:a,borderRadius:"medium",borderColor:`${s}-faded`,backgroundColor:`${s}-faded`,className:d,attributes:z(p({},_),{role:s==="critical"?"alert":"status"}),children:r?i.jsxs(i.Fragment,{children:[i.jsx("div",{className:mc.icon,children:i.jsx(ge,{svg:r,size:5,color:m?"primary":s})}),i.jsx(H.Item,{grow:!0,children:h(u())})]}):h(u())})};Vn.displayName="Alert";const Ke=e=>{const t=c.useId();return e||t};let kt={},dt=null;const hc=e=>{kt[e]&&(e===dt&&(dt=kt[e].parentId),delete kt[e],dt===null&&(kt={}))},fc=(e,t,o)=>{kt[e]={parentId:dt,triggerRef:o,contentRef:t},dt=e},Bn=e=>{const{active:t,contentRef:o,triggerRef:r,hasTrigger:n=!0}=e,s=Ke();return c.useEffect(()=>{if(t)return fc(s,o,r),()=>hc(s)},[t,s,o,r]),c.useCallback(()=>{var u;if(!t)return!0;const l=dt?kt[dt]:void 0,a=(u=l==null?void 0:l.triggerRef)==null?void 0:u.current,d=l!=null&&l.parentId?kt[l.parentId]:void 0,_=d==null?void 0:d.contentRef.current,m=_&&a&&_.contains(a);return n&&!m?!0:!dt||dt===s},[s,t,n])},Hn=e=>{const t=e instanceof Date;if(t)return String(t);const o=JSON.stringify(e);return JSON.parse(o)},gc=(e,t=!1)=>{const o=c.useRef(t?Hn(e):e);return c.useEffect(()=>{o.current=t?Hn(e):e},[e,t]),o.current},tt=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},dr="data-rs-no-transition",bc=()=>{document.documentElement.setAttribute(dr,"true")},pc=()=>{document.documentElement.removeAttribute(dr)},vc=()=>!document.documentElement.hasAttribute(dr),yc=600,On=c.createContext({}),Wn=c.createContext(null),qn=c.createContext(null),Lt=()=>c.useContext(On),xc=()=>c.useContext(Wn),wc=()=>c.useContext(qn),Cc=On.Provider,Nc=Wn.Provider,kc=qn.Provider,zc=e=>{const j=e,{triggerElRef:t,flyoutElRef:o,triggerCoordinatesRef:r,contentGap:n,contentShift:s,onClose:l}=j,a=pe(j,["triggerElRef","flyoutElRef","triggerCoordinatesRef","contentGap","contentShift","onClose"]),{position:d="bottom",fallbackPositions:_,fallbackAdjustLayout:m,fallbackMinHeight:u,width:h,container:g}=a,[b,f]=c.useState("idle"),[y,x]=c.useState(d),v=c.useRef(null),w=c.useMemo(()=>_,[_==null?void 0:_.join(" ")]),C=c.useCallback(()=>{f("rendered")},[]),k=c.useCallback(()=>{f("hidden")},[]),E=c.useCallback(()=>{if(!o.current)return;const $=getComputedStyle(o.current).getPropertyValue("--rs-unit-x1"),M=$?parseInt($):4,D=()=>{l==null||l({}),k()};return{trigger:t.current,content:o.current,container:g,triggerCoordinates:r.current,width:h,position:d,fallbackPositions:w,fallbackAdjustLayout:m,fallbackMinHeight:u,contentGap:(n!=null?n:0)*M,contentShift:(s!=null?s:0)*M,onDeactivate:D}},[w,g,n,s,d,m,u,r,t,h,k,l,o]),N=c.useCallback(()=>{const $=E();if(!$)return;v.current=new ra($);const M=v.current.activate();x(M.position),f("visible")},[E]),S=c.useCallback(()=>{v.current&&(v.current.deactivate(),f("idle"))},[]),T=c.useCallback(()=>{const $=E();if(!v.current||!$)return;const M=v.current.update($);x(M.position)},[E]);return fe(()=>{T()},[d]),c.useMemo(()=>({position:y,status:b,updatePosition:T,render:C,hide:k,remove:S,show:N}),[C,T,k,S,N,y,b])};class Sc{constructor(){be(this,"status","cold");be(this,"timer");be(this,"warm",()=>{if(clearTimeout(this.timer),this.status==="cooling"){this.status="warm";return}this.status="warming",this.timer=setTimeout(()=>{this.status="warm",this.timer=void 0},100)});be(this,"cool",()=>{if(clearTimeout(this.timer),this.status==="warming"){this.status="cold";return}this.status="cooling",this.timer=setTimeout(()=>{this.status="cold",this.timer=void 0},500)})}}const zt=new Sc;function Ec(e,t){const[o,r,n]=t,s=(r.y-n.y)*(o.x-n.x)+(n.x-r.x)*(o.y-n.y),l=((r.y-n.y)*(e.x-n.x)+(n.x-r.x)*(e.y-n.y))/s,a=((n.y-o.y)*(e.x-n.x)+(o.x-n.x)*(e.y-n.y))/s,d=1-l-a;return l>=0&&l<=1&&a>=0&&a<=1&&d>=0&&d<=1}function Tc(e,t){const o={topLeft:{x:e.left,y:e.top},topRight:{x:e.right,y:e.top},bottomLeft:{x:e.left,y:e.bottom},bottomRight:{x:e.right,y:e.bottom}};return t!=null&&t.startsWith("bottom")?[o.topLeft,o.topRight]:t!=null&&t.startsWith("top")?[o.bottomLeft,o.bottomRight]:t!=null&&t.startsWith("start")?[o.topRight,o.bottomRight]:[o.topLeft,o.bottomLeft]}function $c(e,t,o){return document.elementsFromPoint(e.x,e.y).some(n=>t.current&&t.current.contains(n)||o.current&&o.current.contains(n))}function Mc(e){const{contentRef:t,triggerRef:o,position:r,onClose:n,origin:s}=e;if(!t.current)return n(),()=>{};const l=t.current.getBoundingClientRect(),[a,d]=Tc(l,r),_=10,m={x:s.x,y:s.y};r!=null&&r.startsWith("bottom")?m.y-=_:r!=null&&r.startsWith("top")?m.y+=_:r!=null&&r.startsWith("start")?m.x+=_:r!=null&&r.startsWith("end")&&(m.x-=_);const u=[m,a,d];let h=null;const g=()=>{document.removeEventListener("mousemove",f),h&&clearTimeout(h)},b=()=>{h&&clearTimeout(h),h=setTimeout(()=>{n(),g()},1e3)},f=y=>{const x={x:y.clientX,y:y.clientY};if($c(x,t,o)){g();return}Ec(x,u)?b():(n(),g())};return b(),document.addEventListener("mousemove",f),g}const ur=e=>{var Ol;const{triggerType:t="click",groupTimeouts:o,onOpen:r,onClose:n,children:s,disabled:l,forcePosition:a,fallbackAdjustLayout:d,fallbackMinHeight:_,trapFocusMode:m="dialog",width:u,disableHideAnimation:h,disableContentHover:g,disableCloseOnOutsideClick:b,autoFocus:f=!0,originCoordinates:y,contentGap:x=2,contentShift:v,contentMaxHeight:w,contentMaxWidth:C,contentZIndex:k,contentClassName:E,contentAttributes:N,position:S,active:T,id:j,instanceRef:$,containerRef:M,initialFocusRef:D,positionRef:P}=e,B=e.fallbackPositions===!1||a?[]:e.fallbackPositions,L=ke(r),A=ke(n),W=l===!0?!1:T,re=gc(W),Z=Lt(),{elRef:Q}=xc()||{},{elRef:U}=wc()||{},te=Z.trapFocusMode==="action-menu"||Z.trapFocusMode==="content-menu",X=c.useRef(null),oe=!!(Q!=null&&Q.current)&&((Ol=U==null?void 0:U.current)==null?void 0:Ol.contains(Q.current)),de=(!U||oe)&&Q||X,K=c.useRef(null),ue=Ke(j),ye=c.useRef(null),O=c.useRef(null),Y=c.useRef(!1),R=c.useRef(!1),he=c.useRef(!0),J=c.useRef(!1),G=c.useRef(null),se=c.useRef(y!=null?y:null);se.current=y!=null?y:null;const ie=zc({triggerElRef:P!=null?P:de,flyoutElRef:K,triggerCoordinatesRef:se,width:u,position:S,defaultActive:W,container:M==null?void 0:M.current,fallbackPositions:B,fallbackAdjustLayout:d,fallbackMinHeight:_,contentGap:x,contentShift:v,onClose:A.current}),{status:ce,updatePosition:Ce,render:Me,hide:Ie,remove:me,show:ve}=ie,xe=ce!=="idle",Ae=Bn({active:xe&&t!=="hover",contentRef:K,triggerRef:de}),De=c.useCallback(()=>{ye.current&&clearTimeout(ye.current)},[]),Qe=c.useCallback(()=>{t==="hover"&&document.querySelectorAll("[data-rs-flyout-active]").forEach(ee=>{ee!==de.current&&(ee.style.pointerEvents="none")})},[de,t]),Ve=c.useCallback(()=>{t==="hover"&&document.querySelectorAll("[data-rs-flyout-active]").forEach(ee=>{ee.style.removeProperty("pointer-events")})},[t]),Be=c.useCallback(()=>{var ee;Y.current||xe&&t!=="hover"||((ee=L.current)==null||ee.call(L),Qe())},[L,xe,t,Qe]),Ee=c.useCallback(ee=>{var vo,yo;!(t==="click"&&!Ae())&&(xe||l)&&((vo=A.current)==null||vo.call(A,{reason:ee.reason}),Ve(),ee!=null&&ee.closeParents&&((yo=Z==null?void 0:Z.handleClose)==null||yo.call(Z,{closeParents:!0,reason:ee.reason})))},[xe,Ae,t,A,l,Z,Ve]),Zo=c.useCallback(ee=>{var Yt;!Zt()||(Yt=K.current)!=null&&Yt.contains(ee.relatedTarget)||R.current||Ee({})},[Ee]),Jo=c.useCallback(()=>{t==="hover"&&!Zt()||Be()},[Be,t]),zd=c.useCallback(()=>{t==="hover"&&(J.current=!0)},[t]),cn=c.useCallback(()=>{De(),J.current?(Be(),J.current=!1):(o&&zt.warm(),ye.current=setTimeout(()=>{Be()},o&&zt.status==="warming"?yc:0))},[De,Be,o]),Sd=c.useCallback(ee=>{var Ge;ee.currentTarget===de.current&&((Ge=G.current)==null||Ge.cleanup()),cn()},[de,cn]),Ed=c.useCallback(ee=>{var Ge,Yt,vo,yo;if(!(ee.relatedTarget===K.current||ee.relatedTarget instanceof Node&&((Ge=K.current)!=null&&Ge.contains(ee.relatedTarget)))&&!(ee.relatedTarget===de.current||ee.relatedTarget instanceof Node&&((Yt=de.current)!=null&&Yt.contains(ee.relatedTarget))))if(zt.cool(),De(),(vo=G.current)==null||vo.cleanup(),t==="hover"&&xe){const Wl=ee.currentTarget===K.current&&((yo=G.current)!=null&&yo.origin)?G.current.origin:{x:ee.clientX,y:ee.clientY},jd=Mc({contentRef:K,triggerRef:de,position:ie.position,onClose:()=>Ee({}),origin:Wl});G.current={origin:Wl,cleanup:jd}}else Ee({})},[De,Ee,de,K,t,xe,ie.position]),Td=c.useCallback(()=>{xe?Ee({}):Be()},[xe,Be,Ee]),$d=()=>{R.current=!0,J.current=!0},Md=()=>{R.current=!1},Id=c.useCallback(ee=>{K.current!==ee.currentTarget||ee.propertyName!=="transform"||ce==="hidden"&&me()},[me,ce]);return fe(()=>{if(W){Me();return}l&&zt.cool(),re!==W&&(vc()&&!h&&(zt.status==="cooling"||!o)?Ie():me())},[W,re,Me,Ie,me,h,l,o]),fe(()=>{ce==="rendered"&&ve()},[ce,ve]),fe(()=>{var Ge;if(ce!=="visible"||!K.current||(Ge=O.current)!=null&&Ge.trapped||m===!1)return;const ee=f?D==null?void 0:D.current:K.current.querySelector("[role][tabindex='-1']");O.current=new It,O.current.trap(K.current,{mode:m,initialFocusEl:ee,includeTrigger:t==="hover"&&m!=="dialog"&&!te,onRelease:()=>{Ee({})}})},[ce,t,m,f]),c.useEffect(()=>{var ee;!h&&ce!=="hidden"||h&&xe||(ee=O.current)!=null&&ee.trapped&&(t==="hover"&&Zt()&&(Y.current=!0,setTimeout(()=>{Y.current=!1},100)),O.current.release({withoutFocusReturn:!he.current}),he.current=!0)},[ce,xe,t,h]),c.useEffect(()=>()=>{var ee;return(ee=O.current)==null?void 0:ee.release()},[]),c.useEffect(()=>{var ee;return xe||(ee=G.current)==null||ee.cleanup(),()=>{var Ge;return(Ge=G.current)==null?void 0:Ge.cleanup()}},[xe]),c.useImperativeHandle($,()=>({open:Be,close:()=>Ee({}),updatePosition:()=>Ce()}),[Be,Ee,Ce]),Ze({Escape:()=>Ee({reason:"escape-key"})},[Ee]),En([K,de],()=>{he.current=!1,Ee({reason:"outside-click"})},{disabled:!xe||b}),i.jsx(Cc,{value:{id:ue,flyout:ie,width:u,triggerElRef:de,flyoutElRef:K,handleClose:Ee,handleOpen:Be,handleFocus:Jo,handleBlur:Zo,handleTriggerMouseEnter:Sd,handleContentMouseEnter:cn,handleMouseLeave:Ed,handleTouchStart:zd,handleTransitionEnd:Id,handleClick:Td,handleContentMouseDown:$d,handleContentMouseUp:Md,triggerType:t,trapFocusMode:m,contentZIndex:k,contentClassName:E,contentAttributes:N,contentGap:x,contentMaxHeight:w,contentMaxWidth:C,containerRef:M,disableContentHover:g,autoFocus:f,isSubmenu:te},children:s})};ur.displayName="FlyoutControlled";const Un=e=>{const{defaultActive:t,onClose:o,onOpen:r}=e,[n,s]=c.useState(t||!1),l=d=>{s(!1),o==null||o(d)},a=()=>{s(!0),r==null||r()};return i.jsx(ur,z(p({},e),{defaultActive:void 0,active:n,onClose:l,onOpen:a}))};Un.displayName="FlyoutUncontrolled";const Yn=e=>{const{active:t}=e;return typeof t=="boolean"?i.jsx(ur,p({},e)):i.jsx(Un,p({},e))};Yn.displayName="Flyout";const Kn=c.createContext({}),_r=c.createContext({}),Ic={root:"_root_153o0_1"},Eo=e=>e?e.hasAttribute("data-rs-root")||e===document.documentElement||!e.parentElement?e:Eo(e.parentElement):document.documentElement,mr=()=>c.useContext(_r),Gn=()=>{const{colorMode:e,theme:t,setTheme:o,rootTheme:r,setRootTheme:n}=c.useContext(Kn),{mode:s,setMode:l,invertMode:a}=c.useContext(_r);return c.useMemo(()=>({theme:t,setTheme:o,rootTheme:r,setRootTheme:n,colorMode:e||s,setColorMode:l,invertColorMode:a}),[e,s,l,a,t,o,n,r])},Xn=e=>typeof e=="string"?e:` ${e.join(" ")} `,Dt=e=>i.jsx(Zn,p({},e)),Zn=e=>{const{name:t,defaultName:o,colorMode:r,scoped:n,scopeRef:s,children:l,className:a}=e,[d,_]=c.useState(!1),[m,u]=c.useState(o),h=mr(),g=Gn(),b=!g.theme,f=t||m||g.theme,y=b||n?f:g.rootTheme,x=b||n?h.mode:g.colorMode,w=r==="inverted"?x==="light"?"dark":"light":r||x,C=F(Ic.root,a),k=c.useCallback(S=>{b?u(S):g.setRootTheme(S)},[b,g]),E=c.useCallback(S=>{u(S)},[]);fe(()=>{_(!0)},[]),fe(()=>{if(!document||!b)return;const S=Eo(s==null?void 0:s.current),T=S.getAttribute("data-rs-color-mode"),j=Xn(f);return j&&S.setAttribute("data-rs-theme",j),T||S.setAttribute("data-rs-color-mode",w),()=>{S.removeAttribute("data-rs-theme"),T||S.removeAttribute("data-rs-color-mode")}},[f,w,b,s]);const N=c.useMemo(()=>({theme:f,rootTheme:y,colorMode:w,setTheme:E,setRootTheme:k}),[f,w,E,k,y]);return i.jsx(Kn.Provider,{value:N,children:i.jsx("div",{className:C,ref:s,"data-rs-root":n?!0:void 0,"data-rs-theme":b?void 0:Xn(f),"data-rs-color-mode":b||!r&&!d?void 0:w,children:l})})};Dt.displayName="Theme";const Jn=e=>{const{defaultMode:t,mode:o,scopeRef:r,children:n}=e,[s,l]=c.useState(t),a=mr(),d=c.useCallback(m=>{Eo(r==null?void 0:r.current).setAttribute("data-rs-color-mode",m),a.mode&&!r&&a.setMode(m),l(m)},[r,a]);fe(()=>{bc(),tt(()=>{pc()})},[s,o]),fe(()=>{const m=Eo(r==null?void 0:r.current).getAttribute("data-rs-color-mode");m&&d(m)},[d,r]);const _=c.useMemo(()=>({mode:o||s,setMode:d,invertMode:()=>{d(s==="light"?"dark":"light")}}),[s,o,d]);return i.jsx(_r.Provider,{value:_,children:n})};Jn.displayName="GlobalColorMode";const jc={root:"_root_hqrz2_1"},Qn=c.createContext({}),Lc=()=>c.useContext(Qn),Rn=e=>{var u;const{children:t,targetRef:o}=e,r=Ct(),n=c.useRef(null),s=(u=n.current)==null?void 0:u.getRootNode(),a=s instanceof ShadowRoot?s:document.body,d=Lc(),_=o||d.scopeRef,m=(_==null?void 0:_.current)||a;return fe(()=>(r.activate(),()=>r.deactivate()),[]),[He.createPortal(i.jsx(Dt,{children:t}),m),!r.active&&i.jsx("div",{ref:n,className:jc.root},"root")]};function es(e){const{children:t}=e,o=c.useRef(null);return i.jsx(Qn.Provider,{value:{scopeRef:o},children:t(o)})}Rn.displayName="Portal",es.displayName="PortalScope";const To=Rn;To.Scope=es;const vt={content:"_content_7wued_1","--hover":"_--hover_7wued_19","--hover-disabled":"_--hover-disabled_7wued_23",inner:"_inner_7wued_24","--width-trigger":"_--width-trigger_7wued_52","--position-top":"_--position-top_7wued_56","--position-top-end":"_--position-top-end_7wued_57","--position-top-start":"_--position-top-start_7wued_58","--position-bottom":"_--position-bottom_7wued_62","--position-bottom-end":"_--position-bottom-end_7wued_63","--position-bottom-start":"_--position-bottom-start_7wued_64","--position-start":"_--position-start_7wued_78","--position-start-top":"_--position-start-top_7wued_79","--position-start-bottom":"_--position-start-bottom_7wued_80","--position-end":"_--position-end_7wued_84","--position-end-top":"_--position-end-top_7wued_85","--position-end-bottom":"_--position-end-bottom_7wued_86","--visible":"_--visible_7wued_100","--animated":"_--animated_7wued_105"},ts=e=>{const{children:t,className:o,attributes:r}=e,{flyout:n,id:s,flyoutElRef:l,handleTransitionEnd:a,triggerType:d,handleContentMouseEnter:_,handleMouseLeave:m,handleContentMouseDown:u,handleContentMouseUp:h,contentClassName:g,contentAttributes:b,contentMaxHeight:f,contentMaxWidth:y,contentZIndex:x,trapFocusMode:v,disableContentHover:w,autoFocus:C,width:k,isSubmenu:E}=Lt(),{status:N,position:S}=n,[T,j]=c.useState(!1);if(fe(()=>{j(!0)},[]),N==="idle"||!T)return null;const $=F(vt.content,d==="hover"&&vt["--hover"],N==="visible"&&vt["--visible"],(zt.status==="cooling"||!zt.timer||E||d!=="hover")&&vt["--animated"],S&&vt[`--position-${S}`],k==="trigger"&&vt["--width-trigger"],d==="hover"&&w&&vt["--hover-disabled"]),M=F(vt.inner,o,g);let D=r==null?void 0:r.role;d==="hover"?D="tooltip":v==="dialog"?D="dialog":v==="selection-menu"?D="listbox":v==="action-menu"?D="menu":v==="action-bar"&&(D="menubar");const P=i.jsx(kc,{value:{elRef:l},children:i.jsx("div",{className:$,style:{"--rs-flyout-max-h":f,"--rs-flyout-max-w":y,"--rs-flyout-z-index":x},ref:l,onTransitionEnd:a,onMouseEnter:d==="hover"?_:void 0,onMouseLeave:d==="hover"?m:void 0,onMouseDown:u,onTouchStart:u,onMouseUp:h,onTouchEnd:h,children:i.jsx("div",z(p({role:D},r),{id:s,tabIndex:C?void 0:-1,"aria-modal":D==="dialog"?!0:void 0,style:p(p({},r==null?void 0:r.style),b==null?void 0:b.style),className:M,children:t}))})});return i.jsx(To,{children:P})};ts.displayName="Flyout.Content";const os=e=>{const{children:t}=e,{id:o,triggerElRef:r,triggerType:n,flyout:s,handleFocus:l,handleBlur:a,handleTriggerMouseEnter:d,handleMouseLeave:_,handleTouchStart:m,handleClick:u,trapFocusMode:h,isSubmenu:g}=Lt(),b=s.status!=="idle",f={ref:r,"data-rs-flyout-active":b};return(n==="click"||h==="action-menu")&&(f.onClick=u),n==="hover"&&(f.onMouseEnter=d,f.onMouseLeave=_,f.onTouchStart=m),(n==="hover"&&!g||n==="focus")&&(f.onFocus=l,f.onBlur=a,f["aria-describedby"]=b?o:void 0),(n==="click"||n==="focus"||h==="action-menu")&&(h==="dialog"?f["aria-haspopup"]="dialog":h==="selection-menu"?(f["aria-haspopup"]="listbox",f["aria-autocomplete"]="list"):f["aria-haspopup"]="menu",f["aria-expanded"]=b,f["aria-controls"]=b?o:void 0),i.jsx(Nc,{value:{elRef:r},children:t(f)})};os.displayName="Flyout.Trigger";const ut=Yn;ut.Trigger=os,ut.Content=ts;const St={root:"_root_1ldab_2",touch:"_touch_1ldab_21","--inset":"_--inset_1ldab_44","--disabled-focus-ring":"_--disabled-focus-ring_1ldab_48","--radius-inherit":"_--radius-inherit_1ldab_52","--disabled":"_--disabled_1ldab_48","--full-width":"_--full-width_1ldab_88"},je=c.forwardRef((e,t)=>{const h=e,{insetFocus:o,disableFocusRing:r,borderRadius:n,fullWidth:s,touchHitbox:l,children:a,className:d,disabled:_}=h,m=pe(h,["insetFocus","disableFocusRing","borderRadius","fullWidth","touchHitbox","children","className","disabled"]),u=[St.root,d,_&&St["--disabled"],n&&St[`--radius-${n}`],o&&St["--inset"],r&&St["--disabled-focus-ring"],s&&St["--full-width"]];return i.jsxs(xn,z(p({},m),{className:u,disabled:_,ref:t,children:[l&&!_&&i.jsx("span",{className:St.touch}),a]}))});je.displayName="Actionable";const $o={root:"_root_1f1sc_15","rs-reshaped-loader":"_rs-reshaped-loader_1f1sc_1",inner:"_inner_1f1sc_44","--color-inherit":"_--color-inherit_1f1sc_63","--color-primary":"_--color-primary_1f1sc_67","--color-positive":"_--color-positive_1f1sc_71","--color-critical":"_--color-critical_1f1sc_75","--size-small":"_--size-small_1f1sc_1","--size-medium":"_--size-medium_1f1sc_1","--size-large":"_--size-large_1f1sc_1","--size-small--m":"_--size-small--m_1f1sc_1","--size-medium--m":"_--size-medium--m_1f1sc_1","--size-large--m":"_--size-large--m_1f1sc_1","--size-small--l":"_--size-small--l_1f1sc_1","--size-medium--l":"_--size-medium--l_1f1sc_1","--size-large--l":"_--size-large--l_1f1sc_1","--size-small--xl":"_--size-small--xl_1f1sc_1","--size-medium--xl":"_--size-medium--xl_1f1sc_1","--size-large--xl":"_--size-large--xl_1f1sc_1"},hr=e=>{const{size:t="small",color:o="primary",className:r,attributes:n}=e,s=e.ariaLabel||(n==null?void 0:n["aria-label"]),l=F($o.root,r,le($o,"--size",t),o&&$o[`--color-${o}`]);return i.jsx("span",z(p({},n),{role:"progressbar","aria-live":s?"assertive":void 0,"aria-label":s,className:l,children:i.jsx("span",{className:$o.inner})}))};hr.displayName="Loader";const Le={root:"_root_lcajc_5","--loading":"_--loading_lcajc_59","--highlighted":"_--highlighted_lcajc_59","--disabled":"_--disabled_lcajc_59",text:"_text_lcajc_72",icon:"_icon_lcajc_78","--icon-position-end":"_--icon-position-end_lcajc_87",loader:"_loader_lcajc_99","--icon-only":"_--icon-only_lcajc_107","--rounded":"_--rounded_lcajc_125","--size-small":"_--size-small_lcajc_1","--size-medium":"_--size-medium_lcajc_1","--size-large":"_--size-large_lcajc_1","--size-xlarge":"_--size-xlarge_lcajc_1","--full-width":"_--full-width_lcajc_174","--variant-solid":"_--variant-solid_lcajc_186","--color-neutral":"_--color-neutral_lcajc_187","--color-primary":"_--color-primary_lcajc_296","--color-critical":"_--color-critical_lcajc_297","--color-positive":"_--color-positive_lcajc_298","--color-media":"_--color-media_lcajc_201","--variant-faded":"_--variant-faded_lcajc_208","--color-inherit":"_--color-inherit_lcajc_224","--variant-outline":"_--variant-outline_lcajc_232","--variant-ghost":"_--variant-ghost_lcajc_268","--elevated":"_--elevated_lcajc_288",group:"_group_lcajc_349",aligner:"_aligner_lcajc_445","--size-small--m":"_--size-small--m_lcajc_1","--size-medium--m":"_--size-medium--m_lcajc_1","--size-large--m":"_--size-large--m_lcajc_1","--size-xlarge--m":"_--size-xlarge--m_lcajc_1","--full-width-true--m":"_--full-width-true--m_lcajc_1","--full-width-false--m":"_--full-width-false--m_lcajc_1","--size-small--l":"_--size-small--l_lcajc_1","--size-medium--l":"_--size-medium--l_lcajc_1","--size-large--l":"_--size-large--l_lcajc_1","--size-xlarge--l":"_--size-xlarge--l_lcajc_1","--full-width-true--l":"_--full-width-true--l_lcajc_1","--full-width-false--l":"_--full-width-false--l_lcajc_1","--size-small--xl":"_--size-small--xl_lcajc_1","--size-medium--xl":"_--size-medium--xl_lcajc_1","--size-large--xl":"_--size-large--xl_lcajc_1","--size-xlarge--xl":"_--size-xlarge--xl_lcajc_1","--full-width-true--xl":"_--full-width-true--xl_lcajc_1","--full-width-false--xl":"_--full-width-false--xl_lcajc_1"},rs=c.forwardRef((e,t)=>{const{variant:o="solid",color:r="neutral",elevated:n,highlighted:s,fullWidth:l,loading:a,loadingAriaLabel:d,disabled:_,type:m,href:u,size:h="medium",children:g,rounded:b,onClick:f,icon:y,endIcon:x,stopPropagation:v,as:w,render:C,className:k,attributes:E}=e,N=(y||x)&&!g,S=F(Le.root,k,r&&Le[`--color-${r}`],o&&Le[`--variant-${o}`],le(Le,"--size",h),le(Le,"--full-width",l),n&&o!=="ghost"&&Le["--elevated"],b&&Le["--rounded"],_&&Le["--disabled"],a&&Le["--loading"],s&&Le["--highlighted"],N&&Le["--icon-only"]),T=j=>{if(!(j==="start"&&y||j==="end"&&x))return null;const P=F(Le.icon,j==="end"&&Le["--icon-position-end"]),B=ae(h,L=>L==="large"?5:L==="xlarge"?6:4);return i.jsx(ge,{className:P,svg:j==="start"?y:x,size:B,autoWidth:!0})};return i.jsxs(je,{disabled:_||a,className:S,attributes:z(p({},E),{"data-rs-aligner-target":!0}),type:m,onClick:f,href:u,ref:t,as:w,stopPropagation:v,render:C,children:[a&&i.jsx("div",{className:Le.loader,children:i.jsx(hr,{color:"inherit",attributes:{"aria-label":d}})}),T("start"),g&&i.jsx("span",{className:Le.text,children:g}),T("end")]})});rs.displayName="Button";const ns={root:"_root_1quhz_2","--side-all":"_--side-all_1quhz_7","--side-start":"_--side-start_1quhz_11","--side-inline":"_--side-inline_1quhz_12","--side-end":"_--side-end_1quhz_16","--side-top":"_--side-top_1quhz_21","--side-block":"_--side-block_1quhz_22","--side-bottom":"_--side-bottom_1quhz_26"},to=e=>{const{side:t="all",children:o,className:r,attributes:n}=e,s=typeof t=="string"?[t]:t,l=F(ns.root,s.map(a=>ns[`--side-${a}`]),r);return i.jsx("div",z(p({},n),{className:l,children:o}))};to.displayName="Aligner";const ss=e=>i.jsx(to,z(p({},e),{side:e.side||e.position,className:[Le.aligner,e.className]}));ss.displayName="Button.Aligner";const is=e=>{const{children:t,className:o,attributes:r}=e,n=F(Le.group,o);return i.jsx("div",z(p({},r),{className:n,role:"group",children:t}))};is.displayName="Button.Group";const Te=rs;Te.Aligner=ss,Te.Group=is;const ls=()=>i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),i.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),oo={root:"_root_1q0pg_1",close:"_close_1q0pg_9","--variant-media":"_--variant-media_1q0pg_16","--hide-close":"_--hide-close_1q0pg_17","--align-center":"_--align-center_1q0pg_26"},fr=e=>{const{children:t,align:o,onClose:r,hideCloseButton:n,variant:s,closeAriaLabel:l,className:a,attributes:d}=e,_=F(oo.root,a,s&&oo[`--variant-${s}`],o&&oo[`--align-${o}`],n&&oo["--hide-close"]),m=s==="media"?"div":Te.Aligner;return i.jsxs("div",z(p({},d),{className:_,children:[t,!n&&i.jsx(m,{className:oo.close,children:i.jsx(Te,z(p({size:"small"},s==="media"?{color:"media",variant:"faded"}:{variant:"ghost"}),{onClick:()=>r==null?void 0:r(),attributes:{"aria-label":r?l:void 0},icon:ls}))})]}))};fr.displayName="Dismissible";const ro={content:"_content_ymj03_1","content--variant-elevated":"_content--variant-elevated_ymj03_9","content--elevation-raised":"_content--elevation-raised_ymj03_16","content--variant-headless":"_content--variant-headless_ymj03_20","content--radius-small":"_content--radius-small_ymj03_24","content--has-width":"_content--has-width_ymj03_28"},as=e=>{var g,b;const h=e,{width:t,variant:o="elevated",triggerType:r="click",position:n="bottom",elevation:s,borderRadius:l}=h,a=pe(h,["width","variant","triggerType","position","elevation","borderRadius"]),d=(g=e.padding)!=null?g:o==="headless"?0:4,_=(b=e.trapFocusMode)!=null?b:r==="hover"?"content-menu":void 0,m=et({padding:d}),u=F(ro.content,!!t&&ro["content--has-width"],o&&ro[`content--variant-${o}`],s&&ro[`content--elevation-${s}`],l&&ro[`content--radius-${l}`],m.classNames);return i.jsx(ut,z(p({},a),{position:n,trapFocusMode:_,triggerType:r,width:t,contentClassName:u,contentAttributes:{style:p({},m.variables)}}))},cs=e=>{const{handleClose:t}=Lt();return i.jsx(fr,z(p({},e),{onClose:()=>t({})}))};as.displayName="Popover",cs.displayName="Popover.Dismissible";const _t=as;_t.Dismissible=cs,_t.Trigger=ut.Trigger,_t.Content=ut.Content;const it={root:"_root_44o4b_1",icon:"_icon_44o4b_22",content:"_content_44o4b_27","--rounded-corners":"_--rounded-corners_44o4b_32","--size-small":"_--size-small_44o4b_1","--size-medium":"_--size-medium_44o4b_1","--size-large":"_--size-large_44o4b_1","--color-neutral":"_--color-neutral_44o4b_74","--selected":"_--selected_44o4b_77","--highlighted":"_--highlighted_44o4b_79","--color-critical":"_--color-critical_44o4b_90","--color-primary":"_--color-primary_44o4b_106","--disabled":"_--disabled_44o4b_133",aligner:"_aligner_44o4b_154","--rounded-corners-true--m":"_--rounded-corners-true--m_44o4b_1","--rounded-corners-false--m":"_--rounded-corners-false--m_44o4b_1","--size-small--m":"_--size-small--m_44o4b_1","--size-medium--m":"_--size-medium--m_44o4b_1","--size-large--m":"_--size-large--m_44o4b_1","--rounded-corners-true--l":"_--rounded-corners-true--l_44o4b_1","--rounded-corners-false--l":"_--rounded-corners-false--l_44o4b_1","--size-small--l":"_--size-small--l_44o4b_1","--size-medium--l":"_--size-medium--l_44o4b_1","--size-large--l":"_--size-large--l_44o4b_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_44o4b_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_44o4b_1","--size-small--xl":"_--size-small--xl_44o4b_1","--size-medium--xl":"_--size-medium--xl_44o4b_1","--size-large--xl":"_--size-large--xl_44o4b_1"},ds=c.forwardRef((e,t)=>{const{icon:o,startSlot:r,endSlot:n,children:s,color:l="primary",selected:a,highlighted:d,disabled:_,onClick:m,href:u,size:h="medium",roundedCorners:g,stopPropagation:b,as:f,render:y,className:x,attributes:v}=e,w=F(it.root,x,le(it,"--size",h),le(it,"--rounded-corners",g),l&&it[`--color-${l}`],a&&it["--selected"],_&&it["--disabled"],d&&it["--highlighted"]),C=ae(h,E=>E==="large"?3:2),k=ae(h,E=>E==="large"?5:4);return i.jsx(je,{disabled:_,className:w,attributes:z(p({},v),{"data-rs-aligner-target":!0}),onClick:m,href:u,ref:t,as:f,stopPropagation:b,render:y,children:i.jsxs(H,{direction:"row",gap:C,align:"center",children:[o&&i.jsx(ge,{svg:o,className:it.icon,size:k}),!o&&r,s&&i.jsx(H.Item,{grow:!0,className:it.content,children:s}),n]})})});ds.displayName="MenuItem";const us=e=>i.jsx(to,z(p({},e),{side:e.side||"inline",className:[it.aligner,e.className]}));us.displayName="MenuItem.Aligner";const gr=ds;gr.Aligner=us;const Dc="Enter",no="ArrowUp",so="ArrowDown",io="ArrowRight",lo="ArrowLeft",Pc="Backspace",Pt=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"9 18 15 12 9 6"})}),Mo={menu:"_menu_f04ws_1",section:"_section_f04ws_5",item:"_item_f04ws_11",arrow:"_arrow_f04ws_19"},br=c.createContext(null),_s=c.createContext(!1),pr=e=>{const a=e,{children:t,position:o="bottom-start",triggerType:r="click",trapFocusMode:n="action-menu",borderRadius:s="small"}=a,l=pe(a,["children","position","triggerType","trapFocusMode","borderRadius"]);return i.jsx(_t,z(p({},l),{position:o,padding:0,trapFocusMode:n,triggerType:r,borderRadius:s,disableHideAnimation:r!=="hover",children:t}))},ms=e=>{const{children:t,attributes:o,className:r}=e,{flyout:n}=Lt(),s=c.useContext(br),[l]=pt(),{ref:a}=Ze({[l?io:lo]:()=>{var m;(m=s==null?void 0:s.current)==null||m.close()}},[s==null?void 0:s.current],{disabled:n.status==="idle",ref:o==null?void 0:o.ref}),d=F(Mo.menu,r),_=m=>{var u;m.stopPropagation(),(u=o==null?void 0:o.onClick)==null||u.call(o,m)};return i.jsx(_t.Content,{className:d,attributes:z(p({},o),{ref:a,onClick:_}),children:t})},hs=e=>{const{children:t}=e;return i.jsx("div",{className:Mo.section,role:"group",children:t})},vr=e=>{const{onClick:t}=e,{handleClose:o}=Lt(),r=c.useContext(_s),n=s=>{o&&!r&&o({closeParents:!0,reason:"item-selection"}),t&&t(s)};return i.jsx(gr,z(p({},e),{roundedCorners:!0,className:[Mo.item,e.className],attributes:p({role:"menuitem"},e.attributes),onClick:n}))},fs=e=>{const l=e,{children:t,position:o="end-top",contentGap:r=.5}=l,n=pe(l,["children","position","contentGap"]),s=c.useRef(null);return i.jsx(br.Provider,{value:s,children:i.jsx(pr,z(p({},n),{triggerType:"hover",position:o,contentGap:r,instanceRef:s,children:t}))})},Fc=e=>{const a=e,{children:t,attributes:o}=a,r=pe(a,["children","attributes"]),n=c.useContext(br),[s]=pt(),{ref:l}=Ze({[s?lo:io]:()=>{var d;(d=n==null?void 0:n.current)==null||d.open()}},[],{ref:o==null?void 0:o.ref,preventDefault:!0});return i.jsx(vr,z(p({},r),{attributes:z(p({},o),{ref:l}),endSlot:i.jsx(ge,{autoWidth:!0,svg:Pt,className:Mo.arrow}),children:t}))},gs=e=>{const r=e,{attributes:t}=r,o=pe(r,["attributes"]);return i.jsx(_s.Provider,{value:!0,children:i.jsx(_t.Trigger,{children:n=>i.jsx(Fc,z(p({},o),{attributes:p(p({},t),n)}))})})};pr.displayName="DropdownMenu",ms.displayName="DropdownMenu.Content",hs.displayName="DropdownMenu.Section",vr.displayName="DropdownMenu.Item",fs.displayName="DropdownMenu.SubMenu",gs.displayName="DropdownMenu.SubTrigger";const Ne=pr;Ne.Dismissible=_t.Dismissible,Ne.Trigger=_t.Trigger,Ne.Content=ms,Ne.Section=hs,Ne.Item=vr,Ne.SubMenu=fs,Ne.SubTrigger=gs;const bs=c.createContext({attributes:{}}),Ac=bs.Provider,ao=()=>c.useContext(bs),ot=()=>{const{attributes:e,required:t,hasError:o,disabled:r}=ao();return{attributes:e,required:t,hasError:o,disabled:r}},yr=(e,t)=>`${e}-${t||"caption"}`,ps=e=>{const{children:t,id:o,required:r,hasError:n,group:s,disabled:l,size:a}=e,d=Ke(o),_=s?"fieldset":"div",[m,u]=c.useState(!1),[h,g]=c.useState(!1),b=[m&&yr(d),h&&yr(d,"error")].filter(Boolean).join(" "),f={id:d,"aria-describedby":b},y=()=>{g(!0)},x=()=>{u(!0)};return i.jsx(_,{children:i.jsx(Ac,{value:{required:r,hasError:n,errorRef:y,helperRef:x,attributes:f,group:s,disabled:l,size:a},children:t})})};ps.displayName="FormControl";const vs={label:"_label_1v514_5",caption:"_caption_1v514_14"},ys=e=>{const{children:t,variant:o,disabled:r}=e,{attributes:n,size:s,helperRef:l,errorRef:a}=ao(),d=yr(n.id,o),_=o==="error"?"critical":"neutral-faded",m=o==="error"?a:l;return i.jsx(ne,{as:"span",variant:s==="large"?"body-3":"caption-1",color:r&&!o?"disabled":_,attributes:{id:d,role:"alert","aria-disabled":r,ref:m},className:vs.caption,children:t})},xs=e=>{const{children:t}=e,{hasError:o}=ao();return o?i.jsx(ys,{variant:"error",children:t}):null};xs.displayName="FormControl.Error";const ws=e=>{const{children:t}=e,{disabled:o}=ao();return i.jsx(ys,{disabled:o,children:t})};ws.displayName="FormControl.Helper";const Cs=e=>{const{children:t}=e,{attributes:o,required:r,group:n,disabled:s,size:l}=ao(),a=`${o.id}-label`,d=n?"legend":"label";return i.jsxs(ne,{variant:l==="large"?"body-2":"body-3",weight:"medium",className:vs.label,color:s?"disabled":void 0,"aria-disabled":s,children:[i.jsx(d,{id:a,htmlFor:n?void 0:o.id,children:t}),r&&i.jsx(ne,{color:s?"disabled":"critical",as:"span",children:"*"})]})};Cs.displayName="FormControl.Label";const Io=ps;Io.Label=Cs,Io.Helper=ws,Io.Error=xs;const Pe={root:"_root_1rtvh_1",icon:"_icon_1rtvh_23","--focused":"_--focused_1rtvh_24","--multiline":"_--multiline_1rtvh_28",input:"_input_1rtvh_31","--rounded":"_--rounded_1rtvh_36",affix:"_affix_1rtvh_39",inner:"_inner_1rtvh_50",slot:"_slot_1rtvh_89","icon--position-end":"_icon--position-end_1rtvh_102","affix--position-end":"_affix--position-end_1rtvh_103","slot--position-end":"_slot--position-end_1rtvh_104","slot--position-start":"_slot--position-start_1rtvh_108","affix--position-start":"_affix--position-start_1rtvh_119","--disabled":"_--disabled_1rtvh_144","--size-small":"_--size-small_1rtvh_1","--size-medium":"_--size-medium_1rtvh_1","--size-large":"_--size-large_1rtvh_1","--size-xlarge":"_--size-xlarge_1rtvh_1","--variant-faded":"_--variant-faded_1rtvh_202","--variant-ghost":"_--variant-ghost_1rtvh_208","--variant-headless":"_--variant-headless_1rtvh_214","--status-error":"_--status-error_1rtvh_221","--size-small--m":"_--size-small--m_1rtvh_1","--size-medium--m":"_--size-medium--m_1rtvh_1","--size-large--m":"_--size-large--m_1rtvh_1","--size-xlarge--m":"_--size-xlarge--m_1rtvh_1","--size-small--l":"_--size-small--l_1rtvh_1","--size-medium--l":"_--size-medium--l_1rtvh_1","--size-large--l":"_--size-large--l_1rtvh_1","--size-xlarge--l":"_--size-xlarge--l_1rtvh_1","--size-small--xl":"_--size-small--xl_1rtvh_1","--size-medium--xl":"_--size-medium--xl_1rtvh_1","--size-large--xl":"_--size-large--xl_1rtvh_1","--size-xlarge--xl":"_--size-xlarge--xl_1rtvh_1"},Ns=e=>{const{slot:t,icon:o,size:r,affix:n,position:s,id:l}=e;if(!o&&!t&&!n)return null;const a=c.isValidElement(t)&&t.type===c.Fragment?t.props.children:t,d=t&&c.Children.map(a,h=>i.jsx("div",{className:F(Pe.slot,Pe[`slot--position-${s}`]),children:h},"slot")),_=o&&i.jsx("label",{className:F(Pe.icon,Pe[`icon--position-${s}`]),htmlFor:l,children:i.jsx(ge,{size:ae(r,h=>h==="large"?5:h==="xlarge"?6:4),svg:o,autoWidth:!0})},"icon"),m=n&&i.jsx("span",{className:F(Pe.affix,Pe[`affix--position-${s}`]),children:n},"affix");return(s==="start"?[_,d,m]:[_,m,d]).filter(Boolean)},ks=e=>{var B;const{onChange:t,onFocus:o,onBlur:r,name:n,value:s,defaultValue:l,placeholder:a,icon:d,endIcon:_,startSlot:m,endSlot:u,startSlotPadding:h,endSlotPadding:g,prefix:b,suffix:f,size:y="medium",variant:x="outline",focused:v,multiline:w,rounded:C,className:k,attributes:E}=e,N=ot(),S=Ke(e.id),T=(N==null?void 0:N.attributes.id)||((B=e.inputAttributes)==null?void 0:B.id)||S,j=(N==null?void 0:N.disabled)||e.disabled,$=(N==null?void 0:N.hasError)||e.hasError,M=p(p({},e.inputAttributes),N==null?void 0:N.attributes),D=F(Pe.root,k,y&&le(Pe,"--size",y),$&&Pe["--status-error"],j&&Pe["--disabled"],v&&Pe["--focused"],w&&Pe["--multiline"],C&&Pe["--rounded"],x&&Pe[`--variant-${x}`]),P=L=>{t&&t({name:n,value:L.target.value,event:L})};return i.jsxs("div",z(p({},E),{style:z(p({},E==null?void 0:E.style),{"--rs-text-field-start-slot-padding":h!==void 0&&h>=0?`calc(var(--rs-unit-x1) * ${h})`:void 0,"--rs-text-field-end-slot-padding":g!==void 0&&g>=0?`calc(var(--rs-unit-x1) * ${g})`:void 0}),"data-rs-aligner-target":!0,className:D,children:[i.jsx(Ns,{position:"start",icon:d,slot:m,size:y,affix:b,id:S}),i.jsxs("div",{className:Pe.inner,children:[i.jsx("input",z(p({type:"text",autoComplete:"off"},M),{className:F(Pe.input,M.className),disabled:j,name:n,placeholder:a,value:s,defaultValue:l,onChange:P,onFocus:o||(M==null?void 0:M.onFocus),onBlur:r||(M==null?void 0:M.onBlur),id:T})),i.jsx(Ns,{position:"end",icon:_,slot:u,size:y,affix:f,id:S})]})]}))};ks.displayName="TextField";const jo=ks;jo.Aligner=to;const Vc={"item--disabled":"_item--disabled_1vi4i_1"},zs=c.createContext({}),Ss=e=>{var ye;const ue=e,{children:t,onChange:o,onInput:r,onItemSelect:n,name:s,containerRef:l,instanceRef:a,onBackspace:d,onEnter:_,active:m,onOpen:u,onClose:h,fallbackAdjustLayout:g,fallbackMinWidth:b,fallbackMinHeight:f,contentMaxHeight:y,contentZIndex:x}=ue,v=pe(ue,["children","onChange","onInput","onItemSelect","name","containerRef","instanceRef","onBackspace","onEnter","active","onOpen","onClose","fallbackAdjustLayout","fallbackMinWidth","fallbackMinHeight","contentMaxHeight","contentZIndex"]),[w,C]=c.useState(),k=ke(d),E=c.useRef(null),N=c.useRef(null),S=(ye=v.inputAttributes)==null?void 0:ye.ref,T=S&&typeof S!="string"&&"current"in S?S:N,[j,$]=c.useState(!1),M=!!c.Children.toArray(t).filter(Boolean).length,D=c.useRef(!1),P=ke(u),B=ke(h),L=ke(o),A=ke(n),W=ke(_),re=M&&(m!=null?m:j),Z=c.useCallback(()=>{D.current=!0,setTimeout(()=>{D.current=!1},100)},[]),Q=c.useCallback(()=>{var O;D.current||($(!0),(O=P.current)==null||O.call(P))},[P]),U=O=>{var Y;$(!1),(Y=B.current)==null||Y.call(B,O)},te=c.useCallback(O=>{var Y,R;(Y=L.current)==null||Y.call(L,{value:O.value,name:s}),(R=A.current)==null||R.call(A,O),Z()},[Z,L,A,s]),X=O=>{o==null||o(O),Q()},oe=O=>{var Y,R;r==null||r({value:O.currentTarget.value,name:s,event:O}),(R=(Y=v.inputAttributes)==null?void 0:Y.onInput)==null||R.call(Y,O)},$e=()=>{var O;Z(),(O=T.current)==null||O.focus()},de=c.useCallback(()=>{const O=E.current;return O?Array.from(O.querySelectorAll("[role=option]:not([disabled])")):[]},[]);Ze({[Dc]:()=>{var R;const Y=de().find(he=>he.id===w);Y==null||Y.click(),(R=W.current)==null||R.call(W)},[Pc]:()=>{var O;(O=k.current)==null||O.call(k)}},[de,W,k,w],{ref:T}),Ze({[no]:()=>{const O=de();if(O.length){const Y=O.findIndex(he=>he.id===w),R=O.at(Y-1)||O.at(-1);C(R.id)}},[so]:()=>{Q();const O=de();if(O.length){const Y=O.findIndex(he=>he.id===w),R=O.at(Y+1)||O.at(0);C(R.id)}}},[Q,de,w],{ref:T,preventDefault:!0}),fe(()=>{re&&requestAnimationFrame(()=>{var R;const Y=(R=de()[0])==null?void 0:R.id;Y&&C(Y)})},[re]);const K=c.useMemo(()=>({onItemClick:te,highlightedId:w,setHighlightedId:C}),[w,te]);return i.jsx(zs.Provider,{value:K,children:i.jsxs(Ne,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:!1,active:re,onClose:U,onOpen:Q,containerRef:l,fallbackAdjustLayout:g,fallbackMinWidth:b,fallbackMinHeight:f,contentMaxHeight:y,contentZIndex:x,disableHideAnimation:!0,instanceRef:a,children:[i.jsx(Ne.Trigger,{children:R=>{var he=R,{ref:O}=he,Y=pe(he,["ref"]);return i.jsx(jo,z(p({},v),{name:s,onChange:X,focused:re,attributes:z(p({},v.attributes),{ref:O,onClick:Y.onFocus}),inputAttributes:z(p(p({},v.inputAttributes),Y),{onFocus:J=>{var G,se,ie;(G=Y.onFocus)==null||G.call(Y),(se=v.onFocus)==null||se.call(v,J),D.current||(ie=T.current)==null||ie.select()},onInput:oe,onClick:Y.onFocus,ref:T,role:"combobox","aria-activedescendant":w,"aria-haspopup":"listbox","aria-autocomplete":"list"})}))}}),i.jsx(Ne.Content,{attributes:{onClick:$e,role:"listbox",ref:E},children:t})]})})},Es=e=>{const u=e,{value:t,data:o,onClick:r,disabled:n}=u,s=pe(u,["value","data","onClick","disabled"]),{onItemClick:l,highlightedId:a}=c.useContext(zs),d=Ke(),_=a===d,m=h=>{r==null||r(h),l({value:t,data:o})};return i.jsx(Ne.Item,z(p({},s),{className:[n&&Vc["item--disabled"],s.className],highlighted:_,disabled:n,attributes:z(p({},s.attributes),{role:"option",id:d,tabIndex:_?0:-1}),onClick:m}))};Ss.displayName="Autocomplete",Es.displayName="Autocomplete.Item";const Ts=Ss;Ts.Item=Es;const co={root:"_root_1eg8e_1",image:"_image_1eg8e_5",fallback:"_fallback_1eg8e_17","--outline":"_--outline_1eg8e_25","image--display-mode-cover":"_image--display-mode-cover_1eg8e_37","image--display-mode-contain":"_image--display-mode-contain_1eg8e_41"},xr=e=>{const{src:t,alt:o,width:r,maxWidth:n,height:s,aspectRatio:l,onLoad:a,onError:d,fallback:_,outline:m,displayMode:u="cover",borderRadius:h,className:g,attributes:b,imageAttributes:f,renderImage:y}=e,[x,v]=c.useState("loading"),w=et({radius:h,width:r,height:s,maxWidth:n,aspectRatio:l}),C=F(co.root,w.classNames,m&&co["--outline"],g),k=F([co.image,u&&co[`image--display-mode-${u}`]]),E=(x==="error"||!t)&&!!_,N=p(p({},b==null?void 0:b.style),w.variables),S=M=>{var D;v("success"),a==null||a(M),(D=f==null?void 0:f.onLoad)==null||D.call(f,M)},T=M=>{var D;v("error"),d==null||d(M),(D=f==null?void 0:f.onError)==null||D.call(f,M)};if(c.useEffect(()=>{v("loading")},[t]),E){if(typeof _=="string"){const M=z(p({},b),{src:_!=null?_:"",alt:o!=null?o:"",role:o?void 0:"presentation",className:C,style:N});return y?y(M):i.jsx("img",p({},M))}return i.jsx("div",z(p({},b),{className:F([co.fallback,C]),style:N,children:_}))}const j=z(p(p({},b),f),{src:t!=null?t:"",alt:o!=null?o:"",role:o?void 0:"presentation",onLoad:S,onError:T,className:m?k:F([k,C]),style:N}),$=y?y(j):i.jsx("img",p({},j));return m?i.jsx("div",z(p({},b),{className:C,style:N,children:$})):$};xr.displayName="Image";const wr={root:"_root_1de3p_1","--variant-faded":"_--variant-faded_1de3p_13","--color-neutral":"_--color-neutral_1de3p_14","--color-critical":"_--color-critical_1de3p_18","--color-positive":"_--color-positive_1de3p_22","--color-warning":"_--color-warning_1de3p_26","--color-primary":"_--color-primary_1de3p_30"},$s=e=>{const{color:t="neutral",variant:o,src:r,size:n=12,squared:s,initials:l,icon:a,className:d,renderImage:_,imageAttributes:m,attributes:u}=e,h=e.alt||(m==null?void 0:m.alt),g=s?ae(n,y=>y>=24?"large":y>=12?"medium":"small"):"circular";if(r)return i.jsx(xr,{src:r,alt:h,renderImage:_,outline:!0,borderRadius:g,width:n,aspectRatio:1,className:d,attributes:u,imageAttributes:m});const b=et({height:n}),f=F(wr.root,d,b==null?void 0:b.classNames,t&&wr[`--color-${t}`],o&&wr[`--variant-${o}`]);return i.jsx(H,{borderRadius:g,attributes:z(p({},u),{style:p({},b==null?void 0:b.variables)}),backgroundColor:o==="faded"?`${t}-${o}`:t,className:f,children:a?i.jsx(ge,{svg:a,size:ae(n,y=>Math.ceil(y*.4))}):l})};$s.displayName="Avatar";const Fe={root:"_root_4et1e_1","--empty":"_--empty_4et1e_24",icon:"_icon_4et1e_32",dismiss:"_dismiss_4et1e_38","--highlighted":"_--highlighted_4et1e_44","--actionable":"_--actionable_4et1e_49","--variant-faded":"_--variant-faded_4et1e_1","--variant-outline":"_--variant-outline_4et1e_1","--color-positive":"_--color-positive_4et1e_68","--color-critical":"_--color-critical_4et1e_87","--color-warning":"_--color-warning_4et1e_106","--color-primary":"_--color-primary_4et1e_125","--size-small":"_--size-small_4et1e_1","--size-medium":"_--size-medium_4et1e_1","--size-large":"_--size-large_4et1e_1","--rounded":"_--rounded_4et1e_170","--hidden":"_--hidden_4et1e_174",container:"_container_4et1e_181","--container-overlap":"_--container-overlap_4et1e_207","--container-position-top-end":"_--container-position-top-end_4et1e_211","--container-position-bottom-end":"_--container-position-bottom-end_4et1e_223"},Ms=c.forwardRef((e,t)=>{const{children:o,color:r,rounded:n,size:s="medium",icon:l,endIcon:a,variant:d,hidden:_,highlighted:m,href:u,onClick:h,onDismiss:g,dismissAriaLabel:b,className:f,attributes:y,as:x}=e,v=!!(h||u),w=s==="small"?3:4,C=!o&&!l&&!a,k=F(Fe.root,f,n&&Fe["--rounded"],_&&Fe["--hidden"],s&&Fe[`--size-${s}`],r&&Fe[`--color-${r}`],d&&Fe[`--variant-${d}`],v&&Fe["--actionable"],m&&Fe["--highlighted"],C&&Fe["--empty"]),E=N=>{N.stopPropagation(),g==null||g()};return i.jsxs(je,{onClick:h,href:u,className:k,attributes:y,ref:t,as:x,touchHitbox:v,children:[l&&i.jsx(ge,{svg:l,autoWidth:!0,size:w,className:Fe.icon}),o&&i.jsx(ne,{variant:s==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":_?"true":void 0},children:o}),a&&i.jsx(ge,{svg:a,autoWidth:!0,size:w,className:Fe.icon}),g&&i.jsx(je,{onClick:E,className:Fe.dismiss,as:"span",attributes:{"aria-label":b},touchHitbox:!0,children:i.jsx(ge,{svg:ls,size:w})})]})});Ms.displayName="Badge";const Is=e=>{const{children:t,position:o="top-end",overlap:r,className:n,attributes:s}=e,l=F(Fe.container,n,r&&Fe["--container-overlap"],o&&Fe[`--container-position-${o}`]);return i.jsx("div",z(p({},s),{className:l,children:t}))};Is.displayName="Badge.Container";const js=Ms;js.Container=Is;const Ls=()=>i.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z",fill:"currentColor"}),i.jsx("path",{d:"M12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9Z",fill:"currentColor"}),i.jsx("path",{d:"M4 9C4.55228 9 5 8.55228 5 8C5 7.44772 4.55228 7 4 7C3.44772 7 3 7.44772 3 8C3 8.55228 3.44772 9 4 9Z",fill:"currentColor"})]}),Ds=e=>{const{children:t,separator:o,color:r,defaultVisibleItems:n,expandAriaLabel:s,disableExpand:l,ariaLabel:a,className:d,attributes:_}=e,m=n&&n>=2?n:null,[u,h]=c.useState(!1),g=F(d),b=c.Children.count(t);let f=0;const y=()=>{h(!0)};return i.jsx("nav",z(p({},_),{"aria-label":a||(_==null?void 0:_["aria-label"]),className:g,children:i.jsx(H,{as:"ol",direction:"row",gap:2,align:"center",children:c.Children.map(t,(x,v)=>{if(!x)return null;const w=b-(m||0),C=f===0,k=f>w,E=!m||C||k||u,N=f===w;f+=1;let S=null;return E?S=x:N&&(S=l?i.jsx(ge,{svg:Ls,size:4}):i.jsx(Te.Aligner,{children:i.jsx(Te,{variant:"ghost",size:"small",icon:Ls,onClick:y,attributes:{"aria-label":s}})})),S===null?null:i.jsxs(H,{as:"li",gap:2,direction:"row",align:"center",children:[v>0&&(E||N)&&i.jsx(ne,{color:"neutral-faded",children:o||i.jsx(ge,{svg:Pt,size:3})}),i.jsx(ne,{variant:"body-3",color:r==="primary"?"primary":"neutral-faded",children:S})]},v)})})}))};Ds.displayName="Breadcrumbs";const uo={root:"_root_x1qvh_1","--color-primary":"_--color-primary_x1qvh_6","--color-critical":"_--color-critical_x1qvh_10","--color-positive":"_--color-positive_x1qvh_14","--color-warning":"_--color-warning_x1qvh_18","--color-inherit":"_--color-inherit_x1qvh_22","--variant-plain":"_--variant-plain_x1qvh_27","--disabled":"_--disabled_x1qvh_32","--variant-underline":"_--variant-underline_x1qvh_39","--with-icon":"_--with-icon_x1qvh_57"},Cr=c.forwardRef((e,t)=>{const{icon:o,disabled:r,href:n,color:s="primary",variant:l="underline",className:a,children:d,attributes:_,type:m,onClick:u,stopPropagation:h,render:g}=e,b=F(uo.root,a,r&&uo["--disabled"],l&&uo[`--variant-${l}`],s&&uo[`--color-${s}`],o&&uo["--with-icon"]);return i.jsxs(je,{href:n,disabled:r,className:b,attributes:_,type:m,onClick:u,ref:t,stopPropagation:h,render:g,children:[o&&i.jsx(ge,{svg:o}),d]})});Cr.displayName="Link";const Ps=e=>{const{children:t,onClick:o,href:r,icon:n,disabled:s}=e;return!r&&!o&&!s?i.jsx(ne,{variant:"body-3",weight:"medium",color:"neutral",children:t}):i.jsx(Cr,{onClick:o,href:r,icon:n,disabled:s,variant:"plain",color:"inherit",children:t})};Ps.displayName="Breadcrumbs.Item";const Fs=Ds;Fs.Item=Ps;const As=7,Vs=1,lt=e=>{const{date:t}=e;return[t.getFullYear(),(t.getMonth()+1).toString().padStart(2,"0"),t.getDate().toString().padStart(2,"0")].join("-")},Nr=e=>{const{date:t,firstWeekDay:o=Vs}=e,r=t.getDay();return r<o?As-r-o:r-o},Bc=e=>{const{firstWeekDay:t=Vs,renderWeekDay:o}=e,r=new Date(2021,1,t),n=[];for(let s=t;s<t+As;s++){const l=o?o({weekDay:s,date:r}):r.toLocaleDateString("en-US",{weekday:"short"});n.push(l.slice(0,2)),r.setDate(r.getDate()+1)}return n},Hc=e=>{const{renderMonthLabel:t}=e;return new Array(12).fill(null).map((o,r)=>{const n=new Date(0,r);return t?t({month:r,date:n}):n.toLocaleString("default",{month:"short"})})},Oc=e=>{const{date:t,firstWeekDay:o}=e,r=t.getMonth(),n=t.getFullYear(),s=[],l=new Date(n,r,1),a=Nr({date:l,firstWeekDay:o});for(a!==0&&s.push(new Array(a).fill(null));r===l.getMonth();)(Nr({date:l,firstWeekDay:o})===0||!s.length)&&s.push([]),s[s.length-1].push(new Date(l)),l.setDate(l.getDate()+1);const d=Nr({date:l,firstWeekDay:o});return d!==0&&s[s.length-1].push(...new Array(7-d).fill(null)),s},Bs=e=>(e==null?void 0:e.querySelectorAll("[data-rs-date]"))||[],kr=(e,t)=>{const o=new Date(e);return o.setMonth(t),o},Wc=e=>kr(e,e.getMonth()-1),Hs=e=>kr(e,e.getMonth()+1),Os=(e,t)=>{const o=new Date(e);return o.setFullYear(t),o},qc=e=>Os(e,e.getFullYear()-1),Uc=e=>Os(e,e.getFullYear()+1),Yc=e=>{const{date:t,min:o,max:r}=e,n=t.getMonth(),s=t.getFullYear(),l=new Date(s,n,0),a=Hs(t);return a.setDate(0),{isFirstMonth:o&&o>l,isLastMonth:r&&r<a}},zr=(e,t)=>e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),Kc=e=>{const{date:t,startValue:o,lastFocusedDate:r}=e,n=new Date,s=lt({date:t}),l=lt({date:n}),a=o&<({date:o}),d=r&<({date:r});return r&&zr(t,r)?s===d:o&&zr(t,o)?s===a:zr(t,n)?s===l:!0},Gc={root:"_root_p9kz2_1"},Lo=e=>{const{children:t}=e;return i.jsx("div",{className:Gc.root,children:t})};Lo.displayName="HiddenVisually";const Do=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"15 18 9 12 15 6"})}),Oe={selection:"_selection_1iezs_1",weekday:"_weekday_1iezs_6",control:"_control_1iezs_12",cell:"_cell_1iezs_16","cell-button":"_cell-button_1iezs_21","--active":"_--active_1iezs_26","--selection-range":"_--selection-range_1iezs_31","--selection-start":"_--selection-start_1iezs_37","--selection-end":"_--selection-end_1iezs_47"},Ws=e=>{const{selectionMode:t,onMonthTitleClick:o,monthTitleRef:r,monthDate:n,renderSelectedMonthLabel:s,hidePrevious:l,hideNext:a,onNextClick:d,onPreviousClick:_,monthSelectionAriaLabel:m="Select a month",previousMonthAriaLabel:u="Previous month",previousYearAriaLabel:h="Previous year",nextMonthAriaLabel:g="Next month",nextYearAriaLabel:b="Next year"}=e,f=c.useRef(null),y=c.useRef(null);return c.useEffect(()=>{if(!l||document.activeElement!==f.current)return;const x=y.current||(r==null?void 0:r.current);tt(()=>{x==null||x.focus()})},[l,r]),c.useEffect(()=>{if(!a||document.activeElement!==y.current)return;const x=f.current||(r==null?void 0:r.current);tt(()=>{x==null||x.focus()})},[a,r]),i.jsxs(H,{direction:"row",gap:2,align:"center",children:[i.jsx(Nt,{visibility:!0,hide:l,children:i.jsx("div",{className:Oe.control,children:i.jsx(Te,{variant:"ghost",icon:Do,onClick:_,attributes:{ref:f,"aria-label":t==="date"?u:h}})})}),i.jsxs(H.Item,{grow:!0,children:[t==="date"&&i.jsxs(Te,{fullWidth:!0,variant:"ghost",onClick:o,attributes:{ref:r},children:[s?s({date:n}):n.toLocaleDateString("en-US",{month:"long",year:"numeric"}),i.jsx(Lo,{children:m})]}),t==="month"&&i.jsx(ne,{align:"center",weight:"medium",children:n.toLocaleDateString("en-US",{year:"numeric"})})]}),i.jsx(Nt,{visibility:!0,hide:a,children:i.jsx("div",{className:Oe.control,children:i.jsx(Te,{variant:"ghost",icon:Pt,onClick:d,attributes:{ref:y,"aria-label":t==="date"?g:b}})})})]})};Ws.displayName="CalendarControls";const qs=e=>{const{date:t,isoDate:o,startValue:r,endValue:n,disabled:s,focusable:l,onChange:a,range:d,hoveredDate:_,onDateHover:m,onDateHoverEnd:u,onDateFocus:h,selectedDates:g,disabledDates:b,renderAriaLabel:f,renderSlot:y}=e;if(!t)return i.jsx("td",{className:Oe.cell,"aria-hidden":"true"});const x=r&<({date:r}),v=n&<({date:n}),w=!!(o&&x&&o===x),C=!!(o&&v&&o===v),k=!!(o&&x&&o>x),E=!!(o&&v&&o<v),N=!!(_&&!n&&_>t),S=!!(g!=null&&g.some(L=>lt({date:L})===o)),T=s||(b==null?void 0:b.some(L=>lt({date:L})===o));let j;switch(!0){case(k&&N):case(k&&E):j="range";break;case(w&&(!d||C)):case S:j="standalone";break;case w:j="start";break;case C:j="end";break}const $=F([Oe.cell,j&&Oe["--active"],j&&Oe[`--selection-${j}`]]),M=()=>{if(!d){a==null||a({value:t});return}const L=r&&n,A=!r&&!n,W=r&&t<r,re=L||A||W,Z=re?t:r,Q=re?null:t;a==null||a({value:{start:Z,end:Q}})},D=()=>{m(t)},P=()=>{u(t)},B=()=>{D(),h(t)};return i.jsx("td",{className:$,role:T?"presentation":"gridcell",children:i.jsxs(je,{fullWidth:!0,insetFocus:!0,className:Oe["cell-button"],disabled:T,onClick:M,attributes:{role:"checkbox",tabIndex:l?0:-1,"aria-hidden":T,"aria-label":f?f({date:t}):t.toLocaleDateString("en-us",{month:"long",day:"numeric",weekday:"long"}),"aria-checked":!!j,"data-rs-date":lt({date:t}),onMouseEnter:D,onMouseLeave:P,onFocus:B,onBlur:P},children:[t.getDate(),y==null?void 0:y({date:t,selected:!!(j&&j!=="range")})]})})};qs.displayName="CalendarDate";const Us=e=>{const{date:t,value:o,onChange:r,min:n,max:s,range:l,firstWeekDay:a,selectedDates:d,disabledDates:_,hoveredDate:m,onDateHover:u,onDateHoverEnd:h,renderWeekDay:g,renderDateAriaLabel:b,renderDateSlot:f}=e;let y=!1;const[x,v]=c.useState(),w=t.getMonth(),C=Oc({date:t,firstWeekDay:a}),k=Bc({firstWeekDay:a,renderWeekDay:g});return i.jsxs("table",{className:Oe.selection,role:"grid",children:[i.jsx("thead",{"aria-hidden":"true",children:i.jsx("tr",{children:k.map(E=>i.jsx("th",{className:Oe.weekday,scope:"col",children:E},E))})}),i.jsx("tbody",{children:C.map(E=>{var S;const N=[w,(S=E[0])==null?void 0:S.getDate()].filter(Boolean).join("-");return i.jsx("tr",{className:Oe.row,children:E.map((T,j)=>{const $=!!T&&(n&&T<n||s&&T>s),M=o&&"start"in o?o.start:o,D=o&&"end"in o?o.end:o,P=T&<({date:T}),B=$?!1:!y&&!!T&&Kc({date:T,lastFocusedDate:x,startValue:M});return B&&(y=!0),i.jsx(qs,{date:T,isoDate:P,disabled:$,range:l,focusable:B,startValue:M,endValue:D,onChange:r,hoveredDate:m,onDateHover:u,onDateHoverEnd:h,onDateFocus:v,renderAriaLabel:b,selectedDates:d,disabledDates:_,renderSlot:f},j)})},N)})})]})};Us.displayName="CalendarMonth";const Sr=3,Ys=e=>{const{renderMonthLabel:t,renderMonthAriaLabel:o,monthDate:r,min:n,max:s,onMonthClick:l}=e,a=c.useRef(null),d=Hc({renderMonthLabel:t}),_=[];for(let m=0;m<d.length;m+=Sr){const u=d.slice(m,m+Sr);_.push(u)}return c.useEffect(()=>{var u;const m=(u=a.current)==null?void 0:u.querySelector('[tabIndex="0"]');tt(()=>{m==null||m.focus()})},[]),i.jsx("table",{ref:a,role:"grid",className:Oe.selection,children:i.jsx("tbody",{children:_.map((m,u)=>i.jsx("tr",{className:Oe.row,children:m.map((h,g)=>{const b=u*Sr+g,f=new Date(r.getFullYear(),b),y=n&&n.getFullYear()>=f.getFullYear()&&n.getMonth()>f.getMonth(),v=s&&s.getFullYear()<=f.getFullYear()&&s.getMonth()<f.getMonth()||y;return i.jsx("td",{role:v?"presentation":"gridcell",className:Oe.cell,children:i.jsx(je,{fullWidth:!0,insetFocus:!0,className:Oe["cell-button"],disabled:v,onClick:()=>l(b),attributes:{tabIndex:b===r.getMonth()?0:-1,"aria-hidden":v,"aria-label":o?o({month:b}):h,"data-rs-date":`${r.getFullYear()}-${(b+1).toString().padStart(2,"0")}`},children:h})},h)})},u))})})};Ys.displayName="CalendarYear";const Xc=e=>{const{rootRef:t,changeToNextMonth:o,changeToPreviousMonth:r,monthDate:n,verticalDelta:s,min:l,max:a}=e,d=c.useRef(0),_=c.useCallback(m=>{const{delta:u,onMonthChange:h}=m,g=document.activeElement;if(!g)return;const b=Bs(t.current),f=Array.from(b),x=f.findIndex(T=>T===g)+u,v=f[x],w=g.getAttribute("data-rs-date");if(!w)return;const[C,k,E]=w==null?void 0:w.split("-").map(Number);let N;if(E?N=new Date(C,k-1,E+u):u>0?N=new Date(C,k-1+u,1):N=new Date(C,k-1+u+1,0),!(l&&N<l||a&&N>a)){if(v){v.focus();return}d.current=x<0?x:x-(f.length-1),h()}},[t,l,a]);c.useEffect(()=>{const m=d.current;if(m===0)return;const u=Bs(t.current),h=m<0?u.length+m:m-1,g=u[h];g&&g.focus(),d.current=0},[n,t]),Ze({[lo]:()=>_({delta:-1,onMonthChange:r}),[io]:()=>_({delta:1,onMonthChange:o}),[no]:()=>_({delta:-s,onMonthChange:r}),[so]:()=>_({delta:s,onMonthChange:o})},[o,r,_,s],{ref:t,preventDefault:!0})},Po=e=>{const{value:t,onChange:o,defaultMonth:r,month:n,onMonthChange:s,min:l,max:a,range:d,firstWeekDay:_,selectedDates:m,disabledDates:u,monthsToRender:h=1,renderMonthLabel:g,renderSelectedMonthLabel:b,renderWeekDay:f,previousMonthAriaLabel:y,previousYearAriaLabel:x,nextMonthAriaLabel:v,nextYearAriaLabel:w,monthSelectionAriaLabel:C,renderMonthAriaLabel:k,renderDateAriaLabel:E,renderDateSlot:N}=e,[S,T]=c.useState("date"),[j,$]=c.useState(n||r||new Date),[M,D]=c.useState(null),P=c.useRef(null),B=c.useRef(S),L=Yc({date:j,min:l,max:a}),A=c.useRef(null),W=()=>{if(S==="month"){const oe=qc(j);s==null||s({date:oe}),n===void 0&&$(oe);return}const X=Wc(j);s==null||s({date:X}),n===void 0&&$(X)},re=()=>{if(S==="month"){const oe=Uc(j);s==null||s({date:oe}),n===void 0&&$(oe);return}const X=Hs(j);s==null||s({date:X}),n===void 0&&$(X)},Z=()=>{T("month")},Q=X=>{const oe=kr(j,X);s==null||s({date:oe}),n===void 0&&$(oe),T("date")},U=X=>{D(X)},te=X=>{M&&+M==+X&&D(null)};return c.useEffect(()=>{S==="date"&&S!==B.current&&tt(()=>{var X;(X=P.current)==null||X.focus()}),B.current=S},[S]),c.useEffect(()=>{n&&$(n)},[n]),Xc({monthDate:j,rootRef:A,changeToNextMonth:re,changeToPreviousMonth:W,verticalDelta:S==="date"?7:3,min:l,max:a}),i.jsxs(H,{gap:2,children:[i.jsx(H,{direction:"row",gap:4,children:Array.from({length:S==="date"?h:1}).map((X,oe)=>{const $e=L.isFirstMonth||h>0&&oe>0,de=L.isLastMonth||S==="date"&&h>0&&oe<h-1,K=new Date(j);return K.setMonth(K.getMonth()+oe),i.jsx(H.Item,{grow:!0,children:i.jsx(Ws,{renderSelectedMonthLabel:b,monthDate:K,selectionMode:S,hidePrevious:$e,hideNext:de,monthTitleRef:oe===0?P:void 0,onMonthTitleClick:Z,onNextClick:re,onPreviousClick:W,previousMonthAriaLabel:y,previousYearAriaLabel:x,nextMonthAriaLabel:v,nextYearAriaLabel:w,monthSelectionAriaLabel:C,monthsToRender:h})},oe)})}),i.jsxs(H,{direction:"row",gap:4,attributes:{ref:A},children:[S==="date"&&Array.from({length:h}).map((X,oe)=>{const $e=new Date(j);return $e.setMonth($e.getMonth()+oe),i.jsx(H.Item,{grow:!0,children:i.jsx(Us,{date:$e,value:t,onChange:o,min:l,max:a,range:d,firstWeekDay:_,hoveredDate:M,selectedDates:m,disabledDates:u,onDateHover:U,onDateHoverEnd:te,renderWeekDay:f,renderDateAriaLabel:E,renderDateSlot:N})},oe)}),S==="month"&&i.jsx(Ys,{monthDate:j,onMonthClick:Q,renderMonthLabel:g,renderMonthAriaLabel:k,min:l,max:a})]})]})};Po.displayName="CalendarControlled";const Ks=e=>{const a=e,{onChange:t,defaultValue:o,range:r}=a,n=pe(a,["onChange","defaultValue","range"]),[s,l]=c.useState(o||null);return r?i.jsx(Po,z(p({range:!0},n),{value:s,onChange:d=>{l(d.value),t==null||t(d)}})):i.jsx(Po,z(p({},n),{value:s,onChange:d=>{l(d.value),t==null||t(d)}}))};Ks.displayName="CalendarUncontrolled";const Gs=e=>e.value!==void 0?i.jsx(Po,p({},e)):i.jsx(Ks,p({},e));Gs.displayName="Calendar";const Fo={root:"_root_158rr_1","--selected":"_--selected_158rr_15","--elevated":"_--elevated_158rr_21","--actionable":"_--actionable_158rr_26"},Xs=c.forwardRef((e,t)=>{const{padding:o=4}=e,{selected:r,elevated:n,bleed:s,height:l,onClick:a,href:d,children:_,className:m,attributes:u,as:h="div"}=e,g=!!d||!!a,b=et({radius:"medium",bleed:s,height:l,padding:o}),f=F(Fo.root,b.classNames,g&&Fo["--actionable"],n&&Fo["--elevated"],r&&Fo["--selected"],m),y=p(p({},u==null?void 0:u.style),b.variables);return g?i.jsx(je,{className:f,attributes:z(p({},u),{style:y}),href:d,as:h,onClick:a,ref:t,children:_}):i.jsx(h,z(p({},u),{onClick:a,href:d,ref:t,className:f,style:y,children:_}))});Xs.displayName="Card";const mt={root:"_root_k04za_1",control:"_control_k04za_9","--control-prev":"_--control-prev_k04za_21","--control-next":"_--control-next_k04za_25","--control-visible":"_--control-visible_k04za_29",scroll:"_scroll_k04za_34",item:"_item_k04za_61","--control-rendered":"_--control-rendered_k04za_73","--bleed":"_--bleed_k04za_79","--bleed-true--m":"_--bleed-true--m_k04za_1","--bleed-false--m":"_--bleed-false--m_k04za_1","--bleed-true--l":"_--bleed-true--l_k04za_1","--bleed-false--l":"_--bleed-false--l_k04za_1","--bleed-true--xl":"_--bleed-true--xl_k04za_1","--bleed-false--xl":"_--bleed-false--xl_k04za_1"},Er=c.forwardRef((e,t)=>{const{type:o,scrollElRef:r,oppositeControlElRef:n,scrollPosition:s,onClick:l,isRTL:a,mounted:d}=e,[_,m]=c.useState(!1),[u,h]=c.useState(!1),g=o==="forward",b=o===(a?"back":"forward"),f=F(mt.control,b?mt["--control-next"]:mt["--control-prev"],_&&mt["--control-visible"],u&&mt["--control-rendered"]);return fe(()=>{var E;const y=r.current;if(!y||!d)return;let x;const v=Math.abs(s),w=v<=0,C=v+y.clientWidth>=y.scrollWidth-1;return(g?C:w)?(m(!1),x=setTimeout(()=>h(!1),1500),(E=n.current)==null||E.focus()):(h(!0),m(!0)),()=>{x&&clearTimeout(x)}},[s,r,d,g]),i.jsx("div",{className:f,children:i.jsx(Te,{size:"small",onClick:l,icon:b?Pt:Do,rounded:!0,variant:"outline",elevated:!0,attributes:{"aria-disabled":!_,"aria-hidden":!0},ref:t})})});Er.displayName="CarouselControl";const Zs=e=>{const{children:t,gap:o=3,visibleItems:r,bleed:n,navigationDisplay:s,onChange:l,onScroll:a,instanceRef:d,className:_,attributes:m}=e,u=c.useRef(0),h=c.useRef([]),[g,b]=c.useState(!1),[f,y]=c.useState(0),[x]=pt(),v=c.useRef(null),w=c.useRef(null),C=c.useRef(null),k={};typeof n=="object"&&Object.entries(n).forEach(([L,A])=>{k[L]=typeof A=="number"&&A>0});const E=F(mt.root,_,...le(mt,"--bleed",typeof n=="number"?!0:k)),N=(L,A)=>{h.current[A]=L},S=Ro(L=>{const A=L.target,W=j();y(A.scrollLeft),a==null||a(L),u.current!==W&&(l==null||l({index:W})),u.current=W}),T=()=>{const A=getComputedStyle(v.current).gap.split(" ")[0];return Number(A.replace("px",""))},j=()=>{let L=0,A=0;const W=v.current;if(!W)return L;const re=x?-W.scrollLeft:W.scrollLeft,Z=T();return h.current.some((Q,U)=>Q?A+Q.clientWidth/2>=re?(L=U,!0):(A+=(Q==null?void 0:Q.clientWidth)+Z,!1):!1),L},$=L=>{const A=v.current,W=h.current[L];W&&A.scrollTo({left:x?W.offsetLeft-(A.clientWidth-W.clientWidth):W.offsetLeft,top:0,behavior:"smooth"})},M=()=>{const L=v.current;L.scrollBy({left:L.clientWidth+T(),top:0,behavior:"smooth"})},D=()=>{const L=v.current;L.scrollBy({left:-L.clientWidth-T(),top:0,behavior:"smooth"})},P=x?M:D,B=x?D:M;return c.useImperativeHandle(d,()=>({navigateBack:P,navigateForward:B,navigateTo:$})),fe(()=>{b(!0)},[]),i.jsxs("section",z(p({},m),{className:E,style:p(p(p({},q("--rs-carousel-items",r)),q("--rs-carousel-bleed",n)),m==null?void 0:m.style),children:[s!=="hidden"&&i.jsxs(i.Fragment,{children:[i.jsx(Er,{isRTL:x,type:"back",ref:w,oppositeControlElRef:C,scrollElRef:v,scrollPosition:f,onClick:P,mounted:g}),i.jsx(Er,{isRTL:x,type:"forward",ref:C,oppositeControlElRef:w,scrollElRef:v,scrollPosition:f,onClick:B,mounted:g})]}),i.jsx(H,{as:"ul",direction:"row",wrap:!1,gap:o,className:mt.scroll,attributes:{ref:v,onScroll:S},children:c.Children.map(t,(L,A)=>i.jsx(H.Item,{className:mt.item,as:"li",attributes:{ref:W=>N(W,A)},children:L}))})]}))};Zs.displayName="Carousel";const Js=c.createContext(null),Qs=()=>c.useContext(Js),Tr=e=>{const{onChange:t,name:o,disabled:r,value:n,children:s,hasError:l}=e,a=d=>{const{event:_,value:m,checked:u}=d;if(!m)return;let h=[...n];u?h.push(m):h=h.filter(g=>g!==m),t&&t({name:o,value:h,event:_})};return i.jsx(Js.Provider,{value:{onChange:a,disabled:r,value:n,name:o,hasError:l},children:s})};Tr.displayName="CheckboxGroupControlled";const Rs=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=c.useState(t||[]),s=l=>{l.value&&(n(l.value),o&&o(l))};return i.jsx(Tr,z(p({},e),{value:r,defaultValue:void 0,onChange:s}))};Rs.displayName="CheckboxGroupUncontrolled";const ei=e=>{const{value:t}=e;return t!==void 0?i.jsx(Tr,p({},e)):i.jsx(Rs,p({},e))};ei.displayName="CheckboxGroup";const ti=c.createContext(null),oi=()=>c.useContext(ti),$r=e=>{const{onChange:t,name:o,disabled:r,value:n,children:s,hasError:l}=e,a=({event:d,value:_})=>{_&&t&&t({name:o,value:_,event:d})};return i.jsx(ti.Provider,{value:{onChange:a,disabled:r,value:n,name:o,hasError:l},children:s})};$r.displayName="RadioGroupControlled";const ri=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=c.useState(t||null),s=l=>{l.value&&(n(l.value),o&&o(l))};return i.jsx($r,z(p({},e),{value:r,defaultValue:void 0,onChange:s}))};ri.displayName="RadioGroupUncontrolled";const ni=e=>{const{value:t}=e;return t!==void 0?i.jsx($r,p({},e)):i.jsx(ri,p({},e))};ni.displayName="RadioGroup";const Zc={root:"_root_1feer_1"},_o=e=>{var x,v,w,C,k,E,N;const{type:t,value:o,className:r,onBlur:n,onFocus:s,onChange:l,attributes:a}=e,d=F(Zc.root,r),_=Qs(),m=oi(),u=ot(),h=(v=(x=_==null?void 0:_.name)!=null?x:m==null?void 0:m.name)!=null?v:e.name,g=(k=(C=(w=u==null?void 0:u.disabled)!=null?w:e.disabled)!=null?C:_==null?void 0:_.disabled)!=null?k:m==null?void 0:m.disabled,b=o&&((N=(E=_==null?void 0:_.value)==null?void 0:E.includes(o))!=null?N:(m==null?void 0:m.value)===o)||e.checked,f=_?void 0:e.defaultChecked,y=S=>{if(!h)return;const{checked:T}=S.target,j={name:h,value:o,checked:T,event:S};l&&l(j),_!=null&&_.onChange&&_.onChange(j),m!=null&&m.onChange&&m.onChange(j)};return i.jsx("input",z(p({},a),{className:d,type:t,name:h,value:o,checked:b,defaultChecked:f,disabled:g,onChange:y,onFocus:s||(a==null?void 0:a.onFocus),onBlur:n||(a==null?void 0:a.onBlur),"data-rs-hidden-input":!0}))};_o.displayName="HiddenInput";const Mr=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"20 6 9 17 4 12"})}),yt={root:"_root_ykdxc_12",decorator:"_decorator_ykdxc_23",field:"_field_ykdxc_28","--size-small":"_--size-small_ykdxc_1","--size-medium":"_--size-medium_ykdxc_1","--size-large":"_--size-large_ykdxc_1",icon:"_icon_ykdxc_75",input:"_input_ykdxc_85","--error":"_--error_ykdxc_92","--disabled":"_--disabled_ykdxc_114","--size-small--m":"_--size-small--m_ykdxc_1","--size-medium--m":"_--size-medium--m_ykdxc_1","--size-large--m":"_--size-large--m_ykdxc_1","--size-small--l":"_--size-small--l_ykdxc_1","--size-medium--l":"_--size-medium--l_ykdxc_1","--size-large--l":"_--size-large--l_ykdxc_1","--size-small--xl":"_--size-small--xl_ykdxc_1","--size-medium--xl":"_--size-medium--xl_ykdxc_1","--size-large--xl":"_--size-large--xl_ykdxc_1"},si=e=>{var C;const{children:t,value:o,onChange:r,onFocus:n,onBlur:s,indeterminate:l,size:a="medium",className:d,attributes:_,inputAttributes:m}=e,u=Qs(),h=ot(),g=(h==null?void 0:h.hasError)||e.hasError||(u==null?void 0:u.hasError),b=(h==null?void 0:h.disabled)||e.disabled||(u==null?void 0:u.disabled),f=u?(C=u.value)==null?void 0:C.includes(o):e.checked,y=u?void 0:e.defaultChecked,x=u?u.name:e.name,v=c.useRef(null),w=F(yt.root,d,a&&g&&yt["--error"],b&&yt["--disabled"],a&&le(yt,"--size",a));return fe(()=>{v.current.indeterminate=l||!1},[l,f]),i.jsxs("label",z(p({},_),{className:w,children:[i.jsxs("span",{className:yt.field,children:[i.jsx(_o,{className:yt.input,type:"checkbox",checked:f,defaultChecked:y,name:x,disabled:b,value:o,onChange:r,onFocus:n,onBlur:s,attributes:z(p({},m),{ref:v})}),i.jsx("div",{className:yt.decorator,children:i.jsx(ge,{svg:Mr,className:yt.icon,size:ae(a,k=>k==="large"?5:k==="small"?3:4)})})]}),t&&i.jsx(ne,{as:"span",variant:ae(a,k=>k==="large"?"body-2":k==="small"?"caption-1":"body-3"),children:t})]}))};si.displayName="Checkbox";const Jc={root:"_root_th78q_1"},ii=e=>{const u=e,{position:t="end-top",onOpen:o,onClose:r}=u,n=pe(u,["position","onOpen","onClose"]),[s,l]=c.useState(),a=c.useRef(null),{lockScroll:d,unlockScroll:_}=sr({originRef:a}),m=ke(o);return c.useEffect(()=>{const h=a.current;if(!h)return;const g=b=>{var f;b.preventDefault(),l({x:b.clientX,y:b.clientY}),d(),(f=m.current)==null||f.call(m)};return h.addEventListener("contextmenu",g),()=>h.removeEventListener("contextmenu",g)},[d,m]),c.useEffect(()=>()=>_(),[_]),i.jsx("div",{className:Jc.root,ref:a,children:i.jsx(Ne,z(p({},n),{position:t,originCoordinates:s,active:!!s,onClose:h=>{l(void 0),_(),r==null||r(h)}}))})};ii.displayName="ContextMenu";const Ft=ii;Ft.Content=Ne.Content,Ft.Item=Ne.Item,Ft.Section=Ne.Section,Ft.SubMenu=Ne.SubMenu,Ft.SubTrigger=Ne.SubTrigger;const ht={root:"_root_1vs2n_1",triggerLayer:"_triggerLayer_1vs2n_13",trigger:"_trigger_1vs2n_13","--inline":"_--inline_1vs2n_29","--variant-outline":"_--variant-outline_1vs2n_47","--highlighted":"_--highlighted_1vs2n_54","--disabled":"_--disabled_1vs2n_67"},li=e=>{const{children:t}=e;return i.jsx("span",{className:ht.trigger,children:t})},ai=e=>{const{name:t,children:o,height:r,variant:n="outline",inline:s,className:l,disabled:a,attributes:d,inputAttributes:_,onChange:m}=e,u=Ct(),h=F(ht.root,n&&ht[`--variant-${n}`],s&&ht["--inline"],u.active&&ht["--highlighted"],a&&ht["--disabled"],l),g=C=>{var k;C.preventDefault(),(k=d==null?void 0:d.onDragOver)==null||k.call(d,C)},b=C=>{var k;u.activate(),(k=d==null?void 0:d.onDragEnter)==null||k.call(d,C)},f=C=>{var k;C.currentTarget.contains(C.relatedTarget)||(u.deactivate(),(k=d==null?void 0:d.onDragLeave)==null||k.call(d,C))},y=C=>{var k;C.preventDefault(),u.deactivate(),m==null||m({name:t,value:Array.from(C.dataTransfer.files),event:C}),(k=d==null?void 0:d.onDrop)==null||k.call(d,C)},x=C=>{var E;const k=C.target.files;k&&(m==null||m({name:t,event:C,value:Array.from(k)}),(E=_==null?void 0:_.onChange)==null||E.call(_,C))},v=i.jsx(Lo,{children:i.jsx("input",z(p({},_),{type:"file",className:ht.field,name:t,disabled:a,onChange:x}))}),w=typeof o=="function"?o({highlighted:u.active}):o;return i.jsx(H,{className:h,height:r,borderRadius:"medium",attributes:z(p({},d),{onDragOver:g,onDragEnter:b,onDragLeave:f,onDrop:y}),children:n==="outline"&&!s?i.jsxs(H,{as:"label",className:ht.triggerLayer,padding:6,borderRadius:"medium",gap:2,align:"center",justify:"center",textAlign:"center",height:"100%",children:[v,i.jsx(H.Item,{children:w})]}):i.jsxs("label",{className:ht.triggerLayer,children:[v,w]})})};ai.displayName="FileUpload",li.displayName="FileUpload.Trigger";const ci=ai;ci.Trigger=li;const di={root:"_root_bzk9x_1","--active":"_--active_bzk9x_14"},ui=e=>{const{children:t,active:o,className:r,attributes:n}=e,s=F(di.root,o&&di["--active"],r);return i.jsx(ne,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:s,attributes:n,children:t})};ui.displayName="Hotkey";const at={root:"_root_1irm5_1",wrapper:"_wrapper_1irm5_26",inner:"_inner_1irm5_32",content:"_content_1irm5_38","--visible":"_--visible_1irm5_44","--click-through":"_--click-through_1irm5_49","--blurred":"_--blurred_1irm5_54","--contained":"_--contained_1irm5_72","--animated":"_--animated_1irm5_76","--overflow-auto":"_--overflow-auto_1irm5_85"},Ir=e=>{const{active:t,children:o,transparent:r,blurred:n,overflow:s,onClose:l,onOpen:a,onAfterClose:d,onAfterOpen:_,disableCloseOnClick:m,containerRef:u,contained:h,className:g,attributes:b}=e,f=ke(l),y=ke(a),x=r===!0,v=x?0:(1-(r||0))*.7,[w,C]=c.useState(!1),[k,E]=c.useState(!1),[N,S]=c.useState([0,0]),T=c.useRef(null),{lockScroll:j,unlockScroll:$}=sr({containerRef:u}),M=c.useRef(null),D=c.useRef(!1),{active:P,activate:B,deactivate:L}=Ct(t||!1),{active:A,activate:W,deactivate:re}=Ct(t||!1),Z=Bn({active:t,contentRef:T,hasTrigger:!1}),Q=u&&h!==!1,U=F(at.root,A&&at["--visible"],x&&at["--click-through"],n&&at["--blurred"],k&&at["--animated"],Q&&at["--contained"],s==="auto"&&at["--overflow-auto"],g),te=K=>{if(!T.current)return;const ue=T.current.firstChild;if(ue)return ue.contains(K)},X=c.useCallback(K=>{var ue;!A||!Z()||(M.current&&(u!=null&&u.current)&&(u.current.style.overflow=M.current,u.current.style.removeProperty("isolation"),M.current=null),(ue=f.current)==null||ue.call(f,{reason:K.reason}))},[A,Z,f,u]),oe=K=>{D.current=!te(K.target)},$e=K=>{const ue=!te(K.target);!(D.current&&ue&&!x)||m||X({reason:"overlay-click"})},de=K=>{if(!(K.propertyName!=="opacity"||K.target!==K.currentTarget)){if(E(!1),A){_==null||_();return}$(),L(),d==null||d()}};return Ze({Escape:()=>X({reason:"escape-key"})},[X]),c.useEffect(()=>{E(!0),t&&!P&&B(),!t&&P&&re()},[t,B,re,P]),c.useEffect(()=>{P&&(x||j(),tt(()=>{W()}))},[P,W,j,x]),c.useEffect(()=>{var ye;if(!P||!T.current)return;const K=new It,ue=u==null?void 0:u.current;return ue&&(M.current=ue.style.overflow,ue.style.setProperty("overflow","hidden"),ue.style.setProperty("isolation","isolate"),S([ue.scrollLeft,ue.scrollTop])),K.trap(T.current,{initialFocusEl:T.current.querySelector("[role=dialog][tabindex='-1']")}),(ye=y.current)==null||ye.call(y),()=>K.release()},[P,y,u]),c.useEffect(()=>()=>$(),[$]),fe(()=>{C(!0)},[]),!P||!w?null:i.jsx(To,{targetRef:u,children:i.jsx(To.Scope,{children:K=>i.jsx("div",z(p({},b),{ref:K,style:{"--rs-overlay-opacity":v,"--rs-overlay-offset-x":u?`${N[0]}px`:void 0,"--rs-overlay-offset-y":u?`${N[1]}px`:void 0},role:"button",tabIndex:-1,className:U,onMouseDown:oe,onMouseUp:$e,onTransitionEnd:de,children:i.jsx("div",{className:at.wrapper,children:i.jsx("div",{className:at.inner,children:i.jsx("div",{className:at.content,ref:T,children:typeof o=="function"?o({active:A}):o})})})}))})})};Ir.displayName="Overlay";const jr={m:660,l:900,xl:1280},_i=c.createContext({viewport:"s"}),Qc=e=>{const{children:t,defaultViewport:o="s"}=e,[r,n]=c.useState(o);return fe(()=>{const s=document.querySelector("[data-rs-theme]"),l=s&&window.getComputedStyle(s),a={m:l&&Number(l.getPropertyValue("--rs-viewport-m-min"))||jr.m,l:l&&Number(l.getPropertyValue("--rs-viewport-l-min"))||jr.l,xl:l&&Number(l.getPropertyValue("--rs-viewport-xl-min"))||jr.xl},d={s:`(max-width: ${a.m-1}px)`,m:`(min-width: ${a.m}px) and (max-width: ${a.l-1}px)`,l:`(min-width: ${a.l}px) and (max-width: ${a.xl-1}px)`,xl:`(min-width: ${a.xl}px)`},m=Object.keys(d).map(u=>{const h=window.matchMedia(d[u]);return{mq:h,handler:()=>h.matches&&n(u)}});return m.forEach(({handler:u,mq:h})=>{u(),h.addEventListener("change",u)}),()=>{m.forEach(({handler:u,mq:h})=>{h.removeEventListener("change",u)})}},[]),i.jsx(_i.Provider,{value:{viewport:r},children:t})},Rc=()=>c.useContext(_i),ed=()=>{const{viewport:e}=Rc();return e},mi=e=>{const t=ed();return c.useMemo(()=>{var o,r,n,s,l,a;return typeof e!="object"||e===null||!("s"in e)?e:t==="xl"?(n=(r=(o=e.xl)!=null?o:e.l)!=null?r:e.m)!=null?n:e.s:t==="l"?(l=(s=e.l)!=null?s:e.m)!=null?l:e.s:t==="m"&&(a=e.m)!=null?a:e.s},[t,e])},At={root:"_root_cjmtc_1","--contained":"_--contained_cjmtc_16","--position-center":"_--position-center_cjmtc_1","--active":"_--active_cjmtc_41","--position-bottom":"_--position-bottom_cjmtc_1","--position-start":"_--position-start_cjmtc_1","--position-end":"_--position-end_cjmtc_1","--position-full-screen":"_--position-full-screen_cjmtc_1","--dragging":"_--dragging_cjmtc_154","--overflow-visible":"_--overflow-visible_cjmtc_158","--position-center--m":"_--position-center--m_cjmtc_1","--position-bottom--m":"_--position-bottom--m_cjmtc_1","--position-start--m":"_--position-start--m_cjmtc_1","--position-end--m":"_--position-end--m_cjmtc_1","--position-full-screen--m":"_--position-full-screen--m_cjmtc_1","--position-center--l":"_--position-center--l_cjmtc_1","--position-bottom--l":"_--position-bottom--l_cjmtc_1","--position-start--l":"_--position-start--l_cjmtc_1","--position-end--l":"_--position-end--l_cjmtc_1","--position-full-screen--l":"_--position-full-screen--l_cjmtc_1","--position-center--xl":"_--position-center--xl_cjmtc_1","--position-bottom--xl":"_--position-bottom--xl_cjmtc_1","--position-start--xl":"_--position-start--xl_cjmtc_1","--position-end--xl":"_--position-end--xl_cjmtc_1","--position-full-screen--xl":"_--position-full-screen--xl_cjmtc_1"},Lr=32,td=100,od=32,hi=c.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),fi=()=>c.useContext(hi),gi=e=>{const{children:t}=e,{id:o,setTitleMounted:r}=fi();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),i.jsx(ne,{variant:"featured-3",weight:"bold",attributes:{id:`${o}-title`},children:t})},bi=e=>{const{children:t}=e,{id:o,setSubtitleMounted:r}=fi();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),i.jsx(ne,{variant:"body-3",color:"neutral-faded",attributes:{id:`${o}-subtitle`},children:t})},pi=e=>{const{children:t,onClose:o,onOpen:r,onAfterClose:n,onAfterOpen:s,active:l,size:a,padding:d=4,position:_="center",overflow:m,transparentOverlay:u,blurredOverlay:h,ariaLabel:g,autoFocus:b=!0,disableSwipeGesture:f,disableCloseOnOutsideClick:y,containerRef:x,contained:v,overlayClassName:w,className:C,attributes:k}=e,E=ke(o),N=Ke(),S=mi(_),[T,j]=c.useState(!1),[$,M]=c.useState(!1),[D,P]=c.useState(!1),B=c.useRef(null),L=(k==null?void 0:k.ref)||B,A=c.useRef({x:0,y:0}),W=c.useRef(0),re=c.useRef(0),Z=c.useRef(0),[Q,U]=c.useState(0),[te,X]=c.useState(0),oe=et({padding:d}),$e=x&&v!==!1,de=c.useMemo(()=>({titleMounted:T,setTitleMounted:j,subtitleMounted:$,setSubtitleMounted:M,id:N}),[N,$,T]),K=()=>{A.current={x:0,y:0},W.current=0,Z.current=0,U(0)},ue=O=>{var he;if(f||(he=window.getSelection())!=null&&he.toString())return;let Y=O.target;const R=L.current;for(;Y&&(Y===R||R!=null&&R.contains(Y));){if(Y.scrollTop!==0||Y.scrollLeft!==0||Y.matches("input,textarea"))return;Y=Y?Y.parentElement:null}S==="start"&&O.targetTouches[0].clientX<od||(Jt(),P(!0))},ye=O=>{l||O.propertyName==="transform"&&O.currentTarget===O.target&&K()};return c.useEffect(()=>{if(!D)return;const O=()=>{var he;ko(),P(!1);const R=S==="start"?Z.current<0:Z.current>0;Math.abs(re.current)>Lr&&R?(he=E.current)==null||he.call(E,{reason:"drag"}):K()},Y=R=>{var Ce,Me;if(!D||S==="center"||((Ce=L.current)==null?void 0:Ce.scrollTop)!==0||((Me=L.current)==null?void 0:Me.scrollLeft)!==0)return;const he=R.targetTouches[0],J={x:he.clientX,y:he.clientY},G=S==="bottom"?"y":"x",se=S==="bottom"?"x":"y";A.current[G]||(A.current=J,W.current=J[G]);const ie=Math.abs(J[G]-A.current[G]),ce=Math.abs(J[se]-A.current[se]);if(_!=="bottom"&&(ie<ce||ce>td)){W.current=J[G];return}Z.current=J[G]-W.current,W.current=J[G],U(Ie=>S==="start"?Math.min(0,Ie+Z.current):Math.max(0,Ie+Z.current))};return document.addEventListener("touchmove",Y,{passive:!0}),document.addEventListener("touchend",O,{passive:!0}),()=>{document.removeEventListener("touchmove",Y),document.removeEventListener("touchend",O)}},[D,S,E,_,L]),c.useEffect(()=>{const O=L.current;if(!O||!S)return;const R=["start","end"].includes(S)?O.clientWidth:O.clientHeight,he=Math.abs(Q)/R;X(he/2),re.current=Q},[Q,S,L]),i.jsx(Ir,{onClose:o,onOpen:r,onAfterClose:n,onAfterOpen:s,disableCloseOnClick:y,active:l,transparent:u||te,blurred:h,overflow:S==="center"?"auto":"hidden",className:w,contained:v,containerRef:x,attributes:{onTouchStart:ue},children:({active:O})=>{const Y=F(At.root,C,O&&At["--active"],D&&At["--dragging"],m&&At[`--overflow-${m}`],$e&&At["--contained"],le(At,"--position",_),oe.classNames);return i.jsx(hi.Provider,{value:de,children:i.jsx("div",z(p({},k),{style:z(p(p({},oe.variables),q("--rs-modal-size",a)),{"--rs-modal-drag":Math.abs(Q)<Lr?"0px":`${Q+Lr*(S==="start"?1:-1)}px`}),"aria-labelledby":T?`${N}-title`:void 0,"aria-describedby":$?`${N}-subtitle`:void 0,"aria-label":g||(k==null?void 0:k["aria-label"]),className:Y,"aria-modal":"true",role:"dialog",tabIndex:b?void 0:-1,ref:L,onTransitionEnd:ye,children:t}))})}})};pi.displayName="Modal",gi.displayName="Modal.Title",bi.displayName="Modal.Subtitle";const Dr=pi;Dr.Title=gi,Dr.Subtitle=bi;const vi=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"6 9 12 15 18 9"})}),rd=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"18 15 12 9 6 15"})}),nd=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})}),sd=()=>i.jsxs("svg",{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",children:[i.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),i.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),rt={field:"_field_meivp_1","controls-wrapper":"_controls-wrapper_meivp_5",controls:"_controls_meivp_5","controls--size-small":"_controls--size-small_meivp_1",control:"_control_meivp_5","controls--size-medium":"_controls--size-medium_meivp_1","controls--size-large":"_controls--size-large_meivp_1","controls--size-xlarge":"_controls--size-xlarge_meivp_1","icon--touch":"_icon--touch_meivp_107","--outline":"_--outline_meivp_111","icon--mouse":"_icon--mouse_meivp_139","controls--size-small--m":"_controls--size-small--m_meivp_1","controls--size-medium--m":"_controls--size-medium--m_meivp_1","controls--size-large--m":"_controls--size-large--m_meivp_1","controls--size-xlarge--m":"_controls--size-xlarge--m_meivp_1","controls--size-small--l":"_controls--size-small--l_meivp_1","controls--size-medium--l":"_controls--size-medium--l_meivp_1","controls--size-large--l":"_controls--size-large--l_meivp_1","controls--size-xlarge--l":"_controls--size-xlarge--l_meivp_1","controls--size-small--xl":"_controls--size-small--xl_meivp_1","controls--size-medium--xl":"_controls--size-medium--xl_meivp_1","controls--size-large--xl":"_controls--size-large--xl_meivp_1","controls--size-xlarge--xl":"_controls--size-xlarge--xl_meivp_1"},Pr=e=>{var Q;const Z=e,{increaseAriaLabel:t,decreaseAriaLabel:o,min:r,max:n,step:s=1,name:l,value:a,onChange:d,size:_="medium"}=Z,m=pe(Z,["increaseAriaLabel","decreaseAriaLabel","min","max","step","name","value","onChange","size"]),u=ot(),h=Ke(m.id),g=(u==null?void 0:u.attributes.id)||((Q=e.inputAttributes)==null?void 0:Q.id)||h,b=(u==null?void 0:u.disabled)||e.disabled,f=(u==null?void 0:u.hasError)||e.hasError,y=b||(a&&n?a>=n:!1),x=b||(a&&r?a<=r:!1),v=c.useRef(null),w=c.useRef(null),[C,k]=c.useState((a==null?void 0:a.toString())||""),E=c.useRef(a),N=ke(d),S=c.useRef(null),T=c.useRef(null),j=c.useCallback(U=>{var ue,ye;const te=s*U,X=E.current;let oe=X===null?te:X+te;n!==void 0&&oe>n&&(oe=n),r!==void 0&&oe<r&&(oe=r);const $e=((ue=s.toString().split(".")[1])==null?void 0:ue.length)||0,de=((ye=X==null?void 0:X.toString().split(".")[1])==null?void 0:ye.length)||0,K=Math.max($e,de);return Number(oe.toFixed(K))},[s,r,n]),$=c.useCallback((U,te)=>{var X;(X=N.current)==null||X.call(N,{value:U,name:l}),te!=null&&te.programmatic||(E.current=U)},[l,N]),M=c.useCallback(()=>{const U=j(1);$(U,{programmatic:!0})},[j,$]),D=c.useCallback(()=>{const U=j(-1);$(U,{programmatic:!0})},[j,$]),P=U=>{if(!U.value.match(/^(-?)[0-9]*(\.?)[0-9]*$/))return;const te=parseFloat(U.value);te>Number.MAX_SAFE_INTEGER||te<Number.MIN_SAFE_INTEGER||(k(U.value),!isNaN(te)&&$(te))},B=(U,te)=>{var X;b||(te(),U.pointerType!=="touch"&&((X=v.current)==null||X.focus()),S.current=setTimeout(()=>{T.current=setInterval(()=>{te()},50)},500))},L=()=>{b||(S.current&&(clearTimeout(S.current),S.current=null),T.current&&(clearTimeout(T.current),T.current=null))};Ze({[no]:M,[so]:D},[M,D],{preventDefault:!0,ref:w}),c.useEffect(()=>{var U;E.current=a,k((U=a==null?void 0:a.toString())!=null?U:"")},[a]);const A=ae(_,U=>U==="large"||U==="xlarge"?4:3),W=ae(_,U=>U==="small"?3:4),re=i.jsx("span",{className:rt["controls-wrapper"],children:i.jsxs("span",{className:rt.controls,children:[i.jsxs(je,{className:rt.control,disabled:y,disableFocusRing:!0,as:"span",attributes:{"aria-label":t,"aria-controls":g,role:"button",tabIndex:y?void 0:-1,onPointerDown:U=>B(U,M),onPointerUp:L,onPointerLeave:L,onContextMenu:U=>U.preventDefault()},children:[i.jsx(ge,{svg:rd,size:A,className:rt["icon--mouse"]}),i.jsx(ge,{svg:sd,size:W,className:rt["icon--touch"]})]}),i.jsxs(je,{className:rt.control,disabled:x,disableFocusRing:!0,as:"span",attributes:{"aria-label":o,"aria-controls":g,role:"button",tabIndex:x?void 0:-1,onPointerDown:U=>B(U,D),onPointerUp:L,onPointerLeave:L,onContextMenu:U=>U.preventDefault()},children:[i.jsx(ge,{svg:vi,size:A,className:rt["icon--mouse"]}),i.jsx(ge,{svg:nd,size:W,className:rt["icon--touch"]})]})]})});return i.jsx(jo,z(p({},m),{className:[m.className,le(rt,"controls--size",_),!(m.variant==="faded"||m.variant==="headless")&&rt["--outline"]],attributes:z(p({},m.attributes),{role:"group",ref:w}),inputAttributes:z(p({},m.inputAttributes),{ref:v,inputMode:"numeric",autoComplete:"off",autoCorrect:"off",spellCheck:"false",min:r,max:n,step:s,className:rt.field}),size:_,id:g,hasError:f,disabled:b,value:C,onChange:P,name:l,endSlot:re,endSlotPadding:0}))};Pr.displayName="NumberFieldControlled";const yi=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=c.useState(t!=null?t:null),s=l=>{n(l.value),o&&o(l)};return i.jsx(Pr,z(p({},e),{value:r,defaultValue:void 0,onChange:s}))};yi.displayName="NumberFieldUncontrolled";const xi=e=>{const{value:t}=e;return t!==void 0?i.jsx(Pr,p({},e)):i.jsx(yi,p({},e))};xi.displayName="NumberField";const Fr=(e,t)=>e>t?[]:Array.from({length:t-e+1},(o,r)=>e+r),wi={page:"_page_j10le_1"},Ar=e=>{const{total:t,page:o=1,onChange:r,pageAriaLabel:n,previousAriaLabel:s,nextAriaLabel:l,className:a,attributes:d}=e,_=1,m=1,u=[],h=(m+1)*2+_*2+1,g=t>h&&o-_>m+2,b=t>h&&o+_<t-m;let f=_*2+1;g||(f+=m+1),b||(f+=m+1);const y=g?Math.min(t-f+1,Math.max(1,o-_)):1,x=b?Math.min(y+f-1,t):t;g&&u.push(...Fr(1,m),null),u.push(...Fr(y,x)),b&&u.push(null,...Fr(t-m+1,t));const v=w=>{const C=Math.min(t,Math.max(1,w));r==null||r({page:C})};return i.jsxs(H,{direction:"row",align:"center",gap:1,className:a,attributes:d,children:[i.jsx(Te,{variant:"ghost",size:"small",icon:Do,onClick:()=>v(o-1),disabled:o===1,attributes:{"aria-label":s}}),u.map((w,C)=>w===null?i.jsx(H,{width:7,align:"center",children:"..."},`dots-${C}`):i.jsx(Te,{size:"small",variant:w===o?"solid":"ghost",color:w===o?"primary":"neutral",onClick:()=>v(w),attributes:{"aria-label":n==null?void 0:n({page:w}),"aria-current":w===o},className:wi.page,children:w},C)),i.jsx(Te,{variant:"ghost",size:"small",className:wi.page,icon:Pt,onClick:()=>v(o+1),disabled:o===t,attributes:{"aria-label":l}})]})};Ar.displayName="PaginationControlled";const Ci=e=>{const a=e,{defaultPage:t=1,onChange:o}=a,r=pe(a,["defaultPage","onChange"]),[n,s]=c.useState(t||1),l=d=>{s(d.page),o==null||o(d)};return i.jsx(Ar,z(p({},r),{onChange:l,page:n}))};Ci.displayName="PaginationUncontrolled";const Ni=e=>{const{page:t}=e;return t!==void 0?i.jsx(Ar,p({},e)):i.jsx(Ci,p({},e))};Ni.displayName="Pagination";const ki="\\d",zi="[a-zA-Z]",id=`(${ki}|${zi})`,Ao={root:"_root_eojch_1",input:"_input_eojch_6",item:"_item_eojch_23","item--focused":"_item--focused_eojch_28"},ld={small:7,medium:9,large:12,xlarge:14},ad={numeric:ki,alphabetic:zi,alphanumeric:id},Vr=e=>{const{valueLength:t=4,value:o,onChange:r,name:n,pattern:s="numeric",size:l="medium",variant:a="outline",className:d,attributes:_,inputAttributes:m}=e,u=ad[s],h=ae(l,$=>ld[$]),g=ae(l,$=>$==="medium"?"body-3":"body-2"),b=ae(l,$=>$==="xlarge"?"medium":"small"),[f,y]=c.useState(null),x=ot(),v=c.useRef(o.length===t?"edit":"type"),w=c.useRef(null),C=[],k=c.useCallback($=>{var L;const M=w.current;if(!M||M.selectionStart===null)return;const D=v.current,P=(L=$!=null?$:M.selectionStart)!=null?L:0,B=Math.min(D==="type"?M.value.length:M.value.length-1,Math.max(0,P));v.current==="type"?(M.selectionStart=B,M.selectionEnd=B):(M.selectionStart=B,M.selectionEnd=B+1),y(Math.min(M.selectionStart,t-1))},[t]);Ze({[`${lo},${no}`]:()=>{tt(()=>{const $=w.current;if(!$||$.selectionStart===null)return;const M=v.current,D=o.length?"edit":"type";v.current=D,k(M==="type"&&D==="edit"?$.selectionStart:$.selectionStart-1)})},[`${io},${so}`]:()=>{tt(()=>{const $=w.current;if(!$||$.selectionStart===null)return;const M=$.selectionStart===o.length&&$.selectionStart!==t?"type":"edit";v.current=M,k($.selectionStart)})}},[o,k,t],{ref:w});const E=()=>{k(o.length)},N=()=>{y(null)},S=$=>{if(f===null||!w.current)return;const M=$.clipboardData.getData("text"),D=o.slice(0,f)+o.slice(f+M.length);w.current.value=D,w.current.selectionEnd=f},T=$=>{const M=$.target,D=M.value,P=new RegExp(`^${u}+$`);if(D&&!D.match(P)||M.selectionStart===null)return;const B=D.length===t||D.length>M.selectionStart?"edit":"type";v.current=B,r==null||r({event:$,name:n,value:D}),tt(()=>{k()})},j=($,M)=>{w.current&&($.preventDefault(),w.current.focus(),v.current=M>=o.length?"type":"edit",k(M))};for(let $=0;$<t;$++)C.push(i.jsx(H,{height:h,width:h,borderRadius:b,borderColor:a==="faded"?"transparent":"neutral",backgroundColor:a==="faded"?"neutral-faded":"elevation-base",align:"center",justify:"center",className:[Ao.item,f===$&&Ao["item--focused"]],attributes:{onMouseDown:M=>{j(M,$)},onTouchStart:M=>{j(M,$)}},children:o[$]&&i.jsx(ne,{variant:g,children:o[$]})},$));return i.jsxs(H,{gap:2,direction:"row",className:[Ao.root,d],attributes:_,children:[C,i.jsx("input",z(p(p({},m),x.attributes),{type:"text",className:Ao.input,onFocus:E,onBlur:N,onPaste:S,onInput:T,value:o,name:n,maxLength:t,ref:w,autoComplete:(m==null?void 0:m.autoComplete)||"one-time-code",inputMode:s==="numeric"?"numeric":void 0,pattern:`${u}{${t}}`}))]})};Vr.displayName="PinFieldControlled";const Si=e=>{const a=e,{defaultValue:t,onChange:o}=a,r=pe(a,["defaultValue","onChange"]),[n,s]=c.useState(t||""),l=d=>{s(d.value),o==null||o(d)};return i.jsx(Vr,z(p({},r),{value:n,onChange:l}))};Si.displayName="PinFieldUncontrolled";const Ei=e=>{const{value:t}=e;return t!==void 0?i.jsx(Vr,p({},e)):i.jsx(Si,p({},e))};Ei.displayName="PinField";const mo={root:"_root_1qk35_1",value:"_value_1qk35_9","--duration":"_--duration_1qk35_24","--size-small":"_--size-small_1qk35_28","--size-medium":"_--size-medium_1qk35_32","--color-primary":"_--color-primary_1qk35_36","--color-critical":"_--color-critical_1qk35_40","--color-warning":"_--color-warning_1qk35_44","--color-positive":"_--color-positive_1qk35_48","--color-media":"_--color-media_1qk35_52"},Ti=e=>{const{value:t=0,min:o=0,max:r=100,color:n="primary",size:s="medium",duration:l,ariaLabel:a,className:d,attributes:_}=e,m=F(mo.root,d,n&&mo[`--color-${n}`],s&&mo[`--size-${s}`],!!l&&mo["--duration"]),u=r-o,h=t-o,f=`${Math.max(o,Math.min(r,h))/u*100-100}%`;return i.jsx("div",z(p({role:"progressbar"},_),{className:m,"aria-label":a||(_==null?void 0:_["aria-label"]),"aria-valuemax":r,"aria-valuemin":o,"aria-valuenow":t,children:i.jsx("div",{className:mo.value,style:{"--rs-progress-value":f,"--rs-progress-duration":l?`${l}ms`:void 0}})}))};Ti.displayName="Progress";const Vt={root:"_root_1r02e_1",container:"_container_1r02e_17",item:"_item_1r02e_26","item--active":"_item--active_1r02e_40","item--variant-secondary":"_item--variant-secondary_1r02e_45","--color-media":"_--color-media_1r02e_50"},Br=7,Hr=Math.floor(Br/2),$i=e=>{const{total:t,activeIndex:o=0,color:r="primary",ariaLabel:n,className:s,attributes:l}=e,a=F(Vt.root,s,r&&Vt[`--color-${r}`]),d=n?{"aria-label":n,role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":t-1}:{},_=t>Br?Math.min(t-Br,Math.max(0,o-Hr)):0;return i.jsx("div",z(p({},l),{className:a,children:i.jsx("div",z(p({},d),{className:Vt.container,style:{"--rs-progress-indicator-mod":_},children:Array.from({length:t}).map((m,u)=>{const h=F(Vt.item,u===o&&Vt["item--active"],(u<o-(Hr-1)||u>o+(Hr-1))&&Vt["item--variant-secondary"]);return i.jsx("div",{className:h},u)})}))}))};$i.displayName="ProgressIndicator";const Et={root:"_root_2agld_12",decorator:"_decorator_2agld_22",field:"_field_2agld_28","--size-small":"_--size-small_2agld_1","--size-medium":"_--size-medium_2agld_1","--size-large":"_--size-large_2agld_1",input:"_input_2agld_74","--error":"_--error_2agld_81","--disabled":"_--disabled_2agld_101","--size-small--m":"_--size-small--m_2agld_1","--size-medium--m":"_--size-medium--m_2agld_1","--size-large--m":"_--size-large--m_2agld_1","--size-small--l":"_--size-small--l_2agld_1","--size-medium--l":"_--size-medium--l_2agld_1","--size-large--l":"_--size-large--l_2agld_1","--size-small--xl":"_--size-small--xl_2agld_1","--size-medium--xl":"_--size-medium--xl_2agld_1","--size-large--xl":"_--size-large--xl_2agld_1"},Mi=e=>{const{children:t,value:o,onChange:r,onFocus:n,onBlur:s,size:l="medium",className:a,attributes:d,inputAttributes:_}=e,m=ot(),u=oi(),h=(m==null?void 0:m.hasError)||e.hasError||(u==null?void 0:u.hasError),g=(m==null?void 0:m.disabled)||e.disabled||(u==null?void 0:u.disabled),b=u?u.value===o:e.checked,f=u?void 0:e.defaultChecked,y=u?u.name:e.name,x=F(Et.root,a,h&&Et["--error"],g&&Et["--disabled"],l&&le(Et,"--size",l));return i.jsxs("label",z(p({},d),{className:x,children:[i.jsxs("span",{className:Et.field,children:[i.jsx(_o,{className:Et.input,type:"radio",checked:b,defaultChecked:f,name:y,disabled:g,value:o,onChange:r,onFocus:n,onBlur:s,attributes:_}),i.jsx("div",{className:Et.decorator})]}),t&&i.jsx(ne,{as:"span",variant:ae(l,v=>v==="large"?"body-2":v==="small"?"caption-1":"body-3"),children:t})]}))};Mi.displayName="Radio";const Or={root:"_root_1t6gl_1",scrim:"_scrim_1t6gl_16","--position-cover":"_--position-cover_1t6gl_28","--position-top":"_--position-top_1t6gl_42","--position-bottom":"_--position-bottom_1t6gl_48","--position-start":"_--position-start_1t6gl_54","--position-end":"_--position-end_1t6gl_65"},Ii=e=>{var g,b;const{children:t,backgroundSlot:o,position:r="cover",paddingInline:n,paddingBlock:s,padding:l,borderRadius:a,attributes:d,className:_,scrimClassName:m}=e,u=F(Or.root,r&&Or[`--position-${r}`],_),h=F(Or.scrim,m);return i.jsxs(H,{borderRadius:a,attributes:d,className:u,position:o?"relative":"absolute",inset:o?void 0:0,overflow:"hidden",children:[o,i.jsx("div",{className:h,children:i.jsx(H,{paddingInline:(g=n!=null?n:l)!=null?g:4,paddingBlock:(b=s!=null?s:l)!=null?b:3,zIndex:5,height:["start","end"].includes(r)?"100%":void 0,width:["top","bottom","cover"].includes(r)?"100%":void 0,textAlign:r==="cover"?"center":void 0,children:t})})]})};Ii.displayName="Scrim";const We={root:"_root_1v9qj_1",input:"_input_1v9qj_25","input--placeholder":"_input--placeholder_1v9qj_52",slot:"_slot_1v9qj_57",arrow:"_arrow_1v9qj_72",group:"_group_1v9qj_83","group-label":"_group-label_1v9qj_94","--size-small":"_--size-small_1v9qj_1","--size-medium":"_--size-medium_1v9qj_1","--size-large":"_--size-large_1v9qj_1","--size-xlarge":"_--size-xlarge_1v9qj_1","--variant-faded":"_--variant-faded_1v9qj_158","--variant-ghost":"_--variant-ghost_1v9qj_170","--variant-headless":"_--variant-headless_1v9qj_171","--status-error":"_--status-error_1v9qj_179","--disabled":"_--disabled_1v9qj_201","--size-small--m":"_--size-small--m_1v9qj_1","--size-medium--m":"_--size-medium--m_1v9qj_1","--size-large--m":"_--size-large--m_1v9qj_1","--size-xlarge--m":"_--size-xlarge--m_1v9qj_1","--size-small--l":"_--size-small--l_1v9qj_1","--size-medium--l":"_--size-medium--l_1v9qj_1","--size-large--l":"_--size-large--l_1v9qj_1","--size-xlarge--l":"_--size-xlarge--l_1v9qj_1","--size-small--xl":"_--size-small--xl_1v9qj_1","--size-medium--xl":"_--size-medium--xl_1v9qj_1","--size-large--xl":"_--size-large--xl_1v9qj_1","--size-xlarge--xl":"_--size-xlarge--xl_1v9qj_1"},cd=()=>i.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M7 16L12 21L17 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),ji=e=>{const{disabled:t,size:o}=e;return i.jsx("div",{className:We.arrow,children:i.jsx(ge,{svg:cd,color:t?"disabled":"neutral-faded",size:ae(o,r=>r==="large"||r==="xlarge"?5:4)})})},Li=e=>{const{startSlot:t,icon:o,size:r}=e;return!t&&!o?null:o?i.jsx("div",{className:We.slot,children:i.jsx(ge,{size:ae(r,n=>n==="large"?5:n==="xlarge"?6:4),svg:o})}):i.jsx("div",{className:We.slot,children:t})},dd=e=>{const{startSlot:t,icon:o,size:r,inputAttributes:n,onFocus:s,onBlur:l,disabled:a,name:d,value:_,defaultValue:m,onChange:u,onClick:h,placeholder:g,id:b,children:f}=e,[y,x]=c.useState(_===void 0?!m:!_),v=F(We.input,g&&y&&We["input--placeholder"]),w=C=>{const k=C.target.value;_===void 0&&x(!k),u&&u({name:d,value:k,event:C})};return c.useEffect(()=>{_!==void 0&&x(!_)},[_]),i.jsxs(i.Fragment,{children:[i.jsx(Li,{startSlot:t,icon:o,size:r}),i.jsxs("select",z(p({},n),{onFocus:s||(n==null?void 0:n.onFocus),onBlur:l||(n==null?void 0:n.onBlur),onClick:h||(n==null?void 0:n.onClick),className:v,disabled:a,name:d,value:_,defaultValue:m,onChange:w,id:b,children:[g&&i.jsx("option",{value:"",children:g}),f]})),i.jsx(ji,{disabled:a,size:r})]})},Di=e=>{var h,g;const t=ot(),o=Ke(e.id),r=z(p({},e),{id:((h=t==null?void 0:t.attributes)==null?void 0:h.id)||((g=e.inputAttributes)==null?void 0:g.id)||o,disabled:(t==null?void 0:t.disabled)||e.disabled,hasError:(t==null?void 0:t.hasError)||e.hasError,inputAttributes:p(p({},e.inputAttributes),t==null?void 0:t.attributes)}),{children:n,className:s,size:l="medium",variant:a="outline",hasError:d,disabled:_,attributes:m}=r,u=F(We.root,s,l&&le(We,"--size",l),d&&We["--status-error"],_&&We["--disabled"],a&&We[`--variant-${a}`]);return i.jsx("div",z(p({},m),{className:u,children:n(r)}))},Pi=e=>{const{children:t,disabled:o,onClick:r,onFocus:n,onBlur:s,inputAttributes:l,startSlot:a,icon:d,size:_,placeholder:m,value:u,name:h,id:g}=e;return i.jsxs(i.Fragment,{children:[i.jsxs(je,{className:We.input,disabled:o,disableFocusRing:!0,onClick:r,attributes:p({onFocus:n||(l==null?void 0:l.onFocus),onBlur:s||(l==null?void 0:l.onBlur)},l),children:[i.jsx(Li,{startSlot:a,icon:d,size:_}),t?i.jsx(ne,{maxLines:typeof t=="string"?1:void 0,children:t}):null,m&&!t?i.jsx(ne,{color:"disabled",children:m}):null,i.jsx(ji,{disabled:o,size:_})]}),i.jsx("input",{type:"hidden",value:typeof u=="string"?u:JSON.stringify(u),name:h,id:g})]})},Fi=e=>{const{children:t}=e;return i.jsx(Di,z(p({},e),{children:o=>{const{options:r}=o,n=c.Children.toArray(t).some(l=>c.isValidElement(l)&&(l.type==="option"||l.type==="optgroup"));return!(r||n)?i.jsx(Pi,z(p({},o),{children:t})):i.jsxs(dd,z(p({},o),{children:[r==null?void 0:r.map(l=>i.jsx("option",{value:l.value,disabled:l.disabled,children:l.label},l.value)),t]}))}}))};Fi.displayName="Select";const Vo=e=>{const{label:t,children:o}=e;return i.jsxs(H,{attributes:{role:"group"},gap:1,className:We.group,children:[t&&i.jsx("div",{className:We["group-label"],children:i.jsx(ne,{variant:"caption-1",color:"neutral-faded",children:t})}),i.jsx(H.Item,{children:o})]})};Vo.displayName="Select.Group";const Wr=e=>{const r=e,{value:t}=r,o=pe(r,["value"]);return i.jsx(Ne.Item,z(p({},o),{className:[o.className,We.option],color:"neutral",attributes:z(p({},o.attributes),{value:t,role:"option"})}))};Wr.displayName="Select.Option";const qr=e=>{const{children:t,value:o,name:r,placeholder:n,size:s,multiple:l,width:a="trigger",position:d,fallbackPositions:_,positionRef:m,renderValue:u}=e,h=c.useRef(null),g=c.useRef(""),b=c.useRef(null),f=c.useRef(null),y=[],x=[],v=l?o.length>0:o,w=N=>c.Children.map(N,(S,T)=>{var j;if(!c.isValidElement(S))return null;if(S.type===Wr){const $=S,M=$.props,P=(l?o.includes(M.value):M.value===o)||!n&&!o&&T===0;return P&&x.push(M),y.push({value:M.value,text:typeof M.children=="string"?M.children:M.value}),c.cloneElement($,{key:M.value,onClick:B=>{var L,A,W;if((L=M.onClick)==null||L.call(M,B),l){const re=P?o.filter(Z=>Z!==M.value):[...o,M.value];(A=e.onChange)==null||A.call(e,{value:re,name:r})}else(W=e.onChange)==null||W.call(e,{value:M.value,name:r})},startSlot:(M==null?void 0:M.startSlot)!==void 0?M.startSlot:v&&i.jsx(ge,{svg:P?Mr:null}),attributes:z(p({},$.props.attributes),{ref:P?h:void 0})})}if(S.type===Vo){const $=S,M=$.props;return c.cloneElement($,{key:(j=M.label)!=null?j:T,children:w(M.children)})}return S}),C=w(t),k=N=>{var j;const S=N.key;if(((j=document.activeElement)==null?void 0:j.tagName)==="INPUT"||S.length!==1||!S.match(/[\w\s]/))return;b.current&&clearTimeout(b.current),g.current+=S.toLowerCase();const T=y.find($=>$.text.toLowerCase().startsWith(g.current));if(T&&f.current){const $=f.current.querySelector(`[value="${T.value}"]`);$==null||$.focus()}b.current=setTimeout(()=>{g.current=""},1e3)},E=()=>u?u(l?{value:o}:{value:o}):x.length===1?x[0].children:x.length>1?i.jsx(H,{direction:"row",gap:4,children:x.map(N=>i.jsx(H.Item,{children:N.children},N.value))}):null;return i.jsx(Di,z(p({},e),{children:N=>i.jsxs(Ne,{width:a,disableHideAnimation:!0,position:d!=null?d:"bottom",fallbackPositions:_!=null?_:d?void 0:["bottom","top"],fallbackAdjustLayout:!0,fallbackMinHeight:"220px",borderRadius:ae(s,S=>S==="large"||S==="xlarge"?"medium":"small"),initialFocusRef:h,positionRef:m,children:[i.jsx(Ne.Trigger,{children:S=>{const T=z(p({},N),{inputAttributes:p(p({},N.inputAttributes),S)});return i.jsx(Pi,z(p({},T),{value:o,children:E()}))}}),i.jsx(Ne.Content,{attributes:{ref:f,onKeyDown:k,role:void 0},children:C})]})}))};qr.displayName="SelectCustomControlled";const Ai=e=>{const a=e,{defaultValue:t,onChange:o,multiple:r}=a,n=pe(a,["defaultValue","onChange","multiple"]),[s,l]=c.useState(t||(r?[]:""));return i.jsx(qr,z(p({},n),{multiple:r,value:s,onChange:d=>{l(d.value),o==null||o(d)}}))};Ai.displayName="SelectCustomUncontrolled";const Vi=e=>{const{value:t}=e;return t!==void 0?i.jsx(qr,p({},e)):i.jsx(Ai,p({},e))};Vi.displayName="SelectCustom";const ho=Fi;ho.Custom=Vi,ho.Option=Wr,ho.Group=Vo,ho.OptionGroup=Vo;const ud={root:"_root_xavah_1"},Bi=e=>{const{borderRadius:t="small",width:o,height:r,className:n,attributes:s}=e,l=F(ud.root,n);return i.jsx(H,{backgroundColor:"disabled",width:o,height:r,borderRadius:t,className:l,attributes:s})};Bi.displayName="Skeleton";const ct={root:"_root_7bdnx_1",thumb:"_thumb_7bdnx_13","thumb--active":"_thumb--active_7bdnx_13",input:"_input_7bdnx_13",bar:"_bar_7bdnx_18",selection:"_selection_7bdnx_34",tooltip:"_tooltip_7bdnx_39",thumbs:"_thumbs_7bdnx_61","--orientation-horizontal":"_--orientation-horizontal_7bdnx_1","--orientation-vertical":"_--orientation-vertical_7bdnx_1","--disabled":"_--disabled_7bdnx_220"},Hi=e=>{const t=e.toString().split(".")[1];return(t==null?void 0:t.length)||0},Ur=(e,t)=>{const o=t%1!==0,r=Math.round(e/t)*t;if(o){const n=Hi(t);return Number(r.toFixed(n))}return r},Oi=({event:e,vertical:t})=>t?e instanceof MouseEvent?e.clientY:e.changedTouches[0].clientY:e instanceof MouseEvent?e.clientX:e.changedTouches[0].clientX,Wi=(e,t)=>{Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set.call(e,t),e.dispatchEvent(new Event("change",{bubbles:!0}))},Yr=c.forwardRef((e,t)=>{const{name:o,value:r,disabled:n,active:s,position:l,max:a,min:d,step:_,onChange:m,onDragStart:u,renderValue:h,tooltipRef:g,inputRef:b,orientation:f}=e,y=c.useId(),x=F(ct.thumb,s&&ct["thumb--active"]),v=Hi(_),w=h?h({value:r}):r.toFixed(v),C=k=>{m(+k.target.value,{native:!0})};return i.jsxs(i.Fragment,{children:[i.jsx("input",{className:ct.input,type:"range",name:o,value:r,onChange:C,disabled:n,max:a,min:d,step:_,"aria-labelledby":y,"aria-orientation":f,ref:b}),i.jsx("div",{ref:t,className:x,onMouseDown:u,onTouchStart:u,style:{"--ts-slider-thumb-position":`${l}%`},id:y,"aria-hidden":"true",children:h!==!1&&i.jsx(Dt,{colorMode:"inverted",children:i.jsx(ne,{variant:"caption-1",weight:"medium",className:ct.tooltip,attributes:{ref:g},children:w})})})]})});Yr.displayName="SliderThumb";const qi=16,Bo=e=>{var Y,R,he;const{name:t,range:o,max:r,min:n,step:s=1,onChange:l,onChangeCommit:a,renderValue:d,className:_,attributes:m,orientation:u="horizontal"}=e,h=ke(l),g=ke(a),b=u==="vertical",f=o&&e.minValue!==void 0?Ur(e.minValue,s):void 0,y=Ur(o?e.maxValue:e.value,s),x=(Y=e.minName)!=null?Y:e.name,v=(R=e.maxName)!=null?R:e.name,w=c.useRef(null),C=c.useRef(null),k=c.useRef(null),E=c.useRef(null),N=c.useRef(null),S=c.useRef(null),T=c.useRef(null),[j,$]=c.useState(null),[M]=pt(),D=ot(),P=Ke(),B=((he=D==null?void 0:D.attributes)==null?void 0:he.id)||P,L=`${B}-min`,A=`${B}-max`,W=(D==null?void 0:D.disabled)||e.disabled,re=F(ct.root,W&&ct["--disabled"],u&&ct[`--orientation-${u}`],_),Z=c.useCallback(J=>{const G=w.current;if(!G)return;const se=b?G.clientHeight:G.clientWidth,ce=G.getBoundingClientRect()[b?"top":"left"]+qi/2,Ce=J-ce,Me=se-qi;let Ie=Ce/Me;(M||b)&&(Ie=1-Ie);let me=(r-n)*Ie+n;return me=Math.max(n,Math.min(r,me)),Ur(me,s)},[r,n,M,s,b]),Q=J=>(J-n)/(r-n)*100,U=c.useCallback(J=>{var De,Qe,Ve;if(b)return;const G=J===L?E:N,se=J===L?C:k;let ie=0;const ce=(De=w.current)==null?void 0:De.getBoundingClientRect(),Ce=(Qe=G.current)==null?void 0:Qe.getBoundingClientRect(),Me=(Ve=se.current)==null?void 0:Ve.getBoundingClientRect(),Ie=ce==null?void 0:ce.left,me=Ie&&Ie+(ce==null?void 0:ce.width),ve=Me&&Ce&&Me.left-Ce.width/2,xe=Me&&Ce&&Me.left+Ce.width/2;ve&&Ie&&ve<Ie&&(ie=Ce.width/2-8),xe&&me&&xe>me&&(ie=-(Ce.width/2-8));const Ae=G.current;Ae&&Ae.style.setProperty("--rs-slider-tooltip-offset",`${ie||0}px`)},[L,b]),te=c.useCallback((J,G={})=>{var ie,ce,Ce;if(!o)return;const se={minValue:J,maxValue:y,name:t,minName:x,maxName:v};G.commit&&((ie=g.current)==null||ie.call(g,se)),G.native&&!j&&((ce=g.current)==null||ce.call(g,se)),G.native&&((Ce=h.current)==null||Ce.call(h,se)),Wi(S.current,J.toString())},[o,y,t,x,v,j,g,h]),X=c.useCallback((J,G={})=>{var ie,ce,Ce;const se=o?{minValue:f,maxValue:J,name:t,minName:x,maxName:v}:{value:J,name:t};G.commit&&((ie=g.current)==null||ie.call(g,se)),G.native&&!j&&((ce=g.current)==null||ce.call(g,se)),G.native&&((Ce=h.current)==null||Ce.call(h,se)),Wi(T.current,J.toString())},[o,f,t,x,v,g,j,h]),oe=({nativeEvent:J})=>{if(W)return;let G,se;const ie=Oi({event:J,vertical:b}),ce=Z(ie);[{ref:C,id:L},{ref:k,id:A}].forEach(Me=>{if(!Me.ref.current)return;const me=Me.ref.current.getBoundingClientRect(),ve=Math.abs((b?me.top:me.left)-ie);(G===void 0||ve<=G)&&(G=ve,se=Me.id)}),!(!se||ce===void 0)&&(se===L&&te(ce),se===A&&X(ce),$(se))},$e=J=>{W||(J.stopPropagation(),Jt(),$(L))},de=J=>{W||(J.stopPropagation(),Jt(),$(A))},K=c.useCallback(()=>{var J,G;j===L&&f!==void 0&&(te(f,{commit:!0}),(J=S.current)==null||J.focus()),j===A&&(X(y,{commit:!0}),(G=T.current)==null||G.focus()),ko(),$(null)},[f,y,te,X,j,L,A]),ue=c.useCallback(J=>{if(!j)return;const G=Oi({event:J,vertical:b}),se=Z(G);if(se===void 0)return;let ie=j;j===L&&se>y&&(ie=A),j===A&&f&&se<f&&(ie=L),ie===L&&te(se),ie===A&&X(se),j!==ie&&$(ie)},[j,f,y,Z,X,te,A,L,b]);c.useEffect(()=>{U(L),U(A)},[L,A,f,y,U]),c.useEffect(()=>(window.addEventListener("mouseup",K),window.addEventListener("touchend",K),window.addEventListener("mousemove",ue),window.addEventListener("touchmove",ue),()=>{window.removeEventListener("mouseup",K),window.removeEventListener("touchend",K),window.removeEventListener("mousemove",ue),window.removeEventListener("touchmove",ue)}),[K,ue]);const ye=f&&Q(f),O=Q(y);return i.jsxs("div",z(p({},m),{className:re,onMouseDown:oe,onTouchStart:oe,children:[i.jsx("div",{className:ct.bar,ref:w,children:i.jsx("div",{className:ct.selection,style:{"--rs-slider-selection-start":`${ye||0}%`,"--rs-slider-selection-size":`${O-(ye||0)}%`}})}),i.jsxs("div",{className:ct.thumbs,children:[f!==void 0&&ye!==void 0&&i.jsx(Yr,{id:L,active:L===j,name:x,disabled:W,onChange:te,value:f,onDragStart:$e,position:ye,max:r,min:n,ref:C,tooltipRef:E,inputRef:S,renderValue:d,step:s,orientation:u}),i.jsx(Yr,{id:A,active:A===j,name:v,disabled:W,onChange:X,value:y,onDragStart:de,position:O,max:r,min:n,ref:k,tooltipRef:N,inputRef:T,renderValue:d,step:s,orientation:u})]})]}))};Bo.displayName="SliderControlled";const Ui=(e,t,o)=>Math.min(Math.max(e,t),o),Yi=e=>{const{min:t,max:o,onChange:r,range:n}=e,s="defaultMinValue"in e&&e.defaultMinValue!==void 0&&e.defaultMinValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||t,l="defaultMaxValue"in e&&e.defaultMaxValue!==void 0&&e.defaultMaxValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||(n?o:t),[a,d]=c.useState(Ui(s,t,o)),[_,m]=c.useState(Ui(l,t,o)),u=g=>{n||(m(g.value),r==null||r(g))},h=g=>{n&&(d(g.minValue),m(g.maxValue),r==null||r(g))};return n?i.jsx(Bo,z(p({},e),{min:t,max:o,minValue:a,maxValue:_,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:h})):i.jsx(Bo,z(p({},e),{min:t,max:o,value:_,defaultValue:void 0,onChange:u}))};Yi.displayName="SliderUncontrolled";const Ki=e=>{const n=e,{min:t=0,max:o=100}=n,r=pe(n,["min","max"]);return"value"in e&&e.value!==void 0||"minValue"in e&&"maxValue"in e&&e.minValue!==void 0&&e.maxValue!==void 0?i.jsx(Bo,z(p({},r),{min:t,max:o})):i.jsx(Yi,z(p({},r),{min:t,max:o}))};Ki.displayName="Slider";const Gi={root:"_root_1as3o_1","--animated":"_--animated_1as3o_6"},Kr=e=>{const{children:t,active:o,attributes:r}=e,n=c.useRef(null),s=c.useRef(!1),[l,a]=c.useState(o?"auto":null),d=F(Gi.root,s.current&&l!=="auto"&&Gi["--animated"]),_=m=>{m.propertyName==="height"&&a(o?"auto":null)};return c.useEffect(()=>{tt(()=>{s.current=!0})},[]),fe(()=>{const m=n.current;!m||!s.current||(o?(m.style.height="auto",requestAnimationFrame(()=>{const u=m.clientHeight;m.style.height="0",requestAnimationFrame(()=>{a(u)})})):(m.style.height=`${m.clientHeight}px`,requestAnimationFrame(()=>{a(0)})))},[o]),i.jsx("div",z(p({},r),{className:d,ref:n,style:l!==null?{height:l,overflow:l==="auto"?"visible":void 0}:void 0,onTransitionEnd:_,role:"region",hidden:!o&&l===null,children:t}))};Kr.displayName="Expandable";const _d={verticalDivider:"_verticalDivider_oa23g_1"},md=e=>{const{title:t,subtitle:o,children:r,direction:n,className:s,attributes:l,labelDisplay:a,step:d,completed:_,active:m,last:u}=e,h=a&&ae(a,b=>b==="hidden"),g=i.jsx(H,{gap:3,grow:!0,children:i.jsxs(H.Item,{children:[i.jsx(ne,{variant:"body-3",weight:"medium",children:t}),i.jsx(ne,{variant:"caption-1",color:"neutral-faded",children:o})]})});return i.jsxs(H,{attributes:l,className:s,children:[i.jsxs(H,{direction:"row",gap:2,align:"center",position:"static",children:[i.jsxs(H.Item,{children:[i.jsx(H,{align:"center",justify:"center",backgroundColor:m||_?"primary":"neutral-faded",borderColor:m||_?void 0:"neutral-faded",borderRadius:"circular",as:"span",width:8,height:8,zIndex:5,children:i.jsx(ne,{variant:"body-3",weight:m?"bold":"medium",children:_?i.jsx(ge,{svg:Mr,size:4}):d})}),n==="column"&&!u&&i.jsx(eo,{vertical:!0,className:_d.verticalDivider})]}),a?i.jsx(Nt,{hide:h,children:g}):g]}),n==="column"&&r&&i.jsx(Kr,{active:m,children:i.jsx(H,{paddingStart:10,paddingTop:2,children:r})})]})},Gr=e=>null,Xi=e=>{const{children:t,direction:o="row",activeId:r,labelDisplay:n,gap:s=3,className:l,attributes:a}=e,d=o==="column",_=c.Children.count(t);return i.jsx(H,{attributes:a,direction:o,align:d?"stretch":"center",className:l,gap:s,wrap:!1,children:c.Children.map(t,(m,u)=>{if(!c.isValidElement(m)||m.type!==Gr)return null;const h=m.props,g=h.id||`${u}`;return i.jsxs(c.Fragment,{children:[i.jsx(md,z(p({},h),{id:g,active:(r==null?void 0:r.toString())===g,step:u+1,last:u===_-1,direction:o,labelDisplay:n})),!d&&u<_-1&&i.jsx(H,{grow:!0,children:i.jsx(eo,{})})]},u)})})};Xi.displayName="Stepper",Gr.displayName="Stepper.Item";const Zi=Xi;Zi.Item=Gr;const Tt={root:"_root_icbs0_1","--reversed":"_--reversed_icbs0_9",input:"_input_icbs0_14",area:"_area_icbs0_26",thumb:"_thumb_icbs0_30",hitbox:"_hitbox_icbs0_76","--size-small":"_--size-small_icbs0_1","--size-medium":"_--size-medium_icbs0_1","--size-large":"_--size-large_icbs0_1","--size-small--m":"_--size-small--m_icbs0_1","--size-medium--m":"_--size-medium--m_icbs0_1","--size-large--m":"_--size-large--m_icbs0_1","--size-small--l":"_--size-small--l_icbs0_1","--size-medium--l":"_--size-medium--l_icbs0_1","--size-large--l":"_--size-large--l_icbs0_1","--size-small--xl":"_--size-small--xl_icbs0_1","--size-medium--xl":"_--size-medium--xl_icbs0_1","--size-large--xl":"_--size-large--xl_icbs0_1"},Ji=e=>{var v;const{children:t,name:o,checked:r,size:n="medium",reversed:s,defaultChecked:l,onChange:a,onFocus:d,onBlur:_,className:m,attributes:u}=e,h=F(Tt.root,n&&le(Tt,"--size",n),s&&Tt["--reversed"],m),g=ot(),b=Ke((g==null?void 0:g.attributes.id)||e.id||((v=e.inputAttributes)==null?void 0:v.id)),f=p(p({},e.inputAttributes),g==null?void 0:g.attributes),y=(g==null?void 0:g.disabled)||e.disabled,x=w=>{a&&a({name:o,event:w,checked:w.target.checked})};return i.jsxs("label",z(p({},u),{className:h,children:[i.jsx("input",z(p({type:"checkbox"},f),{className:Tt.input,name:o,checked:r,defaultChecked:l,disabled:y,onChange:x,onFocus:d||(f==null?void 0:f.onFocus),onBlur:_||(f==null?void 0:f.onBlur),id:b})),i.jsxs("span",{className:Tt.area,"aria-hidden":"true",children:[i.jsx("span",{className:Tt.hitbox}),i.jsx("span",{className:Tt.thumb})]}),t&&i.jsx(ne,{variant:ae(n,w=>w==="large"?"body-2":w==="medium"?"body-3":"caption-1"),weight:"medium",color:y?"disabled":void 0,children:t})]}))};Ji.displayName="Switch";const Qi=(e,t={})=>{const{disabled:o}=t,[r]=pt(),[n,s]=c.useState(null),l=c.useCallback(()=>{const a=e.current;if(!a)return;a.clientWidth<a.scrollWidth||s(null);const _=a.scrollLeft*(r?-1:1),m=_>1,u=_+a.clientWidth<a.scrollWidth-1;if(u&&m)return s("both");if(m)return s("start");if(u)return s("end")},[r,e]);return fe(()=>{const a=e.current;if(!a||o)return;const d=Ro(l);return requestAnimationFrame(()=>l()),window.addEventListener("resize",d),a.addEventListener("scroll",d),()=>{window.removeEventListener("resize",d),a.removeEventListener("scroll",d)}},[r,o]),n},qe={root:"_root_xlh1v_13",table:"_table_xlh1v_26",row:"_row_xlh1v_32",cell:"_cell_xlh1v_46",head:"_head_xlh1v_61",body:"_body_xlh1v_61","cell--align-start":"_cell--align-start_xlh1v_1","cell--align-center":"_cell--align-center_xlh1v_1","cell--align-end":"_cell--align-end_xlh1v_1","cell--valign-start":"_cell--valign-start_xlh1v_1","cell--valign-center":"_cell--valign-center_xlh1v_1","cell--valign-end":"_cell--valign-end_xlh1v_1","cell--width-auto":"_cell--width-auto_xlh1v_77","--row-highlighted":"_--row-highlighted_xlh1v_81","--border-outer":"_--border-outer_xlh1v_85","--border-column":"_--border-column_xlh1v_90","--fade-start":"_--fade-start_xlh1v_100","--fade-end":"_--fade-end_xlh1v_101"},Ri=e=>{const{minWidth:t,rowSpan:o,colSpan:r,align:n,verticalAlign:s,tagName:l,padding:a,paddingInline:d,paddingBlock:_,children:m,className:u,attributes:h}=e,g=e.width==="auto"?"0px":e.width,b=et({width:g,minWidth:t}),f=F(qe.cell,b.classNames,(g===0||g==="0px")&&qe["cell--width-auto"],n&&qe[`cell--align-${n}`],s&&qe[`cell--valign-${s}`],u),y=p(p(p({},b.variables),q("--rs-table-p-vertical",_!=null?_:a)),q("--rs-table-p-horizontal",d!=null?d:a));return i.jsx(l,z(p({},h),{className:f,rowSpan:o,colSpan:r,style:y,children:m}))},el=e=>i.jsx(Ri,z(p({},e),{tagName:"td"})),tl=e=>i.jsx(Ri,z(p({},e),{tagName:"th"})),ol=e=>{const{highlighted:t,children:o,className:r,attributes:n}=e,s=e.onClick||(n==null?void 0:n.onClick),l=F(qe.row,t&&qe["--row-highlighted"],r);return i.jsx("tr",z(p({},n),{className:l,onClick:s,tabIndex:s?0:void 0,children:o}))},Ho=e=>{const{children:t,attributes:o,className:r}=e;return i.jsx("tbody",z(p({},o),{className:F(qe.body,r),children:t}))},Xr=e=>{const{children:t,attributes:o,className:r}=e;return i.jsx("thead",z(p({},o),{className:F(qe.head,r),children:t}))},rl=e=>{const{children:t,border:o,columnBorder:r,className:n,attributes:s}=e,l=c.useRef(null),a=Qi(l),d=F(qe.root,n,o&&qe["--border-outer"],r&&qe["--border-column"],(a==="start"||a==="both")&&qe["--fade-start"],(a==="end"||a==="both")&&qe["--fade-end"]),[_]=c.Children.toArray(t),m=c.isValidElement(_),u=m&&_.type===Ho,h=m&&_.type===Xr;return i.jsx("div",z(p({},s),{className:d,ref:l,children:i.jsx("table",{className:qe.table,children:u||h?t:i.jsx(Ho,{children:t})})}))};rl.displayName="Table",el.displayName="TableCell",tl.displayName="TableHeading",ol.displayName="TableRow",Ho.displayName="TableBody",Xr.displayName="TableHead";const Bt=rl;Bt.Cell=el,Bt.Heading=tl,Bt.Row=ol,Bt.Body=Ho,Bt.Head=Xr;const nl=c.createContext({}),hd=nl.Provider,Zr=e=>{const r=c.useContext(nl),{id:t}=r,o=pe(r,["id"]);return z(p({},o),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},Jr=e=>{const{children:t,value:o,onChange:r,onSilentChange:n,itemWidth:s,variant:l,name:a,disableSelectionAnimation:d,direction:_="row",size:m="medium"}=e,u=Ke(),h=c.useRef(null),g=c.useRef(h.current),b=c.useRef(null),[f,y]=c.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),x=v=>{v!==void 0&&n&&n({value:v,name:a})};return i.jsx(hd,{value:{value:o,name:a,size:m,direction:_,itemWidth:s,variant:l,onChange:r,id:u,setDefaultValue:x,elActiveRef:h,elPrevActiveRef:g,elScrollableRef:b,selection:f,setSelection:y,disableSelectionAnimation:d},children:t})};Jr.displayName="TabsControlled";const sl=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=c.useState(t),s=({value:a})=>{n(a),o&&o({value:a})},l=({value:a})=>{n(a)};return i.jsx(Jr,z(p({},e),{onChange:s,onSilentChange:l,value:r,defaultValue:void 0}))};sl.displayName="TabsUncontrolled";const il=e=>{const{value:t}=e;return t!==void 0?i.jsx(Jr,p({},e)):i.jsx(sl,p({},e))};il.displayName="Tabs";const _e={root:"_root_zx0gj_25",inner:"_inner_zx0gj_39",list:"_list_zx0gj_48",listItem:"_listItem_zx0gj_53",button:"_button_zx0gj_58",buttonContent:"_buttonContent_zx0gj_85",icon:"_icon_zx0gj_93",radio:"_radio_zx0gj_102",item:"_item_zx0gj_106","item--active":"_item--active_zx0gj_114","item--disabled":"_item--disabled_zx0gj_119",selector:"_selector_zx0gj_125","selector--hidden":"_selector--hidden_zx0gj_148","selector--animated":"_selector--animated_zx0gj_152",control:"_control_zx0gj_159","control--active":"_control--active_zx0gj_170","control--next":"_control--next_zx0gj_179","control--prev":"_control--prev_zx0gj_183",panel:"_panel_zx0gj_188","panel--hidden":"_panel--hidden_zx0gj_195","--scrollable":"_--scrollable_zx0gj_200","--direction-row":"_--direction-row_zx0gj_225","--direction-column":"_--direction-column_zx0gj_267","--variant-borderless":"_--variant-borderless_zx0gj_312","--variant-pills":"_--variant-pills_zx0gj_313","--variant-pills-elevated":"_--variant-pills-elevated_zx0gj_314","--size-medium":"_--size-medium_zx0gj_394","--size-large":"_--size-large_zx0gj_399","--item-width-equal":"_--item-width-equal_zx0gj_404",buttonText:"_buttonText_zx0gj_422","--fade-start":"_--fade-start_zx0gj_432","--fade-end":"_--fade-end_zx0gj_433"},Qr=c.forwardRef((e,t)=>{const{value:o,children:r,icon:n,href:s,disabled:l,attributes:a}=e,{onChange:d,panelId:_,buttonId:m,name:u,size:h,value:g,selection:b,elActiveRef:f,elPrevActiveRef:y,elScrollableRef:x}=Zr(o),v=c.useRef(null),w=g===o,C=w&&b.status==="idle",k=F(_e.item,C&&_e["item--active"],l&&_e["item--disabled"]),E=!!u,N={role:"tab",tabIndex:w?0:-1,"aria-selected":w},S=c.useCallback(()=>{y.current=f.current,f.current=v.current},[f,y]),T=()=>{var W,re;if(s&&!d)return;const j=x.current,$=(W=v.current)==null?void 0:W.parentElement,M=(re=f.current)==null?void 0:re.parentElement;if(d&&d({value:o,name:u}),!j||!$||!M||j.scrollWidth===j.clientWidth||!x.current)return;const D=48,P=v.current&&Gl(v.current,Z=>Z.hasAttribute("data-rs-tabs-item"));if(!P)return;const B=x.current,L=P.offsetLeft-B.scrollLeft,A=B.scrollLeft+B.clientWidth-(P.offsetLeft+P.clientWidth);(L<D||A<D)&&x.current.scrollTo({left:P.offsetLeft+P.clientWidth/2-B.clientWidth/2,behavior:"smooth"})};return fe(()=>{w&&S()},[w,S]),i.jsx("div",z(p({},a),{className:k,ref:v,role:"presentation",children:i.jsxs(je,{ref:t,href:s,disableFocusRing:!0,disabled:l,onClick:u?void 0:T,className:_e.button,as:u?"label":void 0,attributes:z(p({},!E&&N),{"aria-controls":_,id:m}),children:[u&&i.jsx(_o,{type:"radio",name:u,value:o,checked:C,onChange:T,className:_e.radio}),i.jsxs("span",{className:_e.buttonContent,children:[n&&i.jsx(ge,{svg:n,className:_e.icon,size:4}),r&&i.jsx(ne,{variant:h==="large"?"body-2":"body-3",weight:"medium",className:_e.buttonText,children:r})]})]})}))});Qr.displayName="Tabs.Item";const ll=(e,t)=>e===t||!e?null:e.classList.contains(_e.listItem)?e:ll(e.parentElement,t),al=e=>{const{children:t,className:o,attributes:r}=e,{value:n,setDefaultValue:s,itemWidth:l,variant:a,name:d,direction:_,size:m,selection:u,setSelection:h,elActiveRef:g,elPrevActiveRef:b,elScrollableRef:f,disableSelectionAnimation:y}=Zr(),[x]=pt(),v=Qi(f,{disabled:l==="equal"}),w=F(_e.root,m&&_e[`--size-${m}`],_&&_e[`--direction-${_}`],l&&_e[`--item-width-${l}`],a&&_e[`--variant-${a}`],v&&_e["--scrollable"],(v==="start"||v==="both")&&_e["--fade-start"],(v==="end"||v==="both")&&_e["--fade-end"],o),C=F(_e.selector,u.status==="idle"&&_e["selector--hidden"],u.status==="animated"&&_e["selector--animated"]),k=()=>{f.current.scrollBy({left:Math.ceil(f.current.clientWidth/2)*(x?-1:1),behavior:"smooth"})},E=()=>{f.current.scrollBy({left:Math.ceil(f.current.clientWidth/2)*(x?1:-1),behavior:"smooth"})},N=()=>{h(T=>z(p({},T),{status:"idle"}))},S=c.useCallback(T=>{if(!f.current)return null;const j=ll(T,f.current);return j?{scaleX:j.clientWidth,scaleY:j.clientHeight,top:j.offsetTop,left:j.offsetLeft}:null},[f]);return nr({ref:f,disabled:!!d}),fe(()=>{if(n)return;const T=c.Children.toArray(t)[0];if(!c.isValidElement(T)||!T||T.type!==Qr)return;const j=T.props;s(j.value)},[n]),fe(()=>{if(!b.current||b.current===g.current)return;const T=S(b.current);if(T){if(y){h(z(p({},T),{status:"idle"}));return}h(z(p({},T),{status:"prepared"}))}},[n,S,y]),fe(()=>{if(u.status!=="prepared"||!g.current)return;const T=S(g.current);T&&h(z(p({},T),{status:"animated"}))},[u]),i.jsxs("div",z(p({},r),{className:w,children:[i.jsx("div",{className:_e.inner,ref:f,children:i.jsxs("div",{className:_e.list,role:"tablist",children:[c.Children.map(t,(T,j)=>{if(!c.isValidElement(T))return null;const $=T.props;return i.jsx("div",{className:_e.listItem,"data-rs-tabs-item":!0,children:T},$.value||T.key||j)}),!y&&i.jsx("div",{onTransitionEnd:N,className:C,style:{"--rs-tab-selection-x":u.left,"--rs-tab-selection-y":u.top,"--rs-tab-selection-scale-x":u.scaleX,"--rs-tab-selection-scale-y":u.scaleY}})]})}),i.jsx(je,{onClick:E,touchHitbox:!0,attributes:{"aria-hidden":!0,tabIndex:-1},className:[_e.control,_e["control--prev"],(v==="start"||v==="both")&&_e["control--active"]],children:i.jsx(ge,{svg:Do,size:5})}),i.jsx(je,{onClick:k,touchHitbox:!0,attributes:{"aria-hidden":!0,tabIndex:-1},className:[_e.control,_e["control--next"],(v==="end"||v==="both")&&_e["control--active"]],children:i.jsx(ge,{svg:Pt,size:5})})]}))};al.displayName="Tabs.List";const cl=e=>{const{value:t,children:o,className:r,attributes:n}=e,{value:s,panelId:l,buttonId:a}=Zr(t),[d,_]=c.useState(!0),m=c.useRef(null),u=t===s,h=F(_e.panel,!u&&_e["panel--hidden"],r);return c.useEffect(()=>{const g=m.current;if(!g)return;const b=()=>{_(!Xt(g).length)};b();const f=new MutationObserver(b);return f.observe(g,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex","disabled","href"]}),()=>f.disconnect()},[]),i.jsx("div",z(p({},n),{ref:m,className:h,tabIndex:d?0:void 0,role:"tabpanel",id:l,"aria-labelledby":a,children:u&&o}))};cl.displayName="Tabs.Panel";const Oo=il;Oo.Item=Qr,Oo.List=al,Oo.Panel=cl;const $t={root:"_root_72pr2_1",input:"_input_72pr2_20","--size-medium":"_--size-medium_72pr2_1","--size-large":"_--size-large_72pr2_1","--size-xlarge":"_--size-xlarge_72pr2_1","--variant-faded":"_--variant-faded_72pr2_87","--variant-ghost":"_--variant-ghost_72pr2_95","--variant-headless":"_--variant-headless_72pr2_103","--status-error":"_--status-error_72pr2_111","--resize-none":"_--resize-none_72pr2_122","--resize-auto":"_--resize-auto_72pr2_123","--size-medium--m":"_--size-medium--m_72pr2_1","--size-large--m":"_--size-large--m_72pr2_1","--size-xlarge--m":"_--size-xlarge--m_72pr2_1","--size-medium--l":"_--size-medium--l_72pr2_1","--size-large--l":"_--size-large--l_72pr2_1","--size-xlarge--l":"_--size-xlarge--l_72pr2_1","--size-medium--xl":"_--size-medium--xl_72pr2_1","--size-large--xl":"_--size-large--xl_72pr2_1","--size-xlarge--xl":"_--size-xlarge--xl_72pr2_1"},dl=e=>{var N,S;const{onChange:t,onFocus:o,onBlur:r,name:n,value:s,defaultValue:l,placeholder:a,size:d="medium",variant:_="outline",resize:m,className:u,attributes:h}=e,[g,b]=c.useState(s||l||""),f=ot(),y=Ke(e.id),x=((N=f==null?void 0:f.attributes)==null?void 0:N.id)||((S=e.inputAttributes)==null?void 0:S.id)||y,v=(f==null?void 0:f.disabled)||e.disabled,w=(f==null?void 0:f.hasError)||e.hasError,C=p(p({},e.inputAttributes),f==null?void 0:f.attributes),k=F($t.root,d&&le($t,"--size",d),w&&$t["--status-error"],v&&$t["--disabled"],_&&$t[`--variant-${_}`],m!==void 0&&$t[`--resize-${m}`],u),E=T=>{const j=T.target.value;t==null||t({name:n,value:j,event:T}),m==="auto"&&typeof s!="string"&&b(j)};return c.useEffect(()=>{typeof s!="string"||m!=="auto"||b(s)},[s,m]),i.jsx("div",z(p({},h),{"data-rs-aligner-target":!0,className:k,"data-rs-textarea-value":g,children:i.jsx("textarea",z(p({rows:3},C),{className:$t.input,disabled:v,name:n,placeholder:a,value:s,defaultValue:l,onChange:E,onFocus:o||(C==null?void 0:C.onFocus),onBlur:r||(C==null?void 0:C.onBlur),id:x}))}))};dl.displayName="TextArea";const ul=dl;ul.Aligner=to;const Rr={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},Wo=e=>{const{children:t,markerSlot:o,className:r,attributes:n}=e,s=o!==null,l=F(Rr.item,!s&&Rr["item--full-width"],r);return i.jsxs(H,{as:"li",direction:"row",align:"stretch",gap:3,attributes:n,className:l,children:[s&&i.jsx("span",{className:Rr.marker,children:o}),i.jsx(H.Item,{grow:!0,children:t})]})},_l=e=>{const{children:t,className:o,attributes:r}=e,n=F(o);return i.jsx("ul",z(p({},r),{className:n,children:c.Children.map(t,(s,l)=>c.isValidElement(s)&&s.type===Wo?s:i.jsx(Wo,{children:s},l))}))};_l.displayName="Timeline",Wo.displayName="Timeline.Item";const ml=_l;ml.Item=Wo;const hl={short:4e3,long:8e3},fo=["top-start","top","top-end","bottom-start","bottom","bottom-end"],fl={queues:fo.reduce((e,t)=>p({[t]:[]},e),{}),id:"",show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},qo=c.createContext(fl),gl=()=>{const{add:e,hide:t,id:o}=c.useContext(qo);return c.useMemo(()=>({show:e,hide:t,id:o}),[e,t,o])},nt={container:"_container_13298_1","container--visible":"_container--visible_13298_1",wrapper:"_wrapper_13298_12","container--index-0":"_container--index-0_13298_1","container--index-1":"_container--index-1_13298_1","container--index-2":"_container--index-2_13298_112","container--index-overflow":"_container--index-overflow_13298_116",region:"_region_13298_65","region--nested":"_region--nested_13298_1","region--position-top":"_region--position-top_13298_1","region--position-top-start":"_region--position-top-start_13298_1","region--position-top-end":"_region--position-top-end_13298_1","region--position-bottom":"_region--position-bottom_13298_1","region--position-bottom-start":"_region--position-bottom-start_13298_1","region--position-bottom-end":"_region--position-bottom-end_13298_1"},bl=e=>{const{size:t="small",text:o,children:r,color:n="inverted",icon:s,title:l,actionsSlot:a,startSlot:d,collapsed:_,className:m,attributes:u}=e;let h=n==="inverted"||n==="neutral"?"elevation-overlay":n;n==="neutral"&&(h=_?"neutral":"elevation-overlay");const g=n==="neutral"?"neutral-faded":"transparent",b=t==="small"?"span":"div",f=t==="large";let y=[];a&&(y=Array.isArray(a)?a:[a]);const x=(l||o)&&i.jsxs(c.Fragment,{children:[l&&i.jsxs(ne,{variant:"body-3",weight:"bold",as:b,children:[l," "]}),i.jsx(ne,{variant:"body-3",as:b,children:o})]}),v=i.jsxs(H,{backgroundColor:h,borderColor:g,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:f?"start":"center",className:[nt.toast,m],attributes:u,children:[s&&i.jsx(ge,{size:5,svg:s,className:nt.icon}),d&&!s&&i.jsx(H.Item,{children:d}),i.jsx(H.Item,{grow:!0,children:i.jsxs(H,{direction:f?"column":"row",align:f?"start":"center",gap:3,children:[i.jsx(H.Item,{grow:!0,children:x&&r||t!=="small"?i.jsxs(H,{gap:.5,children:[x,r&&i.jsx(H,{gap:3,children:r})]}):x||r}),y.length&&i.jsx(H,{direction:"row",align:"center",gap:2,children:y.map((w,C)=>{const k=t==="large"?C===0:C===y.length-1,N={variant:k?"solid":"ghost",size:"small",color:k?n==="neutral"||n==="inverted"?"neutral":"media":"inherit",elevated:n!=="neutral"};return w.type===Te?c.createElement(Te,z(p(p({},N),w.props),{key:C})):w})})]})})]});return n==="inverted"?i.jsx(Dt,{colorMode:"inverted",children:v}):v};bl.displayName="Toast";const pl=e=>{const{toastProps:t,id:o,status:r,inspected:n,index:s}=e,{timeout:l="short"}=t,{show:a,hide:d,remove:_}=c.useContext(qo),[m,u]=c.useState(),h=c.useRef(null),g=c.useRef(!1),b=c.useRef(null),f=r==="entered",y=F(nt.container,f&&nt["container--visible"],s===0&&nt[`container--index-${s}`],!n&&(s===1||s===2)&&nt[`container--index-${s}`],!n&&s>=3&&nt["container--index-overflow"]),x=c.useCallback(()=>{h.current&&clearTimeout(h.current)},[]),v=c.useCallback(()=>{x();const C=typeof l=="string"?hl[l]:l;l!==0&&(h.current=setTimeout(()=>{d(o)},C!=null?C:hl.short))},[d,o,l,x]),w=C=>{C.propertyName==="height"&&(f||_(o))};return c.useEffect(()=>{f&&(n?x():v())},[n,v,x,f]),c.useEffect(()=>{b.current&&u(b.current.clientHeight),a(o),v()},[a,o,v]),c.useEffect(()=>{if(!b.current)return;const C=new It;f?C.trap(b.current,{includeTrigger:!0,mode:"content-menu"}):Zt()&&C.release()},[f]),c.useEffect(()=>{if(!f||s>0)return;const C=()=>{g.current=!0,tt(()=>{g.current=!1}),b.current&&u(b.current.clientHeight)};return window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[f,s]),i.jsx("li",{className:y,style:{height:r==="entered"?`calc(${m}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:g.current?"0s":void 0},onTransitionEnd:w,onFocus:x,onBlur:v,children:i.jsx("span",{className:nt.wrapper,children:i.jsx(bl,z(p({},t),{collapsed:s>0&&!n,attributes:z(p({},t.attributes),{ref:b})}))})})};pl.displayName="ToastContainer";const vl=e=>{const{position:t,nested:o}=e,{queues:r,options:n}=c.useContext(qo),[s,l]=c.useState(!1),a=c.useRef(!1),d=c.useRef(null),_=r[t],{width:m,expanded:u}=(n==null?void 0:n[t])||{},h=F(nt.region,nt[`region--position-${t}`],o&&nt["region--nested"]),g=_.filter(w=>w.status==="entered").length;let b=0;const f=()=>{a.current=!0},y=w=>{let C=w.target,k=!1;for(;C&&C!==d.current&&!k;)k=C.matches(bn),C=C.parentElement;k||l(E=>!E),a.current=!1},x=()=>{a.current||l(!0)},v=()=>{a.current||l(!1)};return c.useEffect(()=>{_.length===0&&l(!1)},[_.length]),_.length?i.jsx("ul",{role:"region","aria-live":"polite",className:h,ref:d,onTouchStart:f,onClick:y,onMouseEnter:x,onMouseLeave:v,style:{width:m},children:_.map((w,C)=>{const k=g-C+b-1;return w.status!=="entered"&&(b+=1),i.jsx(pl,z(p({},w),{index:k,inspected:s||!!u}),w.id)})}):null};vl.displayName="ToastRegion";let fd=0;const gd=()=>`__rs-toast-${fd++}`,bd=(e,t)=>{let o;switch(t.type){case"add":{const r=t.payload.toastProps||{},{position:n="bottom-end"}=r,s=pe(r,["position"]);return z(p({},e),{[n]:[...e[n],{id:t.payload.id,toastProps:s,status:"entering"}]})}case"show":{const{id:n}=t.payload;return o=p({},e),fo.forEach(s=>{o[s]=o[s].map(l=>l.status!=="entering"?l:l.id===n?z(p({},l),{status:"entered"}):l)}),o}case"hide":{const{id:n}=t.payload;return o=p({},e),fo.forEach(s=>{o[s]=o[s].map(l=>l.id===n?z(p({},l),{status:"exiting"}):l)}),o}case"remove":{const{id:n}=t.payload;return o=p({},e),fo.forEach(s=>{o[s]=o[s].filter(l=>l.id!==n)}),o}}},en=e=>{const{children:t,options:o}=e,r=gl(),n=c.useId(),[s,l]=c.useReducer(bd,fl.queues),a=c.useCallback(h=>{const g=gd();return l({type:"add",payload:{toastProps:h,id:g}}),g},[]),d=c.useCallback(h=>{l({type:"show",payload:{id:h}})},[]),_=c.useCallback(h=>{l({type:"hide",payload:{id:h}})},[]),m=c.useCallback(h=>{l({type:"remove",payload:{id:h}})},[]),u=c.useMemo(()=>({queues:s,id:n,add:a,show:d,hide:_,remove:m,inspecting:!1,options:o}),[s,d,_,a,m,n,o]);return i.jsxs(qo.Provider,{value:u,children:[t,fo.map(h=>i.jsx(vl,{position:h,nested:!!r.id},h))]})};en.displayName="ToastProiver";const yl=c.createContext(null),pd=()=>c.useContext(yl),tn=e=>{const m=e,{onChange:t,value:o,selectionMode:r="single",children:n,color:s,selectedColor:l}=m,a=pe(m,["onChange","value","selectionMode","children","color","selectedColor"]),d=c.useRef(null),_=u=>{const{event:h,value:g,checked:b}=u;if(!g)return;let f=r==="single"?[g]:[...o];r==="multiple"&&(b?f.push(g):f=f.filter(y=>y!==g)),t&&t({value:f,event:h})};return nr({ref:d}),i.jsx(yl.Provider,{value:{onChange:_,value:o,selectedColor:l,color:s},children:i.jsx(Te.Group,z(p({},a),{attributes:p({ref:d},a==null?void 0:a.attributes),children:n}))})};tn.displayName="ToggleButtonGroupControlled";const xl=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=c.useState(t||[]),s=l=>{l.value&&(n(l.value),o&&o(l))};return i.jsx(tn,z(p({},e),{value:r,defaultValue:void 0,onChange:s}))};xl.displayName="ToggleButtonGroupUncontrolled";const wl=e=>{const{value:t}=e;return t!==void 0?i.jsx(tn,p({},e)):i.jsx(xl,p({},e))};wl.displayName="ToggleButtonGroup";const on=e=>{var g,b,f;const h=e,{variant:t="outline",selectedColor:o,value:r,onChange:n,onClick:s,color:l}=h,a=pe(h,["variant","selectedColor","value","onChange","onClick","color"]),d=pd(),_=(b=r?(g=d==null?void 0:d.value)==null?void 0:g.includes(r):void 0)!=null?b:e.checked,m=_&&(o||(d==null?void 0:d.selectedColor))||l||(d==null?void 0:d.color),u=y=>{var v;const x={checked:!_,value:r!=null?r:"",event:y};s==null||s(y),d?(v=d==null?void 0:d.onChange)==null||v.call(d,x):n==null||n(x)};return i.jsx(Te,z(p({},a),{color:m,variant:t,onClick:u,highlighted:_,attributes:z(p({},a.attributes),{"aria-pressed":_,tabIndex:(f=d==null?void 0:d.value)!=null&&f.length?_?0:-1:void 0})}))};on.displayName="ToggleButtonControlled";const Cl=e=>{const l=e,{defaultChecked:t,onChange:o}=l,r=pe(l,["defaultChecked","onChange"]),n=Ct(t),s=a=>{o==null||o(a),n.toggle(a.checked)};return i.jsx(on,z(p({},r),{onChange:s,checked:n.active}))};Cl.displayName="ToggleButtonUncontrolled";const Nl=e=>{const{checked:t}=e;return t!==void 0?i.jsx(on,p({},e)):i.jsx(Cl,p({},e))};Nl.displayName="ToggleButton";const vd={root:"_root_1vb26_1"},kl=e=>{const a=e,{text:t,children:o,position:r="bottom",color:n="inverted",contentMaxWidth:s="360px"}=a,l=pe(a,["text","children","position","color","contentMaxWidth"]);return t?i.jsxs(ut,z(p({},l),{position:r,triggerType:"hover",groupTimeouts:l.active===void 0,contentMaxWidth:s,children:[i.jsx(ut.Trigger,{children:o}),i.jsx(ut.Content,{children:i.jsx(Dt,{colorMode:n,children:i.jsx(ne,{variant:"caption-1",className:vd.root,children:t})})})]})):o({ref:null})};kl.displayName="Tooltip";const yd={root:"_root_1cpr1_1"},zl=e=>{const{theme:t,defaultTheme:o="reshaped",colorMode:r,defaultColorMode:n,defaultViewport:s,toastOptions:l,scoped:a,className:d}=e,_=F(yd.root,d),m=c.useRef(null),u=mr();return i.jsx(Sn,{children:i.jsx(Jn,{defaultMode:n||u.mode||"light",mode:r,scopeRef:u&&a?m:void 0,children:i.jsx(Zn,{name:t,defaultName:o,className:_,scoped:a,scopeRef:u&&a?m:void 0,children:i.jsx(Qc,{defaultViewport:s,children:i.jsx(en,{options:l,children:e.children})})})})})};zl.displayName="Reshaped";const rn=c.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),nn=e=>{const{children:t,onToggle:o,active:r,iconPosition:n,iconSize:s,gap:l,className:a,attributes:d}=e,_=F(a),m=Ke(),u=ke(o),h=c.useMemo(()=>({triggerId:`${m}-trigger`,contentId:`${m}-content`,active:r,onToggle:u.current,iconPosition:n,iconSize:s,gap:l}),[r,n,s,m,u,l]);return i.jsx("div",z(p({},d),{className:_,children:i.jsx(rn.Provider,{value:h,children:t})}))};nn.displayName="AccordionControlled";const Sl=e=>{const a=e,{defaultActive:t,onToggle:o}=a,r=pe(a,["defaultActive","onToggle"]),[n,s]=c.useState(t||!1),l=d=>{s(d),o==null||o(d)};return i.jsx(nn,z(p({},r),{onToggle:l,active:n}))};Sl.displayName="AccordionUncontrolled";const El=e=>{const{active:t}=e;return t!==void 0?i.jsx(nn,p({},e)):i.jsx(Sl,p({},e))};El.displayName="Accordion";const Tl=e=>{const{children:t}=e,{active:o,triggerId:r,contentId:n,gap:s}=c.useContext(rn);return i.jsx(Kr,{active:o,attributes:{"aria-labelledby":r,id:n},children:s?i.jsx(H,{paddingTop:s,children:t}):t})};Tl.displayName="Accordion.Content";const $l={icon:"_icon_loavs_1","icon--active":"_icon--active_loavs_5"},Ml=e=>{const{children:t}=e,{active:o,onToggle:r,triggerId:n,contentId:s,iconPosition:l="end",iconSize:a}=c.useContext(rn),d=F($l.icon,o&&$l["icon--active"]),_=()=>{r==null||r(!o)},m={"aria-expanded":o,"aria-controls":s,id:n};return typeof t=="function"?i.jsx(i.Fragment,{children:t(z(p({},m),{onClick:_}),{active:o})}):i.jsx(je,{onClick:_,fullWidth:!0,attributes:m,children:i.jsxs(H,{gap:2,direction:l==="start"?"row-reverse":"row",align:"center",children:[i.jsx(H.Item,{grow:!0,children:t}),i.jsx(ge,{size:a||4,svg:vi,className:d})]})})};Ml.displayName="Accordion.Trigger";const sn=El;sn.Trigger=Ml,sn.Content=Tl;const xd={root:"_root_1yz7x_1"},Il=e=>{const{children:t,padding:o=4,width:r,align:n,justify:s,height:l,maxHeight:a,className:d,attributes:_}=e,m=F(xd.root,d);return i.jsx(H,{attributes:_,className:m,paddingInline:o,align:n,justify:s,height:l,maxHeight:a,width:r,maxWidth:"100%",children:t})};Il.displayName="Container";const jl={root:"_root_3bv1t_1",item:"_item_3bv1t_67"},Ll=e=>{const{area:t,colStart:o,colEnd:r,colSpan:n,rowStart:s,rowEnd:l,rowSpan:a,children:d,className:_,as:m="div",attributes:u}=e,h=F(jl.item,_),g=ae(n,y=>y&&`span ${y}`),b=ae(a,y=>y&&`span ${y}`),f=p(p(p(p(p(p(p(p({},u==null?void 0:u.style),q("--rs-grid-area",t)),q("--rs-grid-col-end",g)),q("--rs-grid-col-end",r)),q("--rs-grid-col-start",o)),q("--rs-grid-row-end",b)),q("--rs-grid-row-end",l)),q("--rs-grid-row-start",s));return i.jsx(m,z(p({},u),{className:h,style:f,children:d}))},Dl=e=>{const{areas:t,columns:o,rows:r,gap:n,columnGap:s,rowGap:l,align:a,justify:d,autoColumns:_,autoRows:m,autoFlow:u,children:h,className:g,width:b,height:f,maxWidth:y,as:x="div",attributes:v}=e,w=et({align:a,justify:d,width:b,height:f,maxWidth:y}),C=ae(r,T=>typeof T=="number"?`repeat(${T}, 1fr)`:T),k=ae(o,T=>typeof T=="number"?`repeat(${T}, 1fr)`:T),E=ae(t,T=>T?`"${T==null?void 0:T.join('" "')}"
|
|
1
|
+
(function(I,i){typeof exports=="object"&&typeof module!="undefined"?i(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],i):(I=typeof globalThis!="undefined"?globalThis:I||self,i(I.Reshaped={},I["react/jsx-runtime"],I.React,I.ReactDOM))})(this,(function(I,i,c,He){"use strict";var Ld=Object.defineProperty,Dd=Object.defineProperties;var Pd=Object.getOwnPropertyDescriptors;var Qo=Object.getOwnPropertySymbols;var ql=Object.prototype.hasOwnProperty,Ul=Object.prototype.propertyIsEnumerable;var Yl=I=>{throw TypeError(I)};var dn=(I,i,c)=>i in I?Ld(I,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):I[i]=c,p=(I,i)=>{for(var c in i||(i={}))ql.call(i,c)&&dn(I,c,i[c]);if(Qo)for(var c of Qo(i))Ul.call(i,c)&&dn(I,c,i[c]);return I},z=(I,i)=>Dd(I,Pd(i));var pe=(I,i)=>{var c={};for(var He in I)ql.call(I,He)&&i.indexOf(He)<0&&(c[He]=I[He]);if(I!=null&&Qo)for(var He of Qo(I))i.indexOf(He)<0&&Ul.call(I,He)&&(c[He]=I[He]);return c};var be=(I,i,c)=>dn(I,typeof i!="symbol"?i+"":i,c),Kl=(I,i,c)=>i.has(I)||Yl("Cannot "+c);var V=(I,i,c)=>(Kl(I,i,"read from private field"),c?c.call(I):i.get(I)),Se=(I,i,c)=>i.has(I)?Yl("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(I):i.set(I,c),Ue=(I,i,c,He)=>(Kl(I,i,"write to private field"),He?He.call(I,c):i.set(I,c),c);var xt,Ot,Je,wt,gt,Uo,Yo,Ko,Go,Hl,Mt,we,bt,Wt,qt,Ut,go,Xo,bo,po;const un=e=>{const{el:t,iteration:o}=e,n=(t&&window.getComputedStyle(t)).overflowY,s=n.includes("scroll")||n.includes("auto");return t.parentElement?s&&t.scrollHeight>t.clientHeight?t:un({el:t.parentElement,iteration:o+1}):null},_n=e=>un(z(p({},e),{iteration:0})),Gl=(e,t)=>{let o=e.parentElement;for(;o;){if(t(o))return o;o=o.parentElement}return null},Kt=e=>{const t=e==null?void 0:e.getRootNode();return t instanceof ShadowRoot?t:null},Ro=e=>{let t=null,o=null;return function(...r){o=r,t===null&&(t=requestAnimationFrame(()=>{t=null,e(...o)}))}},mn=()=>{const e=document.documentElement,t=e.dir;return t==="rtl"||t==="ltr"?t==="rtl":window.getComputedStyle(e).direction==="rtl"},hn={left:"0",top:"0",position:"absolute",visibility:"hidden",animation:"none",transition:"none"},Xl=e=>{const{position:t,styles:o,fallbackAdjustLayout:r,fallbackMinHeight:n,width:s,flyoutBounds:l,containerBounds:a,triggerBounds:d}=e,{width:_,height:m}=l,{width:u,height:h,top:g,left:b}=a,f=!!t.match(/^(start|end)/);let y=o.top,x=o.left,v=o.bottom,w=o.right,C=null,k=null;if(r){const E=()=>({top:g+8-y,bottom:y+m+8-g-h,left:b+8-x,right:x+_+8-b-u}),N=E();f?N.top>0?(y=g+8,v!==null&&(v=v-N.top)):N.bottom>0&&(y=y-N.bottom):N.left>0?(x=8+b,w!==null&&(w=w-N.left)):N.right>0&&(x=x-N.right);const S=E();S.top>0?(C=Math.max(parseInt(n!=null?n:"0"),m-S.top),y=y+(m-C)):S.bottom>0&&(C=Math.max(parseInt(n!=null?n:"0"),m-S.bottom),v!==null&&(v=v+(m-C)))}return s==="100%"?(x=8,k=window.innerWidth-16):s==="trigger"&&(k=d.width),{position:t,styles:{left:x,right:w,top:y,bottom:v,height:C,width:k}}},fn=(e,t)=>Math.floor(e/2-t/2),Zl=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,Jl=e=>{const{triggerBounds:t,flyoutBounds:o,position:r,rtl:n,contentGap:s=0,contentShift:l=0}=e,a=n?Zl(r):r;let d=0,_=0,m=null,u=null;const{width:h,height:g}=o,{width:b,height:f,left:y,top:x,right:v,bottom:w}=t,C=y,k=window.innerWidth-v,E=x,N=window.innerHeight-w;switch(a){case"start":case"start-top":case"start-bottom":d=C-h-s,u=k+b+s;break;case"end":case"end-top":case"end-bottom":d=C+b+s;break;case"bottom":case"top":d=C+fn(b,h)+l;break;case"top-start":case"bottom-start":d=C+l;break;case"top-end":case"bottom-end":d=C+b-h+l,u=k-l;break}switch(a){case"top":case"top-start":case"top-end":_=E-g-s,m=N+f+s;break;case"bottom":case"bottom-start":case"bottom-end":_=E+f+s;break;case"start":case"end":_=E+fn(f,g)+l;break;case"start-top":case"end-top":_=E+l;break;case"start-bottom":case"end-bottom":_=E+f-g+l,m=N-l;break}return{position:a,styles:{top:_,left:d,bottom:m,right:u}}},gn={top:["top-start","top-end","top"],bottom:["bottom-start","bottom-end","bottom"],start:["start-top","start-bottom","start"],end:["end-top","end-bottom","end"]},Ql={top:["bottom","start","end"],bottom:["top","end","start"],start:["end","top","bottom"],end:["start","bottom","top"]},Rl=(e,t)=>{const o=new Set([e]),r=e.split("-"),[n]=r,s=gn[n],l=s.indexOf(e),a=[l];return s.forEach((d,_)=>{_!==l&&a.push(_)}),[n,...Ql[n]].forEach(d=>{const _=gn[d];a.forEach(m=>{const u=_[m];(t==null?void 0:t.indexOf(u))!==-1&&o.add(u)})}),Array.from(o)},ea=e=>"width"in e&&e.width!==void 0?e:z(p({},e),{width:0,height:0,left:e.x,right:e.x,top:e.y,bottom:e.y,toJSON:()=>{}}),ta=e=>{const{flyoutBounds:t,containerBounds:o}=e,r=t.left,n=t.top,s=o.left,l=o.top;return!(r<s+8||n<l+8||r+t.width>s+o.width-8||n+t.height>l+o.height-8)},oa=e=>{var $,M;const{trigger:t,content:o,triggerCoordinates:r,container:n,contentShift:s=0,contentGap:l=0,position:a,fallbackPositions:d,fallbackAdjustLayout:_,fallbackMinHeight:m,width:u,lastUsedPosition:h}=e,g=mn(),b=o.cloneNode(!0),f=r||(t==null?void 0:t.getBoundingClientRect()),y=($=n==null?void 0:n.getBoundingClientRect())!=null?$:{width:window.innerWidth,height:window.innerHeight,left:0,top:0};if(b.style.cssText="",!f)throw new Error("Trigger bounds are required");const x=ea(f);Object.keys(hn).forEach(D=>{const P=D,B=hn[P];B&&(b.style[P]=B.toString())});const v=(M=t&&Kt(t))!=null?M:document.body;v.appendChild(b);const w=(D,P)=>{(P==null?void 0:P.width)==="100%"?b.style.width="calc(100% - 16px)":(P==null?void 0:P.width)==="trigger"?b.style.width=`${x.width}px`:u?b.style.width=u:b.style.width="";const B=b.getBoundingClientRect(),L=Jl({triggerBounds:x,flyoutBounds:B,position:D,contentGap:l,contentShift:s,rtl:g});return Xl(z(p({},L),{fallbackAdjustLayout:_,fallbackMinHeight:m,width:P==null?void 0:P.width,flyoutBounds:B,containerBounds:y,triggerBounds:x}))},C=D=>{var B,L;const P={left:D.styles.left,top:D.styles.top,height:(B=D.styles.height)!=null?B:Math.ceil(b.clientHeight),width:(L=D.styles.width)!=null?L:Math.ceil(b.clientWidth)};return ta({flyoutBounds:P,containerBounds:y})};let k=null;const E=Rl(a,d);E.some(D=>{const P=w(D,{width:u}),B=C(P);return B&&(k=P),B}),k||["top","bottom"].filter(P=>E.includes(P)).some(P=>{const B=w(P,{width:"100%"}),L=C(B);return L&&(k=B),L}),k||(k=w(h!=null?h:a,{width:u})),v.removeChild(b);const{styles:N}=k,S=(N.right!==null?-N.right:N.left)+window.scrollX,T=(N.bottom!==null?-N.bottom:N.top)+window.scrollY,j={left:N.right===null?"0px":void 0,right:N.right===null?void 0:"0px",top:N.bottom===null?"0px":void 0,bottom:N.bottom===null?void 0:"0px",height:N.height!==null?`${N.height}px`:void 0,width:N.width!==null?`${N.width}px`:u!=null?u:void 0,transform:`translate(${S}px, ${T}px)`};return Object.entries(j).forEach(([D,P])=>{o.style.removeProperty(D),P&&o.style.setProperty(D,P)}),{position:k.position}};let ra=(Hl=class{constructor(t){Se(this,xt,!1);Se(this,Ot,null);Se(this,Je);Se(this,wt,{});Se(this,gt,()=>{const t=oa(z(p({},V(this,Je)),{lastUsedPosition:V(this,Ot)}));return Ue(this,Ot,t.position),t});Se(this,Uo,()=>{const{trigger:t,onDeactivate:o}=V(this,Je);if(!t)return;const r=_n({el:t}),n=r||window,s=Ro(()=>{if(!V(this,xt))return;if(!r){V(this,gt).call(this);return}const l=t.getBoundingClientRect(),a=r.getBoundingClientRect();l.top<a.top||l.left<a.left||l.right>a.right||l.bottom>a.bottom?o():V(this,gt).call(this)});n.addEventListener("scroll",s,{passive:!0}),V(this,wt).scroll=()=>n.removeEventListener("scroll",s)});Se(this,Yo,()=>{const t=new MutationObserver(()=>{V(this,xt)&&V(this,gt).call(this)});t.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),V(this,wt).rtl=()=>t.disconnect()});Se(this,Ko,()=>{const t=()=>{V(this,xt)&&V(this,gt).call(this)},o=new ResizeObserver(t);window.addEventListener("resize",t),V(this,Je).trigger&&o.observe(V(this,Je).trigger),V(this,Je).content&&o.observe(V(this,Je).content),V(this,wt).resize=()=>{o.disconnect(),window.removeEventListener("resize",t)}});Se(this,Go,()=>{Object.values(V(this,wt)).forEach(t=>t()),Ue(this,wt,{})});be(this,"update",t=>(t&&Ue(this,Je,p(p({},V(this,Je)),t)),V(this,gt).call(this)));be(this,"activate",()=>{const t=V(this,gt).call(this);return V(this,Uo).call(this),V(this,Yo).call(this),V(this,Ko).call(this),Ue(this,xt,!0),t});be(this,"deactivate",()=>{Ue(this,Ot,null),Ue(this,xt,!1),V(this,Go).call(this)});Ue(this,Je,t)}},xt=new WeakMap,Ot=new WeakMap,Je=new WeakMap,wt=new WeakMap,gt=new WeakMap,Uo=new WeakMap,Yo=new WeakMap,Ko=new WeakMap,Go=new WeakMap,Hl);const xo="data-rs-focus",bn='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex],[contenteditable]',Gt=e=>{const t=e?Kt(e):null,o=t!=null?t:document;return o.querySelector(`[${xo}]`)||o.activeElement},wo=(e,t)=>{var n;const o=Kt(e);(n=(o!=null?o:document).querySelector(`[${xo}]`))==null||n.removeAttribute(xo),t!=null&&t.pseudoFocus?e.setAttribute(xo,"true"):e.focus()},Xt=(e,t)=>{const r=Array.from(e.querySelectorAll(bn)).filter(n=>{if(n.hasAttribute("disabled")||n.clientHeight===0||!(t!=null&&t.includeNegativeTabIndex)&&n.getAttribute("tabindex")==="-1")return!1;if(n.type==="radio"){let s;if(n.form){const l=n.form.elements.namedItem(n.name);if(!l)return!1;"length"in l?s=Array.from(l).filter(d=>"type"in d&&d.type==="radio"):s=[l]}else s=Array.from(e.querySelectorAll(`[type="radio"][name="${n.name}"]`));if(s!=null&&s.length){const l=Array.from(s).find(a=>a.checked);if(l&&n!==l||!l&&n!==s[0])return!1}}return!0});return t!=null&&t.additionalElement&&r.length&&r.unshift(t.additionalElement),r},pn=e=>{const{root:t,target:o,options:r}=e,n=Xt(t,{additionalElement:r==null?void 0:r.additionalElement,includeNegativeTabIndex:r==null?void 0:r.includeNegativeTabIndex}),s=n.length-1,l=Gt(t),a=n.indexOf(l),d={next:a+1,prev:a-1,first:0,last:s};let _=d[o];const m=_>s||_<0;return m&&(r!=null&&r.circular?_=o==="prev"?d.last:d.first:_=o==="prev"?d.first:d.last),{overflow:m,el:n[_],focusableElements:n}},Co=(e,t,o)=>{const r=pn({root:e,target:t,options:o});return wo(r.el),{el:r.el,focusableElements:r.focusableElements}},na=(e,t)=>Co(e,"next",z(p({},t),{includeNegativeTabIndex:!0})),sa=(e,t)=>Co(e,"prev",z(p({},t),{includeNegativeTabIndex:!0})),ia=e=>Co(e,"first",{includeNegativeTabIndex:!0}),la=e=>Co(e,"last",{includeNegativeTabIndex:!0}),er="data-rs-keyboard",aa=()=>{document.documentElement.setAttribute(er,"true")},ca=()=>{document.documentElement.removeAttribute(er)},Zt=()=>document.documentElement.hasAttribute(er),Ye={SPACE:" ",ENTER:"Enter",TAB:"Tab",UP:"ArrowUp",DOWN:"ArrowDown",RIGHT:"ArrowRight",LEFT:"ArrowLeft"};class da{constructor(){be(this,"chain",{});be(this,"tailId",null);be(this,"idCounter",0)}generateId(){return this.idCounter+=1,this.idCounter}getAll(){return this.chain}get(t){return this.chain[t]}isLast(t){return this.tailId!==null&&t===this.tailId}isEmpty(){return typeof this.tailId!="number"}add(t){const o=this.tailId,r=o&&this.get(o),n=this.generateId();return this.chain[n]={previousId:o,data:t},r&&(r.nextId=n),this.tailId=n,n}remove(t){var d,_;const o=this.chain[t];if(!o)return;const r=o.previousId,n=r&&this.get(r),s=o.nextId,l=s&&this.get(s);n&&(n.nextId=(d=o.nextId)!=null?d:null),l&&(l.previousId=(_=o.previousId)!=null?_:null),s||(this.tailId=r!=null?r:null);const a=this.get(t).data;return delete this.chain[t],a}removePreviousTill(t,o){const r=this.get(t),n=this.remove(t);return!r||!r.previousId||o(r)?n:this.removePreviousTill(r.previousId,o)}}class ua{constructor(t){be(this,"root");be(this,"hiddenElements",[]);be(this,"hideSiblingsFromScreenReader",t=>{let o=t.parentNode&&t.parentNode.firstChild;for(;o;){const r=o!==t,n=o.nodeType===1&&!o.hasAttribute("aria-hidden");r&&n&&(o.setAttribute("aria-hidden","true"),this.hiddenElements.push(o)),o=o.nextSibling}});be(this,"release",()=>{this.hiddenElements.forEach(t=>{t.removeAttribute("aria-hidden")}),this.hiddenElements=[]});be(this,"trap",()=>{let t=this.root;for(this.release();t!==document.body&&t.parentElement;)this.hideSiblingsFromScreenReader(t),t=t.parentElement});this.root=t}}var Re;class It{constructor(){Se(this,Mt);Se(this,we,null);Se(this,bt,null);Se(this,Wt,{});be(this,"trapped");Se(this,qt,null);Se(this,Ut,null);Se(this,go,t=>{if(t.defaultPrevented||Re.chain.tailId!==V(this,Mt)||!V(this,we))return;const{mode:o,onRelease:r,pseudoFocus:n,includeTrigger:s}=V(this,Wt);let l="tabs";(o==="action-menu"||o==="selection-menu"||o==="action-bar")&&(l="arrows");const a=t.key,d=a===Ye.TAB,_=d&&t.shiftKey,m=d&&!t.shiftKey,u=[Ye.LEFT,Ye.RIGHT,Ye.UP,Ye.DOWN].includes(a),h=l==="arrows"&&a===(o==="action-bar"?Ye.LEFT:Ye.UP),g=l==="arrows"&&a===(o==="action-bar"?Ye.RIGHT:Ye.DOWN),b=_&&l==="tabs"||h,f=m&&l==="tabs"||g,y=Gt(V(this,we))===V(this,bt),x=pn({root:V(this,we),target:b?"prev":"next",options:{additionalElement:s?V(this,bt):void 0,circular:!0}});if(d&&l==="arrows"||o==="content-menu"&&d&&x.overflow){_&&!y&&t.preventDefault(),this.release(),r==null||r();return}if(!b&&!f){u&&(o==="action-bar"||o==="action-menu")&&t.preventDefault();return}t.preventDefault(),x.el&&wo(x.el,{pseudoFocus:n})});Se(this,Xo,()=>{const t=Kt(V(this,we));(t!=null?t:document).addEventListener("keydown",V(this,go))});Se(this,bo,()=>{const t=Kt(V(this,we));(t!=null?t:document).removeEventListener("keydown",V(this,go))});Se(this,po,()=>{const t=Re.chain.tailId&&Re.chain.get(Re.chain.tailId);return t&&V(t.data,we)===V(this,we)});be(this,"trap",(t,o={})=>{const{mode:r="dialog",includeTrigger:n,initialFocusEl:s}=o;Ue(this,we,t),Ue(this,qt,new ua(t));const l=Gt(V(this,we)),a=Xt(V(this,we),{additionalElement:n?l:void 0}),d=r==="selection-menu";if(Ue(this,Wt,z(p({},o),{pseudoFocus:d})),Ue(this,bt,l),Ue(this,Ut,new MutationObserver(()=>{if(!V(this,we)||!V(this,po).call(this))return;const u=Gt(V(this,we));if(V(this,we).contains(u))return;const h=Xt(V(this,we),{additionalElement:n?l:void 0});h.length&&wo(h[0],{pseudoFocus:d})})),V(this,bo).call(this),V(this,Ut).observe(V(this,we),{childList:!0,subtree:!0}),!a.length&&!s)return;V(this,Xo).call(this),r==="dialog"&&V(this,qt).trap();const _=Gt(V(this,we));V(this,po).call(this)||(Ue(this,Mt,Re.chain.add(this)),V(this,we).contains(_)||wo(s||a[0],{pseudoFocus:d})),this.trapped=!0});be(this,"release",(t={})=>{var n,s;const{withoutFocusReturn:o}=t;if(!this.trapped||!V(this,Mt)||!V(this,we))return;this.trapped=!1,V(this,bt)&&!o&&V(this,bt).focus({preventScroll:!Zt()}),Re.chain.removePreviousTill(V(this,Mt),l=>document.body.contains(V(l.data,bt))),(n=V(this,Ut))==null||n.disconnect(),V(this,bo).call(this),(s=V(this,qt))==null||s.release();const r=Re.chain.tailId&&Re.chain.get(Re.chain.tailId);r&&V(r.data,we)&&new Re().trap(V(r.data,we),V(r.data,Wt))})}}Mt=new WeakMap,we=new WeakMap,bt=new WeakMap,Wt=new WeakMap,qt=new WeakMap,Ut=new WeakMap,go=new WeakMap,Xo=new WeakMap,bo=new WeakMap,po=new WeakMap,be(It,"chain",new da),Re=It;const tr=e=>{var o;const t=((o=window.navigator.userAgentData)==null?void 0:o.platform)||window.navigator.platform;return typeof window!="undefined"?e.test(t):!1},_a=()=>tr(/^iPhone/i),ma=()=>tr(/^Mac/i),ha=()=>tr(/^iPad/i)||ma()&&navigator.maxTouchPoints>1,fa=()=>_a()||ha(),F=(...e)=>e.reduce((t,o)=>{if(Array.isArray(o)){const r=F(...o);return r?`${t} ${r}`:t}return o?`${t} ${o}`:t},"").trim();class vn{constructor(){be(this,"cache",new Map);be(this,"set",(t,o)=>{const r={},n=this.cache.get(t);Object.keys(o).forEach(s=>{r[s]=t.style.getPropertyValue(s)}),this.cache.set(t,p(p({},r),n)),Object.assign(t.style,o)});be(this,"reset",()=>{for(const[t,o]of this.cache.entries())Object.assign(t.style,o);this.cache.clear()})}}const yn=new vn,ga=()=>{const e=window.visualViewport,t=(e==null?void 0:e.offsetLeft)||0,o=(e==null?void 0:e.offsetTop)||0,{scrollX:r,scrollY:n}=window;return yn.set(document.body,{position:"fixed",top:`${-(n-Math.floor(o))}px`,left:`${-(r-Math.floor(t))}px`,right:"0",overflow:"hidden"}),()=>{yn.reset(),window.scrollTo({top:n,left:r,behavior:"instant"})}},ba=(()=>{let e;return()=>{if(e)return e;const t=document.createElement("div");return t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),e=t.getBoundingClientRect().width-t.clientWidth,document.body.removeChild(t),e}})(),or=new vn,pa=e=>{const{container:t}=e,o=t.getBoundingClientRect(),r=o.left+o.right<window.innerWidth;if(or.set(t,{overflow:"hidden"}),r){const n=ba();or.set(t,{paddingRight:`${n}px`})}return()=>or.reset()},va=e=>{var s,l,a;const t=fa();let o=()=>{};const r=(l=(s=e==null?void 0:e.containerEl)!=null?s:(e==null?void 0:e.originEl)&&_n({el:e.originEl}))!=null?l:document.body,n=r===document.body;if(r.style.overflow!=="hidden")return t&&n?o=ga():o=pa({container:r}),(a=e==null?void 0:e.callback)==null||a.call(e),d=>{var _;o(),(_=d==null?void 0:d.callback)==null||_.call(d)}},No=e=>e.preventDefault(),Jt=()=>{window.addEventListener("wheel",No,{passive:!1}),window.addEventListener("touchmove",No,{passive:!1}),document.body.style.userSelect="none"},ko=()=>{window.removeEventListener("wheel",No),window.removeEventListener("touchmove",No),document.body.style.userSelect=""},xn=c.forwardRef((e,t)=>{const{children:o,render:r,href:n,onClick:s,type:l,disabled:a,as:d,stopPropagation:_,className:m,attributes:u}=e,h=p({},u),g=s||(u==null?void 0:u.onClick),b=(u==null?void 0:u.onFocus)||(u==null?void 0:u.onBlur),f=!!(n||u!=null&&u.href),y=!!(g||b||l||u!=null&&u.ref),x=!f&&y&&(!d||d==="button");let v;if(f)v="a",h.href=a?void 0:n||(u==null?void 0:u.href);else if(x)v="button",h.type=l||(u==null?void 0:u.type)||"button",h.disabled=a||(u==null?void 0:u.disabled);else if(y){const N=!(d==="label")||g||b;v=d||"span",h.role=N?"button":void 0,h.tabIndex=N?0:void 0}else v=d||"span";const w=E=>{var N;a||(_&&E.stopPropagation(),s==null||s(E),(N=u==null?void 0:u.onClick)==null||N.call(u,E))},C=E=>{const N=E.key===Ye.SPACE,S=E.key===Ye.ENTER;!N&&!S||h.role==="button"&&(_&&E.stopPropagation(),E.preventDefault(),w(E))},k=z(p({ref:t},h),{className:F(m),onClick:w,onKeyDown:C,"aria-disabled":a?!0:void 0,children:o});return r?r(k):i.jsx(v,p({},k))});xn.displayName="Actionable";const Qt="+",Xe=new Map;let Rt=[];const wn=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),zo=e=>wn(e).split(Qt).sort().join(Qt),Cn=e=>{if(e.key)return e.altKey&&/^[Key|Digit|Numpad]/.test(e.code)?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase()},Nn=(e,t)=>{Object.keys(e).forEach(o=>{o.split(",").forEach(r=>{const n=e[o];n&&t(zo(r),n)})})};class ya{constructor(){be(this,"hotkeyMap",{});be(this,"getSize",()=>Object.keys(this.hotkeyMap).length);be(this,"bindHotkeys",(t,o,r)=>{Nn(t,(n,s)=>{s&&(this.hotkeyMap[n]||(this.hotkeyMap[n]=new Set),this.hotkeyMap[n].add({callback:s,ref:o,options:r}))})});be(this,"unbindHotkeys",t=>{Nn(t,(o,r)=>{var n,s;r&&((n=this.hotkeyMap[o])==null||n.forEach(l=>{l.callback===r&&this.hotkeyMap[o].delete(l)}),(s=this.hotkeyMap[o])!=null&&s.size||delete this.hotkeyMap[o])})});be(this,"handleKeyDown",(t,o)=>{if(!t.size)return;const r=[...t.keys()],n=zo(r.join(Qt)),s=n.split(Qt),l=this.hotkeyMap[n],a=zo(n.replace("control","mod")),d=zo(n.replace("meta","mod")),_=s.includes("control")&&this.hotkeyMap[a],m=s.includes("meta")&&this.hotkeyMap[d];[l,_,m].forEach(u=>{u&&u!=null&&u.size&&u.forEach(h=>{const g=o.composedPath()[0];if(h.ref.current&&!(g===h.ref.current||h.ref.current.contains(g)))return;const b=t.get(n);h.options.preventDefault&&(b==null||b.preventDefault(),o.preventDefault()),h.callback(o)})})})}}const rr=new ya,kn=c.createContext({}),xa=e=>{const{children:t}=e,[o,r]=c.useState(0),[n,s]=c.useState(0),l=c.useCallback(g=>{if(g.repeat||n===0)return;const b=Cn(g);b&&(Xe.set(b,g),r(Xe.size),g.metaKey&&Rt.push(...Xe.keys()),Xe.has("Meta")&&Rt.push(b))},[n]),a=c.useCallback(g=>{if(n===0)return;const b=Cn(g);b&&(Xe.delete(b),(b==="meta"||b==="control")&&Xe.delete("mod"),b==="meta"&&(Rt.forEach(f=>{Xe.has(f)&&Xe.delete(f)}),Rt=[]),r(Xe.size))},[n]),d=g=>!wn(g).split(Qt).some(f=>!Xe.has(f)),_=c.useCallback(g=>{g.key&&(l(g),rr.handleKeyDown(Xe,g))},[l]),m=c.useCallback(g=>{g.key&&a(g)},[a]),u=c.useCallback(()=>{Xe.clear(),Rt=[]},[]),h=c.useCallback((g,b,f={})=>(s(y=>y+1),rr.bindHotkeys(g,b,f),()=>{s(y=>y-1),rr.unbindHotkeys(g)}),[]);return c.useEffect(()=>(window.addEventListener("keydown",_),window.addEventListener("keyup",m),window.addEventListener("blur",u),()=>{window.removeEventListener("keydown",_),window.removeEventListener("keyup",m),window.removeEventListener("blur",u)}),[_,m,u]),i.jsx(kn.Provider,{value:{addHotkeys:h,isPressed:d},children:t})},wa=()=>c.useContext(kn),Ca="Escape",zn=c.createContext({disabledRef:null,disable:()=>{},enable:()=>{},activate:()=>{},deactivate:()=>{}}),Na=e=>{const t=c.useRef(!1),o=c.useCallback(()=>{t.current=!0},[]),r=c.useCallback(()=>{t.current=!1},[]),n=c.useCallback(()=>{t.current||aa()},[]),s=c.useCallback(()=>{t.current||ca()},[]),l=c.useCallback(_=>{_.metaKey||_.altKey||_.ctrlKey||_.key!==Ca&&n()},[n]),a=c.useCallback(()=>{s()},[s]);c.useEffect(()=>(window.addEventListener("keydown",l),window.addEventListener("mousedown",a),()=>{window.removeEventListener("keydown",l),window.removeEventListener("mousedown",a)}),[a,l]);const d=c.useMemo(()=>({disabledRef:t,disable:o,enable:r,activate:n,deactivate:s}),[o,r,n,s]);return i.jsx(zn.Provider,{value:d,children:e.children})},ka=()=>c.useContext(zn),fe=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,za=c.createContext({rtl:[!1,()=>{}]}),pt=e=>{const t=c.useState(e||!1),[o,r]=t;return fe(()=>{const n=new MutationObserver(s=>{s.forEach(l=>{if(l.attributeName!=="dir")return;const a=mn();o!==a&&r(a)})});return n.observe(document.documentElement,{attributes:!0}),()=>n.disconnect()},[o]),fe(()=>{document.documentElement.setAttribute("dir",o?"rtl":"ltr")},[o]),t},Sa=e=>{const{children:t,defaultRTL:o}=e,r=pt(o);return i.jsx(za.Provider,{value:{rtl:r},children:t})},Sn=e=>{const{children:t}=e;return i.jsx(Sa,{children:i.jsx(Na,{children:i.jsx(xa,{children:t})})})};Sn.displayName="Headless.ReshapedProvider";const ke=e=>{const t=c.useRef(e);return fe(()=>{t.current=e},[e]),t},Ze=(e,t=[],o)=>{const{addHotkeys:r,isPressed:n}=wa(),s=c.useRef(null),l=(o==null?void 0:o.ref)||s;return c.useEffect(()=>{if(o!=null&&o.disabled)return;const a=r(e,l,{preventDefault:o==null?void 0:o.preventDefault});return()=>a==null?void 0:a()},[r,Object.keys(e).join(","),o==null?void 0:o.disabled,o==null?void 0:o.preventDefault,...t]),{ref:l,checkHotkeyState:n}},nr=e=>{const{ref:t,disabled:o,orientation:r,circular:n}=e,s=[],l=[];(!r||r==="vertical")&&(s.push("ArrowUp"),l.push("ArrowDown")),(!r||r==="horizontal")&&(s.push("ArrowLeft"),l.push("ArrowRight"));const a=c.useCallback(d=>{var g;const{el:_,focusableElements:m}=d,u=m.find(b=>b.getAttribute("tabindex")!=="-1"),h=(g=_!=null?_:u)!=null?g:m[0];m.forEach(b=>b.setAttribute("tabindex","-1")),h==null||h.setAttribute("tabindex","0")},[]);c.useEffect(()=>{if(!t.current||o)return;const d=Xt(t.current);a({focusableElements:d})},[t,a,o]),Ze({[s.join(", ")]:()=>{if(!t.current)return;const d=sa(t.current,{circular:n});a(d)},[l.join(", ")]:()=>{if(!t.current)return;const d=na(t.current,{circular:n});a(d)},Home:()=>{if(!t.current)return;const d=ia(t.current);a(d)},End:()=>{if(!t.current)return;const d=la(t.current);a(d)}},[a,n],{ref:t,preventDefault:!0,disabled:o})},En=(e,t,o)=>{const{disabled:r}=o||{},n=ke(t),s=c.useRef(!1);c.useEffect(()=>{const l=d=>{s.current=!1;const _=d.composedPath()[0];e.forEach(m=>{m.current&&(m.current===_||m.current.contains(_))&&(s.current=!0)})},a=d=>{[Ye.ENTER,Ye.SPACE].includes(d.key)&&l(d)};return document.addEventListener("mousedown",l,{passive:!0}),document.addEventListener("touchstart",l,{passive:!0}),document.addEventListener("keydown",a,{passive:!0}),()=>{document.removeEventListener("mousedown",l),document.removeEventListener("touchstart",l),document.removeEventListener("keydown",a)}},[...e]),c.useEffect(()=>{if(!n.current||r)return;const l=a=>{var d;"button"in a&&a.button===2||s.current||(d=n.current)==null||d.call(n,a)};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}},[n,r,...e])},sr=e=>{const{containerRef:t,originRef:o}=e||{},[r,n]=c.useState(!1),s=c.useRef(null),l=c.useCallback(()=>{s.current=va({containerEl:t==null?void 0:t.current,originEl:o==null?void 0:o.current,callback:()=>n(!0)})},[t,o]),a=c.useCallback(()=>{var d;(d=s.current)==null||d.call(s,{callback:()=>n(!1)}),s.current=null},[]);return c.useMemo(()=>({scrollLocked:r,lockScroll:l,unlockScroll:a}),[r,l,a])},Ct=e=>{const[t,o]=c.useState(e||!1),r=c.useCallback(()=>{o(!0)},[]),n=c.useCallback(()=>{o(!1)},[]),s=c.useCallback(l=>{o(typeof l=="boolean"?l:a=>!a)},[]);return c.useMemo(()=>({active:t,activate:r,deactivate:n,toggle:s}),[r,n,s,t])},Tn=(e,t,o)=>{const{base:r,excludeValueFromClassName:n}=o||{},s=typeof e=="string"?e:e(t);return t===!0&&r||n?s:t===!0&&!r?`${s}-true`:t===!1&&!r?`${s}-false`:t!==void 0?`${s}-${t}`:null},le=(e,t,o,r)=>{if(typeof o!="object"){const n=Tn(t,o,{base:!0,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName});return n?[e[n]]:[]}return Object.keys(o).reduce((n,s)=>{const l=s==="s",a=Tn(t,o[s],{base:l,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName}),d=l?"":`--${s}`;return[...n,e[`${a}${d}`]]},[])},q=(e,t)=>t===void 0?{}:typeof t!="object"?{[`${e}-s`]:t}:Object.keys(t).reduce((o,r)=>{const n=t[r];return n===void 0||n===!1?o:z(p({},o),{[`${e}-${r}`]:n})},{}),Ea=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,ae=(e,t)=>Ea(e)?Object.keys(e).reduce((r,n)=>{const s=e[n];return s==null?r:z(p({},r),{[n]:t(s,n)})},{}):t(e,"s"),Ta=e=>e?{variables:q("--rs-align",e)}:{},$a=e=>e?{variables:q("--rs-ratio",e)}:{},$n={root:"_root_23jyt_1","--bleed":"_--bleed_23jyt_8","--bleed-true--m":"_--bleed-true--m_23jyt_1","--bleed-false--m":"_--bleed-false--m_23jyt_1","--bleed-true--l":"_--bleed-true--l_23jyt_1","--bleed-false--l":"_--bleed-false--l_23jyt_1","--bleed-true--xl":"_--bleed-true--xl_23jyt_1","--bleed-false--xl":"_--bleed-false--xl_23jyt_1"},Ma=e=>{if(e===void 0)return{};const t=le($n,"--bleed",ae(e,r=>typeof r=="number"&&r>0)),o=q("--rs-bleed",e);return{classNames:[$n.root,t],variables:o}},Ia={"--border-neutral":"_--border-neutral_xj2hx_1","--border-neutral-faded":"_--border-neutral-faded_xj2hx_1","--border-positive":"_--border-positive_xj2hx_1","--border-positive-faded":"_--border-positive-faded_xj2hx_1","--border-warning":"_--border-warning_xj2hx_1","--border-warning-faded":"_--border-warning-faded_xj2hx_1","--border-critical":"_--border-critical_xj2hx_1","--border-critical-faded":"_--border-critical-faded_xj2hx_1","--border-primary":"_--border-primary_xj2hx_1","--border-primary-faded":"_--border-primary-faded_xj2hx_1","--border-disabled":"_--border-disabled_xj2hx_1","--border-brand":"_--border-brand_xj2hx_1","--border-transparent":"_--border-transparent_xj2hx_1","--border-neutral--m":"_--border-neutral--m_xj2hx_1","--border-neutral-faded--m":"_--border-neutral-faded--m_xj2hx_1","--border-positive--m":"_--border-positive--m_xj2hx_1","--border-positive-faded--m":"_--border-positive-faded--m_xj2hx_1","--border-warning--m":"_--border-warning--m_xj2hx_1","--border-warning-faded--m":"_--border-warning-faded--m_xj2hx_1","--border-critical--m":"_--border-critical--m_xj2hx_1","--border-critical-faded--m":"_--border-critical-faded--m_xj2hx_1","--border-primary--m":"_--border-primary--m_xj2hx_1","--border-primary-faded--m":"_--border-primary-faded--m_xj2hx_1","--border-disabled--m":"_--border-disabled--m_xj2hx_1","--border-brand--m":"_--border-brand--m_xj2hx_1","--border-transparent--m":"_--border-transparent--m_xj2hx_1","--border-neutral--l":"_--border-neutral--l_xj2hx_1","--border-neutral-faded--l":"_--border-neutral-faded--l_xj2hx_1","--border-positive--l":"_--border-positive--l_xj2hx_1","--border-positive-faded--l":"_--border-positive-faded--l_xj2hx_1","--border-warning--l":"_--border-warning--l_xj2hx_1","--border-warning-faded--l":"_--border-warning-faded--l_xj2hx_1","--border-critical--l":"_--border-critical--l_xj2hx_1","--border-critical-faded--l":"_--border-critical-faded--l_xj2hx_1","--border-primary--l":"_--border-primary--l_xj2hx_1","--border-primary-faded--l":"_--border-primary-faded--l_xj2hx_1","--border-disabled--l":"_--border-disabled--l_xj2hx_1","--border-brand--l":"_--border-brand--l_xj2hx_1","--border-transparent--l":"_--border-transparent--l_xj2hx_1","--border-neutral--xl":"_--border-neutral--xl_xj2hx_1","--border-neutral-faded--xl":"_--border-neutral-faded--xl_xj2hx_1","--border-positive--xl":"_--border-positive--xl_xj2hx_1","--border-positive-faded--xl":"_--border-positive-faded--xl_xj2hx_1","--border-warning--xl":"_--border-warning--xl_xj2hx_1","--border-warning-faded--xl":"_--border-warning-faded--xl_xj2hx_1","--border-critical--xl":"_--border-critical--xl_xj2hx_1","--border-critical-faded--xl":"_--border-critical-faded--xl_xj2hx_1","--border-primary--xl":"_--border-primary--xl_xj2hx_1","--border-primary-faded--xl":"_--border-primary-faded--xl_xj2hx_1","--border-disabled--xl":"_--border-disabled--xl_xj2hx_1","--border-brand--xl":"_--border-brand--xl_xj2hx_1","--border-transparent--xl":"_--border-transparent--xl_xj2hx_1"},ja=e=>e?{variables:q("--rs-border-w",ae(e,t=>t?"1px":"0px"))}:{},La=e=>e?{variables:q("--rs-border-w-top",ae(e,t=>t?"1px":"0px"))}:{},Da=e=>e?{variables:q("--rs-border-w-bottom",ae(e,t=>t?"1px":"0px"))}:{},Pa=e=>e?{variables:q("--rs-border-w-start",ae(e,t=>t?"1px":"0px"))}:{},Fa=e=>e?{variables:q("--rs-border-w-end",ae(e,t=>t?"1px":"0px"))}:{},Aa=e=>e?{variables:q("--rs-border-w-block",ae(e,t=>t?"1px":"0px"))}:{},Va=e=>e?{variables:q("--rs-border-w-inline",ae(e,t=>t?"1px":"0px"))}:{},Ba=e=>e?{classNames:le(Ia,"--border",e)}:{},Mn={root:"_root_14o7b_5","--type-literal":"_--type-literal_14o7b_14","--type-unit":"_--type-unit_14o7b_18","--type-literal--m":"_--type-literal--m_14o7b_1","--type-unit--m":"_--type-unit--m_14o7b_1","--type-literal--l":"_--type-literal--l_14o7b_1","--type-unit--l":"_--type-unit--l_14o7b_1","--type-literal--xl":"_--type-literal--xl_14o7b_1","--type-unit--xl":"_--type-unit--xl_14o7b_1"},Ha=e=>{if(!e)return{};const t=q("--rs-h",e),o=le(Mn,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[Mn.root,o],variables:t}},Oa=e=>e===void 0?{}:{variables:q("--rs-inset",e)},Wa=e=>e===void 0?{}:{variables:q("--rs-inset-top",e)},qa=e=>e===void 0?{}:{variables:q("--rs-inset-bottom",e)},Ua=e=>e===void 0?{}:{variables:q("--rs-inset-start",e)},Ya=e=>e===void 0?{}:{variables:q("--rs-inset-end",e)},Ka=e=>e===void 0?{}:{variables:q("--rs-inset-inline",e)},Ga=e=>e===void 0?{}:{variables:q("--rs-inset-block",e)},Xa=e=>e?{variables:q("--rs-justify",e)}:{},In={root:"_root_1rdxk_1","--type-literal":"_--type-literal_1rdxk_1","--type-unit":"_--type-unit_1rdxk_1","--type-literal--m":"_--type-literal--m_1rdxk_1","--type-unit--m":"_--type-unit--m_1rdxk_1","--type-literal--l":"_--type-literal--l_1rdxk_1","--type-unit--l":"_--type-unit--l_1rdxk_1","--type-literal--xl":"_--type-literal--xl_1rdxk_1","--type-unit--xl":"_--type-unit--xl_1rdxk_1"},Za=e=>{if(!e)return{};const t=q("--rs-max-h",e),o=le(In,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[In.root,o],variables:t}},jn={root:"_root_qeyze_1","--type-literal":"_--type-literal_qeyze_1","--type-unit":"_--type-unit_qeyze_1","--type-literal--m":"_--type-literal--m_qeyze_1","--type-unit--m":"_--type-unit--m_qeyze_1","--type-literal--l":"_--type-literal--l_qeyze_1","--type-unit--l":"_--type-unit--l_qeyze_1","--type-literal--xl":"_--type-literal--xl_qeyze_1","--type-unit--xl":"_--type-unit--xl_qeyze_1"},Ja=e=>{if(!e)return{};const t=q("--rs-max-w",e),o=le(jn,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[jn.root,o],variables:t}},Ln={root:"_root_zookh_1","--type-literal":"_--type-literal_zookh_1","--type-unit":"_--type-unit_zookh_1","--type-literal--m":"_--type-literal--m_zookh_1","--type-unit--m":"_--type-unit--m_zookh_1","--type-literal--l":"_--type-literal--l_zookh_1","--type-unit--l":"_--type-unit--l_zookh_1","--type-literal--xl":"_--type-literal--xl_zookh_1","--type-unit--xl":"_--type-unit--xl_zookh_1"},Qa=e=>{if(!e)return{};const t=q("--rs-min-h",e),o=le(Ln,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[Ln.root,o],variables:t}},Dn={root:"_root_1nz80_1","--type-literal":"_--type-literal_1nz80_1","--type-unit":"_--type-unit_1nz80_1","--type-literal--m":"_--type-literal--m_1nz80_1","--type-unit--m":"_--type-unit--m_1nz80_1","--type-literal--l":"_--type-literal--l_1nz80_1","--type-unit--l":"_--type-unit--l_1nz80_1","--type-literal--xl":"_--type-literal--xl_1nz80_1","--type-unit--xl":"_--type-unit--xl_1nz80_1"},Ra=e=>{if(!e)return{};const t=q("--rs-min-w",e),o=le(Dn,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[Dn.root,o],variables:t}},ec=e=>e?{variables:q("--rs-p",e)}:{},tc=e=>e===void 0?{}:{variables:q("--rs-p-top",e)},oc=e=>e===void 0?{}:{variables:q("--rs-p-bottom",e)},rc=e=>e===void 0?{}:{variables:q("--rs-p-start",e)},nc=e=>e===void 0?{}:{variables:q("--rs-p-end",e)},sc=e=>e===void 0?{}:{variables:q("--rs-p-inline",e)},ic=e=>e===void 0?{}:{variables:q("--rs-p-block",e)},lc=e=>e?{variables:q("--rs-position",e)}:{},Pn={root:"_root_w529z_1","--radius-none":"_--radius-none_w529z_1","--radius-small":"_--radius-small_w529z_1","--radius-medium":"_--radius-medium_w529z_1","--radius-large":"_--radius-large_w529z_1","--radius-circular":"_--radius-circular_w529z_1","--radius-none--m":"_--radius-none--m_w529z_1","--radius-small--m":"_--radius-small--m_w529z_1","--radius-medium--m":"_--radius-medium--m_w529z_1","--radius-large--m":"_--radius-large--m_w529z_1","--radius-circular--m":"_--radius-circular--m_w529z_1","--radius-none--l":"_--radius-none--l_w529z_1","--radius-small--l":"_--radius-small--l_w529z_1","--radius-medium--l":"_--radius-medium--l_w529z_1","--radius-large--l":"_--radius-large--l_w529z_1","--radius-circular--l":"_--radius-circular--l_w529z_1","--radius-none--xl":"_--radius-none--xl_w529z_1","--radius-small--xl":"_--radius-small--xl_w529z_1","--radius-medium--xl":"_--radius-medium--xl_w529z_1","--radius-large--xl":"_--radius-large--xl_w529z_1","--radius-circular--xl":"_--radius-circular--xl_w529z_1"},ac=e=>e?{classNames:[Pn.root,...le(Pn,"--radius",e)]}:{},cc=e=>e?{variables:q("--rs-text-align",e)}:{},Fn={root:"_root_1kn8l_1","--type-literal":"_--type-literal_1kn8l_1","--type-unit":"_--type-unit_1kn8l_1","--type-literal--m":"_--type-literal--m_1kn8l_1","--type-unit--m":"_--type-unit--m_1kn8l_1","--type-literal--l":"_--type-literal--l_1kn8l_1","--type-unit--l":"_--type-unit--l_1kn8l_1","--type-literal--xl":"_--type-literal--xl_1kn8l_1","--type-unit--xl":"_--type-unit--xl_1kn8l_1"},dc={align:Ta,aspectRatio:$a,bleed:Ma,border:ja,borderTop:La,borderBottom:Da,borderStart:Pa,borderEnd:Fa,borderInline:Va,borderBlock:Aa,borderColor:Ba,height:Ha,padding:ec,paddingTop:tc,paddingBottom:oc,paddingStart:rc,paddingEnd:nc,paddingInline:sc,paddingBlock:ic,inset:Oa,insetTop:Wa,insetBottom:qa,insetStart:Ua,insetEnd:Ya,insetInline:Ka,insetBlock:Ga,justify:Xa,maxHeight:Za,maxWidth:Ja,minHeight:Qa,minWidth:Ra,position:lc,radius:ac,textAlign:cc,width:e=>{if(!e)return{};const t=q("--rs-w",e),o=le(Fn,r=>typeof r=="number"?"--type-unit":"--type-literal",e,{excludeValueFromClassName:!0});return{classNames:[Fn.root,o],variables:t}}},et=e=>{const t={variables:{},classNames:[]};return Object.entries(e).forEach(([r,n])=>{const s=dc[r],l=s(n);l.variables&&(t.variables=p(p({},t.variables),l.variables)),l.classNames&&t.classNames.push(l.classNames)}),t},st={root:"_root_johd4_2","--clamp":"_--clamp_johd4_22","--break-all":"_--break-all_johd4_29","--wrap-balance":"_--wrap-balance_johd4_33","--numeric":"_--numeric_johd4_37","--variant-title-1":"_--variant-title-1_johd4_1","--variant-title-2":"_--variant-title-2_johd4_1","--variant-title-3":"_--variant-title-3_johd4_1","--variant-title-4":"_--variant-title-4_johd4_1","--variant-title-5":"_--variant-title-5_johd4_1","--variant-title-6":"_--variant-title-6_johd4_1","--variant-featured-1":"_--variant-featured-1_johd4_1","--variant-featured-2":"_--variant-featured-2_johd4_1","--variant-featured-3":"_--variant-featured-3_johd4_1","--variant-body-1":"_--variant-body-1_johd4_1","--variant-body-2":"_--variant-body-2_johd4_1","--variant-body-3":"_--variant-body-3_johd4_1","--variant-caption-1":"_--variant-caption-1_johd4_1","--variant-caption-2":"_--variant-caption-2_johd4_1","--weight-regular":"_--weight-regular_johd4_1","--weight-medium":"_--weight-medium_johd4_1","--weight-bold":"_--weight-bold_johd4_1","--color-neutral":"_--color-neutral_johd4_1","--color-neutral-faded":"_--color-neutral-faded_johd4_1","--color-primary":"_--color-primary_johd4_1","--color-warning":"_--color-warning_johd4_1","--color-positive":"_--color-positive_johd4_1","--color-critical":"_--color-critical_johd4_1","--color-disabled":"_--color-disabled_johd4_1","--decoration-line-through":"_--decoration-line-through_johd4_175","--monospace":"_--monospace_johd4_179","--variant-title-1--m":"_--variant-title-1--m_johd4_1","--variant-title-2--m":"_--variant-title-2--m_johd4_1","--variant-title-3--m":"_--variant-title-3--m_johd4_1","--variant-title-4--m":"_--variant-title-4--m_johd4_1","--variant-title-5--m":"_--variant-title-5--m_johd4_1","--variant-title-6--m":"_--variant-title-6--m_johd4_1","--variant-featured-1--m":"_--variant-featured-1--m_johd4_1","--variant-featured-2--m":"_--variant-featured-2--m_johd4_1","--variant-featured-3--m":"_--variant-featured-3--m_johd4_1","--variant-body-1--m":"_--variant-body-1--m_johd4_1","--variant-body-2--m":"_--variant-body-2--m_johd4_1","--variant-body-3--m":"_--variant-body-3--m_johd4_1","--variant-caption-1--m":"_--variant-caption-1--m_johd4_1","--variant-caption-2--m":"_--variant-caption-2--m_johd4_1","--weight-regular--m":"_--weight-regular--m_johd4_1","--weight-medium--m":"_--weight-medium--m_johd4_1","--weight-bold--m":"_--weight-bold--m_johd4_1","--variant-title-1--l":"_--variant-title-1--l_johd4_1","--variant-title-2--l":"_--variant-title-2--l_johd4_1","--variant-title-3--l":"_--variant-title-3--l_johd4_1","--variant-title-4--l":"_--variant-title-4--l_johd4_1","--variant-title-5--l":"_--variant-title-5--l_johd4_1","--variant-title-6--l":"_--variant-title-6--l_johd4_1","--variant-featured-1--l":"_--variant-featured-1--l_johd4_1","--variant-featured-2--l":"_--variant-featured-2--l_johd4_1","--variant-featured-3--l":"_--variant-featured-3--l_johd4_1","--variant-body-1--l":"_--variant-body-1--l_johd4_1","--variant-body-2--l":"_--variant-body-2--l_johd4_1","--variant-body-3--l":"_--variant-body-3--l_johd4_1","--variant-caption-1--l":"_--variant-caption-1--l_johd4_1","--variant-caption-2--l":"_--variant-caption-2--l_johd4_1","--weight-regular--l":"_--weight-regular--l_johd4_1","--weight-medium--l":"_--weight-medium--l_johd4_1","--weight-bold--l":"_--weight-bold--l_johd4_1","--variant-title-1--xl":"_--variant-title-1--xl_johd4_1","--variant-title-2--xl":"_--variant-title-2--xl_johd4_1","--variant-title-3--xl":"_--variant-title-3--xl_johd4_1","--variant-title-4--xl":"_--variant-title-4--xl_johd4_1","--variant-title-5--xl":"_--variant-title-5--xl_johd4_1","--variant-title-6--xl":"_--variant-title-6--xl_johd4_1","--variant-featured-1--xl":"_--variant-featured-1--xl_johd4_1","--variant-featured-2--xl":"_--variant-featured-2--xl_johd4_1","--variant-featured-3--xl":"_--variant-featured-3--xl_johd4_1","--variant-body-1--xl":"_--variant-body-1--xl_johd4_1","--variant-body-2--xl":"_--variant-body-2--xl_johd4_1","--variant-body-3--xl":"_--variant-body-3--xl_johd4_1","--variant-caption-1--xl":"_--variant-caption-1--xl_johd4_1","--variant-caption-2--xl":"_--variant-caption-2--xl_johd4_1","--weight-regular--xl":"_--weight-regular--xl_johd4_1","--weight-medium--xl":"_--weight-medium--xl_johd4_1","--weight-bold--xl":"_--weight-bold--xl_johd4_1"},uc={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},ne=e=>{const{variant:t,color:o,weight:r,align:n,decoration:s,maxLines:l,wrap:a,monospace:d,numeric:_,children:m,className:u,attributes:h}=e,g=typeof t=="string"?t:(t==null?void 0:t.xl)||(t==null?void 0:t.l)||(t==null?void 0:t.m)||(t==null?void 0:t.s),b=et({textAlign:n}),f=e.as||g&&uc[g]||"div",y=F(st.root,o&&st[`--color-${o}`],...le(st,"--variant",t),...le(st,"--weight",r),s&&st[`--decoration-${s}`],l!==void 0&&st["--clamp"],l===1&&st["--break-all"],a&&st[`--wrap-${a}`],d&&st["--monospace"],_&&st["--numeric"],u,b.classNames),x=z(p(p({},h==null?void 0:h.style),b.variables),{"--rs-text-lines":l});return i.jsx(f,z(p({},h),{className:y,style:x,children:m}))};ne.displayName="Text";const jt={root:"_root_1tl54_1","--color-neutral":"_--color-neutral_1tl54_25","--blank":"_--blank_1tl54_29","--vertical":"_--vertical_1tl54_35",label:"_label_1tl54_63","--content-position-center":"_--content-position-center_1tl54_89","--content-position-start":"_--content-position-start_1tl54_96","--vertical-true--m":"_--vertical-true--m_1tl54_1","--vertical-false--m":"_--vertical-false--m_1tl54_1","--vertical-true--l":"_--vertical-true--l_1tl54_1","--vertical-false--l":"_--vertical-false--l_1tl54_1","--vertical-true--xl":"_--vertical-true--xl_1tl54_1","--vertical-false--xl":"_--vertical-false--xl_1tl54_1"},eo=e=>{const{vertical:t,blank:o,children:r,contentPosition:n="center",color:s,offset:l,className:a,attributes:d}=e,_=F(jt.root,a,o&&jt["--blank"],s&&jt[`--color-${s}`],r?jt[`--content-position-${n}`]:void 0,...le(jt,"--vertical",t));let m;return(typeof t=="boolean"||t===void 0)&&(m=t?"vertical":"horizontal"),i.jsx("div",z(p({},d),{role:"separator","aria-orientation":m,className:_,style:z(p({},d==null?void 0:d.style),{"--rs-divider-offset":l}),children:r&&i.jsx(ne,{color:"neutral-faded",variant:"caption-1",className:jt.label,children:r})}))};eo.displayName="Divider";const ir={root:"_root_11ilc_1","--hidden":"_--hidden_11ilc_5","--visibility":"_--visibility_11ilc_9","--hidden-true--m":"_--hidden-true--m_11ilc_1","--hidden-false--m":"_--hidden-false--m_11ilc_1","--hidden-true--l":"_--hidden-true--l_11ilc_1","--hidden-false--l":"_--hidden-false--l_11ilc_1","--hidden-true--xl":"_--hidden-true--xl_11ilc_1","--hidden-false--xl":"_--hidden-false--xl_11ilc_1"},Nt=e=>{const{as:t="div",children:o,visibility:r,hide:n}=e,s=F(ir.root,...le(ir,"--hidden",n),r&&ir["--visibility"]);return i.jsx(t,{className:s,children:o})};Nt.displayName="Hidden";const ze={root:"_root_9u073_1",item:"_item_9u073_11","--animated":"_--animated_9u073_19","--bg-neutral":"_--bg-neutral_9u073_1","--bg-positive":"_--bg-positive_9u073_1","--bg-warning":"_--bg-warning_9u073_1","--bg-critical":"_--bg-critical_9u073_1","--bg-primary":"_--bg-primary_9u073_1","--bg-neutral-faded":"_--bg-neutral-faded_9u073_1","--bg-positive-faded":"_--bg-positive-faded_9u073_1","--bg-warning-faded":"_--bg-warning-faded_9u073_1","--bg-critical-faded":"_--bg-critical-faded_9u073_1","--bg-primary-faded":"_--bg-primary-faded_9u073_1","--bg-page":"_--bg-page_9u073_1","--bg-page-faded":"_--bg-page-faded_9u073_1","--bg-disabled":"_--bg-disabled_9u073_1","--bg-disabled-faded":"_--bg-disabled-faded_9u073_1","--bg-elevation-base":"_--bg-elevation-base_9u073_1","--bg-elevation-raised":"_--bg-elevation-raised_9u073_1","--bg-elevation-overlay":"_--bg-elevation-overlay_9u073_1","--bg-brand":"_--bg-brand_9u073_39","--bg-white":"_--bg-white_9u073_44","--bg-black":"_--bg-black_9u073_49","--shadow-raised":"_--shadow-raised_9u073_54","--shadow-overlay":"_--shadow-overlay_9u073_58","--overflow-hidden":"_--overflow-hidden_9u073_62","--overflow-auto":"_--overflow-auto_9u073_66","--divided":"_--divided_9u073_70","--flex":"_--flex_9u073_74","--direction-column":"_--direction-column_9u073_1","item--gap-before":"_item--gap-before_9u073_86","item--gap-auto":"_item--gap-auto_9u073_90","--direction-column-reverse":"_--direction-column-reverse_9u073_1","--direction-row":"_--direction-row_9u073_1","--direction-row-reverse":"_--direction-row-reverse_9u073_1","--nowrap":"_--nowrap_9u073_145","--wrap":"_--wrap_9u073_153","--nowrap-false--m":"_--nowrap-false--m_9u073_1","--wrap-true--m":"_--wrap-true--m_9u073_1","--nowrap-true--m":"_--nowrap-true--m_9u073_1","--wrap-false--m":"_--wrap-false--m_9u073_1","--nowrap-false--l":"_--nowrap-false--l_9u073_1","--wrap-true--l":"_--wrap-true--l_9u073_1","--nowrap-true--l":"_--nowrap-true--l_9u073_1","--wrap-false--l":"_--wrap-false--l_9u073_1","--nowrap-false--xl":"_--nowrap-false--xl_9u073_1","--wrap-true--xl":"_--wrap-true--xl_9u073_1","--nowrap-true--xl":"_--nowrap-true--xl_9u073_1","--wrap-false--xl":"_--wrap-false--xl_9u073_1",divider:"_divider_9u073_171","item--grow":"_item--grow_9u073_175","item--shrink":"_item--shrink_9u073_193","item--columns":"_item--columns_9u073_197","item--columns-1":"_item--columns-1_9u073_1","item--columns-2":"_item--columns-2_9u073_1","item--columns-3":"_item--columns-3_9u073_1","item--columns-4":"_item--columns-4_9u073_1","item--columns-5":"_item--columns-5_9u073_1","item--columns-6":"_item--columns-6_9u073_1","item--columns-7":"_item--columns-7_9u073_1","item--columns-8":"_item--columns-8_9u073_1","item--columns-9":"_item--columns-9_9u073_1","item--columns-10":"_item--columns-10_9u073_1","item--columns-11":"_item--columns-11_9u073_1","item--columns-12":"_item--columns-12_9u073_1","item--columns-auto":"_item--columns-auto_9u073_218","item--columns-1--m":"_item--columns-1--m_9u073_1","item--columns-auto--m":"_item--columns-auto--m_9u073_1","item--columns-2--m":"_item--columns-2--m_9u073_1","item--columns-3--m":"_item--columns-3--m_9u073_1","item--columns-4--m":"_item--columns-4--m_9u073_1","item--columns-5--m":"_item--columns-5--m_9u073_1","item--columns-6--m":"_item--columns-6--m_9u073_1","item--columns-7--m":"_item--columns-7--m_9u073_1","item--columns-8--m":"_item--columns-8--m_9u073_1","item--columns-9--m":"_item--columns-9--m_9u073_1","item--columns-10--m":"_item--columns-10--m_9u073_1","item--columns-11--m":"_item--columns-11--m_9u073_1","item--columns-12--m":"_item--columns-12--m_9u073_1","item--columns-1--l":"_item--columns-1--l_9u073_1","item--columns-auto--l":"_item--columns-auto--l_9u073_1","item--columns-2--l":"_item--columns-2--l_9u073_1","item--columns-3--l":"_item--columns-3--l_9u073_1","item--columns-4--l":"_item--columns-4--l_9u073_1","item--columns-5--l":"_item--columns-5--l_9u073_1","item--columns-6--l":"_item--columns-6--l_9u073_1","item--columns-7--l":"_item--columns-7--l_9u073_1","item--columns-8--l":"_item--columns-8--l_9u073_1","item--columns-9--l":"_item--columns-9--l_9u073_1","item--columns-10--l":"_item--columns-10--l_9u073_1","item--columns-11--l":"_item--columns-11--l_9u073_1","item--columns-12--l":"_item--columns-12--l_9u073_1","item--columns-1--xl":"_item--columns-1--xl_9u073_1","item--columns-auto--xl":"_item--columns-auto--xl_9u073_1","item--columns-2--xl":"_item--columns-2--xl_9u073_1","item--columns-3--xl":"_item--columns-3--xl_9u073_1","item--columns-4--xl":"_item--columns-4--xl_9u073_1","item--columns-5--xl":"_item--columns-5--xl_9u073_1","item--columns-6--xl":"_item--columns-6--xl_9u073_1","item--columns-7--xl":"_item--columns-7--xl_9u073_1","item--columns-8--xl":"_item--columns-8--xl_9u073_1","item--columns-9--xl":"_item--columns-9--xl_9u073_1","item--columns-10--xl":"_item--columns-10--xl_9u073_1","item--columns-11--xl":"_item--columns-11--xl_9u073_1","item--columns-12--xl":"_item--columns-12--xl_9u073_1","--direction-column--m":"_--direction-column--m_9u073_1","--direction-column-reverse--m":"_--direction-column-reverse--m_9u073_1","--direction-row--m":"_--direction-row--m_9u073_1","--direction-row-reverse--m":"_--direction-row-reverse--m_9u073_1","item--grow-true--m":"_item--grow-true--m_9u073_1","item--grow-false--m":"_item--grow-false--m_9u073_1","--direction-column--l":"_--direction-column--l_9u073_1","--direction-column-reverse--l":"_--direction-column-reverse--l_9u073_1","--direction-row--l":"_--direction-row--l_9u073_1","--direction-row-reverse--l":"_--direction-row-reverse--l_9u073_1","item--grow-true--l":"_item--grow-true--l_9u073_1","item--grow-false--l":"_item--grow-false--l_9u073_1","--direction-column--xl":"_--direction-column--xl_9u073_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_9u073_1","--direction-row--xl":"_--direction-row--xl_9u073_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_9u073_1","item--grow-true--xl":"_item--grow-true--xl_9u073_1","item--grow-false--xl":"_item--grow-false--xl_9u073_1"},lr=e=>{const{columns:t,grow:o,shrink:r,gapBefore:n,as:s="div",order:l,children:a,className:d,attributes:_}=e,m=F(ze.item,d,n==="auto"&&ze["item--gap-auto"],n!==void 0&&ze["item--gap-before"],t&&ze["item--columns"],r&&ze["item--shrink"],...le(ze,"item--grow",o),...le(ze,"item--columns",t)),u=p(p({},q("--rs-view-item-order",l)),q("--rs-view-item-gap-before",n));return i.jsx(s,z(p({},_),{style:p(p({},_==null?void 0:_.style),u),className:m,children:a}))},ar=e=>{var Ie;const{align:t,justify:o,wrap:r,gap:n,height:s,width:l,aspectRatio:a,maxHeight:d,maxWidth:_,minHeight:m,minWidth:u,padding:h,paddingInline:g,paddingBlock:b,paddingBottom:f,paddingEnd:y,paddingStart:x,paddingTop:v,bleed:w,animated:C,backgroundColor:k,borderColor:E,borderTop:N,borderBottom:S,borderStart:T,borderEnd:j,borderInline:$,borderBlock:M,borderRadius:D,shadow:P,textAlign:B,overflow:L,position:A,inset:W,insetTop:re,insetBottom:Z,insetStart:Q,insetEnd:U,zIndex:te,grow:X,shrink:oe,as:$e="div",children:de,divided:K,className:ue,attributes:ye}=e,O=(Ie=e.border)!=null?Ie:E?!N&&!S&&!T&&!j&&!$&&!M:void 0;let Y=!!t||!!o||!!n||!!e.direction;const R=e.direction||(Y?"column":void 0),he=et({align:t,inset:W,insetTop:re,insetBottom:Z,insetStart:Q,insetEnd:U,bleed:w,width:l,height:s,maxWidth:_,maxHeight:d,minWidth:u,minHeight:m,position:A,aspectRatio:a,textAlign:B,justify:o,padding:h,paddingInline:g,paddingBlock:b,paddingBottom:f,paddingEnd:y,paddingStart:x,paddingTop:v,borderColor:E,border:O,borderTop:N,borderBottom:S,borderStart:T,borderEnd:j,borderInline:$,borderBlock:M,radius:D});let J=0,G;const se=({className:me,key:ve})=>{const xe=F(ze.divider,me);let Ae=!1;return typeof R=="string"&&R.startsWith("row")?Ae=!0:R&&(Ae=Object.keys(R).reduce((Qe,Ve)=>{const Be=R[Ve];return Be?z(p({},Qe),{[Ve]:Be.startsWith("row")}):Qe},{})),i.jsx("div",{className:xe,children:i.jsx(eo,{vertical:Ae,blank:!0})},`${ve}-divider`)},ie=({className:me,child:ve,index:xe})=>{var Zo,Jo;const Ae=c.isValidElement(ve),De=Ae&&ve.type===lr,Qe=Ae&&ve.type===ar,Ve=ve.key,Be=!!xe&&K&&se({className:me,key:Ve});let Ee;return De?Ee=c.cloneElement(ve,{className:F(me,ve.props.className)}):!me&&(c.isValidElement(ve)||c.Children.count(de===1)||typeof ve=="string")?Ee=ve:Ee=i.jsx("div",{className:me,children:ve},Ve),(De||Qe)&&((Zo=ve.props)!=null&&Zo.grow)&&(G=ve.props.grow,Y=!0),De&&((Jo=ve.props)==null?void 0:Jo.gap)==="auto"&&(G=!0),i.jsxs(c.Fragment,{children:[Be,Ee]},Ve?`${Ve}-fragment`:void 0)},ce=c.Children.map(de,(me,ve)=>{if(!me)return null;const xe=J;if(J+=1,c.isValidElement(me)&&me.type===Nt){const Ae=me.props,{children:De}=Ae,Qe=pe(Ae,["children"]),Ve=me.key||ve;return c.createElement(Nt,z(p({},Qe),{key:Ve}),ie({child:De,index:xe}))}return me.type===c.Fragment&&c.Children.count(me.props.children)>1?me.props.children.map(De=>De?(J+=1,ie({child:De,index:J})):null):ie({child:me,index:xe})}),Ce=F(ze.root,ue,he.classNames,k&&ze[`--bg-${k}`],P&&ze[`--shadow-${P}`],L&&ze[`--overflow-${L}`],C&&ze["--animated"],K&&ze["--divided"],(Y||G)&&ze["--flex"],...le(ze,"--direction",R),...le(ze,"--nowrap",G||r===!1),...le(ze,"--wrap",r),...le(ze,"item--grow",X),oe&&ze["item--shrink"]),Me=p(p(p(p({},ye==null?void 0:ye.style),q("--rs-view-gap",n)),he.variables),te?{"--rs-view-z":te}:{});return i.jsx($e,z(p({},ye),{className:Ce,style:Me,children:ce}))};ar.displayName="View",lr.displayName="View.Item";const H=ar;H.Item=lr;const So={root:"_root_kbofm_1","--position-top":"_--position-top_kbofm_1","--position-top-start":"_--position-top-start_kbofm_1","--position-top-end":"_--position-top-end_kbofm_1","--position-bottom":"_--position-bottom_kbofm_101","--position-bottom-start":"_--position-bottom-start_kbofm_1","--position-bottom-end":"_--position-bottom-end_kbofm_1","--elevated":"_--elevated_kbofm_66","--active":"_--active_kbofm_80"},_c=["top","bottom"],An=e=>{const{position:t="bottom",positionType:o,offset:r,padding:n,paddingBlock:s=3,paddingInline:l=4,children:a,elevated:d,active:_=!0,className:m,attributes:u}=e,h=o!=null?o:r?"absolute":_c.includes(t)?"relative":"absolute",g=r!=null?r:h==="relative"?void 0:4,b=g&&q("--rs-action-bar-offset",g),f=F(So.root,(d||!!b)&&So["--elevated"],t&&So[`--position-${t}`],_&&So["--active"],m);return i.jsx(H,{className:f,attributes:z(p({},u),{style:p(p({},u==null?void 0:u.style),b)}),position:h,paddingBlock:n||s,paddingInline:n||l,children:a})};An.displayName="ActionBar";const cr={root:"_root_wxiwp_1","--auto":"_--auto_wxiwp_12","--color-neutral":"_--color-neutral_wxiwp_1","--color-neutral-faded":"_--color-neutral-faded_wxiwp_1","--color-primary":"_--color-primary_wxiwp_1","--color-positive":"_--color-positive_wxiwp_1","--color-warning":"_--color-warning_wxiwp_1","--color-critical":"_--color-critical_wxiwp_1","--color-disabled":"_--color-disabled_wxiwp_1"},ge=e=>{const{svg:t,className:o,color:r,size:n="1em",autoWidth:s,attributes:l}=e,a=et({height:n}),d=F(cr.root,o,a.classNames,r&&cr[`--color-${r}`],s&&cr["--auto"]),_=c.isValidElement(t)||t===null?t:i.jsx(t,{}),m=p(p({},l==null?void 0:l.style),a.variables);return i.jsx("span",z(p({},l),{"aria-hidden":"true",className:d,style:m,children:_&&c.cloneElement(_,{focusable:!1})}))};ge.displayName="Icon";const mc={icon:"_icon_1elkf_1"},Vn=e=>{const{title:t,children:o,icon:r,actionsSlot:n,color:s="neutral",inline:l,bleed:a,className:d,attributes:_}=e,m=s==="neutral",u=()=>l?i.jsxs(i.Fragment,{children:[t&&i.jsx(ne,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&o&&" ",o&&i.jsx(ne,{variant:"body-3",as:"span",children:o})]}):i.jsxs(H,{gap:1,grow:!0,children:[t&&i.jsx(ne,{variant:"body-3",weight:"medium",children:t}),o&&i.jsx(ne,{variant:"body-3",children:o})]}),h=g=>n?i.jsxs(H,{gap:l?4:2,direction:l?"row":"column",children:[l?i.jsx(H.Item,{grow:!0,children:g}):g,n&&i.jsx(ne,{variant:"body-3",weight:"medium",children:i.jsx(H,{direction:"row",gap:3,children:n})})]}):g;return i.jsx(H,{direction:"row",gap:3,padding:4,bleed:a,borderRadius:"medium",borderColor:`${s}-faded`,backgroundColor:`${s}-faded`,className:d,attributes:z(p({},_),{role:s==="critical"?"alert":"status"}),children:r?i.jsxs(i.Fragment,{children:[i.jsx("div",{className:mc.icon,children:i.jsx(ge,{svg:r,size:5,color:m?"primary":s})}),i.jsx(H.Item,{grow:!0,children:h(u())})]}):h(u())})};Vn.displayName="Alert";const Ke=e=>{const t=c.useId();return e||t};let kt={},dt=null;const hc=e=>{kt[e]&&(e===dt&&(dt=kt[e].parentId),delete kt[e],dt===null&&(kt={}))},fc=(e,t,o)=>{kt[e]={parentId:dt,triggerRef:o,contentRef:t},dt=e},Bn=e=>{const{active:t,contentRef:o,triggerRef:r,hasTrigger:n=!0}=e,s=Ke();return c.useEffect(()=>{if(t)return fc(s,o,r),()=>hc(s)},[t,s,o,r]),c.useCallback(()=>{var u;if(!t)return!0;const l=dt?kt[dt]:void 0,a=(u=l==null?void 0:l.triggerRef)==null?void 0:u.current,d=l!=null&&l.parentId?kt[l.parentId]:void 0,_=d==null?void 0:d.contentRef.current,m=_&&a&&_.contains(a);return n&&!m?!0:!dt||dt===s},[s,t,n])},Hn=e=>{const t=e instanceof Date;if(t)return String(t);const o=JSON.stringify(e);return JSON.parse(o)},gc=(e,t=!1)=>{const o=c.useRef(t?Hn(e):e);return c.useEffect(()=>{o.current=t?Hn(e):e},[e,t]),o.current},tt=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},dr="data-rs-no-transition",bc=()=>{document.documentElement.setAttribute(dr,"true")},pc=()=>{document.documentElement.removeAttribute(dr)},vc=()=>!document.documentElement.hasAttribute(dr),yc=600,On=c.createContext({}),Wn=c.createContext(null),qn=c.createContext(null),Lt=()=>c.useContext(On),xc=()=>c.useContext(Wn),wc=()=>c.useContext(qn),Cc=On.Provider,Nc=Wn.Provider,kc=qn.Provider,zc=e=>{const j=e,{triggerElRef:t,flyoutElRef:o,triggerCoordinatesRef:r,contentGap:n,contentShift:s,onClose:l}=j,a=pe(j,["triggerElRef","flyoutElRef","triggerCoordinatesRef","contentGap","contentShift","onClose"]),{position:d="bottom",fallbackPositions:_,fallbackAdjustLayout:m,fallbackMinHeight:u,width:h,container:g}=a,[b,f]=c.useState("idle"),[y,x]=c.useState(d),v=c.useRef(null),w=c.useMemo(()=>_,[_==null?void 0:_.join(" ")]),C=c.useCallback(()=>{f("rendered")},[]),k=c.useCallback(()=>{f("hidden")},[]),E=c.useCallback(()=>{if(!o.current)return;const $=getComputedStyle(o.current).getPropertyValue("--rs-unit-x1"),M=$?parseInt($):4,D=()=>{l==null||l({}),k()};return{trigger:t.current,content:o.current,container:g,triggerCoordinates:r.current,width:h,position:d,fallbackPositions:w,fallbackAdjustLayout:m,fallbackMinHeight:u,contentGap:(n!=null?n:0)*M,contentShift:(s!=null?s:0)*M,onDeactivate:D}},[w,g,n,s,d,m,u,r,t,h,k,l,o]),N=c.useCallback(()=>{const $=E();if(!$)return;v.current=new ra($);const M=v.current.activate();x(M.position),f("visible")},[E]),S=c.useCallback(()=>{v.current&&(v.current.deactivate(),f("idle"))},[]),T=c.useCallback(()=>{const $=E();if(!v.current||!$)return;const M=v.current.update($);x(M.position)},[E]);return fe(()=>{T()},[d]),c.useMemo(()=>({position:y,status:b,updatePosition:T,render:C,hide:k,remove:S,show:N}),[C,T,k,S,N,y,b])};class Sc{constructor(){be(this,"status","cold");be(this,"timer");be(this,"warm",()=>{if(clearTimeout(this.timer),this.status==="cooling"){this.status="warm";return}this.status="warming",this.timer=setTimeout(()=>{this.status="warm",this.timer=void 0},100)});be(this,"cool",()=>{if(clearTimeout(this.timer),this.status==="warming"){this.status="cold";return}this.status="cooling",this.timer=setTimeout(()=>{this.status="cold",this.timer=void 0},500)})}}const zt=new Sc;function Ec(e,t){const[o,r,n]=t,s=(r.y-n.y)*(o.x-n.x)+(n.x-r.x)*(o.y-n.y),l=((r.y-n.y)*(e.x-n.x)+(n.x-r.x)*(e.y-n.y))/s,a=((n.y-o.y)*(e.x-n.x)+(o.x-n.x)*(e.y-n.y))/s,d=1-l-a;return l>=0&&l<=1&&a>=0&&a<=1&&d>=0&&d<=1}function Tc(e,t){const o={topLeft:{x:e.left,y:e.top},topRight:{x:e.right,y:e.top},bottomLeft:{x:e.left,y:e.bottom},bottomRight:{x:e.right,y:e.bottom}};return t!=null&&t.startsWith("bottom")?[o.topLeft,o.topRight]:t!=null&&t.startsWith("top")?[o.bottomLeft,o.bottomRight]:t!=null&&t.startsWith("start")?[o.topRight,o.bottomRight]:[o.topLeft,o.bottomLeft]}function $c(e,t,o){return document.elementsFromPoint(e.x,e.y).some(n=>t.current&&t.current.contains(n)||o.current&&o.current.contains(n))}function Mc(e){const{contentRef:t,triggerRef:o,position:r,onClose:n,origin:s}=e;if(!t.current)return n(),()=>{};const l=t.current.getBoundingClientRect(),[a,d]=Tc(l,r),m=[{x:s.x,y:s.y},a,d];let u=null;const h=()=>{document.removeEventListener("mousemove",b),u&&clearTimeout(u)},g=()=>{u&&clearTimeout(u),u=setTimeout(()=>{n(),h()},1e3)},b=f=>{const y={x:f.clientX,y:f.clientY};if($c(y,t,o)){h();return}Ec(y,m)?g():(n(),h())};return g(),document.addEventListener("mousemove",b),h}const ur=e=>{var Ol;const{triggerType:t="click",groupTimeouts:o,onOpen:r,onClose:n,children:s,disabled:l,forcePosition:a,fallbackAdjustLayout:d,fallbackMinHeight:_,trapFocusMode:m="dialog",width:u,disableHideAnimation:h,disableContentHover:g,disableCloseOnOutsideClick:b,autoFocus:f=!0,originCoordinates:y,contentGap:x=2,contentShift:v,contentMaxHeight:w,contentMaxWidth:C,contentZIndex:k,contentClassName:E,contentAttributes:N,position:S,active:T,id:j,instanceRef:$,containerRef:M,initialFocusRef:D,positionRef:P}=e,B=e.fallbackPositions===!1||a?[]:e.fallbackPositions,L=ke(r),A=ke(n),W=l===!0?!1:T,re=gc(W),Z=Lt(),{elRef:Q}=xc()||{},{elRef:U}=wc()||{},te=Z.trapFocusMode==="action-menu"||Z.trapFocusMode==="content-menu",X=c.useRef(null),oe=!!(Q!=null&&Q.current)&&((Ol=U==null?void 0:U.current)==null?void 0:Ol.contains(Q.current)),de=(!U||oe)&&Q||X,K=c.useRef(null),ue=Ke(j),ye=c.useRef(null),O=c.useRef(null),Y=c.useRef(!1),R=c.useRef(!1),he=c.useRef(!0),J=c.useRef(!1),G=c.useRef(null),se=c.useRef(y!=null?y:null);se.current=y!=null?y:null;const ie=zc({triggerElRef:P!=null?P:de,flyoutElRef:K,triggerCoordinatesRef:se,width:u,position:S,defaultActive:W,container:M==null?void 0:M.current,fallbackPositions:B,fallbackAdjustLayout:d,fallbackMinHeight:_,contentGap:x,contentShift:v,onClose:A.current}),{status:ce,updatePosition:Ce,render:Me,hide:Ie,remove:me,show:ve}=ie,xe=ce!=="idle",Ae=Bn({active:xe&&t!=="hover",contentRef:K,triggerRef:de}),De=c.useCallback(()=>{ye.current&&clearTimeout(ye.current)},[]),Qe=c.useCallback(()=>{t==="hover"&&document.querySelectorAll("[data-rs-flyout-active]").forEach(ee=>{ee!==de.current&&(ee.style.pointerEvents="none")})},[de,t]),Ve=c.useCallback(()=>{t==="hover"&&document.querySelectorAll("[data-rs-flyout-active]").forEach(ee=>{ee.style.removeProperty("pointer-events")})},[t]),Be=c.useCallback(()=>{var ee;Y.current||xe&&t!=="hover"||((ee=L.current)==null||ee.call(L),Qe())},[L,xe,t,Qe]),Ee=c.useCallback(ee=>{var vo,yo;!(t==="click"&&!Ae())&&(xe||l)&&((vo=A.current)==null||vo.call(A,{reason:ee.reason}),Ve(),ee!=null&&ee.closeParents&&((yo=Z==null?void 0:Z.handleClose)==null||yo.call(Z,{closeParents:!0,reason:ee.reason})))},[xe,Ae,t,A,l,Z,Ve]),Zo=c.useCallback(ee=>{var Yt;!Zt()||(Yt=K.current)!=null&&Yt.contains(ee.relatedTarget)||R.current||Ee({})},[Ee]),Jo=c.useCallback(()=>{t==="hover"&&!Zt()||Be()},[Be,t]),zd=c.useCallback(()=>{t==="hover"&&(J.current=!0)},[t]),cn=c.useCallback(()=>{De(),J.current?(Be(),J.current=!1):(o&&zt.warm(),ye.current=setTimeout(()=>{Be()},o&&zt.status==="warming"?yc:0))},[De,Be,o]),Sd=c.useCallback(ee=>{var Ge;ee.currentTarget===de.current&&((Ge=G.current)==null||Ge.cleanup()),cn()},[de,cn]),Ed=c.useCallback(ee=>{var Ge,Yt,vo,yo;if(!(ee.relatedTarget===K.current||ee.relatedTarget instanceof Node&&((Ge=K.current)!=null&&Ge.contains(ee.relatedTarget)))&&!(ee.relatedTarget===de.current||ee.relatedTarget instanceof Node&&((Yt=de.current)!=null&&Yt.contains(ee.relatedTarget))))if(zt.cool(),De(),(vo=G.current)==null||vo.cleanup(),t==="hover"&&xe){const Wl=ee.currentTarget===K.current&&((yo=G.current)!=null&&yo.origin)?G.current.origin:{x:ee.clientX,y:ee.clientY},jd=Mc({contentRef:K,triggerRef:de,position:ie.position,onClose:()=>Ee({}),origin:Wl});G.current={origin:Wl,cleanup:jd}}else Ee({})},[De,Ee,de,K,t,xe,ie.position]),Td=c.useCallback(()=>{xe?Ee({}):Be()},[xe,Be,Ee]),$d=()=>{R.current=!0,J.current=!0},Md=()=>{R.current=!1},Id=c.useCallback(ee=>{K.current!==ee.currentTarget||ee.propertyName!=="transform"||ce==="hidden"&&me()},[me,ce]);return fe(()=>{if(W){Me();return}l&&zt.cool(),re!==W&&(vc()&&!h&&(zt.status==="cooling"||!o)?Ie():me())},[W,re,Me,Ie,me,h,l,o]),fe(()=>{ce==="rendered"&&ve()},[ce,ve]),fe(()=>{var Ge;if(ce!=="visible"||!K.current||(Ge=O.current)!=null&&Ge.trapped||m===!1)return;const ee=f?D==null?void 0:D.current:K.current.querySelector("[role][tabindex='-1']");O.current=new It,O.current.trap(K.current,{mode:m,initialFocusEl:ee,includeTrigger:t==="hover"&&m!=="dialog"&&!te,onRelease:()=>{Ee({})}})},[ce,t,m,f]),c.useEffect(()=>{var ee;!h&&ce!=="hidden"||h&&xe||(ee=O.current)!=null&&ee.trapped&&(t==="hover"&&Zt()&&(Y.current=!0,setTimeout(()=>{Y.current=!1},100)),O.current.release({withoutFocusReturn:!he.current}),he.current=!0)},[ce,xe,t,h]),c.useEffect(()=>()=>{var ee;return(ee=O.current)==null?void 0:ee.release()},[]),c.useEffect(()=>{var ee;return xe||(ee=G.current)==null||ee.cleanup(),()=>{var Ge;return(Ge=G.current)==null?void 0:Ge.cleanup()}},[xe]),c.useImperativeHandle($,()=>({open:Be,close:()=>Ee({}),updatePosition:()=>Ce()}),[Be,Ee,Ce]),Ze({Escape:()=>Ee({reason:"escape-key"})},[Ee]),En([K,de],()=>{he.current=!1,Ee({reason:"outside-click"})},{disabled:!xe||b}),i.jsx(Cc,{value:{id:ue,flyout:ie,width:u,triggerElRef:de,flyoutElRef:K,handleClose:Ee,handleOpen:Be,handleFocus:Jo,handleBlur:Zo,handleTriggerMouseEnter:Sd,handleContentMouseEnter:cn,handleMouseLeave:Ed,handleTouchStart:zd,handleTransitionEnd:Id,handleClick:Td,handleContentMouseDown:$d,handleContentMouseUp:Md,triggerType:t,trapFocusMode:m,contentZIndex:k,contentClassName:E,contentAttributes:N,contentGap:x,contentMaxHeight:w,contentMaxWidth:C,containerRef:M,disableContentHover:g,autoFocus:f,isSubmenu:te},children:s})};ur.displayName="FlyoutControlled";const Un=e=>{const{defaultActive:t,onClose:o,onOpen:r}=e,[n,s]=c.useState(t||!1),l=d=>{s(!1),o==null||o(d)},a=()=>{s(!0),r==null||r()};return i.jsx(ur,z(p({},e),{defaultActive:void 0,active:n,onClose:l,onOpen:a}))};Un.displayName="FlyoutUncontrolled";const Yn=e=>{const{active:t}=e;return typeof t=="boolean"?i.jsx(ur,p({},e)):i.jsx(Un,p({},e))};Yn.displayName="Flyout";const Kn=c.createContext({}),_r=c.createContext({}),Ic={root:"_root_153o0_1"},Eo=e=>e?e.hasAttribute("data-rs-root")||e===document.documentElement||!e.parentElement?e:Eo(e.parentElement):document.documentElement,mr=()=>c.useContext(_r),Gn=()=>{const{colorMode:e,theme:t,setTheme:o,rootTheme:r,setRootTheme:n}=c.useContext(Kn),{mode:s,setMode:l,invertMode:a}=c.useContext(_r);return c.useMemo(()=>({theme:t,setTheme:o,rootTheme:r,setRootTheme:n,colorMode:e||s,setColorMode:l,invertColorMode:a}),[e,s,l,a,t,o,n,r])},Xn=e=>typeof e=="string"?e:` ${e.join(" ")} `,Dt=e=>i.jsx(Zn,p({},e)),Zn=e=>{const{name:t,defaultName:o,colorMode:r,scoped:n,scopeRef:s,children:l,className:a}=e,[d,_]=c.useState(!1),[m,u]=c.useState(o),h=mr(),g=Gn(),b=!g.theme,f=t||m||g.theme,y=b||n?f:g.rootTheme,x=b||n?h.mode:g.colorMode,w=r==="inverted"?x==="light"?"dark":"light":r||x,C=F(Ic.root,a),k=c.useCallback(S=>{b?u(S):g.setRootTheme(S)},[b,g]),E=c.useCallback(S=>{u(S)},[]);fe(()=>{_(!0)},[]),fe(()=>{if(!document||!b)return;const S=Eo(s==null?void 0:s.current),T=S.getAttribute("data-rs-color-mode"),j=Xn(f);return j&&S.setAttribute("data-rs-theme",j),T||S.setAttribute("data-rs-color-mode",w),()=>{S.removeAttribute("data-rs-theme"),T||S.removeAttribute("data-rs-color-mode")}},[f,w,b,s]);const N=c.useMemo(()=>({theme:f,rootTheme:y,colorMode:w,setTheme:E,setRootTheme:k}),[f,w,E,k,y]);return i.jsx(Kn.Provider,{value:N,children:i.jsx("div",{className:C,ref:s,"data-rs-root":n?!0:void 0,"data-rs-theme":b?void 0:Xn(f),"data-rs-color-mode":b||!r&&!d?void 0:w,children:l})})};Dt.displayName="Theme";const Jn=e=>{const{defaultMode:t,mode:o,scopeRef:r,children:n}=e,[s,l]=c.useState(t),a=mr(),d=c.useCallback(m=>{Eo(r==null?void 0:r.current).setAttribute("data-rs-color-mode",m),a.mode&&!r&&a.setMode(m),l(m)},[r,a]);fe(()=>{bc(),tt(()=>{pc()})},[s,o]),fe(()=>{const m=Eo(r==null?void 0:r.current).getAttribute("data-rs-color-mode");m&&d(m)},[d,r]);const _=c.useMemo(()=>({mode:o||s,setMode:d,invertMode:()=>{d(s==="light"?"dark":"light")}}),[s,o,d]);return i.jsx(_r.Provider,{value:_,children:n})};Jn.displayName="GlobalColorMode";const jc={root:"_root_hqrz2_1"},Qn=c.createContext({}),Lc=()=>c.useContext(Qn),Rn=e=>{var u;const{children:t,targetRef:o}=e,r=Ct(),n=c.useRef(null),s=(u=n.current)==null?void 0:u.getRootNode(),a=s instanceof ShadowRoot?s:document.body,d=Lc(),_=o||d.scopeRef,m=(_==null?void 0:_.current)||a;return fe(()=>(r.activate(),()=>r.deactivate()),[]),[He.createPortal(i.jsx(Dt,{children:t}),m),!r.active&&i.jsx("div",{ref:n,className:jc.root},"root")]};function es(e){const{children:t}=e,o=c.useRef(null);return i.jsx(Qn.Provider,{value:{scopeRef:o},children:t(o)})}Rn.displayName="Portal",es.displayName="PortalScope";const To=Rn;To.Scope=es;const vt={content:"_content_7wued_1","--hover":"_--hover_7wued_19","--hover-disabled":"_--hover-disabled_7wued_23",inner:"_inner_7wued_24","--width-trigger":"_--width-trigger_7wued_52","--position-top":"_--position-top_7wued_56","--position-top-end":"_--position-top-end_7wued_57","--position-top-start":"_--position-top-start_7wued_58","--position-bottom":"_--position-bottom_7wued_62","--position-bottom-end":"_--position-bottom-end_7wued_63","--position-bottom-start":"_--position-bottom-start_7wued_64","--position-start":"_--position-start_7wued_78","--position-start-top":"_--position-start-top_7wued_79","--position-start-bottom":"_--position-start-bottom_7wued_80","--position-end":"_--position-end_7wued_84","--position-end-top":"_--position-end-top_7wued_85","--position-end-bottom":"_--position-end-bottom_7wued_86","--visible":"_--visible_7wued_100","--animated":"_--animated_7wued_105"},ts=e=>{const{children:t,className:o,attributes:r}=e,{flyout:n,id:s,flyoutElRef:l,handleTransitionEnd:a,triggerType:d,handleContentMouseEnter:_,handleMouseLeave:m,handleContentMouseDown:u,handleContentMouseUp:h,contentClassName:g,contentAttributes:b,contentMaxHeight:f,contentMaxWidth:y,contentZIndex:x,trapFocusMode:v,disableContentHover:w,autoFocus:C,width:k,isSubmenu:E}=Lt(),{status:N,position:S}=n,[T,j]=c.useState(!1);if(fe(()=>{j(!0)},[]),N==="idle"||!T)return null;const $=F(vt.content,d==="hover"&&vt["--hover"],N==="visible"&&vt["--visible"],(zt.status==="cooling"||!zt.timer||E||d!=="hover")&&vt["--animated"],S&&vt[`--position-${S}`],k==="trigger"&&vt["--width-trigger"],d==="hover"&&w&&vt["--hover-disabled"]),M=F(vt.inner,o,g);let D=r==null?void 0:r.role;d==="hover"?D="tooltip":v==="dialog"?D="dialog":v==="selection-menu"?D="listbox":v==="action-menu"?D="menu":v==="action-bar"&&(D="menubar");const P=i.jsx(kc,{value:{elRef:l},children:i.jsx("div",{className:$,style:{"--rs-flyout-max-h":f,"--rs-flyout-max-w":y,"--rs-flyout-z-index":x},ref:l,onTransitionEnd:a,onMouseEnter:d==="hover"?_:void 0,onMouseLeave:d==="hover"?m:void 0,onMouseDown:u,onTouchStart:u,onMouseUp:h,onTouchEnd:h,children:i.jsx("div",z(p({role:D},r),{id:s,tabIndex:C?void 0:-1,"aria-modal":D==="dialog"?!0:void 0,style:p(p({},r==null?void 0:r.style),b==null?void 0:b.style),className:M,children:t}))})});return i.jsx(To,{children:P})};ts.displayName="Flyout.Content";const os=e=>{const{children:t}=e,{id:o,triggerElRef:r,triggerType:n,flyout:s,handleFocus:l,handleBlur:a,handleTriggerMouseEnter:d,handleMouseLeave:_,handleTouchStart:m,handleClick:u,trapFocusMode:h,isSubmenu:g}=Lt(),b=s.status!=="idle",f={ref:r,"data-rs-flyout-active":b};return(n==="click"||h==="action-menu")&&(f.onClick=u),n==="hover"&&(f.onMouseEnter=d,f.onMouseLeave=_,f.onTouchStart=m),(n==="hover"&&!g||n==="focus")&&(f.onFocus=l,f.onBlur=a,f["aria-describedby"]=b?o:void 0),(n==="click"||n==="focus"||h==="action-menu")&&(h==="dialog"?f["aria-haspopup"]="dialog":h==="selection-menu"?(f["aria-haspopup"]="listbox",f["aria-autocomplete"]="list"):f["aria-haspopup"]="menu",f["aria-expanded"]=b,f["aria-controls"]=b?o:void 0),i.jsx(Nc,{value:{elRef:r},children:t(f)})};os.displayName="Flyout.Trigger";const ut=Yn;ut.Trigger=os,ut.Content=ts;const St={root:"_root_1ldab_2",touch:"_touch_1ldab_21","--inset":"_--inset_1ldab_44","--disabled-focus-ring":"_--disabled-focus-ring_1ldab_48","--radius-inherit":"_--radius-inherit_1ldab_52","--disabled":"_--disabled_1ldab_48","--full-width":"_--full-width_1ldab_88"},je=c.forwardRef((e,t)=>{const h=e,{insetFocus:o,disableFocusRing:r,borderRadius:n,fullWidth:s,touchHitbox:l,children:a,className:d,disabled:_}=h,m=pe(h,["insetFocus","disableFocusRing","borderRadius","fullWidth","touchHitbox","children","className","disabled"]),u=[St.root,d,_&&St["--disabled"],n&&St[`--radius-${n}`],o&&St["--inset"],r&&St["--disabled-focus-ring"],s&&St["--full-width"]];return i.jsxs(xn,z(p({},m),{className:u,disabled:_,ref:t,children:[l&&!_&&i.jsx("span",{className:St.touch}),a]}))});je.displayName="Actionable";const $o={root:"_root_1f1sc_15","rs-reshaped-loader":"_rs-reshaped-loader_1f1sc_1",inner:"_inner_1f1sc_44","--color-inherit":"_--color-inherit_1f1sc_63","--color-primary":"_--color-primary_1f1sc_67","--color-positive":"_--color-positive_1f1sc_71","--color-critical":"_--color-critical_1f1sc_75","--size-small":"_--size-small_1f1sc_1","--size-medium":"_--size-medium_1f1sc_1","--size-large":"_--size-large_1f1sc_1","--size-small--m":"_--size-small--m_1f1sc_1","--size-medium--m":"_--size-medium--m_1f1sc_1","--size-large--m":"_--size-large--m_1f1sc_1","--size-small--l":"_--size-small--l_1f1sc_1","--size-medium--l":"_--size-medium--l_1f1sc_1","--size-large--l":"_--size-large--l_1f1sc_1","--size-small--xl":"_--size-small--xl_1f1sc_1","--size-medium--xl":"_--size-medium--xl_1f1sc_1","--size-large--xl":"_--size-large--xl_1f1sc_1"},hr=e=>{const{size:t="small",color:o="primary",className:r,attributes:n}=e,s=e.ariaLabel||(n==null?void 0:n["aria-label"]),l=F($o.root,r,le($o,"--size",t),o&&$o[`--color-${o}`]);return i.jsx("span",z(p({},n),{role:"progressbar","aria-live":s?"assertive":void 0,"aria-label":s,className:l,children:i.jsx("span",{className:$o.inner})}))};hr.displayName="Loader";const Le={root:"_root_lcajc_5","--loading":"_--loading_lcajc_59","--highlighted":"_--highlighted_lcajc_59","--disabled":"_--disabled_lcajc_59",text:"_text_lcajc_72",icon:"_icon_lcajc_78","--icon-position-end":"_--icon-position-end_lcajc_87",loader:"_loader_lcajc_99","--icon-only":"_--icon-only_lcajc_107","--rounded":"_--rounded_lcajc_125","--size-small":"_--size-small_lcajc_1","--size-medium":"_--size-medium_lcajc_1","--size-large":"_--size-large_lcajc_1","--size-xlarge":"_--size-xlarge_lcajc_1","--full-width":"_--full-width_lcajc_174","--variant-solid":"_--variant-solid_lcajc_186","--color-neutral":"_--color-neutral_lcajc_187","--color-primary":"_--color-primary_lcajc_296","--color-critical":"_--color-critical_lcajc_297","--color-positive":"_--color-positive_lcajc_298","--color-media":"_--color-media_lcajc_201","--variant-faded":"_--variant-faded_lcajc_208","--color-inherit":"_--color-inherit_lcajc_224","--variant-outline":"_--variant-outline_lcajc_232","--variant-ghost":"_--variant-ghost_lcajc_268","--elevated":"_--elevated_lcajc_288",group:"_group_lcajc_349",aligner:"_aligner_lcajc_445","--size-small--m":"_--size-small--m_lcajc_1","--size-medium--m":"_--size-medium--m_lcajc_1","--size-large--m":"_--size-large--m_lcajc_1","--size-xlarge--m":"_--size-xlarge--m_lcajc_1","--full-width-true--m":"_--full-width-true--m_lcajc_1","--full-width-false--m":"_--full-width-false--m_lcajc_1","--size-small--l":"_--size-small--l_lcajc_1","--size-medium--l":"_--size-medium--l_lcajc_1","--size-large--l":"_--size-large--l_lcajc_1","--size-xlarge--l":"_--size-xlarge--l_lcajc_1","--full-width-true--l":"_--full-width-true--l_lcajc_1","--full-width-false--l":"_--full-width-false--l_lcajc_1","--size-small--xl":"_--size-small--xl_lcajc_1","--size-medium--xl":"_--size-medium--xl_lcajc_1","--size-large--xl":"_--size-large--xl_lcajc_1","--size-xlarge--xl":"_--size-xlarge--xl_lcajc_1","--full-width-true--xl":"_--full-width-true--xl_lcajc_1","--full-width-false--xl":"_--full-width-false--xl_lcajc_1"},rs=c.forwardRef((e,t)=>{const{variant:o="solid",color:r="neutral",elevated:n,highlighted:s,fullWidth:l,loading:a,loadingAriaLabel:d,disabled:_,type:m,href:u,size:h="medium",children:g,rounded:b,onClick:f,icon:y,endIcon:x,stopPropagation:v,as:w,render:C,className:k,attributes:E}=e,N=(y||x)&&!g,S=F(Le.root,k,r&&Le[`--color-${r}`],o&&Le[`--variant-${o}`],le(Le,"--size",h),le(Le,"--full-width",l),n&&o!=="ghost"&&Le["--elevated"],b&&Le["--rounded"],_&&Le["--disabled"],a&&Le["--loading"],s&&Le["--highlighted"],N&&Le["--icon-only"]),T=j=>{if(!(j==="start"&&y||j==="end"&&x))return null;const P=F(Le.icon,j==="end"&&Le["--icon-position-end"]),B=ae(h,L=>L==="large"?5:L==="xlarge"?6:4);return i.jsx(ge,{className:P,svg:j==="start"?y:x,size:B,autoWidth:!0})};return i.jsxs(je,{disabled:_||a,className:S,attributes:z(p({},E),{"data-rs-aligner-target":!0}),type:m,onClick:f,href:u,ref:t,as:w,stopPropagation:v,render:C,children:[a&&i.jsx("div",{className:Le.loader,children:i.jsx(hr,{color:"inherit",attributes:{"aria-label":d}})}),T("start"),g&&i.jsx("span",{className:Le.text,children:g}),T("end")]})});rs.displayName="Button";const ns={root:"_root_1quhz_2","--side-all":"_--side-all_1quhz_7","--side-start":"_--side-start_1quhz_11","--side-inline":"_--side-inline_1quhz_12","--side-end":"_--side-end_1quhz_16","--side-top":"_--side-top_1quhz_21","--side-block":"_--side-block_1quhz_22","--side-bottom":"_--side-bottom_1quhz_26"},to=e=>{const{side:t="all",children:o,className:r,attributes:n}=e,s=typeof t=="string"?[t]:t,l=F(ns.root,s.map(a=>ns[`--side-${a}`]),r);return i.jsx("div",z(p({},n),{className:l,children:o}))};to.displayName="Aligner";const ss=e=>i.jsx(to,z(p({},e),{side:e.side||e.position,className:[Le.aligner,e.className]}));ss.displayName="Button.Aligner";const is=e=>{const{children:t,className:o,attributes:r}=e,n=F(Le.group,o);return i.jsx("div",z(p({},r),{className:n,role:"group",children:t}))};is.displayName="Button.Group";const Te=rs;Te.Aligner=ss,Te.Group=is;const ls=()=>i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),i.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),oo={root:"_root_1q0pg_1",close:"_close_1q0pg_9","--variant-media":"_--variant-media_1q0pg_16","--hide-close":"_--hide-close_1q0pg_17","--align-center":"_--align-center_1q0pg_26"},fr=e=>{const{children:t,align:o,onClose:r,hideCloseButton:n,variant:s,closeAriaLabel:l,className:a,attributes:d}=e,_=F(oo.root,a,s&&oo[`--variant-${s}`],o&&oo[`--align-${o}`],n&&oo["--hide-close"]),m=s==="media"?"div":Te.Aligner;return i.jsxs("div",z(p({},d),{className:_,children:[t,!n&&i.jsx(m,{className:oo.close,children:i.jsx(Te,z(p({size:"small"},s==="media"?{color:"media",variant:"faded"}:{variant:"ghost"}),{onClick:()=>r==null?void 0:r(),attributes:{"aria-label":r?l:void 0},icon:ls}))})]}))};fr.displayName="Dismissible";const ro={content:"_content_ymj03_1","content--variant-elevated":"_content--variant-elevated_ymj03_9","content--elevation-raised":"_content--elevation-raised_ymj03_16","content--variant-headless":"_content--variant-headless_ymj03_20","content--radius-small":"_content--radius-small_ymj03_24","content--has-width":"_content--has-width_ymj03_28"},as=e=>{var g,b;const h=e,{width:t,variant:o="elevated",triggerType:r="click",position:n="bottom",elevation:s,borderRadius:l}=h,a=pe(h,["width","variant","triggerType","position","elevation","borderRadius"]),d=(g=e.padding)!=null?g:o==="headless"?0:4,_=(b=e.trapFocusMode)!=null?b:r==="hover"?"content-menu":void 0,m=et({padding:d}),u=F(ro.content,!!t&&ro["content--has-width"],o&&ro[`content--variant-${o}`],s&&ro[`content--elevation-${s}`],l&&ro[`content--radius-${l}`],m.classNames);return i.jsx(ut,z(p({},a),{position:n,trapFocusMode:_,triggerType:r,width:t,contentClassName:u,contentAttributes:{style:p({},m.variables)}}))},cs=e=>{const{handleClose:t}=Lt();return i.jsx(fr,z(p({},e),{onClose:()=>t({})}))};as.displayName="Popover",cs.displayName="Popover.Dismissible";const _t=as;_t.Dismissible=cs,_t.Trigger=ut.Trigger,_t.Content=ut.Content;const it={root:"_root_44o4b_1",icon:"_icon_44o4b_22",content:"_content_44o4b_27","--rounded-corners":"_--rounded-corners_44o4b_32","--size-small":"_--size-small_44o4b_1","--size-medium":"_--size-medium_44o4b_1","--size-large":"_--size-large_44o4b_1","--color-neutral":"_--color-neutral_44o4b_74","--selected":"_--selected_44o4b_77","--highlighted":"_--highlighted_44o4b_79","--color-critical":"_--color-critical_44o4b_90","--color-primary":"_--color-primary_44o4b_106","--disabled":"_--disabled_44o4b_133",aligner:"_aligner_44o4b_154","--rounded-corners-true--m":"_--rounded-corners-true--m_44o4b_1","--rounded-corners-false--m":"_--rounded-corners-false--m_44o4b_1","--size-small--m":"_--size-small--m_44o4b_1","--size-medium--m":"_--size-medium--m_44o4b_1","--size-large--m":"_--size-large--m_44o4b_1","--rounded-corners-true--l":"_--rounded-corners-true--l_44o4b_1","--rounded-corners-false--l":"_--rounded-corners-false--l_44o4b_1","--size-small--l":"_--size-small--l_44o4b_1","--size-medium--l":"_--size-medium--l_44o4b_1","--size-large--l":"_--size-large--l_44o4b_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_44o4b_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_44o4b_1","--size-small--xl":"_--size-small--xl_44o4b_1","--size-medium--xl":"_--size-medium--xl_44o4b_1","--size-large--xl":"_--size-large--xl_44o4b_1"},ds=c.forwardRef((e,t)=>{const{icon:o,startSlot:r,endSlot:n,children:s,color:l="primary",selected:a,highlighted:d,disabled:_,onClick:m,href:u,size:h="medium",roundedCorners:g,stopPropagation:b,as:f,render:y,className:x,attributes:v}=e,w=F(it.root,x,le(it,"--size",h),le(it,"--rounded-corners",g),l&&it[`--color-${l}`],a&&it["--selected"],_&&it["--disabled"],d&&it["--highlighted"]),C=ae(h,E=>E==="large"?3:2),k=ae(h,E=>E==="large"?5:4);return i.jsx(je,{disabled:_,className:w,attributes:z(p({},v),{"data-rs-aligner-target":!0}),onClick:m,href:u,ref:t,as:f,stopPropagation:b,render:y,children:i.jsxs(H,{direction:"row",gap:C,align:"center",children:[o&&i.jsx(ge,{svg:o,className:it.icon,size:k}),!o&&r,s&&i.jsx(H.Item,{grow:!0,className:it.content,children:s}),n]})})});ds.displayName="MenuItem";const us=e=>i.jsx(to,z(p({},e),{side:e.side||"inline",className:[it.aligner,e.className]}));us.displayName="MenuItem.Aligner";const gr=ds;gr.Aligner=us;const Dc="Enter",no="ArrowUp",so="ArrowDown",io="ArrowRight",lo="ArrowLeft",Pc="Backspace",Pt=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"9 18 15 12 9 6"})}),Mo={menu:"_menu_f04ws_1",section:"_section_f04ws_5",item:"_item_f04ws_11",arrow:"_arrow_f04ws_19"},br=c.createContext(null),_s=c.createContext(!1),pr=e=>{const a=e,{children:t,position:o="bottom-start",triggerType:r="click",trapFocusMode:n="action-menu",borderRadius:s="small"}=a,l=pe(a,["children","position","triggerType","trapFocusMode","borderRadius"]);return i.jsx(_t,z(p({},l),{position:o,padding:0,trapFocusMode:n,triggerType:r,borderRadius:s,disableHideAnimation:r!=="hover",children:t}))},ms=e=>{const{children:t,attributes:o,className:r}=e,{flyout:n}=Lt(),s=c.useContext(br),[l]=pt(),{ref:a}=Ze({[l?io:lo]:()=>{var m;(m=s==null?void 0:s.current)==null||m.close()}},[s==null?void 0:s.current],{disabled:n.status==="idle",ref:o==null?void 0:o.ref}),d=F(Mo.menu,r),_=m=>{var u;m.stopPropagation(),(u=o==null?void 0:o.onClick)==null||u.call(o,m)};return i.jsx(_t.Content,{className:d,attributes:z(p({},o),{ref:a,onClick:_}),children:t})},hs=e=>{const{children:t}=e;return i.jsx("div",{className:Mo.section,role:"group",children:t})},vr=e=>{const{onClick:t}=e,{handleClose:o}=Lt(),r=c.useContext(_s),n=s=>{o&&!r&&o({closeParents:!0,reason:"item-selection"}),t&&t(s)};return i.jsx(gr,z(p({},e),{roundedCorners:!0,className:[Mo.item,e.className],attributes:p({role:"menuitem"},e.attributes),onClick:n}))},fs=e=>{const l=e,{children:t,position:o="end-top",contentGap:r=.5}=l,n=pe(l,["children","position","contentGap"]),s=c.useRef(null);return i.jsx(br.Provider,{value:s,children:i.jsx(pr,z(p({},n),{triggerType:"hover",position:o,contentGap:r,instanceRef:s,children:t}))})},Fc=e=>{const a=e,{children:t,attributes:o}=a,r=pe(a,["children","attributes"]),n=c.useContext(br),[s]=pt(),{ref:l}=Ze({[s?lo:io]:()=>{var d;(d=n==null?void 0:n.current)==null||d.open()}},[],{ref:o==null?void 0:o.ref,preventDefault:!0});return i.jsx(vr,z(p({},r),{attributes:z(p({},o),{ref:l}),endSlot:i.jsx(ge,{autoWidth:!0,svg:Pt,className:Mo.arrow}),children:t}))},gs=e=>{const r=e,{attributes:t}=r,o=pe(r,["attributes"]);return i.jsx(_s.Provider,{value:!0,children:i.jsx(_t.Trigger,{children:n=>i.jsx(Fc,z(p({},o),{attributes:p(p({},t),n)}))})})};pr.displayName="DropdownMenu",ms.displayName="DropdownMenu.Content",hs.displayName="DropdownMenu.Section",vr.displayName="DropdownMenu.Item",fs.displayName="DropdownMenu.SubMenu",gs.displayName="DropdownMenu.SubTrigger";const Ne=pr;Ne.Dismissible=_t.Dismissible,Ne.Trigger=_t.Trigger,Ne.Content=ms,Ne.Section=hs,Ne.Item=vr,Ne.SubMenu=fs,Ne.SubTrigger=gs;const bs=c.createContext({attributes:{}}),Ac=bs.Provider,ao=()=>c.useContext(bs),ot=()=>{const{attributes:e,required:t,hasError:o,disabled:r}=ao();return{attributes:e,required:t,hasError:o,disabled:r}},yr=(e,t)=>`${e}-${t||"caption"}`,ps=e=>{const{children:t,id:o,required:r,hasError:n,group:s,disabled:l,size:a}=e,d=Ke(o),_=s?"fieldset":"div",[m,u]=c.useState(!1),[h,g]=c.useState(!1),b=[m&&yr(d),h&&yr(d,"error")].filter(Boolean).join(" "),f={id:d,"aria-describedby":b},y=()=>{g(!0)},x=()=>{u(!0)};return i.jsx(_,{children:i.jsx(Ac,{value:{required:r,hasError:n,errorRef:y,helperRef:x,attributes:f,group:s,disabled:l,size:a},children:t})})};ps.displayName="FormControl";const vs={label:"_label_1v514_5",caption:"_caption_1v514_14"},ys=e=>{const{children:t,variant:o,disabled:r}=e,{attributes:n,size:s,helperRef:l,errorRef:a}=ao(),d=yr(n.id,o),_=o==="error"?"critical":"neutral-faded",m=o==="error"?a:l;return i.jsx(ne,{as:"span",variant:s==="large"?"body-3":"caption-1",color:r&&!o?"disabled":_,attributes:{id:d,role:"alert","aria-disabled":r,ref:m},className:vs.caption,children:t})},xs=e=>{const{children:t}=e,{hasError:o}=ao();return o?i.jsx(ys,{variant:"error",children:t}):null};xs.displayName="FormControl.Error";const ws=e=>{const{children:t}=e,{disabled:o}=ao();return i.jsx(ys,{disabled:o,children:t})};ws.displayName="FormControl.Helper";const Cs=e=>{const{children:t}=e,{attributes:o,required:r,group:n,disabled:s,size:l}=ao(),a=`${o.id}-label`,d=n?"legend":"label";return i.jsxs(ne,{variant:l==="large"?"body-2":"body-3",weight:"medium",className:vs.label,color:s?"disabled":void 0,"aria-disabled":s,children:[i.jsx(d,{id:a,htmlFor:n?void 0:o.id,children:t}),r&&i.jsx(ne,{color:s?"disabled":"critical",as:"span",children:"*"})]})};Cs.displayName="FormControl.Label";const Io=ps;Io.Label=Cs,Io.Helper=ws,Io.Error=xs;const Pe={root:"_root_1rtvh_1",icon:"_icon_1rtvh_23","--focused":"_--focused_1rtvh_24","--multiline":"_--multiline_1rtvh_28",input:"_input_1rtvh_31","--rounded":"_--rounded_1rtvh_36",affix:"_affix_1rtvh_39",inner:"_inner_1rtvh_50",slot:"_slot_1rtvh_89","icon--position-end":"_icon--position-end_1rtvh_102","affix--position-end":"_affix--position-end_1rtvh_103","slot--position-end":"_slot--position-end_1rtvh_104","slot--position-start":"_slot--position-start_1rtvh_108","affix--position-start":"_affix--position-start_1rtvh_119","--disabled":"_--disabled_1rtvh_144","--size-small":"_--size-small_1rtvh_1","--size-medium":"_--size-medium_1rtvh_1","--size-large":"_--size-large_1rtvh_1","--size-xlarge":"_--size-xlarge_1rtvh_1","--variant-faded":"_--variant-faded_1rtvh_202","--variant-ghost":"_--variant-ghost_1rtvh_208","--variant-headless":"_--variant-headless_1rtvh_214","--status-error":"_--status-error_1rtvh_221","--size-small--m":"_--size-small--m_1rtvh_1","--size-medium--m":"_--size-medium--m_1rtvh_1","--size-large--m":"_--size-large--m_1rtvh_1","--size-xlarge--m":"_--size-xlarge--m_1rtvh_1","--size-small--l":"_--size-small--l_1rtvh_1","--size-medium--l":"_--size-medium--l_1rtvh_1","--size-large--l":"_--size-large--l_1rtvh_1","--size-xlarge--l":"_--size-xlarge--l_1rtvh_1","--size-small--xl":"_--size-small--xl_1rtvh_1","--size-medium--xl":"_--size-medium--xl_1rtvh_1","--size-large--xl":"_--size-large--xl_1rtvh_1","--size-xlarge--xl":"_--size-xlarge--xl_1rtvh_1"},Ns=e=>{const{slot:t,icon:o,size:r,affix:n,position:s,id:l}=e;if(!o&&!t&&!n)return null;const a=c.isValidElement(t)&&t.type===c.Fragment?t.props.children:t,d=t&&c.Children.map(a,h=>i.jsx("div",{className:F(Pe.slot,Pe[`slot--position-${s}`]),children:h},"slot")),_=o&&i.jsx("label",{className:F(Pe.icon,Pe[`icon--position-${s}`]),htmlFor:l,children:i.jsx(ge,{size:ae(r,h=>h==="large"?5:h==="xlarge"?6:4),svg:o,autoWidth:!0})},"icon"),m=n&&i.jsx("span",{className:F(Pe.affix,Pe[`affix--position-${s}`]),children:n},"affix");return(s==="start"?[_,d,m]:[_,m,d]).filter(Boolean)},ks=e=>{var B;const{onChange:t,onFocus:o,onBlur:r,name:n,value:s,defaultValue:l,placeholder:a,icon:d,endIcon:_,startSlot:m,endSlot:u,startSlotPadding:h,endSlotPadding:g,prefix:b,suffix:f,size:y="medium",variant:x="outline",focused:v,multiline:w,rounded:C,className:k,attributes:E}=e,N=ot(),S=Ke(e.id),T=(N==null?void 0:N.attributes.id)||((B=e.inputAttributes)==null?void 0:B.id)||S,j=(N==null?void 0:N.disabled)||e.disabled,$=(N==null?void 0:N.hasError)||e.hasError,M=p(p({},e.inputAttributes),N==null?void 0:N.attributes),D=F(Pe.root,k,y&&le(Pe,"--size",y),$&&Pe["--status-error"],j&&Pe["--disabled"],v&&Pe["--focused"],w&&Pe["--multiline"],C&&Pe["--rounded"],x&&Pe[`--variant-${x}`]),P=L=>{t&&t({name:n,value:L.target.value,event:L})};return i.jsxs("div",z(p({},E),{style:z(p({},E==null?void 0:E.style),{"--rs-text-field-start-slot-padding":h!==void 0&&h>=0?`calc(var(--rs-unit-x1) * ${h})`:void 0,"--rs-text-field-end-slot-padding":g!==void 0&&g>=0?`calc(var(--rs-unit-x1) * ${g})`:void 0}),"data-rs-aligner-target":!0,className:D,children:[i.jsx(Ns,{position:"start",icon:d,slot:m,size:y,affix:b,id:S}),i.jsxs("div",{className:Pe.inner,children:[i.jsx("input",z(p({type:"text",autoComplete:"off"},M),{className:F(Pe.input,M.className),disabled:j,name:n,placeholder:a,value:s,defaultValue:l,onChange:P,onFocus:o||(M==null?void 0:M.onFocus),onBlur:r||(M==null?void 0:M.onBlur),id:T})),i.jsx(Ns,{position:"end",icon:_,slot:u,size:y,affix:f,id:S})]})]}))};ks.displayName="TextField";const jo=ks;jo.Aligner=to;const Vc={"item--disabled":"_item--disabled_1vi4i_1"},zs=c.createContext({}),Ss=e=>{var ye;const ue=e,{children:t,onChange:o,onInput:r,onItemSelect:n,name:s,containerRef:l,instanceRef:a,onBackspace:d,onEnter:_,active:m,onOpen:u,onClose:h,fallbackAdjustLayout:g,fallbackMinWidth:b,fallbackMinHeight:f,contentMaxHeight:y,contentZIndex:x}=ue,v=pe(ue,["children","onChange","onInput","onItemSelect","name","containerRef","instanceRef","onBackspace","onEnter","active","onOpen","onClose","fallbackAdjustLayout","fallbackMinWidth","fallbackMinHeight","contentMaxHeight","contentZIndex"]),[w,C]=c.useState(),k=ke(d),E=c.useRef(null),N=c.useRef(null),S=(ye=v.inputAttributes)==null?void 0:ye.ref,T=S&&typeof S!="string"&&"current"in S?S:N,[j,$]=c.useState(!1),M=!!c.Children.toArray(t).filter(Boolean).length,D=c.useRef(!1),P=ke(u),B=ke(h),L=ke(o),A=ke(n),W=ke(_),re=M&&(m!=null?m:j),Z=c.useCallback(()=>{D.current=!0,setTimeout(()=>{D.current=!1},100)},[]),Q=c.useCallback(()=>{var O;D.current||($(!0),(O=P.current)==null||O.call(P))},[P]),U=O=>{var Y;$(!1),(Y=B.current)==null||Y.call(B,O)},te=c.useCallback(O=>{var Y,R;(Y=L.current)==null||Y.call(L,{value:O.value,name:s}),(R=A.current)==null||R.call(A,O),Z()},[Z,L,A,s]),X=O=>{o==null||o(O),Q()},oe=O=>{var Y,R;r==null||r({value:O.currentTarget.value,name:s,event:O}),(R=(Y=v.inputAttributes)==null?void 0:Y.onInput)==null||R.call(Y,O)},$e=()=>{var O;Z(),(O=T.current)==null||O.focus()},de=c.useCallback(()=>{const O=E.current;return O?Array.from(O.querySelectorAll("[role=option]:not([disabled])")):[]},[]);Ze({[Dc]:()=>{var R;const Y=de().find(he=>he.id===w);Y==null||Y.click(),(R=W.current)==null||R.call(W)},[Pc]:()=>{var O;(O=k.current)==null||O.call(k)}},[de,W,k,w],{ref:T}),Ze({[no]:()=>{const O=de();if(O.length){const Y=O.findIndex(he=>he.id===w),R=O.at(Y-1)||O.at(-1);C(R.id)}},[so]:()=>{Q();const O=de();if(O.length){const Y=O.findIndex(he=>he.id===w),R=O.at(Y+1)||O.at(0);C(R.id)}}},[Q,de,w],{ref:T,preventDefault:!0}),fe(()=>{re&&requestAnimationFrame(()=>{var R;const Y=(R=de()[0])==null?void 0:R.id;Y&&C(Y)})},[re]);const K=c.useMemo(()=>({onItemClick:te,highlightedId:w,setHighlightedId:C}),[w,te]);return i.jsx(zs.Provider,{value:K,children:i.jsxs(Ne,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:!1,active:re,onClose:U,onOpen:Q,containerRef:l,fallbackAdjustLayout:g,fallbackMinWidth:b,fallbackMinHeight:f,contentMaxHeight:y,contentZIndex:x,disableHideAnimation:!0,instanceRef:a,children:[i.jsx(Ne.Trigger,{children:R=>{var he=R,{ref:O}=he,Y=pe(he,["ref"]);return i.jsx(jo,z(p({},v),{name:s,onChange:X,focused:re,attributes:z(p({},v.attributes),{ref:O,onClick:Y.onFocus}),inputAttributes:z(p(p({},v.inputAttributes),Y),{onFocus:J=>{var G,se,ie;(G=Y.onFocus)==null||G.call(Y),(se=v.onFocus)==null||se.call(v,J),D.current||(ie=T.current)==null||ie.select()},onInput:oe,onClick:Y.onFocus,ref:T,role:"combobox","aria-activedescendant":w,"aria-haspopup":"listbox","aria-autocomplete":"list"})}))}}),i.jsx(Ne.Content,{attributes:{onClick:$e,role:"listbox",ref:E},children:t})]})})},Es=e=>{const u=e,{value:t,data:o,onClick:r,disabled:n}=u,s=pe(u,["value","data","onClick","disabled"]),{onItemClick:l,highlightedId:a}=c.useContext(zs),d=Ke(),_=a===d,m=h=>{r==null||r(h),l({value:t,data:o})};return i.jsx(Ne.Item,z(p({},s),{className:[n&&Vc["item--disabled"],s.className],highlighted:_,disabled:n,attributes:z(p({},s.attributes),{role:"option",id:d,tabIndex:_?0:-1}),onClick:m}))};Ss.displayName="Autocomplete",Es.displayName="Autocomplete.Item";const Ts=Ss;Ts.Item=Es;const co={root:"_root_1eg8e_1",image:"_image_1eg8e_5",fallback:"_fallback_1eg8e_17","--outline":"_--outline_1eg8e_25","image--display-mode-cover":"_image--display-mode-cover_1eg8e_37","image--display-mode-contain":"_image--display-mode-contain_1eg8e_41"},xr=e=>{const{src:t,alt:o,width:r,maxWidth:n,height:s,aspectRatio:l,onLoad:a,onError:d,fallback:_,outline:m,displayMode:u="cover",borderRadius:h,className:g,attributes:b,imageAttributes:f,renderImage:y}=e,[x,v]=c.useState("loading"),w=et({radius:h,width:r,height:s,maxWidth:n,aspectRatio:l}),C=F(co.root,w.classNames,m&&co["--outline"],g),k=F([co.image,u&&co[`image--display-mode-${u}`]]),E=(x==="error"||!t)&&!!_,N=p(p({},b==null?void 0:b.style),w.variables),S=M=>{var D;v("success"),a==null||a(M),(D=f==null?void 0:f.onLoad)==null||D.call(f,M)},T=M=>{var D;v("error"),d==null||d(M),(D=f==null?void 0:f.onError)==null||D.call(f,M)};if(c.useEffect(()=>{v("loading")},[t]),E){if(typeof _=="string"){const M=z(p({},b),{src:_!=null?_:"",alt:o!=null?o:"",role:o?void 0:"presentation",className:C,style:N});return y?y(M):i.jsx("img",p({},M))}return i.jsx("div",z(p({},b),{className:F([co.fallback,C]),style:N,children:_}))}const j=z(p(p({},b),f),{src:t!=null?t:"",alt:o!=null?o:"",role:o?void 0:"presentation",onLoad:S,onError:T,className:m?k:F([k,C]),style:N}),$=y?y(j):i.jsx("img",p({},j));return m?i.jsx("div",z(p({},b),{className:C,style:N,children:$})):$};xr.displayName="Image";const wr={root:"_root_1de3p_1","--variant-faded":"_--variant-faded_1de3p_13","--color-neutral":"_--color-neutral_1de3p_14","--color-critical":"_--color-critical_1de3p_18","--color-positive":"_--color-positive_1de3p_22","--color-warning":"_--color-warning_1de3p_26","--color-primary":"_--color-primary_1de3p_30"},$s=e=>{const{color:t="neutral",variant:o,src:r,size:n=12,squared:s,initials:l,icon:a,className:d,renderImage:_,imageAttributes:m,attributes:u}=e,h=e.alt||(m==null?void 0:m.alt),g=s?ae(n,y=>y>=24?"large":y>=12?"medium":"small"):"circular";if(r)return i.jsx(xr,{src:r,alt:h,renderImage:_,outline:!0,borderRadius:g,width:n,aspectRatio:1,className:d,attributes:u,imageAttributes:m});const b=et({height:n}),f=F(wr.root,d,b==null?void 0:b.classNames,t&&wr[`--color-${t}`],o&&wr[`--variant-${o}`]);return i.jsx(H,{borderRadius:g,attributes:z(p({},u),{style:p({},b==null?void 0:b.variables)}),backgroundColor:o==="faded"?`${t}-${o}`:t,className:f,children:a?i.jsx(ge,{svg:a,size:ae(n,y=>Math.ceil(y*.4))}):l})};$s.displayName="Avatar";const Fe={root:"_root_4et1e_1","--empty":"_--empty_4et1e_24",icon:"_icon_4et1e_32",dismiss:"_dismiss_4et1e_38","--highlighted":"_--highlighted_4et1e_44","--actionable":"_--actionable_4et1e_49","--variant-faded":"_--variant-faded_4et1e_1","--variant-outline":"_--variant-outline_4et1e_1","--color-positive":"_--color-positive_4et1e_68","--color-critical":"_--color-critical_4et1e_87","--color-warning":"_--color-warning_4et1e_106","--color-primary":"_--color-primary_4et1e_125","--size-small":"_--size-small_4et1e_1","--size-medium":"_--size-medium_4et1e_1","--size-large":"_--size-large_4et1e_1","--rounded":"_--rounded_4et1e_170","--hidden":"_--hidden_4et1e_174",container:"_container_4et1e_181","--container-overlap":"_--container-overlap_4et1e_207","--container-position-top-end":"_--container-position-top-end_4et1e_211","--container-position-bottom-end":"_--container-position-bottom-end_4et1e_223"},Ms=c.forwardRef((e,t)=>{const{children:o,color:r,rounded:n,size:s="medium",icon:l,endIcon:a,variant:d,hidden:_,highlighted:m,href:u,onClick:h,onDismiss:g,dismissAriaLabel:b,className:f,attributes:y,as:x}=e,v=!!(h||u),w=s==="small"?3:4,C=!o&&!l&&!a,k=F(Fe.root,f,n&&Fe["--rounded"],_&&Fe["--hidden"],s&&Fe[`--size-${s}`],r&&Fe[`--color-${r}`],d&&Fe[`--variant-${d}`],v&&Fe["--actionable"],m&&Fe["--highlighted"],C&&Fe["--empty"]),E=N=>{N.stopPropagation(),g==null||g()};return i.jsxs(je,{onClick:h,href:u,className:k,attributes:y,ref:t,as:x,touchHitbox:v,children:[l&&i.jsx(ge,{svg:l,autoWidth:!0,size:w,className:Fe.icon}),o&&i.jsx(ne,{variant:s==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":_?"true":void 0},children:o}),a&&i.jsx(ge,{svg:a,autoWidth:!0,size:w,className:Fe.icon}),g&&i.jsx(je,{onClick:E,className:Fe.dismiss,as:"span",attributes:{"aria-label":b},touchHitbox:!0,children:i.jsx(ge,{svg:ls,size:w})})]})});Ms.displayName="Badge";const Is=e=>{const{children:t,position:o="top-end",overlap:r,className:n,attributes:s}=e,l=F(Fe.container,n,r&&Fe["--container-overlap"],o&&Fe[`--container-position-${o}`]);return i.jsx("div",z(p({},s),{className:l,children:t}))};Is.displayName="Badge.Container";const js=Ms;js.Container=Is;const Ls=()=>i.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z",fill:"currentColor"}),i.jsx("path",{d:"M12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9Z",fill:"currentColor"}),i.jsx("path",{d:"M4 9C4.55228 9 5 8.55228 5 8C5 7.44772 4.55228 7 4 7C3.44772 7 3 7.44772 3 8C3 8.55228 3.44772 9 4 9Z",fill:"currentColor"})]}),Ds=e=>{const{children:t,separator:o,color:r,defaultVisibleItems:n,expandAriaLabel:s,disableExpand:l,ariaLabel:a,className:d,attributes:_}=e,m=n&&n>=2?n:null,[u,h]=c.useState(!1),g=F(d),b=c.Children.count(t);let f=0;const y=()=>{h(!0)};return i.jsx("nav",z(p({},_),{"aria-label":a||(_==null?void 0:_["aria-label"]),className:g,children:i.jsx(H,{as:"ol",direction:"row",gap:2,align:"center",children:c.Children.map(t,(x,v)=>{if(!x)return null;const w=b-(m||0),C=f===0,k=f>w,E=!m||C||k||u,N=f===w;f+=1;let S=null;return E?S=x:N&&(S=l?i.jsx(ge,{svg:Ls,size:4}):i.jsx(Te.Aligner,{children:i.jsx(Te,{variant:"ghost",size:"small",icon:Ls,onClick:y,attributes:{"aria-label":s}})})),S===null?null:i.jsxs(H,{as:"li",gap:2,direction:"row",align:"center",children:[v>0&&(E||N)&&i.jsx(ne,{color:"neutral-faded",children:o||i.jsx(ge,{svg:Pt,size:3})}),i.jsx(ne,{variant:"body-3",color:r==="primary"?"primary":"neutral-faded",children:S})]},v)})})}))};Ds.displayName="Breadcrumbs";const uo={root:"_root_x1qvh_1","--color-primary":"_--color-primary_x1qvh_6","--color-critical":"_--color-critical_x1qvh_10","--color-positive":"_--color-positive_x1qvh_14","--color-warning":"_--color-warning_x1qvh_18","--color-inherit":"_--color-inherit_x1qvh_22","--variant-plain":"_--variant-plain_x1qvh_27","--disabled":"_--disabled_x1qvh_32","--variant-underline":"_--variant-underline_x1qvh_39","--with-icon":"_--with-icon_x1qvh_57"},Cr=c.forwardRef((e,t)=>{const{icon:o,disabled:r,href:n,color:s="primary",variant:l="underline",className:a,children:d,attributes:_,type:m,onClick:u,stopPropagation:h,render:g}=e,b=F(uo.root,a,r&&uo["--disabled"],l&&uo[`--variant-${l}`],s&&uo[`--color-${s}`],o&&uo["--with-icon"]);return i.jsxs(je,{href:n,disabled:r,className:b,attributes:_,type:m,onClick:u,ref:t,stopPropagation:h,render:g,children:[o&&i.jsx(ge,{svg:o}),d]})});Cr.displayName="Link";const Ps=e=>{const{children:t,onClick:o,href:r,icon:n,disabled:s}=e;return!r&&!o&&!s?i.jsx(ne,{variant:"body-3",weight:"medium",color:"neutral",children:t}):i.jsx(Cr,{onClick:o,href:r,icon:n,disabled:s,variant:"plain",color:"inherit",children:t})};Ps.displayName="Breadcrumbs.Item";const Fs=Ds;Fs.Item=Ps;const As=7,Vs=1,lt=e=>{const{date:t}=e;return[t.getFullYear(),(t.getMonth()+1).toString().padStart(2,"0"),t.getDate().toString().padStart(2,"0")].join("-")},Nr=e=>{const{date:t,firstWeekDay:o=Vs}=e,r=t.getDay();return r<o?As-r-o:r-o},Bc=e=>{const{firstWeekDay:t=Vs,renderWeekDay:o}=e,r=new Date(2021,1,t),n=[];for(let s=t;s<t+As;s++){const l=o?o({weekDay:s,date:r}):r.toLocaleDateString("en-US",{weekday:"short"});n.push(l.slice(0,2)),r.setDate(r.getDate()+1)}return n},Hc=e=>{const{renderMonthLabel:t}=e;return new Array(12).fill(null).map((o,r)=>{const n=new Date(0,r);return t?t({month:r,date:n}):n.toLocaleString("default",{month:"short"})})},Oc=e=>{const{date:t,firstWeekDay:o}=e,r=t.getMonth(),n=t.getFullYear(),s=[],l=new Date(n,r,1),a=Nr({date:l,firstWeekDay:o});for(a!==0&&s.push(new Array(a).fill(null));r===l.getMonth();)(Nr({date:l,firstWeekDay:o})===0||!s.length)&&s.push([]),s[s.length-1].push(new Date(l)),l.setDate(l.getDate()+1);const d=Nr({date:l,firstWeekDay:o});return d!==0&&s[s.length-1].push(...new Array(7-d).fill(null)),s},Bs=e=>(e==null?void 0:e.querySelectorAll("[data-rs-date]"))||[],kr=(e,t)=>{const o=new Date(e);return o.setMonth(t),o},Wc=e=>kr(e,e.getMonth()-1),Hs=e=>kr(e,e.getMonth()+1),Os=(e,t)=>{const o=new Date(e);return o.setFullYear(t),o},qc=e=>Os(e,e.getFullYear()-1),Uc=e=>Os(e,e.getFullYear()+1),Yc=e=>{const{date:t,min:o,max:r}=e,n=t.getMonth(),s=t.getFullYear(),l=new Date(s,n,0),a=Hs(t);return a.setDate(0),{isFirstMonth:o&&o>l,isLastMonth:r&&r<a}},zr=(e,t)=>e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),Kc=e=>{const{date:t,startValue:o,lastFocusedDate:r}=e,n=new Date,s=lt({date:t}),l=lt({date:n}),a=o&<({date:o}),d=r&<({date:r});return r&&zr(t,r)?s===d:o&&zr(t,o)?s===a:zr(t,n)?s===l:!0},Gc={root:"_root_p9kz2_1"},Lo=e=>{const{children:t}=e;return i.jsx("div",{className:Gc.root,children:t})};Lo.displayName="HiddenVisually";const Do=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"15 18 9 12 15 6"})}),Oe={selection:"_selection_1iezs_1",weekday:"_weekday_1iezs_6",control:"_control_1iezs_12",cell:"_cell_1iezs_16","cell-button":"_cell-button_1iezs_21","--active":"_--active_1iezs_26","--selection-range":"_--selection-range_1iezs_31","--selection-start":"_--selection-start_1iezs_37","--selection-end":"_--selection-end_1iezs_47"},Ws=e=>{const{selectionMode:t,onMonthTitleClick:o,monthTitleRef:r,monthDate:n,renderSelectedMonthLabel:s,hidePrevious:l,hideNext:a,onNextClick:d,onPreviousClick:_,monthSelectionAriaLabel:m="Select a month",previousMonthAriaLabel:u="Previous month",previousYearAriaLabel:h="Previous year",nextMonthAriaLabel:g="Next month",nextYearAriaLabel:b="Next year"}=e,f=c.useRef(null),y=c.useRef(null);return c.useEffect(()=>{if(!l||document.activeElement!==f.current)return;const x=y.current||(r==null?void 0:r.current);tt(()=>{x==null||x.focus()})},[l,r]),c.useEffect(()=>{if(!a||document.activeElement!==y.current)return;const x=f.current||(r==null?void 0:r.current);tt(()=>{x==null||x.focus()})},[a,r]),i.jsxs(H,{direction:"row",gap:2,align:"center",children:[i.jsx(Nt,{visibility:!0,hide:l,children:i.jsx("div",{className:Oe.control,children:i.jsx(Te,{variant:"ghost",icon:Do,onClick:_,attributes:{ref:f,"aria-label":t==="date"?u:h}})})}),i.jsxs(H.Item,{grow:!0,children:[t==="date"&&i.jsxs(Te,{fullWidth:!0,variant:"ghost",onClick:o,attributes:{ref:r},children:[s?s({date:n}):n.toLocaleDateString("en-US",{month:"long",year:"numeric"}),i.jsx(Lo,{children:m})]}),t==="month"&&i.jsx(ne,{align:"center",weight:"medium",children:n.toLocaleDateString("en-US",{year:"numeric"})})]}),i.jsx(Nt,{visibility:!0,hide:a,children:i.jsx("div",{className:Oe.control,children:i.jsx(Te,{variant:"ghost",icon:Pt,onClick:d,attributes:{ref:y,"aria-label":t==="date"?g:b}})})})]})};Ws.displayName="CalendarControls";const qs=e=>{const{date:t,isoDate:o,startValue:r,endValue:n,disabled:s,focusable:l,onChange:a,range:d,hoveredDate:_,onDateHover:m,onDateHoverEnd:u,onDateFocus:h,selectedDates:g,disabledDates:b,renderAriaLabel:f,renderSlot:y}=e;if(!t)return i.jsx("td",{className:Oe.cell,"aria-hidden":"true"});const x=r&<({date:r}),v=n&<({date:n}),w=!!(o&&x&&o===x),C=!!(o&&v&&o===v),k=!!(o&&x&&o>x),E=!!(o&&v&&o<v),N=!!(_&&!n&&_>t),S=!!(g!=null&&g.some(L=>lt({date:L})===o)),T=s||(b==null?void 0:b.some(L=>lt({date:L})===o));let j;switch(!0){case(k&&N):case(k&&E):j="range";break;case(w&&(!d||C)):case S:j="standalone";break;case w:j="start";break;case C:j="end";break}const $=F([Oe.cell,j&&Oe["--active"],j&&Oe[`--selection-${j}`]]),M=()=>{if(!d){a==null||a({value:t});return}const L=r&&n,A=!r&&!n,W=r&&t<r,re=L||A||W,Z=re?t:r,Q=re?null:t;a==null||a({value:{start:Z,end:Q}})},D=()=>{m(t)},P=()=>{u(t)},B=()=>{D(),h(t)};return i.jsx("td",{className:$,role:T?"presentation":"gridcell",children:i.jsxs(je,{fullWidth:!0,insetFocus:!0,className:Oe["cell-button"],disabled:T,onClick:M,attributes:{role:"checkbox",tabIndex:l?0:-1,"aria-hidden":T,"aria-label":f?f({date:t}):t.toLocaleDateString("en-us",{month:"long",day:"numeric",weekday:"long"}),"aria-checked":!!j,"data-rs-date":lt({date:t}),onMouseEnter:D,onMouseLeave:P,onFocus:B,onBlur:P},children:[t.getDate(),y==null?void 0:y({date:t,selected:!!(j&&j!=="range")})]})})};qs.displayName="CalendarDate";const Us=e=>{const{date:t,value:o,onChange:r,min:n,max:s,range:l,firstWeekDay:a,selectedDates:d,disabledDates:_,hoveredDate:m,onDateHover:u,onDateHoverEnd:h,renderWeekDay:g,renderDateAriaLabel:b,renderDateSlot:f}=e;let y=!1;const[x,v]=c.useState(),w=t.getMonth(),C=Oc({date:t,firstWeekDay:a}),k=Bc({firstWeekDay:a,renderWeekDay:g});return i.jsxs("table",{className:Oe.selection,role:"grid",children:[i.jsx("thead",{"aria-hidden":"true",children:i.jsx("tr",{children:k.map(E=>i.jsx("th",{className:Oe.weekday,scope:"col",children:E},E))})}),i.jsx("tbody",{children:C.map(E=>{var S;const N=[w,(S=E[0])==null?void 0:S.getDate()].filter(Boolean).join("-");return i.jsx("tr",{className:Oe.row,children:E.map((T,j)=>{const $=!!T&&(n&&T<n||s&&T>s),M=o&&"start"in o?o.start:o,D=o&&"end"in o?o.end:o,P=T&<({date:T}),B=$?!1:!y&&!!T&&Kc({date:T,lastFocusedDate:x,startValue:M});return B&&(y=!0),i.jsx(qs,{date:T,isoDate:P,disabled:$,range:l,focusable:B,startValue:M,endValue:D,onChange:r,hoveredDate:m,onDateHover:u,onDateHoverEnd:h,onDateFocus:v,renderAriaLabel:b,selectedDates:d,disabledDates:_,renderSlot:f},j)})},N)})})]})};Us.displayName="CalendarMonth";const Sr=3,Ys=e=>{const{renderMonthLabel:t,renderMonthAriaLabel:o,monthDate:r,min:n,max:s,onMonthClick:l}=e,a=c.useRef(null),d=Hc({renderMonthLabel:t}),_=[];for(let m=0;m<d.length;m+=Sr){const u=d.slice(m,m+Sr);_.push(u)}return c.useEffect(()=>{var u;const m=(u=a.current)==null?void 0:u.querySelector('[tabIndex="0"]');tt(()=>{m==null||m.focus()})},[]),i.jsx("table",{ref:a,role:"grid",className:Oe.selection,children:i.jsx("tbody",{children:_.map((m,u)=>i.jsx("tr",{className:Oe.row,children:m.map((h,g)=>{const b=u*Sr+g,f=new Date(r.getFullYear(),b),y=n&&n.getFullYear()>=f.getFullYear()&&n.getMonth()>f.getMonth(),v=s&&s.getFullYear()<=f.getFullYear()&&s.getMonth()<f.getMonth()||y;return i.jsx("td",{role:v?"presentation":"gridcell",className:Oe.cell,children:i.jsx(je,{fullWidth:!0,insetFocus:!0,className:Oe["cell-button"],disabled:v,onClick:()=>l(b),attributes:{tabIndex:b===r.getMonth()?0:-1,"aria-hidden":v,"aria-label":o?o({month:b}):h,"data-rs-date":`${r.getFullYear()}-${(b+1).toString().padStart(2,"0")}`},children:h})},h)})},u))})})};Ys.displayName="CalendarYear";const Xc=e=>{const{rootRef:t,changeToNextMonth:o,changeToPreviousMonth:r,monthDate:n,verticalDelta:s,min:l,max:a}=e,d=c.useRef(0),_=c.useCallback(m=>{const{delta:u,onMonthChange:h}=m,g=document.activeElement;if(!g)return;const b=Bs(t.current),f=Array.from(b),x=f.findIndex(T=>T===g)+u,v=f[x],w=g.getAttribute("data-rs-date");if(!w)return;const[C,k,E]=w==null?void 0:w.split("-").map(Number);let N;if(E?N=new Date(C,k-1,E+u):u>0?N=new Date(C,k-1+u,1):N=new Date(C,k-1+u+1,0),!(l&&N<l||a&&N>a)){if(v){v.focus();return}d.current=x<0?x:x-(f.length-1),h()}},[t,l,a]);c.useEffect(()=>{const m=d.current;if(m===0)return;const u=Bs(t.current),h=m<0?u.length+m:m-1,g=u[h];g&&g.focus(),d.current=0},[n,t]),Ze({[lo]:()=>_({delta:-1,onMonthChange:r}),[io]:()=>_({delta:1,onMonthChange:o}),[no]:()=>_({delta:-s,onMonthChange:r}),[so]:()=>_({delta:s,onMonthChange:o})},[o,r,_,s],{ref:t,preventDefault:!0})},Po=e=>{const{value:t,onChange:o,defaultMonth:r,month:n,onMonthChange:s,min:l,max:a,range:d,firstWeekDay:_,selectedDates:m,disabledDates:u,monthsToRender:h=1,renderMonthLabel:g,renderSelectedMonthLabel:b,renderWeekDay:f,previousMonthAriaLabel:y,previousYearAriaLabel:x,nextMonthAriaLabel:v,nextYearAriaLabel:w,monthSelectionAriaLabel:C,renderMonthAriaLabel:k,renderDateAriaLabel:E,renderDateSlot:N}=e,[S,T]=c.useState("date"),[j,$]=c.useState(n||r||new Date),[M,D]=c.useState(null),P=c.useRef(null),B=c.useRef(S),L=Yc({date:j,min:l,max:a}),A=c.useRef(null),W=()=>{if(S==="month"){const oe=qc(j);s==null||s({date:oe}),n===void 0&&$(oe);return}const X=Wc(j);s==null||s({date:X}),n===void 0&&$(X)},re=()=>{if(S==="month"){const oe=Uc(j);s==null||s({date:oe}),n===void 0&&$(oe);return}const X=Hs(j);s==null||s({date:X}),n===void 0&&$(X)},Z=()=>{T("month")},Q=X=>{const oe=kr(j,X);s==null||s({date:oe}),n===void 0&&$(oe),T("date")},U=X=>{D(X)},te=X=>{M&&+M==+X&&D(null)};return c.useEffect(()=>{S==="date"&&S!==B.current&&tt(()=>{var X;(X=P.current)==null||X.focus()}),B.current=S},[S]),c.useEffect(()=>{n&&$(n)},[n]),Xc({monthDate:j,rootRef:A,changeToNextMonth:re,changeToPreviousMonth:W,verticalDelta:S==="date"?7:3,min:l,max:a}),i.jsxs(H,{gap:2,children:[i.jsx(H,{direction:"row",gap:4,children:Array.from({length:S==="date"?h:1}).map((X,oe)=>{const $e=L.isFirstMonth||h>0&&oe>0,de=L.isLastMonth||S==="date"&&h>0&&oe<h-1,K=new Date(j);return K.setMonth(K.getMonth()+oe),i.jsx(H.Item,{grow:!0,children:i.jsx(Ws,{renderSelectedMonthLabel:b,monthDate:K,selectionMode:S,hidePrevious:$e,hideNext:de,monthTitleRef:oe===0?P:void 0,onMonthTitleClick:Z,onNextClick:re,onPreviousClick:W,previousMonthAriaLabel:y,previousYearAriaLabel:x,nextMonthAriaLabel:v,nextYearAriaLabel:w,monthSelectionAriaLabel:C,monthsToRender:h})},oe)})}),i.jsxs(H,{direction:"row",gap:4,attributes:{ref:A},children:[S==="date"&&Array.from({length:h}).map((X,oe)=>{const $e=new Date(j);return $e.setMonth($e.getMonth()+oe),i.jsx(H.Item,{grow:!0,children:i.jsx(Us,{date:$e,value:t,onChange:o,min:l,max:a,range:d,firstWeekDay:_,hoveredDate:M,selectedDates:m,disabledDates:u,onDateHover:U,onDateHoverEnd:te,renderWeekDay:f,renderDateAriaLabel:E,renderDateSlot:N})},oe)}),S==="month"&&i.jsx(Ys,{monthDate:j,onMonthClick:Q,renderMonthLabel:g,renderMonthAriaLabel:k,min:l,max:a})]})]})};Po.displayName="CalendarControlled";const Ks=e=>{const a=e,{onChange:t,defaultValue:o,range:r}=a,n=pe(a,["onChange","defaultValue","range"]),[s,l]=c.useState(o||null);return r?i.jsx(Po,z(p({range:!0},n),{value:s,onChange:d=>{l(d.value),t==null||t(d)}})):i.jsx(Po,z(p({},n),{value:s,onChange:d=>{l(d.value),t==null||t(d)}}))};Ks.displayName="CalendarUncontrolled";const Gs=e=>e.value!==void 0?i.jsx(Po,p({},e)):i.jsx(Ks,p({},e));Gs.displayName="Calendar";const Fo={root:"_root_158rr_1","--selected":"_--selected_158rr_15","--elevated":"_--elevated_158rr_21","--actionable":"_--actionable_158rr_26"},Xs=c.forwardRef((e,t)=>{const{padding:o=4}=e,{selected:r,elevated:n,bleed:s,height:l,onClick:a,href:d,children:_,className:m,attributes:u,as:h="div"}=e,g=!!d||!!a,b=et({radius:"medium",bleed:s,height:l,padding:o}),f=F(Fo.root,b.classNames,g&&Fo["--actionable"],n&&Fo["--elevated"],r&&Fo["--selected"],m),y=p(p({},u==null?void 0:u.style),b.variables);return g?i.jsx(je,{className:f,attributes:z(p({},u),{style:y}),href:d,as:h,onClick:a,ref:t,children:_}):i.jsx(h,z(p({},u),{onClick:a,href:d,ref:t,className:f,style:y,children:_}))});Xs.displayName="Card";const mt={root:"_root_k04za_1",control:"_control_k04za_9","--control-prev":"_--control-prev_k04za_21","--control-next":"_--control-next_k04za_25","--control-visible":"_--control-visible_k04za_29",scroll:"_scroll_k04za_34",item:"_item_k04za_61","--control-rendered":"_--control-rendered_k04za_73","--bleed":"_--bleed_k04za_79","--bleed-true--m":"_--bleed-true--m_k04za_1","--bleed-false--m":"_--bleed-false--m_k04za_1","--bleed-true--l":"_--bleed-true--l_k04za_1","--bleed-false--l":"_--bleed-false--l_k04za_1","--bleed-true--xl":"_--bleed-true--xl_k04za_1","--bleed-false--xl":"_--bleed-false--xl_k04za_1"},Er=c.forwardRef((e,t)=>{const{type:o,scrollElRef:r,oppositeControlElRef:n,scrollPosition:s,onClick:l,isRTL:a,mounted:d}=e,[_,m]=c.useState(!1),[u,h]=c.useState(!1),g=o==="forward",b=o===(a?"back":"forward"),f=F(mt.control,b?mt["--control-next"]:mt["--control-prev"],_&&mt["--control-visible"],u&&mt["--control-rendered"]);return fe(()=>{var E;const y=r.current;if(!y||!d)return;let x;const v=Math.abs(s),w=v<=0,C=v+y.clientWidth>=y.scrollWidth-1;return(g?C:w)?(m(!1),x=setTimeout(()=>h(!1),1500),(E=n.current)==null||E.focus()):(h(!0),m(!0)),()=>{x&&clearTimeout(x)}},[s,r,d,g]),i.jsx("div",{className:f,children:i.jsx(Te,{size:"small",onClick:l,icon:b?Pt:Do,rounded:!0,variant:"outline",elevated:!0,attributes:{"aria-disabled":!_,"aria-hidden":!0},ref:t})})});Er.displayName="CarouselControl";const Zs=e=>{const{children:t,gap:o=3,visibleItems:r,bleed:n,navigationDisplay:s,onChange:l,onScroll:a,instanceRef:d,className:_,attributes:m}=e,u=c.useRef(0),h=c.useRef([]),[g,b]=c.useState(!1),[f,y]=c.useState(0),[x]=pt(),v=c.useRef(null),w=c.useRef(null),C=c.useRef(null),k={};typeof n=="object"&&Object.entries(n).forEach(([L,A])=>{k[L]=typeof A=="number"&&A>0});const E=F(mt.root,_,...le(mt,"--bleed",typeof n=="number"?!0:k)),N=(L,A)=>{h.current[A]=L},S=Ro(L=>{const A=L.target,W=j();y(A.scrollLeft),a==null||a(L),u.current!==W&&(l==null||l({index:W})),u.current=W}),T=()=>{const A=getComputedStyle(v.current).gap.split(" ")[0];return Number(A.replace("px",""))},j=()=>{let L=0,A=0;const W=v.current;if(!W)return L;const re=x?-W.scrollLeft:W.scrollLeft,Z=T();return h.current.some((Q,U)=>Q?A+Q.clientWidth/2>=re?(L=U,!0):(A+=(Q==null?void 0:Q.clientWidth)+Z,!1):!1),L},$=L=>{const A=v.current,W=h.current[L];W&&A.scrollTo({left:x?W.offsetLeft-(A.clientWidth-W.clientWidth):W.offsetLeft,top:0,behavior:"smooth"})},M=()=>{const L=v.current;L.scrollBy({left:L.clientWidth+T(),top:0,behavior:"smooth"})},D=()=>{const L=v.current;L.scrollBy({left:-L.clientWidth-T(),top:0,behavior:"smooth"})},P=x?M:D,B=x?D:M;return c.useImperativeHandle(d,()=>({navigateBack:P,navigateForward:B,navigateTo:$})),fe(()=>{b(!0)},[]),i.jsxs("section",z(p({},m),{className:E,style:p(p(p({},q("--rs-carousel-items",r)),q("--rs-carousel-bleed",n)),m==null?void 0:m.style),children:[s!=="hidden"&&i.jsxs(i.Fragment,{children:[i.jsx(Er,{isRTL:x,type:"back",ref:w,oppositeControlElRef:C,scrollElRef:v,scrollPosition:f,onClick:P,mounted:g}),i.jsx(Er,{isRTL:x,type:"forward",ref:C,oppositeControlElRef:w,scrollElRef:v,scrollPosition:f,onClick:B,mounted:g})]}),i.jsx(H,{as:"ul",direction:"row",wrap:!1,gap:o,className:mt.scroll,attributes:{ref:v,onScroll:S},children:c.Children.map(t,(L,A)=>i.jsx(H.Item,{className:mt.item,as:"li",attributes:{ref:W=>N(W,A)},children:L}))})]}))};Zs.displayName="Carousel";const Js=c.createContext(null),Qs=()=>c.useContext(Js),Tr=e=>{const{onChange:t,name:o,disabled:r,value:n,children:s,hasError:l}=e,a=d=>{const{event:_,value:m,checked:u}=d;if(!m)return;let h=[...n];u?h.push(m):h=h.filter(g=>g!==m),t&&t({name:o,value:h,event:_})};return i.jsx(Js.Provider,{value:{onChange:a,disabled:r,value:n,name:o,hasError:l},children:s})};Tr.displayName="CheckboxGroupControlled";const Rs=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=c.useState(t||[]),s=l=>{l.value&&(n(l.value),o&&o(l))};return i.jsx(Tr,z(p({},e),{value:r,defaultValue:void 0,onChange:s}))};Rs.displayName="CheckboxGroupUncontrolled";const ei=e=>{const{value:t}=e;return t!==void 0?i.jsx(Tr,p({},e)):i.jsx(Rs,p({},e))};ei.displayName="CheckboxGroup";const ti=c.createContext(null),oi=()=>c.useContext(ti),$r=e=>{const{onChange:t,name:o,disabled:r,value:n,children:s,hasError:l}=e,a=({event:d,value:_})=>{_&&t&&t({name:o,value:_,event:d})};return i.jsx(ti.Provider,{value:{onChange:a,disabled:r,value:n,name:o,hasError:l},children:s})};$r.displayName="RadioGroupControlled";const ri=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=c.useState(t||null),s=l=>{l.value&&(n(l.value),o&&o(l))};return i.jsx($r,z(p({},e),{value:r,defaultValue:void 0,onChange:s}))};ri.displayName="RadioGroupUncontrolled";const ni=e=>{const{value:t}=e;return t!==void 0?i.jsx($r,p({},e)):i.jsx(ri,p({},e))};ni.displayName="RadioGroup";const Zc={root:"_root_1feer_1"},_o=e=>{var x,v,w,C,k,E,N;const{type:t,value:o,className:r,onBlur:n,onFocus:s,onChange:l,attributes:a}=e,d=F(Zc.root,r),_=Qs(),m=oi(),u=ot(),h=(v=(x=_==null?void 0:_.name)!=null?x:m==null?void 0:m.name)!=null?v:e.name,g=(k=(C=(w=u==null?void 0:u.disabled)!=null?w:e.disabled)!=null?C:_==null?void 0:_.disabled)!=null?k:m==null?void 0:m.disabled,b=o&&((N=(E=_==null?void 0:_.value)==null?void 0:E.includes(o))!=null?N:(m==null?void 0:m.value)===o)||e.checked,f=_?void 0:e.defaultChecked,y=S=>{if(!h)return;const{checked:T}=S.target,j={name:h,value:o,checked:T,event:S};l&&l(j),_!=null&&_.onChange&&_.onChange(j),m!=null&&m.onChange&&m.onChange(j)};return i.jsx("input",z(p({},a),{className:d,type:t,name:h,value:o,checked:b,defaultChecked:f,disabled:g,onChange:y,onFocus:s||(a==null?void 0:a.onFocus),onBlur:n||(a==null?void 0:a.onBlur),"data-rs-hidden-input":!0}))};_o.displayName="HiddenInput";const Mr=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"20 6 9 17 4 12"})}),yt={root:"_root_ykdxc_12",decorator:"_decorator_ykdxc_23",field:"_field_ykdxc_28","--size-small":"_--size-small_ykdxc_1","--size-medium":"_--size-medium_ykdxc_1","--size-large":"_--size-large_ykdxc_1",icon:"_icon_ykdxc_75",input:"_input_ykdxc_85","--error":"_--error_ykdxc_92","--disabled":"_--disabled_ykdxc_114","--size-small--m":"_--size-small--m_ykdxc_1","--size-medium--m":"_--size-medium--m_ykdxc_1","--size-large--m":"_--size-large--m_ykdxc_1","--size-small--l":"_--size-small--l_ykdxc_1","--size-medium--l":"_--size-medium--l_ykdxc_1","--size-large--l":"_--size-large--l_ykdxc_1","--size-small--xl":"_--size-small--xl_ykdxc_1","--size-medium--xl":"_--size-medium--xl_ykdxc_1","--size-large--xl":"_--size-large--xl_ykdxc_1"},si=e=>{var C;const{children:t,value:o,onChange:r,onFocus:n,onBlur:s,indeterminate:l,size:a="medium",className:d,attributes:_,inputAttributes:m}=e,u=Qs(),h=ot(),g=(h==null?void 0:h.hasError)||e.hasError||(u==null?void 0:u.hasError),b=(h==null?void 0:h.disabled)||e.disabled||(u==null?void 0:u.disabled),f=u?(C=u.value)==null?void 0:C.includes(o):e.checked,y=u?void 0:e.defaultChecked,x=u?u.name:e.name,v=c.useRef(null),w=F(yt.root,d,a&&g&&yt["--error"],b&&yt["--disabled"],a&&le(yt,"--size",a));return fe(()=>{v.current.indeterminate=l||!1},[l,f]),i.jsxs("label",z(p({},_),{className:w,children:[i.jsxs("span",{className:yt.field,children:[i.jsx(_o,{className:yt.input,type:"checkbox",checked:f,defaultChecked:y,name:x,disabled:b,value:o,onChange:r,onFocus:n,onBlur:s,attributes:z(p({},m),{ref:v})}),i.jsx("div",{className:yt.decorator,children:i.jsx(ge,{svg:Mr,className:yt.icon,size:ae(a,k=>k==="large"?5:k==="small"?3:4)})})]}),t&&i.jsx(ne,{as:"span",variant:ae(a,k=>k==="large"?"body-2":k==="small"?"caption-1":"body-3"),children:t})]}))};si.displayName="Checkbox";const Jc={root:"_root_th78q_1"},ii=e=>{const u=e,{position:t="end-top",onOpen:o,onClose:r}=u,n=pe(u,["position","onOpen","onClose"]),[s,l]=c.useState(),a=c.useRef(null),{lockScroll:d,unlockScroll:_}=sr({originRef:a}),m=ke(o);return c.useEffect(()=>{const h=a.current;if(!h)return;const g=b=>{var f;b.preventDefault(),l({x:b.clientX,y:b.clientY}),d(),(f=m.current)==null||f.call(m)};return h.addEventListener("contextmenu",g),()=>h.removeEventListener("contextmenu",g)},[d,m]),c.useEffect(()=>()=>_(),[_]),i.jsx("div",{className:Jc.root,ref:a,children:i.jsx(Ne,z(p({},n),{position:t,originCoordinates:s,active:!!s,onClose:h=>{l(void 0),_(),r==null||r(h)}}))})};ii.displayName="ContextMenu";const Ft=ii;Ft.Content=Ne.Content,Ft.Item=Ne.Item,Ft.Section=Ne.Section,Ft.SubMenu=Ne.SubMenu,Ft.SubTrigger=Ne.SubTrigger;const ht={root:"_root_1vs2n_1",triggerLayer:"_triggerLayer_1vs2n_13",trigger:"_trigger_1vs2n_13","--inline":"_--inline_1vs2n_29","--variant-outline":"_--variant-outline_1vs2n_47","--highlighted":"_--highlighted_1vs2n_54","--disabled":"_--disabled_1vs2n_67"},li=e=>{const{children:t}=e;return i.jsx("span",{className:ht.trigger,children:t})},ai=e=>{const{name:t,children:o,height:r,variant:n="outline",inline:s,className:l,disabled:a,attributes:d,inputAttributes:_,onChange:m}=e,u=Ct(),h=F(ht.root,n&&ht[`--variant-${n}`],s&&ht["--inline"],u.active&&ht["--highlighted"],a&&ht["--disabled"],l),g=C=>{var k;C.preventDefault(),(k=d==null?void 0:d.onDragOver)==null||k.call(d,C)},b=C=>{var k;u.activate(),(k=d==null?void 0:d.onDragEnter)==null||k.call(d,C)},f=C=>{var k;C.currentTarget.contains(C.relatedTarget)||(u.deactivate(),(k=d==null?void 0:d.onDragLeave)==null||k.call(d,C))},y=C=>{var k;C.preventDefault(),u.deactivate(),m==null||m({name:t,value:Array.from(C.dataTransfer.files),event:C}),(k=d==null?void 0:d.onDrop)==null||k.call(d,C)},x=C=>{var E;const k=C.target.files;k&&(m==null||m({name:t,event:C,value:Array.from(k)}),(E=_==null?void 0:_.onChange)==null||E.call(_,C))},v=i.jsx(Lo,{children:i.jsx("input",z(p({},_),{type:"file",className:ht.field,name:t,disabled:a,onChange:x}))}),w=typeof o=="function"?o({highlighted:u.active}):o;return i.jsx(H,{className:h,height:r,borderRadius:"medium",attributes:z(p({},d),{onDragOver:g,onDragEnter:b,onDragLeave:f,onDrop:y}),children:n==="outline"&&!s?i.jsxs(H,{as:"label",className:ht.triggerLayer,padding:6,borderRadius:"medium",gap:2,align:"center",justify:"center",textAlign:"center",height:"100%",children:[v,i.jsx(H.Item,{children:w})]}):i.jsxs("label",{className:ht.triggerLayer,children:[v,w]})})};ai.displayName="FileUpload",li.displayName="FileUpload.Trigger";const ci=ai;ci.Trigger=li;const di={root:"_root_bzk9x_1","--active":"_--active_bzk9x_14"},ui=e=>{const{children:t,active:o,className:r,attributes:n}=e,s=F(di.root,o&&di["--active"],r);return i.jsx(ne,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:s,attributes:n,children:t})};ui.displayName="Hotkey";const at={root:"_root_1irm5_1",wrapper:"_wrapper_1irm5_26",inner:"_inner_1irm5_32",content:"_content_1irm5_38","--visible":"_--visible_1irm5_44","--click-through":"_--click-through_1irm5_49","--blurred":"_--blurred_1irm5_54","--contained":"_--contained_1irm5_72","--animated":"_--animated_1irm5_76","--overflow-auto":"_--overflow-auto_1irm5_85"},Ir=e=>{const{active:t,children:o,transparent:r,blurred:n,overflow:s,onClose:l,onOpen:a,onAfterClose:d,onAfterOpen:_,disableCloseOnClick:m,containerRef:u,contained:h,className:g,attributes:b}=e,f=ke(l),y=ke(a),x=r===!0,v=x?0:(1-(r||0))*.7,[w,C]=c.useState(!1),[k,E]=c.useState(!1),[N,S]=c.useState([0,0]),T=c.useRef(null),{lockScroll:j,unlockScroll:$}=sr({containerRef:u}),M=c.useRef(null),D=c.useRef(!1),{active:P,activate:B,deactivate:L}=Ct(t||!1),{active:A,activate:W,deactivate:re}=Ct(t||!1),Z=Bn({active:t,contentRef:T,hasTrigger:!1}),Q=u&&h!==!1,U=F(at.root,A&&at["--visible"],x&&at["--click-through"],n&&at["--blurred"],k&&at["--animated"],Q&&at["--contained"],s==="auto"&&at["--overflow-auto"],g),te=K=>{if(!T.current)return;const ue=T.current.firstChild;if(ue)return ue.contains(K)},X=c.useCallback(K=>{var ue;!A||!Z()||(M.current&&(u!=null&&u.current)&&(u.current.style.overflow=M.current,u.current.style.removeProperty("isolation"),M.current=null),(ue=f.current)==null||ue.call(f,{reason:K.reason}))},[A,Z,f,u]),oe=K=>{D.current=!te(K.target)},$e=K=>{const ue=!te(K.target);!(D.current&&ue&&!x)||m||X({reason:"overlay-click"})},de=K=>{if(!(K.propertyName!=="opacity"||K.target!==K.currentTarget)){if(E(!1),A){_==null||_();return}$(),L(),d==null||d()}};return Ze({Escape:()=>X({reason:"escape-key"})},[X]),c.useEffect(()=>{E(!0),t&&!P&&B(),!t&&P&&re()},[t,B,re,P]),c.useEffect(()=>{P&&(x||j(),tt(()=>{W()}))},[P,W,j,x]),c.useEffect(()=>{var ye;if(!P||!T.current)return;const K=new It,ue=u==null?void 0:u.current;return ue&&(M.current=ue.style.overflow,ue.style.setProperty("overflow","hidden"),ue.style.setProperty("isolation","isolate"),S([ue.scrollLeft,ue.scrollTop])),K.trap(T.current,{initialFocusEl:T.current.querySelector("[role=dialog][tabindex='-1']")}),(ye=y.current)==null||ye.call(y),()=>K.release()},[P,y,u]),c.useEffect(()=>()=>$(),[$]),fe(()=>{C(!0)},[]),!P||!w?null:i.jsx(To,{targetRef:u,children:i.jsx(To.Scope,{children:K=>i.jsx("div",z(p({},b),{ref:K,style:{"--rs-overlay-opacity":v,"--rs-overlay-offset-x":u?`${N[0]}px`:void 0,"--rs-overlay-offset-y":u?`${N[1]}px`:void 0},role:"button",tabIndex:-1,className:U,onMouseDown:oe,onMouseUp:$e,onTransitionEnd:de,children:i.jsx("div",{className:at.wrapper,children:i.jsx("div",{className:at.inner,children:i.jsx("div",{className:at.content,ref:T,children:typeof o=="function"?o({active:A}):o})})})}))})})};Ir.displayName="Overlay";const jr={m:660,l:900,xl:1280},_i=c.createContext({viewport:"s"}),Qc=e=>{const{children:t,defaultViewport:o="s"}=e,[r,n]=c.useState(o);return fe(()=>{const s=document.querySelector("[data-rs-theme]"),l=s&&window.getComputedStyle(s),a={m:l&&Number(l.getPropertyValue("--rs-viewport-m-min"))||jr.m,l:l&&Number(l.getPropertyValue("--rs-viewport-l-min"))||jr.l,xl:l&&Number(l.getPropertyValue("--rs-viewport-xl-min"))||jr.xl},d={s:`(max-width: ${a.m-1}px)`,m:`(min-width: ${a.m}px) and (max-width: ${a.l-1}px)`,l:`(min-width: ${a.l}px) and (max-width: ${a.xl-1}px)`,xl:`(min-width: ${a.xl}px)`},m=Object.keys(d).map(u=>{const h=window.matchMedia(d[u]);return{mq:h,handler:()=>h.matches&&n(u)}});return m.forEach(({handler:u,mq:h})=>{u(),h.addEventListener("change",u)}),()=>{m.forEach(({handler:u,mq:h})=>{h.removeEventListener("change",u)})}},[]),i.jsx(_i.Provider,{value:{viewport:r},children:t})},Rc=()=>c.useContext(_i),ed=()=>{const{viewport:e}=Rc();return e},mi=e=>{const t=ed();return c.useMemo(()=>{var o,r,n,s,l,a;return typeof e!="object"||e===null||!("s"in e)?e:t==="xl"?(n=(r=(o=e.xl)!=null?o:e.l)!=null?r:e.m)!=null?n:e.s:t==="l"?(l=(s=e.l)!=null?s:e.m)!=null?l:e.s:t==="m"&&(a=e.m)!=null?a:e.s},[t,e])},At={root:"_root_cjmtc_1","--contained":"_--contained_cjmtc_16","--position-center":"_--position-center_cjmtc_1","--active":"_--active_cjmtc_41","--position-bottom":"_--position-bottom_cjmtc_1","--position-start":"_--position-start_cjmtc_1","--position-end":"_--position-end_cjmtc_1","--position-full-screen":"_--position-full-screen_cjmtc_1","--dragging":"_--dragging_cjmtc_154","--overflow-visible":"_--overflow-visible_cjmtc_158","--position-center--m":"_--position-center--m_cjmtc_1","--position-bottom--m":"_--position-bottom--m_cjmtc_1","--position-start--m":"_--position-start--m_cjmtc_1","--position-end--m":"_--position-end--m_cjmtc_1","--position-full-screen--m":"_--position-full-screen--m_cjmtc_1","--position-center--l":"_--position-center--l_cjmtc_1","--position-bottom--l":"_--position-bottom--l_cjmtc_1","--position-start--l":"_--position-start--l_cjmtc_1","--position-end--l":"_--position-end--l_cjmtc_1","--position-full-screen--l":"_--position-full-screen--l_cjmtc_1","--position-center--xl":"_--position-center--xl_cjmtc_1","--position-bottom--xl":"_--position-bottom--xl_cjmtc_1","--position-start--xl":"_--position-start--xl_cjmtc_1","--position-end--xl":"_--position-end--xl_cjmtc_1","--position-full-screen--xl":"_--position-full-screen--xl_cjmtc_1"},Lr=32,td=100,od=32,hi=c.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),fi=()=>c.useContext(hi),gi=e=>{const{children:t}=e,{id:o,setTitleMounted:r}=fi();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),i.jsx(ne,{variant:"featured-3",weight:"bold",attributes:{id:`${o}-title`},children:t})},bi=e=>{const{children:t}=e,{id:o,setSubtitleMounted:r}=fi();return c.useEffect(()=>(r(!0),()=>r(!1)),[r]),i.jsx(ne,{variant:"body-3",color:"neutral-faded",attributes:{id:`${o}-subtitle`},children:t})},pi=e=>{const{children:t,onClose:o,onOpen:r,onAfterClose:n,onAfterOpen:s,active:l,size:a,padding:d=4,position:_="center",overflow:m,transparentOverlay:u,blurredOverlay:h,ariaLabel:g,autoFocus:b=!0,disableSwipeGesture:f,disableCloseOnOutsideClick:y,containerRef:x,contained:v,overlayClassName:w,className:C,attributes:k}=e,E=ke(o),N=Ke(),S=mi(_),[T,j]=c.useState(!1),[$,M]=c.useState(!1),[D,P]=c.useState(!1),B=c.useRef(null),L=(k==null?void 0:k.ref)||B,A=c.useRef({x:0,y:0}),W=c.useRef(0),re=c.useRef(0),Z=c.useRef(0),[Q,U]=c.useState(0),[te,X]=c.useState(0),oe=et({padding:d}),$e=x&&v!==!1,de=c.useMemo(()=>({titleMounted:T,setTitleMounted:j,subtitleMounted:$,setSubtitleMounted:M,id:N}),[N,$,T]),K=()=>{A.current={x:0,y:0},W.current=0,Z.current=0,U(0)},ue=O=>{var he;if(f||(he=window.getSelection())!=null&&he.toString())return;let Y=O.target;const R=L.current;for(;Y&&(Y===R||R!=null&&R.contains(Y));){if(Y.scrollTop!==0||Y.scrollLeft!==0||Y.matches("input,textarea"))return;Y=Y?Y.parentElement:null}S==="start"&&O.targetTouches[0].clientX<od||(Jt(),P(!0))},ye=O=>{l||O.propertyName==="transform"&&O.currentTarget===O.target&&K()};return c.useEffect(()=>{if(!D)return;const O=()=>{var he;ko(),P(!1);const R=S==="start"?Z.current<0:Z.current>0;Math.abs(re.current)>Lr&&R?(he=E.current)==null||he.call(E,{reason:"drag"}):K()},Y=R=>{var Ce,Me;if(!D||S==="center"||((Ce=L.current)==null?void 0:Ce.scrollTop)!==0||((Me=L.current)==null?void 0:Me.scrollLeft)!==0)return;const he=R.targetTouches[0],J={x:he.clientX,y:he.clientY},G=S==="bottom"?"y":"x",se=S==="bottom"?"x":"y";A.current[G]||(A.current=J,W.current=J[G]);const ie=Math.abs(J[G]-A.current[G]),ce=Math.abs(J[se]-A.current[se]);if(_!=="bottom"&&(ie<ce||ce>td)){W.current=J[G];return}Z.current=J[G]-W.current,W.current=J[G],U(Ie=>S==="start"?Math.min(0,Ie+Z.current):Math.max(0,Ie+Z.current))};return document.addEventListener("touchmove",Y,{passive:!0}),document.addEventListener("touchend",O,{passive:!0}),()=>{document.removeEventListener("touchmove",Y),document.removeEventListener("touchend",O)}},[D,S,E,_,L]),c.useEffect(()=>{const O=L.current;if(!O||!S)return;const R=["start","end"].includes(S)?O.clientWidth:O.clientHeight,he=Math.abs(Q)/R;X(he/2),re.current=Q},[Q,S,L]),i.jsx(Ir,{onClose:o,onOpen:r,onAfterClose:n,onAfterOpen:s,disableCloseOnClick:y,active:l,transparent:u||te,blurred:h,overflow:S==="center"?"auto":"hidden",className:w,contained:v,containerRef:x,attributes:{onTouchStart:ue},children:({active:O})=>{const Y=F(At.root,C,O&&At["--active"],D&&At["--dragging"],m&&At[`--overflow-${m}`],$e&&At["--contained"],le(At,"--position",_),oe.classNames);return i.jsx(hi.Provider,{value:de,children:i.jsx("div",z(p({},k),{style:z(p(p({},oe.variables),q("--rs-modal-size",a)),{"--rs-modal-drag":Math.abs(Q)<Lr?"0px":`${Q+Lr*(S==="start"?1:-1)}px`}),"aria-labelledby":T?`${N}-title`:void 0,"aria-describedby":$?`${N}-subtitle`:void 0,"aria-label":g||(k==null?void 0:k["aria-label"]),className:Y,"aria-modal":"true",role:"dialog",tabIndex:b?void 0:-1,ref:L,onTransitionEnd:ye,children:t}))})}})};pi.displayName="Modal",gi.displayName="Modal.Title",bi.displayName="Modal.Subtitle";const Dr=pi;Dr.Title=gi,Dr.Subtitle=bi;const vi=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"6 9 12 15 18 9"})}),rd=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"18 15 12 9 6 15"})}),nd=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})}),sd=()=>i.jsxs("svg",{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",children:[i.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),i.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),rt={field:"_field_meivp_1","controls-wrapper":"_controls-wrapper_meivp_5",controls:"_controls_meivp_5","controls--size-small":"_controls--size-small_meivp_1",control:"_control_meivp_5","controls--size-medium":"_controls--size-medium_meivp_1","controls--size-large":"_controls--size-large_meivp_1","controls--size-xlarge":"_controls--size-xlarge_meivp_1","icon--touch":"_icon--touch_meivp_107","--outline":"_--outline_meivp_111","icon--mouse":"_icon--mouse_meivp_139","controls--size-small--m":"_controls--size-small--m_meivp_1","controls--size-medium--m":"_controls--size-medium--m_meivp_1","controls--size-large--m":"_controls--size-large--m_meivp_1","controls--size-xlarge--m":"_controls--size-xlarge--m_meivp_1","controls--size-small--l":"_controls--size-small--l_meivp_1","controls--size-medium--l":"_controls--size-medium--l_meivp_1","controls--size-large--l":"_controls--size-large--l_meivp_1","controls--size-xlarge--l":"_controls--size-xlarge--l_meivp_1","controls--size-small--xl":"_controls--size-small--xl_meivp_1","controls--size-medium--xl":"_controls--size-medium--xl_meivp_1","controls--size-large--xl":"_controls--size-large--xl_meivp_1","controls--size-xlarge--xl":"_controls--size-xlarge--xl_meivp_1"},Pr=e=>{var Q;const Z=e,{increaseAriaLabel:t,decreaseAriaLabel:o,min:r,max:n,step:s=1,name:l,value:a,onChange:d,size:_="medium"}=Z,m=pe(Z,["increaseAriaLabel","decreaseAriaLabel","min","max","step","name","value","onChange","size"]),u=ot(),h=Ke(m.id),g=(u==null?void 0:u.attributes.id)||((Q=e.inputAttributes)==null?void 0:Q.id)||h,b=(u==null?void 0:u.disabled)||e.disabled,f=(u==null?void 0:u.hasError)||e.hasError,y=b||(a&&n?a>=n:!1),x=b||(a&&r?a<=r:!1),v=c.useRef(null),w=c.useRef(null),[C,k]=c.useState((a==null?void 0:a.toString())||""),E=c.useRef(a),N=ke(d),S=c.useRef(null),T=c.useRef(null),j=c.useCallback(U=>{var ue,ye;const te=s*U,X=E.current;let oe=X===null?te:X+te;n!==void 0&&oe>n&&(oe=n),r!==void 0&&oe<r&&(oe=r);const $e=((ue=s.toString().split(".")[1])==null?void 0:ue.length)||0,de=((ye=X==null?void 0:X.toString().split(".")[1])==null?void 0:ye.length)||0,K=Math.max($e,de);return Number(oe.toFixed(K))},[s,r,n]),$=c.useCallback((U,te)=>{var X;(X=N.current)==null||X.call(N,{value:U,name:l}),te!=null&&te.programmatic||(E.current=U)},[l,N]),M=c.useCallback(()=>{const U=j(1);$(U,{programmatic:!0})},[j,$]),D=c.useCallback(()=>{const U=j(-1);$(U,{programmatic:!0})},[j,$]),P=U=>{if(!U.value.match(/^(-?)[0-9]*(\.?)[0-9]*$/))return;const te=parseFloat(U.value);te>Number.MAX_SAFE_INTEGER||te<Number.MIN_SAFE_INTEGER||(k(U.value),!isNaN(te)&&$(te))},B=(U,te)=>{var X;b||(te(),U.pointerType!=="touch"&&((X=v.current)==null||X.focus()),S.current=setTimeout(()=>{T.current=setInterval(()=>{te()},50)},500))},L=()=>{b||(S.current&&(clearTimeout(S.current),S.current=null),T.current&&(clearTimeout(T.current),T.current=null))};Ze({[no]:M,[so]:D},[M,D],{preventDefault:!0,ref:w}),c.useEffect(()=>{var U;E.current=a,k((U=a==null?void 0:a.toString())!=null?U:"")},[a]);const A=ae(_,U=>U==="large"||U==="xlarge"?4:3),W=ae(_,U=>U==="small"?3:4),re=i.jsx("span",{className:rt["controls-wrapper"],children:i.jsxs("span",{className:rt.controls,children:[i.jsxs(je,{className:rt.control,disabled:y,disableFocusRing:!0,as:"span",attributes:{"aria-label":t,"aria-controls":g,role:"button",tabIndex:y?void 0:-1,onPointerDown:U=>B(U,M),onPointerUp:L,onPointerLeave:L,onContextMenu:U=>U.preventDefault()},children:[i.jsx(ge,{svg:rd,size:A,className:rt["icon--mouse"]}),i.jsx(ge,{svg:sd,size:W,className:rt["icon--touch"]})]}),i.jsxs(je,{className:rt.control,disabled:x,disableFocusRing:!0,as:"span",attributes:{"aria-label":o,"aria-controls":g,role:"button",tabIndex:x?void 0:-1,onPointerDown:U=>B(U,D),onPointerUp:L,onPointerLeave:L,onContextMenu:U=>U.preventDefault()},children:[i.jsx(ge,{svg:vi,size:A,className:rt["icon--mouse"]}),i.jsx(ge,{svg:nd,size:W,className:rt["icon--touch"]})]})]})});return i.jsx(jo,z(p({},m),{className:[m.className,le(rt,"controls--size",_),!(m.variant==="faded"||m.variant==="headless")&&rt["--outline"]],attributes:z(p({},m.attributes),{role:"group",ref:w}),inputAttributes:z(p({},m.inputAttributes),{ref:v,inputMode:"numeric",autoComplete:"off",autoCorrect:"off",spellCheck:"false",min:r,max:n,step:s,className:rt.field}),size:_,id:g,hasError:f,disabled:b,value:C,onChange:P,name:l,endSlot:re,endSlotPadding:0}))};Pr.displayName="NumberFieldControlled";const yi=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=c.useState(t!=null?t:null),s=l=>{n(l.value),o&&o(l)};return i.jsx(Pr,z(p({},e),{value:r,defaultValue:void 0,onChange:s}))};yi.displayName="NumberFieldUncontrolled";const xi=e=>{const{value:t}=e;return t!==void 0?i.jsx(Pr,p({},e)):i.jsx(yi,p({},e))};xi.displayName="NumberField";const Fr=(e,t)=>e>t?[]:Array.from({length:t-e+1},(o,r)=>e+r),wi={page:"_page_j10le_1"},Ar=e=>{const{total:t,page:o=1,onChange:r,pageAriaLabel:n,previousAriaLabel:s,nextAriaLabel:l,className:a,attributes:d}=e,_=1,m=1,u=[],h=(m+1)*2+_*2+1,g=t>h&&o-_>m+2,b=t>h&&o+_<t-m;let f=_*2+1;g||(f+=m+1),b||(f+=m+1);const y=g?Math.min(t-f+1,Math.max(1,o-_)):1,x=b?Math.min(y+f-1,t):t;g&&u.push(...Fr(1,m),null),u.push(...Fr(y,x)),b&&u.push(null,...Fr(t-m+1,t));const v=w=>{const C=Math.min(t,Math.max(1,w));r==null||r({page:C})};return i.jsxs(H,{direction:"row",align:"center",gap:1,className:a,attributes:d,children:[i.jsx(Te,{variant:"ghost",size:"small",icon:Do,onClick:()=>v(o-1),disabled:o===1,attributes:{"aria-label":s}}),u.map((w,C)=>w===null?i.jsx(H,{width:7,align:"center",children:"..."},`dots-${C}`):i.jsx(Te,{size:"small",variant:w===o?"solid":"ghost",color:w===o?"primary":"neutral",onClick:()=>v(w),attributes:{"aria-label":n==null?void 0:n({page:w}),"aria-current":w===o},className:wi.page,children:w},C)),i.jsx(Te,{variant:"ghost",size:"small",className:wi.page,icon:Pt,onClick:()=>v(o+1),disabled:o===t,attributes:{"aria-label":l}})]})};Ar.displayName="PaginationControlled";const Ci=e=>{const a=e,{defaultPage:t=1,onChange:o}=a,r=pe(a,["defaultPage","onChange"]),[n,s]=c.useState(t||1),l=d=>{s(d.page),o==null||o(d)};return i.jsx(Ar,z(p({},r),{onChange:l,page:n}))};Ci.displayName="PaginationUncontrolled";const Ni=e=>{const{page:t}=e;return t!==void 0?i.jsx(Ar,p({},e)):i.jsx(Ci,p({},e))};Ni.displayName="Pagination";const ki="\\d",zi="[a-zA-Z]",id=`(${ki}|${zi})`,Ao={root:"_root_eojch_1",input:"_input_eojch_6",item:"_item_eojch_23","item--focused":"_item--focused_eojch_28"},ld={small:7,medium:9,large:12,xlarge:14},ad={numeric:ki,alphabetic:zi,alphanumeric:id},Vr=e=>{const{valueLength:t=4,value:o,onChange:r,name:n,pattern:s="numeric",size:l="medium",variant:a="outline",className:d,attributes:_,inputAttributes:m}=e,u=ad[s],h=ae(l,$=>ld[$]),g=ae(l,$=>$==="medium"?"body-3":"body-2"),b=ae(l,$=>$==="xlarge"?"medium":"small"),[f,y]=c.useState(null),x=ot(),v=c.useRef(o.length===t?"edit":"type"),w=c.useRef(null),C=[],k=c.useCallback($=>{var L;const M=w.current;if(!M||M.selectionStart===null)return;const D=v.current,P=(L=$!=null?$:M.selectionStart)!=null?L:0,B=Math.min(D==="type"?M.value.length:M.value.length-1,Math.max(0,P));v.current==="type"?(M.selectionStart=B,M.selectionEnd=B):(M.selectionStart=B,M.selectionEnd=B+1),y(Math.min(M.selectionStart,t-1))},[t]);Ze({[`${lo},${no}`]:()=>{tt(()=>{const $=w.current;if(!$||$.selectionStart===null)return;const M=v.current,D=o.length?"edit":"type";v.current=D,k(M==="type"&&D==="edit"?$.selectionStart:$.selectionStart-1)})},[`${io},${so}`]:()=>{tt(()=>{const $=w.current;if(!$||$.selectionStart===null)return;const M=$.selectionStart===o.length&&$.selectionStart!==t?"type":"edit";v.current=M,k($.selectionStart)})}},[o,k,t],{ref:w});const E=()=>{k(o.length)},N=()=>{y(null)},S=$=>{if(f===null||!w.current)return;const M=$.clipboardData.getData("text"),D=o.slice(0,f)+o.slice(f+M.length);w.current.value=D,w.current.selectionEnd=f},T=$=>{const M=$.target,D=M.value,P=new RegExp(`^${u}+$`);if(D&&!D.match(P)||M.selectionStart===null)return;const B=D.length===t||D.length>M.selectionStart?"edit":"type";v.current=B,r==null||r({event:$,name:n,value:D}),tt(()=>{k()})},j=($,M)=>{w.current&&($.preventDefault(),w.current.focus(),v.current=M>=o.length?"type":"edit",k(M))};for(let $=0;$<t;$++)C.push(i.jsx(H,{height:h,width:h,borderRadius:b,borderColor:a==="faded"?"transparent":"neutral",backgroundColor:a==="faded"?"neutral-faded":"elevation-base",align:"center",justify:"center",className:[Ao.item,f===$&&Ao["item--focused"]],attributes:{onMouseDown:M=>{j(M,$)},onTouchStart:M=>{j(M,$)}},children:o[$]&&i.jsx(ne,{variant:g,children:o[$]})},$));return i.jsxs(H,{gap:2,direction:"row",className:[Ao.root,d],attributes:_,children:[C,i.jsx("input",z(p(p({},m),x.attributes),{type:"text",className:Ao.input,onFocus:E,onBlur:N,onPaste:S,onInput:T,value:o,name:n,maxLength:t,ref:w,autoComplete:(m==null?void 0:m.autoComplete)||"one-time-code",inputMode:s==="numeric"?"numeric":void 0,pattern:`${u}{${t}}`}))]})};Vr.displayName="PinFieldControlled";const Si=e=>{const a=e,{defaultValue:t,onChange:o}=a,r=pe(a,["defaultValue","onChange"]),[n,s]=c.useState(t||""),l=d=>{s(d.value),o==null||o(d)};return i.jsx(Vr,z(p({},r),{value:n,onChange:l}))};Si.displayName="PinFieldUncontrolled";const Ei=e=>{const{value:t}=e;return t!==void 0?i.jsx(Vr,p({},e)):i.jsx(Si,p({},e))};Ei.displayName="PinField";const mo={root:"_root_1qk35_1",value:"_value_1qk35_9","--duration":"_--duration_1qk35_24","--size-small":"_--size-small_1qk35_28","--size-medium":"_--size-medium_1qk35_32","--color-primary":"_--color-primary_1qk35_36","--color-critical":"_--color-critical_1qk35_40","--color-warning":"_--color-warning_1qk35_44","--color-positive":"_--color-positive_1qk35_48","--color-media":"_--color-media_1qk35_52"},Ti=e=>{const{value:t=0,min:o=0,max:r=100,color:n="primary",size:s="medium",duration:l,ariaLabel:a,className:d,attributes:_}=e,m=F(mo.root,d,n&&mo[`--color-${n}`],s&&mo[`--size-${s}`],!!l&&mo["--duration"]),u=r-o,h=t-o,f=`${Math.max(o,Math.min(r,h))/u*100-100}%`;return i.jsx("div",z(p({role:"progressbar"},_),{className:m,"aria-label":a||(_==null?void 0:_["aria-label"]),"aria-valuemax":r,"aria-valuemin":o,"aria-valuenow":t,children:i.jsx("div",{className:mo.value,style:{"--rs-progress-value":f,"--rs-progress-duration":l?`${l}ms`:void 0}})}))};Ti.displayName="Progress";const Vt={root:"_root_1r02e_1",container:"_container_1r02e_17",item:"_item_1r02e_26","item--active":"_item--active_1r02e_40","item--variant-secondary":"_item--variant-secondary_1r02e_45","--color-media":"_--color-media_1r02e_50"},Br=7,Hr=Math.floor(Br/2),$i=e=>{const{total:t,activeIndex:o=0,color:r="primary",ariaLabel:n,className:s,attributes:l}=e,a=F(Vt.root,s,r&&Vt[`--color-${r}`]),d=n?{"aria-label":n,role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":t-1}:{},_=t>Br?Math.min(t-Br,Math.max(0,o-Hr)):0;return i.jsx("div",z(p({},l),{className:a,children:i.jsx("div",z(p({},d),{className:Vt.container,style:{"--rs-progress-indicator-mod":_},children:Array.from({length:t}).map((m,u)=>{const h=F(Vt.item,u===o&&Vt["item--active"],(u<o-(Hr-1)||u>o+(Hr-1))&&Vt["item--variant-secondary"]);return i.jsx("div",{className:h},u)})}))}))};$i.displayName="ProgressIndicator";const Et={root:"_root_2agld_12",decorator:"_decorator_2agld_22",field:"_field_2agld_28","--size-small":"_--size-small_2agld_1","--size-medium":"_--size-medium_2agld_1","--size-large":"_--size-large_2agld_1",input:"_input_2agld_74","--error":"_--error_2agld_81","--disabled":"_--disabled_2agld_101","--size-small--m":"_--size-small--m_2agld_1","--size-medium--m":"_--size-medium--m_2agld_1","--size-large--m":"_--size-large--m_2agld_1","--size-small--l":"_--size-small--l_2agld_1","--size-medium--l":"_--size-medium--l_2agld_1","--size-large--l":"_--size-large--l_2agld_1","--size-small--xl":"_--size-small--xl_2agld_1","--size-medium--xl":"_--size-medium--xl_2agld_1","--size-large--xl":"_--size-large--xl_2agld_1"},Mi=e=>{const{children:t,value:o,onChange:r,onFocus:n,onBlur:s,size:l="medium",className:a,attributes:d,inputAttributes:_}=e,m=ot(),u=oi(),h=(m==null?void 0:m.hasError)||e.hasError||(u==null?void 0:u.hasError),g=(m==null?void 0:m.disabled)||e.disabled||(u==null?void 0:u.disabled),b=u?u.value===o:e.checked,f=u?void 0:e.defaultChecked,y=u?u.name:e.name,x=F(Et.root,a,h&&Et["--error"],g&&Et["--disabled"],l&&le(Et,"--size",l));return i.jsxs("label",z(p({},d),{className:x,children:[i.jsxs("span",{className:Et.field,children:[i.jsx(_o,{className:Et.input,type:"radio",checked:b,defaultChecked:f,name:y,disabled:g,value:o,onChange:r,onFocus:n,onBlur:s,attributes:_}),i.jsx("div",{className:Et.decorator})]}),t&&i.jsx(ne,{as:"span",variant:ae(l,v=>v==="large"?"body-2":v==="small"?"caption-1":"body-3"),children:t})]}))};Mi.displayName="Radio";const Or={root:"_root_1t6gl_1",scrim:"_scrim_1t6gl_16","--position-cover":"_--position-cover_1t6gl_28","--position-top":"_--position-top_1t6gl_42","--position-bottom":"_--position-bottom_1t6gl_48","--position-start":"_--position-start_1t6gl_54","--position-end":"_--position-end_1t6gl_65"},Ii=e=>{var g,b;const{children:t,backgroundSlot:o,position:r="cover",paddingInline:n,paddingBlock:s,padding:l,borderRadius:a,attributes:d,className:_,scrimClassName:m}=e,u=F(Or.root,r&&Or[`--position-${r}`],_),h=F(Or.scrim,m);return i.jsxs(H,{borderRadius:a,attributes:d,className:u,position:o?"relative":"absolute",inset:o?void 0:0,overflow:"hidden",children:[o,i.jsx("div",{className:h,children:i.jsx(H,{paddingInline:(g=n!=null?n:l)!=null?g:4,paddingBlock:(b=s!=null?s:l)!=null?b:3,zIndex:5,height:["start","end"].includes(r)?"100%":void 0,width:["top","bottom","cover"].includes(r)?"100%":void 0,textAlign:r==="cover"?"center":void 0,children:t})})]})};Ii.displayName="Scrim";const We={root:"_root_1v9qj_1",input:"_input_1v9qj_25","input--placeholder":"_input--placeholder_1v9qj_52",slot:"_slot_1v9qj_57",arrow:"_arrow_1v9qj_72",group:"_group_1v9qj_83","group-label":"_group-label_1v9qj_94","--size-small":"_--size-small_1v9qj_1","--size-medium":"_--size-medium_1v9qj_1","--size-large":"_--size-large_1v9qj_1","--size-xlarge":"_--size-xlarge_1v9qj_1","--variant-faded":"_--variant-faded_1v9qj_158","--variant-ghost":"_--variant-ghost_1v9qj_170","--variant-headless":"_--variant-headless_1v9qj_171","--status-error":"_--status-error_1v9qj_179","--disabled":"_--disabled_1v9qj_201","--size-small--m":"_--size-small--m_1v9qj_1","--size-medium--m":"_--size-medium--m_1v9qj_1","--size-large--m":"_--size-large--m_1v9qj_1","--size-xlarge--m":"_--size-xlarge--m_1v9qj_1","--size-small--l":"_--size-small--l_1v9qj_1","--size-medium--l":"_--size-medium--l_1v9qj_1","--size-large--l":"_--size-large--l_1v9qj_1","--size-xlarge--l":"_--size-xlarge--l_1v9qj_1","--size-small--xl":"_--size-small--xl_1v9qj_1","--size-medium--xl":"_--size-medium--xl_1v9qj_1","--size-large--xl":"_--size-large--xl_1v9qj_1","--size-xlarge--xl":"_--size-xlarge--xl_1v9qj_1"},cd=()=>i.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M7 16L12 21L17 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),ji=e=>{const{disabled:t,size:o}=e;return i.jsx("div",{className:We.arrow,children:i.jsx(ge,{svg:cd,color:t?"disabled":"neutral-faded",size:ae(o,r=>r==="large"||r==="xlarge"?5:4)})})},Li=e=>{const{startSlot:t,icon:o,size:r}=e;return!t&&!o?null:o?i.jsx("div",{className:We.slot,children:i.jsx(ge,{size:ae(r,n=>n==="large"?5:n==="xlarge"?6:4),svg:o})}):i.jsx("div",{className:We.slot,children:t})},dd=e=>{const{startSlot:t,icon:o,size:r,inputAttributes:n,onFocus:s,onBlur:l,disabled:a,name:d,value:_,defaultValue:m,onChange:u,onClick:h,placeholder:g,id:b,children:f}=e,[y,x]=c.useState(_===void 0?!m:!_),v=F(We.input,g&&y&&We["input--placeholder"]),w=C=>{const k=C.target.value;_===void 0&&x(!k),u&&u({name:d,value:k,event:C})};return c.useEffect(()=>{_!==void 0&&x(!_)},[_]),i.jsxs(i.Fragment,{children:[i.jsx(Li,{startSlot:t,icon:o,size:r}),i.jsxs("select",z(p({},n),{onFocus:s||(n==null?void 0:n.onFocus),onBlur:l||(n==null?void 0:n.onBlur),onClick:h||(n==null?void 0:n.onClick),className:v,disabled:a,name:d,value:_,defaultValue:m,onChange:w,id:b,children:[g&&i.jsx("option",{value:"",children:g}),f]})),i.jsx(ji,{disabled:a,size:r})]})},Di=e=>{var h,g;const t=ot(),o=Ke(e.id),r=z(p({},e),{id:((h=t==null?void 0:t.attributes)==null?void 0:h.id)||((g=e.inputAttributes)==null?void 0:g.id)||o,disabled:(t==null?void 0:t.disabled)||e.disabled,hasError:(t==null?void 0:t.hasError)||e.hasError,inputAttributes:p(p({},e.inputAttributes),t==null?void 0:t.attributes)}),{children:n,className:s,size:l="medium",variant:a="outline",hasError:d,disabled:_,attributes:m}=r,u=F(We.root,s,l&&le(We,"--size",l),d&&We["--status-error"],_&&We["--disabled"],a&&We[`--variant-${a}`]);return i.jsx("div",z(p({},m),{className:u,children:n(r)}))},Pi=e=>{const{children:t,disabled:o,onClick:r,onFocus:n,onBlur:s,inputAttributes:l,startSlot:a,icon:d,size:_,placeholder:m,value:u,name:h,id:g}=e;return i.jsxs(i.Fragment,{children:[i.jsxs(je,{className:We.input,disabled:o,disableFocusRing:!0,onClick:r,attributes:p({onFocus:n||(l==null?void 0:l.onFocus),onBlur:s||(l==null?void 0:l.onBlur)},l),children:[i.jsx(Li,{startSlot:a,icon:d,size:_}),t?i.jsx(ne,{maxLines:typeof t=="string"?1:void 0,children:t}):null,m&&!t?i.jsx(ne,{color:"disabled",children:m}):null,i.jsx(ji,{disabled:o,size:_})]}),i.jsx("input",{type:"hidden",value:typeof u=="string"?u:JSON.stringify(u),name:h,id:g})]})},Fi=e=>{const{children:t}=e;return i.jsx(Di,z(p({},e),{children:o=>{const{options:r}=o,n=c.Children.toArray(t).some(l=>c.isValidElement(l)&&(l.type==="option"||l.type==="optgroup"));return!(r||n)?i.jsx(Pi,z(p({},o),{children:t})):i.jsxs(dd,z(p({},o),{children:[r==null?void 0:r.map(l=>i.jsx("option",{value:l.value,disabled:l.disabled,children:l.label},l.value)),t]}))}}))};Fi.displayName="Select";const Vo=e=>{const{label:t,children:o}=e;return i.jsxs(H,{attributes:{role:"group"},gap:1,className:We.group,children:[t&&i.jsx("div",{className:We["group-label"],children:i.jsx(ne,{variant:"caption-1",color:"neutral-faded",children:t})}),i.jsx(H.Item,{children:o})]})};Vo.displayName="Select.Group";const Wr=e=>{const r=e,{value:t}=r,o=pe(r,["value"]);return i.jsx(Ne.Item,z(p({},o),{className:[o.className,We.option],color:"neutral",attributes:z(p({},o.attributes),{value:t,role:"option"})}))};Wr.displayName="Select.Option";const qr=e=>{const{children:t,value:o,name:r,placeholder:n,size:s,multiple:l,width:a="trigger",position:d,fallbackPositions:_,positionRef:m,renderValue:u}=e,h=c.useRef(null),g=c.useRef(""),b=c.useRef(null),f=c.useRef(null),y=[],x=[],v=l?o.length>0:o,w=N=>c.Children.map(N,(S,T)=>{var j;if(!c.isValidElement(S))return null;if(S.type===Wr){const $=S,M=$.props,P=(l?o.includes(M.value):M.value===o)||!n&&!o&&T===0;return P&&x.push(M),y.push({value:M.value,text:typeof M.children=="string"?M.children:M.value}),c.cloneElement($,{key:M.value,onClick:B=>{var L,A,W;if((L=M.onClick)==null||L.call(M,B),l){const re=P?o.filter(Z=>Z!==M.value):[...o,M.value];(A=e.onChange)==null||A.call(e,{value:re,name:r})}else(W=e.onChange)==null||W.call(e,{value:M.value,name:r})},startSlot:(M==null?void 0:M.startSlot)!==void 0?M.startSlot:v&&i.jsx(ge,{svg:P?Mr:null}),attributes:z(p({},$.props.attributes),{ref:P?h:void 0})})}if(S.type===Vo){const $=S,M=$.props;return c.cloneElement($,{key:(j=M.label)!=null?j:T,children:w(M.children)})}return S}),C=w(t),k=N=>{var j;const S=N.key;if(((j=document.activeElement)==null?void 0:j.tagName)==="INPUT"||S.length!==1||!S.match(/[\w\s]/))return;b.current&&clearTimeout(b.current),g.current+=S.toLowerCase();const T=y.find($=>$.text.toLowerCase().startsWith(g.current));if(T&&f.current){const $=f.current.querySelector(`[value="${T.value}"]`);$==null||$.focus()}b.current=setTimeout(()=>{g.current=""},1e3)},E=()=>u?u(l?{value:o}:{value:o}):x.length===1?x[0].children:x.length>1?i.jsx(H,{direction:"row",gap:4,children:x.map(N=>i.jsx(H.Item,{children:N.children},N.value))}):null;return i.jsx(Di,z(p({},e),{children:N=>i.jsxs(Ne,{width:a,disableHideAnimation:!0,position:d!=null?d:"bottom",fallbackPositions:_!=null?_:d?void 0:["bottom","top"],fallbackAdjustLayout:!0,fallbackMinHeight:"220px",borderRadius:ae(s,S=>S==="large"||S==="xlarge"?"medium":"small"),initialFocusRef:h,positionRef:m,children:[i.jsx(Ne.Trigger,{children:S=>{const T=z(p({},N),{inputAttributes:p(p({},N.inputAttributes),S)});return i.jsx(Pi,z(p({},T),{value:o,children:E()}))}}),i.jsx(Ne.Content,{attributes:{ref:f,onKeyDown:k,role:void 0},children:C})]})}))};qr.displayName="SelectCustomControlled";const Ai=e=>{const a=e,{defaultValue:t,onChange:o,multiple:r}=a,n=pe(a,["defaultValue","onChange","multiple"]),[s,l]=c.useState(t||(r?[]:""));return i.jsx(qr,z(p({},n),{multiple:r,value:s,onChange:d=>{l(d.value),o==null||o(d)}}))};Ai.displayName="SelectCustomUncontrolled";const Vi=e=>{const{value:t}=e;return t!==void 0?i.jsx(qr,p({},e)):i.jsx(Ai,p({},e))};Vi.displayName="SelectCustom";const ho=Fi;ho.Custom=Vi,ho.Option=Wr,ho.Group=Vo,ho.OptionGroup=Vo;const ud={root:"_root_xavah_1"},Bi=e=>{const{borderRadius:t="small",width:o,height:r,className:n,attributes:s}=e,l=F(ud.root,n);return i.jsx(H,{backgroundColor:"disabled",width:o,height:r,borderRadius:t,className:l,attributes:s})};Bi.displayName="Skeleton";const ct={root:"_root_7bdnx_1",thumb:"_thumb_7bdnx_13","thumb--active":"_thumb--active_7bdnx_13",input:"_input_7bdnx_13",bar:"_bar_7bdnx_18",selection:"_selection_7bdnx_34",tooltip:"_tooltip_7bdnx_39",thumbs:"_thumbs_7bdnx_61","--orientation-horizontal":"_--orientation-horizontal_7bdnx_1","--orientation-vertical":"_--orientation-vertical_7bdnx_1","--disabled":"_--disabled_7bdnx_220"},Hi=e=>{const t=e.toString().split(".")[1];return(t==null?void 0:t.length)||0},Ur=(e,t)=>{const o=t%1!==0,r=Math.round(e/t)*t;if(o){const n=Hi(t);return Number(r.toFixed(n))}return r},Oi=({event:e,vertical:t})=>t?e instanceof MouseEvent?e.clientY:e.changedTouches[0].clientY:e instanceof MouseEvent?e.clientX:e.changedTouches[0].clientX,Wi=(e,t)=>{Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set.call(e,t),e.dispatchEvent(new Event("change",{bubbles:!0}))},Yr=c.forwardRef((e,t)=>{const{name:o,value:r,disabled:n,active:s,position:l,max:a,min:d,step:_,onChange:m,onDragStart:u,renderValue:h,tooltipRef:g,inputRef:b,orientation:f}=e,y=c.useId(),x=F(ct.thumb,s&&ct["thumb--active"]),v=Hi(_),w=h?h({value:r}):r.toFixed(v),C=k=>{m(+k.target.value,{native:!0})};return i.jsxs(i.Fragment,{children:[i.jsx("input",{className:ct.input,type:"range",name:o,value:r,onChange:C,disabled:n,max:a,min:d,step:_,"aria-labelledby":y,"aria-orientation":f,ref:b}),i.jsx("div",{ref:t,className:x,onMouseDown:u,onTouchStart:u,style:{"--ts-slider-thumb-position":`${l}%`},id:y,"aria-hidden":"true",children:h!==!1&&i.jsx(Dt,{colorMode:"inverted",children:i.jsx(ne,{variant:"caption-1",weight:"medium",className:ct.tooltip,attributes:{ref:g},children:w})})})]})});Yr.displayName="SliderThumb";const qi=16,Bo=e=>{var Y,R,he;const{name:t,range:o,max:r,min:n,step:s=1,onChange:l,onChangeCommit:a,renderValue:d,className:_,attributes:m,orientation:u="horizontal"}=e,h=ke(l),g=ke(a),b=u==="vertical",f=o&&e.minValue!==void 0?Ur(e.minValue,s):void 0,y=Ur(o?e.maxValue:e.value,s),x=(Y=e.minName)!=null?Y:e.name,v=(R=e.maxName)!=null?R:e.name,w=c.useRef(null),C=c.useRef(null),k=c.useRef(null),E=c.useRef(null),N=c.useRef(null),S=c.useRef(null),T=c.useRef(null),[j,$]=c.useState(null),[M]=pt(),D=ot(),P=Ke(),B=((he=D==null?void 0:D.attributes)==null?void 0:he.id)||P,L=`${B}-min`,A=`${B}-max`,W=(D==null?void 0:D.disabled)||e.disabled,re=F(ct.root,W&&ct["--disabled"],u&&ct[`--orientation-${u}`],_),Z=c.useCallback(J=>{const G=w.current;if(!G)return;const se=b?G.clientHeight:G.clientWidth,ce=G.getBoundingClientRect()[b?"top":"left"]+qi/2,Ce=J-ce,Me=se-qi;let Ie=Ce/Me;(M||b)&&(Ie=1-Ie);let me=(r-n)*Ie+n;return me=Math.max(n,Math.min(r,me)),Ur(me,s)},[r,n,M,s,b]),Q=J=>(J-n)/(r-n)*100,U=c.useCallback(J=>{var De,Qe,Ve;if(b)return;const G=J===L?E:N,se=J===L?C:k;let ie=0;const ce=(De=w.current)==null?void 0:De.getBoundingClientRect(),Ce=(Qe=G.current)==null?void 0:Qe.getBoundingClientRect(),Me=(Ve=se.current)==null?void 0:Ve.getBoundingClientRect(),Ie=ce==null?void 0:ce.left,me=Ie&&Ie+(ce==null?void 0:ce.width),ve=Me&&Ce&&Me.left-Ce.width/2,xe=Me&&Ce&&Me.left+Ce.width/2;ve&&Ie&&ve<Ie&&(ie=Ce.width/2-8),xe&&me&&xe>me&&(ie=-(Ce.width/2-8));const Ae=G.current;Ae&&Ae.style.setProperty("--rs-slider-tooltip-offset",`${ie||0}px`)},[L,b]),te=c.useCallback((J,G={})=>{var ie,ce,Ce;if(!o)return;const se={minValue:J,maxValue:y,name:t,minName:x,maxName:v};G.commit&&((ie=g.current)==null||ie.call(g,se)),G.native&&!j&&((ce=g.current)==null||ce.call(g,se)),G.native&&((Ce=h.current)==null||Ce.call(h,se)),Wi(S.current,J.toString())},[o,y,t,x,v,j,g,h]),X=c.useCallback((J,G={})=>{var ie,ce,Ce;const se=o?{minValue:f,maxValue:J,name:t,minName:x,maxName:v}:{value:J,name:t};G.commit&&((ie=g.current)==null||ie.call(g,se)),G.native&&!j&&((ce=g.current)==null||ce.call(g,se)),G.native&&((Ce=h.current)==null||Ce.call(h,se)),Wi(T.current,J.toString())},[o,f,t,x,v,g,j,h]),oe=({nativeEvent:J})=>{if(W)return;let G,se;const ie=Oi({event:J,vertical:b}),ce=Z(ie);[{ref:C,id:L},{ref:k,id:A}].forEach(Me=>{if(!Me.ref.current)return;const me=Me.ref.current.getBoundingClientRect(),ve=Math.abs((b?me.top:me.left)-ie);(G===void 0||ve<=G)&&(G=ve,se=Me.id)}),!(!se||ce===void 0)&&(se===L&&te(ce),se===A&&X(ce),$(se))},$e=J=>{W||(J.stopPropagation(),Jt(),$(L))},de=J=>{W||(J.stopPropagation(),Jt(),$(A))},K=c.useCallback(()=>{var J,G;j===L&&f!==void 0&&(te(f,{commit:!0}),(J=S.current)==null||J.focus()),j===A&&(X(y,{commit:!0}),(G=T.current)==null||G.focus()),ko(),$(null)},[f,y,te,X,j,L,A]),ue=c.useCallback(J=>{if(!j)return;const G=Oi({event:J,vertical:b}),se=Z(G);if(se===void 0)return;let ie=j;j===L&&se>y&&(ie=A),j===A&&f&&se<f&&(ie=L),ie===L&&te(se),ie===A&&X(se),j!==ie&&$(ie)},[j,f,y,Z,X,te,A,L,b]);c.useEffect(()=>{U(L),U(A)},[L,A,f,y,U]),c.useEffect(()=>(window.addEventListener("mouseup",K),window.addEventListener("touchend",K),window.addEventListener("mousemove",ue),window.addEventListener("touchmove",ue),()=>{window.removeEventListener("mouseup",K),window.removeEventListener("touchend",K),window.removeEventListener("mousemove",ue),window.removeEventListener("touchmove",ue)}),[K,ue]);const ye=f&&Q(f),O=Q(y);return i.jsxs("div",z(p({},m),{className:re,onMouseDown:oe,onTouchStart:oe,children:[i.jsx("div",{className:ct.bar,ref:w,children:i.jsx("div",{className:ct.selection,style:{"--rs-slider-selection-start":`${ye||0}%`,"--rs-slider-selection-size":`${O-(ye||0)}%`}})}),i.jsxs("div",{className:ct.thumbs,children:[f!==void 0&&ye!==void 0&&i.jsx(Yr,{id:L,active:L===j,name:x,disabled:W,onChange:te,value:f,onDragStart:$e,position:ye,max:r,min:n,ref:C,tooltipRef:E,inputRef:S,renderValue:d,step:s,orientation:u}),i.jsx(Yr,{id:A,active:A===j,name:v,disabled:W,onChange:X,value:y,onDragStart:de,position:O,max:r,min:n,ref:k,tooltipRef:N,inputRef:T,renderValue:d,step:s,orientation:u})]})]}))};Bo.displayName="SliderControlled";const Ui=(e,t,o)=>Math.min(Math.max(e,t),o),Yi=e=>{const{min:t,max:o,onChange:r,range:n}=e,s="defaultMinValue"in e&&e.defaultMinValue!==void 0&&e.defaultMinValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||t,l="defaultMaxValue"in e&&e.defaultMaxValue!==void 0&&e.defaultMaxValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||(n?o:t),[a,d]=c.useState(Ui(s,t,o)),[_,m]=c.useState(Ui(l,t,o)),u=g=>{n||(m(g.value),r==null||r(g))},h=g=>{n&&(d(g.minValue),m(g.maxValue),r==null||r(g))};return n?i.jsx(Bo,z(p({},e),{min:t,max:o,minValue:a,maxValue:_,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:h})):i.jsx(Bo,z(p({},e),{min:t,max:o,value:_,defaultValue:void 0,onChange:u}))};Yi.displayName="SliderUncontrolled";const Ki=e=>{const n=e,{min:t=0,max:o=100}=n,r=pe(n,["min","max"]);return"value"in e&&e.value!==void 0||"minValue"in e&&"maxValue"in e&&e.minValue!==void 0&&e.maxValue!==void 0?i.jsx(Bo,z(p({},r),{min:t,max:o})):i.jsx(Yi,z(p({},r),{min:t,max:o}))};Ki.displayName="Slider";const Gi={root:"_root_1as3o_1","--animated":"_--animated_1as3o_6"},Kr=e=>{const{children:t,active:o,attributes:r}=e,n=c.useRef(null),s=c.useRef(!1),[l,a]=c.useState(o?"auto":null),d=F(Gi.root,s.current&&l!=="auto"&&Gi["--animated"]),_=m=>{m.propertyName==="height"&&a(o?"auto":null)};return c.useEffect(()=>{tt(()=>{s.current=!0})},[]),fe(()=>{const m=n.current;!m||!s.current||(o?(m.style.height="auto",requestAnimationFrame(()=>{const u=m.clientHeight;m.style.height="0",requestAnimationFrame(()=>{a(u)})})):(m.style.height=`${m.clientHeight}px`,requestAnimationFrame(()=>{a(0)})))},[o]),i.jsx("div",z(p({},r),{className:d,ref:n,style:l!==null?{height:l,overflow:l==="auto"?"visible":void 0}:void 0,onTransitionEnd:_,role:"region",hidden:!o&&l===null,children:t}))};Kr.displayName="Expandable";const _d={verticalDivider:"_verticalDivider_oa23g_1"},md=e=>{const{title:t,subtitle:o,children:r,direction:n,className:s,attributes:l,labelDisplay:a,step:d,completed:_,active:m,last:u}=e,h=a&&ae(a,b=>b==="hidden"),g=i.jsx(H,{gap:3,grow:!0,children:i.jsxs(H.Item,{children:[i.jsx(ne,{variant:"body-3",weight:"medium",children:t}),i.jsx(ne,{variant:"caption-1",color:"neutral-faded",children:o})]})});return i.jsxs(H,{attributes:l,className:s,children:[i.jsxs(H,{direction:"row",gap:2,align:"center",position:"static",children:[i.jsxs(H.Item,{children:[i.jsx(H,{align:"center",justify:"center",backgroundColor:m||_?"primary":"neutral-faded",borderColor:m||_?void 0:"neutral-faded",borderRadius:"circular",as:"span",width:8,height:8,zIndex:5,children:i.jsx(ne,{variant:"body-3",weight:m?"bold":"medium",children:_?i.jsx(ge,{svg:Mr,size:4}):d})}),n==="column"&&!u&&i.jsx(eo,{vertical:!0,className:_d.verticalDivider})]}),a?i.jsx(Nt,{hide:h,children:g}):g]}),n==="column"&&r&&i.jsx(Kr,{active:m,children:i.jsx(H,{paddingStart:10,paddingTop:2,children:r})})]})},Gr=e=>null,Xi=e=>{const{children:t,direction:o="row",activeId:r,labelDisplay:n,gap:s=3,className:l,attributes:a}=e,d=o==="column",_=c.Children.count(t);return i.jsx(H,{attributes:a,direction:o,align:d?"stretch":"center",className:l,gap:s,wrap:!1,children:c.Children.map(t,(m,u)=>{if(!c.isValidElement(m)||m.type!==Gr)return null;const h=m.props,g=h.id||`${u}`;return i.jsxs(c.Fragment,{children:[i.jsx(md,z(p({},h),{id:g,active:(r==null?void 0:r.toString())===g,step:u+1,last:u===_-1,direction:o,labelDisplay:n})),!d&&u<_-1&&i.jsx(H,{grow:!0,children:i.jsx(eo,{})})]},u)})})};Xi.displayName="Stepper",Gr.displayName="Stepper.Item";const Zi=Xi;Zi.Item=Gr;const Tt={root:"_root_icbs0_1","--reversed":"_--reversed_icbs0_9",input:"_input_icbs0_14",area:"_area_icbs0_26",thumb:"_thumb_icbs0_30",hitbox:"_hitbox_icbs0_76","--size-small":"_--size-small_icbs0_1","--size-medium":"_--size-medium_icbs0_1","--size-large":"_--size-large_icbs0_1","--size-small--m":"_--size-small--m_icbs0_1","--size-medium--m":"_--size-medium--m_icbs0_1","--size-large--m":"_--size-large--m_icbs0_1","--size-small--l":"_--size-small--l_icbs0_1","--size-medium--l":"_--size-medium--l_icbs0_1","--size-large--l":"_--size-large--l_icbs0_1","--size-small--xl":"_--size-small--xl_icbs0_1","--size-medium--xl":"_--size-medium--xl_icbs0_1","--size-large--xl":"_--size-large--xl_icbs0_1"},Ji=e=>{var v;const{children:t,name:o,checked:r,size:n="medium",reversed:s,defaultChecked:l,onChange:a,onFocus:d,onBlur:_,className:m,attributes:u}=e,h=F(Tt.root,n&&le(Tt,"--size",n),s&&Tt["--reversed"],m),g=ot(),b=Ke((g==null?void 0:g.attributes.id)||e.id||((v=e.inputAttributes)==null?void 0:v.id)),f=p(p({},e.inputAttributes),g==null?void 0:g.attributes),y=(g==null?void 0:g.disabled)||e.disabled,x=w=>{a&&a({name:o,event:w,checked:w.target.checked})};return i.jsxs("label",z(p({},u),{className:h,children:[i.jsx("input",z(p({type:"checkbox"},f),{className:Tt.input,name:o,checked:r,defaultChecked:l,disabled:y,onChange:x,onFocus:d||(f==null?void 0:f.onFocus),onBlur:_||(f==null?void 0:f.onBlur),id:b})),i.jsxs("span",{className:Tt.area,"aria-hidden":"true",children:[i.jsx("span",{className:Tt.hitbox}),i.jsx("span",{className:Tt.thumb})]}),t&&i.jsx(ne,{variant:ae(n,w=>w==="large"?"body-2":w==="medium"?"body-3":"caption-1"),weight:"medium",color:y?"disabled":void 0,children:t})]}))};Ji.displayName="Switch";const Qi=(e,t={})=>{const{disabled:o}=t,[r]=pt(),[n,s]=c.useState(null),l=c.useCallback(()=>{const a=e.current;if(!a)return;a.clientWidth<a.scrollWidth||s(null);const _=a.scrollLeft*(r?-1:1),m=_>1,u=_+a.clientWidth<a.scrollWidth-1;if(u&&m)return s("both");if(m)return s("start");if(u)return s("end")},[r,e]);return fe(()=>{const a=e.current;if(!a||o)return;const d=Ro(l);return requestAnimationFrame(()=>l()),window.addEventListener("resize",d),a.addEventListener("scroll",d),()=>{window.removeEventListener("resize",d),a.removeEventListener("scroll",d)}},[r,o]),n},qe={root:"_root_xlh1v_13",table:"_table_xlh1v_26",row:"_row_xlh1v_32",cell:"_cell_xlh1v_46",head:"_head_xlh1v_61",body:"_body_xlh1v_61","cell--align-start":"_cell--align-start_xlh1v_1","cell--align-center":"_cell--align-center_xlh1v_1","cell--align-end":"_cell--align-end_xlh1v_1","cell--valign-start":"_cell--valign-start_xlh1v_1","cell--valign-center":"_cell--valign-center_xlh1v_1","cell--valign-end":"_cell--valign-end_xlh1v_1","cell--width-auto":"_cell--width-auto_xlh1v_77","--row-highlighted":"_--row-highlighted_xlh1v_81","--border-outer":"_--border-outer_xlh1v_85","--border-column":"_--border-column_xlh1v_90","--fade-start":"_--fade-start_xlh1v_100","--fade-end":"_--fade-end_xlh1v_101"},Ri=e=>{const{minWidth:t,rowSpan:o,colSpan:r,align:n,verticalAlign:s,tagName:l,padding:a,paddingInline:d,paddingBlock:_,children:m,className:u,attributes:h}=e,g=e.width==="auto"?"0px":e.width,b=et({width:g,minWidth:t}),f=F(qe.cell,b.classNames,(g===0||g==="0px")&&qe["cell--width-auto"],n&&qe[`cell--align-${n}`],s&&qe[`cell--valign-${s}`],u),y=p(p(p({},b.variables),q("--rs-table-p-vertical",_!=null?_:a)),q("--rs-table-p-horizontal",d!=null?d:a));return i.jsx(l,z(p({},h),{className:f,rowSpan:o,colSpan:r,style:y,children:m}))},el=e=>i.jsx(Ri,z(p({},e),{tagName:"td"})),tl=e=>i.jsx(Ri,z(p({},e),{tagName:"th"})),ol=e=>{const{highlighted:t,children:o,className:r,attributes:n}=e,s=e.onClick||(n==null?void 0:n.onClick),l=F(qe.row,t&&qe["--row-highlighted"],r);return i.jsx("tr",z(p({},n),{className:l,onClick:s,tabIndex:s?0:void 0,children:o}))},Ho=e=>{const{children:t,attributes:o,className:r}=e;return i.jsx("tbody",z(p({},o),{className:F(qe.body,r),children:t}))},Xr=e=>{const{children:t,attributes:o,className:r}=e;return i.jsx("thead",z(p({},o),{className:F(qe.head,r),children:t}))},rl=e=>{const{children:t,border:o,columnBorder:r,className:n,attributes:s}=e,l=c.useRef(null),a=Qi(l),d=F(qe.root,n,o&&qe["--border-outer"],r&&qe["--border-column"],(a==="start"||a==="both")&&qe["--fade-start"],(a==="end"||a==="both")&&qe["--fade-end"]),[_]=c.Children.toArray(t),m=c.isValidElement(_),u=m&&_.type===Ho,h=m&&_.type===Xr;return i.jsx("div",z(p({},s),{className:d,ref:l,children:i.jsx("table",{className:qe.table,children:u||h?t:i.jsx(Ho,{children:t})})}))};rl.displayName="Table",el.displayName="TableCell",tl.displayName="TableHeading",ol.displayName="TableRow",Ho.displayName="TableBody",Xr.displayName="TableHead";const Bt=rl;Bt.Cell=el,Bt.Heading=tl,Bt.Row=ol,Bt.Body=Ho,Bt.Head=Xr;const nl=c.createContext({}),hd=nl.Provider,Zr=e=>{const r=c.useContext(nl),{id:t}=r,o=pe(r,["id"]);return z(p({},o),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},Jr=e=>{const{children:t,value:o,onChange:r,onSilentChange:n,itemWidth:s,variant:l,name:a,disableSelectionAnimation:d,direction:_="row",size:m="medium"}=e,u=Ke(),h=c.useRef(null),g=c.useRef(h.current),b=c.useRef(null),[f,y]=c.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),x=v=>{v!==void 0&&n&&n({value:v,name:a})};return i.jsx(hd,{value:{value:o,name:a,size:m,direction:_,itemWidth:s,variant:l,onChange:r,id:u,setDefaultValue:x,elActiveRef:h,elPrevActiveRef:g,elScrollableRef:b,selection:f,setSelection:y,disableSelectionAnimation:d},children:t})};Jr.displayName="TabsControlled";const sl=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=c.useState(t),s=({value:a})=>{n(a),o&&o({value:a})},l=({value:a})=>{n(a)};return i.jsx(Jr,z(p({},e),{onChange:s,onSilentChange:l,value:r,defaultValue:void 0}))};sl.displayName="TabsUncontrolled";const il=e=>{const{value:t}=e;return t!==void 0?i.jsx(Jr,p({},e)):i.jsx(sl,p({},e))};il.displayName="Tabs";const _e={root:"_root_zx0gj_25",inner:"_inner_zx0gj_39",list:"_list_zx0gj_48",listItem:"_listItem_zx0gj_53",button:"_button_zx0gj_58",buttonContent:"_buttonContent_zx0gj_85",icon:"_icon_zx0gj_93",radio:"_radio_zx0gj_102",item:"_item_zx0gj_106","item--active":"_item--active_zx0gj_114","item--disabled":"_item--disabled_zx0gj_119",selector:"_selector_zx0gj_125","selector--hidden":"_selector--hidden_zx0gj_148","selector--animated":"_selector--animated_zx0gj_152",control:"_control_zx0gj_159","control--active":"_control--active_zx0gj_170","control--next":"_control--next_zx0gj_179","control--prev":"_control--prev_zx0gj_183",panel:"_panel_zx0gj_188","panel--hidden":"_panel--hidden_zx0gj_195","--scrollable":"_--scrollable_zx0gj_200","--direction-row":"_--direction-row_zx0gj_225","--direction-column":"_--direction-column_zx0gj_267","--variant-borderless":"_--variant-borderless_zx0gj_312","--variant-pills":"_--variant-pills_zx0gj_313","--variant-pills-elevated":"_--variant-pills-elevated_zx0gj_314","--size-medium":"_--size-medium_zx0gj_394","--size-large":"_--size-large_zx0gj_399","--item-width-equal":"_--item-width-equal_zx0gj_404",buttonText:"_buttonText_zx0gj_422","--fade-start":"_--fade-start_zx0gj_432","--fade-end":"_--fade-end_zx0gj_433"},Qr=c.forwardRef((e,t)=>{const{value:o,children:r,icon:n,href:s,disabled:l,attributes:a}=e,{onChange:d,panelId:_,buttonId:m,name:u,size:h,value:g,selection:b,elActiveRef:f,elPrevActiveRef:y,elScrollableRef:x}=Zr(o),v=c.useRef(null),w=g===o,C=w&&b.status==="idle",k=F(_e.item,C&&_e["item--active"],l&&_e["item--disabled"]),E=!!u,N={role:"tab",tabIndex:w?0:-1,"aria-selected":w},S=c.useCallback(()=>{y.current=f.current,f.current=v.current},[f,y]),T=()=>{var W,re;if(s&&!d)return;const j=x.current,$=(W=v.current)==null?void 0:W.parentElement,M=(re=f.current)==null?void 0:re.parentElement;if(d&&d({value:o,name:u}),!j||!$||!M||j.scrollWidth===j.clientWidth||!x.current)return;const D=48,P=v.current&&Gl(v.current,Z=>Z.hasAttribute("data-rs-tabs-item"));if(!P)return;const B=x.current,L=P.offsetLeft-B.scrollLeft,A=B.scrollLeft+B.clientWidth-(P.offsetLeft+P.clientWidth);(L<D||A<D)&&x.current.scrollTo({left:P.offsetLeft+P.clientWidth/2-B.clientWidth/2,behavior:"smooth"})};return fe(()=>{w&&S()},[w,S]),i.jsx("div",z(p({},a),{className:k,ref:v,role:"presentation",children:i.jsxs(je,{ref:t,href:s,disableFocusRing:!0,disabled:l,onClick:u?void 0:T,className:_e.button,as:u?"label":void 0,attributes:z(p({},!E&&N),{"aria-controls":_,id:m}),children:[u&&i.jsx(_o,{type:"radio",name:u,value:o,checked:C,onChange:T,className:_e.radio}),i.jsxs("span",{className:_e.buttonContent,children:[n&&i.jsx(ge,{svg:n,className:_e.icon,size:4}),r&&i.jsx(ne,{variant:h==="large"?"body-2":"body-3",weight:"medium",className:_e.buttonText,children:r})]})]})}))});Qr.displayName="Tabs.Item";const ll=(e,t)=>e===t||!e?null:e.classList.contains(_e.listItem)?e:ll(e.parentElement,t),al=e=>{const{children:t,className:o,attributes:r}=e,{value:n,setDefaultValue:s,itemWidth:l,variant:a,name:d,direction:_,size:m,selection:u,setSelection:h,elActiveRef:g,elPrevActiveRef:b,elScrollableRef:f,disableSelectionAnimation:y}=Zr(),[x]=pt(),v=Qi(f,{disabled:l==="equal"}),w=F(_e.root,m&&_e[`--size-${m}`],_&&_e[`--direction-${_}`],l&&_e[`--item-width-${l}`],a&&_e[`--variant-${a}`],v&&_e["--scrollable"],(v==="start"||v==="both")&&_e["--fade-start"],(v==="end"||v==="both")&&_e["--fade-end"],o),C=F(_e.selector,u.status==="idle"&&_e["selector--hidden"],u.status==="animated"&&_e["selector--animated"]),k=()=>{f.current.scrollBy({left:Math.ceil(f.current.clientWidth/2)*(x?-1:1),behavior:"smooth"})},E=()=>{f.current.scrollBy({left:Math.ceil(f.current.clientWidth/2)*(x?1:-1),behavior:"smooth"})},N=()=>{h(T=>z(p({},T),{status:"idle"}))},S=c.useCallback(T=>{if(!f.current)return null;const j=ll(T,f.current);return j?{scaleX:j.clientWidth,scaleY:j.clientHeight,top:j.offsetTop,left:j.offsetLeft}:null},[f]);return nr({ref:f,disabled:!!d}),fe(()=>{if(n)return;const T=c.Children.toArray(t)[0];if(!c.isValidElement(T)||!T||T.type!==Qr)return;const j=T.props;s(j.value)},[n]),fe(()=>{if(!b.current||b.current===g.current)return;const T=S(b.current);if(T){if(y){h(z(p({},T),{status:"idle"}));return}h(z(p({},T),{status:"prepared"}))}},[n,S,y]),fe(()=>{if(u.status!=="prepared"||!g.current)return;const T=S(g.current);T&&h(z(p({},T),{status:"animated"}))},[u]),i.jsxs("div",z(p({},r),{className:w,children:[i.jsx("div",{className:_e.inner,ref:f,children:i.jsxs("div",{className:_e.list,role:"tablist",children:[c.Children.map(t,(T,j)=>{if(!c.isValidElement(T))return null;const $=T.props;return i.jsx("div",{className:_e.listItem,"data-rs-tabs-item":!0,children:T},$.value||T.key||j)}),!y&&i.jsx("div",{onTransitionEnd:N,className:C,style:{"--rs-tab-selection-x":u.left,"--rs-tab-selection-y":u.top,"--rs-tab-selection-scale-x":u.scaleX,"--rs-tab-selection-scale-y":u.scaleY}})]})}),i.jsx(je,{onClick:E,touchHitbox:!0,attributes:{"aria-hidden":!0,tabIndex:-1},className:[_e.control,_e["control--prev"],(v==="start"||v==="both")&&_e["control--active"]],children:i.jsx(ge,{svg:Do,size:5})}),i.jsx(je,{onClick:k,touchHitbox:!0,attributes:{"aria-hidden":!0,tabIndex:-1},className:[_e.control,_e["control--next"],(v==="end"||v==="both")&&_e["control--active"]],children:i.jsx(ge,{svg:Pt,size:5})})]}))};al.displayName="Tabs.List";const cl=e=>{const{value:t,children:o,className:r,attributes:n}=e,{value:s,panelId:l,buttonId:a}=Zr(t),[d,_]=c.useState(!0),m=c.useRef(null),u=t===s,h=F(_e.panel,!u&&_e["panel--hidden"],r);return c.useEffect(()=>{const g=m.current;if(!g)return;const b=()=>{_(!Xt(g).length)};b();const f=new MutationObserver(b);return f.observe(g,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex","disabled","href"]}),()=>f.disconnect()},[]),i.jsx("div",z(p({},n),{ref:m,className:h,tabIndex:d?0:void 0,role:"tabpanel",id:l,"aria-labelledby":a,children:u&&o}))};cl.displayName="Tabs.Panel";const Oo=il;Oo.Item=Qr,Oo.List=al,Oo.Panel=cl;const $t={root:"_root_72pr2_1",input:"_input_72pr2_20","--size-medium":"_--size-medium_72pr2_1","--size-large":"_--size-large_72pr2_1","--size-xlarge":"_--size-xlarge_72pr2_1","--variant-faded":"_--variant-faded_72pr2_87","--variant-ghost":"_--variant-ghost_72pr2_95","--variant-headless":"_--variant-headless_72pr2_103","--status-error":"_--status-error_72pr2_111","--resize-none":"_--resize-none_72pr2_122","--resize-auto":"_--resize-auto_72pr2_123","--size-medium--m":"_--size-medium--m_72pr2_1","--size-large--m":"_--size-large--m_72pr2_1","--size-xlarge--m":"_--size-xlarge--m_72pr2_1","--size-medium--l":"_--size-medium--l_72pr2_1","--size-large--l":"_--size-large--l_72pr2_1","--size-xlarge--l":"_--size-xlarge--l_72pr2_1","--size-medium--xl":"_--size-medium--xl_72pr2_1","--size-large--xl":"_--size-large--xl_72pr2_1","--size-xlarge--xl":"_--size-xlarge--xl_72pr2_1"},dl=e=>{var N,S;const{onChange:t,onFocus:o,onBlur:r,name:n,value:s,defaultValue:l,placeholder:a,size:d="medium",variant:_="outline",resize:m,className:u,attributes:h}=e,[g,b]=c.useState(s||l||""),f=ot(),y=Ke(e.id),x=((N=f==null?void 0:f.attributes)==null?void 0:N.id)||((S=e.inputAttributes)==null?void 0:S.id)||y,v=(f==null?void 0:f.disabled)||e.disabled,w=(f==null?void 0:f.hasError)||e.hasError,C=p(p({},e.inputAttributes),f==null?void 0:f.attributes),k=F($t.root,d&&le($t,"--size",d),w&&$t["--status-error"],v&&$t["--disabled"],_&&$t[`--variant-${_}`],m!==void 0&&$t[`--resize-${m}`],u),E=T=>{const j=T.target.value;t==null||t({name:n,value:j,event:T}),m==="auto"&&typeof s!="string"&&b(j)};return c.useEffect(()=>{typeof s!="string"||m!=="auto"||b(s)},[s,m]),i.jsx("div",z(p({},h),{"data-rs-aligner-target":!0,className:k,"data-rs-textarea-value":g,children:i.jsx("textarea",z(p({rows:3},C),{className:$t.input,disabled:v,name:n,placeholder:a,value:s,defaultValue:l,onChange:E,onFocus:o||(C==null?void 0:C.onFocus),onBlur:r||(C==null?void 0:C.onBlur),id:x}))}))};dl.displayName="TextArea";const ul=dl;ul.Aligner=to;const Rr={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},Wo=e=>{const{children:t,markerSlot:o,className:r,attributes:n}=e,s=o!==null,l=F(Rr.item,!s&&Rr["item--full-width"],r);return i.jsxs(H,{as:"li",direction:"row",align:"stretch",gap:3,attributes:n,className:l,children:[s&&i.jsx("span",{className:Rr.marker,children:o}),i.jsx(H.Item,{grow:!0,children:t})]})},_l=e=>{const{children:t,className:o,attributes:r}=e,n=F(o);return i.jsx("ul",z(p({},r),{className:n,children:c.Children.map(t,(s,l)=>c.isValidElement(s)&&s.type===Wo?s:i.jsx(Wo,{children:s},l))}))};_l.displayName="Timeline",Wo.displayName="Timeline.Item";const ml=_l;ml.Item=Wo;const hl={short:4e3,long:8e3},fo=["top-start","top","top-end","bottom-start","bottom","bottom-end"],fl={queues:fo.reduce((e,t)=>p({[t]:[]},e),{}),id:"",show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},qo=c.createContext(fl),gl=()=>{const{add:e,hide:t,id:o}=c.useContext(qo);return c.useMemo(()=>({show:e,hide:t,id:o}),[e,t,o])},nt={container:"_container_13298_1","container--visible":"_container--visible_13298_1",wrapper:"_wrapper_13298_12","container--index-0":"_container--index-0_13298_1","container--index-1":"_container--index-1_13298_1","container--index-2":"_container--index-2_13298_112","container--index-overflow":"_container--index-overflow_13298_116",region:"_region_13298_65","region--nested":"_region--nested_13298_1","region--position-top":"_region--position-top_13298_1","region--position-top-start":"_region--position-top-start_13298_1","region--position-top-end":"_region--position-top-end_13298_1","region--position-bottom":"_region--position-bottom_13298_1","region--position-bottom-start":"_region--position-bottom-start_13298_1","region--position-bottom-end":"_region--position-bottom-end_13298_1"},bl=e=>{const{size:t="small",text:o,children:r,color:n="inverted",icon:s,title:l,actionsSlot:a,startSlot:d,collapsed:_,className:m,attributes:u}=e;let h=n==="inverted"||n==="neutral"?"elevation-overlay":n;n==="neutral"&&(h=_?"neutral":"elevation-overlay");const g=n==="neutral"?"neutral-faded":"transparent",b=t==="small"?"span":"div",f=t==="large";let y=[];a&&(y=Array.isArray(a)?a:[a]);const x=(l||o)&&i.jsxs(c.Fragment,{children:[l&&i.jsxs(ne,{variant:"body-3",weight:"bold",as:b,children:[l," "]}),i.jsx(ne,{variant:"body-3",as:b,children:o})]}),v=i.jsxs(H,{backgroundColor:h,borderColor:g,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:f?"start":"center",className:[nt.toast,m],attributes:u,children:[s&&i.jsx(ge,{size:5,svg:s,className:nt.icon}),d&&!s&&i.jsx(H.Item,{children:d}),i.jsx(H.Item,{grow:!0,children:i.jsxs(H,{direction:f?"column":"row",align:f?"start":"center",gap:3,children:[i.jsx(H.Item,{grow:!0,children:x&&r||t!=="small"?i.jsxs(H,{gap:.5,children:[x,r&&i.jsx(H,{gap:3,children:r})]}):x||r}),y.length&&i.jsx(H,{direction:"row",align:"center",gap:2,children:y.map((w,C)=>{const k=t==="large"?C===0:C===y.length-1,N={variant:k?"solid":"ghost",size:"small",color:k?n==="neutral"||n==="inverted"?"neutral":"media":"inherit",elevated:n!=="neutral"};return w.type===Te?c.createElement(Te,z(p(p({},N),w.props),{key:C})):w})})]})})]});return n==="inverted"?i.jsx(Dt,{colorMode:"inverted",children:v}):v};bl.displayName="Toast";const pl=e=>{const{toastProps:t,id:o,status:r,inspected:n,index:s}=e,{timeout:l="short"}=t,{show:a,hide:d,remove:_}=c.useContext(qo),[m,u]=c.useState(),h=c.useRef(null),g=c.useRef(!1),b=c.useRef(null),f=r==="entered",y=F(nt.container,f&&nt["container--visible"],s===0&&nt[`container--index-${s}`],!n&&(s===1||s===2)&&nt[`container--index-${s}`],!n&&s>=3&&nt["container--index-overflow"]),x=c.useCallback(()=>{h.current&&clearTimeout(h.current)},[]),v=c.useCallback(()=>{x();const C=typeof l=="string"?hl[l]:l;l!==0&&(h.current=setTimeout(()=>{d(o)},C!=null?C:hl.short))},[d,o,l,x]),w=C=>{C.propertyName==="height"&&(f||_(o))};return c.useEffect(()=>{f&&(n?x():v())},[n,v,x,f]),c.useEffect(()=>{b.current&&u(b.current.clientHeight),a(o),v()},[a,o,v]),c.useEffect(()=>{if(!b.current)return;const C=new It;f?C.trap(b.current,{includeTrigger:!0,mode:"content-menu"}):Zt()&&C.release()},[f]),c.useEffect(()=>{if(!f||s>0)return;const C=()=>{g.current=!0,tt(()=>{g.current=!1}),b.current&&u(b.current.clientHeight)};return window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[f,s]),i.jsx("li",{className:y,style:{height:r==="entered"?`calc(${m}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:g.current?"0s":void 0},onTransitionEnd:w,onFocus:x,onBlur:v,children:i.jsx("span",{className:nt.wrapper,children:i.jsx(bl,z(p({},t),{collapsed:s>0&&!n,attributes:z(p({},t.attributes),{ref:b})}))})})};pl.displayName="ToastContainer";const vl=e=>{const{position:t,nested:o}=e,{queues:r,options:n}=c.useContext(qo),[s,l]=c.useState(!1),a=c.useRef(!1),d=c.useRef(null),_=r[t],{width:m,expanded:u}=(n==null?void 0:n[t])||{},h=F(nt.region,nt[`region--position-${t}`],o&&nt["region--nested"]),g=_.filter(w=>w.status==="entered").length;let b=0;const f=()=>{a.current=!0},y=w=>{let C=w.target,k=!1;for(;C&&C!==d.current&&!k;)k=C.matches(bn),C=C.parentElement;k||l(E=>!E),a.current=!1},x=()=>{a.current||l(!0)},v=()=>{a.current||l(!1)};return c.useEffect(()=>{_.length===0&&l(!1)},[_.length]),_.length?i.jsx("ul",{role:"region","aria-live":"polite",className:h,ref:d,onTouchStart:f,onClick:y,onMouseEnter:x,onMouseLeave:v,style:{width:m},children:_.map((w,C)=>{const k=g-C+b-1;return w.status!=="entered"&&(b+=1),i.jsx(pl,z(p({},w),{index:k,inspected:s||!!u}),w.id)})}):null};vl.displayName="ToastRegion";let fd=0;const gd=()=>`__rs-toast-${fd++}`,bd=(e,t)=>{let o;switch(t.type){case"add":{const r=t.payload.toastProps||{},{position:n="bottom-end"}=r,s=pe(r,["position"]);return z(p({},e),{[n]:[...e[n],{id:t.payload.id,toastProps:s,status:"entering"}]})}case"show":{const{id:n}=t.payload;return o=p({},e),fo.forEach(s=>{o[s]=o[s].map(l=>l.status!=="entering"?l:l.id===n?z(p({},l),{status:"entered"}):l)}),o}case"hide":{const{id:n}=t.payload;return o=p({},e),fo.forEach(s=>{o[s]=o[s].map(l=>l.id===n?z(p({},l),{status:"exiting"}):l)}),o}case"remove":{const{id:n}=t.payload;return o=p({},e),fo.forEach(s=>{o[s]=o[s].filter(l=>l.id!==n)}),o}}},en=e=>{const{children:t,options:o}=e,r=gl(),n=c.useId(),[s,l]=c.useReducer(bd,fl.queues),a=c.useCallback(h=>{const g=gd();return l({type:"add",payload:{toastProps:h,id:g}}),g},[]),d=c.useCallback(h=>{l({type:"show",payload:{id:h}})},[]),_=c.useCallback(h=>{l({type:"hide",payload:{id:h}})},[]),m=c.useCallback(h=>{l({type:"remove",payload:{id:h}})},[]),u=c.useMemo(()=>({queues:s,id:n,add:a,show:d,hide:_,remove:m,inspecting:!1,options:o}),[s,d,_,a,m,n,o]);return i.jsxs(qo.Provider,{value:u,children:[t,fo.map(h=>i.jsx(vl,{position:h,nested:!!r.id},h))]})};en.displayName="ToastProiver";const yl=c.createContext(null),pd=()=>c.useContext(yl),tn=e=>{const m=e,{onChange:t,value:o,selectionMode:r="single",children:n,color:s,selectedColor:l}=m,a=pe(m,["onChange","value","selectionMode","children","color","selectedColor"]),d=c.useRef(null),_=u=>{const{event:h,value:g,checked:b}=u;if(!g)return;let f=r==="single"?[g]:[...o];r==="multiple"&&(b?f.push(g):f=f.filter(y=>y!==g)),t&&t({value:f,event:h})};return nr({ref:d}),i.jsx(yl.Provider,{value:{onChange:_,value:o,selectedColor:l,color:s},children:i.jsx(Te.Group,z(p({},a),{attributes:p({ref:d},a==null?void 0:a.attributes),children:n}))})};tn.displayName="ToggleButtonGroupControlled";const xl=e=>{const{defaultValue:t,onChange:o}=e,[r,n]=c.useState(t||[]),s=l=>{l.value&&(n(l.value),o&&o(l))};return i.jsx(tn,z(p({},e),{value:r,defaultValue:void 0,onChange:s}))};xl.displayName="ToggleButtonGroupUncontrolled";const wl=e=>{const{value:t}=e;return t!==void 0?i.jsx(tn,p({},e)):i.jsx(xl,p({},e))};wl.displayName="ToggleButtonGroup";const on=e=>{var g,b,f;const h=e,{variant:t="outline",selectedColor:o,value:r,onChange:n,onClick:s,color:l}=h,a=pe(h,["variant","selectedColor","value","onChange","onClick","color"]),d=pd(),_=(b=r?(g=d==null?void 0:d.value)==null?void 0:g.includes(r):void 0)!=null?b:e.checked,m=_&&(o||(d==null?void 0:d.selectedColor))||l||(d==null?void 0:d.color),u=y=>{var v;const x={checked:!_,value:r!=null?r:"",event:y};s==null||s(y),d?(v=d==null?void 0:d.onChange)==null||v.call(d,x):n==null||n(x)};return i.jsx(Te,z(p({},a),{color:m,variant:t,onClick:u,highlighted:_,attributes:z(p({},a.attributes),{"aria-pressed":_,tabIndex:(f=d==null?void 0:d.value)!=null&&f.length?_?0:-1:void 0})}))};on.displayName="ToggleButtonControlled";const Cl=e=>{const l=e,{defaultChecked:t,onChange:o}=l,r=pe(l,["defaultChecked","onChange"]),n=Ct(t),s=a=>{o==null||o(a),n.toggle(a.checked)};return i.jsx(on,z(p({},r),{onChange:s,checked:n.active}))};Cl.displayName="ToggleButtonUncontrolled";const Nl=e=>{const{checked:t}=e;return t!==void 0?i.jsx(on,p({},e)):i.jsx(Cl,p({},e))};Nl.displayName="ToggleButton";const vd={root:"_root_1vb26_1"},kl=e=>{const a=e,{text:t,children:o,position:r="bottom",color:n="inverted",contentMaxWidth:s="360px"}=a,l=pe(a,["text","children","position","color","contentMaxWidth"]);return t?i.jsxs(ut,z(p({},l),{position:r,triggerType:"hover",groupTimeouts:l.active===void 0,contentMaxWidth:s,children:[i.jsx(ut.Trigger,{children:o}),i.jsx(ut.Content,{children:i.jsx(Dt,{colorMode:n,children:i.jsx(ne,{variant:"caption-1",className:vd.root,children:t})})})]})):o({ref:null})};kl.displayName="Tooltip";const yd={root:"_root_1cpr1_1"},zl=e=>{const{theme:t,defaultTheme:o="reshaped",colorMode:r,defaultColorMode:n,defaultViewport:s,toastOptions:l,scoped:a,className:d}=e,_=F(yd.root,d),m=c.useRef(null),u=mr();return i.jsx(Sn,{children:i.jsx(Jn,{defaultMode:n||u.mode||"light",mode:r,scopeRef:u&&a?m:void 0,children:i.jsx(Zn,{name:t,defaultName:o,className:_,scoped:a,scopeRef:u&&a?m:void 0,children:i.jsx(Qc,{defaultViewport:s,children:i.jsx(en,{options:l,children:e.children})})})})})};zl.displayName="Reshaped";const rn=c.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),nn=e=>{const{children:t,onToggle:o,active:r,iconPosition:n,iconSize:s,gap:l,className:a,attributes:d}=e,_=F(a),m=Ke(),u=ke(o),h=c.useMemo(()=>({triggerId:`${m}-trigger`,contentId:`${m}-content`,active:r,onToggle:u.current,iconPosition:n,iconSize:s,gap:l}),[r,n,s,m,u,l]);return i.jsx("div",z(p({},d),{className:_,children:i.jsx(rn.Provider,{value:h,children:t})}))};nn.displayName="AccordionControlled";const Sl=e=>{const a=e,{defaultActive:t,onToggle:o}=a,r=pe(a,["defaultActive","onToggle"]),[n,s]=c.useState(t||!1),l=d=>{s(d),o==null||o(d)};return i.jsx(nn,z(p({},r),{onToggle:l,active:n}))};Sl.displayName="AccordionUncontrolled";const El=e=>{const{active:t}=e;return t!==void 0?i.jsx(nn,p({},e)):i.jsx(Sl,p({},e))};El.displayName="Accordion";const Tl=e=>{const{children:t}=e,{active:o,triggerId:r,contentId:n,gap:s}=c.useContext(rn);return i.jsx(Kr,{active:o,attributes:{"aria-labelledby":r,id:n},children:s?i.jsx(H,{paddingTop:s,children:t}):t})};Tl.displayName="Accordion.Content";const $l={icon:"_icon_loavs_1","icon--active":"_icon--active_loavs_5"},Ml=e=>{const{children:t}=e,{active:o,onToggle:r,triggerId:n,contentId:s,iconPosition:l="end",iconSize:a}=c.useContext(rn),d=F($l.icon,o&&$l["icon--active"]),_=()=>{r==null||r(!o)},m={"aria-expanded":o,"aria-controls":s,id:n};return typeof t=="function"?i.jsx(i.Fragment,{children:t(z(p({},m),{onClick:_}),{active:o})}):i.jsx(je,{onClick:_,fullWidth:!0,attributes:m,children:i.jsxs(H,{gap:2,direction:l==="start"?"row-reverse":"row",align:"center",children:[i.jsx(H.Item,{grow:!0,children:t}),i.jsx(ge,{size:a||4,svg:vi,className:d})]})})};Ml.displayName="Accordion.Trigger";const sn=El;sn.Trigger=Ml,sn.Content=Tl;const xd={root:"_root_1yz7x_1"},Il=e=>{const{children:t,padding:o=4,width:r,align:n,justify:s,height:l,maxHeight:a,className:d,attributes:_}=e,m=F(xd.root,d);return i.jsx(H,{attributes:_,className:m,paddingInline:o,align:n,justify:s,height:l,maxHeight:a,width:r,maxWidth:"100%",children:t})};Il.displayName="Container";const jl={root:"_root_3bv1t_1",item:"_item_3bv1t_67"},Ll=e=>{const{area:t,colStart:o,colEnd:r,colSpan:n,rowStart:s,rowEnd:l,rowSpan:a,children:d,className:_,as:m="div",attributes:u}=e,h=F(jl.item,_),g=ae(n,y=>y&&`span ${y}`),b=ae(a,y=>y&&`span ${y}`),f=p(p(p(p(p(p(p(p({},u==null?void 0:u.style),q("--rs-grid-area",t)),q("--rs-grid-col-end",g)),q("--rs-grid-col-end",r)),q("--rs-grid-col-start",o)),q("--rs-grid-row-end",b)),q("--rs-grid-row-end",l)),q("--rs-grid-row-start",s));return i.jsx(m,z(p({},u),{className:h,style:f,children:d}))},Dl=e=>{const{areas:t,columns:o,rows:r,gap:n,columnGap:s,rowGap:l,align:a,justify:d,autoColumns:_,autoRows:m,autoFlow:u,children:h,className:g,width:b,height:f,maxWidth:y,as:x="div",attributes:v}=e,w=et({align:a,justify:d,width:b,height:f,maxWidth:y}),C=ae(r,T=>typeof T=="number"?`repeat(${T}, 1fr)`:T),k=ae(o,T=>typeof T=="number"?`repeat(${T}, 1fr)`:T),E=ae(t,T=>T?`"${T==null?void 0:T.join('" "')}"
|
|
2
2
|
`:void 0),N=F(jl.root,w.classNames,g),S=p(p(p(p(p(p(p(p(p(p(p({},v==null?void 0:v.style),q("--rs-grid-gap",n)),q("--rs-grid-column-gap",s)),q("--rs-grid-row-gap",l)),q("--rs-grid-rows",C)),q("--rs-grid-columns",k)),q("--rs-grid-areas",E)),q("--rs-grid-auto-flow",u)),q("--rs-grid-auto-columns",_)),q("--rs-grid-auto-rows",m)),w.variables);return i.jsx(x,z(p({},v),{className:N,style:S,children:h}))};Dl.displayName="Grid",Ll.displayName="Grid.Item";const Pl=Dl;Pl.Item=Ll;const Ht={root:"_root_17pp4_1",item:"_item_17pp4_5",handle:"_handle_17pp4_16","--variant-bordered":"_--variant-bordered_17pp4_34","handle--dragging":"_handle--dragging_17pp4_60","--variant-borderless":"_--variant-borderless_17pp4_46","--direction-row":"_--direction-row_17pp4_69","--direction-column":"_--direction-column_17pp4_73"},wd=(e,t)=>{const{disabled:o,containerRef:r,orientation:n="all"}=t||{},s=ke(e),l=Ct(),a=c.useRef(null),d=c.useRef(null),_=r||d,m=c.useRef({x:0,y:0}),u=n==="vertical"||n==="all",h=n==="horizontal"||n==="all",g=(b,f)=>{var k;const y=a.current;if(!y)return;const v=((k=_.current)!=null?k:document.body).getBoundingClientRect(),w=y==null?void 0:y.getBoundingClientRect(),C={x:0,y:0,triggerX:0,triggerY:0};if(u){const E=Math.round(w.y)-v.y+f;C.y=Math.max(0,Math.min(E,v.height-w.height)),C.triggerY=w.y-v.y}if(h){const E=Math.round(w.x)-v.x+b;C.x=Math.max(0,Math.min(E,v.width-w.width)),C.triggerX=w.x-v.x}e(C)};return Ze({[lo]:()=>h&&g(-20,0),[io]:()=>h&&g(20,0),[no]:()=>u&&g(0,-20),[so]:()=>u&&g(0,20)},[],{ref:a,preventDefault:!0,disabled:o}),c.useEffect(()=>{const b=a.current;if(!b||!l.active)return;const f=x=>{var j,$;const v=x instanceof MouseEvent?x:x.changedTouches[0],C=((j=_.current)!=null?j:document.body).getBoundingClientRect(),k=b.getBoundingClientRect(),E=v.clientX-C.x,N=v.clientY-C.y,S=E-m.current.x,T=N-m.current.y;($=s.current)==null||$.call(s,{x:h?Math.max(0,Math.min(S,C.width-k.width)):0,y:u?Math.max(0,Math.min(T,C.height-k.height)):0,triggerX:k.x-C.x,triggerY:k.y-C.y})},y=()=>{m.current={x:0,y:0},l.deactivate(),ko()};return document.addEventListener("touchmove",f,{passive:!0}),document.addEventListener("touchend",y,{passive:!0}),document.addEventListener("mousemove",f,{passive:!0}),document.addEventListener("mouseup",y,{passive:!0}),()=>{document.removeEventListener("touchmove",f),document.removeEventListener("touchend",y),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",y)}},[l,h,u,_,s]),c.useEffect(()=>{const b=a.current;if(!b||o)return;const f=y=>{const x=y instanceof MouseEvent?y:y.changedTouches[0],v=b.getBoundingClientRect();m.current={x:x.clientX-v.x,y:x.clientY-v.y},l.activate(),Jt()};return b.addEventListener("touchstart",f,{passive:!0}),b.addEventListener("mousedown",f,{passive:!0}),()=>{b.removeEventListener("touchstart",f),b.removeEventListener("mousedown",f)}},[l,o]),{ref:a,containerRef:_,active:l.active}},Fl=c.createContext({}),Cd=e=>{const{children:t}=e,{containerRef:o,onDrag:r,index:n,direction:s}=c.useContext(Fl),{ref:l,active:a}=wd(_=>{r(z(p({},_),{index:n}))},{containerRef:o,orientation:s==="row"?"horizontal":"vertical"}),d=F(Ht.handle,a&&Ht["handle--dragging"]);return t?i.jsx(H.Item,{children:t({ref:l},{direction:s,status:a?"dragging":"idle"})}):i.jsx(H.Item,{className:d,attributes:{role:"button",tabIndex:0,"aria-hidden":!0,ref:_=>{l.current=_}}})},ln=()=>null,Nd=c.forwardRef((e,t)=>{const{children:o,defaultSize:r,minSize:n,maxSize:s}=e,l=c.useRef(null);return i.jsx(H.Item,{grow:!0,className:Ht.item,attributes:{ref:a=>{typeof t=="function"&&t(a),l.current=a},style:{"--rs-resizable-default-size":r,"--rs-resizable-min-size":n,"--rs-resizable-max-size":s}},children:o})}),Al=e=>{const{children:t,variant:o="borderless",height:r,direction:n="row",gap:s=2,className:l,attributes:a}=e,d=F(Ht.root,Ht[`--direction-${n}`],o&&Ht[`--variant-${o}`],l),_=c.useRef(null),m=c.useRef([]),u=n==="row";let h=0,g=0;m.current=[];const b=x=>{const{item:v,grow:w,itemsSize:C,itemsCount:k}=x,{minSize:E,maxSize:N}=v.props,S=w/k/100*C,T=E&&Number(E.replace("px","")),j=N&&Number(N==null?void 0:N.replace("px",""));return!!(T&&T>S||j&&j<S)},f=x=>{const{index:v,x:w,y:C,triggerX:k,triggerY:E}=x,N=m.current[v],S=m.current[v+1];if(!N.el||!S.el)return;const T=m.current.length;let j=T*100,$=0;m.current.forEach((Q,U)=>{Q.el&&($+=u?Q.el.clientWidth:Q.el.clientHeight,!(U===v||U===v+1)&&(j-=Number(Q.el.style.flexGrow||100)))},0);const M=u?N.el.clientWidth:N.el.clientHeight,D=u?N.el.offsetLeft:N.el.offsetTop,P=u?S.el.clientWidth:S.el.clientHeight,B=(u?k:E)-M-D,L=(u?w:C)-B,A=M+P,W=Math.min(1,Math.max(0,(L-D)/A)),re=Math.floor(W*j),Z=Math.floor(j-re);b({item:N,itemsSize:$,grow:re,itemsCount:T})||b({item:S,itemsSize:$,grow:Z,itemsCount:T})||(N.el.style.flexGrow=re.toString(),S.el.style.flexGrow=Z.toString())};c.useEffect(()=>{const x=[];let v=0;m.current.forEach(w=>{w.el&&(v+=u?w.el.clientWidth:w.el.clientHeight)}),m.current.forEach((w,C)=>{if(!w.el)return;const k=(u?w.el.clientWidth:w.el.clientHeight)/v;x[C]=m.current.length*k*100}),m.current.forEach((w,C)=>{!w.el||!x[C]||(w.el.style.flexGrow=x[C].toString(),w.el.setAttribute("data-rs-resizable-item-mounted",""))})},[u]);const y=c.Children.map(t,x=>{const v=c.isValidElement(x);if(v&&x.props&&x.type!==ln)return i.jsx(Fl.Provider,{value:{containerRef:_,index:h++,onDrag:f,direction:n},children:x});if(v&&x.props&&x.type===ln){const w=h;return i.jsx(Nd,z(p({},x.props),{index:g++,ref:C=>{m.current[w]={el:C,props:x.props}}}))}return null});return i.jsx(H,{attributes:z(p({},a),{ref:_}),className:d,height:r,direction:n,align:"stretch",gap:s,children:y})};Al.displayName="Resizable";const an=Al;an.Item=ln,an.Handle=Cd;const ft={root:"_root_xnsfu_1",scrollable:"_scrollable_xnsfu_9",content:"_content_xnsfu_30",scrollbar:"_scrollbar_xnsfu_37",thumb:"_thumb_xnsfu_43","--scrollbar-y":"_--scrollbar-y_xnsfu_59","--scrollbar-x":"_--scrollbar-x_xnsfu_71","--display-visible":"_--display-visible_xnsfu_91","--display-hover":"_--display-hover_xnsfu_96","--scrollbar-dragging":"_--scrollbar-dragging_xnsfu_100"},Vl=e=>{const{ratio:t,position:o,vertical:r,onThumbMove:n}=e,s=ke(n),[l,a]=c.useState(!1),d=c.useRef(0),_=c.useRef(null),m=F(ft.scrollbar,r?ft["--scrollbar-y"]:ft["--scrollbar-x"],l&&ft["--scrollbar-dragging"]),u=f=>{const y=_.current,x=d.current;if(d.current=0,x||!y||f.currentTarget!==y)return;const v=y.getBoundingClientRect(),w=r?f.pageY-v.top:f.pageX-v.left,C=r?y.clientHeight:y.clientWidth;n({value:w/C-t/2,type:"absolute"})},h=c.useCallback(f=>{var w;d.current||(d.current=r?f.pageY:f.pageX);const y=_.current;if(!y||!l)return;const x=r?f.movementY:f.movementX,v=r?y.scrollHeight:y.scrollWidth;(w=s.current)==null||w.call(s,{value:x/v,type:"relative"})},[r,l,s]),g=()=>{a(!0),Jt()},b=c.useCallback(()=>{a(!1),ko()},[]);return c.useEffect(()=>{if(l)return document.addEventListener("mousemove",h),document.addEventListener("mouseup",b),()=>{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",b)}},[h,b,l]),i.jsx("div",{className:m,style:{"--rs-scroll-area-ratio":t,"--rs-scroll-area-position":o},ref:_,onClick:u,onMouseDown:g,"aria-hidden":"true",children:i.jsx("div",{className:ft.thumb})})},Bl=c.forwardRef((e,t)=>{const{children:o,height:r,maxHeight:n,scrollbarDisplay:s="hover",onScroll:l,className:a,attributes:d}=e,[_,m]=c.useState({x:1,y:1}),[u,h]=c.useState({x:0,y:0}),g=c.useRef(null),b=c.useRef(null),f=et({height:r,maxHeight:n}),y=F(ft.root,s&&ft[`--display-${s}`],a),x=F(ft.content,f.classNames),v=c.useCallback(()=>{const E=g.current;E&&m({x:E.clientWidth/E.scrollWidth,y:E.clientHeight/E.scrollHeight})},[]),w=E=>{const{scrollLeft:N,scrollTop:S,clientWidth:T,clientHeight:j,scrollWidth:$,scrollHeight:M}=E.currentTarget;h({x:N/$,y:S/M}),l==null||l({x:$===T?0:N/($-T),y:M===j?0:S/(M-j)})},C=E=>{const N=g.current;if(!N)return;const S=N.scrollHeight*E.value;E.type==="absolute"?N.scrollTop=S:N.scrollTop+=S},k=E=>{const N=g.current;if(!N)return;const S=N.scrollWidth*E.value;E.type==="absolute"?N.scrollLeft=S:N.scrollLeft+=S};return c.useImperativeHandle(t,()=>g.current),fe(()=>{v()},[v]),fe(()=>{const E=b.current;if(!E)return;const N=new ResizeObserver(v);return N.observe(E),()=>N.disconnect()},[v]),i.jsxs("div",z(p({},d),{ref:b,className:y,children:[i.jsx("div",{className:ft.scrollable,ref:g,onScroll:w,children:i.jsx("div",{className:x,style:p({},f.variables),children:o})}),_.y<1&&s!=="hidden"&&i.jsx(Vl,{vertical:!0,onThumbMove:C,ratio:_.y,position:u.y}),_.x<1&&s!=="hidden"&&i.jsx(Vl,{onThumbMove:k,ratio:_.x,position:u.x})]}))});Bl.displayName="ScrollArea";const kd=e=>{const{w:t="auto",h:o=50,minW:r=o,children:n}=e;return i.jsx("div",{style:{width:t,height:o,minWidth:r,padding:"var(--rs-unit-x2)",background:"rgba(var(--rs-color-rgb-background-neutral), 0.32)",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--rs-radius-small)"},children:n})};I.Accordion=sn,I.ActionBar=An,I.Actionable=je,I.Alert=Vn,I.Autocomplete=Ts,I.Avatar=$s,I.Badge=js,I.Breadcrumbs=Fs,I.Button=Te,I.Calendar=Gs,I.Card=Xs,I.Carousel=Zs,I.Checkbox=si,I.CheckboxGroup=ei,I.Container=Il,I.ContextMenu=Ft,I.Dismissible=fr,I.Divider=eo,I.DropdownMenu=Ne,I.FileUpload=ci,I.Flyout=ut,I.FormControl=Io,I.Grid=Pl,I.Hidden=Nt,I.HiddenInput=_o,I.HiddenVisually=Lo,I.Hotkey=ui,I.Icon=ge,I.Image=xr,I.Link=Cr,I.Loader=hr,I.MenuItem=gr,I.Modal=Dr,I.NumberField=xi,I.Overlay=Ir,I.Pagination=Ni,I.PinField=Ei,I.Placeholder=kd,I.Popover=_t,I.Progress=Ti,I.ProgressIndicator=$i,I.Radio=Mi,I.RadioGroup=ni,I.Reshaped=zl,I.Resizable=an,I.Scrim=Ii,I.ScrollArea=Bl,I.Select=ho,I.Skeleton=Bi,I.Slider=Ki,I.Stepper=Zi,I.Switch=Ji,I.Table=Bt,I.Tabs=Oo,I.Text=ne,I.TextArea=ul,I.TextField=jo,I.Theme=Dt,I.Timeline=ml,I.ToastProvider=en,I.ToggleButton=Nl,I.ToggleButtonGroup=wl,I.Tooltip=kl,I.TrapFocus=It,I.View=H,I.classNames=F,I.responsivePropDependency=ae,I.useFormControl=ot,I.useHandlerRef=ke,I.useHotkeys=Ze,I.useIsomorphicLayoutEffect=fe,I.useKeyboardArrowNavigation=nr,I.useKeyboardMode=ka,I.useOnClickOutside=En,I.useRTL=pt,I.useResponsiveClientValue=mi,I.useScrollLock=sr,I.useTheme=Gn,I.useToast=gl,I.useToggle=Ct,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -34,6 +34,7 @@ export const transformToTailwind = (theme) => {
|
|
|
34
34
|
if (cssTokenName.startsWith("border-")) {
|
|
35
35
|
const name = cssTokenName.replace("border-", "");
|
|
36
36
|
variables[`--border-color-${name}`] = configValue;
|
|
37
|
+
variables[`--outline-color-${name}`] = configValue;
|
|
37
38
|
return;
|
|
38
39
|
}
|
|
39
40
|
variables[`--color-${cssTokenName}`] = configValue;
|
|
@@ -49,21 +49,7 @@ export function createSafeArea(options) {
|
|
|
49
49
|
}
|
|
50
50
|
const contentRect = contentRef.current.getBoundingClientRect();
|
|
51
51
|
const [corner1, corner2] = getContentCorners(contentRect, position);
|
|
52
|
-
// Add buffer to origin based on position to extend safe area
|
|
53
|
-
const buffer = 10;
|
|
54
52
|
const origin = { x: passedOrigin.x, y: passedOrigin.y };
|
|
55
|
-
if (position?.startsWith("bottom")) {
|
|
56
|
-
origin.y -= buffer;
|
|
57
|
-
}
|
|
58
|
-
else if (position?.startsWith("top")) {
|
|
59
|
-
origin.y += buffer;
|
|
60
|
-
}
|
|
61
|
-
else if (position?.startsWith("start")) {
|
|
62
|
-
origin.x += buffer;
|
|
63
|
-
}
|
|
64
|
-
else if (position?.startsWith("end")) {
|
|
65
|
-
origin.x -= buffer;
|
|
66
|
-
}
|
|
67
53
|
const triangle = [origin, corner1, corner2];
|
|
68
54
|
let timeoutId = null;
|
|
69
55
|
const cleanup = () => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reshaped",
|
|
3
3
|
"description": "Professionally crafted design system in React & Figma for building products of any scale and complexity",
|
|
4
|
-
"version": "3.10.0-canary.
|
|
4
|
+
"version": "3.10.0-canary.9",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"email": "hello@reshaped.so",
|
|
7
7
|
"homepage": "https://reshaped.so",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"csstype": "3.1.3",
|
|
92
92
|
"culori": "4.0.2",
|
|
93
93
|
"postcss-custom-media": "11.0.6",
|
|
94
|
-
"@reshaped/headless": "3.10.0-canary.
|
|
94
|
+
"@reshaped/headless": "3.10.0-canary.9"
|
|
95
95
|
},
|
|
96
96
|
"scripts": {
|
|
97
97
|
"clean": "bash ./bin/clean.sh",
|