!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d3ae156f-2bb6-5f4c-8393-5d3e0c41ed5b")}catch(e){}}(); import{r as l,$ as A}from"./index-DwaoyV61.js";import{j as f}from"./jsx-runtime-D_zvdyIk.js";import"./components-DhFN5rxT.js";function V(e,t=[]){let n=[];function o(s,u){const i=l.createContext(u);i.displayName=s+"Context";const a=n.length;n=[...n,u];const c=p=>{const{scope:y,children:g,...d}=p,I=y?.[e]?.[a]||i,w=l.useMemo(()=>d,Object.values(d));return f.jsx(I.Provider,{value:w,children:g})};c.displayName=s+"Provider";function m(p,y){const g=y?.[e]?.[a]||i,d=l.useContext(g);if(d)return d;if(u!==void 0)return u;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[c,m]}const r=()=>{const s=n.map(u=>l.createContext(u));return function(i){const a=i?.[e]||s;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:a}}),[i,a])}};return r.scopeName=e,[o,O(r,...t)]}function O(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const u=o.reduce((i,{useScope:a,scopeName:c})=>{const p=a(s)[`__scope${c}`];return{...i,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}function S(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function D(...e){return t=>{let n=!1;const o=e.map(r=>{const s=S(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r{let{children:s,...u}=o;$(s)&&typeof v=="function"&&(s=v(s._payload));const i=l.Children.toArray(s),a=i.find(F);if(a){const c=a.props.children,m=i.map(p=>p===a?l.Children.count(c)>1?l.Children.only(null):l.isValidElement(c)?c.props.children:null:p);return f.jsx(t,{...u,ref:r,children:l.isValidElement(c)?l.cloneElement(c,void 0,m):null})}return f.jsx(t,{...u,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function W(e){const t=l.forwardRef((n,o)=>{let{children:r,...s}=n;if($(r)&&typeof v=="function"&&(r=v(r._payload)),l.isValidElement(r)){const u=k(r),i=H(s,r.props);return r.type!==l.Fragment&&(i.ref=o?D(o,u):u),l.cloneElement(r,i)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var B=Symbol("radix.slottable");function F(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===B}function H(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...i)=>{const a=s(...i);return r(...i),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function k(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var z=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_=z.reduce((e,t)=>{const n=T(`Primitive.${t}`),o=l.forwardRef((r,s)=>{const{asChild:u,...i}=r,a=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...i,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),P="Progress",C=100,[G]=V(P),[Y,Z]=G(P),E=l.forwardRef((e,t)=>{const{__scopeProgress:n,value:o=null,max:r,getValueLabel:s=U,...u}=e;(r||r===0)&&!b(r)&&console.error(X(`${r}`,"Progress"));const i=b(r)?r:C;o!==null&&!h(o,i)&&console.error(q(`${o}`,"Progress"));const a=h(o,i)?o:null,c=x(a)?s(a,i):void 0;return f.jsx(Y,{scope:n,value:a,max:i,children:f.jsx(_.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":x(a)?a:void 0,"aria-valuetext":c,role:"progressbar","data-state":j(a,i),"data-value":a??void 0,"data-max":i,...u,ref:t})})});E.displayName=P;var N="ProgressIndicator",R=l.forwardRef((e,t)=>{const{__scopeProgress:n,...o}=e,r=Z(N,n);return f.jsx(_.div,{"data-state":j(r.value,r.max),"data-value":r.value??void 0,"data-max":r.max,...o,ref:t})});R.displayName=N;function U(e,t){return`${Math.round(e/t*100)}%`}function j(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function x(e){return typeof e=="number"}function b(e){return x(e)&&!isNaN(e)&&e>0}function h(e,t){return x(e)&&!isNaN(e)&&e<=t&&e>=0}function X(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${C}\`.`}function q(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: - a positive number - less than the value passed to \`max\` (or ${C} if no \`max\` prop is set) - \`null\` or \`undefined\` if the progress is indeterminate. Defaulting to \`null\`.`}var ee=E,te=R;export{te as I,ee as R}; //# sourceMappingURL=index-_nEQ52pt.js.map //# debugId=d3ae156f-2bb6-5f4c-8393-5d3e0c41ed5b