diff --git a/assets/@floating-ui-DN5zxe12.js b/assets/@floating-ui-Bob4LHZu.js similarity index 99% rename from assets/@floating-ui-DN5zxe12.js rename to assets/@floating-ui-Bob4LHZu.js index 1827e88..9dd4131 100644 --- a/assets/@floating-ui-DN5zxe12.js +++ b/assets/@floating-ui-Bob4LHZu.js @@ -1 +1 @@ -import{r as C}from"./react-BLNIRDtH.js";import{r as Vt}from"./react-dom-CbzF4jeR.js";const zt=["top","right","bottom","left"],V=Math.min,k=Math.max,rt=Math.round,ot=Math.floor,X=t=>({x:t,y:t}),_t={left:"right",right:"left",bottom:"top",top:"bottom"},jt={start:"end",end:"start"};function dt(t,e,n){return k(t,V(e,n))}function j(t,e){return typeof t=="function"?t(e):t}function I(t){return t.split("-")[0]}function Q(t){return t.split("-")[1]}function ht(t){return t==="x"?"y":"x"}function pt(t){return t==="y"?"height":"width"}function q(t){return["top","bottom"].includes(I(t))?"y":"x"}function wt(t){return ht(q(t))}function It(t,e,n){n===void 0&&(n=!1);const o=Q(t),i=wt(t),r=pt(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=st(s)),[s,st(s)]}function Yt(t){const e=st(t);return[mt(t),e,mt(e)]}function mt(t){return t.replace(/start|end/g,e=>jt[e])}function Xt(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}function qt(t,e,n,o){const i=Q(t);let r=Xt(I(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(mt)))),r}function st(t){return t.replace(/left|right|bottom|top/g,e=>_t[e])}function Ut(t){return{top:0,right:0,bottom:0,left:0,...t}}function Tt(t){return typeof t!="number"?Ut(t):{top:t,right:t,bottom:t,left:t}}function ct(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function bt(t,e,n){let{reference:o,floating:i}=t;const r=q(e),s=wt(e),l=pt(s),c=I(e),f=r==="y",d=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,m=o[l]/2-i[l]/2;let a;switch(c){case"top":a={x:d,y:o.y-i.height};break;case"bottom":a={x:d,y:o.y+o.height};break;case"right":a={x:o.x+o.width,y:u};break;case"left":a={x:o.x-i.width,y:u};break;default:a={x:o.x,y:o.y}}switch(Q(e)){case"start":a[s]-=m*(n&&f?-1:1);break;case"end":a[s]+=m*(n&&f?-1:1);break}return a}const Kt=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,l=r.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let f=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:u}=bt(f,o,c),m=o,a={},g=0;for(let h=0;h({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:l,middlewareData:c}=e,{element:f,padding:d=0}=j(t,e)||{};if(f==null)return{};const u=Tt(d),m={x:n,y:o},a=wt(i),g=pt(a),h=await s.getDimensions(f),w=a==="y",p=w?"top":"left",y=w?"bottom":"right",b=w?"clientHeight":"clientWidth",v=r.reference[g]+r.reference[a]-m[a]-r.floating[g],x=m[a]-r.reference[a],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let E=R?R[b]:0;(!E||!await(s.isElement==null?void 0:s.isElement(R)))&&(E=l.floating[b]||r.floating[g]);const T=v/2-x/2,$=E/2-h[g]/2-1,S=V(u[p],$),W=V(u[y],$),D=S,_=E-h[g]-W,O=E/2-h[g]/2+T,P=dt(D,O,_),B=!c.arrow&&Q(i)!=null&&O!==P&&r.reference[g]/2-(OO<=0)){var W,D;const O=(((W=r.flip)==null?void 0:W.index)||0)+1,P=E[O];if(P)return{data:{index:O,overflows:S},reset:{placement:P}};let B=(D=S.filter(A=>A.overflows[0]<=0).sort((A,M)=>A.overflows[1]-M.overflows[1])[0])==null?void 0:D.placement;if(!B)switch(a){case"bestFit":{var _;const A=(_=S.filter(M=>{if(R){const L=q(M.placement);return L===y||L==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(L=>L>0).reduce((L,Nt)=>L+Nt,0)]).sort((M,L)=>M[1]-L[1])[0])==null?void 0:_[0];A&&(B=A);break}case"initialPlacement":B=l;break}if(i!==B)return{reset:{placement:B}}}return{}}}};function At(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Rt(t){return zt.some(e=>t[e]>=0)}const Qt=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=j(t,e);switch(o){case"referenceHidden":{const r=await tt(e,{...i,elementContext:"reference"}),s=At(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Rt(s)}}}case"escaped":{const r=await tt(e,{...i,altBoundary:!0}),s=At(r,n.floating);return{data:{escapedOffsets:s,escaped:Rt(s)}}}default:return{}}}}};async function Zt(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=I(n),l=Q(n),c=q(n)==="y",f=["left","top"].includes(s)?-1:1,d=r&&c?-1:1,u=j(e,t);let{mainAxis:m,crossAxis:a,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&typeof g=="number"&&(a=l==="end"?g*-1:g),c?{x:a*d,y:m*f}:{x:m*f,y:a*d}}const te=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:l}=e,c=await Zt(e,t);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:i+c.x,y:r+c.y,data:{...c,placement:s}}}}},ee=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:p,y}=w;return{x:p,y}}},...c}=j(t,e),f={x:n,y:o},d=await tt(e,c),u=q(I(i)),m=ht(u);let a=f[m],g=f[u];if(r){const w=m==="y"?"top":"left",p=m==="y"?"bottom":"right",y=a+d[w],b=a-d[p];a=dt(y,a,b)}if(s){const w=u==="y"?"top":"left",p=u==="y"?"bottom":"right",y=g+d[w],b=g-d[p];g=dt(y,g,b)}const h=l.fn({...e,[m]:a,[u]:g});return{...h,data:{x:h.x-n,y:h.y-o}}}}},ne=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=e,{offset:l=0,mainAxis:c=!0,crossAxis:f=!0}=j(t,e),d={x:n,y:o},u=q(i),m=ht(u);let a=d[m],g=d[u];const h=j(l,e),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const b=m==="y"?"height":"width",v=r.reference[m]-r.floating[b]+w.mainAxis,x=r.reference[m]+r.reference[b]-w.mainAxis;ax&&(a=x)}if(f){var p,y;const b=m==="y"?"width":"height",v=["top","left"].includes(I(i)),x=r.reference[u]-r.floating[b]+(v&&((p=s.offset)==null?void 0:p[u])||0)+(v?0:w.crossAxis),R=r.reference[u]+r.reference[b]+(v?0:((y=s.offset)==null?void 0:y[u])||0)-(v?w.crossAxis:0);gR&&(g=R)}return{[m]:a,[u]:g}}}},oe=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:i,elements:r}=e,{apply:s=()=>{},...l}=j(t,e),c=await tt(e,l),f=I(n),d=Q(n),u=q(n)==="y",{width:m,height:a}=o.floating;let g,h;f==="top"||f==="bottom"?(g=f,h=d===(await(i.isRTL==null?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(h=f,g=d==="end"?"top":"bottom");const w=a-c.top-c.bottom,p=m-c.left-c.right,y=V(a-c[g],w),b=V(m-c[h],p),v=!e.middlewareData.shift;let x=y,R=b;if(u?R=d||v?V(b,p):p:x=d||v?V(y,w):w,v&&!d){const T=k(c.left,0),$=k(c.right,0),S=k(c.top,0),W=k(c.bottom,0);u?R=m-2*(T!==0||$!==0?T+$:k(c.left,c.right)):x=a-2*(S!==0||W!==0?S+W:k(c.top,c.bottom))}await s({...e,availableWidth:R,availableHeight:x});const E=await i.getDimensions(r.floating);return m!==E.width||a!==E.height?{reset:{rects:!0}}:{}}}};function Z(t){return Dt(t)?(t.nodeName||"").toLowerCase():"#document"}function F(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Y(t){var e;return(e=(Dt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Dt(t){return t instanceof Node||t instanceof F(t).Node}function H(t){return t instanceof Element||t instanceof F(t).Element}function z(t){return t instanceof HTMLElement||t instanceof F(t).HTMLElement}function Ot(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof F(t).ShadowRoot}function nt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=N(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function ie(t){return["table","td","th"].includes(Z(t))}function ft(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function xt(t){const e=yt(),n=H(t)?N(t):t;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function re(t){let e=U(t);for(;z(e)&&!J(e);){if(xt(e))return e;if(ft(e))return null;e=U(e)}return null}function yt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function J(t){return["html","body","#document"].includes(Z(t))}function N(t){return F(t).getComputedStyle(t)}function at(t){return H(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function U(t){if(Z(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ot(t)&&t.host||Y(t);return Ot(e)?e.host:e}function Mt(t){const e=U(t);return J(e)?t.ownerDocument?t.ownerDocument.body:t.body:z(e)&&nt(e)?e:Mt(e)}function et(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Mt(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=F(i);if(r){const l=gt(s);return e.concat(s,s.visualViewport||[],nt(i)?i:[],l&&n?et(l):[])}return e.concat(i,et(i,[],n))}function gt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function kt(t){const e=N(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=z(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,l=rt(n)!==r||rt(o)!==s;return l&&(n=r,o=s),{width:n,height:o,$:l}}function vt(t){return H(t)?t:t.contextElement}function G(t){const e=vt(t);if(!z(e))return X(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=kt(e);let s=(r?rt(n.width):n.width)/o,l=(r?rt(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const se=X(0);function Ft(t){const e=F(t);return!yt()||!e.visualViewport?se:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ce(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==F(t)?!1:e}function K(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=vt(t);let s=X(1);e&&(o?H(o)&&(s=G(o)):s=G(t));const l=ce(r,n,o)?Ft(r):X(0);let c=(i.left+l.x)/s.x,f=(i.top+l.y)/s.y,d=i.width/s.x,u=i.height/s.y;if(r){const m=F(r),a=o&&H(o)?F(o):o;let g=m,h=gt(g);for(;h&&o&&a!==g;){const w=G(h),p=h.getBoundingClientRect(),y=N(h),b=p.left+(h.clientLeft+parseFloat(y.paddingLeft))*w.x,v=p.top+(h.clientTop+parseFloat(y.paddingTop))*w.y;c*=w.x,f*=w.y,d*=w.x,u*=w.y,c+=b,f+=v,g=F(h),h=gt(g)}}return ct({width:d,height:u,x:c,y:f})}function le(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=Y(o),l=e?ft(e.floating):!1;if(o===s||l&&r)return n;let c={scrollLeft:0,scrollTop:0},f=X(1);const d=X(0),u=z(o);if((u||!u&&!r)&&((Z(o)!=="body"||nt(s))&&(c=at(o)),z(o))){const m=K(o);f=G(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+d.x,y:n.y*f.y-c.scrollTop*f.y+d.y}}function fe(t){return Array.from(t.getClientRects())}function $t(t){return K(Y(t)).left+at(t).scrollLeft}function ae(t){const e=Y(t),n=at(t),o=t.ownerDocument.body,i=k(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=k(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+$t(t);const l=-n.scrollTop;return N(o).direction==="rtl"&&(s+=k(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:l}}function ue(t,e){const n=F(t),o=Y(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,l=0,c=0;if(i){r=i.width,s=i.height;const f=yt();(!f||f&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:r,height:s,x:l,y:c}}function de(t,e){const n=K(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=z(t)?G(t):X(1),s=t.clientWidth*r.x,l=t.clientHeight*r.y,c=i*r.x,f=o*r.y;return{width:s,height:l,x:c,y:f}}function Ct(t,e,n){let o;if(e==="viewport")o=ue(t,n);else if(e==="document")o=ae(Y(t));else if(H(e))o=de(e,n);else{const i=Ft(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return ct(o)}function Wt(t,e){const n=U(t);return n===e||!H(n)||J(n)?!1:N(n).position==="fixed"||Wt(n,e)}function me(t,e){const n=e.get(t);if(n)return n;let o=et(t,[],!1).filter(l=>H(l)&&Z(l)!=="body"),i=null;const r=N(t).position==="fixed";let s=r?U(t):t;for(;H(s)&&!J(s);){const l=N(s),c=xt(s);!c&&l.position==="fixed"&&(i=null),(r?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||nt(s)&&!c&&Wt(t,s))?o=o.filter(d=>d!==s):i=l,s=U(s)}return e.set(t,o),o}function ge(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?ft(e)?[]:me(e,this._c):[].concat(n),o],l=s[0],c=s.reduce((f,d)=>{const u=Ct(e,d,i);return f.top=k(u.top,f.top),f.right=V(u.right,f.right),f.bottom=V(u.bottom,f.bottom),f.left=k(u.left,f.left),f},Ct(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function he(t){const{width:e,height:n}=kt(t);return{width:e,height:n}}function pe(t,e,n){const o=z(e),i=Y(e),r=n==="fixed",s=K(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const c=X(0);if(o||!o&&!r)if((Z(e)!=="body"||nt(i))&&(l=at(e)),o){const u=K(e,!0,r,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else i&&(c.x=$t(i));const f=s.left+l.scrollLeft-c.x,d=s.top+l.scrollTop-c.y;return{x:f,y:d,width:s.width,height:s.height}}function ut(t){return N(t).position==="static"}function Et(t,e){return!z(t)||N(t).position==="fixed"?null:e?e(t):t.offsetParent}function Bt(t,e){const n=F(t);if(ft(t))return n;if(!z(t)){let i=U(t);for(;i&&!J(i);){if(H(i)&&!ut(i))return i;i=U(i)}return n}let o=Et(t,e);for(;o&&ie(o)&&ut(o);)o=Et(o,e);return o&&J(o)&&ut(o)&&!xt(o)?n:o||re(t)||n}const we=async function(t){const e=this.getOffsetParent||Bt,n=this.getDimensions,o=await n(t.floating);return{reference:pe(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function xe(t){return N(t).direction==="rtl"}const ye={convertOffsetParentRelativeRectToViewportRelativeRect:le,getDocumentElement:Y,getClippingRect:ge,getOffsetParent:Bt,getElementRects:we,getClientRects:fe,getDimensions:he,getScale:G,isElement:H,isRTL:xe};function ve(t,e){let n=null,o;const i=Y(t);function r(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),r();const{left:f,top:d,width:u,height:m}=t.getBoundingClientRect();if(l||e(),!u||!m)return;const a=ot(d),g=ot(i.clientWidth-(f+u)),h=ot(i.clientHeight-(d+m)),w=ot(f),y={rootMargin:-a+"px "+-g+"px "+-h+"px "+-w+"px",threshold:k(0,V(1,c))||1};let b=!0;function v(x){const R=x[0].intersectionRatio;if(R!==c){if(!b)return s();R?s(!1,R):o=setTimeout(()=>{s(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(v,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(v,y)}n.observe(t)}return s(!0),r}function De(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,f=vt(t),d=i||r?[...f?et(f):[],...et(e)]:[];d.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),r&&p.addEventListener("resize",n)});const u=f&&l?ve(f,n):null;let m=-1,a=null;s&&(a=new ResizeObserver(p=>{let[y]=p;y&&y.target===f&&a&&(a.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=a)==null||b.observe(e)})),n()}),f&&!c&&a.observe(f),a.observe(e));let g,h=c?K(t):null;c&&w();function w(){const p=K(t);h&&(p.x!==h.x||p.y!==h.y||p.width!==h.width||p.height!==h.height)&&n(),h=p,g=requestAnimationFrame(w)}return n(),()=>{var p;d.forEach(y=>{i&&y.removeEventListener("scroll",n),r&&y.removeEventListener("resize",n)}),u==null||u(),(p=a)==null||p.disconnect(),a=null,c&&cancelAnimationFrame(g)}}const be=te,Ae=ee,Re=Jt,Oe=oe,Ce=Qt,St=Gt,Ee=ne,Se=(t,e,n)=>{const o=new Map,i={platform:ye,...n},r={...i.platform,_c:o};return Kt(t,e,{...i,platform:r})};var it=typeof document<"u"?C.useLayoutEffect:C.useEffect;function lt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!lt(t[o],e[o]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&t.$$typeof)&&!lt(t[r],e[r]))return!1}return!0}return t!==t&&e!==e}function Ht(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Lt(t,e){const n=Ht(t);return Math.round(e*n)/n}function Pt(t){const e=C.useRef(t);return it(()=>{e.current=t}),e}function Me(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:l=!0,whileElementsMounted:c,open:f}=t,[d,u]=C.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[m,a]=C.useState(o);lt(m,o)||a(o);const[g,h]=C.useState(null),[w,p]=C.useState(null),y=C.useCallback(A=>{A!==R.current&&(R.current=A,h(A))},[]),b=C.useCallback(A=>{A!==E.current&&(E.current=A,p(A))},[]),v=r||g,x=s||w,R=C.useRef(null),E=C.useRef(null),T=C.useRef(d),$=c!=null,S=Pt(c),W=Pt(i),D=C.useCallback(()=>{if(!R.current||!E.current)return;const A={placement:e,strategy:n,middleware:m};W.current&&(A.platform=W.current),Se(R.current,E.current,A).then(M=>{const L={...M,isPositioned:!0};_.current&&!lt(T.current,L)&&(T.current=L,Vt.flushSync(()=>{u(L)}))})},[m,e,n,W]);it(()=>{f===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[f]);const _=C.useRef(!1);it(()=>(_.current=!0,()=>{_.current=!1}),[]),it(()=>{if(v&&(R.current=v),x&&(E.current=x),v&&x){if(S.current)return S.current(v,x,D);D()}},[v,x,D,S,$]);const O=C.useMemo(()=>({reference:R,floating:E,setReference:y,setFloating:b}),[y,b]),P=C.useMemo(()=>({reference:v,floating:x}),[v,x]),B=C.useMemo(()=>{const A={position:n,left:0,top:0};if(!P.floating)return A;const M=Lt(P.floating,d.x),L=Lt(P.floating,d.y);return l?{...A,transform:"translate("+M+"px, "+L+"px)",...Ht(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:L}},[n,l,P.floating,d.x,d.y]);return C.useMemo(()=>({...d,update:D,refs:O,elements:P,floatingStyles:B}),[d,D,O,P,B])}const Le=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:i}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?St({element:o.current,padding:i}).fn(n):{}:o?St({element:o,padding:i}).fn(n):{}}}},ke=(t,e)=>({...be(t),options:[t,e]}),Fe=(t,e)=>({...Ae(t),options:[t,e]}),$e=(t,e)=>({...Ee(t),options:[t,e]}),We=(t,e)=>({...Re(t),options:[t,e]}),Be=(t,e)=>({...Oe(t),options:[t,e]}),He=(t,e)=>({...Ce(t),options:[t,e]}),Ne=(t,e)=>({...Le(t),options:[t,e]});export{De as a,Be as b,Ne as c,We as f,He as h,$e as l,ke as o,Fe as s,Me as u}; +import{r as C}from"./react-DmpIMwDM.js";import{r as Vt}from"./react-dom-Cjr6YfK8.js";const zt=["top","right","bottom","left"],V=Math.min,k=Math.max,rt=Math.round,ot=Math.floor,X=t=>({x:t,y:t}),_t={left:"right",right:"left",bottom:"top",top:"bottom"},jt={start:"end",end:"start"};function dt(t,e,n){return k(t,V(e,n))}function j(t,e){return typeof t=="function"?t(e):t}function I(t){return t.split("-")[0]}function Q(t){return t.split("-")[1]}function ht(t){return t==="x"?"y":"x"}function pt(t){return t==="y"?"height":"width"}function q(t){return["top","bottom"].includes(I(t))?"y":"x"}function wt(t){return ht(q(t))}function It(t,e,n){n===void 0&&(n=!1);const o=Q(t),i=wt(t),r=pt(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=st(s)),[s,st(s)]}function Yt(t){const e=st(t);return[mt(t),e,mt(e)]}function mt(t){return t.replace(/start|end/g,e=>jt[e])}function Xt(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}function qt(t,e,n,o){const i=Q(t);let r=Xt(I(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(mt)))),r}function st(t){return t.replace(/left|right|bottom|top/g,e=>_t[e])}function Ut(t){return{top:0,right:0,bottom:0,left:0,...t}}function Tt(t){return typeof t!="number"?Ut(t):{top:t,right:t,bottom:t,left:t}}function ct(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function bt(t,e,n){let{reference:o,floating:i}=t;const r=q(e),s=wt(e),l=pt(s),c=I(e),f=r==="y",d=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,m=o[l]/2-i[l]/2;let a;switch(c){case"top":a={x:d,y:o.y-i.height};break;case"bottom":a={x:d,y:o.y+o.height};break;case"right":a={x:o.x+o.width,y:u};break;case"left":a={x:o.x-i.width,y:u};break;default:a={x:o.x,y:o.y}}switch(Q(e)){case"start":a[s]-=m*(n&&f?-1:1);break;case"end":a[s]+=m*(n&&f?-1:1);break}return a}const Kt=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,l=r.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let f=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:u}=bt(f,o,c),m=o,a={},g=0;for(let h=0;h({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:l,middlewareData:c}=e,{element:f,padding:d=0}=j(t,e)||{};if(f==null)return{};const u=Tt(d),m={x:n,y:o},a=wt(i),g=pt(a),h=await s.getDimensions(f),w=a==="y",p=w?"top":"left",y=w?"bottom":"right",b=w?"clientHeight":"clientWidth",v=r.reference[g]+r.reference[a]-m[a]-r.floating[g],x=m[a]-r.reference[a],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let E=R?R[b]:0;(!E||!await(s.isElement==null?void 0:s.isElement(R)))&&(E=l.floating[b]||r.floating[g]);const T=v/2-x/2,$=E/2-h[g]/2-1,S=V(u[p],$),W=V(u[y],$),D=S,_=E-h[g]-W,O=E/2-h[g]/2+T,P=dt(D,O,_),B=!c.arrow&&Q(i)!=null&&O!==P&&r.reference[g]/2-(OO<=0)){var W,D;const O=(((W=r.flip)==null?void 0:W.index)||0)+1,P=E[O];if(P)return{data:{index:O,overflows:S},reset:{placement:P}};let B=(D=S.filter(A=>A.overflows[0]<=0).sort((A,M)=>A.overflows[1]-M.overflows[1])[0])==null?void 0:D.placement;if(!B)switch(a){case"bestFit":{var _;const A=(_=S.filter(M=>{if(R){const L=q(M.placement);return L===y||L==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(L=>L>0).reduce((L,Nt)=>L+Nt,0)]).sort((M,L)=>M[1]-L[1])[0])==null?void 0:_[0];A&&(B=A);break}case"initialPlacement":B=l;break}if(i!==B)return{reset:{placement:B}}}return{}}}};function At(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Rt(t){return zt.some(e=>t[e]>=0)}const Qt=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=j(t,e);switch(o){case"referenceHidden":{const r=await tt(e,{...i,elementContext:"reference"}),s=At(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Rt(s)}}}case"escaped":{const r=await tt(e,{...i,altBoundary:!0}),s=At(r,n.floating);return{data:{escapedOffsets:s,escaped:Rt(s)}}}default:return{}}}}};async function Zt(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=I(n),l=Q(n),c=q(n)==="y",f=["left","top"].includes(s)?-1:1,d=r&&c?-1:1,u=j(e,t);let{mainAxis:m,crossAxis:a,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&typeof g=="number"&&(a=l==="end"?g*-1:g),c?{x:a*d,y:m*f}:{x:m*f,y:a*d}}const te=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:l}=e,c=await Zt(e,t);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:i+c.x,y:r+c.y,data:{...c,placement:s}}}}},ee=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:p,y}=w;return{x:p,y}}},...c}=j(t,e),f={x:n,y:o},d=await tt(e,c),u=q(I(i)),m=ht(u);let a=f[m],g=f[u];if(r){const w=m==="y"?"top":"left",p=m==="y"?"bottom":"right",y=a+d[w],b=a-d[p];a=dt(y,a,b)}if(s){const w=u==="y"?"top":"left",p=u==="y"?"bottom":"right",y=g+d[w],b=g-d[p];g=dt(y,g,b)}const h=l.fn({...e,[m]:a,[u]:g});return{...h,data:{x:h.x-n,y:h.y-o}}}}},ne=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=e,{offset:l=0,mainAxis:c=!0,crossAxis:f=!0}=j(t,e),d={x:n,y:o},u=q(i),m=ht(u);let a=d[m],g=d[u];const h=j(l,e),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const b=m==="y"?"height":"width",v=r.reference[m]-r.floating[b]+w.mainAxis,x=r.reference[m]+r.reference[b]-w.mainAxis;ax&&(a=x)}if(f){var p,y;const b=m==="y"?"width":"height",v=["top","left"].includes(I(i)),x=r.reference[u]-r.floating[b]+(v&&((p=s.offset)==null?void 0:p[u])||0)+(v?0:w.crossAxis),R=r.reference[u]+r.reference[b]+(v?0:((y=s.offset)==null?void 0:y[u])||0)-(v?w.crossAxis:0);gR&&(g=R)}return{[m]:a,[u]:g}}}},oe=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:i,elements:r}=e,{apply:s=()=>{},...l}=j(t,e),c=await tt(e,l),f=I(n),d=Q(n),u=q(n)==="y",{width:m,height:a}=o.floating;let g,h;f==="top"||f==="bottom"?(g=f,h=d===(await(i.isRTL==null?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(h=f,g=d==="end"?"top":"bottom");const w=a-c.top-c.bottom,p=m-c.left-c.right,y=V(a-c[g],w),b=V(m-c[h],p),v=!e.middlewareData.shift;let x=y,R=b;if(u?R=d||v?V(b,p):p:x=d||v?V(y,w):w,v&&!d){const T=k(c.left,0),$=k(c.right,0),S=k(c.top,0),W=k(c.bottom,0);u?R=m-2*(T!==0||$!==0?T+$:k(c.left,c.right)):x=a-2*(S!==0||W!==0?S+W:k(c.top,c.bottom))}await s({...e,availableWidth:R,availableHeight:x});const E=await i.getDimensions(r.floating);return m!==E.width||a!==E.height?{reset:{rects:!0}}:{}}}};function Z(t){return Dt(t)?(t.nodeName||"").toLowerCase():"#document"}function F(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Y(t){var e;return(e=(Dt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Dt(t){return t instanceof Node||t instanceof F(t).Node}function H(t){return t instanceof Element||t instanceof F(t).Element}function z(t){return t instanceof HTMLElement||t instanceof F(t).HTMLElement}function Ot(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof F(t).ShadowRoot}function nt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=N(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function ie(t){return["table","td","th"].includes(Z(t))}function ft(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function xt(t){const e=yt(),n=H(t)?N(t):t;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function re(t){let e=U(t);for(;z(e)&&!J(e);){if(xt(e))return e;if(ft(e))return null;e=U(e)}return null}function yt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function J(t){return["html","body","#document"].includes(Z(t))}function N(t){return F(t).getComputedStyle(t)}function at(t){return H(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function U(t){if(Z(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ot(t)&&t.host||Y(t);return Ot(e)?e.host:e}function Mt(t){const e=U(t);return J(e)?t.ownerDocument?t.ownerDocument.body:t.body:z(e)&&nt(e)?e:Mt(e)}function et(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Mt(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=F(i);if(r){const l=gt(s);return e.concat(s,s.visualViewport||[],nt(i)?i:[],l&&n?et(l):[])}return e.concat(i,et(i,[],n))}function gt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function kt(t){const e=N(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=z(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,l=rt(n)!==r||rt(o)!==s;return l&&(n=r,o=s),{width:n,height:o,$:l}}function vt(t){return H(t)?t:t.contextElement}function G(t){const e=vt(t);if(!z(e))return X(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=kt(e);let s=(r?rt(n.width):n.width)/o,l=(r?rt(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const se=X(0);function Ft(t){const e=F(t);return!yt()||!e.visualViewport?se:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ce(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==F(t)?!1:e}function K(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=vt(t);let s=X(1);e&&(o?H(o)&&(s=G(o)):s=G(t));const l=ce(r,n,o)?Ft(r):X(0);let c=(i.left+l.x)/s.x,f=(i.top+l.y)/s.y,d=i.width/s.x,u=i.height/s.y;if(r){const m=F(r),a=o&&H(o)?F(o):o;let g=m,h=gt(g);for(;h&&o&&a!==g;){const w=G(h),p=h.getBoundingClientRect(),y=N(h),b=p.left+(h.clientLeft+parseFloat(y.paddingLeft))*w.x,v=p.top+(h.clientTop+parseFloat(y.paddingTop))*w.y;c*=w.x,f*=w.y,d*=w.x,u*=w.y,c+=b,f+=v,g=F(h),h=gt(g)}}return ct({width:d,height:u,x:c,y:f})}function le(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=Y(o),l=e?ft(e.floating):!1;if(o===s||l&&r)return n;let c={scrollLeft:0,scrollTop:0},f=X(1);const d=X(0),u=z(o);if((u||!u&&!r)&&((Z(o)!=="body"||nt(s))&&(c=at(o)),z(o))){const m=K(o);f=G(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+d.x,y:n.y*f.y-c.scrollTop*f.y+d.y}}function fe(t){return Array.from(t.getClientRects())}function $t(t){return K(Y(t)).left+at(t).scrollLeft}function ae(t){const e=Y(t),n=at(t),o=t.ownerDocument.body,i=k(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=k(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+$t(t);const l=-n.scrollTop;return N(o).direction==="rtl"&&(s+=k(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:l}}function ue(t,e){const n=F(t),o=Y(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,l=0,c=0;if(i){r=i.width,s=i.height;const f=yt();(!f||f&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:r,height:s,x:l,y:c}}function de(t,e){const n=K(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=z(t)?G(t):X(1),s=t.clientWidth*r.x,l=t.clientHeight*r.y,c=i*r.x,f=o*r.y;return{width:s,height:l,x:c,y:f}}function Ct(t,e,n){let o;if(e==="viewport")o=ue(t,n);else if(e==="document")o=ae(Y(t));else if(H(e))o=de(e,n);else{const i=Ft(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return ct(o)}function Wt(t,e){const n=U(t);return n===e||!H(n)||J(n)?!1:N(n).position==="fixed"||Wt(n,e)}function me(t,e){const n=e.get(t);if(n)return n;let o=et(t,[],!1).filter(l=>H(l)&&Z(l)!=="body"),i=null;const r=N(t).position==="fixed";let s=r?U(t):t;for(;H(s)&&!J(s);){const l=N(s),c=xt(s);!c&&l.position==="fixed"&&(i=null),(r?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||nt(s)&&!c&&Wt(t,s))?o=o.filter(d=>d!==s):i=l,s=U(s)}return e.set(t,o),o}function ge(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?ft(e)?[]:me(e,this._c):[].concat(n),o],l=s[0],c=s.reduce((f,d)=>{const u=Ct(e,d,i);return f.top=k(u.top,f.top),f.right=V(u.right,f.right),f.bottom=V(u.bottom,f.bottom),f.left=k(u.left,f.left),f},Ct(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function he(t){const{width:e,height:n}=kt(t);return{width:e,height:n}}function pe(t,e,n){const o=z(e),i=Y(e),r=n==="fixed",s=K(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const c=X(0);if(o||!o&&!r)if((Z(e)!=="body"||nt(i))&&(l=at(e)),o){const u=K(e,!0,r,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else i&&(c.x=$t(i));const f=s.left+l.scrollLeft-c.x,d=s.top+l.scrollTop-c.y;return{x:f,y:d,width:s.width,height:s.height}}function ut(t){return N(t).position==="static"}function Et(t,e){return!z(t)||N(t).position==="fixed"?null:e?e(t):t.offsetParent}function Bt(t,e){const n=F(t);if(ft(t))return n;if(!z(t)){let i=U(t);for(;i&&!J(i);){if(H(i)&&!ut(i))return i;i=U(i)}return n}let o=Et(t,e);for(;o&&ie(o)&&ut(o);)o=Et(o,e);return o&&J(o)&&ut(o)&&!xt(o)?n:o||re(t)||n}const we=async function(t){const e=this.getOffsetParent||Bt,n=this.getDimensions,o=await n(t.floating);return{reference:pe(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function xe(t){return N(t).direction==="rtl"}const ye={convertOffsetParentRelativeRectToViewportRelativeRect:le,getDocumentElement:Y,getClippingRect:ge,getOffsetParent:Bt,getElementRects:we,getClientRects:fe,getDimensions:he,getScale:G,isElement:H,isRTL:xe};function ve(t,e){let n=null,o;const i=Y(t);function r(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),r();const{left:f,top:d,width:u,height:m}=t.getBoundingClientRect();if(l||e(),!u||!m)return;const a=ot(d),g=ot(i.clientWidth-(f+u)),h=ot(i.clientHeight-(d+m)),w=ot(f),y={rootMargin:-a+"px "+-g+"px "+-h+"px "+-w+"px",threshold:k(0,V(1,c))||1};let b=!0;function v(x){const R=x[0].intersectionRatio;if(R!==c){if(!b)return s();R?s(!1,R):o=setTimeout(()=>{s(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(v,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(v,y)}n.observe(t)}return s(!0),r}function De(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,f=vt(t),d=i||r?[...f?et(f):[],...et(e)]:[];d.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),r&&p.addEventListener("resize",n)});const u=f&&l?ve(f,n):null;let m=-1,a=null;s&&(a=new ResizeObserver(p=>{let[y]=p;y&&y.target===f&&a&&(a.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=a)==null||b.observe(e)})),n()}),f&&!c&&a.observe(f),a.observe(e));let g,h=c?K(t):null;c&&w();function w(){const p=K(t);h&&(p.x!==h.x||p.y!==h.y||p.width!==h.width||p.height!==h.height)&&n(),h=p,g=requestAnimationFrame(w)}return n(),()=>{var p;d.forEach(y=>{i&&y.removeEventListener("scroll",n),r&&y.removeEventListener("resize",n)}),u==null||u(),(p=a)==null||p.disconnect(),a=null,c&&cancelAnimationFrame(g)}}const be=te,Ae=ee,Re=Jt,Oe=oe,Ce=Qt,St=Gt,Ee=ne,Se=(t,e,n)=>{const o=new Map,i={platform:ye,...n},r={...i.platform,_c:o};return Kt(t,e,{...i,platform:r})};var it=typeof document<"u"?C.useLayoutEffect:C.useEffect;function lt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!lt(t[o],e[o]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&t.$$typeof)&&!lt(t[r],e[r]))return!1}return!0}return t!==t&&e!==e}function Ht(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Lt(t,e){const n=Ht(t);return Math.round(e*n)/n}function Pt(t){const e=C.useRef(t);return it(()=>{e.current=t}),e}function Me(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:l=!0,whileElementsMounted:c,open:f}=t,[d,u]=C.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[m,a]=C.useState(o);lt(m,o)||a(o);const[g,h]=C.useState(null),[w,p]=C.useState(null),y=C.useCallback(A=>{A!==R.current&&(R.current=A,h(A))},[]),b=C.useCallback(A=>{A!==E.current&&(E.current=A,p(A))},[]),v=r||g,x=s||w,R=C.useRef(null),E=C.useRef(null),T=C.useRef(d),$=c!=null,S=Pt(c),W=Pt(i),D=C.useCallback(()=>{if(!R.current||!E.current)return;const A={placement:e,strategy:n,middleware:m};W.current&&(A.platform=W.current),Se(R.current,E.current,A).then(M=>{const L={...M,isPositioned:!0};_.current&&!lt(T.current,L)&&(T.current=L,Vt.flushSync(()=>{u(L)}))})},[m,e,n,W]);it(()=>{f===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[f]);const _=C.useRef(!1);it(()=>(_.current=!0,()=>{_.current=!1}),[]),it(()=>{if(v&&(R.current=v),x&&(E.current=x),v&&x){if(S.current)return S.current(v,x,D);D()}},[v,x,D,S,$]);const O=C.useMemo(()=>({reference:R,floating:E,setReference:y,setFloating:b}),[y,b]),P=C.useMemo(()=>({reference:v,floating:x}),[v,x]),B=C.useMemo(()=>{const A={position:n,left:0,top:0};if(!P.floating)return A;const M=Lt(P.floating,d.x),L=Lt(P.floating,d.y);return l?{...A,transform:"translate("+M+"px, "+L+"px)",...Ht(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:L}},[n,l,P.floating,d.x,d.y]);return C.useMemo(()=>({...d,update:D,refs:O,elements:P,floatingStyles:B}),[d,D,O,P,B])}const Le=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:i}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?St({element:o.current,padding:i}).fn(n):{}:o?St({element:o,padding:i}).fn(n):{}}}},ke=(t,e)=>({...be(t),options:[t,e]}),Fe=(t,e)=>({...Ae(t),options:[t,e]}),$e=(t,e)=>({...Ee(t),options:[t,e]}),We=(t,e)=>({...Re(t),options:[t,e]}),Be=(t,e)=>({...Oe(t),options:[t,e]}),He=(t,e)=>({...Ce(t),options:[t,e]}),Ne=(t,e)=>({...Le(t),options:[t,e]});export{De as a,Be as b,Ne as c,We as f,He as h,$e as l,ke as o,Fe as s,Me as u}; diff --git a/assets/@floating-ui-Bob4LHZu.js.gz b/assets/@floating-ui-Bob4LHZu.js.gz new file mode 100644 index 0000000..af5d381 Binary files /dev/null and b/assets/@floating-ui-Bob4LHZu.js.gz differ diff --git a/assets/@floating-ui-DN5zxe12.js.gz b/assets/@floating-ui-DN5zxe12.js.gz deleted file mode 100644 index fc434e8..0000000 Binary files a/assets/@floating-ui-DN5zxe12.js.gz and /dev/null differ diff --git a/assets/@radix-ui-B2FzUeFR.js b/assets/@radix-ui-B2FzUeFR.js deleted file mode 100644 index 3ec7306..0000000 --- a/assets/@radix-ui-B2FzUeFR.js +++ /dev/null @@ -1,11 +0,0 @@ -import{r as s,j as u,R as kn,a as ue}from"./react-BLNIRDtH.js";import{h as rt}from"./aria-hidden-DQ5UC2Eg.js";import{R as st}from"./react-remove-scroll-BBk4x74E.js";import{r as Fe,R as $n}from"./react-dom-CbzF4jeR.js";import{u as Hn,a as Bn,o as Wn,s as Un,f as Vn,b as Gn,c as Kn,h as zn,l as Yn}from"./@floating-ui-DN5zxe12.js";function qn(e,o){typeof e=="function"?e(o):e!=null&&(e.current=o)}function Ot(...e){return o=>e.forEach(t=>qn(t,o))}function N(...e){return s.useCallback(Ot(...e),e)}var de=s.forwardRef((e,o)=>{const{children:t,...n}=e,r=s.Children.toArray(t),a=r.find(Xn);if(a){const i=a.props.children,c=r.map(l=>l===a?s.Children.count(i)>1?s.Children.only(null):s.isValidElement(i)?i.props.children:null:l);return u.jsx(Xe,{...n,ref:o,children:s.isValidElement(i)?s.cloneElement(i,void 0,c):null})}return u.jsx(Xe,{...n,ref:o,children:t})});de.displayName="Slot";var Xe=s.forwardRef((e,o)=>{const{children:t,...n}=e;if(s.isValidElement(t)){const r=Jn(t);return s.cloneElement(t,{...Zn(n,t.props),ref:o?Ot(o,r):r})}return s.Children.count(t)>1?s.Children.only(null):null});Xe.displayName="SlotClone";var Dt=({children:e})=>u.jsx(u.Fragment,{children:e});function Xn(e){return s.isValidElement(e)&&e.type===Dt}function Zn(e,o){const t={...o};for(const n in o){const r=e[n],a=o[n];/^on[A-Z]/.test(n)?r&&a?t[n]=(...c)=>{a(...c),r(...c)}:r&&(t[n]=r):n==="style"?t[n]={...r,...a}:n==="className"&&(t[n]=[r,a].filter(Boolean).join(" "))}return{...e,...t}}function Jn(e){var n,r;let o=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,t=o&&"isReactWarning"in o&&o.isReactWarning;return t?e.ref:(o=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,t=o&&"isReactWarning"in o&&o.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function S(e,o,{checkForDefaultPrevented:t=!0}={}){return function(r){if(e==null||e(r),t===!1||!r.defaultPrevented)return o==null?void 0:o(r)}}function Qn(e,o){const t=s.createContext(o);function n(a){const{children:i,...c}=a,l=s.useMemo(()=>c,Object.values(c));return u.jsx(t.Provider,{value:l,children:i})}function r(a){const i=s.useContext(t);if(i)return i;if(o!==void 0)return o;throw new Error(`\`${a}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",[n,r]}function J(e,o=[]){let t=[];function n(a,i){const c=s.createContext(i),l=t.length;t=[...t,i];function d(m){const{scope:h,children:g,...f}=m,v=(h==null?void 0:h[e][l])||c,y=s.useMemo(()=>f,Object.values(f));return u.jsx(v.Provider,{value:y,children:g})}function p(m,h){const g=(h==null?void 0:h[e][l])||c,f=s.useContext(g);if(f)return f;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${a}\``)}return d.displayName=a+"Provider",[d,p]}const r=()=>{const a=t.map(i=>s.createContext(i));return function(c){const l=(c==null?void 0:c[e])||a;return s.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return r.scopeName=e,[n,er(r,...o)]}function er(...e){const o=e[0];if(e.length===1)return o;const t=()=>{const n=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(a){const i=n.reduce((c,{useScope:l,scopeName:d})=>{const m=l(a)[`__scope${d}`];return{...c,...m}},{});return s.useMemo(()=>({[`__scope${o.scopeName}`]:i}),[i])}};return t.scopeName=o.scopeName,t}var tr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],b=tr.reduce((e,o)=>{const t=s.forwardRef((n,r)=>{const{asChild:a,...i}=n,c=a?de:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...i,ref:r})});return t.displayName=`Primitive.${o}`,{...e,[o]:t}},{});function or(e,o){e&&Fe.flushSync(()=>e.dispatchEvent(o))}function Z(e){const o=s.useRef(e);return s.useEffect(()=>{o.current=e}),s.useMemo(()=>(...t)=>{var n;return(n=o.current)==null?void 0:n.call(o,...t)},[])}function nr(e,o=globalThis==null?void 0:globalThis.document){const t=Z(e);s.useEffect(()=>{const n=r=>{r.key==="Escape"&&t(r)};return o.addEventListener("keydown",n,{capture:!0}),()=>o.removeEventListener("keydown",n,{capture:!0})},[t,o])}var rr="DismissableLayer",Ze="dismissableLayer.update",sr="dismissableLayer.pointerDownOutside",ar="dismissableLayer.focusOutside",Pt,Mt=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ae=s.forwardRef((e,o)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:n,onPointerDownOutside:r,onFocusOutside:a,onInteractOutside:i,onDismiss:c,...l}=e,d=s.useContext(Mt),[p,m]=s.useState(null),h=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=s.useState({}),f=N(o,P=>m(P)),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=v.indexOf(y),C=p?v.indexOf(p):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,A=C>=x,D=lr(P=>{const R=P.target,B=[...d.branches].some(k=>k.contains(R));!A||B||(r==null||r(P),i==null||i(P),P.defaultPrevented||c==null||c())},h),F=ur(P=>{const R=P.target;[...d.branches].some(k=>k.contains(R))||(a==null||a(P),i==null||i(P),P.defaultPrevented||c==null||c())},h);return nr(P=>{C===d.layers.size-1&&(n==null||n(P),!P.defaultPrevented&&c&&(P.preventDefault(),c()))},h),s.useEffect(()=>{if(p)return t&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Pt=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),Rt(),()=>{t&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Pt)}},[p,h,t,d]),s.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),Rt())},[p,d]),s.useEffect(()=>{const P=()=>g({});return document.addEventListener(Ze,P),()=>document.removeEventListener(Ze,P)},[]),u.jsx(b.div,{...l,ref:f,style:{pointerEvents:w?A?"auto":"none":void 0,...e.style},onFocusCapture:S(e.onFocusCapture,F.onFocusCapture),onBlurCapture:S(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:S(e.onPointerDownCapture,D.onPointerDownCapture)})});Ae.displayName=rr;var ir="DismissableLayerBranch",cr=s.forwardRef((e,o)=>{const t=s.useContext(Mt),n=s.useRef(null),r=N(o,n);return s.useEffect(()=>{const a=n.current;if(a)return t.branches.add(a),()=>{t.branches.delete(a)}},[t.branches]),u.jsx(b.div,{...e,ref:r})});cr.displayName=ir;function lr(e,o=globalThis==null?void 0:globalThis.document){const t=Z(e),n=s.useRef(!1),r=s.useRef(()=>{});return s.useEffect(()=>{const a=c=>{if(c.target&&!n.current){let l=function(){jt(sr,t,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(o.removeEventListener("click",r.current),r.current=l,o.addEventListener("click",r.current,{once:!0})):l()}else o.removeEventListener("click",r.current);n.current=!1},i=window.setTimeout(()=>{o.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),o.removeEventListener("pointerdown",a),o.removeEventListener("click",r.current)}},[o,t]),{onPointerDownCapture:()=>n.current=!0}}function ur(e,o=globalThis==null?void 0:globalThis.document){const t=Z(e),n=s.useRef(!1);return s.useEffect(()=>{const r=a=>{a.target&&!n.current&&jt(ar,t,{originalEvent:a},{discrete:!1})};return o.addEventListener("focusin",r),()=>o.removeEventListener("focusin",r)},[o,t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Rt(){const e=new CustomEvent(Ze);document.dispatchEvent(e)}function jt(e,o,t,{discrete:n}){const r=t.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});o&&r.addEventListener(e,o,{once:!0}),n?or(r,a):r.dispatchEvent(a)}var Ge=0;function at(){s.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??bt()),document.body.insertAdjacentElement("beforeend",e[1]??bt()),Ge++,()=>{Ge===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Ge--}},[])}function bt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Ke="focusScope.autoFocusOnMount",ze="focusScope.autoFocusOnUnmount",At={bubbles:!1,cancelable:!0},dr="FocusScope",Le=s.forwardRef((e,o)=>{const{loop:t=!1,trapped:n=!1,onMountAutoFocus:r,onUnmountAutoFocus:a,...i}=e,[c,l]=s.useState(null),d=Z(r),p=Z(a),m=s.useRef(null),h=N(o,v=>l(v)),g=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(n){let v=function(w){if(g.paused||!c)return;const A=w.target;c.contains(A)?m.current=A:ne(m.current,{select:!0})},y=function(w){if(g.paused||!c)return;const A=w.relatedTarget;A!==null&&(c.contains(A)||ne(m.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const D of w)D.removedNodes.length>0&&ne(c)};document.addEventListener("focusin",v),document.addEventListener("focusout",y);const C=new MutationObserver(x);return c&&C.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y),C.disconnect()}}},[n,c,g.paused]),s.useEffect(()=>{if(c){It.add(g);const v=document.activeElement;if(!c.contains(v)){const x=new CustomEvent(Ke,At);c.addEventListener(Ke,d),c.dispatchEvent(x),x.defaultPrevented||(fr(hr(Ft(c)),{select:!0}),document.activeElement===v&&ne(c))}return()=>{c.removeEventListener(Ke,d),setTimeout(()=>{const x=new CustomEvent(ze,At);c.addEventListener(ze,p),c.dispatchEvent(x),x.defaultPrevented||ne(v??document.body,{select:!0}),c.removeEventListener(ze,p),It.remove(g)},0)}}},[c,d,p,g]);const f=s.useCallback(v=>{if(!t&&!n||g.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,x=document.activeElement;if(y&&x){const C=v.currentTarget,[w,A]=pr(C);w&&A?!v.shiftKey&&x===A?(v.preventDefault(),t&&ne(w,{select:!0})):v.shiftKey&&x===w&&(v.preventDefault(),t&&ne(A,{select:!0})):x===C&&v.preventDefault()}},[t,n,g.paused]);return u.jsx(b.div,{tabIndex:-1,...i,ref:h,onKeyDown:f})});Le.displayName=dr;function fr(e,{select:o=!1}={}){const t=document.activeElement;for(const n of e)if(ne(n,{select:o}),document.activeElement!==t)return}function pr(e){const o=Ft(e),t=Nt(o,e),n=Nt(o.reverse(),e);return[t,n]}function Ft(e){const o=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)o.push(t.currentNode);return o}function Nt(e,o){for(const t of e)if(!vr(t,{upTo:o}))return t}function vr(e,{upTo:o}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(o!==void 0&&e===o)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function mr(e){return e instanceof HTMLInputElement&&"select"in e}function ne(e,{select:o=!1}={}){if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&mr(e)&&o&&e.select()}}var It=gr();function gr(){let e=[];return{add(o){const t=e[0];o!==t&&(t==null||t.pause()),e=Tt(e,o),e.unshift(o)},remove(o){var t;e=Tt(e,o),(t=e[0])==null||t.resume()}}}function Tt(e,o){const t=[...e],n=t.indexOf(o);return n!==-1&&t.splice(n,1),t}function hr(e){return e.filter(o=>o.tagName!=="A")}var H=globalThis!=null&&globalThis.document?s.useLayoutEffect:()=>{},xr=kn.useId||(()=>{}),Cr=0;function re(e){const[o,t]=s.useState(xr());return H(()=>{t(n=>n??String(Cr++))},[e]),o?`radix-${o}`:""}var yr="Arrow",Lt=s.forwardRef((e,o)=>{const{children:t,width:n=10,height:r=5,...a}=e;return u.jsx(b.svg,{...a,ref:o,width:n,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?t:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Lt.displayName=yr;var wr=Lt;function kt(e){const[o,t]=s.useState(void 0);return H(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const a=r[0];let i,c;if("borderBoxSize"in a){const l=a.borderBoxSize,d=Array.isArray(l)?l[0]:l;i=d.inlineSize,c=d.blockSize}else i=e.offsetWidth,c=e.offsetHeight;t({width:i,height:c})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else t(void 0)},[e]),o}var it="Popper",[$t,xe]=J(it),[Sr,Ht]=$t(it),Bt=e=>{const{__scopePopper:o,children:t}=e,[n,r]=s.useState(null);return u.jsx(Sr,{scope:o,anchor:n,onAnchorChange:r,children:t})};Bt.displayName=it;var Wt="PopperAnchor",Ut=s.forwardRef((e,o)=>{const{__scopePopper:t,virtualRef:n,...r}=e,a=Ht(Wt,t),i=s.useRef(null),c=N(o,i);return s.useEffect(()=>{a.onAnchorChange((n==null?void 0:n.current)||i.current)}),n?null:u.jsx(b.div,{...r,ref:c})});Ut.displayName=Wt;var ct="PopperContent",[Er,Pr]=$t(ct),Vt=s.forwardRef((e,o)=>{var E,O,L,_,I,T;const{__scopePopper:t,side:n="bottom",sideOffset:r=0,align:a="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:d=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:f,...v}=e,y=Ht(ct,t),[x,C]=s.useState(null),w=N(o,K=>C(K)),[A,D]=s.useState(null),F=kt(A),P=(F==null?void 0:F.width)??0,R=(F==null?void 0:F.height)??0,B=n+(a!=="center"?"-"+a:""),k=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},W=Array.isArray(d)?d:[d],U=W.length>0,$={padding:k,boundary:W.filter(br),altBoundary:U},{refs:z,floatingStyles:M,placement:j,isPositioned:V,middlewareData:G}=Hn({strategy:"fixed",placement:B,whileElementsMounted:(...K)=>Bn(...K,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[Wn({mainAxis:r+R,alignmentAxis:i}),l&&Un({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Yn():void 0,...$}),l&&Vn({...$}),Gn({...$,apply:({elements:K,rects:X,availableWidth:Ee,availableHeight:Pe})=>{const{width:Re,height:Ln}=X.reference,Te=K.floating.style;Te.setProperty("--radix-popper-available-width",`${Ee}px`),Te.setProperty("--radix-popper-available-height",`${Pe}px`),Te.setProperty("--radix-popper-anchor-width",`${Re}px`),Te.setProperty("--radix-popper-anchor-height",`${Ln}px`)}}),A&&Kn({element:A,padding:c}),Ar({arrowWidth:P,arrowHeight:R}),h&&zn({strategy:"referenceHidden",...$})]}),[Y,ye]=zt(j),Q=Z(f);H(()=>{V&&(Q==null||Q())},[V,Q]);const we=(E=G.arrow)==null?void 0:E.x,Se=(O=G.arrow)==null?void 0:O.y,oe=((L=G.arrow)==null?void 0:L.centerOffset)!==0,[me,le]=s.useState();return H(()=>{x&&le(window.getComputedStyle(x).zIndex)},[x]),u.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:V?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(_=G.transformOrigin)==null?void 0:_.x,(I=G.transformOrigin)==null?void 0:I.y].join(" "),...((T=G.hide)==null?void 0:T.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(Er,{scope:t,placedSide:Y,onArrowChange:D,arrowX:we,arrowY:Se,shouldHideArrow:oe,children:u.jsx(b.div,{"data-side":Y,"data-align":ye,...v,ref:w,style:{...v.style,animation:V?void 0:"none"}})})})});Vt.displayName=ct;var Gt="PopperArrow",Rr={top:"bottom",right:"left",bottom:"top",left:"right"},Kt=s.forwardRef(function(o,t){const{__scopePopper:n,...r}=o,a=Pr(Gt,n),i=Rr[a.placedSide];return u.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:u.jsx(wr,{...r,ref:t,style:{...r.style,display:"block"}})})});Kt.displayName=Gt;function br(e){return e!==null}var Ar=e=>({name:"transformOrigin",options:e,fn(o){var y,x,C;const{placement:t,rects:n,middlewareData:r}=o,i=((y=r.arrow)==null?void 0:y.centerOffset)!==0,c=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[d,p]=zt(t),m={start:"0%",center:"50%",end:"100%"}[p],h=(((x=r.arrow)==null?void 0:x.x)??0)+c/2,g=(((C=r.arrow)==null?void 0:C.y)??0)+l/2;let f="",v="";return d==="bottom"?(f=i?m:`${h}px`,v=`${-l}px`):d==="top"?(f=i?m:`${h}px`,v=`${n.floating.height+l}px`):d==="right"?(f=`${-l}px`,v=i?m:`${g}px`):d==="left"&&(f=`${n.floating.width+l}px`,v=i?m:`${g}px`),{data:{x:f,y:v}}}});function zt(e){const[o,t="center"]=e.split("-");return[o,t]}var lt=Bt,ke=Ut,ut=Vt,dt=Kt,Nr="Portal",$e=s.forwardRef((e,o)=>{var c;const{container:t,...n}=e,[r,a]=s.useState(!1);H(()=>a(!0),[]);const i=t||r&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return i?$n.createPortal(u.jsx(b.div,{...n,ref:o}),i):null});$e.displayName=Nr;function Ir(e,o){return s.useReducer((t,n)=>o[t][n]??t,e)}var se=e=>{const{present:o,children:t}=e,n=Tr(o),r=typeof t=="function"?t({present:n.isPresent}):s.Children.only(t),a=N(n.ref,_r(r));return typeof t=="function"||n.isPresent?s.cloneElement(r,{ref:a}):null};se.displayName="Presence";function Tr(e){const[o,t]=s.useState(),n=s.useRef({}),r=s.useRef(e),a=s.useRef("none"),i=e?"mounted":"unmounted",[c,l]=Ir(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const d=_e(n.current);a.current=c==="mounted"?d:"none"},[c]),H(()=>{const d=n.current,p=r.current;if(p!==e){const h=a.current,g=_e(d);e?l("MOUNT"):g==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(p&&h!==g?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),H(()=>{if(o){const d=m=>{const g=_e(n.current).includes(m.animationName);m.target===o&&g&&Fe.flushSync(()=>l("ANIMATION_END"))},p=m=>{m.target===o&&(a.current=_e(n.current))};return o.addEventListener("animationstart",p),o.addEventListener("animationcancel",d),o.addEventListener("animationend",d),()=>{o.removeEventListener("animationstart",p),o.removeEventListener("animationcancel",d),o.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[o,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:s.useCallback(d=>{d&&(n.current=getComputedStyle(d)),t(d)},[])}}function _e(e){return(e==null?void 0:e.animationName)||"none"}function _r(e){var n,r;let o=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,t=o&&"isReactWarning"in o&&o.isReactWarning;return t?e.ref:(o=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,t=o&&"isReactWarning"in o&&o.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function fe({prop:e,defaultProp:o,onChange:t=()=>{}}){const[n,r]=Or({defaultProp:o,onChange:t}),a=e!==void 0,i=a?e:n,c=Z(t),l=s.useCallback(d=>{if(a){const m=typeof d=="function"?d(e):d;m!==e&&c(m)}else r(d)},[a,e,r,c]);return[i,l]}function Or({defaultProp:e,onChange:o}){const t=s.useState(e),[n]=t,r=s.useRef(n),a=Z(o);return s.useEffect(()=>{r.current!==n&&(a(n),r.current=n)},[n,r,a]),t}var ft="Popover",[Yt,pa]=J(ft,[xe]),Ne=xe(),[Dr,ae]=Yt(ft),qt=e=>{const{__scopePopover:o,children:t,open:n,defaultOpen:r,onOpenChange:a,modal:i=!1}=e,c=Ne(o),l=s.useRef(null),[d,p]=s.useState(!1),[m=!1,h]=fe({prop:n,defaultProp:r,onChange:a});return u.jsx(lt,{...c,children:u.jsx(Dr,{scope:o,contentId:re(),triggerRef:l,open:m,onOpenChange:h,onOpenToggle:s.useCallback(()=>h(g=>!g),[h]),hasCustomAnchor:d,onCustomAnchorAdd:s.useCallback(()=>p(!0),[]),onCustomAnchorRemove:s.useCallback(()=>p(!1),[]),modal:i,children:t})})};qt.displayName=ft;var Xt="PopoverAnchor",Mr=s.forwardRef((e,o)=>{const{__scopePopover:t,...n}=e,r=ae(Xt,t),a=Ne(t),{onCustomAnchorAdd:i,onCustomAnchorRemove:c}=r;return s.useEffect(()=>(i(),()=>c()),[i,c]),u.jsx(ke,{...a,...n,ref:o})});Mr.displayName=Xt;var Zt="PopoverTrigger",Jt=s.forwardRef((e,o)=>{const{__scopePopover:t,...n}=e,r=ae(Zt,t),a=Ne(t),i=N(o,r.triggerRef),c=u.jsx(b.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":no(r.open),...n,ref:i,onClick:S(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?c:u.jsx(ke,{asChild:!0,...a,children:c})});Jt.displayName=Zt;var pt="PopoverPortal",[jr,Fr]=Yt(pt,{forceMount:void 0}),Qt=e=>{const{__scopePopover:o,forceMount:t,children:n,container:r}=e,a=ae(pt,o);return u.jsx(jr,{scope:o,forceMount:t,children:u.jsx(se,{present:t||a.open,children:u.jsx($e,{asChild:!0,container:r,children:n})})})};Qt.displayName=pt;var he="PopoverContent",eo=s.forwardRef((e,o)=>{const t=Fr(he,e.__scopePopover),{forceMount:n=t.forceMount,...r}=e,a=ae(he,e.__scopePopover);return u.jsx(se,{present:n||a.open,children:a.modal?u.jsx(Lr,{...r,ref:o}):u.jsx(kr,{...r,ref:o})})});eo.displayName=he;var Lr=s.forwardRef((e,o)=>{const t=ae(he,e.__scopePopover),n=s.useRef(null),r=N(o,n),a=s.useRef(!1);return s.useEffect(()=>{const i=n.current;if(i)return rt(i)},[]),u.jsx(st,{as:de,allowPinchZoom:!0,children:u.jsx(to,{...e,ref:r,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:S(e.onCloseAutoFocus,i=>{var c;i.preventDefault(),a.current||(c=t.triggerRef.current)==null||c.focus()}),onPointerDownOutside:S(e.onPointerDownOutside,i=>{const c=i.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,d=c.button===2||l;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:S(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),kr=s.forwardRef((e,o)=>{const t=ae(he,e.__scopePopover),n=s.useRef(!1),r=s.useRef(!1);return u.jsx(to,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,c;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(c=t.triggerRef.current)==null||c.focus(),a.preventDefault()),n.current=!1,r.current=!1},onInteractOutside:a=>{var l,d;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const i=a.target;((d=t.triggerRef.current)==null?void 0:d.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&r.current&&a.preventDefault()}})}),to=s.forwardRef((e,o)=>{const{__scopePopover:t,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:p,...m}=e,h=ae(he,t),g=Ne(t);return at(),u.jsx(Le,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:a,children:u.jsx(Ae,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:p,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>h.onOpenChange(!1),children:u.jsx(ut,{"data-state":no(h.open),role:"dialog",id:h.contentId,...g,...m,ref:o,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),oo="PopoverClose",$r=s.forwardRef((e,o)=>{const{__scopePopover:t,...n}=e,r=ae(oo,t);return u.jsx(b.button,{type:"button",...n,ref:o,onClick:S(e.onClick,()=>r.onOpenChange(!1))})});$r.displayName=oo;var Hr="PopoverArrow",Br=s.forwardRef((e,o)=>{const{__scopePopover:t,...n}=e,r=Ne(t);return u.jsx(dt,{...r,...n,ref:o})});Br.displayName=Hr;function no(e){return e?"open":"closed"}var va=qt,ma=Jt,ga=Qt,ha=eo;function _t(e,[o,t]){return Math.min(t,Math.max(o,e))}function ro(e){const o=e+"CollectionProvider",[t,n]=J(o),[r,a]=t(o,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:f,children:v}=g,y=ue.useRef(null),x=ue.useRef(new Map).current;return u.jsx(r,{scope:f,itemMap:x,collectionRef:y,children:v})};i.displayName=o;const c=e+"CollectionSlot",l=ue.forwardRef((g,f)=>{const{scope:v,children:y}=g,x=a(c,v),C=N(f,x.collectionRef);return u.jsx(de,{ref:C,children:y})});l.displayName=c;const d=e+"CollectionItemSlot",p="data-radix-collection-item",m=ue.forwardRef((g,f)=>{const{scope:v,children:y,...x}=g,C=ue.useRef(null),w=N(f,C),A=a(d,v);return ue.useEffect(()=>(A.itemMap.set(C,{ref:C,...x}),()=>void A.itemMap.delete(C))),u.jsx(de,{[p]:"",ref:w,children:y})});m.displayName=d;function h(g){const f=a(e+"CollectionConsumer",g);return ue.useCallback(()=>{const y=f.collectionRef.current;if(!y)return[];const x=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(f.itemMap.values()).sort((A,D)=>x.indexOf(A.ref.current)-x.indexOf(D.ref.current))},[f.collectionRef,f.itemMap])}return[{Provider:i,Slot:l,ItemSlot:m},h,n]}var Wr=s.createContext(void 0);function vt(e){const o=s.useContext(Wr);return e||o||"ltr"}function so(e){const o=s.useRef({value:e,previous:e});return s.useMemo(()=>(o.current.value!==e&&(o.current.previous=o.current.value,o.current.value=e),o.current.previous),[e])}var Ur="VisuallyHidden",ao=s.forwardRef((e,o)=>u.jsx(b.span,{...e,ref:o,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));ao.displayName=Ur;var Vr=[" ","Enter","ArrowUp","ArrowDown"],Gr=[" ","Enter"],Ie="Select",[He,Be,Kr]=ro(Ie),[Ce,xa]=J(Ie,[Kr,xe]),We=xe(),[zr,ie]=Ce(Ie),[Yr,qr]=Ce(Ie),io=e=>{const{__scopeSelect:o,children:t,open:n,defaultOpen:r,onOpenChange:a,value:i,defaultValue:c,onValueChange:l,dir:d,name:p,autoComplete:m,disabled:h,required:g}=e,f=We(o),[v,y]=s.useState(null),[x,C]=s.useState(null),[w,A]=s.useState(!1),D=vt(d),[F=!1,P]=fe({prop:n,defaultProp:r,onChange:a}),[R,B]=fe({prop:i,defaultProp:c,onChange:l}),k=s.useRef(null),W=v?!!v.closest("form"):!0,[U,$]=s.useState(new Set),z=Array.from(U).map(M=>M.props.value).join(";");return u.jsx(lt,{...f,children:u.jsxs(zr,{required:g,scope:o,trigger:v,onTriggerChange:y,valueNode:x,onValueNodeChange:C,valueNodeHasChildren:w,onValueNodeHasChildrenChange:A,contentId:re(),value:R,onValueChange:B,open:F,onOpenChange:P,dir:D,triggerPointerDownPosRef:k,disabled:h,children:[u.jsx(He.Provider,{scope:o,children:u.jsx(Yr,{scope:e.__scopeSelect,onNativeOptionAdd:s.useCallback(M=>{$(j=>new Set(j).add(M))},[]),onNativeOptionRemove:s.useCallback(M=>{$(j=>{const V=new Set(j);return V.delete(M),V})},[]),children:t})}),W?u.jsxs(Mo,{"aria-hidden":!0,required:g,tabIndex:-1,name:p,autoComplete:m,value:R,onChange:M=>B(M.target.value),disabled:h,children:[R===void 0?u.jsx("option",{value:""}):null,Array.from(U)]},z):null]})})};io.displayName=Ie;var co="SelectTrigger",lo=s.forwardRef((e,o)=>{const{__scopeSelect:t,disabled:n=!1,...r}=e,a=We(t),i=ie(co,t),c=i.disabled||n,l=N(o,i.onTriggerChange),d=Be(t),[p,m,h]=jo(f=>{const v=d().filter(C=>!C.disabled),y=v.find(C=>C.value===i.value),x=Fo(v,f,y);x!==void 0&&i.onValueChange(x.value)}),g=()=>{c||(i.onOpenChange(!0),h())};return u.jsx(ke,{asChild:!0,...a,children:u.jsx(b.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":Do(i.value)?"":void 0,...r,ref:l,onClick:S(r.onClick,f=>{f.currentTarget.focus()}),onPointerDown:S(r.onPointerDown,f=>{const v=f.target;v.hasPointerCapture(f.pointerId)&&v.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&(g(),i.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)},f.preventDefault())}),onKeyDown:S(r.onKeyDown,f=>{const v=p.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&m(f.key),!(v&&f.key===" ")&&Vr.includes(f.key)&&(g(),f.preventDefault())})})})});lo.displayName=co;var uo="SelectValue",fo=s.forwardRef((e,o)=>{const{__scopeSelect:t,className:n,style:r,children:a,placeholder:i="",...c}=e,l=ie(uo,t),{onValueNodeHasChildrenChange:d}=l,p=a!==void 0,m=N(o,l.onValueNodeChange);return H(()=>{d(p)},[d,p]),u.jsx(b.span,{...c,ref:m,style:{pointerEvents:"none"},children:Do(l.value)?u.jsx(u.Fragment,{children:i}):a})});fo.displayName=uo;var Xr="SelectIcon",po=s.forwardRef((e,o)=>{const{__scopeSelect:t,children:n,...r}=e;return u.jsx(b.span,{"aria-hidden":!0,...r,ref:o,children:n||"▼"})});po.displayName=Xr;var Zr="SelectPortal",vo=e=>u.jsx($e,{asChild:!0,...e});vo.displayName=Zr;var pe="SelectContent",mo=s.forwardRef((e,o)=>{const t=ie(pe,e.__scopeSelect),[n,r]=s.useState();if(H(()=>{r(new DocumentFragment)},[]),!t.open){const a=n;return a?Fe.createPortal(u.jsx(go,{scope:e.__scopeSelect,children:u.jsx(He.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),a):null}return u.jsx(ho,{...e,ref:o})});mo.displayName=pe;var ee=10,[go,ce]=Ce(pe),Jr="SelectContentImpl",ho=s.forwardRef((e,o)=>{const{__scopeSelect:t,position:n="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:a,onPointerDownOutside:i,side:c,sideOffset:l,align:d,alignOffset:p,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:f,hideWhenDetached:v,avoidCollisions:y,...x}=e,C=ie(pe,t),[w,A]=s.useState(null),[D,F]=s.useState(null),P=N(o,E=>A(E)),[R,B]=s.useState(null),[k,W]=s.useState(null),U=Be(t),[$,z]=s.useState(!1),M=s.useRef(!1);s.useEffect(()=>{if(w)return rt(w)},[w]),at();const j=s.useCallback(E=>{const[O,...L]=U().map(T=>T.ref.current),[_]=L.slice(-1),I=document.activeElement;for(const T of E)if(T===I||(T==null||T.scrollIntoView({block:"nearest"}),T===O&&D&&(D.scrollTop=0),T===_&&D&&(D.scrollTop=D.scrollHeight),T==null||T.focus(),document.activeElement!==I))return},[U,D]),V=s.useCallback(()=>j([R,w]),[j,R,w]);s.useEffect(()=>{$&&V()},[$,V]);const{onOpenChange:G,triggerPointerDownPosRef:Y}=C;s.useEffect(()=>{if(w){let E={x:0,y:0};const O=_=>{var I,T;E={x:Math.abs(Math.round(_.pageX)-(((I=Y.current)==null?void 0:I.x)??0)),y:Math.abs(Math.round(_.pageY)-(((T=Y.current)==null?void 0:T.y)??0))}},L=_=>{E.x<=10&&E.y<=10?_.preventDefault():w.contains(_.target)||G(!1),document.removeEventListener("pointermove",O),Y.current=null};return Y.current!==null&&(document.addEventListener("pointermove",O),document.addEventListener("pointerup",L,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",O),document.removeEventListener("pointerup",L,{capture:!0})}}},[w,G,Y]),s.useEffect(()=>{const E=()=>G(!1);return window.addEventListener("blur",E),window.addEventListener("resize",E),()=>{window.removeEventListener("blur",E),window.removeEventListener("resize",E)}},[G]);const[ye,Q]=jo(E=>{const O=U().filter(I=>!I.disabled),L=O.find(I=>I.ref.current===document.activeElement),_=Fo(O,E,L);_&&setTimeout(()=>_.ref.current.focus())}),we=s.useCallback((E,O,L)=>{const _=!M.current&&!L;(C.value!==void 0&&C.value===O||_)&&(B(E),_&&(M.current=!0))},[C.value]),Se=s.useCallback(()=>w==null?void 0:w.focus(),[w]),oe=s.useCallback((E,O,L)=>{const _=!M.current&&!L;(C.value!==void 0&&C.value===O||_)&&W(E)},[C.value]),me=n==="popper"?Je:xo,le=me===Je?{side:c,sideOffset:l,align:d,alignOffset:p,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:f,hideWhenDetached:v,avoidCollisions:y}:{};return u.jsx(go,{scope:t,content:w,viewport:D,onViewportChange:F,itemRefCallback:we,selectedItem:R,onItemLeave:Se,itemTextRefCallback:oe,focusSelectedItem:V,selectedItemText:k,position:n,isPositioned:$,searchRef:ye,children:u.jsx(st,{as:de,allowPinchZoom:!0,children:u.jsx(Le,{asChild:!0,trapped:C.open,onMountAutoFocus:E=>{E.preventDefault()},onUnmountAutoFocus:S(r,E=>{var O;(O=C.trigger)==null||O.focus({preventScroll:!0}),E.preventDefault()}),children:u.jsx(Ae,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:E=>E.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:u.jsx(me,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:E=>E.preventDefault(),...x,...le,onPlaced:()=>z(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:S(x.onKeyDown,E=>{const O=E.ctrlKey||E.altKey||E.metaKey;if(E.key==="Tab"&&E.preventDefault(),!O&&E.key.length===1&&Q(E.key),["ArrowUp","ArrowDown","Home","End"].includes(E.key)){let _=U().filter(I=>!I.disabled).map(I=>I.ref.current);if(["ArrowUp","End"].includes(E.key)&&(_=_.slice().reverse()),["ArrowUp","ArrowDown"].includes(E.key)){const I=E.target,T=_.indexOf(I);_=_.slice(T+1)}setTimeout(()=>j(_)),E.preventDefault()}})})})})})})});ho.displayName=Jr;var Qr="SelectItemAlignedPosition",xo=s.forwardRef((e,o)=>{const{__scopeSelect:t,onPlaced:n,...r}=e,a=ie(pe,t),i=ce(pe,t),[c,l]=s.useState(null),[d,p]=s.useState(null),m=N(o,P=>p(P)),h=Be(t),g=s.useRef(!1),f=s.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:x,focusSelectedItem:C}=i,w=s.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&d&&v&&y&&x){const P=a.trigger.getBoundingClientRect(),R=d.getBoundingClientRect(),B=a.valueNode.getBoundingClientRect(),k=x.getBoundingClientRect();if(a.dir!=="rtl"){const I=k.left-R.left,T=B.left-I,K=P.left-T,X=P.width+K,Ee=Math.max(X,R.width),Pe=window.innerWidth-ee,Re=_t(T,[ee,Pe-Ee]);c.style.minWidth=X+"px",c.style.left=Re+"px"}else{const I=R.right-k.right,T=window.innerWidth-B.right-I,K=window.innerWidth-P.right-T,X=P.width+K,Ee=Math.max(X,R.width),Pe=window.innerWidth-ee,Re=_t(T,[ee,Pe-Ee]);c.style.minWidth=X+"px",c.style.right=Re+"px"}const W=h(),U=window.innerHeight-ee*2,$=v.scrollHeight,z=window.getComputedStyle(d),M=parseInt(z.borderTopWidth,10),j=parseInt(z.paddingTop,10),V=parseInt(z.borderBottomWidth,10),G=parseInt(z.paddingBottom,10),Y=M+j+$+G+V,ye=Math.min(y.offsetHeight*5,Y),Q=window.getComputedStyle(v),we=parseInt(Q.paddingTop,10),Se=parseInt(Q.paddingBottom,10),oe=P.top+P.height/2-ee,me=U-oe,le=y.offsetHeight/2,E=y.offsetTop+le,O=M+j+E,L=Y-O;if(O<=oe){const I=y===W[W.length-1].ref.current;c.style.bottom="0px";const T=d.clientHeight-v.offsetTop-v.offsetHeight,K=Math.max(me,le+(I?Se:0)+T+V),X=O+K;c.style.height=X+"px"}else{const I=y===W[0].ref.current;c.style.top="0px";const K=Math.max(oe,M+v.offsetTop+(I?we:0)+le)+L;c.style.height=K+"px",v.scrollTop=O-oe+v.offsetTop}c.style.margin=`${ee}px 0`,c.style.minHeight=ye+"px",c.style.maxHeight=U+"px",n==null||n(),requestAnimationFrame(()=>g.current=!0)}},[h,a.trigger,a.valueNode,c,d,v,y,x,a.dir,n]);H(()=>w(),[w]);const[A,D]=s.useState();H(()=>{d&&D(window.getComputedStyle(d).zIndex)},[d]);const F=s.useCallback(P=>{P&&f.current===!0&&(w(),C==null||C(),f.current=!1)},[w,C]);return u.jsx(ts,{scope:t,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:F,children:u.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:A},children:u.jsx(b.div,{...r,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});xo.displayName=Qr;var es="SelectPopperPosition",Je=s.forwardRef((e,o)=>{const{__scopeSelect:t,align:n="start",collisionPadding:r=ee,...a}=e,i=We(t);return u.jsx(ut,{...i,...a,ref:o,align:n,collisionPadding:r,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Je.displayName=es;var[ts,mt]=Ce(pe,{}),Qe="SelectViewport",Co=s.forwardRef((e,o)=>{const{__scopeSelect:t,nonce:n,...r}=e,a=ce(Qe,t),i=mt(Qe,t),c=N(o,a.onViewportChange),l=s.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),u.jsx(He.Slot,{scope:t,children:u.jsx(b.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:c,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:S(r.onScroll,d=>{const p=d.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:h}=i;if(h!=null&&h.current&&m){const g=Math.abs(l.current-p.scrollTop);if(g>0){const f=window.innerHeight-ee*2,v=parseFloat(m.style.minHeight),y=parseFloat(m.style.height),x=Math.max(v,y);if(x0?A:0,m.style.justifyContent="flex-end")}}}l.current=p.scrollTop})})})]})});Co.displayName=Qe;var yo="SelectGroup",[os,ns]=Ce(yo),wo=s.forwardRef((e,o)=>{const{__scopeSelect:t,...n}=e,r=re();return u.jsx(os,{scope:t,id:r,children:u.jsx(b.div,{role:"group","aria-labelledby":r,...n,ref:o})})});wo.displayName=yo;var So="SelectLabel",Eo=s.forwardRef((e,o)=>{const{__scopeSelect:t,...n}=e,r=ns(So,t);return u.jsx(b.div,{id:r.id,...n,ref:o})});Eo.displayName=So;var Oe="SelectItem",[rs,Po]=Ce(Oe),Ro=s.forwardRef((e,o)=>{const{__scopeSelect:t,value:n,disabled:r=!1,textValue:a,...i}=e,c=ie(Oe,t),l=ce(Oe,t),d=c.value===n,[p,m]=s.useState(a??""),[h,g]=s.useState(!1),f=N(o,x=>{var C;return(C=l.itemRefCallback)==null?void 0:C.call(l,x,n,r)}),v=re(),y=()=>{r||(c.onValueChange(n),c.onOpenChange(!1))};if(n==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(rs,{scope:t,value:n,disabled:r,textId:v,isSelected:d,onItemTextChange:s.useCallback(x=>{m(C=>C||((x==null?void 0:x.textContent)??"").trim())},[]),children:u.jsx(He.ItemSlot,{scope:t,value:n,disabled:r,textValue:p,children:u.jsx(b.div,{role:"option","aria-labelledby":v,"data-highlighted":h?"":void 0,"aria-selected":d&&h,"data-state":d?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...i,ref:f,onFocus:S(i.onFocus,()=>g(!0)),onBlur:S(i.onBlur,()=>g(!1)),onPointerUp:S(i.onPointerUp,y),onPointerMove:S(i.onPointerMove,x=>{var C;r?(C=l.onItemLeave)==null||C.call(l):x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:S(i.onPointerLeave,x=>{var C;x.currentTarget===document.activeElement&&((C=l.onItemLeave)==null||C.call(l))}),onKeyDown:S(i.onKeyDown,x=>{var w;((w=l.searchRef)==null?void 0:w.current)!==""&&x.key===" "||(Gr.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});Ro.displayName=Oe;var be="SelectItemText",bo=s.forwardRef((e,o)=>{const{__scopeSelect:t,className:n,style:r,...a}=e,i=ie(be,t),c=ce(be,t),l=Po(be,t),d=qr(be,t),[p,m]=s.useState(null),h=N(o,x=>m(x),l.onItemTextChange,x=>{var C;return(C=c.itemTextRefCallback)==null?void 0:C.call(c,x,l.value,l.disabled)}),g=p==null?void 0:p.textContent,f=s.useMemo(()=>u.jsx("option",{value:l.value,disabled:l.disabled,children:g},l.value),[l.disabled,l.value,g]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=d;return H(()=>(v(f),()=>y(f)),[v,y,f]),u.jsxs(u.Fragment,{children:[u.jsx(b.span,{id:l.textId,...a,ref:h}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Fe.createPortal(a.children,i.valueNode):null]})});bo.displayName=be;var Ao="SelectItemIndicator",No=s.forwardRef((e,o)=>{const{__scopeSelect:t,...n}=e;return Po(Ao,t).isSelected?u.jsx(b.span,{"aria-hidden":!0,...n,ref:o}):null});No.displayName=Ao;var et="SelectScrollUpButton",Io=s.forwardRef((e,o)=>{const t=ce(et,e.__scopeSelect),n=mt(et,e.__scopeSelect),[r,a]=s.useState(!1),i=N(o,n.onScrollButtonChange);return H(()=>{if(t.viewport&&t.isPositioned){let c=function(){const d=l.scrollTop>0;a(d)};const l=t.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[t.viewport,t.isPositioned]),r?u.jsx(_o,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=t;c&&l&&(c.scrollTop=c.scrollTop-l.offsetHeight)}}):null});Io.displayName=et;var tt="SelectScrollDownButton",To=s.forwardRef((e,o)=>{const t=ce(tt,e.__scopeSelect),n=mt(tt,e.__scopeSelect),[r,a]=s.useState(!1),i=N(o,n.onScrollButtonChange);return H(()=>{if(t.viewport&&t.isPositioned){let c=function(){const d=l.scrollHeight-l.clientHeight,p=Math.ceil(l.scrollTop)l.removeEventListener("scroll",c)}},[t.viewport,t.isPositioned]),r?u.jsx(_o,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=t;c&&l&&(c.scrollTop=c.scrollTop+l.offsetHeight)}}):null});To.displayName=tt;var _o=s.forwardRef((e,o)=>{const{__scopeSelect:t,onAutoScroll:n,...r}=e,a=ce("SelectScrollButton",t),i=s.useRef(null),c=Be(t),l=s.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return s.useEffect(()=>()=>l(),[l]),H(()=>{var p;const d=c().find(m=>m.ref.current===document.activeElement);(p=d==null?void 0:d.ref.current)==null||p.scrollIntoView({block:"nearest"})},[c]),u.jsx(b.div,{"aria-hidden":!0,...r,ref:o,style:{flexShrink:0,...r.style},onPointerDown:S(r.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(n,50))}),onPointerMove:S(r.onPointerMove,()=>{var d;(d=a.onItemLeave)==null||d.call(a),i.current===null&&(i.current=window.setInterval(n,50))}),onPointerLeave:S(r.onPointerLeave,()=>{l()})})}),ss="SelectSeparator",Oo=s.forwardRef((e,o)=>{const{__scopeSelect:t,...n}=e;return u.jsx(b.div,{"aria-hidden":!0,...n,ref:o})});Oo.displayName=ss;var ot="SelectArrow",as=s.forwardRef((e,o)=>{const{__scopeSelect:t,...n}=e,r=We(t),a=ie(ot,t),i=ce(ot,t);return a.open&&i.position==="popper"?u.jsx(dt,{...r,...n,ref:o}):null});as.displayName=ot;function Do(e){return e===""||e===void 0}var Mo=s.forwardRef((e,o)=>{const{value:t,...n}=e,r=s.useRef(null),a=N(o,r),i=so(t);return s.useEffect(()=>{const c=r.current,l=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&p){const m=new Event("change",{bubbles:!0});p.call(c,t),c.dispatchEvent(m)}},[i,t]),u.jsx(ao,{asChild:!0,children:u.jsx("select",{...n,ref:a,defaultValue:t})})});Mo.displayName="BubbleSelect";function jo(e){const o=Z(e),t=s.useRef(""),n=s.useRef(0),r=s.useCallback(i=>{const c=t.current+i;o(c),function l(d){t.current=d,window.clearTimeout(n.current),d!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(c)},[o]),a=s.useCallback(()=>{t.current="",window.clearTimeout(n.current)},[]);return s.useEffect(()=>()=>window.clearTimeout(n.current),[]),[t,r,a]}function Fo(e,o,t){const r=o.length>1&&Array.from(o).every(d=>d===o[0])?o[0]:o,a=t?e.indexOf(t):-1;let i=is(e,Math.max(a,0));r.length===1&&(i=i.filter(d=>d!==t));const l=i.find(d=>d.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==t?l:void 0}function is(e,o){return e.map((t,n)=>e[(o+n)%e.length])}var Ca=io,ya=lo,wa=fo,Sa=po,Ea=vo,Pa=mo,Ra=Co,ba=wo,Aa=Eo,Na=Ro,Ia=bo,Ta=No,_a=Io,Oa=To,Da=Oo,Ye,gt="HoverCard",[Lo,Ma]=J(gt,[xe]),Ue=xe(),[cs,ht]=Lo(gt),ko=e=>{const{__scopeHoverCard:o,children:t,open:n,defaultOpen:r,onOpenChange:a,openDelay:i=700,closeDelay:c=300}=e,l=Ue(o),d=s.useRef(0),p=s.useRef(0),m=s.useRef(!1),h=s.useRef(!1),[g=!1,f]=fe({prop:n,defaultProp:r,onChange:a}),v=s.useCallback(()=>{clearTimeout(p.current),d.current=window.setTimeout(()=>f(!0),i)},[i,f]),y=s.useCallback(()=>{clearTimeout(d.current),!m.current&&!h.current&&(p.current=window.setTimeout(()=>f(!1),c))},[c,f]),x=s.useCallback(()=>f(!1),[f]);return s.useEffect(()=>()=>{clearTimeout(d.current),clearTimeout(p.current)},[]),u.jsx(cs,{scope:o,open:g,onOpenChange:f,onOpen:v,onClose:y,onDismiss:x,hasSelectionRef:m,isPointerDownOnContentRef:h,children:u.jsx(lt,{...l,children:t})})};ko.displayName=gt;var $o="HoverCardTrigger",Ho=s.forwardRef((e,o)=>{const{__scopeHoverCard:t,...n}=e,r=ht($o,t),a=Ue(t);return u.jsx(ke,{asChild:!0,...a,children:u.jsx(b.a,{"data-state":r.open?"open":"closed",...n,ref:o,onPointerEnter:S(e.onPointerEnter,Me(r.onOpen)),onPointerLeave:S(e.onPointerLeave,Me(r.onClose)),onFocus:S(e.onFocus,r.onOpen),onBlur:S(e.onBlur,r.onClose),onTouchStart:S(e.onTouchStart,i=>i.preventDefault())})})});Ho.displayName=$o;var ls="HoverCardPortal",[ja,us]=Lo(ls,{forceMount:void 0}),De="HoverCardContent",Bo=s.forwardRef((e,o)=>{const t=us(De,e.__scopeHoverCard),{forceMount:n=t.forceMount,...r}=e,a=ht(De,e.__scopeHoverCard);return u.jsx(se,{present:n||a.open,children:u.jsx(ds,{"data-state":a.open?"open":"closed",...r,onPointerEnter:S(e.onPointerEnter,Me(a.onOpen)),onPointerLeave:S(e.onPointerLeave,Me(a.onClose)),ref:o})})});Bo.displayName=De;var ds=s.forwardRef((e,o)=>{const{__scopeHoverCard:t,onEscapeKeyDown:n,onPointerDownOutside:r,onFocusOutside:a,onInteractOutside:i,...c}=e,l=ht(De,t),d=Ue(t),p=s.useRef(null),m=N(o,p),[h,g]=s.useState(!1);return s.useEffect(()=>{if(h){const f=document.body;return Ye=f.style.userSelect||f.style.webkitUserSelect,f.style.userSelect="none",f.style.webkitUserSelect="none",()=>{f.style.userSelect=Ye,f.style.webkitUserSelect=Ye}}},[h]),s.useEffect(()=>{if(p.current){const f=()=>{g(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var y;((y=document.getSelection())==null?void 0:y.toString())!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",f),()=>{document.removeEventListener("pointerup",f),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),s.useEffect(()=>{p.current&&vs(p.current).forEach(v=>v.setAttribute("tabindex","-1"))}),u.jsx(Ae,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:n,onPointerDownOutside:r,onFocusOutside:S(a,f=>{f.preventDefault()}),onDismiss:l.onDismiss,children:u.jsx(ut,{...d,...c,onPointerDown:S(c.onPointerDown,f=>{f.currentTarget.contains(f.target)&&g(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:m,style:{...c.style,userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),fs="HoverCardArrow",ps=s.forwardRef((e,o)=>{const{__scopeHoverCard:t,...n}=e,r=Ue(t);return u.jsx(dt,{...r,...n,ref:o})});ps.displayName=fs;function Me(e){return o=>o.pointerType==="touch"?void 0:e()}function vs(e){const o=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;t.nextNode();)o.push(t.currentNode);return o}var Fa=ko,La=Ho,ka=Bo,xt="Dialog",[Wo,Uo]=J(xt),[ms,q]=Wo(xt),Vo=e=>{const{__scopeDialog:o,children:t,open:n,defaultOpen:r,onOpenChange:a,modal:i=!0}=e,c=s.useRef(null),l=s.useRef(null),[d=!1,p]=fe({prop:n,defaultProp:r,onChange:a});return u.jsx(ms,{scope:o,triggerRef:c,contentRef:l,contentId:re(),titleId:re(),descriptionId:re(),open:d,onOpenChange:p,onOpenToggle:s.useCallback(()=>p(m=>!m),[p]),modal:i,children:t})};Vo.displayName=xt;var Go="DialogTrigger",Ko=s.forwardRef((e,o)=>{const{__scopeDialog:t,...n}=e,r=q(Go,t),a=N(o,r.triggerRef);return u.jsx(b.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":wt(r.open),...n,ref:a,onClick:S(e.onClick,r.onOpenToggle)})});Ko.displayName=Go;var Ct="DialogPortal",[gs,zo]=Wo(Ct,{forceMount:void 0}),Yo=e=>{const{__scopeDialog:o,forceMount:t,children:n,container:r}=e,a=q(Ct,o);return u.jsx(gs,{scope:o,forceMount:t,children:s.Children.map(n,i=>u.jsx(se,{present:t||a.open,children:u.jsx($e,{asChild:!0,container:r,children:i})}))})};Yo.displayName=Ct;var je="DialogOverlay",qo=s.forwardRef((e,o)=>{const t=zo(je,e.__scopeDialog),{forceMount:n=t.forceMount,...r}=e,a=q(je,e.__scopeDialog);return a.modal?u.jsx(se,{present:n||a.open,children:u.jsx(hs,{...r,ref:o})}):null});qo.displayName=je;var hs=s.forwardRef((e,o)=>{const{__scopeDialog:t,...n}=e,r=q(je,t);return u.jsx(st,{as:de,allowPinchZoom:!0,shards:[r.contentRef],children:u.jsx(b.div,{"data-state":wt(r.open),...n,ref:o,style:{pointerEvents:"auto",...n.style}})})}),ve="DialogContent",Xo=s.forwardRef((e,o)=>{const t=zo(ve,e.__scopeDialog),{forceMount:n=t.forceMount,...r}=e,a=q(ve,e.__scopeDialog);return u.jsx(se,{present:n||a.open,children:a.modal?u.jsx(xs,{...r,ref:o}):u.jsx(Cs,{...r,ref:o})})});Xo.displayName=ve;var xs=s.forwardRef((e,o)=>{const t=q(ve,e.__scopeDialog),n=s.useRef(null),r=N(o,t.contentRef,n);return s.useEffect(()=>{const a=n.current;if(a)return rt(a)},[]),u.jsx(Zo,{...e,ref:r,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:S(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=t.triggerRef.current)==null||i.focus()}),onPointerDownOutside:S(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&a.preventDefault()}),onFocusOutside:S(e.onFocusOutside,a=>a.preventDefault())})}),Cs=s.forwardRef((e,o)=>{const t=q(ve,e.__scopeDialog),n=s.useRef(!1),r=s.useRef(!1);return u.jsx(Zo,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,c;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(c=t.triggerRef.current)==null||c.focus(),a.preventDefault()),n.current=!1,r.current=!1},onInteractOutside:a=>{var l,d;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const i=a.target;((d=t.triggerRef.current)==null?void 0:d.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&r.current&&a.preventDefault()}})}),Zo=s.forwardRef((e,o)=>{const{__scopeDialog:t,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:a,...i}=e,c=q(ve,t),l=s.useRef(null),d=N(o,l);return at(),u.jsxs(u.Fragment,{children:[u.jsx(Le,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:a,children:u.jsx(Ae,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":wt(c.open),...i,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(ws,{titleId:c.titleId}),u.jsx(Es,{contentRef:l,descriptionId:c.descriptionId})]})]})}),yt="DialogTitle",Jo=s.forwardRef((e,o)=>{const{__scopeDialog:t,...n}=e,r=q(yt,t);return u.jsx(b.h2,{id:r.titleId,...n,ref:o})});Jo.displayName=yt;var Qo="DialogDescription",en=s.forwardRef((e,o)=>{const{__scopeDialog:t,...n}=e,r=q(Qo,t);return u.jsx(b.p,{id:r.descriptionId,...n,ref:o})});en.displayName=Qo;var tn="DialogClose",on=s.forwardRef((e,o)=>{const{__scopeDialog:t,...n}=e,r=q(tn,t);return u.jsx(b.button,{type:"button",...n,ref:o,onClick:S(e.onClick,()=>r.onOpenChange(!1))})});on.displayName=tn;function wt(e){return e?"open":"closed"}var nn="DialogTitleWarning",[ys,rn]=Qn(nn,{contentName:ve,titleName:yt,docsSlug:"dialog"}),ws=({titleId:e})=>{const o=rn(nn),t=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users. - -If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component. - -For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;return s.useEffect(()=>{e&&(document.getElementById(e)||console.error(t))},[t,e]),null},Ss="DialogDescriptionWarning",Es=({contentRef:e,descriptionId:o})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${rn(Ss).contentName}}.`;return s.useEffect(()=>{var a;const r=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");o&&r&&(document.getElementById(o)||console.warn(n))},[n,e,o]),null},Ps=Vo,Rs=Ko,bs=Yo,As=qo,Ns=Xo,Is=Jo,Ts=en,sn=on,_s="Label",an=s.forwardRef((e,o)=>u.jsx(b.label,{...e,ref:o,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));an.displayName=_s;var $a=an,qe="rovingFocusGroup.onEntryFocus",Os={bubbles:!1,cancelable:!0},Ve="RovingFocusGroup",[nt,cn,Ds]=ro(Ve),[Ms,ln]=J(Ve,[Ds]),[js,Fs]=Ms(Ve),un=s.forwardRef((e,o)=>u.jsx(nt.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(nt.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Ls,{...e,ref:o})})}));un.displayName=Ve;var Ls=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,orientation:n,loop:r=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:d,preventScrollOnEntryFocus:p=!1,...m}=e,h=s.useRef(null),g=N(o,h),f=vt(a),[v=null,y]=fe({prop:i,defaultProp:c,onChange:l}),[x,C]=s.useState(!1),w=Z(d),A=cn(t),D=s.useRef(!1),[F,P]=s.useState(0);return s.useEffect(()=>{const R=h.current;if(R)return R.addEventListener(qe,w),()=>R.removeEventListener(qe,w)},[w]),u.jsx(js,{scope:t,orientation:n,dir:f,loop:r,currentTabStopId:v,onItemFocus:s.useCallback(R=>y(R),[y]),onItemShiftTab:s.useCallback(()=>C(!0),[]),onFocusableItemAdd:s.useCallback(()=>P(R=>R+1),[]),onFocusableItemRemove:s.useCallback(()=>P(R=>R-1),[]),children:u.jsx(b.div,{tabIndex:x||F===0?-1:0,"data-orientation":n,...m,ref:g,style:{outline:"none",...e.style},onMouseDown:S(e.onMouseDown,()=>{D.current=!0}),onFocus:S(e.onFocus,R=>{const B=!D.current;if(R.target===R.currentTarget&&B&&!x){const k=new CustomEvent(qe,Os);if(R.currentTarget.dispatchEvent(k),!k.defaultPrevented){const W=A().filter(j=>j.focusable),U=W.find(j=>j.active),$=W.find(j=>j.id===v),M=[U,$,...W].filter(Boolean).map(j=>j.ref.current);pn(M,p)}}D.current=!1}),onBlur:S(e.onBlur,()=>C(!1))})})}),dn="RovingFocusGroupItem",fn=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,focusable:n=!0,active:r=!1,tabStopId:a,...i}=e,c=re(),l=a||c,d=Fs(dn,t),p=d.currentTabStopId===l,m=cn(t),{onFocusableItemAdd:h,onFocusableItemRemove:g}=d;return s.useEffect(()=>{if(n)return h(),()=>g()},[n,h,g]),u.jsx(nt.ItemSlot,{scope:t,id:l,focusable:n,active:r,children:u.jsx(b.span,{tabIndex:p?0:-1,"data-orientation":d.orientation,...i,ref:o,onMouseDown:S(e.onMouseDown,f=>{n?d.onItemFocus(l):f.preventDefault()}),onFocus:S(e.onFocus,()=>d.onItemFocus(l)),onKeyDown:S(e.onKeyDown,f=>{if(f.key==="Tab"&&f.shiftKey){d.onItemShiftTab();return}if(f.target!==f.currentTarget)return;const v=Hs(f,d.orientation,d.dir);if(v!==void 0){if(f.metaKey||f.ctrlKey||f.altKey||f.shiftKey)return;f.preventDefault();let x=m().filter(C=>C.focusable).map(C=>C.ref.current);if(v==="last")x.reverse();else if(v==="prev"||v==="next"){v==="prev"&&x.reverse();const C=x.indexOf(f.currentTarget);x=d.loop?Bs(x,C+1):x.slice(C+1)}setTimeout(()=>pn(x))}})})})});fn.displayName=dn;var ks={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function $s(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Hs(e,o,t){const n=$s(e.key,t);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return ks[n]}function pn(e,o=!1){const t=document.activeElement;for(const n of e)if(n===t||(n.focus({preventScroll:o}),document.activeElement!==t))return}function Bs(e,o){return e.map((t,n)=>e[(o+n)%e.length])}var Ws=un,Us=fn,St="Radio",[Vs,vn]=J(St),[Gs,Ks]=Vs(St),mn=s.forwardRef((e,o)=>{const{__scopeRadio:t,name:n,checked:r=!1,required:a,disabled:i,value:c="on",onCheck:l,...d}=e,[p,m]=s.useState(null),h=N(o,v=>m(v)),g=s.useRef(!1),f=p?!!p.closest("form"):!0;return u.jsxs(Gs,{scope:t,checked:r,disabled:i,children:[u.jsx(b.button,{type:"button",role:"radio","aria-checked":r,"data-state":xn(r),"data-disabled":i?"":void 0,disabled:i,value:c,...d,ref:h,onClick:S(e.onClick,v=>{r||l==null||l(),f&&(g.current=v.isPropagationStopped(),g.current||v.stopPropagation())})}),f&&u.jsx(zs,{control:p,bubbles:!g.current,name:n,value:c,checked:r,required:a,disabled:i,style:{transform:"translateX(-100%)"}})]})});mn.displayName=St;var gn="RadioIndicator",hn=s.forwardRef((e,o)=>{const{__scopeRadio:t,forceMount:n,...r}=e,a=Ks(gn,t);return u.jsx(se,{present:n||a.checked,children:u.jsx(b.span,{"data-state":xn(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:o})})});hn.displayName=gn;var zs=e=>{const{control:o,checked:t,bubbles:n=!0,...r}=e,a=s.useRef(null),i=so(t),c=kt(o);return s.useEffect(()=>{const l=a.current,d=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(d,"checked").set;if(i!==t&&m){const h=new Event("click",{bubbles:n});m.call(l,t),l.dispatchEvent(h)}},[i,t,n]),u.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...r,tabIndex:-1,ref:a,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function xn(e){return e?"checked":"unchecked"}var Ys=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Et="RadioGroup",[qs,Ha]=J(Et,[ln,vn]),Cn=ln(),yn=vn(),[Xs,Zs]=qs(Et),wn=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,name:n,defaultValue:r,value:a,required:i=!1,disabled:c=!1,orientation:l,dir:d,loop:p=!0,onValueChange:m,...h}=e,g=Cn(t),f=vt(d),[v,y]=fe({prop:a,defaultProp:r,onChange:m});return u.jsx(Xs,{scope:t,name:n,required:i,disabled:c,value:v,onValueChange:y,children:u.jsx(Ws,{asChild:!0,...g,orientation:l,dir:f,loop:p,children:u.jsx(b.div,{role:"radiogroup","aria-required":i,"aria-orientation":l,"data-disabled":c?"":void 0,dir:f,...h,ref:o})})})});wn.displayName=Et;var Sn="RadioGroupItem",En=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,disabled:n,...r}=e,a=Zs(Sn,t),i=a.disabled||n,c=Cn(t),l=yn(t),d=s.useRef(null),p=N(o,d),m=a.value===r.value,h=s.useRef(!1);return s.useEffect(()=>{const g=v=>{Ys.includes(v.key)&&(h.current=!0)},f=()=>h.current=!1;return document.addEventListener("keydown",g),document.addEventListener("keyup",f),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",f)}},[]),u.jsx(Us,{asChild:!0,...c,focusable:!i,active:m,children:u.jsx(mn,{disabled:i,required:a.required,checked:m,...l,...r,name:a.name,ref:p,onCheck:()=>a.onValueChange(r.value),onKeyDown:S(g=>{g.key==="Enter"&&g.preventDefault()}),onFocus:S(r.onFocus,()=>{var g;h.current&&((g=d.current)==null||g.click())})})})});En.displayName=Sn;var Js="RadioGroupIndicator",Pn=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,...n}=e,r=yn(t);return u.jsx(hn,{...r,...n,ref:o})});Pn.displayName=Js;var Ba=wn,Wa=En,Ua=Pn,Rn="AlertDialog",[Qs,Va]=J(Rn,[Uo]),te=Uo(),bn=e=>{const{__scopeAlertDialog:o,...t}=e,n=te(o);return u.jsx(Ps,{...n,...t,modal:!0})};bn.displayName=Rn;var ea="AlertDialogTrigger",ta=s.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...n}=e,r=te(t);return u.jsx(Rs,{...r,...n,ref:o})});ta.displayName=ea;var oa="AlertDialogPortal",An=e=>{const{__scopeAlertDialog:o,...t}=e,n=te(o);return u.jsx(bs,{...n,...t})};An.displayName=oa;var na="AlertDialogOverlay",Nn=s.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...n}=e,r=te(t);return u.jsx(As,{...r,...n,ref:o})});Nn.displayName=na;var ge="AlertDialogContent",[ra,sa]=Qs(ge),In=s.forwardRef((e,o)=>{const{__scopeAlertDialog:t,children:n,...r}=e,a=te(t),i=s.useRef(null),c=N(o,i),l=s.useRef(null);return u.jsx(ys,{contentName:ge,titleName:Tn,docsSlug:"alert-dialog",children:u.jsx(ra,{scope:t,cancelRef:l,children:u.jsxs(Ns,{role:"alertdialog",...a,...r,ref:c,onOpenAutoFocus:S(r.onOpenAutoFocus,d=>{var p;d.preventDefault(),(p=l.current)==null||p.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:[u.jsx(Dt,{children:n}),u.jsx(ia,{contentRef:i})]})})})});In.displayName=ge;var Tn="AlertDialogTitle",_n=s.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...n}=e,r=te(t);return u.jsx(Is,{...r,...n,ref:o})});_n.displayName=Tn;var On="AlertDialogDescription",Dn=s.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...n}=e,r=te(t);return u.jsx(Ts,{...r,...n,ref:o})});Dn.displayName=On;var aa="AlertDialogAction",Mn=s.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...n}=e,r=te(t);return u.jsx(sn,{...r,...n,ref:o})});Mn.displayName=aa;var jn="AlertDialogCancel",Fn=s.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...n}=e,{cancelRef:r}=sa(jn,t),a=te(t),i=N(o,r);return u.jsx(sn,{...a,...n,ref:i})});Fn.displayName=jn;var ia=({contentRef:e})=>{const o=`\`${ge}\` requires a description for the component to be accessible for screen reader users. - -You can add a description to the \`${ge}\` by passing a \`${On}\` component as a child, which also benefits sighted users by adding visible context to the dialog. - -Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${ge}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. - -For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return s.useEffect(()=>{var n;document.getElementById((n=e.current)==null?void 0:n.getAttribute("aria-describedby"))||console.warn(o)},[o,e]),null},Ga=bn,Ka=An,za=Nn,Ya=In,qa=Mn,Xa=Fn,Za=_n,Ja=Dn;export{Za as A,Ja as B,Ns as C,Ts as D,qa as E,Xa as F,ba as G,Ga as H,Sa as I,Ka as J,Aa as L,As as O,bs as P,Ps as R,de as S,Rs as T,Ra as V,sn as a,Is as b,ga as c,ha as d,va as e,ma as f,ya as g,_a as h,Oa as i,Ea as j,Pa as k,Na as l,Ta as m,Ia as n,Da as o,Ca as p,wa as q,ka as r,Fa as s,La as t,$a as u,Ba as v,Wa as w,Ua as x,za as y,Ya as z}; diff --git a/assets/@radix-ui-B2FzUeFR.js.gz b/assets/@radix-ui-B2FzUeFR.js.gz deleted file mode 100644 index 6eb2539..0000000 Binary files a/assets/@radix-ui-B2FzUeFR.js.gz and /dev/null differ diff --git a/assets/@radix-ui-BQVY8FyZ.js b/assets/@radix-ui-BQVY8FyZ.js new file mode 100644 index 0000000..0f2839d --- /dev/null +++ b/assets/@radix-ui-BQVY8FyZ.js @@ -0,0 +1,11 @@ +import{r as a,j as d,R as L,a as vr}from"./react-DmpIMwDM.js";import{h as dt}from"./aria-hidden-DQ5UC2Eg.js";import{R as ft}from"./react-remove-scroll-BOyN_WUU.js";import{r as $e,R as mr}from"./react-dom-Cjr6YfK8.js";import{u as gr,a as hr,o as xr,s as Cr,f as wr,b as yr,c as Pr,h as Sr,l as Er}from"./@floating-ui-Bob4LHZu.js";function Rr(e,o=[]){let t=[];function n(s,i){const c=a.createContext(i),l=t.length;t=[...t,i];const u=m=>{var C;const{scope:g,children:h,...f}=m,v=((C=g==null?void 0:g[e])==null?void 0:C[l])||c,w=a.useMemo(()=>f,Object.values(f));return d.jsx(v.Provider,{value:w,children:h})};u.displayName=s+"Provider";function p(m,g){var v;const h=((v=g==null?void 0:g[e])==null?void 0:v[l])||c,f=a.useContext(h);if(f)return f;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[u,p]}const r=()=>{const s=t.map(i=>a.createContext(i));return function(c){const l=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return r.scopeName=e,[n,br(r,...o)]}function br(...e){const o=e[0];if(e.length===1)return o;const t=()=>{const n=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const i=n.reduce((c,{useScope:l,scopeName:u})=>{const m=l(s)[`__scope${u}`];return{...c,...m}},{});return a.useMemo(()=>({[`__scope${o.scopeName}`]:i}),[i])}};return t.scopeName=o.scopeName,t}function Ar(e,o){const t=a.createContext(o);function n(s){const{children:i,...c}=s,l=a.useMemo(()=>c,Object.values(c));return d.jsx(t.Provider,{value:l,children:i})}function r(s){const i=a.useContext(t);if(i)return i;if(o!==void 0)return o;throw new Error(`\`${s}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",[n,r]}function te(e,o=[]){let t=[];function n(s,i){const c=a.createContext(i),l=t.length;t=[...t,i];function u(m){const{scope:g,children:h,...f}=m,v=(g==null?void 0:g[e][l])||c,w=a.useMemo(()=>f,Object.values(f));return d.jsx(v.Provider,{value:w,children:h})}function p(m,g){const h=(g==null?void 0:g[e][l])||c,f=a.useContext(h);if(f)return f;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,p]}const r=()=>{const s=t.map(i=>a.createContext(i));return function(c){const l=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return r.scopeName=e,[n,Nr(r,...o)]}function Nr(...e){const o=e[0];if(e.length===1)return o;const t=()=>{const n=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const i=n.reduce((c,{useScope:l,scopeName:u})=>{const m=l(s)[`__scope${u}`];return{...c,...m}},{});return a.useMemo(()=>({[`__scope${o.scopeName}`]:i}),[i])}};return t.scopeName=o.scopeName,t}function _r(e,o){typeof e=="function"?e(o):e!=null&&(e.current=o)}function Kt(...e){return o=>e.forEach(t=>_r(t,o))}function N(...e){return a.useCallback(Kt(...e),e)}var pe=a.forwardRef((e,o)=>{const{children:t,...n}=e,r=a.Children.toArray(t),s=r.find(Ir);if(s){const i=s.props.children,c=r.map(l=>l===s?a.Children.count(i)>1?a.Children.only(null):a.isValidElement(i)?i.props.children:null:l);return d.jsx(ot,{...n,ref:o,children:a.isValidElement(i)?a.cloneElement(i,void 0,c):null})}return d.jsx(ot,{...n,ref:o,children:t})});pe.displayName="Slot";var ot=a.forwardRef((e,o)=>{const{children:t,...n}=e;if(a.isValidElement(t)){const r=Or(t);return a.cloneElement(t,{...Tr(n,t.props),ref:o?Kt(o,r):r})}return a.Children.count(t)>1?a.Children.only(null):null});ot.displayName="SlotClone";var zt=({children:e})=>d.jsx(d.Fragment,{children:e});function Ir(e){return a.isValidElement(e)&&e.type===zt}function Tr(e,o){const t={...o};for(const n in o){const r=e[n],s=o[n];/^on[A-Z]/.test(n)?r&&s?t[n]=(...c)=>{s(...c),r(...c)}:r&&(t[n]=r):n==="style"?t[n]={...r,...s}:n==="className"&&(t[n]=[r,s].filter(Boolean).join(" "))}return{...e,...t}}function Or(e){var n,r;let o=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,t=o&&"isReactWarning"in o&&o.isReactWarning;return t?e.ref:(o=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,t=o&&"isReactWarning"in o&&o.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function pt(e){const o=e+"CollectionProvider",[t,n]=te(o),[r,s]=t(o,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:f,children:v}=h,w=L.useRef(null),C=L.useRef(new Map).current;return d.jsx(r,{scope:f,itemMap:C,collectionRef:w,children:v})};i.displayName=o;const c=e+"CollectionSlot",l=L.forwardRef((h,f)=>{const{scope:v,children:w}=h,C=s(c,v),x=N(f,C.collectionRef);return d.jsx(pe,{ref:x,children:w})});l.displayName=c;const u=e+"CollectionItemSlot",p="data-radix-collection-item",m=L.forwardRef((h,f)=>{const{scope:v,children:w,...C}=h,x=L.useRef(null),y=N(f,x),b=s(u,v);return L.useEffect(()=>(b.itemMap.set(x,{ref:x,...C}),()=>void b.itemMap.delete(x))),d.jsx(pe,{[p]:"",ref:y,children:w})});m.displayName=u;function g(h){const f=s(e+"CollectionConsumer",h);return L.useCallback(()=>{const w=f.collectionRef.current;if(!w)return[];const C=Array.from(w.querySelectorAll(`[${p}]`));return Array.from(f.itemMap.values()).sort((b,_)=>C.indexOf(b.ref.current)-C.indexOf(_.ref.current))},[f.collectionRef,f.itemMap])}return[{Provider:i,Slot:l,ItemSlot:m},g,n]}function P(e,o,{checkForDefaultPrevented:t=!0}={}){return function(r){if(e==null||e(r),t===!1||!r.defaultPrevented)return o==null?void 0:o(r)}}function Q(e){const o=a.useRef(e);return a.useEffect(()=>{o.current=e}),a.useMemo(()=>(...t)=>{var n;return(n=o.current)==null?void 0:n.call(o,...t)},[])}function ee({prop:e,defaultProp:o,onChange:t=()=>{}}){const[n,r]=Dr({defaultProp:o,onChange:t}),s=e!==void 0,i=s?e:n,c=Q(t),l=a.useCallback(u=>{if(s){const m=typeof u=="function"?u(e):u;m!==e&&c(m)}else r(u)},[s,e,r,c]);return[i,l]}function Dr({defaultProp:e,onChange:o}){const t=a.useState(e),[n]=t,r=a.useRef(n),s=Q(o);return a.useEffect(()=>{r.current!==n&&(s(n),r.current=n)},[n,r,s]),t}var Mr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],R=Mr.reduce((e,o)=>{const t=a.forwardRef((n,r)=>{const{asChild:s,...i}=n,c=s?pe:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...i,ref:r})});return t.displayName=`Primitive.${o}`,{...e,[o]:t}},{});function jr(e,o){e&&$e.flushSync(()=>e.dispatchEvent(o))}function Fr(e,o=[]){let t=[];function n(s,i){const c=a.createContext(i),l=t.length;t=[...t,i];const u=m=>{var C;const{scope:g,children:h,...f}=m,v=((C=g==null?void 0:g[e])==null?void 0:C[l])||c,w=a.useMemo(()=>f,Object.values(f));return d.jsx(v.Provider,{value:w,children:h})};u.displayName=s+"Provider";function p(m,g){var v;const h=((v=g==null?void 0:g[e])==null?void 0:v[l])||c,f=a.useContext(h);if(f)return f;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[u,p]}const r=()=>{const s=t.map(i=>a.createContext(i));return function(c){const l=(c==null?void 0:c[e])||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return r.scopeName=e,[n,Lr(r,...o)]}function Lr(...e){const o=e[0];if(e.length===1)return o;const t=()=>{const n=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const i=n.reduce((c,{useScope:l,scopeName:u})=>{const m=l(s)[`__scope${u}`];return{...c,...m}},{});return a.useMemo(()=>({[`__scope${o.scopeName}`]:i}),[i])}};return t.scopeName=o.scopeName,t}var H=globalThis!=null&&globalThis.document?a.useLayoutEffect:()=>{};function kr(e,o){return a.useReducer((t,n)=>o[t][n]??t,e)}var Yt=e=>{const{present:o,children:t}=e,n=$r(o),r=typeof t=="function"?t({present:n.isPresent}):a.Children.only(t),s=N(n.ref,Hr(r));return typeof t=="function"||n.isPresent?a.cloneElement(r,{ref:s}):null};Yt.displayName="Presence";function $r(e){const[o,t]=a.useState(),n=a.useRef({}),r=a.useRef(e),s=a.useRef("none"),i=e?"mounted":"unmounted",[c,l]=kr(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const u=Oe(n.current);s.current=c==="mounted"?u:"none"},[c]),H(()=>{const u=n.current,p=r.current;if(p!==e){const g=s.current,h=Oe(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(p&&g!==h?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),H(()=>{if(o){let u;const p=o.ownerDocument.defaultView??window,m=h=>{const v=Oe(n.current).includes(h.animationName);if(h.target===o&&v&&(l("ANIMATION_END"),!r.current)){const w=o.style.animationFillMode;o.style.animationFillMode="forwards",u=p.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=w)})}},g=h=>{h.target===o&&(s.current=Oe(n.current))};return o.addEventListener("animationstart",g),o.addEventListener("animationcancel",m),o.addEventListener("animationend",m),()=>{p.clearTimeout(u),o.removeEventListener("animationstart",g),o.removeEventListener("animationcancel",m),o.removeEventListener("animationend",m)}}else l("ANIMATION_END")},[o,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:a.useCallback(u=>{u&&(n.current=getComputedStyle(u)),t(u)},[])}}function Oe(e){return(e==null?void 0:e.animationName)||"none"}function Hr(e){var n,r;let o=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,t=o&&"isReactWarning"in o&&o.isReactWarning;return t?e.ref:(o=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,t=o&&"isReactWarning"in o&&o.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var Ur=vr.useId||(()=>{}),Br=0;function J(e){const[o,t]=a.useState(Ur());return H(()=>{t(n=>n??String(Br++))},[e]),o?`radix-${o}`:""}var vt="Collapsible",[Wr,qt]=Fr(vt),[Vr,mt]=Wr(vt),Xt=a.forwardRef((e,o)=>{const{__scopeCollapsible:t,open:n,defaultOpen:r,disabled:s,onOpenChange:i,...c}=e,[l=!1,u]=ee({prop:n,defaultProp:r,onChange:i});return d.jsx(Vr,{scope:t,disabled:s,contentId:J(),open:l,onOpenToggle:a.useCallback(()=>u(p=>!p),[u]),children:d.jsx(R.div,{"data-state":ht(l),"data-disabled":s?"":void 0,...c,ref:o})})});Xt.displayName=vt;var Zt="CollapsibleTrigger",Jt=a.forwardRef((e,o)=>{const{__scopeCollapsible:t,...n}=e,r=mt(Zt,t);return d.jsx(R.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":ht(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...n,ref:o,onClick:P(e.onClick,r.onOpenToggle)})});Jt.displayName=Zt;var gt="CollapsibleContent",Qt=a.forwardRef((e,o)=>{const{forceMount:t,...n}=e,r=mt(gt,e.__scopeCollapsible);return d.jsx(Yt,{present:t||r.open,children:({present:s})=>d.jsx(Gr,{...n,ref:o,present:s})})});Qt.displayName=gt;var Gr=a.forwardRef((e,o)=>{const{__scopeCollapsible:t,present:n,children:r,...s}=e,i=mt(gt,t),[c,l]=a.useState(n),u=a.useRef(null),p=N(o,u),m=a.useRef(0),g=m.current,h=a.useRef(0),f=h.current,v=i.open||c,w=a.useRef(v),C=a.useRef();return a.useEffect(()=>{const x=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(x)},[]),H(()=>{const x=u.current;if(x){C.current=C.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const y=x.getBoundingClientRect();m.current=y.height,h.current=y.width,w.current||(x.style.transitionDuration=C.current.transitionDuration,x.style.animationName=C.current.animationName),l(n)}},[i.open,n]),d.jsx(R.div,{"data-state":ht(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!v,...s,ref:p,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":f?`${f}px`:void 0,...e.style},children:v&&r})});function ht(e){return e?"open":"closed"}var Kr=Xt,zr=Jt,Yr=Qt,qr=a.createContext(void 0);function He(e){const o=a.useContext(qr);return e||o||"ltr"}var re="Accordion",Xr=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[xt,Zr,Jr]=pt(re),[Ue,di]=Rr(re,[Jr,qt]),Ct=qt(),eo=L.forwardRef((e,o)=>{const{type:t,...n}=e,r=n,s=n;return d.jsx(xt.Provider,{scope:e.__scopeAccordion,children:t==="multiple"?d.jsx(os,{...s,ref:o}):d.jsx(ts,{...r,ref:o})})});eo.displayName=re;var[to,Qr]=Ue(re),[oo,es]=Ue(re,{collapsible:!1}),ts=L.forwardRef((e,o)=>{const{value:t,defaultValue:n,onValueChange:r=()=>{},collapsible:s=!1,...i}=e,[c,l]=ee({prop:t,defaultProp:n,onChange:r});return d.jsx(to,{scope:e.__scopeAccordion,value:c?[c]:[],onItemOpen:l,onItemClose:L.useCallback(()=>s&&l(""),[s,l]),children:d.jsx(oo,{scope:e.__scopeAccordion,collapsible:s,children:d.jsx(no,{...i,ref:o})})})}),os=L.forwardRef((e,o)=>{const{value:t,defaultValue:n,onValueChange:r=()=>{},...s}=e,[i=[],c]=ee({prop:t,defaultProp:n,onChange:r}),l=L.useCallback(p=>c((m=[])=>[...m,p]),[c]),u=L.useCallback(p=>c((m=[])=>m.filter(g=>g!==p)),[c]);return d.jsx(to,{scope:e.__scopeAccordion,value:i,onItemOpen:l,onItemClose:u,children:d.jsx(oo,{scope:e.__scopeAccordion,collapsible:!0,children:d.jsx(no,{...s,ref:o})})})}),[ns,Be]=Ue(re),no=L.forwardRef((e,o)=>{const{__scopeAccordion:t,disabled:n,dir:r,orientation:s="vertical",...i}=e,c=L.useRef(null),l=N(c,o),u=Zr(t),m=He(r)==="ltr",g=P(e.onKeyDown,h=>{var A;if(!Xr.includes(h.key))return;const f=h.target,v=u().filter(k=>{var $;return!(($=k.ref.current)!=null&&$.disabled)}),w=v.findIndex(k=>k.ref.current===f),C=v.length;if(w===-1)return;h.preventDefault();let x=w;const y=0,b=C-1,_=()=>{x=w+1,x>b&&(x=y)},M=()=>{x=w-1,x{const{__scopeAccordion:t,value:n,...r}=e,s=Be(Me,t),i=Qr(Me,t),c=Ct(t),l=J(),u=n&&i.value.includes(n)||!1,p=s.disabled||e.disabled;return d.jsx(rs,{scope:t,open:u,disabled:p,triggerId:l,children:d.jsx(Kr,{"data-orientation":s.orientation,"data-state":uo(u),...c,...r,ref:o,disabled:p,open:u,onOpenChange:m=>{m?i.onItemOpen(n):i.onItemClose(n)}})})});ro.displayName=Me;var so="AccordionHeader",ao=L.forwardRef((e,o)=>{const{__scopeAccordion:t,...n}=e,r=Be(re,t),s=wt(so,t);return d.jsx(R.h3,{"data-orientation":r.orientation,"data-state":uo(s.open),"data-disabled":s.disabled?"":void 0,...n,ref:o})});ao.displayName=so;var nt="AccordionTrigger",io=L.forwardRef((e,o)=>{const{__scopeAccordion:t,...n}=e,r=Be(re,t),s=wt(nt,t),i=es(nt,t),c=Ct(t);return d.jsx(xt.ItemSlot,{scope:t,children:d.jsx(zr,{"aria-disabled":s.open&&!i.collapsible||void 0,"data-orientation":r.orientation,id:s.triggerId,...c,...n,ref:o})})});io.displayName=nt;var co="AccordionContent",lo=L.forwardRef((e,o)=>{const{__scopeAccordion:t,...n}=e,r=Be(re,t),s=wt(co,t),i=Ct(t);return d.jsx(Yr,{role:"region","aria-labelledby":s.triggerId,"data-orientation":r.orientation,...i,...n,ref:o,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});lo.displayName=co;function uo(e){return e?"open":"closed"}var fi=eo,pi=ro,vi=ao,mi=io,gi=lo;function ss(e,o=globalThis==null?void 0:globalThis.document){const t=Q(e);a.useEffect(()=>{const n=r=>{r.key==="Escape"&&t(r)};return o.addEventListener("keydown",n,{capture:!0}),()=>o.removeEventListener("keydown",n,{capture:!0})},[t,o])}var as="DismissableLayer",rt="dismissableLayer.update",is="dismissableLayer.pointerDownOutside",cs="dismissableLayer.focusOutside",kt,fo=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ne=a.forwardRef((e,o)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:n,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:i,onDismiss:c,...l}=e,u=a.useContext(fo),[p,m]=a.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=a.useState({}),f=N(o,E=>m(E)),v=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),C=v.indexOf(w),x=p?v.indexOf(p):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,b=x>=C,_=ds(E=>{const A=E.target,k=[...u.branches].some($=>$.contains(A));!b||k||(r==null||r(E),i==null||i(E),E.defaultPrevented||c==null||c())},g),M=fs(E=>{const A=E.target;[...u.branches].some($=>$.contains(A))||(s==null||s(E),i==null||i(E),E.defaultPrevented||c==null||c())},g);return ss(E=>{x===u.layers.size-1&&(n==null||n(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},g),a.useEffect(()=>{if(p)return t&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(kt=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),$t(),()=>{t&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=kt)}},[p,g,t,u]),a.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),$t())},[p,u]),a.useEffect(()=>{const E=()=>h({});return document.addEventListener(rt,E),()=>document.removeEventListener(rt,E)},[]),d.jsx(R.div,{...l,ref:f,style:{pointerEvents:y?b?"auto":"none":void 0,...e.style},onFocusCapture:P(e.onFocusCapture,M.onFocusCapture),onBlurCapture:P(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:P(e.onPointerDownCapture,_.onPointerDownCapture)})});Ne.displayName=as;var ls="DismissableLayerBranch",us=a.forwardRef((e,o)=>{const t=a.useContext(fo),n=a.useRef(null),r=N(o,n);return a.useEffect(()=>{const s=n.current;if(s)return t.branches.add(s),()=>{t.branches.delete(s)}},[t.branches]),d.jsx(R.div,{...e,ref:r})});us.displayName=ls;function ds(e,o=globalThis==null?void 0:globalThis.document){const t=Q(e),n=a.useRef(!1),r=a.useRef(()=>{});return a.useEffect(()=>{const s=c=>{if(c.target&&!n.current){let l=function(){po(is,t,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(o.removeEventListener("click",r.current),r.current=l,o.addEventListener("click",r.current,{once:!0})):l()}else o.removeEventListener("click",r.current);n.current=!1},i=window.setTimeout(()=>{o.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),o.removeEventListener("pointerdown",s),o.removeEventListener("click",r.current)}},[o,t]),{onPointerDownCapture:()=>n.current=!0}}function fs(e,o=globalThis==null?void 0:globalThis.document){const t=Q(e),n=a.useRef(!1);return a.useEffect(()=>{const r=s=>{s.target&&!n.current&&po(cs,t,{originalEvent:s},{discrete:!1})};return o.addEventListener("focusin",r),()=>o.removeEventListener("focusin",r)},[o,t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function $t(){const e=new CustomEvent(rt);document.dispatchEvent(e)}function po(e,o,t,{discrete:n}){const r=t.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});o&&r.addEventListener(e,o,{once:!0}),n?jr(r,s):r.dispatchEvent(s)}var Ze=0;function yt(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ht()),document.body.insertAdjacentElement("beforeend",e[1]??Ht()),Ze++,()=>{Ze===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Ze--}},[])}function Ht(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Je="focusScope.autoFocusOnMount",Qe="focusScope.autoFocusOnUnmount",Ut={bubbles:!1,cancelable:!0},ps="FocusScope",We=a.forwardRef((e,o)=>{const{loop:t=!1,trapped:n=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...i}=e,[c,l]=a.useState(null),u=Q(r),p=Q(s),m=a.useRef(null),g=N(o,v=>l(v)),h=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(n){let v=function(y){if(h.paused||!c)return;const b=y.target;c.contains(b)?m.current=b:ie(m.current,{select:!0})},w=function(y){if(h.paused||!c)return;const b=y.relatedTarget;b!==null&&(c.contains(b)||ie(m.current,{select:!0}))},C=function(y){if(document.activeElement===document.body)for(const _ of y)_.removedNodes.length>0&&ie(c)};document.addEventListener("focusin",v),document.addEventListener("focusout",w);const x=new MutationObserver(C);return c&&x.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",w),x.disconnect()}}},[n,c,h.paused]),a.useEffect(()=>{if(c){Wt.add(h);const v=document.activeElement;if(!c.contains(v)){const C=new CustomEvent(Je,Ut);c.addEventListener(Je,u),c.dispatchEvent(C),C.defaultPrevented||(vs(Cs(vo(c)),{select:!0}),document.activeElement===v&&ie(c))}return()=>{c.removeEventListener(Je,u),setTimeout(()=>{const C=new CustomEvent(Qe,Ut);c.addEventListener(Qe,p),c.dispatchEvent(C),C.defaultPrevented||ie(v??document.body,{select:!0}),c.removeEventListener(Qe,p),Wt.remove(h)},0)}}},[c,u,p,h]);const f=a.useCallback(v=>{if(!t&&!n||h.paused)return;const w=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,C=document.activeElement;if(w&&C){const x=v.currentTarget,[y,b]=ms(x);y&&b?!v.shiftKey&&C===b?(v.preventDefault(),t&&ie(y,{select:!0})):v.shiftKey&&C===y&&(v.preventDefault(),t&&ie(b,{select:!0})):C===x&&v.preventDefault()}},[t,n,h.paused]);return d.jsx(R.div,{tabIndex:-1,...i,ref:g,onKeyDown:f})});We.displayName=ps;function vs(e,{select:o=!1}={}){const t=document.activeElement;for(const n of e)if(ie(n,{select:o}),document.activeElement!==t)return}function ms(e){const o=vo(e),t=Bt(o,e),n=Bt(o.reverse(),e);return[t,n]}function vo(e){const o=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)o.push(t.currentNode);return o}function Bt(e,o){for(const t of e)if(!gs(t,{upTo:o}))return t}function gs(e,{upTo:o}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(o!==void 0&&e===o)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function hs(e){return e instanceof HTMLInputElement&&"select"in e}function ie(e,{select:o=!1}={}){if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&hs(e)&&o&&e.select()}}var Wt=xs();function xs(){let e=[];return{add(o){const t=e[0];o!==t&&(t==null||t.pause()),e=Vt(e,o),e.unshift(o)},remove(o){var t;e=Vt(e,o),(t=e[0])==null||t.resume()}}}function Vt(e,o){const t=[...e],n=t.indexOf(o);return n!==-1&&t.splice(n,1),t}function Cs(e){return e.filter(o=>o.tagName!=="A")}var ws="Arrow",mo=a.forwardRef((e,o)=>{const{children:t,width:n=10,height:r=5,...s}=e;return d.jsx(R.svg,{...s,ref:o,width:n,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?t:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});mo.displayName=ws;var ys=mo;function go(e){const[o,t]=a.useState(void 0);return H(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let i,c;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,c=u.blockSize}else i=e.offsetWidth,c=e.offsetHeight;t({width:i,height:c})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else t(void 0)},[e]),o}var Pt="Popper",[ho,Ce]=te(Pt),[Ps,xo]=ho(Pt),Co=e=>{const{__scopePopper:o,children:t}=e,[n,r]=a.useState(null);return d.jsx(Ps,{scope:o,anchor:n,onAnchorChange:r,children:t})};Co.displayName=Pt;var wo="PopperAnchor",yo=a.forwardRef((e,o)=>{const{__scopePopper:t,virtualRef:n,...r}=e,s=xo(wo,t),i=a.useRef(null),c=N(o,i);return a.useEffect(()=>{s.onAnchorChange((n==null?void 0:n.current)||i.current)}),n?null:d.jsx(R.div,{...r,ref:c})});yo.displayName=wo;var St="PopperContent",[Ss,Es]=ho(St),Po=a.forwardRef((e,o)=>{var S,D,U,O,I,T;const{__scopePopper:t,side:n="bottom",sideOffset:r=0,align:s="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:f,...v}=e,w=xo(St,t),[C,x]=a.useState(null),y=N(o,z=>x(z)),[b,_]=a.useState(null),M=go(b),E=(M==null?void 0:M.width)??0,A=(M==null?void 0:M.height)??0,k=n+(s!=="center"?"-"+s:""),$=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},W=Array.isArray(u)?u:[u],V=W.length>0,B={padding:$,boundary:W.filter(bs),altBoundary:V},{refs:Y,floatingStyles:j,placement:F,isPositioned:G,middlewareData:K}=gr({strategy:"fixed",placement:k,whileElementsMounted:(...z)=>hr(...z,{animationFrame:h==="always"}),elements:{reference:w.anchor},middleware:[xr({mainAxis:r+A,alignmentAxis:i}),l&&Cr({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Er():void 0,...B}),l&&wr({...B}),yr({...B,apply:({elements:z,rects:Z,availableWidth:Ee,availableHeight:Re})=>{const{width:be,height:pr}=Z.reference,Te=z.floating.style;Te.setProperty("--radix-popper-available-width",`${Ee}px`),Te.setProperty("--radix-popper-available-height",`${Re}px`),Te.setProperty("--radix-popper-anchor-width",`${be}px`),Te.setProperty("--radix-popper-anchor-height",`${pr}px`)}}),b&&Pr({element:b,padding:c}),As({arrowWidth:E,arrowHeight:A}),g&&Sr({strategy:"referenceHidden",...B})]}),[q,ye]=Ro(F),oe=Q(f);H(()=>{G&&(oe==null||oe())},[G,oe]);const Pe=(S=K.arrow)==null?void 0:S.x,Se=(D=K.arrow)==null?void 0:D.y,ae=((U=K.arrow)==null?void 0:U.centerOffset)!==0,[ge,fe]=a.useState();return H(()=>{C&&fe(window.getComputedStyle(C).zIndex)},[C]),d.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:G?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(O=K.transformOrigin)==null?void 0:O.x,(I=K.transformOrigin)==null?void 0:I.y].join(" "),...((T=K.hide)==null?void 0:T.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(Ss,{scope:t,placedSide:q,onArrowChange:_,arrowX:Pe,arrowY:Se,shouldHideArrow:ae,children:d.jsx(R.div,{"data-side":q,"data-align":ye,...v,ref:y,style:{...v.style,animation:G?void 0:"none"}})})})});Po.displayName=St;var So="PopperArrow",Rs={top:"bottom",right:"left",bottom:"top",left:"right"},Eo=a.forwardRef(function(o,t){const{__scopePopper:n,...r}=o,s=Es(So,n),i=Rs[s.placedSide];return d.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:d.jsx(ys,{...r,ref:t,style:{...r.style,display:"block"}})})});Eo.displayName=So;function bs(e){return e!==null}var As=e=>({name:"transformOrigin",options:e,fn(o){var w,C,x;const{placement:t,rects:n,middlewareData:r}=o,i=((w=r.arrow)==null?void 0:w.centerOffset)!==0,c=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,p]=Ro(t),m={start:"0%",center:"50%",end:"100%"}[p],g=(((C=r.arrow)==null?void 0:C.x)??0)+c/2,h=(((x=r.arrow)==null?void 0:x.y)??0)+l/2;let f="",v="";return u==="bottom"?(f=i?m:`${g}px`,v=`${-l}px`):u==="top"?(f=i?m:`${g}px`,v=`${n.floating.height+l}px`):u==="right"?(f=`${-l}px`,v=i?m:`${h}px`):u==="left"&&(f=`${n.floating.width+l}px`,v=i?m:`${h}px`),{data:{x:f,y:v}}}});function Ro(e){const[o,t="center"]=e.split("-");return[o,t]}var Et=Co,Ve=yo,Rt=Po,bt=Eo,Ns="Portal",Ge=a.forwardRef((e,o)=>{var c;const{container:t,...n}=e,[r,s]=a.useState(!1);H(()=>s(!0),[]);const i=t||r&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return i?mr.createPortal(d.jsx(R.div,{...n,ref:o}),i):null});Ge.displayName=Ns;function _s(e,o){return a.useReducer((t,n)=>o[t][n]??t,e)}var ce=e=>{const{present:o,children:t}=e,n=Is(o),r=typeof t=="function"?t({present:n.isPresent}):a.Children.only(t),s=N(n.ref,Ts(r));return typeof t=="function"||n.isPresent?a.cloneElement(r,{ref:s}):null};ce.displayName="Presence";function Is(e){const[o,t]=a.useState(),n=a.useRef({}),r=a.useRef(e),s=a.useRef("none"),i=e?"mounted":"unmounted",[c,l]=_s(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const u=De(n.current);s.current=c==="mounted"?u:"none"},[c]),H(()=>{const u=n.current,p=r.current;if(p!==e){const g=s.current,h=De(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(p&&g!==h?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),H(()=>{if(o){const u=m=>{const h=De(n.current).includes(m.animationName);m.target===o&&h&&$e.flushSync(()=>l("ANIMATION_END"))},p=m=>{m.target===o&&(s.current=De(n.current))};return o.addEventListener("animationstart",p),o.addEventListener("animationcancel",u),o.addEventListener("animationend",u),()=>{o.removeEventListener("animationstart",p),o.removeEventListener("animationcancel",u),o.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[o,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:a.useCallback(u=>{u&&(n.current=getComputedStyle(u)),t(u)},[])}}function De(e){return(e==null?void 0:e.animationName)||"none"}function Ts(e){var n,r;let o=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,t=o&&"isReactWarning"in o&&o.isReactWarning;return t?e.ref:(o=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,t=o&&"isReactWarning"in o&&o.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var At="Popover",[bo,hi]=te(At,[Ce]),_e=Ce(),[Os,le]=bo(At),Ao=e=>{const{__scopePopover:o,children:t,open:n,defaultOpen:r,onOpenChange:s,modal:i=!1}=e,c=_e(o),l=a.useRef(null),[u,p]=a.useState(!1),[m=!1,g]=ee({prop:n,defaultProp:r,onChange:s});return d.jsx(Et,{...c,children:d.jsx(Os,{scope:o,contentId:J(),triggerRef:l,open:m,onOpenChange:g,onOpenToggle:a.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:u,onCustomAnchorAdd:a.useCallback(()=>p(!0),[]),onCustomAnchorRemove:a.useCallback(()=>p(!1),[]),modal:i,children:t})})};Ao.displayName=At;var No="PopoverAnchor",Ds=a.forwardRef((e,o)=>{const{__scopePopover:t,...n}=e,r=le(No,t),s=_e(t),{onCustomAnchorAdd:i,onCustomAnchorRemove:c}=r;return a.useEffect(()=>(i(),()=>c()),[i,c]),d.jsx(Ve,{...s,...n,ref:o})});Ds.displayName=No;var _o="PopoverTrigger",Io=a.forwardRef((e,o)=>{const{__scopePopover:t,...n}=e,r=le(_o,t),s=_e(t),i=N(o,r.triggerRef),c=d.jsx(R.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":jo(r.open),...n,ref:i,onClick:P(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?c:d.jsx(Ve,{asChild:!0,...s,children:c})});Io.displayName=_o;var Nt="PopoverPortal",[Ms,js]=bo(Nt,{forceMount:void 0}),To=e=>{const{__scopePopover:o,forceMount:t,children:n,container:r}=e,s=le(Nt,o);return d.jsx(Ms,{scope:o,forceMount:t,children:d.jsx(ce,{present:t||s.open,children:d.jsx(Ge,{asChild:!0,container:r,children:n})})})};To.displayName=Nt;var xe="PopoverContent",Oo=a.forwardRef((e,o)=>{const t=js(xe,e.__scopePopover),{forceMount:n=t.forceMount,...r}=e,s=le(xe,e.__scopePopover);return d.jsx(ce,{present:n||s.open,children:s.modal?d.jsx(Fs,{...r,ref:o}):d.jsx(Ls,{...r,ref:o})})});Oo.displayName=xe;var Fs=a.forwardRef((e,o)=>{const t=le(xe,e.__scopePopover),n=a.useRef(null),r=N(o,n),s=a.useRef(!1);return a.useEffect(()=>{const i=n.current;if(i)return dt(i)},[]),d.jsx(ft,{as:pe,allowPinchZoom:!0,children:d.jsx(Do,{...e,ref:r,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:P(e.onCloseAutoFocus,i=>{var c;i.preventDefault(),s.current||(c=t.triggerRef.current)==null||c.focus()}),onPointerDownOutside:P(e.onPointerDownOutside,i=>{const c=i.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,u=c.button===2||l;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:P(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),Ls=a.forwardRef((e,o)=>{const t=le(xe,e.__scopePopover),n=a.useRef(!1),r=a.useRef(!1);return d.jsx(Do,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,c;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(n.current||(c=t.triggerRef.current)==null||c.focus(),s.preventDefault()),n.current=!1,r.current=!1},onInteractOutside:s=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const i=s.target;((u=t.triggerRef.current)==null?void 0:u.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),Do=a.forwardRef((e,o)=>{const{__scopePopover:t,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:p,...m}=e,g=le(xe,t),h=_e(t);return yt(),d.jsx(We,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:s,children:d.jsx(Ne,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:p,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:d.jsx(Rt,{"data-state":jo(g.open),role:"dialog",id:g.contentId,...h,...m,ref:o,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Mo="PopoverClose",ks=a.forwardRef((e,o)=>{const{__scopePopover:t,...n}=e,r=le(Mo,t);return d.jsx(R.button,{type:"button",...n,ref:o,onClick:P(e.onClick,()=>r.onOpenChange(!1))})});ks.displayName=Mo;var $s="PopoverArrow",Hs=a.forwardRef((e,o)=>{const{__scopePopover:t,...n}=e,r=_e(t);return d.jsx(bt,{...r,...n,ref:o})});Hs.displayName=$s;function jo(e){return e?"open":"closed"}var xi=Ao,Ci=Io,wi=To,yi=Oo,_t="Dialog",[Fo,Lo]=te(_t),[Us,X]=Fo(_t),ko=e=>{const{__scopeDialog:o,children:t,open:n,defaultOpen:r,onOpenChange:s,modal:i=!0}=e,c=a.useRef(null),l=a.useRef(null),[u=!1,p]=ee({prop:n,defaultProp:r,onChange:s});return d.jsx(Us,{scope:o,triggerRef:c,contentRef:l,contentId:J(),titleId:J(),descriptionId:J(),open:u,onOpenChange:p,onOpenToggle:a.useCallback(()=>p(m=>!m),[p]),modal:i,children:t})};ko.displayName=_t;var $o="DialogTrigger",Ho=a.forwardRef((e,o)=>{const{__scopeDialog:t,...n}=e,r=X($o,t),s=N(o,r.triggerRef);return d.jsx(R.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Ot(r.open),...n,ref:s,onClick:P(e.onClick,r.onOpenToggle)})});Ho.displayName=$o;var It="DialogPortal",[Bs,Uo]=Fo(It,{forceMount:void 0}),Bo=e=>{const{__scopeDialog:o,forceMount:t,children:n,container:r}=e,s=X(It,o);return d.jsx(Bs,{scope:o,forceMount:t,children:a.Children.map(n,i=>d.jsx(ce,{present:t||s.open,children:d.jsx(Ge,{asChild:!0,container:r,children:i})}))})};Bo.displayName=It;var je="DialogOverlay",Wo=a.forwardRef((e,o)=>{const t=Uo(je,e.__scopeDialog),{forceMount:n=t.forceMount,...r}=e,s=X(je,e.__scopeDialog);return s.modal?d.jsx(ce,{present:n||s.open,children:d.jsx(Ws,{...r,ref:o})}):null});Wo.displayName=je;var Ws=a.forwardRef((e,o)=>{const{__scopeDialog:t,...n}=e,r=X(je,t);return d.jsx(ft,{as:pe,allowPinchZoom:!0,shards:[r.contentRef],children:d.jsx(R.div,{"data-state":Ot(r.open),...n,ref:o,style:{pointerEvents:"auto",...n.style}})})}),ve="DialogContent",Vo=a.forwardRef((e,o)=>{const t=Uo(ve,e.__scopeDialog),{forceMount:n=t.forceMount,...r}=e,s=X(ve,e.__scopeDialog);return d.jsx(ce,{present:n||s.open,children:s.modal?d.jsx(Vs,{...r,ref:o}):d.jsx(Gs,{...r,ref:o})})});Vo.displayName=ve;var Vs=a.forwardRef((e,o)=>{const t=X(ve,e.__scopeDialog),n=a.useRef(null),r=N(o,t.contentRef,n);return a.useEffect(()=>{const s=n.current;if(s)return dt(s)},[]),d.jsx(Go,{...e,ref:r,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:P(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=t.triggerRef.current)==null||i.focus()}),onPointerDownOutside:P(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&s.preventDefault()}),onFocusOutside:P(e.onFocusOutside,s=>s.preventDefault())})}),Gs=a.forwardRef((e,o)=>{const t=X(ve,e.__scopeDialog),n=a.useRef(!1),r=a.useRef(!1);return d.jsx(Go,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,c;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(n.current||(c=t.triggerRef.current)==null||c.focus(),s.preventDefault()),n.current=!1,r.current=!1},onInteractOutside:s=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const i=s.target;((u=t.triggerRef.current)==null?void 0:u.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),Go=a.forwardRef((e,o)=>{const{__scopeDialog:t,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:s,...i}=e,c=X(ve,t),l=a.useRef(null),u=N(o,l);return yt(),d.jsxs(d.Fragment,{children:[d.jsx(We,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:s,children:d.jsx(Ne,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Ot(c.open),...i,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(zs,{titleId:c.titleId}),d.jsx(qs,{contentRef:l,descriptionId:c.descriptionId})]})]})}),Tt="DialogTitle",Ko=a.forwardRef((e,o)=>{const{__scopeDialog:t,...n}=e,r=X(Tt,t);return d.jsx(R.h2,{id:r.titleId,...n,ref:o})});Ko.displayName=Tt;var zo="DialogDescription",Yo=a.forwardRef((e,o)=>{const{__scopeDialog:t,...n}=e,r=X(zo,t);return d.jsx(R.p,{id:r.descriptionId,...n,ref:o})});Yo.displayName=zo;var qo="DialogClose",Xo=a.forwardRef((e,o)=>{const{__scopeDialog:t,...n}=e,r=X(qo,t);return d.jsx(R.button,{type:"button",...n,ref:o,onClick:P(e.onClick,()=>r.onOpenChange(!1))})});Xo.displayName=qo;function Ot(e){return e?"open":"closed"}var Zo="DialogTitleWarning",[Ks,Jo]=Ar(Zo,{contentName:ve,titleName:Tt,docsSlug:"dialog"}),zs=({titleId:e})=>{const o=Jo(Zo),t=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users. + +If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component. + +For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;return a.useEffect(()=>{e&&(document.getElementById(e)||console.error(t))},[t,e]),null},Ys="DialogDescriptionWarning",qs=({contentRef:e,descriptionId:o})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Jo(Ys).contentName}}.`;return a.useEffect(()=>{var s;const r=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");o&&r&&(document.getElementById(o)||console.warn(n))},[n,e,o]),null},Xs=ko,Zs=Ho,Js=Bo,Qs=Wo,ea=Vo,ta=Ko,oa=Yo,Qo=Xo,na="Label",en=a.forwardRef((e,o)=>d.jsx(R.label,{...e,ref:o,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));en.displayName=na;var Pi=en,et="rovingFocusGroup.onEntryFocus",ra={bubbles:!1,cancelable:!0},Ke="RovingFocusGroup",[st,tn,sa]=pt(Ke),[aa,on]=te(Ke,[sa]),[ia,ca]=aa(Ke),nn=a.forwardRef((e,o)=>d.jsx(st.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(st.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(la,{...e,ref:o})})}));nn.displayName=Ke;var la=a.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,orientation:n,loop:r=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:p=!1,...m}=e,g=a.useRef(null),h=N(o,g),f=He(s),[v=null,w]=ee({prop:i,defaultProp:c,onChange:l}),[C,x]=a.useState(!1),y=Q(u),b=tn(t),_=a.useRef(!1),[M,E]=a.useState(0);return a.useEffect(()=>{const A=g.current;if(A)return A.addEventListener(et,y),()=>A.removeEventListener(et,y)},[y]),d.jsx(ia,{scope:t,orientation:n,dir:f,loop:r,currentTabStopId:v,onItemFocus:a.useCallback(A=>w(A),[w]),onItemShiftTab:a.useCallback(()=>x(!0),[]),onFocusableItemAdd:a.useCallback(()=>E(A=>A+1),[]),onFocusableItemRemove:a.useCallback(()=>E(A=>A-1),[]),children:d.jsx(R.div,{tabIndex:C||M===0?-1:0,"data-orientation":n,...m,ref:h,style:{outline:"none",...e.style},onMouseDown:P(e.onMouseDown,()=>{_.current=!0}),onFocus:P(e.onFocus,A=>{const k=!_.current;if(A.target===A.currentTarget&&k&&!C){const $=new CustomEvent(et,ra);if(A.currentTarget.dispatchEvent($),!$.defaultPrevented){const W=b().filter(F=>F.focusable),V=W.find(F=>F.active),B=W.find(F=>F.id===v),j=[V,B,...W].filter(Boolean).map(F=>F.ref.current);an(j,p)}}_.current=!1}),onBlur:P(e.onBlur,()=>x(!1))})})}),rn="RovingFocusGroupItem",sn=a.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,focusable:n=!0,active:r=!1,tabStopId:s,...i}=e,c=J(),l=s||c,u=ca(rn,t),p=u.currentTabStopId===l,m=tn(t),{onFocusableItemAdd:g,onFocusableItemRemove:h}=u;return a.useEffect(()=>{if(n)return g(),()=>h()},[n,g,h]),d.jsx(st.ItemSlot,{scope:t,id:l,focusable:n,active:r,children:d.jsx(R.span,{tabIndex:p?0:-1,"data-orientation":u.orientation,...i,ref:o,onMouseDown:P(e.onMouseDown,f=>{n?u.onItemFocus(l):f.preventDefault()}),onFocus:P(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:P(e.onKeyDown,f=>{if(f.key==="Tab"&&f.shiftKey){u.onItemShiftTab();return}if(f.target!==f.currentTarget)return;const v=fa(f,u.orientation,u.dir);if(v!==void 0){if(f.metaKey||f.ctrlKey||f.altKey||f.shiftKey)return;f.preventDefault();let C=m().filter(x=>x.focusable).map(x=>x.ref.current);if(v==="last")C.reverse();else if(v==="prev"||v==="next"){v==="prev"&&C.reverse();const x=C.indexOf(f.currentTarget);C=u.loop?pa(C,x+1):C.slice(x+1)}setTimeout(()=>an(C))}})})})});sn.displayName=rn;var ua={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function da(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function fa(e,o,t){const n=da(e.key,t);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return ua[n]}function an(e,o=!1){const t=document.activeElement;for(const n of e)if(n===t||(n.focus({preventScroll:o}),document.activeElement!==t))return}function pa(e,o){return e.map((t,n)=>e[(o+n)%e.length])}var va=nn,ma=sn;function cn(e){const o=a.useRef({value:e,previous:e});return a.useMemo(()=>(o.current.value!==e&&(o.current.previous=o.current.value,o.current.value=e),o.current.previous),[e])}var Dt="Radio",[ga,ln]=te(Dt),[ha,xa]=ga(Dt),un=a.forwardRef((e,o)=>{const{__scopeRadio:t,name:n,checked:r=!1,required:s,disabled:i,value:c="on",onCheck:l,...u}=e,[p,m]=a.useState(null),g=N(o,v=>m(v)),h=a.useRef(!1),f=p?!!p.closest("form"):!0;return d.jsxs(ha,{scope:t,checked:r,disabled:i,children:[d.jsx(R.button,{type:"button",role:"radio","aria-checked":r,"data-state":pn(r),"data-disabled":i?"":void 0,disabled:i,value:c,...u,ref:g,onClick:P(e.onClick,v=>{r||l==null||l(),f&&(h.current=v.isPropagationStopped(),h.current||v.stopPropagation())})}),f&&d.jsx(Ca,{control:p,bubbles:!h.current,name:n,value:c,checked:r,required:s,disabled:i,style:{transform:"translateX(-100%)"}})]})});un.displayName=Dt;var dn="RadioIndicator",fn=a.forwardRef((e,o)=>{const{__scopeRadio:t,forceMount:n,...r}=e,s=xa(dn,t);return d.jsx(ce,{present:n||s.checked,children:d.jsx(R.span,{"data-state":pn(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:o})})});fn.displayName=dn;var Ca=e=>{const{control:o,checked:t,bubbles:n=!0,...r}=e,s=a.useRef(null),i=cn(t),c=go(o);return a.useEffect(()=>{const l=s.current,u=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(u,"checked").set;if(i!==t&&m){const g=new Event("click",{bubbles:n});m.call(l,t),l.dispatchEvent(g)}},[i,t,n]),d.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...r,tabIndex:-1,ref:s,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function pn(e){return e?"checked":"unchecked"}var wa=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Mt="RadioGroup",[ya,Si]=te(Mt,[on,ln]),vn=on(),mn=ln(),[Pa,Sa]=ya(Mt),gn=a.forwardRef((e,o)=>{const{__scopeRadioGroup:t,name:n,defaultValue:r,value:s,required:i=!1,disabled:c=!1,orientation:l,dir:u,loop:p=!0,onValueChange:m,...g}=e,h=vn(t),f=He(u),[v,w]=ee({prop:s,defaultProp:r,onChange:m});return d.jsx(Pa,{scope:t,name:n,required:i,disabled:c,value:v,onValueChange:w,children:d.jsx(va,{asChild:!0,...h,orientation:l,dir:f,loop:p,children:d.jsx(R.div,{role:"radiogroup","aria-required":i,"aria-orientation":l,"data-disabled":c?"":void 0,dir:f,...g,ref:o})})})});gn.displayName=Mt;var hn="RadioGroupItem",xn=a.forwardRef((e,o)=>{const{__scopeRadioGroup:t,disabled:n,...r}=e,s=Sa(hn,t),i=s.disabled||n,c=vn(t),l=mn(t),u=a.useRef(null),p=N(o,u),m=s.value===r.value,g=a.useRef(!1);return a.useEffect(()=>{const h=v=>{wa.includes(v.key)&&(g.current=!0)},f=()=>g.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",f),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",f)}},[]),d.jsx(ma,{asChild:!0,...c,focusable:!i,active:m,children:d.jsx(un,{disabled:i,required:s.required,checked:m,...l,...r,name:s.name,ref:p,onCheck:()=>s.onValueChange(r.value),onKeyDown:P(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:P(r.onFocus,()=>{var h;g.current&&((h=u.current)==null||h.click())})})})});xn.displayName=hn;var Ea="RadioGroupIndicator",Cn=a.forwardRef((e,o)=>{const{__scopeRadioGroup:t,...n}=e,r=mn(t);return d.jsx(fn,{...r,...n,ref:o})});Cn.displayName=Ea;var Ei=gn,Ri=xn,bi=Cn;function Gt(e,[o,t]){return Math.min(t,Math.max(o,e))}var Ra="VisuallyHidden",wn=a.forwardRef((e,o)=>d.jsx(R.span,{...e,ref:o,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));wn.displayName=Ra;var ba=[" ","Enter","ArrowUp","ArrowDown"],Aa=[" ","Enter"],Ie="Select",[ze,Ye,Na]=pt(Ie),[we,Ai]=te(Ie,[Na,Ce]),qe=Ce(),[_a,ue]=we(Ie),[Ia,Ta]=we(Ie),yn=e=>{const{__scopeSelect:o,children:t,open:n,defaultOpen:r,onOpenChange:s,value:i,defaultValue:c,onValueChange:l,dir:u,name:p,autoComplete:m,disabled:g,required:h}=e,f=qe(o),[v,w]=a.useState(null),[C,x]=a.useState(null),[y,b]=a.useState(!1),_=He(u),[M=!1,E]=ee({prop:n,defaultProp:r,onChange:s}),[A,k]=ee({prop:i,defaultProp:c,onChange:l}),$=a.useRef(null),W=v?!!v.closest("form"):!0,[V,B]=a.useState(new Set),Y=Array.from(V).map(j=>j.props.value).join(";");return d.jsx(Et,{...f,children:d.jsxs(_a,{required:h,scope:o,trigger:v,onTriggerChange:w,valueNode:C,onValueNodeChange:x,valueNodeHasChildren:y,onValueNodeHasChildrenChange:b,contentId:J(),value:A,onValueChange:k,open:M,onOpenChange:E,dir:_,triggerPointerDownPosRef:$,disabled:g,children:[d.jsx(ze.Provider,{scope:o,children:d.jsx(Ia,{scope:e.__scopeSelect,onNativeOptionAdd:a.useCallback(j=>{B(F=>new Set(F).add(j))},[]),onNativeOptionRemove:a.useCallback(j=>{B(F=>{const G=new Set(F);return G.delete(j),G})},[]),children:t})}),W?d.jsxs(zn,{"aria-hidden":!0,required:h,tabIndex:-1,name:p,autoComplete:m,value:A,onChange:j=>k(j.target.value),disabled:g,children:[A===void 0?d.jsx("option",{value:""}):null,Array.from(V)]},Y):null]})})};yn.displayName=Ie;var Pn="SelectTrigger",Sn=a.forwardRef((e,o)=>{const{__scopeSelect:t,disabled:n=!1,...r}=e,s=qe(t),i=ue(Pn,t),c=i.disabled||n,l=N(o,i.onTriggerChange),u=Ye(t),[p,m,g]=Yn(f=>{const v=u().filter(x=>!x.disabled),w=v.find(x=>x.value===i.value),C=qn(v,f,w);C!==void 0&&i.onValueChange(C.value)}),h=()=>{c||(i.onOpenChange(!0),g())};return d.jsx(Ve,{asChild:!0,...s,children:d.jsx(R.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":Kn(i.value)?"":void 0,...r,ref:l,onClick:P(r.onClick,f=>{f.currentTarget.focus()}),onPointerDown:P(r.onPointerDown,f=>{const v=f.target;v.hasPointerCapture(f.pointerId)&&v.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&(h(),i.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)},f.preventDefault())}),onKeyDown:P(r.onKeyDown,f=>{const v=p.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&m(f.key),!(v&&f.key===" ")&&ba.includes(f.key)&&(h(),f.preventDefault())})})})});Sn.displayName=Pn;var En="SelectValue",Rn=a.forwardRef((e,o)=>{const{__scopeSelect:t,className:n,style:r,children:s,placeholder:i="",...c}=e,l=ue(En,t),{onValueNodeHasChildrenChange:u}=l,p=s!==void 0,m=N(o,l.onValueNodeChange);return H(()=>{u(p)},[u,p]),d.jsx(R.span,{...c,ref:m,style:{pointerEvents:"none"},children:Kn(l.value)?d.jsx(d.Fragment,{children:i}):s})});Rn.displayName=En;var Oa="SelectIcon",bn=a.forwardRef((e,o)=>{const{__scopeSelect:t,children:n,...r}=e;return d.jsx(R.span,{"aria-hidden":!0,...r,ref:o,children:n||"▼"})});bn.displayName=Oa;var Da="SelectPortal",An=e=>d.jsx(Ge,{asChild:!0,...e});An.displayName=Da;var me="SelectContent",Nn=a.forwardRef((e,o)=>{const t=ue(me,e.__scopeSelect),[n,r]=a.useState();if(H(()=>{r(new DocumentFragment)},[]),!t.open){const s=n;return s?$e.createPortal(d.jsx(_n,{scope:e.__scopeSelect,children:d.jsx(ze.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),s):null}return d.jsx(In,{...e,ref:o})});Nn.displayName=me;var ne=10,[_n,de]=we(me),Ma="SelectContentImpl",In=a.forwardRef((e,o)=>{const{__scopeSelect:t,position:n="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:s,onPointerDownOutside:i,side:c,sideOffset:l,align:u,alignOffset:p,arrowPadding:m,collisionBoundary:g,collisionPadding:h,sticky:f,hideWhenDetached:v,avoidCollisions:w,...C}=e,x=ue(me,t),[y,b]=a.useState(null),[_,M]=a.useState(null),E=N(o,S=>b(S)),[A,k]=a.useState(null),[$,W]=a.useState(null),V=Ye(t),[B,Y]=a.useState(!1),j=a.useRef(!1);a.useEffect(()=>{if(y)return dt(y)},[y]),yt();const F=a.useCallback(S=>{const[D,...U]=V().map(T=>T.ref.current),[O]=U.slice(-1),I=document.activeElement;for(const T of S)if(T===I||(T==null||T.scrollIntoView({block:"nearest"}),T===D&&_&&(_.scrollTop=0),T===O&&_&&(_.scrollTop=_.scrollHeight),T==null||T.focus(),document.activeElement!==I))return},[V,_]),G=a.useCallback(()=>F([A,y]),[F,A,y]);a.useEffect(()=>{B&&G()},[B,G]);const{onOpenChange:K,triggerPointerDownPosRef:q}=x;a.useEffect(()=>{if(y){let S={x:0,y:0};const D=O=>{var I,T;S={x:Math.abs(Math.round(O.pageX)-(((I=q.current)==null?void 0:I.x)??0)),y:Math.abs(Math.round(O.pageY)-(((T=q.current)==null?void 0:T.y)??0))}},U=O=>{S.x<=10&&S.y<=10?O.preventDefault():y.contains(O.target)||K(!1),document.removeEventListener("pointermove",D),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",D),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",D),document.removeEventListener("pointerup",U,{capture:!0})}}},[y,K,q]),a.useEffect(()=>{const S=()=>K(!1);return window.addEventListener("blur",S),window.addEventListener("resize",S),()=>{window.removeEventListener("blur",S),window.removeEventListener("resize",S)}},[K]);const[ye,oe]=Yn(S=>{const D=V().filter(I=>!I.disabled),U=D.find(I=>I.ref.current===document.activeElement),O=qn(D,S,U);O&&setTimeout(()=>O.ref.current.focus())}),Pe=a.useCallback((S,D,U)=>{const O=!j.current&&!U;(x.value!==void 0&&x.value===D||O)&&(k(S),O&&(j.current=!0))},[x.value]),Se=a.useCallback(()=>y==null?void 0:y.focus(),[y]),ae=a.useCallback((S,D,U)=>{const O=!j.current&&!U;(x.value!==void 0&&x.value===D||O)&&W(S)},[x.value]),ge=n==="popper"?at:Tn,fe=ge===at?{side:c,sideOffset:l,align:u,alignOffset:p,arrowPadding:m,collisionBoundary:g,collisionPadding:h,sticky:f,hideWhenDetached:v,avoidCollisions:w}:{};return d.jsx(_n,{scope:t,content:y,viewport:_,onViewportChange:M,itemRefCallback:Pe,selectedItem:A,onItemLeave:Se,itemTextRefCallback:ae,focusSelectedItem:G,selectedItemText:$,position:n,isPositioned:B,searchRef:ye,children:d.jsx(ft,{as:pe,allowPinchZoom:!0,children:d.jsx(We,{asChild:!0,trapped:x.open,onMountAutoFocus:S=>{S.preventDefault()},onUnmountAutoFocus:P(r,S=>{var D;(D=x.trigger)==null||D.focus({preventScroll:!0}),S.preventDefault()}),children:d.jsx(Ne,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:S=>S.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:d.jsx(ge,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:S=>S.preventDefault(),...C,...fe,onPlaced:()=>Y(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:P(C.onKeyDown,S=>{const D=S.ctrlKey||S.altKey||S.metaKey;if(S.key==="Tab"&&S.preventDefault(),!D&&S.key.length===1&&oe(S.key),["ArrowUp","ArrowDown","Home","End"].includes(S.key)){let O=V().filter(I=>!I.disabled).map(I=>I.ref.current);if(["ArrowUp","End"].includes(S.key)&&(O=O.slice().reverse()),["ArrowUp","ArrowDown"].includes(S.key)){const I=S.target,T=O.indexOf(I);O=O.slice(T+1)}setTimeout(()=>F(O)),S.preventDefault()}})})})})})})});In.displayName=Ma;var ja="SelectItemAlignedPosition",Tn=a.forwardRef((e,o)=>{const{__scopeSelect:t,onPlaced:n,...r}=e,s=ue(me,t),i=de(me,t),[c,l]=a.useState(null),[u,p]=a.useState(null),m=N(o,E=>p(E)),g=Ye(t),h=a.useRef(!1),f=a.useRef(!0),{viewport:v,selectedItem:w,selectedItemText:C,focusSelectedItem:x}=i,y=a.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&u&&v&&w&&C){const E=s.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),k=s.valueNode.getBoundingClientRect(),$=C.getBoundingClientRect();if(s.dir!=="rtl"){const I=$.left-A.left,T=k.left-I,z=E.left-T,Z=E.width+z,Ee=Math.max(Z,A.width),Re=window.innerWidth-ne,be=Gt(T,[ne,Re-Ee]);c.style.minWidth=Z+"px",c.style.left=be+"px"}else{const I=A.right-$.right,T=window.innerWidth-k.right-I,z=window.innerWidth-E.right-T,Z=E.width+z,Ee=Math.max(Z,A.width),Re=window.innerWidth-ne,be=Gt(T,[ne,Re-Ee]);c.style.minWidth=Z+"px",c.style.right=be+"px"}const W=g(),V=window.innerHeight-ne*2,B=v.scrollHeight,Y=window.getComputedStyle(u),j=parseInt(Y.borderTopWidth,10),F=parseInt(Y.paddingTop,10),G=parseInt(Y.borderBottomWidth,10),K=parseInt(Y.paddingBottom,10),q=j+F+B+K+G,ye=Math.min(w.offsetHeight*5,q),oe=window.getComputedStyle(v),Pe=parseInt(oe.paddingTop,10),Se=parseInt(oe.paddingBottom,10),ae=E.top+E.height/2-ne,ge=V-ae,fe=w.offsetHeight/2,S=w.offsetTop+fe,D=j+F+S,U=q-D;if(D<=ae){const I=w===W[W.length-1].ref.current;c.style.bottom="0px";const T=u.clientHeight-v.offsetTop-v.offsetHeight,z=Math.max(ge,fe+(I?Se:0)+T+G),Z=D+z;c.style.height=Z+"px"}else{const I=w===W[0].ref.current;c.style.top="0px";const z=Math.max(ae,j+v.offsetTop+(I?Pe:0)+fe)+U;c.style.height=z+"px",v.scrollTop=D-ae+v.offsetTop}c.style.margin=`${ne}px 0`,c.style.minHeight=ye+"px",c.style.maxHeight=V+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[g,s.trigger,s.valueNode,c,u,v,w,C,s.dir,n]);H(()=>y(),[y]);const[b,_]=a.useState();H(()=>{u&&_(window.getComputedStyle(u).zIndex)},[u]);const M=a.useCallback(E=>{E&&f.current===!0&&(y(),x==null||x(),f.current=!1)},[y,x]);return d.jsx(La,{scope:t,contentWrapper:c,shouldExpandOnScrollRef:h,onScrollButtonChange:M,children:d.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b},children:d.jsx(R.div,{...r,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});Tn.displayName=ja;var Fa="SelectPopperPosition",at=a.forwardRef((e,o)=>{const{__scopeSelect:t,align:n="start",collisionPadding:r=ne,...s}=e,i=qe(t);return d.jsx(Rt,{...i,...s,ref:o,align:n,collisionPadding:r,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});at.displayName=Fa;var[La,jt]=we(me,{}),it="SelectViewport",On=a.forwardRef((e,o)=>{const{__scopeSelect:t,nonce:n,...r}=e,s=de(it,t),i=jt(it,t),c=N(o,s.onViewportChange),l=a.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),d.jsx(ze.Slot,{scope:t,children:d.jsx(R.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:c,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:P(r.onScroll,u=>{const p=u.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:g}=i;if(g!=null&&g.current&&m){const h=Math.abs(l.current-p.scrollTop);if(h>0){const f=window.innerHeight-ne*2,v=parseFloat(m.style.minHeight),w=parseFloat(m.style.height),C=Math.max(v,w);if(C0?b:0,m.style.justifyContent="flex-end")}}}l.current=p.scrollTop})})})]})});On.displayName=it;var Dn="SelectGroup",[ka,$a]=we(Dn),Mn=a.forwardRef((e,o)=>{const{__scopeSelect:t,...n}=e,r=J();return d.jsx(ka,{scope:t,id:r,children:d.jsx(R.div,{role:"group","aria-labelledby":r,...n,ref:o})})});Mn.displayName=Dn;var jn="SelectLabel",Fn=a.forwardRef((e,o)=>{const{__scopeSelect:t,...n}=e,r=$a(jn,t);return d.jsx(R.div,{id:r.id,...n,ref:o})});Fn.displayName=jn;var Fe="SelectItem",[Ha,Ln]=we(Fe),kn=a.forwardRef((e,o)=>{const{__scopeSelect:t,value:n,disabled:r=!1,textValue:s,...i}=e,c=ue(Fe,t),l=de(Fe,t),u=c.value===n,[p,m]=a.useState(s??""),[g,h]=a.useState(!1),f=N(o,C=>{var x;return(x=l.itemRefCallback)==null?void 0:x.call(l,C,n,r)}),v=J(),w=()=>{r||(c.onValueChange(n),c.onOpenChange(!1))};if(n==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(Ha,{scope:t,value:n,disabled:r,textId:v,isSelected:u,onItemTextChange:a.useCallback(C=>{m(x=>x||((C==null?void 0:C.textContent)??"").trim())},[]),children:d.jsx(ze.ItemSlot,{scope:t,value:n,disabled:r,textValue:p,children:d.jsx(R.div,{role:"option","aria-labelledby":v,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...i,ref:f,onFocus:P(i.onFocus,()=>h(!0)),onBlur:P(i.onBlur,()=>h(!1)),onPointerUp:P(i.onPointerUp,w),onPointerMove:P(i.onPointerMove,C=>{var x;r?(x=l.onItemLeave)==null||x.call(l):C.currentTarget.focus({preventScroll:!0})}),onPointerLeave:P(i.onPointerLeave,C=>{var x;C.currentTarget===document.activeElement&&((x=l.onItemLeave)==null||x.call(l))}),onKeyDown:P(i.onKeyDown,C=>{var y;((y=l.searchRef)==null?void 0:y.current)!==""&&C.key===" "||(Aa.includes(C.key)&&w(),C.key===" "&&C.preventDefault())})})})})});kn.displayName=Fe;var Ae="SelectItemText",$n=a.forwardRef((e,o)=>{const{__scopeSelect:t,className:n,style:r,...s}=e,i=ue(Ae,t),c=de(Ae,t),l=Ln(Ae,t),u=Ta(Ae,t),[p,m]=a.useState(null),g=N(o,C=>m(C),l.onItemTextChange,C=>{var x;return(x=c.itemTextRefCallback)==null?void 0:x.call(c,C,l.value,l.disabled)}),h=p==null?void 0:p.textContent,f=a.useMemo(()=>d.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:v,onNativeOptionRemove:w}=u;return H(()=>(v(f),()=>w(f)),[v,w,f]),d.jsxs(d.Fragment,{children:[d.jsx(R.span,{id:l.textId,...s,ref:g}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?$e.createPortal(s.children,i.valueNode):null]})});$n.displayName=Ae;var Hn="SelectItemIndicator",Un=a.forwardRef((e,o)=>{const{__scopeSelect:t,...n}=e;return Ln(Hn,t).isSelected?d.jsx(R.span,{"aria-hidden":!0,...n,ref:o}):null});Un.displayName=Hn;var ct="SelectScrollUpButton",Bn=a.forwardRef((e,o)=>{const t=de(ct,e.__scopeSelect),n=jt(ct,e.__scopeSelect),[r,s]=a.useState(!1),i=N(o,n.onScrollButtonChange);return H(()=>{if(t.viewport&&t.isPositioned){let c=function(){const u=l.scrollTop>0;s(u)};const l=t.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[t.viewport,t.isPositioned]),r?d.jsx(Vn,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=t;c&&l&&(c.scrollTop=c.scrollTop-l.offsetHeight)}}):null});Bn.displayName=ct;var lt="SelectScrollDownButton",Wn=a.forwardRef((e,o)=>{const t=de(lt,e.__scopeSelect),n=jt(lt,e.__scopeSelect),[r,s]=a.useState(!1),i=N(o,n.onScrollButtonChange);return H(()=>{if(t.viewport&&t.isPositioned){let c=function(){const u=l.scrollHeight-l.clientHeight,p=Math.ceil(l.scrollTop)l.removeEventListener("scroll",c)}},[t.viewport,t.isPositioned]),r?d.jsx(Vn,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=t;c&&l&&(c.scrollTop=c.scrollTop+l.offsetHeight)}}):null});Wn.displayName=lt;var Vn=a.forwardRef((e,o)=>{const{__scopeSelect:t,onAutoScroll:n,...r}=e,s=de("SelectScrollButton",t),i=a.useRef(null),c=Ye(t),l=a.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return a.useEffect(()=>()=>l(),[l]),H(()=>{var p;const u=c().find(m=>m.ref.current===document.activeElement);(p=u==null?void 0:u.ref.current)==null||p.scrollIntoView({block:"nearest"})},[c]),d.jsx(R.div,{"aria-hidden":!0,...r,ref:o,style:{flexShrink:0,...r.style},onPointerDown:P(r.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(n,50))}),onPointerMove:P(r.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),i.current===null&&(i.current=window.setInterval(n,50))}),onPointerLeave:P(r.onPointerLeave,()=>{l()})})}),Ua="SelectSeparator",Gn=a.forwardRef((e,o)=>{const{__scopeSelect:t,...n}=e;return d.jsx(R.div,{"aria-hidden":!0,...n,ref:o})});Gn.displayName=Ua;var ut="SelectArrow",Ba=a.forwardRef((e,o)=>{const{__scopeSelect:t,...n}=e,r=qe(t),s=ue(ut,t),i=de(ut,t);return s.open&&i.position==="popper"?d.jsx(bt,{...r,...n,ref:o}):null});Ba.displayName=ut;function Kn(e){return e===""||e===void 0}var zn=a.forwardRef((e,o)=>{const{value:t,...n}=e,r=a.useRef(null),s=N(o,r),i=cn(t);return a.useEffect(()=>{const c=r.current,l=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&p){const m=new Event("change",{bubbles:!0});p.call(c,t),c.dispatchEvent(m)}},[i,t]),d.jsx(wn,{asChild:!0,children:d.jsx("select",{...n,ref:s,defaultValue:t})})});zn.displayName="BubbleSelect";function Yn(e){const o=Q(e),t=a.useRef(""),n=a.useRef(0),r=a.useCallback(i=>{const c=t.current+i;o(c),function l(u){t.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(c)},[o]),s=a.useCallback(()=>{t.current="",window.clearTimeout(n.current)},[]);return a.useEffect(()=>()=>window.clearTimeout(n.current),[]),[t,r,s]}function qn(e,o,t){const r=o.length>1&&Array.from(o).every(u=>u===o[0])?o[0]:o,s=t?e.indexOf(t):-1;let i=Wa(e,Math.max(s,0));r.length===1&&(i=i.filter(u=>u!==t));const l=i.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==t?l:void 0}function Wa(e,o){return e.map((t,n)=>e[(o+n)%e.length])}var Ni=yn,_i=Sn,Ii=Rn,Ti=bn,Oi=An,Di=Nn,Mi=On,ji=Mn,Fi=Fn,Li=kn,ki=$n,$i=Un,Hi=Bn,Ui=Wn,Bi=Gn,tt,Ft="HoverCard",[Xn,Wi]=te(Ft,[Ce]),Xe=Ce(),[Va,Lt]=Xn(Ft),Zn=e=>{const{__scopeHoverCard:o,children:t,open:n,defaultOpen:r,onOpenChange:s,openDelay:i=700,closeDelay:c=300}=e,l=Xe(o),u=a.useRef(0),p=a.useRef(0),m=a.useRef(!1),g=a.useRef(!1),[h=!1,f]=ee({prop:n,defaultProp:r,onChange:s}),v=a.useCallback(()=>{clearTimeout(p.current),u.current=window.setTimeout(()=>f(!0),i)},[i,f]),w=a.useCallback(()=>{clearTimeout(u.current),!m.current&&!g.current&&(p.current=window.setTimeout(()=>f(!1),c))},[c,f]),C=a.useCallback(()=>f(!1),[f]);return a.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(p.current)},[]),d.jsx(Va,{scope:o,open:h,onOpenChange:f,onOpen:v,onClose:w,onDismiss:C,hasSelectionRef:m,isPointerDownOnContentRef:g,children:d.jsx(Et,{...l,children:t})})};Zn.displayName=Ft;var Jn="HoverCardTrigger",Qn=a.forwardRef((e,o)=>{const{__scopeHoverCard:t,...n}=e,r=Lt(Jn,t),s=Xe(t);return d.jsx(Ve,{asChild:!0,...s,children:d.jsx(R.a,{"data-state":r.open?"open":"closed",...n,ref:o,onPointerEnter:P(e.onPointerEnter,ke(r.onOpen)),onPointerLeave:P(e.onPointerLeave,ke(r.onClose)),onFocus:P(e.onFocus,r.onOpen),onBlur:P(e.onBlur,r.onClose),onTouchStart:P(e.onTouchStart,i=>i.preventDefault())})})});Qn.displayName=Jn;var Ga="HoverCardPortal",[Vi,Ka]=Xn(Ga,{forceMount:void 0}),Le="HoverCardContent",er=a.forwardRef((e,o)=>{const t=Ka(Le,e.__scopeHoverCard),{forceMount:n=t.forceMount,...r}=e,s=Lt(Le,e.__scopeHoverCard);return d.jsx(ce,{present:n||s.open,children:d.jsx(za,{"data-state":s.open?"open":"closed",...r,onPointerEnter:P(e.onPointerEnter,ke(s.onOpen)),onPointerLeave:P(e.onPointerLeave,ke(s.onClose)),ref:o})})});er.displayName=Le;var za=a.forwardRef((e,o)=>{const{__scopeHoverCard:t,onEscapeKeyDown:n,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:i,...c}=e,l=Lt(Le,t),u=Xe(t),p=a.useRef(null),m=N(o,p),[g,h]=a.useState(!1);return a.useEffect(()=>{if(g){const f=document.body;return tt=f.style.userSelect||f.style.webkitUserSelect,f.style.userSelect="none",f.style.webkitUserSelect="none",()=>{f.style.userSelect=tt,f.style.webkitUserSelect=tt}}},[g]),a.useEffect(()=>{if(p.current){const f=()=>{h(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var w;((w=document.getSelection())==null?void 0:w.toString())!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",f),()=>{document.removeEventListener("pointerup",f),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),a.useEffect(()=>{p.current&&Xa(p.current).forEach(v=>v.setAttribute("tabindex","-1"))}),d.jsx(Ne,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:n,onPointerDownOutside:r,onFocusOutside:P(s,f=>{f.preventDefault()}),onDismiss:l.onDismiss,children:d.jsx(Rt,{...u,...c,onPointerDown:P(c.onPointerDown,f=>{f.currentTarget.contains(f.target)&&h(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:m,style:{...c.style,userSelect:g?"text":void 0,WebkitUserSelect:g?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),Ya="HoverCardArrow",qa=a.forwardRef((e,o)=>{const{__scopeHoverCard:t,...n}=e,r=Xe(t);return d.jsx(bt,{...r,...n,ref:o})});qa.displayName=Ya;function ke(e){return o=>o.pointerType==="touch"?void 0:e()}function Xa(e){const o=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;t.nextNode();)o.push(t.currentNode);return o}var Gi=Zn,Ki=Qn,zi=er,tr="AlertDialog",[Za,Yi]=te(tr,[Lo]),se=Lo(),or=e=>{const{__scopeAlertDialog:o,...t}=e,n=se(o);return d.jsx(Xs,{...n,...t,modal:!0})};or.displayName=tr;var Ja="AlertDialogTrigger",Qa=a.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...n}=e,r=se(t);return d.jsx(Zs,{...r,...n,ref:o})});Qa.displayName=Ja;var ei="AlertDialogPortal",nr=e=>{const{__scopeAlertDialog:o,...t}=e,n=se(o);return d.jsx(Js,{...n,...t})};nr.displayName=ei;var ti="AlertDialogOverlay",rr=a.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...n}=e,r=se(t);return d.jsx(Qs,{...r,...n,ref:o})});rr.displayName=ti;var he="AlertDialogContent",[oi,ni]=Za(he),sr=a.forwardRef((e,o)=>{const{__scopeAlertDialog:t,children:n,...r}=e,s=se(t),i=a.useRef(null),c=N(o,i),l=a.useRef(null);return d.jsx(Ks,{contentName:he,titleName:ar,docsSlug:"alert-dialog",children:d.jsx(oi,{scope:t,cancelRef:l,children:d.jsxs(ea,{role:"alertdialog",...s,...r,ref:c,onOpenAutoFocus:P(r.onOpenAutoFocus,u=>{var p;u.preventDefault(),(p=l.current)==null||p.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[d.jsx(zt,{children:n}),d.jsx(si,{contentRef:i})]})})})});sr.displayName=he;var ar="AlertDialogTitle",ir=a.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...n}=e,r=se(t);return d.jsx(ta,{...r,...n,ref:o})});ir.displayName=ar;var cr="AlertDialogDescription",lr=a.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...n}=e,r=se(t);return d.jsx(oa,{...r,...n,ref:o})});lr.displayName=cr;var ri="AlertDialogAction",ur=a.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...n}=e,r=se(t);return d.jsx(Qo,{...r,...n,ref:o})});ur.displayName=ri;var dr="AlertDialogCancel",fr=a.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...n}=e,{cancelRef:r}=ni(dr,t),s=se(t),i=N(o,r);return d.jsx(Qo,{...s,...n,ref:i})});fr.displayName=dr;var si=({contentRef:e})=>{const o=`\`${he}\` requires a description for the component to be accessible for screen reader users. + +You can add a description to the \`${he}\` by passing a \`${cr}\` component as a child, which also benefits sighted users by adding visible context to the dialog. + +Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${he}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. + +For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return a.useEffect(()=>{var n;document.getElementById((n=e.current)==null?void 0:n.getAttribute("aria-describedby"))||console.warn(o)},[o,e]),null},qi=or,Xi=nr,Zi=rr,Ji=sr,Qi=ur,ec=fr,tc=ir,oc=lr;export{Gi as A,Ki as B,ea as C,oa as D,Zi as E,Ji as F,ji as G,vi as H,pi as I,tc as J,oc as K,Fi as L,Qi as M,ec as N,Qs as O,Js as P,qi as Q,Xs as R,pe as S,Zs as T,Xi as U,Mi as V,Qo as a,ta as b,mi as c,gi as d,fi as e,wi as f,yi as g,xi as h,Ci as i,Pi as j,Ei as k,Ri as l,bi as m,_i as n,Ti as o,Hi as p,Ui as q,Oi as r,Di as s,Li as t,$i as u,ki as v,Bi as w,Ni as x,Ii as y,zi as z}; diff --git a/assets/@radix-ui-BQVY8FyZ.js.gz b/assets/@radix-ui-BQVY8FyZ.js.gz new file mode 100644 index 0000000..7a1290c Binary files /dev/null and b/assets/@radix-ui-BQVY8FyZ.js.gz differ diff --git a/assets/@uiw-7vynk4Up.js.gz b/assets/@uiw-7vynk4Up.js.gz deleted file mode 100644 index b129d85..0000000 Binary files a/assets/@uiw-7vynk4Up.js.gz and /dev/null differ diff --git a/assets/@uiw-7vynk4Up.js b/assets/@uiw-Cmr0UBwL.js similarity index 99% rename from assets/@uiw-7vynk4Up.js rename to assets/@uiw-Cmr0UBwL.js index 91c0259..d95fdcb 100644 --- a/assets/@uiw-7vynk4Up.js +++ b/assets/@uiw-Cmr0UBwL.js @@ -1 +1 @@ -import{_ as V,a as R}from"./@babel-BjXSgPXB.js";import{r as f,j as P}from"./react-BLNIRDtH.js";import{c as J,d as Q,s as X,h as Y,f as Z,a as $,l as ee,b as te,e as ae,g as re,i as oe,j as ie,k as ne,m as ce,E as A,n as se,o as U,p as le,q as fe,r as de,t as ue,u as ge,v as he,w as me,x as be,y as pe,z as w,A as h,B as ye,C as Se,D as ve,S as ke,F as xe,H as Ce}from"./@codemirror-SM3v-hs2.js";import{t as e}from"./@lezer-C0_A0N7l.js";var j=function(t){t===void 0&&(t={});var{crosshairCursor:a=!1}=t,o=[];t.closeBracketsKeymap!==!1&&(o=o.concat(J)),t.defaultKeymap!==!1&&(o=o.concat(Q)),t.searchKeymap!==!1&&(o=o.concat(X)),t.historyKeymap!==!1&&(o=o.concat(Y)),t.foldKeymap!==!1&&(o=o.concat(Z)),t.completionKeymap!==!1&&(o=o.concat($)),t.lintKeymap!==!1&&(o=o.concat(ee));var r=[];return t.lineNumbers!==!1&&r.push(te()),t.highlightActiveLineGutter!==!1&&r.push(ae()),t.highlightSpecialChars!==!1&&r.push(re()),t.history!==!1&&r.push(oe()),t.foldGutter!==!1&&r.push(ie()),t.drawSelection!==!1&&r.push(ne()),t.dropCursor!==!1&&r.push(ce()),t.allowMultipleSelections!==!1&&r.push(A.allowMultipleSelections.of(!0)),t.indentOnInput!==!1&&r.push(se()),t.syntaxHighlighting!==!1&&r.push(U(le,{fallback:!0})),t.bracketMatching!==!1&&r.push(fe()),t.closeBrackets!==!1&&r.push(de()),t.autocompletion!==!1&&r.push(ue()),t.rectangularSelection!==!1&&r.push(ge()),a!==!1&&r.push(he()),t.highlightActiveLine!==!1&&r.push(me()),t.highlightSelectionMatches!==!1&&r.push(be()),t.tabSize&&typeof t.tabSize=="number"&&r.push(pe.of(" ".repeat(t.tabSize))),r.concat([w.of(o.flat())]).filter(Boolean)},Fe=h.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),Ee=function(t){t===void 0&&(t={});var{indentWithTab:a=!0,editable:o=!0,readOnly:r=!1,theme:s="light",placeholder:l="",basicSetup:u=!0}=t,c=[];switch(a&&c.unshift(w.of([ye])),u&&(typeof u=="boolean"?c.unshift(j()):c.unshift(j(u))),l&&c.unshift(Se(l)),s){case"light":c.push(Fe);break;case"dark":c.push(ve);break;case"none":break;default:c.push(s);break}return o===!1&&c.push(h.editable.of(!1)),r&&c.push(A.readOnly.of(!0)),[...c]},Be=i=>({line:i.state.doc.lineAt(i.state.selection.main.from),lineCount:i.state.doc.lines,lineBreak:i.state.lineBreak,length:i.state.doc.length,readOnly:i.state.readOnly,tabSize:i.state.tabSize,selection:i.state.selection,selectionAsSingle:i.state.selection.asSingle().main,ranges:i.state.selection.ranges,selectionCode:i.state.sliceDoc(i.state.selection.main.from,i.state.selection.main.to),selections:i.state.selection.ranges.map(t=>i.state.sliceDoc(t.from,t.to)),selectedText:i.state.selection.ranges.some(t=>!t.empty)}),G=xe.define(),We=[];function Ne(i){var{value:t,selection:a,onChange:o,onStatistics:r,onCreateEditor:s,onUpdate:l,extensions:u=We,autoFocus:c,theme:m="light",height:C=null,minHeight:b=null,maxHeight:F=null,width:E=null,minWidth:B=null,maxWidth:W=null,placeholder:N="",editable:H=!0,readOnly:K=!1,indentWithTab:L=!0,basicSetup:M=!0,root:I,initialState:v}=i,[p,O]=f.useState(),[n,g]=f.useState(),[y,S]=f.useState(),z=h.theme({"&":{height:C,minHeight:b,maxHeight:F,width:E,minWidth:B,maxWidth:W},"& .cm-scroller":{height:"100% !important"}}),D=h.updateListener.of(d=>{if(d.docChanged&&typeof o=="function"&&!d.transactions.some(q=>q.annotation(G))){var x=d.state.doc,T=x.toString();o(T,d)}r&&r(Be(d))}),_=Ee({theme:m,editable:H,readOnly:K,placeholder:N,indentWithTab:L,basicSetup:M}),k=[D,z,..._];return l&&typeof l=="function"&&k.push(h.updateListener.of(l)),k=k.concat(u),f.useEffect(()=>{if(p&&!y){var d={doc:t,selection:a,extensions:k},x=v?A.fromJSON(v.json,d,v.fields):A.create(d);if(S(x),!n){var T=new h({state:x,parent:p,root:I});g(T),s&&s(T,x)}}return()=>{n&&(S(void 0),g(void 0))}},[p,y]),f.useEffect(()=>O(i.container),[i.container]),f.useEffect(()=>()=>{n&&(n.destroy(),g(void 0))},[n]),f.useEffect(()=>{c&&n&&n.focus()},[c,n]),f.useEffect(()=>{n&&n.dispatch({effects:ke.reconfigure.of(k)})},[m,u,C,b,F,E,B,W,N,H,K,L,M,o,l]),f.useEffect(()=>{if(t!==void 0){var d=n?n.state.doc.toString():"";n&&t!==d&&n.dispatch({changes:{from:0,to:d.length,insert:t||""},annotations:[G.of(!0)]})}},[t,n]),{state:y,setState:S,view:n,setView:g,container:p,setContainer:O}}var He=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],Ke=f.forwardRef((i,t)=>{var{className:a,value:o="",selection:r,extensions:s=[],onChange:l,onStatistics:u,onCreateEditor:c,onUpdate:m,autoFocus:C,theme:b="light",height:F,minHeight:E,maxHeight:B,width:W,minWidth:N,maxWidth:H,basicSetup:K,placeholder:L,indentWithTab:M,editable:I,readOnly:v,root:p,initialState:O}=i,n=V(i,He),g=f.useRef(null),{state:y,view:S,container:z}=Ne({container:g.current,root:p,value:o,autoFocus:C,theme:b,height:F,minHeight:E,maxHeight:B,width:W,minWidth:N,maxWidth:H,basicSetup:K,placeholder:L,indentWithTab:M,editable:I,readOnly:v,selection:r,onChange:l,onStatistics:u,onCreateEditor:c,onUpdate:m,extensions:s,initialState:O});if(f.useImperativeHandle(t,()=>({editor:g.current,state:y,view:S}),[g,z,y,S]),typeof o!="string")throw new Error("value must be typeof string but got "+typeof o);var D=typeof b=="string"?"cm-theme-"+b:"cm-theme";return P.jsx("div",R({ref:g,className:""+D+(a?" "+a:"")},n))});Ke.displayName="CodeMirror";var Le=i=>{var{theme:t,settings:a={},styles:o=[]}=i,r={".cm-gutters":{}},s={};a.background&&(s.backgroundColor=a.background),a.backgroundImage&&(s.backgroundImage=a.backgroundImage),a.foreground&&(s.color=a.foreground),a.fontSize&&(s.fontSize=a.fontSize),(a.background||a.foreground)&&(r["&"]=s),a.fontFamily&&(r["&.cm-editor .cm-scroller"]={fontFamily:a.fontFamily}),a.gutterBackground&&(r[".cm-gutters"].backgroundColor=a.gutterBackground),a.gutterForeground&&(r[".cm-gutters"].color=a.gutterForeground),a.gutterBorder&&(r[".cm-gutters"].borderRightColor=a.gutterBorder),a.caret&&(r[".cm-content"]={caretColor:a.caret},r[".cm-cursor, .cm-dropCursor"]={borderLeftColor:a.caret});var l={};a.gutterActiveForeground&&(l.color=a.gutterActiveForeground),a.lineHighlight&&(r[".cm-activeLine"]={backgroundColor:a.lineHighlight},l.backgroundColor=a.lineHighlight),r[".cm-activeLineGutter"]=l,a.selection&&(r["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:a.selection+" !important"}),a.selectionMatch&&(r["& .cm-selectionMatch"]={backgroundColor:a.selectionMatch});var u=h.theme(r,{dark:t==="dark"}),c=Ce.define(o),m=[u,U(c)];return m},Me={background:"#2e3440",foreground:"#FFFFFF",caret:"#FFFFFF",selection:"#00000073",selectionMatch:"#00000073",gutterBackground:"#2e3440",gutterForeground:"#4c566a",gutterActiveForeground:"#d8dee9",lineHighlight:"#4c566a29"},Oe=[{tag:e.keyword,color:"#5e81ac"},{tag:[e.name,e.deleted,e.character,e.propertyName,e.macroName],color:"#88c0d0"},{tag:[e.variableName],color:"#8fbcbb"},{tag:[e.function(e.variableName)],color:"#8fbcbb"},{tag:[e.labelName],color:"#81a1c1"},{tag:[e.color,e.constant(e.name),e.standard(e.name)],color:"#5e81ac"},{tag:[e.definition(e.name),e.separator],color:"#a3be8c"},{tag:[e.brace],color:"#8fbcbb"},{tag:[e.annotation],color:"#d30102"},{tag:[e.number,e.changed,e.annotation,e.modifier,e.self,e.namespace],color:"#b48ead"},{tag:[e.typeName,e.className],color:"#ebcb8b"},{tag:[e.operator,e.operatorKeyword],color:"#a3be8c"},{tag:[e.tagName],color:"#b48ead"},{tag:[e.squareBracket],color:"#bf616a"},{tag:[e.angleBracket],color:"#d08770"},{tag:[e.attributeName],color:"#ebcb8b"},{tag:[e.regexp],color:"#5e81ac"},{tag:[e.quote],color:"#b48ead"},{tag:[e.string],color:"#a3be8c"},{tag:e.link,color:"#a3be8c",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[e.url,e.escape,e.special(e.string)],color:"#8fbcbb"},{tag:[e.meta],color:"#88c0d0"},{tag:[e.monospace],color:"#d8dee9",fontStyle:"italic"},{tag:[e.comment],color:"#4c566a",fontStyle:"italic"},{tag:e.strong,fontWeight:"bold",color:"#5e81ac"},{tag:e.emphasis,fontStyle:"italic",color:"#5e81ac"},{tag:e.strikethrough,textDecoration:"line-through"},{tag:e.heading,fontWeight:"bold",color:"#5e81ac"},{tag:e.special(e.heading1),fontWeight:"bold",color:"#5e81ac"},{tag:e.heading1,fontWeight:"bold",color:"#5e81ac"},{tag:[e.heading2,e.heading3,e.heading4],fontWeight:"bold",color:"#5e81ac"},{tag:[e.heading5,e.heading6],color:"#5e81ac"},{tag:[e.atom,e.bool,e.special(e.variableName)],color:"#d08770"},{tag:[e.processingInstruction,e.inserted],color:"#8fbcbb"},{tag:[e.contentSeparator],color:"#ebcb8b"},{tag:e.invalid,color:"#434c5e",borderBottom:"1px dotted #d30102"}],Te=i=>{var{theme:t="dark",settings:a={},styles:o=[]}={};return Le({theme:t,settings:R({},Me,a),styles:[...Oe,...o]})},je=Te();export{Ke as R,je as n}; +import{_ as V,a as R}from"./@babel-BjXSgPXB.js";import{r as f,j as P}from"./react-DmpIMwDM.js";import{c as J,d as Q,s as X,h as Y,f as Z,a as $,l as ee,b as te,e as ae,g as re,i as oe,j as ie,k as ne,m as ce,E as A,n as se,o as U,p as le,q as fe,r as de,t as ue,u as ge,v as he,w as me,x as be,y as pe,z as w,A as h,B as ye,C as Se,D as ve,S as ke,F as xe,H as Ce}from"./@codemirror-SM3v-hs2.js";import{t as e}from"./@lezer-C0_A0N7l.js";var j=function(t){t===void 0&&(t={});var{crosshairCursor:a=!1}=t,o=[];t.closeBracketsKeymap!==!1&&(o=o.concat(J)),t.defaultKeymap!==!1&&(o=o.concat(Q)),t.searchKeymap!==!1&&(o=o.concat(X)),t.historyKeymap!==!1&&(o=o.concat(Y)),t.foldKeymap!==!1&&(o=o.concat(Z)),t.completionKeymap!==!1&&(o=o.concat($)),t.lintKeymap!==!1&&(o=o.concat(ee));var r=[];return t.lineNumbers!==!1&&r.push(te()),t.highlightActiveLineGutter!==!1&&r.push(ae()),t.highlightSpecialChars!==!1&&r.push(re()),t.history!==!1&&r.push(oe()),t.foldGutter!==!1&&r.push(ie()),t.drawSelection!==!1&&r.push(ne()),t.dropCursor!==!1&&r.push(ce()),t.allowMultipleSelections!==!1&&r.push(A.allowMultipleSelections.of(!0)),t.indentOnInput!==!1&&r.push(se()),t.syntaxHighlighting!==!1&&r.push(U(le,{fallback:!0})),t.bracketMatching!==!1&&r.push(fe()),t.closeBrackets!==!1&&r.push(de()),t.autocompletion!==!1&&r.push(ue()),t.rectangularSelection!==!1&&r.push(ge()),a!==!1&&r.push(he()),t.highlightActiveLine!==!1&&r.push(me()),t.highlightSelectionMatches!==!1&&r.push(be()),t.tabSize&&typeof t.tabSize=="number"&&r.push(pe.of(" ".repeat(t.tabSize))),r.concat([w.of(o.flat())]).filter(Boolean)},Fe=h.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),Ee=function(t){t===void 0&&(t={});var{indentWithTab:a=!0,editable:o=!0,readOnly:r=!1,theme:s="light",placeholder:l="",basicSetup:u=!0}=t,c=[];switch(a&&c.unshift(w.of([ye])),u&&(typeof u=="boolean"?c.unshift(j()):c.unshift(j(u))),l&&c.unshift(Se(l)),s){case"light":c.push(Fe);break;case"dark":c.push(ve);break;case"none":break;default:c.push(s);break}return o===!1&&c.push(h.editable.of(!1)),r&&c.push(A.readOnly.of(!0)),[...c]},Be=i=>({line:i.state.doc.lineAt(i.state.selection.main.from),lineCount:i.state.doc.lines,lineBreak:i.state.lineBreak,length:i.state.doc.length,readOnly:i.state.readOnly,tabSize:i.state.tabSize,selection:i.state.selection,selectionAsSingle:i.state.selection.asSingle().main,ranges:i.state.selection.ranges,selectionCode:i.state.sliceDoc(i.state.selection.main.from,i.state.selection.main.to),selections:i.state.selection.ranges.map(t=>i.state.sliceDoc(t.from,t.to)),selectedText:i.state.selection.ranges.some(t=>!t.empty)}),G=xe.define(),We=[];function Ne(i){var{value:t,selection:a,onChange:o,onStatistics:r,onCreateEditor:s,onUpdate:l,extensions:u=We,autoFocus:c,theme:m="light",height:C=null,minHeight:b=null,maxHeight:F=null,width:E=null,minWidth:B=null,maxWidth:W=null,placeholder:N="",editable:H=!0,readOnly:K=!1,indentWithTab:L=!0,basicSetup:M=!0,root:I,initialState:v}=i,[p,O]=f.useState(),[n,g]=f.useState(),[y,S]=f.useState(),z=h.theme({"&":{height:C,minHeight:b,maxHeight:F,width:E,minWidth:B,maxWidth:W},"& .cm-scroller":{height:"100% !important"}}),D=h.updateListener.of(d=>{if(d.docChanged&&typeof o=="function"&&!d.transactions.some(q=>q.annotation(G))){var x=d.state.doc,T=x.toString();o(T,d)}r&&r(Be(d))}),_=Ee({theme:m,editable:H,readOnly:K,placeholder:N,indentWithTab:L,basicSetup:M}),k=[D,z,..._];return l&&typeof l=="function"&&k.push(h.updateListener.of(l)),k=k.concat(u),f.useEffect(()=>{if(p&&!y){var d={doc:t,selection:a,extensions:k},x=v?A.fromJSON(v.json,d,v.fields):A.create(d);if(S(x),!n){var T=new h({state:x,parent:p,root:I});g(T),s&&s(T,x)}}return()=>{n&&(S(void 0),g(void 0))}},[p,y]),f.useEffect(()=>O(i.container),[i.container]),f.useEffect(()=>()=>{n&&(n.destroy(),g(void 0))},[n]),f.useEffect(()=>{c&&n&&n.focus()},[c,n]),f.useEffect(()=>{n&&n.dispatch({effects:ke.reconfigure.of(k)})},[m,u,C,b,F,E,B,W,N,H,K,L,M,o,l]),f.useEffect(()=>{if(t!==void 0){var d=n?n.state.doc.toString():"";n&&t!==d&&n.dispatch({changes:{from:0,to:d.length,insert:t||""},annotations:[G.of(!0)]})}},[t,n]),{state:y,setState:S,view:n,setView:g,container:p,setContainer:O}}var He=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],Ke=f.forwardRef((i,t)=>{var{className:a,value:o="",selection:r,extensions:s=[],onChange:l,onStatistics:u,onCreateEditor:c,onUpdate:m,autoFocus:C,theme:b="light",height:F,minHeight:E,maxHeight:B,width:W,minWidth:N,maxWidth:H,basicSetup:K,placeholder:L,indentWithTab:M,editable:I,readOnly:v,root:p,initialState:O}=i,n=V(i,He),g=f.useRef(null),{state:y,view:S,container:z}=Ne({container:g.current,root:p,value:o,autoFocus:C,theme:b,height:F,minHeight:E,maxHeight:B,width:W,minWidth:N,maxWidth:H,basicSetup:K,placeholder:L,indentWithTab:M,editable:I,readOnly:v,selection:r,onChange:l,onStatistics:u,onCreateEditor:c,onUpdate:m,extensions:s,initialState:O});if(f.useImperativeHandle(t,()=>({editor:g.current,state:y,view:S}),[g,z,y,S]),typeof o!="string")throw new Error("value must be typeof string but got "+typeof o);var D=typeof b=="string"?"cm-theme-"+b:"cm-theme";return P.jsx("div",R({ref:g,className:""+D+(a?" "+a:"")},n))});Ke.displayName="CodeMirror";var Le=i=>{var{theme:t,settings:a={},styles:o=[]}=i,r={".cm-gutters":{}},s={};a.background&&(s.backgroundColor=a.background),a.backgroundImage&&(s.backgroundImage=a.backgroundImage),a.foreground&&(s.color=a.foreground),a.fontSize&&(s.fontSize=a.fontSize),(a.background||a.foreground)&&(r["&"]=s),a.fontFamily&&(r["&.cm-editor .cm-scroller"]={fontFamily:a.fontFamily}),a.gutterBackground&&(r[".cm-gutters"].backgroundColor=a.gutterBackground),a.gutterForeground&&(r[".cm-gutters"].color=a.gutterForeground),a.gutterBorder&&(r[".cm-gutters"].borderRightColor=a.gutterBorder),a.caret&&(r[".cm-content"]={caretColor:a.caret},r[".cm-cursor, .cm-dropCursor"]={borderLeftColor:a.caret});var l={};a.gutterActiveForeground&&(l.color=a.gutterActiveForeground),a.lineHighlight&&(r[".cm-activeLine"]={backgroundColor:a.lineHighlight},l.backgroundColor=a.lineHighlight),r[".cm-activeLineGutter"]=l,a.selection&&(r["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:a.selection+" !important"}),a.selectionMatch&&(r["& .cm-selectionMatch"]={backgroundColor:a.selectionMatch});var u=h.theme(r,{dark:t==="dark"}),c=Ce.define(o),m=[u,U(c)];return m},Me={background:"#2e3440",foreground:"#FFFFFF",caret:"#FFFFFF",selection:"#00000073",selectionMatch:"#00000073",gutterBackground:"#2e3440",gutterForeground:"#4c566a",gutterActiveForeground:"#d8dee9",lineHighlight:"#4c566a29"},Oe=[{tag:e.keyword,color:"#5e81ac"},{tag:[e.name,e.deleted,e.character,e.propertyName,e.macroName],color:"#88c0d0"},{tag:[e.variableName],color:"#8fbcbb"},{tag:[e.function(e.variableName)],color:"#8fbcbb"},{tag:[e.labelName],color:"#81a1c1"},{tag:[e.color,e.constant(e.name),e.standard(e.name)],color:"#5e81ac"},{tag:[e.definition(e.name),e.separator],color:"#a3be8c"},{tag:[e.brace],color:"#8fbcbb"},{tag:[e.annotation],color:"#d30102"},{tag:[e.number,e.changed,e.annotation,e.modifier,e.self,e.namespace],color:"#b48ead"},{tag:[e.typeName,e.className],color:"#ebcb8b"},{tag:[e.operator,e.operatorKeyword],color:"#a3be8c"},{tag:[e.tagName],color:"#b48ead"},{tag:[e.squareBracket],color:"#bf616a"},{tag:[e.angleBracket],color:"#d08770"},{tag:[e.attributeName],color:"#ebcb8b"},{tag:[e.regexp],color:"#5e81ac"},{tag:[e.quote],color:"#b48ead"},{tag:[e.string],color:"#a3be8c"},{tag:e.link,color:"#a3be8c",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[e.url,e.escape,e.special(e.string)],color:"#8fbcbb"},{tag:[e.meta],color:"#88c0d0"},{tag:[e.monospace],color:"#d8dee9",fontStyle:"italic"},{tag:[e.comment],color:"#4c566a",fontStyle:"italic"},{tag:e.strong,fontWeight:"bold",color:"#5e81ac"},{tag:e.emphasis,fontStyle:"italic",color:"#5e81ac"},{tag:e.strikethrough,textDecoration:"line-through"},{tag:e.heading,fontWeight:"bold",color:"#5e81ac"},{tag:e.special(e.heading1),fontWeight:"bold",color:"#5e81ac"},{tag:e.heading1,fontWeight:"bold",color:"#5e81ac"},{tag:[e.heading2,e.heading3,e.heading4],fontWeight:"bold",color:"#5e81ac"},{tag:[e.heading5,e.heading6],color:"#5e81ac"},{tag:[e.atom,e.bool,e.special(e.variableName)],color:"#d08770"},{tag:[e.processingInstruction,e.inserted],color:"#8fbcbb"},{tag:[e.contentSeparator],color:"#ebcb8b"},{tag:e.invalid,color:"#434c5e",borderBottom:"1px dotted #d30102"}],Te=i=>{var{theme:t="dark",settings:a={},styles:o=[]}={};return Le({theme:t,settings:R({},Me,a),styles:[...Oe,...o]})},je=Te();export{Ke as R,je as n}; diff --git a/assets/@uiw-Cmr0UBwL.js.gz b/assets/@uiw-Cmr0UBwL.js.gz new file mode 100644 index 0000000..8fb0b19 Binary files /dev/null and b/assets/@uiw-Cmr0UBwL.js.gz differ diff --git a/assets/index-B-W7ss30.js b/assets/index-B-W7ss30.js deleted file mode 100644 index c3f0384..0000000 --- a/assets/index-B-W7ss30.js +++ /dev/null @@ -1,2 +0,0 @@ -import{r as o,j as e,a as T}from"./react-BLNIRDtH.js";import{c as jt}from"./react-dom-CbzF4jeR.js";import{c as Nt}from"./zustand-DUrK90M2.js";import{i as wt}from"./sql.js-Ch_tM77n.js";import{F as ce}from"./file-saver-DhbZvGod.js";import{S as Ct,c as Et,d as de,e as Rt,f as vt,g as me,I as Tt,h as ue,i as fe,j as St,k as xe,V as At,L as pe,l as ge,m as Lt,n as Dt,o as he,p as It,G as kt,q as Ft,r as be,s as Ot,t as Mt,u as ye,v as je,w as Ne,x as Pt,y as we,z as Ce,A as Ee,B as Re,E as ve,F as Te,H as Bt,J as qt}from"./@radix-ui-B2FzUeFR.js";import{c as Y}from"./class-variance-authority-Bb4qSo10.js";import{c as Ut}from"./clsx-B-dksMZM.js";import{t as Qt}from"./tailwind-merge-BkWO730n.js";import{I as $t,C as Ht,L as zt,T as Vt,F as Gt,a as _t,b as Wt,c as Se,d as Kt,e as Yt,A as Xt,f as Jt,g as Zt,K as es,h as ts,i as ss,j as Ae,k as as,H as rs,l as os,m as ns,P as ls,n as is,o as cs,M as ds,p as ms,q as us,R as fs,r as xs,S as Le,s as ps,t as gs,G as hs,Z as bs,u as ys,v as js,w as Ns,x as ws}from"./lucide-react-BjVfCz3W.js";import{J as L,T as Cs}from"./sonner-mOQquDco.js";import{p as De,i as Ie,f as Es,a as Rs}from"./date-fns-BAPXOope.js";import{f as vs}from"./sql-formatter-BoZ82dp4.js";import{G as Ts,I as Ss,t as As}from"./@codemirror-SM3v-hs2.js";import{R as Ls,n as Ds}from"./@uiw-7vynk4Up.js";import{u as Is}from"./react-dropzone-BJpUdYKv.js";import{D as C}from"./vaul-DvR9Gt1n.js";import"./attr-accept-BWI1aNlo.js";import"./scheduler-CzFDRTuY.js";import"./use-sync-external-store-Btn3o0C-.js";import"./aria-hidden-DQ5UC2Eg.js";import"./react-remove-scroll-BBk4x74E.js";import"./tslib-CuZy2iRz.js";import"./react-remove-scroll-bar-D1YV4RSd.js";import"./react-style-singleton-Cy56ZS_u.js";import"./get-nonce-C-Z93AgS.js";import"./use-sidecar-DDa65NPA.js";import"./use-callback-ref-2GXKldmC.js";import"./@floating-ui-DN5zxe12.js";import"./nearley-CG12bGQB.js";import"./@lezer-C0_A0N7l.js";import"./crelt-C8TCjufn.js";import"./style-mod-Bc2inJdb.js";import"./w3c-keyname-Vcq4gwWv.js";import"./@babel-BjXSgPXB.js";import"./prop-types-psm7UO16.js";import"./file-selector-CBHVlu32.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const l of n)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function a(n){const l={};return n.integrity&&(l.integrity=n.integrity),n.referrerPolicy&&(l.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?l.credentials="include":n.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(n){if(n.ep)return;n.ep=!0;const l=a(n);fetch(n.href,l)}})();const ks="/sql.wasm";let z;const Fs=async()=>(z||(z=await wt({locateFile:()=>ks})),z),Os=async t=>{try{const s=await Fs();return new s.Database(t)}catch(s){throw console.error("Failed to load database:",s),s}},X=t=>{try{const s=t.prepare("SELECT name FROM sqlite_master WHERE type='table';"),a=[];for(;s.step();)a.push(s.get()[0]);return s.free(),a}catch{throw new Error("Invalid database file")}},Ms=(t,s)=>{try{const a={},r=t.prepare(`PRAGMA table_info("${s}");`);for(;r.step();){const l=r.getAsObject();a[l.name]={type:l.type?l.type.toUpperCase():l.type,isPrimaryKey:l.pk===1,isForeignKey:!1,nullable:l.notnull===0}}r.free();const n=t.prepare(`PRAGMA foreign_key_list("${s}");`);for(;n.step();){const l=n.getAsObject();a[l.from]&&(a[l.from].isForeignKey=!0)}return n.free(),a}catch(a){throw console.error(`Failed to get schema for table "${s}":`,a),a}},ae=t=>{if(t.length===0)return{data:[],columns:[]};const{columns:s,values:a}=t[0];return{data:a.map(n=>Object.fromEntries(s.map((l,i)=>[l,n[i]]))),columns:s}},Ps=t=>{try{const s=t.export(),a=new Blob([s],{type:"application/x-sqlite3"});ce.saveAs(a,"database.sqlite")}catch(s){throw console.error("Failed to export database:",s),s}},Bs=(t,s)=>{const a=t.map(n=>`"${n}"`).join(","),r=s.map(n=>t.map(l=>`"${n[l]??""}"`).join(","));return[a,...r].join(` -`)},J=(t,s,a)=>{try{const r=s.prepare(t),n=r.getColumnNames(),l=[];for(;r.step();){const d=r.getAsObject();l.push(d)}if(r.free(),l.length===0)throw new Error(`Query "${t}" returned no results.`);const i=Bs(n,l),c=new Blob([i],{type:"text/csv;charset=utf-8;"});ce.saveAs(c,`${a}.csv`)}catch(r){throw console.error(`Failed to get CSV for query "${t}":`,r),r}},qs=(t,s)=>{const r=X(t)[s],n=`SELECT * FROM "${r}"`;J(n,t,r)},Us=t=>{const s=X(t);for(const a of s)try{const r=`SELECT * FROM "${a}"`;J(r,t,a)}catch(r){throw console.error(`Failed to get CSV for table "${a}":`,r),r}},Qs=(t,s)=>{J(s,t,"custom_query")},b=Nt((t,s)=>({db:null,isLoading:!1,loadDatabaseBytes:async a=>{t({isLoading:!0});try{const r=await Os(a),n=X(r),l=await Promise.all(n.map(async d=>{const u=r.exec(`SELECT COUNT(*) FROM "${d}"`),x=Number.parseInt(u[0].values[0][0],10),p=await Ms(r,d);return{name:d,count:x,schema:p}})),i=l.map(({name:d,count:u})=>({name:d,count:u})),c=l.reduce((d,{name:u,schema:x})=>(d[u]=x,d),{});t({db:r,tables:i,tableSchemas:c,isLoading:!1})}catch(r){throw t({isLoading:!1}),r}},tables:[],setTables:a=>t({tables:a}),selectedTable:"0",setSelectedTable:a=>t({selectedTable:a}),tableSchemas:{},customQuery:"",setIsCustomQuery:a=>t({isCustomQuery:a}),setCustomQuery:a=>t({customQuery:a}),isCustomQuery:!1,queryError:null,setQueryError:a=>t({queryError:a}),query:a=>{const{db:r}=s();return r?r.exec(a):(console.warn("Database is not loaded."),[])},rowPerPageOrAuto:"auto",setRowPerPageOrAuto:a=>t({rowPerPageOrAuto:a}),queryHistory:[],unShiftToQueryHistory:a=>t(r=>({queryHistory:[a,...r.queryHistory]})),expandPage:!1,setExpandPage:a=>t({expandPage:a}),dateFormatValue:"formatDateFormatted",setDateFormatValue:a=>t({dateFormatValue:a}),filters:{},setFilters:a=>t({filters:a}),appendToFilters:(a,r)=>t(n=>({filters:{...n.filters,[a]:r}})),filtersNeedClear:!1,setFiltersNeedClear:a=>t({filtersNeedClear:a}),totalRows:0,setTotalRows:a=>t({totalRows:a}),orderBy:{column:null,direction:"ASC"},setOrderBy:(a,r)=>t({orderBy:{column:a,direction:r}})}));function $s(t,s,a){const{db:r,setQueryError:n,setIsCustomQuery:l,query:i,unShiftToQueryHistory:c,customQuery:d,setCustomQuery:u,filters:x,totalRows:p,setTotalRows:f,orderBy:h,selectedTable:g,tables:N}=b(),[j,A]=o.useState([]),[S,D]=o.useState([]),[F,E]=o.useState(!0),B=o.useMemo(()=>Object.fromEntries(Object.entries(x).filter(([,w])=>w!=="")),[x]),R=o.useMemo(()=>Object.entries(B).map(([w,v])=>`LOWER(${w}) LIKE LOWER('%${v}%')`).join(" AND "),[B]);o.useEffect(()=>{if(!r||!t)return;(async()=>{E(!0);try{const v=`PRAGMA table_info("${t}");`,xt=i(v)[0].values.map(I=>({name:I[1],type:I[2]})).map(I=>I.type.toUpperCase()==="BLOB"?`hex(${I.name}) as ${I.name}`:I.name).join(", "),pt=`SELECT COUNT(*) as count FROM "${t}"${R?` WHERE ${R}`:""}`,gt=i(pt)[0].values[0][0];f(gt);let O=`SELECT ${xt} FROM "${t}"`;R&&(O+=` WHERE ${R}`),h.column&&(O+=` ORDER BY "${h.column}" ${h.direction}`),O+=` LIMIT ${s} OFFSET ${a};`;const ht=i(O),{data:bt,columns:yt}=ae(ht);D(yt),A(bt),n(null),u(O),c(O)}catch(v){v instanceof Error&&n(v.message)}finally{E(!1)}})()},[r,t,a,s,R,h,i,n,u,c,f]);const q=o.useCallback(()=>{if(d.trim()===""){n(null);return}E(!0);try{const w=N[Number.parseInt(g)].name,v=i(d.replace("@",`"${w}"`)),{data:U,columns:P}=ae(v);D(P),A(U),l(!0),n(null)}catch(w){w instanceof Error&&n(w.message)}finally{E(!1)}},[d,i,n,l,N,g]);return{data:j,columns:S,customQuery:d,setCustomQuery:u,isQueryLoading:F,handleCustomQuery:q,totalRows:p}}function Hs(t){const{setIsCustomQuery:s}=b(),[a,r]=o.useState(0);o.useEffect(()=>{r(0),s(!1)},[s]);const n=o.useMemo(()=>{if(t!=="auto")return t;const l=window.innerHeight,u=Math.min(2e3,40+l*.03),x=Math.max(1,Math.floor(l/u));return Math.min(Math.max(x,5),50)},[t]);return{page:a,setPage:r,rowsPerPage:n}}const Z=Y("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}});function m(...t){return Qt(Ut(t))}const y=o.forwardRef(({className:t,variant:s,size:a,asChild:r=!1,...n},l)=>{const i=r?Ct:"button";return e.jsx(i,{className:m(Z({variant:s,size:a,className:t})),ref:l,...n})});y.displayName="Button";function _({type:t,children:s,className:a=""}){let r,n;switch(t){case"error":r=e.jsx(Vt,{className:"mr-3 h-6 w-6 text-red-500"}),n="bg-red-100 text-red-800 border-l-4 border-red-500";break;case"loading":r=e.jsx(zt,{className:"mr-3 h-6 w-6 animate-spin text-blue-500"}),n="bg-blue-100 text-blue-800 border-l-4 border-blue-500";break;case"success":r=e.jsx(Ht,{className:"mr-3 h-6 w-6 text-green-500"}),n="bg-green-100 text-green-800 border-l-4 border-green-500";break;case"info":r=e.jsx($t,{className:"mr-3 h-6 w-6 text-yellow-500"}),n="bg-yellow-100 text-yellow-800 border-l-4 border-yellow-500";break;default:r=null,n=""}return e.jsxs("div",{className:`flex items-center rounded-lg p-4 shadow-md ${n} ${a}`,children:[r,e.jsx("span",{className:"font-medium",children:s})]})}const zs=Rt,Vs=vt,ke=o.forwardRef(({className:t,align:s="center",sideOffset:a=4,...r},n)=>e.jsx(Et,{children:e.jsx(de,{ref:n,align:s,sideOffset:a,className:m("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r})}));ke.displayName=de.displayName;function Gs(){const{selectedTable:t,customQuery:s,db:a}=b(),r=o.useMemo(()=>a&&e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx(Q,{onClick:()=>{try{Ps(a)}catch{L.error("Failed to download database")}},label:"Export as SQLite",title:"Download database as SQLite"}),e.jsx(Q,{onClick:()=>{try{qs(a,Number.parseInt(t))}catch{L.error("Failed to export selected table as CSV")}},label:"Export selected table as CSV"}),e.jsx(Q,{onClick:()=>{try{Us(a)}catch{L.error("Failed to export all tables as CSV")}},label:"Export all tables as CSV"}),e.jsx(Q,{onClick:()=>{try{Qs(a,s)}catch{L.error("Failed to export custom query as CSV")}},label:"Export custom query as CSV",title:"Export the result of the custom query as CSV"})]}),[a,t,s]);return e.jsxs(zs,{children:[e.jsx(Vs,{asChild:!0,children:e.jsx(y,{title:"Open export options",children:e.jsx(Gt,{className:"h-5 w-5"})})}),e.jsx(ke,{align:"end",className:"w-80",children:r})]})}function Q({onClick:t,label:s,className:a,title:r}){return e.jsx(y,{className:a,onClick:t,title:r??s,children:e.jsx("span",{className:"ml-2",children:s})})}const _s=T.memo(_t),Ws=T.memo(Wt);function Ks({page:t,setPage:s,rowsPerPage:a}){const{totalRows:r}=b(),n=o.useMemo(()=>Math.ceil(r/a),[r,a]),l=o.useMemo(()=>Math.ceil(t/a)+1,[t,a]),i=l1,d=o.useCallback(()=>{i&&s(x=>x+a)},[i,a,s]),u=o.useCallback(()=>{c&&s(x=>x-a)},[c,a,s]);return e.jsx("section",{className:"fixed bottom-2 left-1/2 z-10 w-[270px] -translate-x-1/2 transform",children:e.jsxs("div",{className:"flex justify-between gap-2 rounded border bg-secondary p-[6px]",children:[e.jsx(y,{onClick:u,title:"Previous page",disabled:!c,children:e.jsx(_s,{className:"h-4 w-4"})}),e.jsxs("span",{className:"flex items-center justify-center text-sm",children:["Page ",l," of ",n]}),e.jsx(y,{onClick:d,title:"Next page",disabled:!i,children:e.jsx(Ws,{className:"h-4 w-4"})})]})})}const Ys=It,Xs=kt,Js=Ft,Zs=o.memo(Se),Fe=o.forwardRef(({className:t,children:s,...a},r)=>e.jsxs(me,{ref:r,className:m("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...a,children:[s,e.jsx(Tt,{asChild:!0,children:e.jsx(Zs,{className:"h-4 w-4 opacity-50"})})]}));Fe.displayName=me.displayName;const Oe=o.forwardRef(({className:t,...s},a)=>e.jsx(ue,{ref:a,className:m("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsx(Kt,{className:"h-4 w-4"})}));Oe.displayName=ue.displayName;const Me=o.forwardRef(({className:t,...s},a)=>e.jsx(fe,{ref:a,className:m("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsx(Se,{className:"h-4 w-4"})}));Me.displayName=fe.displayName;const Pe=o.forwardRef(({className:t,children:s,position:a="popper",...r},n)=>e.jsx(St,{children:e.jsxs(xe,{ref:n,className:m("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,...r,children:[e.jsx(Oe,{}),e.jsx(At,{className:m("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),e.jsx(Me,{})]})}));Pe.displayName=xe.displayName;const Be=o.forwardRef(({className:t,...s},a)=>e.jsx(pe,{ref:a,className:m("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...s}));Be.displayName=pe.displayName;const qe=o.forwardRef(({className:t,children:s,...a},r)=>e.jsxs(ge,{ref:r,className:m("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...a,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Lt,{children:e.jsx(Yt,{className:"h-4 w-4"})})}),e.jsx(Dt,{children:s})]}));qe.displayName=ge.displayName;const ea=o.forwardRef(({className:t,...s},a)=>e.jsx(he,{ref:a,className:m("-mx-1 my-1 h-px bg-muted",t),...s}));ea.displayName=he.displayName;const ta=Y("inline-flex items-center rounded border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function $({className:t,variant:s,...a}){return e.jsx("div",{className:m(ta({variant:s}),t),...a,children:e.jsx("span",{className:"w-full",children:a.children})})}function sa(){const{tables:t,selectedTable:s,setSelectedTable:a,setIsCustomQuery:r}=b(),n=o.useMemo(()=>{var d;const c=Number.parseInt(s);return Number.isNaN(c)?0:((d=t[c])==null?void 0:d.count)||0},[t,s]),l=o.useMemo(()=>t.map((c,d)=>e.jsx(qe,{value:`${d}`,children:c.name[0].toUpperCase()+c.name.slice(1)},c.name)),[t]);function i(c){r(!1),a(c)}return e.jsxs("section",{className:"flex grow items-center justify-center gap-1",children:[e.jsxs(Ys,{value:s,onValueChange:i,children:[e.jsx(Fe,{className:"grow",children:e.jsx(Js,{placeholder:"Select a table"})}),e.jsx(Pe,{children:e.jsxs(Xs,{children:[e.jsx(Be,{children:"Tables"}),l]})})]}),e.jsx($,{title:"Rows",className:"hidden min-w-[100px] grow bg-background py-2 text-center text-sm md:block md:min-w-[200px]",variant:"outline",children:e.jsx("span",{className:"w-full text-center",children:n})})]})}const V=t=>s=>{const a=De(s);return Ie(a)?Es(a,t):s},aa=t=>{const s=De(t);return Ie(s)?Rs(s,{addSuffix:!0}):t},W={formatDateRelative:{label:"Over 56 years ago",func:aa},formatDateFormatted:{label:"January 9th, 1968",func:V("MMMM do, yyyy")},formatDateLong:{label:"1968/09/01",func:V("yyyy/MM/dd")},formatDateShort:{label:"01/09/1968",func:V("MM/dd/yyyy")}},ra={DATE:/DATE|TIMESTAMP/i,BLOB:/^BLOB$/i,TEXT:/CHAR|TEXT|CLOB|VARCHAR/i,INTEGER:/INT/i,REAL:/REAL|FLOAT|DOUBLE|DECIMAL/i,NUMERIC:/NUMERIC/i,BOOLEAN:/BOOL/i},k=(t,s)=>ra[s].test(t),Ue=t=>k(t,"DATE"),oa=t=>k(t,"BLOB"),na=t=>k(t,"TEXT"),la=t=>k(t,"INTEGER"),ia=t=>k(t,"REAL"),ca=t=>k(t,"NUMERIC"),da=t=>k(t,"BOOLEAN"),ma=t=>la(t)||ia(t)||ca(t),Qe=Ot,$e=Mt,ee=o.forwardRef(({className:t,align:s="start",side:a="bottom",sideOffset:r=4,...n},l)=>e.jsx(be,{ref:l,align:s,side:a,sideOffset:r,className:m("z-50 w-64 text-balance break-words rounded-md border p-4 text-popover-foreground shadow-md outline-none","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[side=bottom]:slide-in-from-top-1","data-[side=left]:slide-in-from-right-1","data-[side=right]:slide-in-from-left-1","data-[side=top]:slide-in-from-bottom-1","bg-gray-100 dark:bg-gray-700",t),...n}));ee.displayName=be.displayName;const He=o.forwardRef(({className:t,...s},a)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:a,className:m("w-full caption-bottom text-sm",t),...s})}));He.displayName="Table";const ze=o.forwardRef(({className:t,...s},a)=>e.jsx("thead",{ref:a,className:m("[&_tr]:border-b",t),...s}));ze.displayName="TableHeader";const Ve=o.forwardRef(({className:t,...s},a)=>e.jsx("tbody",{ref:a,className:m("[&_tr:last-child]:border-0",t),...s}));Ve.displayName="TableBody";const ua=o.forwardRef(({className:t,...s},a)=>e.jsx("tfoot",{ref:a,className:m("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...s}));ua.displayName="TableFooter";const K=o.forwardRef(({className:t,...s},a)=>e.jsx("tr",{ref:a,className:m("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...s}));K.displayName="TableRow";const Ge=o.forwardRef(({className:t,...s},a)=>e.jsx("th",{ref:a,className:m("h-12 min-w-[150px] px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...s}));Ge.displayName="TableHead";const fa=t=>{const s=new Uint8Array(t.match(/.{1,2}/g).map(r=>Number.parseInt(r,16))),a=new Blob([s],{type:"image/jpeg"});return URL.createObjectURL(a)},_e=o.memo(o.forwardRef(({className:t,children:s,dataType:a,...r},n)=>{const l=(a==null?void 0:a.toUpperCase())==="BLOB",i=o.useMemo(()=>typeof s=="string"&&s.length>40?`${s.slice(0,40)}...`:s,[s]);return e.jsx("td",{ref:n,className:m("max-w-[200px] overflow-hidden truncate text-ellipsis whitespace-nowrap p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...r,children:e.jsxs(Qe,{children:[e.jsx($e,{asChild:!0,children:e.jsx("span",{className:"cursor-pointer hover:underline",children:l?e.jsx("span",{className:"italic opacity-40",children:"BLOB"}):i})}),e.jsx(ee,{side:"bottom",align:"start",children:e.jsxs("div",{className:"flex flex-col justify-center gap-1",children:[l&&typeof s=="string"?e.jsxs(e.Fragment,{children:[e.jsx("img",{src:fa(s),alt:"BLOB content",className:"flex max-h-40 flex-col items-center justify-center gap-2 rounded object-contain",onError:c=>{c.currentTarget.style.display="none"}}),e.jsxs("span",{className:"text-sm text-muted-foreground",children:["Blob length: ",s.length]})]}):e.jsx("span",{className:"max-w-full break-words",children:s}),e.jsx($,{className:"w-full self-start text-center text-xs font-semibold",children:a||"Unknown"})]})})]})})}));_e.displayName="TableCell";const xa=o.forwardRef(({className:t,...s},a)=>e.jsx("caption",{ref:a,className:m("mt-4 text-sm text-muted-foreground",t),...s}));xa.displayName="TableCaption";const te=o.forwardRef(({className:t,type:s,...a},r)=>e.jsx("input",{type:s,className:m("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...a}));te.displayName="Input";function pa({columnName:t}){const{appendToFilters:s,selectedTable:a,filtersNeedClear:r,setFiltersNeedClear:n}=b(),[l,i]=o.useState("");o.useEffect(()=>{i("")},[a]),o.useEffect(()=>{r&&(i(""),n(!1))},[r]);const c=o.useCallback(d=>{const u=d.target.value;i(u),s(t,u)},[s,t]);return e.jsx(te,{value:l,onChange:c,className:"mt-[2px] max-h-7 w-full text-xs",placeholder:"Filter"})}function ga({columnName:t}){const{orderBy:s,setOrderBy:a}=b(),r=o.useCallback(()=>{s.column===t?s.direction==="ASC"?a(t,"DESC"):s.direction==="DESC"&&a(null,"ASC"):a(t,"ASC")},[s,t,a]);return e.jsx("div",{onClick:r,onKeyUp:r,className:"flex items-center",children:s.column===t?s.direction==="ASC"?e.jsx("button",{title:"Descending",type:"button","aria-label":"Sort Descending",children:e.jsx(Xt,{className:"h-4 w-4"})}):e.jsx("button",{title:"Ascending",type:"button","aria-label":"Sort Ascending",children:e.jsx(Jt,{className:"h-4 w-4"})}):e.jsx("button",{title:"Sort column",type:"button","aria-label":"Sort Column",children:e.jsx(Zt,{className:"h-4 w-4"})})})}const ha=T.memo(({columnSchema:t})=>e.jsxs(e.Fragment,{children:[(t==null?void 0:t.isPrimaryKey)&&e.jsx("p",{className:"text-sm font-semibold text-yellow-600",children:"(Primary)"}),(t==null?void 0:t.isForeignKey)&&e.jsx("p",{className:"text-sm font-semibold text-purple-600",children:"(Foreign)"})]})),ba=T.memo(({columnSchema:t})=>{const{type:s,isPrimaryKey:a,isForeignKey:r}=t;if(a)return e.jsx(es,{className:"h-4 w-4 text-yellow-500"});if(r)return e.jsx(ts,{className:"h-4 w-4 text-purple-500"});if(s){if(oa(s))return e.jsx(ss,{className:"h-4 w-4 text-green-500"});if(Ue(s))return e.jsx(Ae,{className:"h-4 w-4 text-blue-500"});if(na(s))return e.jsx(as,{className:"h-4 w-4 text-indigo-500"});if(ma(s))return e.jsx(rs,{className:"h-4 w-4 text-red-500"});if(da(s))return e.jsx(os,{className:"h-4 w-4 text-pink-500"})}return e.jsx(ns,{className:"h-4 w-4 text-gray-500"})}),ya=T.memo(({columnName:t,columnSchema:s})=>e.jsxs(Ge,{className:"bg-gray-100 py-2 dark:bg-gray-700",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(ga,{columnName:t}),e.jsxs(Qe,{children:[e.jsx($e,{asChild:!0,children:e.jsxs("div",{className:"flex cursor-pointer items-center space-x-1",children:[e.jsx("span",{className:"max-w-[200px] overflow-hidden truncate text-ellipsis whitespace-nowrap",children:t}),s&&e.jsx(ba,{columnSchema:s})]})}),e.jsxs(ee,{className:"w-64",children:[e.jsxs("div",{className:"mb-1 flex items-center space-x-1",children:[e.jsx("p",{className:"text-sm font-medium",children:t}),e.jsx(ha,{columnSchema:s})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx($,{className:"w-full self-start text-center text-xs font-semibold",children:(s==null?void 0:s.type)||"Unknown"}),(s==null?void 0:s.nullable)&&e.jsx($,{className:"w-full self-start text-center text-xs font-semibold",children:"NULLABLE"})]})]})]})]}),e.jsx(pa,{columnName:t})]})),ja=T.memo(({value:t,dataType:s})=>{const{dateFormatValue:a}=b(),r=()=>t?s&&Ue(s)&&W[a]?W[a].func(t):t:e.jsx("span",{className:"italic text-gray-400",children:"NULL"});return e.jsx(_e,{dataType:s,className:"px-5 py-[11px] text-sm",children:r()})});function Na({data:t,columns:s,tableName:a,tableSchemas:r}){const{filters:n,setFiltersNeedClear:l,setFilters:i}=b(),c=o.useMemo(()=>e.jsx(ze,{children:e.jsx(K,{children:s.map((x,p)=>e.jsx(ya,{columnName:x,columnSchema:r[a][x]},p))})}),[s,r,a]),d=o.useMemo(()=>e.jsx(Ve,{children:t.map((x,p)=>e.jsx(K,{children:s.map((f,h)=>{var g;return e.jsx(ja,{value:x[f],dataType:(g=r[a][f])==null?void 0:g.type},h)})},p))}),[t,s,r,a]),u=o.useCallback(()=>{l(!0),i({})},[l,i]);return e.jsxs("div",{className:"overflow-x-auto",children:[e.jsxs(He,{children:[c,t.length>0&&d]}),t.length===0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"w-full p-4 text-center font-medium",children:["No data available for ",a]}),Object.keys(n).length>0&&e.jsx(y,{className:"w-full rounded-none",variant:"outline",onClick:u,children:"Clear filters"})]})]})}function wa(){const[t,s]=o.useState(()=>document.body.classList.contains("dark"));return o.useEffect(()=>{const a=new MutationObserver(()=>{s(document.body.classList.contains("dark"))});return a.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>a.disconnect()},[]),t}const Ca=["ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","AS","ASC","ATTACH","AUTOINCREMENT","BEFORE","BEGIN","BETWEEN","BY","CASCADE","CASE","CAST","CHECK","COLLATE","COLUMN","COMMIT","CONFLICT","CONSTRAINT","CREATE","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATABASE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DETACH","DISTINCT","DROP","EACH","ELSE","END","ESCAPE","EXCEPT","EXCLUSIVE","EXISTS","EXPLAIN","FAIL","FOR","FOREIGN","FROM","FULL","GLOB","GROUP","HAVING","IF","IGNORE","IMMEDIATE","IN","INDEX","INDEXED","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","KEY","LEFT","LIKE","LIMIT","MATCH","NATURAL","NO","NOT","NOTNULL","NULL","OF","OFFSET","ON","OR","ORDER","OUTER","PLAN","PRAGMA","PRIMARY","QUERY","RAISE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELEASE","RENAME","REPLACE","RESTRICT","RIGHT","ROLLBACK","ROW","SAVEPOINT","SELECT","SET","TABLE","TEMP","TEMPORARY","THEN","TO","TRANSACTION","TRIGGER","UNION","UNIQUE","UPDATE","USING","VACUUM","VALUES","VIEW","VIRTUAL","WHEN","WHERE","WITH","WITHOUT"];function Ea({columnNames:t}){const{customQuery:s,setCustomQuery:a,tables:r}=b(),[n,l]=o.useState(s),i=wa();o.useEffect(()=>{l(re(s))},[s]);const c=o.useCallback(p=>{const f=p.matchBefore(/\w*/);if(!f||f.from===f.to&&!p.explicit)return null;const h=[...Ca.map(g=>({label:g,type:"keyword"})),...r.map(g=>({label:g.name,type:"table"})),...t.map(g=>({label:g,type:"column"}))];return{from:f.from,to:f.to,options:h}},[r,t]),d=o.useCallback(()=>{l(re(s))},[s]),u=o.useCallback(p=>{a(p),l(p)},[a]),x=o.useMemo(()=>[Ts,Ss(),As({override:[c]})],[c]);return e.jsx(Ls,{value:n,height:"126px",extensions:x,onChange:u,onBlur:d,className:"rounded-md border",theme:i?Ds:"light"})}function re(t){try{return vs(t,{language:"sqlite",useTabs:!1,keywordCase:"upper",tabWidth:2,expressionWidth:100,linesBetweenQueries:1})}catch{return t}}const Ra=T.memo(sa),va=T.memo(Gs);function Ta(){const{tables:t,selectedTable:s,tableSchemas:a,queryError:r,setQueryError:n,rowPerPageOrAuto:l,isCustomQuery:i,setIsCustomQuery:c,setCustomQuery:d,expandPage:u,setExpandPage:x,filters:p,setFilters:f}=b(),{page:h,setPage:g,rowsPerPage:N}=Hs(l),j=o.useMemo(()=>{var P;return(P=t[Number.parseInt(s)])==null?void 0:P.name},[t,s]),{data:A,columns:S,isQueryLoading:D,handleCustomQuery:F}=$s(j,N,h),[E,B]=o.useState([]);o.useEffect(()=>{S.length>0&&B(S)},[S]);const R=o.useCallback(()=>{n(null),d(""),c(!1)},[c,n,d]),q=o.useCallback(()=>{g(0),R()},[R,g]);o.useEffect(()=>{g(0),f({})},[s]),o.useEffect(()=>{g(0)},[p]);const w=o.useMemo(()=>e.jsxs("div",{className:"flex flex-col gap-1 md:flex-row",children:[e.jsx("div",{className:"flex-grow",children:e.jsx(Ea,{columnNames:E})}),e.jsxs("div",{className:"flex flex-row gap-1 md:flex-col",children:[e.jsx(y,{className:"grow",onClick:F,title:"Run custom query",children:e.jsx(ls,{className:"h-5 w-5"})}),e.jsx(y,{className:"grow",onClick:R,title:"Remove query",children:e.jsx(is,{className:"h-5 w-5"})}),e.jsx(y,{className:"grow",onClick:q,title:"Reset to first page",disabled:h===0,children:e.jsx(cs,{className:"h-5 w-5"})})]})]}),[F,R,q,h,E]),v=o.useMemo(()=>D?e.jsxs(_,{type:"loading",children:["Loading ",j]}):e.jsx("div",{className:"mb-[40px] overflow-hidden rounded-lg border border-gray-200 dark:border dark:border-gray-700",children:e.jsx(Na,{data:A,columns:E.length>0?E:S,tableName:j,tableSchemas:a})}),[D,A,S,j,a,E]),U=o.useMemo(()=>e.jsx(va,{}),[]);return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"flex flex-col gap-3 pb-8",children:[e.jsxs("section",{className:"rounded-lg bg-gray-100 p-4 shadow-sm dark:bg-gray-700",children:[e.jsxs("div",{className:"mb-[5px] flex items-center justify-between gap-1",children:[e.jsx(Ra,{}),e.jsxs("div",{className:"flex items-center justify-center gap-1",children:[U,e.jsx(y,{className:"hidden expand:block",onClick:()=>x(!u),title:"Toggle page size",children:u?e.jsx(ds,{className:"h-5 w-5"}):e.jsx(ms,{className:"h-5 w-5"})})]})]}),w,r&&e.jsx("p",{className:"mt-2 text-center text-sm text-red-500 dark:text-red-400",children:r})]}),v,!i&&e.jsx(Ks,{page:h,setPage:g,rowsPerPage:N})]})})}const We=(t,s)=>localStorage.getItem(t)||s,Ke=(t,s)=>localStorage.setItem(t,s),oe=(t,s)=>{const[a,r]=o.useState(()=>We(t,s));return o.useEffect(()=>{Ke(t,a)},[t,a]),[a,r]},Ye=({shouldScaleBackground:t=!0,...s})=>e.jsx(C.Root,{shouldScaleBackground:t,...s});Ye.displayName="Drawer";const Sa=C.Trigger,Aa=C.Portal,La=C.Close,Xe=o.forwardRef(({className:t,...s},a)=>e.jsx(C.Overlay,{ref:a,className:m("fixed inset-0 z-50 bg-black/80",t),...s}));Xe.displayName=C.Overlay.displayName;const Je=o.forwardRef(({className:t,children:s,...a},r)=>e.jsxs(Aa,{children:[e.jsx(Xe,{}),e.jsxs(C.Content,{ref:r,className:m("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",t),...a,children:[e.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),s]})]}));Je.displayName="DrawerContent";const Ze=({className:t,...s})=>e.jsx("div",{className:m("grid gap-1.5 p-4 text-center sm:text-left",t),...s});Ze.displayName="DrawerHeader";const et=({className:t,...s})=>e.jsx("div",{className:m("mt-auto flex flex-col gap-2 pb-4",t),...s});et.displayName="DrawerFooter";const tt=o.forwardRef(({className:t,...s},a)=>e.jsx(C.Title,{ref:a,className:m("text-lg font-semibold leading-none tracking-tight",t),...s}));tt.displayName=C.Title.displayName;const st=o.forwardRef(({className:t,...s},a)=>e.jsx(C.Description,{ref:a,className:m("text-sm text-muted-foreground",t),...s}));st.displayName=C.Description.displayName;const Da=Y("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),at=o.forwardRef(({className:t,...s},a)=>e.jsx(ye,{ref:a,className:m(Da(),t),...s}));at.displayName=ye.displayName;const se=o.forwardRef(({className:t,...s},a)=>e.jsx(je,{className:m("grid gap-2",t),...s,ref:a}));se.displayName=je.displayName;const rt=o.forwardRef(({className:t,...s},a)=>e.jsx(Ne,{ref:a,className:m("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...s,children:e.jsx(Pt,{className:"flex items-center justify-center",children:e.jsx(us,{className:"h-2.5 w-2.5 fill-current text-current"})})}));rt.displayName=Ne.displayName;const H=({value:t,label:s})=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(rt,{value:t,id:`r-${t}`}),e.jsx(at,{htmlFor:`r-${t}`,children:s})]}),Ia=({rowsPerPage:t,onRowsPerPageChange:s})=>{const a=t==="auto";return e.jsxs("div",{className:"flex h-full grow flex-col gap-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(fs,{className:"h-4 w-4"}),e.jsx("p",{className:"text-sm font-medium",children:"Rows Per Page"})]}),e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-1 rounded border bg-gray-100/50 p-2 dark:bg-gray-700/50",children:[e.jsx(te,{id:"rowsPerPage",value:a?"":t,onChange:r=>s(r.target.value),placeholder:"Number of rows",type:"number",className:"w-full",autoFocus:!1}),e.jsx(y,{variant:"outline",onClick:()=>s("auto"),className:"w-full whitespace-nowrap",children:"Auto Calculate"})]})]})},ka=({dateFormatValue:t,onDateFormatChange:s})=>e.jsxs("div",{className:"flex h-full grow flex-col gap-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ae,{className:"h-4 w-4"}),e.jsx("p",{className:"text-sm font-medium",children:"Date Format"})]}),e.jsx("div",{className:"h-full rounded border bg-gray-100/50 p-2 dark:bg-gray-700/50",children:e.jsxs(se,{className:"flex h-full flex-col gap-2",name:"dateType",value:t,onValueChange:s,children:[e.jsx(H,{value:"default",label:"Default"}),Object.entries(W).map(([a,{label:r}])=>e.jsx(H,{value:a,label:r},a))]})})]}),Fa=({themeColor:t,onThemeColorChange:s,themeColors:a})=>e.jsxs("div",{className:"flex grow flex-col gap-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(xs,{className:"h-4 w-4"}),e.jsx("p",{className:"text-sm font-medium",children:"Theme Color"})]}),e.jsxs(se,{className:"flex flex-col gap-2 rounded border bg-gray-100/50 p-2 dark:bg-gray-700/50",name:"themeColor",value:t,onValueChange:s,children:[e.jsx(H,{value:"default",label:"Default"}),a.map(r=>e.jsx(H,{value:r,label:r[0].toUpperCase()+r.slice(1)},r))]})]}),Oa="rowsPerPage",ne="dateFormat",Ma="theme-color",le=["nord","zinc"];function Pa(){const{setRowPerPageOrAuto:t,setIsCustomQuery:s,dateFormatValue:a,setDateFormatValue:r}=b(),[n,l]=oe(Oa,"auto"),[i,c]=oe(Ma,"default"),d=n==="auto";o.useEffect(()=>{t(d?"auto":Number(n))},[n,t,d]),o.useEffect(()=>{r(We(ne,"default"))},[r]),o.useEffect(()=>{var f;for(const h of le)(f=document.body)==null||f.classList.toggle(h,h===i)},[i]);const u=o.useCallback(f=>{s(!1),f==="auto"||Number(f)>0?l(f):L.error("Please provide a positive number of rows per page or set it to auto.")},[s,l]),x=o.useCallback(f=>{r(f),Ke(ne,f)},[r]),p=o.useCallback(f=>{c(f)},[c]);return e.jsxs(Ye,{children:[e.jsx(Sa,{asChild:!0,children:e.jsx(y,{className:"grow",title:"Open settings drawer",children:e.jsx(Le,{className:"h-5 w-5"})})}),e.jsxs(Je,{children:[e.jsxs(Ze,{className:"hidden",children:[e.jsx(tt,{children:"Settings"}),e.jsx(st,{children:"Change settings."})]}),e.jsxs("div",{className:"mx-auto flex w-full max-w-sm flex-col gap-3",children:[e.jsx(Ia,{rowsPerPage:n,onRowsPerPageChange:u}),e.jsx(Fa,{themeColor:i,onThemeColorChange:p,themeColors:le}),e.jsx(ka,{dateFormatValue:a,onDateFormatChange:x}),e.jsx(et,{children:e.jsx(La,{asChild:!0,children:e.jsx(y,{variant:"outline",children:"Cancel"})})})]})]})]},"settings-drawer")}const G="theme-mode",ie="animate-circular-reveal";function ot(){const[t,s]=o.useState(()=>{const l=localStorage.getItem(G),i=window.matchMedia("(prefers-color-scheme: dark)").matches;return l||(i?"dark":"light")}),a=o.useCallback(l=>{s(l),document.body.classList.remove("light","dark"),document.body.classList.add(l),localStorage.setItem(G,l),document.body.classList.add(ie),setTimeout(()=>{document.body.classList.remove(ie)},500)},[]);o.useEffect(()=>{const l=c=>{localStorage.getItem(G)||a(c.matches?"dark":"light")},i=window.matchMedia("(prefers-color-scheme: dark)");return i.addEventListener("change",l),a(t),()=>{i.removeEventListener("change",l)}},[a,t]);const r=o.useCallback(()=>{a(t==="light"?"dark":"light")},[t,a]);return o.useMemo(()=>e.jsx(y,{className:"relative grow",onClick:r,title:t==="dark"?"Enable light mode":"Enable dark mode",children:t==="dark"?e.jsx(ps,{className:"h-5 w-5"}):e.jsx(gs,{className:"h-5 w-5"})}),[t,r])}const Ba={"application/vnd.sqlite3":[".sqlite",".sqlite3",".db",".sqlitedb"],"application/x-sqlite3":[".sqlite",".sqlite3",".db",".sqlitedb"],"application/sqlite3":[".sqlite",".sqlite3",".db",".sqlitedb"],"application/octet-stream":[".sqlite",".sqlite3",".db",".sqlitedb"],"application/sql":[".sql"],"application/x-sql":[".sql"],"text/x-sql":[".sql"],"text/sql":[".sql"],"text/x-sqlite3":[".sql",".sqlite",".sqlite3",".db",".sqlitedb"],"text/x-sqlite":[".sql",".sqlite",".sqlite3",".db",".sqlitedb"],"text/sqlite":[".sql",".sqlite",".sqlite3",".db",".sqlitedb"],"text/x-sqlite3-dump":[".sql"],"text/x-sqlite-dump":[".sql"],"text/sqlite-dump":[".sql"]};function qa(){const{loadDatabaseBytes:t,db:s}=b(),[a,r]=o.useState([]),n=o.useCallback(async(u,x)=>{if(x.length>0){const p=x.flatMap(f=>f.errors);r(p);return}if(u.length>0)try{const p=new Uint8Array(await u[0].arrayBuffer());await t(p)}catch(p){return p instanceof Error?L(p.message,{position:"bottom-right"}):L("Failed to load database",{position:"bottom-right"})}},[t]),{getRootProps:l,getInputProps:i,isDragActive:c}=Is({onDrop:n,multiple:!1,accept:Ba}),d=o.useMemo((u=!!s)=>e.jsxs("div",{className:"flex w-full items-center justify-between gap-2",children:[e.jsxs("div",{...l(),className:`flex w-full grow transform cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed bg-gray-100/50 p-6 transition-colors duration-300 ease-in-out hover:bg-secondary dark:bg-gray-700/50 ${c?"border-blue-500 bg-blue-50 dark:bg-blue-900/20":"border-primary dark:border-gray-700"} ${u?"py-7":"py-12"}`,children:[e.jsx("input",{id:"file-upload",...i()}),e.jsx("label",{htmlFor:"file-upload",className:"sr-only",children:"Upload SQLite File"}),e.jsxs("div",{className:"text-center text-sm md:text-base",children:[e.jsx("span",{className:"hidden sm:block lg:text-lg",children:"Drag and drop file here, or click to select one"}),e.jsx("div",{className:"block sm:hidden",children:u?e.jsx("span",{className:"text-lg font-medium",children:"Click to select a file"}):e.jsx("span",{className:"text-lg font-medium",children:"Click to select a SQLite file"})})]})]}),u&&e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx(ot,{}),e.jsx(Pa,{})]})]}),[s,l,i,c]);return e.jsxs("section",{className:"mx-auto w-full",children:[d,e.jsx(Ua,{errors:a})]})}const Ua=T.memo(({errors:t})=>(o.useEffect(()=>{if(t)for(const s of t)L(s.message,{position:"bottom-right"})},[t]),null));function Qa(){return e.jsx("header",{className:"rounded bg-gradient-to-r shadow-md dark:from-gray-800 dark:to-indigo-900",children:e.jsx("div",{className:"mx-auto max-w-4xl px-4 py-8 sm:py-12",children:e.jsxs("div",{className:"flex flex-col items-center text-center",children:[e.jsx("h1",{className:"mb-2 text-2xl font-bold sm:text-3xl",children:"SQLite Viewer"}),e.jsx("p",{className:"max-w-md text-sm sm:text-base",children:"Explore and analyze your SQLite databases directly in your browser"})]})})})}function $a(){return e.jsxs(e.Fragment,{children:[e.jsx("section",{className:"rounded bg-gradient-to-r py-6 shadow-md dark:from-gray-800 dark:to-indigo-900 md:py-10",children:e.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:e.jsx("div",{children:e.jsxs("div",{className:"grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3",children:[e.jsx(M,{icon:hs,title:"Browser Based",description:"No installation required. Access and analyze your SQLite databases directly in your web browser."}),e.jsx(M,{icon:bs,title:"Lightning Fast",description:"Powered by WebAssembly (WASM) for near-native performance, even with large databases."}),e.jsx(M,{icon:ys,title:"100% Secure",description:"Your data never leaves your device. All processing happens client-side, ensuring complete privacy."}),e.jsx(M,{icon:Le,title:"Customizable Interface",description:"Different themes and settings. Adjust the look and feel of your interface to suit your preferences and workflow."}),e.jsx(M,{icon:js,title:"Offline Capable",description:"Work on your databases without an internet connection. Perfect for sensitive data or remote work."}),e.jsx(M,{icon:Ns,title:"PWA Support",description:"Install the app on your desktop or mobile device for a genuine native experience. Enjoy robust offline functionality."})]})})})}),e.jsx("div",{className:"pb-[72px] md:pb-0"})]})}function M({icon:t,title:s,description:a}){return e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx(t,{className:"h-6 w-6 text-blue-500"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-medium",children:s}),e.jsx("p",{className:"mt-1 text-sm",children:a})]})]})}const Ha=Bt,za=qt,nt=o.forwardRef(({className:t,...s},a)=>e.jsx(we,{className:m("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...s,ref:a}));nt.displayName=we.displayName;const lt=o.forwardRef(({className:t,...s},a)=>e.jsxs(za,{children:[e.jsx(nt,{}),e.jsx(Ce,{ref:a,className:m("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...s})]}));lt.displayName=Ce.displayName;const it=({className:t,...s})=>e.jsx("div",{className:m("flex flex-col space-y-2",t),...s});it.displayName="AlertDialogHeader";const ct=({className:t,...s})=>e.jsx("div",{className:m("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s});ct.displayName="AlertDialogFooter";const dt=o.forwardRef(({className:t,...s},a)=>e.jsx(Ee,{ref:a,className:m("text-lg font-semibold",t),...s}));dt.displayName=Ee.displayName;const mt=o.forwardRef(({className:t,...s},a)=>e.jsx(Re,{ref:a,className:m("text-sm text-muted-foreground",t),...s}));mt.displayName=Re.displayName;const ut=o.forwardRef(({className:t,...s},a)=>e.jsx(ve,{ref:a,className:m(Z(),t),...s}));ut.displayName=ve.displayName;const ft=o.forwardRef(({className:t,...s},a)=>e.jsx(Te,{ref:a,className:m(Z({variant:"outline"}),"mt-2 sm:mt-0",t),...s}));ft.displayName=Te.displayName;const Va=o.memo(lt);function Ga({showDialog:t,setShowDialog:s,onConfirm:a}){const r=o.useCallback(()=>{s(!1)},[s]);return e.jsx(Ha,{open:t,onOpenChange:s,children:e.jsxs(Va,{children:[e.jsxs(it,{children:[e.jsx(dt,{children:"Use Proxy to Load Database?"}),e.jsx(mt,{children:"We couldn't load the database from the provided URL due to CORS restrictions. Would you like to try using a proxy?"})]}),e.jsx("div",{className:"font-semibold text-yellow-600 md:text-left",children:"Warning: Using the proxy will route your database traffic through cors.eu.org."}),e.jsxs(ct,{children:[e.jsx(ft,{onClick:r,children:"Cancel"}),e.jsx(ut,{onClick:a,children:"Use Proxy"})]})]})})}const _a=/^(https?:\/\/(?:www\.)?[a-zA-Z0-9-]{1,256}\.[a-zA-Z]{2,6}(?:\/[^\s]*)?)$/i,Wa="https://cors.eu.org";function Ka(){const{db:t,isLoading:s,loadDatabaseBytes:a}=b(),[r,n]=o.useState(null),[l,i]=o.useState(!1),[c,d]=o.useState(null),[u,x]=o.useState(!1),p=o.useRef(!1),f=o.useCallback(async(g,N=!1)=>{if(!_a.test(g)){n("Invalid URL");return}try{x(!0);const j=N?`${Wa}/${encodeURIComponent(g)}`:g,A=await fetch(j);if(!A.ok)throw new Error("URL not found or invalid");const S=await A.blob(),D=new File([S],"database.sqlite"),F=new Uint8Array(await D.arrayBuffer());await a(F),n(null)}catch(j){N?n(`Error while fetching, ${j instanceof Error?j.message:String(j)}`):(d(g),i(!0))}finally{x(!1)}},[a]);o.useEffect(()=>{if(p.current)return;const N=new URLSearchParams(window.location.search).get("url");N&&(f(decodeURIComponent(N)),p.current=!0)},[f]);const h=o.useCallback(()=>{c&&(f(c,!0),i(!1))},[c,f]);return s||u?e.jsxs(_,{type:"loading",children:[u?"Fetching":"Loading"," SQLite file"]}):r&&!t?e.jsx(_,{type:"error",children:r}):e.jsx(e.Fragment,{children:l&&e.jsx(Ga,{showDialog:l,setShowDialog:i,onConfirm:h},"proxy-message")})}function Ya(){return e.jsx("footer",{className:"fixed bottom-0 left-0 right-0 border-t bg-background shadow-md",children:e.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex items-center justify-between py-4 md:py-6",children:[e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sms hidden sm:block",children:"No file will be uploaded to server. Using JavaScript, sql.js"}),e.jsx("p",{className:"text-sm sm:hidden",children:"No file uploads to server."})]}),e.jsxs("a",{href:"https://github.com/vwh/sqlite-viewer",target:"_blank",rel:"noopener noreferrer",className:"flex items-center space-x-2 text-blue-500",title:"Star on GitHub",children:[e.jsx(ws,{className:"h-5 w-5"}),e.jsx("span",{className:"text-sm font-medium hover:underline",children:"Star us on GitHub"})]})]}),e.jsx("div",{className:"flex items-center space-x-4",children:e.jsx(ot,{})})]})})})}const Xa=(t,s)=>t==null||s==null?!1:t.isDatabaseLoaded===s.isDatabaseLoaded,Ja=o.memo(Ta,Xa),Za=o.memo(qa),er=o.memo(Ka);function tr(){const{db:t,loadDatabaseBytes:s,expandPage:a}=b();return o.useEffect(()=>{window.loadDatabaseBytes=s;const r=async n=>{var l,i;if(n.data.type==="invokeLoadDatabaseBytes")try{const c=n.data.bytes;await s(c),(l=n.source)==null||l.postMessage({type:"loadDatabaseBytesSuccess"},n.origin)}catch(c){(i=n.source)==null||i.postMessage({type:"loadDatabaseBytesError",error:c instanceof Error?c.message:String(c)},n.origin)}};return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}},[s]),e.jsxs("main",{className:`mx-auto flex h-screen flex-col ${t?"gap-3":"gap-4"} p-4 ${a?"w-full":"container"}`,children:[!t&&e.jsx(Qa,{}),e.jsx(Za,{}),e.jsx(er,{}),t&&e.jsx(Ja,{isDatabaseLoaded:t}),!t&&e.jsxs(e.Fragment,{children:[e.jsx($a,{}),e.jsx(Ya,{})]})]})}const sr=({...t})=>e.jsx(Cs,{className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-gray-100 p-2 dark:group-[.toaster]:bg-gray-700 text-lg p-4 group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t});jt.createRoot(document.getElementById("root")).render(e.jsxs(T.StrictMode,{children:[e.jsx(tr,{}),e.jsx(sr,{})]})); diff --git a/assets/index-B-W7ss30.js.gz b/assets/index-B-W7ss30.js.gz deleted file mode 100644 index 67b140f..0000000 Binary files a/assets/index-B-W7ss30.js.gz and /dev/null differ diff --git a/assets/index-C-kKn6GS.css b/assets/index-C-kKn6GS.css new file mode 100644 index 0000000..fb588fc --- /dev/null +++ b/assets/index-C-kKn6GS.css @@ -0,0 +1 @@ +.nord.light{--background: 208 36% 100%;--foreground: 208 51% 1%;--muted: 208 40% 85%;--muted-foreground: 208 10% 35%;--popover: 208 36% 100%;--popover-foreground: 208 51% 1%;--card: 0 0% 99%;--card-foreground: 208 51% 0%;--border: 220 13% 91%;--input: 220 13% 91%;--primary: 208 67% 75%;--primary-foreground: 208 67% 30%;--secondary: 208 15% 91%;--secondary-foreground: 208 15% 31%;--accent: 208 15% 91%;--accent-foreground: 208 15% 31%;--destructive: 4 99% 32%;--destructive-foreground: 4 99% 92%;--ring: 208 67% 90%}.nord.dark{--background: 208 57% 0%;--foreground: 208 21% 99%;--muted: 208 40% 15%;--muted-foreground: 208 10% 65%;--popover: 208 57% 0%;--popover-foreground: 208 21% 99%;--card: 0 0% 1%;--card-foreground: 0 0% 100%;--border: 215 27.9% 16.9%;--input: 215 27.9% 16.9%;--primary: 208 67% 90%;--primary-foreground: 208 67% 30%;--secondary: 208 6% 10%;--secondary-foreground: 208 6% 70%;--accent: 208 6% 10%;--accent-foreground: 208 6% 70%;--destructive: 4 99% 46%;--destructive-foreground: 0 0% 100%;--ring: 208 67% 90%}.zinc.light{--background: 0 0% 100%;--foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--primary: 240 5.9% 10%;--primary-foreground: 0 0% 98%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--ring: 240 5.9% 10%}.zinc.dark{--background: 240 10% 3.9%;--foreground: 0 0% 98%;--card: 240 10% 3.9%;--card-foreground: 0 0% 98%;--popover: 240 10% 3.9%;--popover-foreground: 0 0% 98%;--primary: 0 0% 98%;--primary-foreground: 240 5.9% 10%;--secondary: 240 3.7% 15.9%;--secondary-foreground: 0 0% 98%;--muted: 240 3.7% 15.9%;--muted-foreground: 240 5% 64.9%;--accent: 240 3.7% 15.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--border: 240 3.7% 15.9%;--input: 240 3.7% 15.9%;--ring: 240 4.9% 83.9%}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--ring: 222.2 84% 4.9%;--radius: .5rem}.dark{--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--card: 222.2 84% 4.9%;--card-foreground: 210 40% 98%;--popover: 222.2 84% 4.9%;--popover-foreground: 210 40% 98%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 11.2%;--secondary: 217.2 32.6% 17.5%;--secondary-foreground: 210 40% 98%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%;--accent: 217.2 32.6% 17.5%;--accent-foreground: 210 40% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 40% 98%;--border: 217.2 32.6% 17.5%;--input: 217.2 32.6% 17.5%;--ring: 212.7 26.8% 83.9}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 1}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--scrollbar-track);border-radius:4px}::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border-radius:4px;-webkit-transition:background .2s ease-in-out;transition:background .2s ease-in-out}::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover)}:root{--scrollbar-track: hsl(var(--secondary));--scrollbar-thumb: hsl(var(--muted-foreground) / .5);--scrollbar-thumb-hover: hsl(var(--muted-foreground) / .7)}.dark{--scrollbar-track: hsl(var(--secondary));--scrollbar-thumb: hsl(var(--muted-foreground) / .5);--scrollbar-thumb-hover: hsl(var(--muted-foreground) / .7)}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.bottom-2{bottom:.5rem}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.top-\[50\%\]{top:50%}.z-10{z-index:10}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-\[40px\]{margin-bottom:40px}.mb-\[5px\]{margin-bottom:5px}.ml-2{margin-left:.5rem}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-4{margin-top:1rem}.mt-\[2px\]{margin-top:2px}.mt-auto{margin-top:auto}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-40{max-height:10rem}.max-h-7{max-height:1.75rem}.max-h-96{max-height:24rem}.w-10{width:2.5rem}.w-2\.5{width:.625rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-72{width:18rem}.w-80{width:20rem}.w-\[100px\]{width:100px}.w-\[1px\]{width:1px}.w-\[270px\]{width:270px}.w-full{width:100%}.min-w-\[100px\]{min-width:100px}.min-w-\[150px\]{min-width:150px}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-4xl{max-width:56rem}.max-w-7xl{max-width:80rem}.max-w-\[200px\]{max-width:200px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.caption-bottom{caption-side:bottom}.-translate-x-1\/2,.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes circular-reveal{0%{clip-path:circle(0% at 50% 50%)}to{clip-path:circle(150% at 50% 50%)}}.animate-circular-reveal{animation:circular-reveal .3s ease-in-out}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-\[6px\]{gap:6px}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-balance{text-wrap:balance}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-4{border-left-width:4px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity))}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-yellow-500{--tw-border-opacity: 1;border-color:rgb(234 179 8 / var(--tw-border-opacity))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-black\/70{background-color:#000000b3}.bg-black\/80{background-color:#000c}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-border{background-color:hsl(var(--border))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-100\/50{background-color:#f3f4f680}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.fill-current{fill:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[1px\]{padding:1px}.p-\[6px\]{padding:6px}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\[11px\]{padding-top:11px;padding-bottom:11px}.pb-4{padding-bottom:1rem}.pb-8{padding-bottom:2rem}.pb-\[72px\]{padding-bottom:72px}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pt-0{padding-top:0}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.text-current{color:currentColor}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-pink-500{--tw-text-opacity: 1;color:rgb(236 72 153 / var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity))}.text-purple-600{--tw-text-opacity: 1;color:rgb(147 51 234 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.cm-focused{outline:none!important}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\[\.toaster\]\:bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-1[data-side=bottom]{--tw-enter-translate-y: -.25rem}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-1[data-side=left]{--tw-enter-translate-x: .25rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-1[data-side=right]{--tw-enter-translate-x: -.25rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-1[data-side=top]{--tw-enter-translate-y: .25rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.dark\:border:is(.dark *){border-width:1px}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.dark\:bg-blue-900\/20:is(.dark *){background-color:#1e3a8a33}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:bg-gray-700\/50:is(.dark *){background-color:#37415180}.dark\:from-gray-800:is(.dark *){--tw-gradient-from: #1f2937 var(--tw-gradient-from-position);--tw-gradient-to: rgb(31 41 55 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:to-indigo-900:is(.dark *){--tw-gradient-to: #312e81 var(--tw-gradient-to-position)}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.group.toaster .dark\:group-\[\.toaster\]\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:block{display:block}.sm\:hidden{display:none}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-12{padding-top:3rem;padding-bottom:3rem}.sm\:text-left{text-align:left}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 768px){.md\:block{display:block}.md\:min-w-\[200px\]{min-width:200px}.md\:gap-2{gap:.5rem}.md\:py-10{padding-top:2.5rem;padding-bottom:2.5rem}.md\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.md\:pb-0{padding-bottom:0}.md\:text-left{text-align:left}.md\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:text-lg{font-size:1.125rem;line-height:1.75rem}}@media (min-width: 1430px){.expand\:block{display:block}}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0px}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} diff --git a/assets/index-C-kKn6GS.css.gz b/assets/index-C-kKn6GS.css.gz new file mode 100644 index 0000000..45256bf Binary files /dev/null and b/assets/index-C-kKn6GS.css.gz differ diff --git a/assets/index-C7t4FGqo.css b/assets/index-C7t4FGqo.css deleted file mode 100644 index 6ead046..0000000 --- a/assets/index-C7t4FGqo.css +++ /dev/null @@ -1 +0,0 @@ -.nord.light{--background: 208 36% 100%;--foreground: 208 51% 1%;--muted: 208 40% 85%;--muted-foreground: 208 10% 35%;--popover: 208 36% 100%;--popover-foreground: 208 51% 1%;--card: 0 0% 99%;--card-foreground: 208 51% 0%;--border: 220 13% 91%;--input: 220 13% 91%;--primary: 208 67% 75%;--primary-foreground: 208 67% 30%;--secondary: 208 15% 91%;--secondary-foreground: 208 15% 31%;--accent: 208 15% 91%;--accent-foreground: 208 15% 31%;--destructive: 4 99% 32%;--destructive-foreground: 4 99% 92%;--ring: 208 67% 90%}.nord.dark{--background: 208 57% 0%;--foreground: 208 21% 99%;--muted: 208 40% 15%;--muted-foreground: 208 10% 65%;--popover: 208 57% 0%;--popover-foreground: 208 21% 99%;--card: 0 0% 1%;--card-foreground: 0 0% 100%;--border: 215 27.9% 16.9%;--input: 215 27.9% 16.9%;--primary: 208 67% 90%;--primary-foreground: 208 67% 30%;--secondary: 208 6% 10%;--secondary-foreground: 208 6% 70%;--accent: 208 6% 10%;--accent-foreground: 208 6% 70%;--destructive: 4 99% 46%;--destructive-foreground: 0 0% 100%;--ring: 208 67% 90%}.zinc.light{--background: 0 0% 100%;--foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--primary: 240 5.9% 10%;--primary-foreground: 0 0% 98%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--ring: 240 5.9% 10%}.zinc.dark{--background: 240 10% 3.9%;--foreground: 0 0% 98%;--card: 240 10% 3.9%;--card-foreground: 0 0% 98%;--popover: 240 10% 3.9%;--popover-foreground: 0 0% 98%;--primary: 0 0% 98%;--primary-foreground: 240 5.9% 10%;--secondary: 240 3.7% 15.9%;--secondary-foreground: 0 0% 98%;--muted: 240 3.7% 15.9%;--muted-foreground: 240 5% 64.9%;--accent: 240 3.7% 15.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--border: 240 3.7% 15.9%;--input: 240 3.7% 15.9%;--ring: 240 4.9% 83.9%}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--ring: 222.2 84% 4.9%;--radius: .5rem}.dark{--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--card: 222.2 84% 4.9%;--card-foreground: 210 40% 98%;--popover: 222.2 84% 4.9%;--popover-foreground: 210 40% 98%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 11.2%;--secondary: 217.2 32.6% 17.5%;--secondary-foreground: 210 40% 98%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%;--accent: 217.2 32.6% 17.5%;--accent-foreground: 210 40% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 40% 98%;--border: 217.2 32.6% 17.5%;--input: 217.2 32.6% 17.5%;--ring: 212.7 26.8% 83.9}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 1}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--scrollbar-track);border-radius:4px}::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border-radius:4px;-webkit-transition:background .2s ease-in-out;transition:background .2s ease-in-out}::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover)}:root{--scrollbar-track: hsl(var(--secondary));--scrollbar-thumb: hsl(var(--muted-foreground) / .5);--scrollbar-thumb-hover: hsl(var(--muted-foreground) / .7)}.dark{--scrollbar-track: hsl(var(--secondary));--scrollbar-thumb: hsl(var(--muted-foreground) / .5);--scrollbar-thumb-hover: hsl(var(--muted-foreground) / .7)}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.bottom-2{bottom:.5rem}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.top-\[50\%\]{top:50%}.z-10{z-index:10}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-\[40px\]{margin-bottom:40px}.mb-\[5px\]{margin-bottom:5px}.ml-2{margin-left:.5rem}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-4{margin-top:1rem}.mt-\[2px\]{margin-top:2px}.mt-auto{margin-top:auto}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-40{max-height:10rem}.max-h-7{max-height:1.75rem}.max-h-96{max-height:24rem}.w-10{width:2.5rem}.w-2\.5{width:.625rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-72{width:18rem}.w-80{width:20rem}.w-\[100px\]{width:100px}.w-\[1px\]{width:1px}.w-\[270px\]{width:270px}.w-full{width:100%}.min-w-\[100px\]{min-width:100px}.min-w-\[150px\]{min-width:150px}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-4xl{max-width:56rem}.max-w-7xl{max-width:80rem}.max-w-\[200px\]{max-width:200px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.caption-bottom{caption-side:bottom}.-translate-x-1\/2,.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes circular-reveal{0%{clip-path:circle(0% at 50% 50%)}to{clip-path:circle(150% at 50% 50%)}}.animate-circular-reveal{animation:circular-reveal .3s ease-in-out}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-balance{text-wrap:balance}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-4{border-left-width:4px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity))}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-yellow-500{--tw-border-opacity: 1;border-color:rgb(234 179 8 / var(--tw-border-opacity))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-black\/70{background-color:#000000b3}.bg-black\/80{background-color:#000c}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-border{background-color:hsl(var(--border))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-100\/50{background-color:#f3f4f680}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.fill-current{fill:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[1px\]{padding:1px}.p-\[6px\]{padding:6px}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-7{padding-top:1.75rem;padding-bottom:1.75rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\[11px\]{padding-top:11px;padding-bottom:11px}.pb-4{padding-bottom:1rem}.pb-8{padding-bottom:2rem}.pb-\[72px\]{padding-bottom:72px}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.text-current{color:currentColor}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-pink-500{--tw-text-opacity: 1;color:rgb(236 72 153 / var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity))}.text-purple-600{--tw-text-opacity: 1;color:rgb(147 51 234 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.cm-focused{outline:none!important}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\[\.toaster\]\:bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-1[data-side=bottom]{--tw-enter-translate-y: -.25rem}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-1[data-side=left]{--tw-enter-translate-x: .25rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-1[data-side=right]{--tw-enter-translate-x: -.25rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-1[data-side=top]{--tw-enter-translate-y: .25rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.dark\:border:is(.dark *){border-width:1px}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.dark\:bg-blue-900\/20:is(.dark *){background-color:#1e3a8a33}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:bg-gray-700\/50:is(.dark *){background-color:#37415180}.dark\:from-gray-800:is(.dark *){--tw-gradient-from: #1f2937 var(--tw-gradient-from-position);--tw-gradient-to: rgb(31 41 55 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:to-indigo-900:is(.dark *){--tw-gradient-to: #312e81 var(--tw-gradient-to-position)}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.group.toaster .dark\:group-\[\.toaster\]\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:block{display:block}.sm\:hidden{display:none}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-12{padding-top:3rem;padding-bottom:3rem}.sm\:text-left{text-align:left}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 768px){.md\:block{display:block}.md\:min-w-\[200px\]{min-width:200px}.md\:flex-row{flex-direction:row}.md\:flex-col{flex-direction:column}.md\:py-10{padding-top:2.5rem;padding-bottom:2.5rem}.md\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.md\:pb-0{padding-bottom:0}.md\:text-left{text-align:left}.md\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:text-lg{font-size:1.125rem;line-height:1.75rem}}@media (min-width: 1430px){.expand\:block{display:block}}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} diff --git a/assets/index-C7t4FGqo.css.gz b/assets/index-C7t4FGqo.css.gz deleted file mode 100644 index 904eb50..0000000 Binary files a/assets/index-C7t4FGqo.css.gz and /dev/null differ diff --git a/assets/index-Dhbsy5TC.js b/assets/index-Dhbsy5TC.js new file mode 100644 index 0000000..f661717 --- /dev/null +++ b/assets/index-Dhbsy5TC.js @@ -0,0 +1,7 @@ +import{r as o,j as e,R as T}from"./react-DmpIMwDM.js";import{c as Rt}from"./react-dom-Cjr6YfK8.js";import{c as Tt}from"./zustand-BpWCCnYR.js";import{i as St}from"./sql.js-Ch_tM77n.js";import{F as ue}from"./file-saver-DhbZvGod.js";import{f as At}from"./sql-formatter-BoZ82dp4.js";import{I as Lt,H as It,c as fe,d as xe,e as Dt,S as Ft,f as kt,g as pe,h as Ot,i as Mt,j as ge,k as he,l as be,m as Pt,n as ye,o as Bt,p as Ne,q as je,r as qt,s as we,V as Ut,L as Ce,t as Ee,u as Qt,v as $t,w as ve,x as Ht,G as zt,y as Vt,z as Re,A as Gt,B as _t,E as Te,F as Se,J as Ae,K as Le,M as Ie,N as De,Q as Wt,U as Kt}from"./@radix-ui-BQVY8FyZ.js";import{c as Yt}from"./clsx-B-dksMZM.js";import{t as Xt}from"./tailwind-merge-BkWO730n.js";import{C as Z,L as Jt,I as Zt,a as es,T as ts,F as ss,b as as,R as rs,c as Fe,P as ke,S as Oe,d as os,M as ns,e as ls,f as is,g as cs,h as ds,A as ms,i as us,j as fs,K as xs,k as ps,l as gs,m as hs,H as bs,n as ys,o as Ns,p as js,q as ws,r as Cs,s as Es,G as vs,Z as Rs,t as Ts,u as Ss,v as As,w as Ls}from"./lucide-react-S8ZAjIB-.js";import{c as ee}from"./class-variance-authority-Bb4qSo10.js";import{J as A,T as Is}from"./sonner-CxG_nbEz.js";import{D as w}from"./vaul-OrZLygqJ.js";import{p as Me,i as Pe,f as Ds,a as Fs}from"./date-fns-BAPXOope.js";import{G as ks,I as Os,t as Ms}from"./@codemirror-SM3v-hs2.js";import{R as Ps,n as Bs}from"./@uiw-Cmr0UBwL.js";import{u as qs}from"./react-dropzone-D-IBOhIS.js";import"./attr-accept-BWI1aNlo.js";import"./scheduler-CzFDRTuY.js";import"./use-sync-external-store-ByYeed7R.js";import"./nearley-CG12bGQB.js";import"./aria-hidden-DQ5UC2Eg.js";import"./react-remove-scroll-BOyN_WUU.js";import"./tslib-CuZy2iRz.js";import"./react-remove-scroll-bar-DZjhPxUV.js";import"./react-style-singleton-CpxBwIWS.js";import"./get-nonce-C-Z93AgS.js";import"./use-sidecar-D8_hMcUG.js";import"./use-callback-ref-DRzK4jWO.js";import"./@floating-ui-Bob4LHZu.js";import"./@lezer-C0_A0N7l.js";import"./crelt-C8TCjufn.js";import"./style-mod-Bc2inJdb.js";import"./w3c-keyname-Vcq4gwWv.js";import"./@babel-BjXSgPXB.js";import"./prop-types-psm7UO16.js";import"./file-selector-CBHVlu32.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const l of n)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function a(n){const l={};return n.integrity&&(l.integrity=n.integrity),n.referrerPolicy&&(l.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?l.credentials="include":n.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(n){if(n.ep)return;n.ep=!0;const l=a(n);fetch(n.href,l)}})();const Us="/sql.wasm";let _;const Qs=async()=>(_||(_=await St({locateFile:()=>Us})),_),$s=async t=>{try{const s=await Qs();return new s.Database(t)}catch(s){throw console.error("Failed to load database:",s),s}},te=t=>{try{const s=t.prepare("SELECT name FROM sqlite_master WHERE type='table';"),a=[];for(;s.step();)a.push(s.get()[0]);return s.free(),a}catch{throw new Error("Invalid database file")}},Hs=(t,s)=>{try{const a={},r=t.prepare(`PRAGMA table_info("${s}");`);for(;r.step();){const l=r.getAsObject();a[l.name]={type:l.type?l.type.toUpperCase():l.type,isPrimaryKey:l.pk===1,isForeignKey:!1,nullable:l.notnull===0}}r.free();const n=t.prepare(`PRAGMA foreign_key_list("${s}");`);for(;n.step();){const l=n.getAsObject();a[l.from]&&(a[l.from].isForeignKey=!0)}return n.free(),a}catch(a){throw console.error(`Failed to get schema for table "${s}":`,a),a}},le=t=>{if(t.length===0)return{data:[],columns:[]};const{columns:s,values:a}=t[0];return{data:a.map(n=>Object.fromEntries(s.map((l,i)=>[l,n[i]]))),columns:s}},zs=t=>{try{const s=t.export(),a=new Blob([s],{type:"application/x-sqlite3"});ue.saveAs(a,"database.sqlite")}catch(s){throw console.error("Failed to export database:",s),s}},Vs=(t,s)=>{const a=t.map(n=>`"${n}"`).join(","),r=s.map(n=>t.map(l=>`"${n[l]??""}"`).join(","));return[a,...r].join(` +`)},se=(t,s,a)=>{try{const r=s.prepare(t),n=r.getColumnNames(),l=[];for(;r.step();){const c=r.getAsObject();l.push(c)}if(r.free(),l.length===0)throw new Error(`Query "${t}" returned no results.`);const i=Vs(n,l),d=new Blob([i],{type:"text/csv;charset=utf-8;"});ue.saveAs(d,`${a}.csv`)}catch(r){throw console.error(`Failed to get CSV for query "${t}":`,r),r}},Gs=(t,s)=>{const r=te(t)[s],n=`SELECT * FROM "${r}"`;se(n,t,r)},_s=t=>{const s=te(t);for(const a of s)try{const r=`SELECT * FROM "${a}"`;se(r,t,a)}catch(r){throw console.error(`Failed to get CSV for table "${a}":`,r),r}},Ws=(t,s)=>{se(s,t,"custom_query")},h=Tt((t,s)=>({db:null,isLoading:!1,loadDatabaseBytes:async a=>{t({isLoading:!0});try{const r=await $s(a),n=te(r),l=await Promise.all(n.map(async c=>{const u=r.exec(`SELECT COUNT(*) FROM "${c}"`),f=Number.parseInt(u[0].values[0][0],10),p=await Hs(r,c);return{name:c,count:f,schema:p}})),i=l.map(({name:c,count:u})=>({name:c,count:u})),d=l.reduce((c,{name:u,schema:f})=>(c[u]=f,c),{});t({db:r,tables:i,tableSchemas:d,isLoading:!1})}catch(r){throw t({isLoading:!1}),r}},tables:[],setTables:a=>t({tables:a}),selectedTable:"0",setSelectedTable:a=>t({selectedTable:a}),tableSchemas:{},customQuery:"",setIsCustomQuery:a=>t({isCustomQuery:a}),setCustomQuery:a=>t({customQuery:a}),isCustomQuery:!1,queryError:null,setQueryError:a=>t({queryError:a}),query:a=>{const{db:r}=s();return r?r.exec(a):(console.warn("Database is not loaded."),[])},rowPerPageOrAuto:"auto",setRowPerPageOrAuto:a=>t({rowPerPageOrAuto:a}),queryHistory:[],unShiftToQueryHistory:a=>t(r=>({queryHistory:[a,...r.queryHistory]})),expandPage:!1,setExpandPage:a=>t({expandPage:a}),dateFormatValue:"formatDateFormatted",setDateFormatValue:a=>t({dateFormatValue:a}),filters:{},setFilters:a=>t({filters:a}),appendToFilters:(a,r)=>t(n=>({filters:{...n.filters,[a]:r}})),filtersNeedClear:!1,setFiltersNeedClear:a=>t({filtersNeedClear:a}),totalRows:0,setTotalRows:a=>t({totalRows:a}),orderBy:{column:null,direction:"ASC"},setOrderBy:(a,r)=>t({orderBy:{column:a,direction:r}})}));function Ks(t,s,a){const{db:r,setQueryError:n,setIsCustomQuery:l,query:i,unShiftToQueryHistory:d,customQuery:c,setCustomQuery:u,filters:f,totalRows:p,setTotalRows:x,orderBy:y,selectedTable:g,tables:N}=h(),[C,E]=o.useState([]),[k,v]=o.useState([]),[O,L]=o.useState(!0),S=o.useMemo(()=>Object.fromEntries(Object.entries(f).filter(([,j])=>j!=="")),[f]),I=o.useMemo(()=>Object.entries(S).map(([j,R])=>`LOWER(${j}) LIKE LOWER('%${R}%')`).join(" AND "),[S]);o.useEffect(()=>{if(!r||!t)return;(async()=>{L(!0);try{const R=`PRAGMA table_info("${t}");`,M=i(R)[0].values.map(D=>({name:D[1],type:D[2]})).map(D=>D.type.toUpperCase()==="BLOB"?`hex(${D.name}) as ${D.name}`:D.name).join(", "),V=`SELECT COUNT(*) as count FROM "${t}"${I?` WHERE ${I}`:""}`,wt=i(V)[0].values[0][0];x(wt);let P=`SELECT + ${M} +FROM "${t}"`;I&&(P+=` +WHERE ${I}`),y.column&&(P+=` +ORDER BY "${y.column}" ${y.direction}`),P+=` +LIMIT ${s} OFFSET ${a};`;const Ct=i(P),{data:Et,columns:vt}=le(Ct);v(vt),E(Et),n(null),u(P),d(P)}catch(R){R instanceof Error&&n(R.message)}finally{L(!1)}})()},[r,t,a,s,I,y,i,n,u,d,x]);const q=o.useCallback(()=>{if(c.trim()===""){n(null);return}L(!0);try{const j=N[Number.parseInt(g)].name,R=i(c.replace("@",`"${j}"`)),{data:U,columns:Q}=le(R);v(Q),E(U),l(!0),n(null)}catch(j){j instanceof Error&&n(j.message)}finally{L(!1)}},[c,i,n,l,N,g]);return{data:C,columns:k,customQuery:c,setCustomQuery:u,isQueryLoading:O,handleCustomQuery:q,totalRows:p}}function Ys(t){const{setIsCustomQuery:s}=h(),[a,r]=o.useState(0);o.useEffect(()=>{r(0),s(!1)},[s]);const n=o.useMemo(()=>{if(t!=="auto")return t;const l=window.innerHeight,u=Math.min(2e3,40+l*.03),f=Math.max(1,Math.floor(l/u));return Math.min(Math.max(f,5),50)},[t]);return{page:a,setPage:r,rowsPerPage:n}}function m(...t){return Xt(Yt(t))}const Xs=Dt,Be=o.forwardRef(({className:t,...s},a)=>e.jsx(Lt,{ref:a,className:m("border-b",t),...s}));Be.displayName="AccordionItem";const qe=o.forwardRef(({className:t,children:s,...a},r)=>e.jsx(It,{className:"flex",children:e.jsxs(fe,{ref:r,className:m("flex flex-1 items-center justify-between py-3 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",t),...a,children:[s,e.jsx(Z,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));qe.displayName=fe.displayName;const Ue=o.forwardRef(({className:t,children:s,...a},r)=>e.jsx(xe,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...a,children:e.jsx("div",{className:m("pb-4 pt-0",t),children:s})}));Ue.displayName=xe.displayName;const ae=ee("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),b=o.forwardRef(({className:t,variant:s,size:a,asChild:r=!1,...n},l)=>{const i=r?Ft:"button";return e.jsx(i,{className:m(ae({variant:s,size:a,className:t})),ref:l,...n})});b.displayName="Button";const Js=o.memo(Jt);function Y({type:t,children:s,className:a=""}){let r,n;switch(t){case"error":r=e.jsx(ts,{className:"mr-3 h-6 w-6 text-red-500"}),n="bg-red-100 text-red-800 border-l-4 border-red-500";break;case"loading":{r=e.jsx(Js,{className:"mr-3 h-6 w-6 animate-spin text-blue-500"}),n="bg-blue-100 text-blue-800 border-l-4 border-blue-500";break}case"success":r=e.jsx(es,{className:"mr-3 h-6 w-6 text-green-500"}),n="bg-green-100 text-green-800 border-l-4 border-green-500";break;case"info":r=e.jsx(Zt,{className:"mr-3 h-6 w-6 text-yellow-500"}),n="bg-yellow-100 text-yellow-800 border-l-4 border-yellow-500";break;default:r=null,n=""}return e.jsxs("div",{className:`flex items-center rounded-lg p-4 shadow-md ${n} ${a}`,children:[r,e.jsx("span",{className:"font-medium",children:s})]})}const Zs=Ot,ea=Mt,Qe=o.forwardRef(({className:t,align:s="center",sideOffset:a=4,...r},n)=>e.jsx(kt,{children:e.jsx(pe,{ref:n,align:s,sideOffset:a,className:m("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r})}));Qe.displayName=pe.displayName;function ta(){const{selectedTable:t,customQuery:s,db:a}=h(),r=o.useMemo(()=>a&&e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx($,{onClick:()=>{try{zs(a)}catch{A.error("Failed to download database")}},label:"Export as SQLite",title:"Download database as SQLite"}),e.jsx($,{onClick:()=>{try{Gs(a,Number.parseInt(t))}catch{A.error("Failed to export selected table as CSV")}},label:"Export selected table as CSV"}),e.jsx($,{onClick:()=>{try{_s(a)}catch{A.error("Failed to export all tables as CSV")}},label:"Export all tables as CSV"}),e.jsx($,{onClick:()=>{try{Ws(a,s)}catch{A.error("Failed to export custom query as CSV")}},label:"Export custom query as CSV",title:"Export the result of the custom query as CSV"})]}),[a,t,s]);return e.jsxs(Zs,{children:[e.jsx(ea,{asChild:!0,children:e.jsx(b,{title:"Open export options",children:e.jsx(ss,{className:"h-5 w-5"})})}),e.jsx(Qe,{align:"end",className:"w-80",children:r})]})}function $({onClick:t,label:s,className:a,title:r}){return e.jsx(b,{className:a,onClick:t,title:r??s,children:e.jsx("span",{className:"ml-2",children:s})})}const $e=(t,s)=>localStorage.getItem(t)||s,He=(t,s)=>localStorage.setItem(t,s),ie=(t,s)=>{const[a,r]=o.useState(()=>$e(t,s));return o.useEffect(()=>{He(t,a)},[t,a]),[a,r]},ze=({shouldScaleBackground:t=!0,...s})=>e.jsx(w.Root,{shouldScaleBackground:t,...s});ze.displayName="Drawer";const sa=w.Trigger,aa=w.Portal,ra=w.Close,Ve=o.forwardRef(({className:t,...s},a)=>e.jsx(w.Overlay,{ref:a,className:m("fixed inset-0 z-50 bg-black/80",t),...s}));Ve.displayName=w.Overlay.displayName;const Ge=o.forwardRef(({className:t,children:s,...a},r)=>e.jsxs(aa,{children:[e.jsx(Ve,{}),e.jsxs(w.Content,{ref:r,className:m("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",t),...a,children:[e.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),s]})]}));Ge.displayName="DrawerContent";const _e=({className:t,...s})=>e.jsx("div",{className:m("grid gap-1.5 p-4 text-center sm:text-left",t),...s});_e.displayName="DrawerHeader";const We=({className:t,...s})=>e.jsx("div",{className:m("mt-auto flex flex-col gap-2 pb-4",t),...s});We.displayName="DrawerFooter";const Ke=o.forwardRef(({className:t,...s},a)=>e.jsx(w.Title,{ref:a,className:m("text-lg font-semibold leading-none tracking-tight",t),...s}));Ke.displayName=w.Title.displayName;const Ye=o.forwardRef(({className:t,...s},a)=>e.jsx(w.Description,{ref:a,className:m("text-sm text-muted-foreground",t),...s}));Ye.displayName=w.Description.displayName;const W=t=>s=>{const a=Me(s);return Pe(a)?Ds(a,t):s},oa=t=>{const s=Me(t);return Pe(s)?Fs(s,{addSuffix:!0}):t},X={formatDateRelative:{label:"Over 56 years ago",func:oa},formatDateFormatted:{label:"January 9th, 1968",func:W("MMMM do, yyyy")},formatDateLong:{label:"1968/09/01",func:W("yyyy/MM/dd")},formatDateShort:{label:"01/09/1968",func:W("MM/dd/yyyy")}},na=ee("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Xe=o.forwardRef(({className:t,...s},a)=>e.jsx(ge,{ref:a,className:m(na(),t),...s}));Xe.displayName=ge.displayName;const re=o.forwardRef(({className:t,...s},a)=>e.jsx(he,{className:m("grid gap-2",t),...s,ref:a}));re.displayName=he.displayName;const Je=o.forwardRef(({className:t,...s},a)=>e.jsx(be,{ref:a,className:m("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...s,children:e.jsx(Pt,{className:"flex items-center justify-center",children:e.jsx(as,{className:"h-2.5 w-2.5 fill-current text-current"})})}));Je.displayName=be.displayName;const oe=o.forwardRef(({className:t,type:s,...a},r)=>e.jsx("input",{type:s,className:m("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...a}));oe.displayName="Input";const H=({value:t,label:s})=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Je,{value:t,id:`r-${t}`}),e.jsx(Xe,{htmlFor:`r-${t}`,children:s})]}),la=({rowsPerPage:t,onRowsPerPageChange:s})=>{const a=t==="auto";return e.jsxs("div",{className:"flex h-full grow flex-col gap-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(rs,{className:"h-4 w-4"}),e.jsx("p",{className:"text-sm font-medium",children:"Rows Per Page"})]}),e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-1 rounded border bg-gray-100/50 p-2 dark:bg-gray-700/50",children:[e.jsx(oe,{id:"rowsPerPage",value:a?"":t,onChange:r=>s(r.target.value),placeholder:"Number of rows",type:"number",className:"w-full",autoFocus:!1}),e.jsx(b,{variant:"outline",onClick:()=>s("auto"),className:"w-full whitespace-nowrap",children:"Auto Calculate"})]})]})},ia=({dateFormatValue:t,onDateFormatChange:s})=>e.jsxs("div",{className:"flex h-full grow flex-col gap-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Fe,{className:"h-4 w-4"}),e.jsx("p",{className:"text-sm font-medium",children:"Date Format"})]}),e.jsx("div",{className:"h-full rounded border bg-gray-100/50 p-2 dark:bg-gray-700/50",children:e.jsxs(re,{className:"flex h-full flex-col gap-2",name:"dateType",value:t,onValueChange:s,children:[e.jsx(H,{value:"default",label:"Default"}),Object.entries(X).map(([a,{label:r}])=>e.jsx(H,{value:a,label:r},a))]})})]}),ca=({themeColor:t,onThemeColorChange:s,themeColors:a})=>e.jsxs("div",{className:"flex grow flex-col gap-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(ke,{className:"h-4 w-4"}),e.jsx("p",{className:"text-sm font-medium",children:"Theme Color"})]}),e.jsxs(re,{className:"flex flex-col gap-2 rounded border bg-gray-100/50 p-2 dark:bg-gray-700/50",name:"themeColor",value:t,onValueChange:s,children:[e.jsx(H,{value:"default",label:"Default"}),a.map(r=>e.jsx(H,{value:r,label:r[0].toUpperCase()+r.slice(1)},r))]})]}),da="rowsPerPage",ce="dateFormat",ma="theme-color",de=["nord","zinc"];function ua(){const{setRowPerPageOrAuto:t,setIsCustomQuery:s,dateFormatValue:a,setDateFormatValue:r}=h(),[n,l]=ie(da,"auto"),[i,d]=ie(ma,"default"),c=n==="auto";o.useEffect(()=>{t(c?"auto":Number(n))},[n,t,c]),o.useEffect(()=>{r($e(ce,"default"))},[r]),o.useEffect(()=>{var x;for(const y of de)(x=document.body)==null||x.classList.toggle(y,y===i)},[i]);const u=o.useCallback(x=>{s(!1),x==="auto"||Number(x)>0?l(x):A.error("Please provide a positive number of rows per page or set it to auto.")},[s,l]),f=o.useCallback(x=>{r(x),He(ce,x)},[r]),p=o.useCallback(x=>{d(x)},[d]);return e.jsxs(ze,{children:[e.jsx(sa,{asChild:!0,children:e.jsx(b,{className:"grow",title:"Open settings drawer",children:e.jsx(Oe,{className:"h-5 w-5"})})}),e.jsxs(Ge,{children:[e.jsxs(_e,{className:"hidden",children:[e.jsx(Ke,{children:"Settings"}),e.jsx(Ye,{children:"Change settings."})]}),e.jsxs("div",{className:"mx-auto flex w-full max-w-sm flex-col gap-3",children:[e.jsx(la,{rowsPerPage:n,onRowsPerPageChange:u}),e.jsx(ca,{themeColor:i,onThemeColorChange:p,themeColors:de}),e.jsx(ia,{dateFormatValue:a,onDateFormatChange:f}),e.jsx(We,{children:e.jsx(ra,{asChild:!0,children:e.jsx(b,{variant:"outline",children:"Cancel"})})})]})]})]},"settings-drawer")}const K="theme-mode",me="animate-circular-reveal";function Ze(){const[t,s]=o.useState(()=>{const l=localStorage.getItem(K),i=window.matchMedia("(prefers-color-scheme: dark)").matches;return l||(i?"dark":"light")}),a=o.useCallback(l=>{s(l),document.body.classList.remove("light","dark"),document.body.classList.add(l),localStorage.setItem(K,l),document.body.classList.add(me),setTimeout(()=>{document.body.classList.remove(me)},500)},[]);o.useEffect(()=>{const l=d=>{localStorage.getItem(K)||a(d.matches?"dark":"light")},i=window.matchMedia("(prefers-color-scheme: dark)");return i.addEventListener("change",l),a(t),()=>{i.removeEventListener("change",l)}},[a,t]);const r=o.useCallback(()=>{a(t==="light"?"dark":"light")},[t,a]);return o.useMemo(()=>e.jsx(b,{className:"relative grow",onClick:r,title:t==="dark"?"Enable light mode":"Enable dark mode",children:t==="dark"?e.jsx(os,{className:"h-5 w-5"}):e.jsx(ns,{className:"h-5 w-5"})}),[t,r])}const fa=T.memo(ls),xa=T.memo(is);function pa({page:t,setPage:s,rowsPerPage:a}){const{totalRows:r}=h(),n=o.useMemo(()=>Math.ceil(r/a),[r,a]),l=o.useMemo(()=>Math.ceil(t/a)+1,[t,a]),i=l1,c=o.useCallback(()=>{i&&s(f=>f+a)},[i,a,s]),u=o.useCallback(()=>{d&&s(f=>f-a)},[d,a,s]);return e.jsx("section",{className:"fixed bottom-2 left-1/2 z-10 w-[270px] -translate-x-1/2 transform",children:e.jsxs("div",{className:"flex justify-between gap-2 rounded border bg-secondary p-[6px]",children:[e.jsx(b,{onClick:u,title:"Previous page",disabled:!d,children:e.jsx(fa,{className:"h-4 w-4"})}),e.jsxs("span",{className:"flex items-center justify-center text-sm",children:["Page ",l," of ",n]}),e.jsx(b,{onClick:c,title:"Next page",disabled:!i,children:e.jsx(xa,{className:"h-4 w-4"})})]})})}const ga=Ht,ha=zt,ba=Vt,ya=o.memo(Z),et=o.forwardRef(({className:t,children:s,...a},r)=>e.jsxs(ye,{ref:r,className:m("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...a,children:[s,e.jsx(Bt,{asChild:!0,children:e.jsx(ya,{className:"h-4 w-4 opacity-50"})})]}));et.displayName=ye.displayName;const tt=o.forwardRef(({className:t,...s},a)=>e.jsx(Ne,{ref:a,className:m("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsx(cs,{className:"h-4 w-4"})}));tt.displayName=Ne.displayName;const st=o.forwardRef(({className:t,...s},a)=>e.jsx(je,{ref:a,className:m("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsx(Z,{className:"h-4 w-4"})}));st.displayName=je.displayName;const at=o.forwardRef(({className:t,children:s,position:a="popper",...r},n)=>e.jsx(qt,{children:e.jsxs(we,{ref:n,className:m("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,...r,children:[e.jsx(tt,{}),e.jsx(Ut,{className:m("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),e.jsx(st,{})]})}));at.displayName=we.displayName;const rt=o.forwardRef(({className:t,...s},a)=>e.jsx(Ce,{ref:a,className:m("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...s}));rt.displayName=Ce.displayName;const ot=o.forwardRef(({className:t,children:s,...a},r)=>e.jsxs(Ee,{ref:r,className:m("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...a,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Qt,{children:e.jsx(ds,{className:"h-4 w-4"})})}),e.jsx($t,{children:s})]}));ot.displayName=Ee.displayName;const Na=o.forwardRef(({className:t,...s},a)=>e.jsx(ve,{ref:a,className:m("-mx-1 my-1 h-px bg-muted",t),...s}));Na.displayName=ve.displayName;const ja=ee("inline-flex items-center rounded border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function z({className:t,variant:s,...a}){return e.jsx("div",{className:m(ja({variant:s}),t),...a,children:e.jsx("span",{className:"w-full",children:a.children})})}function wa(){const{tables:t,selectedTable:s,setSelectedTable:a,setIsCustomQuery:r}=h(),n=o.useMemo(()=>{var c;const d=Number.parseInt(s);return Number.isNaN(d)?0:((c=t[d])==null?void 0:c.count)||0},[t,s]),l=o.useMemo(()=>t.map((d,c)=>e.jsx(ot,{value:`${c}`,children:d.name[0].toUpperCase()+d.name.slice(1)},d.name)),[t]);function i(d){r(!1),a(d)}return e.jsxs("section",{className:"flex grow items-center justify-center gap-1",children:[e.jsxs(ga,{value:s,onValueChange:i,children:[e.jsx(et,{className:"grow",children:e.jsx(ba,{placeholder:"Select a table"})}),e.jsx(at,{children:e.jsxs(ha,{children:[e.jsx(rt,{children:"Tables"}),l]})})]}),e.jsx(z,{title:"Rows",className:"hidden min-w-[100px] grow bg-background py-2 text-center text-sm md:block md:min-w-[200px]",variant:"outline",children:e.jsx("span",{className:"w-full text-center",children:n})})]})}const Ca={DATE:/DATE|TIMESTAMP/i,BLOB:/^BLOB$/i,TEXT:/CHAR|TEXT|CLOB|VARCHAR/i,INTEGER:/INT/i,REAL:/REAL|FLOAT|DOUBLE|DECIMAL/i,NUMERIC:/NUMERIC/i,BOOLEAN:/BOOL/i},F=(t,s)=>Ca[s].test(t),nt=t=>F(t,"DATE"),Ea=t=>F(t,"BLOB"),va=t=>F(t,"TEXT"),Ra=t=>F(t,"INTEGER"),Ta=t=>F(t,"REAL"),Sa=t=>F(t,"NUMERIC"),Aa=t=>F(t,"BOOLEAN"),La=t=>Ra(t)||Ta(t)||Sa(t),lt=Gt,it=_t,ne=o.forwardRef(({className:t,align:s="start",side:a="bottom",sideOffset:r=4,...n},l)=>e.jsx(Re,{ref:l,align:s,side:a,sideOffset:r,className:m("z-50 w-64 text-balance break-words rounded-md border p-4 text-popover-foreground shadow-md outline-none","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[side=bottom]:slide-in-from-top-1","data-[side=left]:slide-in-from-right-1","data-[side=right]:slide-in-from-left-1","data-[side=top]:slide-in-from-bottom-1","bg-gray-100 dark:bg-gray-700",t),...n}));ne.displayName=Re.displayName;const ct=o.forwardRef(({className:t,...s},a)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:a,className:m("w-full caption-bottom text-sm",t),...s})}));ct.displayName="Table";const dt=o.forwardRef(({className:t,...s},a)=>e.jsx("thead",{ref:a,className:m("[&_tr]:border-b",t),...s}));dt.displayName="TableHeader";const mt=o.forwardRef(({className:t,...s},a)=>e.jsx("tbody",{ref:a,className:m("[&_tr:last-child]:border-0",t),...s}));mt.displayName="TableBody";const Ia=o.forwardRef(({className:t,...s},a)=>e.jsx("tfoot",{ref:a,className:m("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...s}));Ia.displayName="TableFooter";const J=o.forwardRef(({className:t,...s},a)=>e.jsx("tr",{ref:a,className:m("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...s}));J.displayName="TableRow";const ut=o.forwardRef(({className:t,...s},a)=>e.jsx("th",{ref:a,className:m("h-12 min-w-[150px] px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...s}));ut.displayName="TableHead";const Da=t=>{const s=new Uint8Array(t.match(/.{1,2}/g).map(r=>Number.parseInt(r,16))),a=new Blob([s],{type:"image/jpeg"});return URL.createObjectURL(a)},ft=o.memo(o.forwardRef(({className:t,children:s,dataType:a,...r},n)=>{const l=(a==null?void 0:a.toUpperCase())==="BLOB",i=o.useMemo(()=>typeof s=="string"&&s.length>40?`${s.slice(0,40)}...`:s,[s]);return e.jsx("td",{ref:n,className:m("max-w-[200px] overflow-hidden truncate text-ellipsis whitespace-nowrap p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...r,children:e.jsxs(lt,{children:[e.jsx(it,{asChild:!0,children:e.jsx("span",{className:"cursor-pointer hover:underline",children:l?e.jsx("span",{className:"italic opacity-40",children:"BLOB"}):i})}),e.jsx(ne,{side:"bottom",align:"start",children:e.jsxs("div",{className:"flex flex-col justify-center gap-1",children:[l&&typeof s=="string"?e.jsxs(e.Fragment,{children:[e.jsx("img",{src:Da(s),alt:"BLOB content",className:"flex max-h-40 flex-col items-center justify-center gap-2 rounded object-contain",onError:d=>{d.currentTarget.style.display="none"}}),e.jsxs("span",{className:"text-sm text-muted-foreground",children:["Blob length: ",s.length]})]}):e.jsx("span",{className:"max-w-full break-words",children:s}),e.jsx(z,{className:"w-full self-start text-center text-xs font-semibold",children:a||"Unknown"})]})})]})})}));ft.displayName="TableCell";const Fa=o.forwardRef(({className:t,...s},a)=>e.jsx("caption",{ref:a,className:m("mt-4 text-sm text-muted-foreground",t),...s}));Fa.displayName="TableCaption";function ka({columnName:t}){const{appendToFilters:s,selectedTable:a,filtersNeedClear:r,setFiltersNeedClear:n}=h(),[l,i]=o.useState("");o.useEffect(()=>{i("")},[a]),o.useEffect(()=>{r&&(i(""),n(!1))},[r]);const d=o.useCallback(c=>{const u=c.target.value;i(u),s(t,u)},[s,t]);return e.jsx(oe,{value:l,onChange:d,className:"mt-[2px] max-h-7 w-full text-xs",placeholder:"Filter"})}function Oa({columnName:t}){const{orderBy:s,setOrderBy:a}=h(),r=o.useCallback(()=>{s.column===t?s.direction==="ASC"?a(t,"DESC"):s.direction==="DESC"&&a(null,"ASC"):a(t,"ASC")},[s,t,a]);return e.jsx("div",{onClick:r,onKeyUp:r,className:"flex items-center",children:s.column===t?s.direction==="ASC"?e.jsx("button",{title:"Descending",type:"button","aria-label":"Sort Descending",children:e.jsx(ms,{className:"h-4 w-4"})}):e.jsx("button",{title:"Ascending",type:"button","aria-label":"Sort Ascending",children:e.jsx(us,{className:"h-4 w-4"})}):e.jsx("button",{title:"Sort column",type:"button","aria-label":"Sort Column",children:e.jsx(fs,{className:"h-4 w-4"})})})}const Ma=T.memo(({columnSchema:t})=>e.jsxs(e.Fragment,{children:[(t==null?void 0:t.isPrimaryKey)&&e.jsx("p",{className:"text-sm font-semibold text-yellow-600",children:"(Primary)"}),(t==null?void 0:t.isForeignKey)&&e.jsx("p",{className:"text-sm font-semibold text-purple-600",children:"(Foreign)"})]})),Pa=T.memo(({columnSchema:t})=>{const{type:s,isPrimaryKey:a,isForeignKey:r}=t;if(a)return e.jsx(xs,{className:"h-4 w-4 text-yellow-500"});if(r)return e.jsx(ps,{className:"h-4 w-4 text-purple-500"});if(s){if(Ea(s))return e.jsx(gs,{className:"h-4 w-4 text-green-500"});if(nt(s))return e.jsx(Fe,{className:"h-4 w-4 text-blue-500"});if(va(s))return e.jsx(hs,{className:"h-4 w-4 text-indigo-500"});if(La(s))return e.jsx(bs,{className:"h-4 w-4 text-red-500"});if(Aa(s))return e.jsx(ys,{className:"h-4 w-4 text-pink-500"})}return e.jsx(Ns,{className:"h-4 w-4 text-gray-500"})}),Ba=T.memo(({columnName:t,columnSchema:s})=>e.jsxs(ut,{className:"bg-gray-100 py-2 dark:bg-gray-700",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Oa,{columnName:t}),e.jsxs(lt,{children:[e.jsx(it,{asChild:!0,children:e.jsxs("div",{className:"flex cursor-pointer items-center space-x-1",children:[e.jsx("span",{className:"max-w-[200px] overflow-hidden truncate text-ellipsis whitespace-nowrap",children:t}),s&&e.jsx(Pa,{columnSchema:s})]})}),e.jsxs(ne,{className:"w-64",children:[e.jsxs("div",{className:"mb-1 flex items-center space-x-1",children:[e.jsx("p",{className:"text-sm font-medium",children:t}),e.jsx(Ma,{columnSchema:s})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(z,{className:"w-full self-start text-center text-xs font-semibold",children:(s==null?void 0:s.type)||"Unknown"}),(s==null?void 0:s.nullable)&&e.jsx(z,{className:"w-full self-start text-center text-xs font-semibold",children:"NULLABLE"})]})]})]})]}),e.jsx(ka,{columnName:t})]})),qa=T.memo(({value:t,dataType:s})=>{const{dateFormatValue:a}=h(),r=()=>t?s&&nt(s)&&X[a]?X[a].func(t):t:e.jsx("span",{className:"italic text-gray-400",children:"NULL"});return e.jsx(ft,{dataType:s,className:"px-5 py-[11px] text-sm",children:r()})});function Ua({data:t,columns:s,tableName:a,tableSchemas:r}){const{filters:n,setFiltersNeedClear:l,setFilters:i}=h(),d=o.useMemo(()=>e.jsx(dt,{children:e.jsx(J,{children:s.map((f,p)=>e.jsx(Ba,{columnName:f,columnSchema:r[a][f]},p))})}),[s,r,a]),c=o.useMemo(()=>e.jsx(mt,{children:t.map((f,p)=>e.jsx(J,{children:s.map((x,y)=>{var g;return e.jsx(qa,{value:f[x],dataType:(g=r[a][x])==null?void 0:g.type},y)})},p))}),[t,s,r,a]),u=o.useCallback(()=>{l(!0),i({})},[l,i]);return e.jsxs("div",{className:"overflow-x-auto",children:[e.jsxs(ct,{children:[d,t.length>0&&c]}),t.length===0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"w-full p-4 text-center font-medium",children:["No data available for ",a]}),Object.keys(n).length>0&&e.jsx(b,{className:"w-full rounded-none",variant:"outline",onClick:u,children:"Clear filters"})]})]})}function Qa(){const[t,s]=o.useState(()=>document.body.classList.contains("dark"));return o.useEffect(()=>{const a=new MutationObserver(()=>{s(document.body.classList.contains("dark"))});return a.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>a.disconnect()},[]),t}const $a=["ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","AS","ASC","ATTACH","AUTOINCREMENT","BEFORE","BEGIN","BETWEEN","BY","CASCADE","CASE","CAST","CHECK","COLLATE","COLUMN","COMMIT","CONFLICT","CONSTRAINT","CREATE","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATABASE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DETACH","DISTINCT","DROP","EACH","ELSE","END","ESCAPE","EXCEPT","EXCLUSIVE","EXISTS","EXPLAIN","FAIL","FOR","FOREIGN","FROM","FULL","GLOB","GROUP","HAVING","IF","IGNORE","IMMEDIATE","IN","INDEX","INDEXED","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","KEY","LEFT","LIKE","LIMIT","MATCH","NATURAL","NO","NOT","NOTNULL","NULL","OF","OFFSET","ON","OR","ORDER","OUTER","PLAN","PRAGMA","PRIMARY","QUERY","RAISE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELEASE","RENAME","REPLACE","RESTRICT","RIGHT","ROLLBACK","ROW","SAVEPOINT","SELECT","SET","TABLE","TEMP","TEMPORARY","THEN","TO","TRANSACTION","TRIGGER","UNION","UNIQUE","UPDATE","USING","VACUUM","VALUES","VIEW","VIRTUAL","WHEN","WHERE","WITH","WITHOUT"];function Ha({columnNames:t}){const{customQuery:s,setCustomQuery:a,tables:r}=h(),n=Qa(),l=o.useCallback(c=>{const u=c.matchBefore(/\w*/);if(!u||u.from===u.to&&!c.explicit)return null;const f=[...$a.map(p=>({label:p,type:"keyword"})),...r.map(p=>({label:p.name,type:"table"})),...t.map(p=>({label:p,type:"column"}))];return{from:u.from,to:u.to,options:f}},[r,t]),i=o.useCallback(c=>{a(c)},[a]),d=o.useMemo(()=>[ks,Os(),Ms({override:[l]})],[l]);return e.jsx(Ps,{value:s,height:"126px",extensions:d,onChange:i,className:"rounded-md border",theme:n?Bs:"light"})}const za=T.memo(wa),Va=T.memo(ta);function Ga(){const{tables:t,selectedTable:s,tableSchemas:a,queryError:r,setQueryError:n,rowPerPageOrAuto:l,isCustomQuery:i,customQuery:d,setIsCustomQuery:c,setCustomQuery:u,expandPage:f,setExpandPage:p,filters:x,setFilters:y}=h(),{page:g,setPage:N,rowsPerPage:C}=Ys(l),E=o.useMemo(()=>{var M;return(M=t[Number.parseInt(s)])==null?void 0:M.name},[t,s]),{data:k,columns:v,isQueryLoading:O,handleCustomQuery:L}=Ks(E,C,g),[S,I]=o.useState([]);o.useEffect(()=>{v.length>0&&I(v)},[v]);const q=o.useCallback(()=>{n(null),u(""),c(!1)},[c,n,u]),j=o.useCallback(()=>{function M(G){try{return At(G,{language:"sqlite",useTabs:!1,keywordCase:"upper",tabWidth:2,expressionWidth:100,linesBetweenQueries:1})}catch{return G}}const V=M(d);u(V)},[d]);o.useEffect(()=>{N(0),y({})},[s]),o.useEffect(()=>{N(0)},[x]);const R=o.useMemo(()=>e.jsx(Xs,{type:"single",collapsible:!0,className:"w-full rounded-lg bg-background px-3",children:e.jsxs(Be,{value:"item-1",children:[e.jsx(qe,{className:"text-sm",children:"Execute Query"}),e.jsxs(Ue,{className:"flex flex-col gap-[6px]",children:[e.jsx("div",{className:"flex-grow",children:e.jsx(Ha,{columnNames:S})}),e.jsxs("div",{className:"flex flex-row gap-1 md:gap-2",children:[e.jsx(b,{className:"grow",variant:"secondary",onClick:L,title:"Run custom query",children:e.jsx(js,{className:"h-5 w-5"})}),e.jsx(b,{className:"grow opacity-80",variant:"secondary",onClick:q,title:"Remove query",children:e.jsx(ws,{className:"h-5 w-5"})}),e.jsx(b,{className:"grow opacity-80",variant:"secondary",onClick:j,title:"Format SQL",children:e.jsx(ke,{className:"h-5 w-5"})})]})]})]})}),[L,q,j,g,S]),U=o.useMemo(()=>O?e.jsxs(Y,{type:"loading",children:["Loading ",E]}):e.jsx("div",{className:"mb-[40px] overflow-hidden rounded-lg border border-gray-200 dark:border dark:border-gray-700",children:e.jsx(Ua,{data:k,columns:S.length>0?S:v,tableName:E,tableSchemas:a})}),[O,k,v,E,a,S]),Q=o.useMemo(()=>e.jsx(Va,{}),[]);return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"flex flex-col gap-3 pb-8",children:[e.jsxs("section",{className:"rounded-lg bg-gray-100 p-4 shadow-sm dark:bg-gray-700",children:[e.jsxs("div",{className:"mb-[5px] flex items-center justify-between gap-[6px]",children:[e.jsx(za,{}),e.jsxs("div",{className:"g-1 flex items-center justify-center gap-1",children:[Q,e.jsx(b,{className:"hidden expand:block",onClick:()=>p(!f),title:"Toggle page size",children:f?e.jsx(Cs,{className:"h-5 w-5"}):e.jsx(Es,{className:"h-5 w-5"})}),e.jsx(Ze,{}),e.jsx(ua,{})]})]}),R,r&&e.jsx("p",{className:"mt-2 text-center text-sm text-red-500 dark:text-red-400",children:r})]}),U,!i&&e.jsx(pa,{page:g,setPage:N,rowsPerPage:C})]})})}const _a={"application/vnd.sqlite3":[".sqlite",".sqlite3",".db",".sqlitedb"],"application/x-sqlite3":[".sqlite",".sqlite3",".db",".sqlitedb"],"application/sqlite3":[".sqlite",".sqlite3",".db",".sqlitedb"],"application/octet-stream":[".sqlite",".sqlite3",".db",".sqlitedb"],"application/sql":[".sql"],"application/x-sql":[".sql"],"text/x-sql":[".sql"],"text/sql":[".sql"],"text/x-sqlite3":[".sql",".sqlite",".sqlite3",".db",".sqlitedb"],"text/x-sqlite":[".sql",".sqlite",".sqlite3",".db",".sqlitedb"],"text/sqlite":[".sql",".sqlite",".sqlite3",".db",".sqlitedb"],"text/x-sqlite3-dump":[".sql"],"text/x-sqlite-dump":[".sql"],"text/sqlite-dump":[".sql"]};function Wa(){const{loadDatabaseBytes:t}=h(),[s,a]=o.useState([]),r=o.useCallback(async(c,u)=>{if(u.length>0){const f=u.flatMap(p=>p.errors);a(f);return}if(c.length>0)try{const f=new Uint8Array(await c[0].arrayBuffer());await t(f)}catch(f){return f instanceof Error?A(f.message,{position:"bottom-right"}):A("Failed to load database",{position:"bottom-right"})}},[t]),{getRootProps:n,getInputProps:l,isDragActive:i}=qs({onDrop:r,multiple:!1,accept:_a}),d=o.useMemo(()=>e.jsx("div",{className:"flex w-full items-center justify-between gap-2",children:e.jsxs("div",{...n(),className:`flex w-full grow transform cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed bg-gray-100/50 p-6 transition-colors duration-300 ease-in-out hover:bg-secondary dark:bg-gray-700/50 ${i?"border-blue-500 bg-blue-50 dark:bg-blue-900/20":"border-primary py-12 dark:border-gray-700"}`,children:[e.jsx("input",{id:"file-upload",...l()}),e.jsx("label",{htmlFor:"file-upload",className:"sr-only",children:"Upload SQLite File"}),e.jsxs("div",{className:"text-center text-sm md:text-base",children:[e.jsx("span",{className:"hidden sm:block lg:text-lg",children:"Drag and drop file here, or click to select one"}),e.jsx("div",{className:"block sm:hidden",children:e.jsx("span",{className:"text-lg font-medium",children:"Click to select a SQLite file"})})]})]})}),[n,l,i]);return e.jsxs("section",{className:"mx-auto w-full",children:[d,e.jsx(Ka,{errors:s})]})}const Ka=T.memo(({errors:t})=>(o.useEffect(()=>{if(t)for(const s of t)A(s.message,{position:"bottom-right"})},[t]),null));function Ya(){return e.jsx("header",{className:"rounded bg-gradient-to-r shadow-md dark:from-gray-800 dark:to-indigo-900",children:e.jsx("div",{className:"mx-auto max-w-4xl px-4 py-8 sm:py-12",children:e.jsxs("div",{className:"flex flex-col items-center text-center",children:[e.jsx("h1",{className:"mb-2 text-2xl font-bold sm:text-3xl",children:"SQLite Viewer"}),e.jsx("p",{className:"max-w-md text-sm sm:text-base",children:"Explore and analyze your SQLite databases directly in your browser"})]})})})}function Xa(){return e.jsxs(e.Fragment,{children:[e.jsx("section",{className:"rounded bg-gradient-to-r py-6 shadow-md dark:from-gray-800 dark:to-indigo-900 md:py-10",children:e.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:e.jsx("div",{children:e.jsxs("div",{className:"grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3",children:[e.jsx(B,{icon:vs,title:"Browser Based",description:"No installation required. Access and analyze your SQLite databases directly in your web browser."}),e.jsx(B,{icon:Rs,title:"Lightning Fast",description:"Powered by WebAssembly (WASM) for near-native performance, even with large databases."}),e.jsx(B,{icon:Ts,title:"100% Secure",description:"Your data never leaves your device. All processing happens client-side, ensuring complete privacy."}),e.jsx(B,{icon:Oe,title:"Customizable Interface",description:"Different themes and settings. Adjust the look and feel of your interface to suit your preferences and workflow."}),e.jsx(B,{icon:Ss,title:"Offline Capable",description:"Work on your databases without an internet connection. Perfect for sensitive data or remote work."}),e.jsx(B,{icon:As,title:"PWA Support",description:"Install the app on your desktop or mobile device for a genuine native experience. Enjoy robust offline functionality."})]})})})}),e.jsx("div",{className:"pb-[72px] md:pb-0"})]})}function B({icon:t,title:s,description:a}){return e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx(t,{className:"h-6 w-6 text-blue-500"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-medium",children:s}),e.jsx("p",{className:"mt-1 text-sm",children:a})]})]})}const Ja=Wt,Za=Kt,xt=o.forwardRef(({className:t,...s},a)=>e.jsx(Te,{className:m("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...s,ref:a}));xt.displayName=Te.displayName;const pt=o.forwardRef(({className:t,...s},a)=>e.jsxs(Za,{children:[e.jsx(xt,{}),e.jsx(Se,{ref:a,className:m("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...s})]}));pt.displayName=Se.displayName;const gt=({className:t,...s})=>e.jsx("div",{className:m("flex flex-col space-y-2",t),...s});gt.displayName="AlertDialogHeader";const ht=({className:t,...s})=>e.jsx("div",{className:m("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s});ht.displayName="AlertDialogFooter";const bt=o.forwardRef(({className:t,...s},a)=>e.jsx(Ae,{ref:a,className:m("text-lg font-semibold",t),...s}));bt.displayName=Ae.displayName;const yt=o.forwardRef(({className:t,...s},a)=>e.jsx(Le,{ref:a,className:m("text-sm text-muted-foreground",t),...s}));yt.displayName=Le.displayName;const Nt=o.forwardRef(({className:t,...s},a)=>e.jsx(Ie,{ref:a,className:m(ae(),t),...s}));Nt.displayName=Ie.displayName;const jt=o.forwardRef(({className:t,...s},a)=>e.jsx(De,{ref:a,className:m(ae({variant:"outline"}),"mt-2 sm:mt-0",t),...s}));jt.displayName=De.displayName;const er=o.memo(pt);function tr({showDialog:t,setShowDialog:s,onConfirm:a}){const r=o.useCallback(()=>{s(!1)},[s]);return e.jsx(Ja,{open:t,onOpenChange:s,children:e.jsxs(er,{children:[e.jsxs(gt,{children:[e.jsx(bt,{children:"Use Proxy to Load Database?"}),e.jsx(yt,{children:"We couldn't load the database from the provided URL due to CORS restrictions. Would you like to try using a proxy?"})]}),e.jsx("div",{className:"font-semibold text-yellow-600 md:text-left",children:"Warning: Using the proxy will route your database traffic through cors.eu.org."}),e.jsxs(ht,{children:[e.jsx(jt,{onClick:r,children:"Cancel"}),e.jsx(Nt,{onClick:a,children:"Use Proxy"})]})]})})}const sr=/^(https?:\/\/(?:www\.)?[a-zA-Z0-9-]{1,256}\.[a-zA-Z]{2,6}(?:\/[^\s]*)?)$/i,ar="https://cors.eu.org";function rr(){const{db:t,isLoading:s,loadDatabaseBytes:a}=h(),[r,n]=o.useState(null),[l,i]=o.useState(!1),[d,c]=o.useState(null),[u,f]=o.useState(!1),p=o.useRef(!1),x=o.useCallback(async(g,N=!1)=>{if(!sr.test(g)){n("Invalid URL");return}try{f(!0);const C=N?`${ar}/${encodeURIComponent(g)}`:g,E=await fetch(C);if(!E.ok)throw new Error("URL not found or invalid");const k=await E.blob(),v=new File([k],"database.sqlite"),O=new Uint8Array(await v.arrayBuffer());await a(O),n(null)}catch(C){N?n(`Error while fetching, ${C instanceof Error?C.message:String(C)}`):(c(g),i(!0))}finally{f(!1)}},[a]);o.useEffect(()=>{if(p.current)return;const N=new URLSearchParams(window.location.search).get("url");N&&(x(decodeURIComponent(N)),p.current=!0)},[x]);const y=o.useCallback(()=>{d&&(x(d,!0),i(!1))},[d,x]);return s||u?e.jsxs(Y,{type:"loading",children:[u?"Fetching":"Loading"," SQLite file"]}):r&&!t?e.jsx(Y,{type:"error",children:r}):e.jsx(e.Fragment,{children:l&&e.jsx(tr,{showDialog:l,setShowDialog:i,onConfirm:y},"proxy-message")})}function or(){return e.jsx("footer",{className:"fixed bottom-0 left-0 right-0 border-t bg-background shadow-md",children:e.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex items-center justify-between py-4 md:py-6",children:[e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sms hidden sm:block",children:"No file will be uploaded to server. Using JavaScript, sql.js"}),e.jsx("p",{className:"text-sm sm:hidden",children:"No file uploads to server."})]}),e.jsxs("a",{href:"https://github.com/vwh/sqlite-viewer",target:"_blank",rel:"noopener noreferrer",className:"flex items-center space-x-2 text-blue-500",title:"Star on GitHub",children:[e.jsx(Ls,{className:"h-5 w-5"}),e.jsx("span",{className:"text-sm font-medium hover:underline",children:"Star us on GitHub"})]})]}),e.jsx("div",{className:"flex items-center space-x-4",children:e.jsx(Ze,{})})]})})})}const nr=o.memo(Ga),lr=o.memo(Wa),ir=o.memo(rr);function cr(){const{db:t,expandPage:s}=h();return e.jsxs("main",{className:`mx-auto flex h-screen flex-col ${t?"gap-3":"gap-4"} p-4 ${s?"w-full":"container"}`,children:[!t&&e.jsxs(e.Fragment,{children:[e.jsx(Ya,{})," ",e.jsx(lr,{})," ",e.jsx(ir,{}),e.jsx(Xa,{}),e.jsx(or,{})]}),t&&e.jsx(nr,{isDatabaseLoaded:t})]})}const dr=({...t})=>e.jsx(Is,{className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-gray-100 p-2 dark:group-[.toaster]:bg-gray-700 text-lg p-4 group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t});Rt.createRoot(document.getElementById("root")).render(e.jsxs(T.StrictMode,{children:[e.jsx(cr,{}),e.jsx(dr,{})]})); diff --git a/assets/index-Dhbsy5TC.js.gz b/assets/index-Dhbsy5TC.js.gz new file mode 100644 index 0000000..eed10a9 Binary files /dev/null and b/assets/index-Dhbsy5TC.js.gz differ diff --git a/assets/lucide-react-BjVfCz3W.js.gz b/assets/lucide-react-BjVfCz3W.js.gz deleted file mode 100644 index 807d40f..0000000 Binary files a/assets/lucide-react-BjVfCz3W.js.gz and /dev/null differ diff --git a/assets/lucide-react-BjVfCz3W.js b/assets/lucide-react-S8ZAjIB-.js similarity index 83% rename from assets/lucide-react-BjVfCz3W.js rename to assets/lucide-react-S8ZAjIB-.js index 5713756..0ae949d 100644 --- a/assets/lucide-react-BjVfCz3W.js +++ b/assets/lucide-react-S8ZAjIB-.js @@ -1,9 +1,9 @@ -import{r as h}from"./react-BLNIRDtH.js";/** +import{r as c}from"./react-DmpIMwDM.js";/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const i=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l=(...a)=>a.filter((t,y,o)=>!!t&&o.indexOf(t)===y).join(" ");/** + */const d=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l=(...a)=>a.filter((t,y,o)=>!!t&&o.indexOf(t)===y).join(" ");/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. @@ -13,22 +13,22 @@ import{r as h}from"./react-BLNIRDtH.js";/** * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const M=h.forwardRef(({color:a="currentColor",size:t=24,strokeWidth:y=2,absoluteStrokeWidth:o,className:c="",children:r,iconNode:n,...s},k)=>h.createElement("svg",{ref:k,...x,width:t,height:t,stroke:a,strokeWidth:o?Number(y)*24/Number(t):y,className:l("lucide",c),...s},[...n.map(([p,d])=>h.createElement(p,d)),...Array.isArray(r)?r:[r]]));/** + */const m=c.forwardRef(({color:a="currentColor",size:t=24,strokeWidth:y=2,absoluteStrokeWidth:o,className:h="",children:r,iconNode:n,...s},k)=>c.createElement("svg",{ref:k,...x,width:t,height:t,stroke:a,strokeWidth:o?Number(y)*24/Number(t):y,className:l("lucide",h),...s},[...n.map(([p,i])=>c.createElement(p,i)),...Array.isArray(r)?r:[r]]));/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const e=(a,t)=>{const y=h.forwardRef(({className:o,...c},r)=>h.createElement(M,{ref:r,iconNode:t,className:l(`lucide-${i(a)}`,o),...c}));return y.displayName=`${a}`,y};/** + */const e=(a,t)=>{const y=c.forwardRef(({className:o,...h},r)=>c.createElement(m,{ref:r,iconNode:t,className:l(`lucide-${d(a)}`,o),...h}));return y.displayName=`${a}`,y};/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const w=e("AppWindow",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]);/** + */const v=e("AppWindow",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const m=e("ArrowDownNarrowWide",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h4",key:"6d7r33"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h10",key:"1438ji"}]]);/** + */const w=e("ArrowDownNarrowWide",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h4",key:"6d7r33"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h10",key:"1438ji"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. @@ -83,12 +83,12 @@ import{r as h}from"./react-BLNIRDtH.js";/** * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const H=e("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** + */const V=e("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const V=e("Cuboid",[["path",{d:"m21.12 6.4-6.05-4.06a2 2 0 0 0-2.17-.05L2.95 8.41a2 2 0 0 0-.95 1.7v5.82a2 2 0 0 0 .88 1.66l6.05 4.07a2 2 0 0 0 2.17.05l9.95-6.12a2 2 0 0 0 .95-1.7V8.06a2 2 0 0 0-.88-1.66Z",key:"1u2ovd"}],["path",{d:"M10 22v-8L2.25 9.15",key:"11pn4q"}],["path",{d:"m10 14 11.77-6.87",key:"1kt1wh"}]]);/** + */const H=e("Cuboid",[["path",{d:"m21.12 6.4-6.05-4.06a2 2 0 0 0-2.17-.05L2.95 8.41a2 2 0 0 0-.95 1.7v5.82a2 2 0 0 0 .88 1.66l6.05 4.07a2 2 0 0 0 2.17.05l9.95-6.12a2 2 0 0 0 .95-1.7V8.06a2 2 0 0 0-.88-1.66Z",key:"1u2ovd"}],["path",{d:"M10 22v-8L2.25 9.15",key:"11pn4q"}],["path",{d:"m10 14 11.77-6.87",key:"1kt1wh"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. @@ -128,84 +128,79 @@ import{r as h}from"./react-BLNIRDtH.js";/** * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const K=e("ListRestart",[["path",{d:"M21 6H3",key:"1jwq7v"}],["path",{d:"M7 12H3",key:"13ou7f"}],["path",{d:"M7 18H3",key:"1sijw9"}],["path",{d:"M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14",key:"qth677"}],["path",{d:"M11 10v4h4",key:"172dkj"}]]);/** + */const K=e("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const U=e("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** + */const U=e("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const G=e("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** + */const G=e("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const I=e("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** + */const I=e("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const P=e("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** + */const P=e("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const B=e("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** + */const B=e("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const E=e("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/** + */const E=e("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const $=e("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** + */const $=e("Rows3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const F=e("Rows3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]]);/** + */const F=e("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const O=e("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** + */const O=e("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const J=e("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** + */const J=e("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Q=e("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** + */const Q=e("ToggleLeft",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"8",cy:"12",r:"2",key:"1nvbw3"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const X=e("ToggleLeft",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"8",cy:"12",r:"2",key:"1nvbw3"}]]);/** + */const X=e("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Y=e("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** + */const Y=e("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const _=e("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** + */const _=e("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/** * @license lucide-react v0.424.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const e1=e("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/** - * @license lucide-react v0.424.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const a1=e("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);export{m as A,q as C,R as F,T as G,D as H,N as I,W as K,U as L,P as M,$ as P,F as R,O as S,_ as T,a1 as Z,A as a,b,z as c,L as d,C as e,f,u as g,Z as h,V as i,g as j,e1 as k,X as l,j as m,Y as n,K as o,I as p,H as q,E as r,Q as s,B as t,J as u,G as v,w,S as x}; + */const e1=e("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);export{w as A,z as C,R as F,T as G,D as H,N as I,W as K,K as L,P as M,B as P,$ as R,F as S,Y as T,e1 as Z,q as a,V as b,g as c,J as d,A as e,b as f,L as g,C as h,f as i,u as j,Z as k,H as l,_ as m,Q as n,j as o,E as p,X as q,I as r,G as s,O as t,U as u,v,S as w}; diff --git a/assets/lucide-react-S8ZAjIB-.js.gz b/assets/lucide-react-S8ZAjIB-.js.gz new file mode 100644 index 0000000..28b2930 Binary files /dev/null and b/assets/lucide-react-S8ZAjIB-.js.gz differ diff --git a/assets/react-BLNIRDtH.js b/assets/react-DmpIMwDM.js similarity index 99% rename from assets/react-BLNIRDtH.js rename to assets/react-DmpIMwDM.js index 237e538..c4a9013 100644 --- a/assets/react-BLNIRDtH.js +++ b/assets/react-DmpIMwDM.js @@ -14,4 +14,4 @@ import{g as N}from"./attr-accept-BWI1aNlo.js";function U(e,t){for(var n=0;ne.length)&&(r=e.length);for(var n=0,o=new Array(r);nn)return[!1,ke(n)];if(e.sizen)return[!1,ke(n)]}return[!0,null]}function E(e){return e!=null}function gr(e){var r=e.files,n=e.accept,o=e.minSize,a=e.maxSize,u=e.multiple,s=e.maxFiles,p=e.validator;return!u&&r.length>1||u&&s>=1&&r.length>s?!1:r.every(function(m){var j=He(m,n),S=z(j,1),P=S[0],T=Be(m,o,a),R=z(T,1),I=R[0],k=p?p(m):null;return P&&I&&!k})}function q(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Y(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(r){return r==="Files"||r==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Me(e){e.preventDefault()}function yr(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function mr(e){return e.indexOf("Edge/")!==-1}function br(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return yr(e)||mr(e)}function h(){for(var e=arguments.length,r=new Array(e),n=0;n1?a-1:0),s=1;se.length)&&(r=e.length);for(var n=0,o=new Array(r);n=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function kr(e,r){if(e==null)return{};var n={},o=Object.keys(e),a,u;for(u=0;u=0)&&(n[a]=e[a]);return n}var ge=c.forwardRef(function(e,r){var n=e.children,o=G(e,Er),a=xr(o),u=a.open,s=G(a,Fr);return c.useImperativeHandle(r,function(){return{open:u}},[u]),Ze.createElement(c.Fragment,null,n(f(f({},s),{},{open:u})))});ge.displayName="Dropzone";var Ye={disabled:!1,getFilesFromEvent:er,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};ge.defaultProps=Ye;ge.propTypes={children:l.func,accept:l.objectOf(l.arrayOf(l.string)),multiple:l.bool,preventDropOnDocument:l.bool,noClick:l.bool,noKeyboard:l.bool,noDrag:l.bool,noDragEventsBubbling:l.bool,minSize:l.number,maxSize:l.number,maxFiles:l.number,disabled:l.bool,getFilesFromEvent:l.func,onFileDialogCancel:l.func,onFileDialogOpen:l.func,useFsAccessApi:l.bool,autoFocus:l.bool,onDragEnter:l.func,onDragLeave:l.func,onDragOver:l.func,onDrop:l.func,onDropAccepted:l.func,onDropRejected:l.func,onError:l.func,validator:l.func};var de={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function xr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=f(f({},Ye),e),n=r.accept,o=r.disabled,a=r.getFilesFromEvent,u=r.maxSize,s=r.minSize,p=r.multiple,m=r.maxFiles,j=r.onDragEnter,S=r.onDragLeave,P=r.onDragOver,T=r.onDrop,R=r.onDropAccepted,I=r.onDropRejected,k=r.onFileDialogCancel,J=r.onFileDialogOpen,ye=r.useFsAccessApi,me=r.autoFocus,V=r.preventDropOnDocument,be=r.noClick,Q=r.noKeyboard,ve=r.noDrag,A=r.noDragEventsBubbling,X=r.onError,x=r.validator,M=c.useMemo(function(){return hr(n)},[n]),De=c.useMemo(function(){return Dr(n)},[n]),Z=c.useMemo(function(){return typeof J=="function"?J:ze},[J]),K=c.useMemo(function(){return typeof k=="function"?k:ze},[k]),y=c.useRef(null),D=c.useRef(null),qe=c.useReducer(Mr,de),he=le(qe,2),ee=he[0],b=he[1],Ge=ee.isFocused,Ae=ee.isFileDialogActive,$=c.useRef(typeof window<"u"&&window.isSecureContext&&ye&&vr()),Oe=function(){!$.current&&Ae&&setTimeout(function(){if(D.current){var i=D.current.files;i.length||(b({type:"closeDialog"}),K())}},300)};c.useEffect(function(){return window.addEventListener("focus",Oe,!1),function(){window.removeEventListener("focus",Oe,!1)}},[D,Ae,K,$]);var F=c.useRef([]),Ee=function(i){y.current&&y.current.contains(i.target)||(i.preventDefault(),F.current=[])};c.useEffect(function(){return V&&(document.addEventListener("dragover",Me,!1),document.addEventListener("drop",Ee,!1)),function(){V&&(document.removeEventListener("dragover",Me),document.removeEventListener("drop",Ee))}},[y,V]),c.useEffect(function(){return!o&&me&&y.current&&y.current.focus(),function(){}},[y,me,o]);var O=c.useCallback(function(t){X?X(t):console.error(t)},[X]),Fe=c.useCallback(function(t){t.preventDefault(),t.persist(),N(t),F.current=[].concat(Cr(F.current),[t.target]),Y(t)&&Promise.resolve(a(t)).then(function(i){if(!(q(t)&&!A)){var d=i.length,g=d>0&&gr({files:i,accept:M,minSize:s,maxSize:u,multiple:p,maxFiles:m,validator:x}),v=d>0&&!g;b({isDragAccept:g,isDragReject:v,isDragActive:!0,type:"setDraggedFiles"}),j&&j(t)}}).catch(function(i){return O(i)})},[a,j,O,A,M,s,u,p,m,x]),_e=c.useCallback(function(t){t.preventDefault(),t.persist(),N(t);var i=Y(t);if(i&&t.dataTransfer)try{t.dataTransfer.dropEffect="copy"}catch{}return i&&P&&P(t),!1},[P,A]),we=c.useCallback(function(t){t.preventDefault(),t.persist(),N(t);var i=F.current.filter(function(g){return y.current&&y.current.contains(g)}),d=i.indexOf(t.target);d!==-1&&i.splice(d,1),F.current=i,!(i.length>0)&&(b({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Y(t)&&S&&S(t))},[y,S,A]),H=c.useCallback(function(t,i){var d=[],g=[];t.forEach(function(v){var L=He(v,M),C=le(L,2),ne=C[0],te=C[1],oe=Be(v,s,u),U=le(oe,2),ie=U[0],ae=U[1],ue=x?x(v):null;if(ne&&ie&&!ue)d.push(v);else{var ce=[te,ae];ue&&(ce=ce.concat(ue)),g.push({file:v,errors:ce.filter(function(Xe){return Xe})})}}),(!p&&d.length>1||p&&m>=1&&d.length>m)&&(d.forEach(function(v){g.push({file:v,errors:[dr]})}),d.splice(0)),b({acceptedFiles:d,fileRejections:g,type:"setFiles"}),T&&T(d,g,i),g.length>0&&I&&I(g,i),d.length>0&&R&&R(d,i)},[b,p,M,s,u,m,T,R,I,x]),B=c.useCallback(function(t){t.preventDefault(),t.persist(),N(t),F.current=[],Y(t)&&Promise.resolve(a(t)).then(function(i){q(t)&&!A||H(i,t)}).catch(function(i){return O(i)}),b({type:"reset"})},[a,H,O,A]),_=c.useCallback(function(){if($.current){b({type:"openDialog"}),Z();var t={multiple:p,types:De};window.showOpenFilePicker(t).then(function(i){return a(i)}).then(function(i){H(i,null),b({type:"closeDialog"})}).catch(function(i){Ar(i)?(K(i),b({type:"closeDialog"})):Or(i)?($.current=!1,D.current?(D.current.value=null,D.current.click()):O(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):O(i)});return}D.current&&(b({type:"openDialog"}),Z(),D.current.value=null,D.current.click())},[b,Z,K,ye,H,O,De,p]),Ce=c.useCallback(function(t){!y.current||!y.current.isEqualNode(t.target)||(t.key===" "||t.key==="Enter"||t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),_())},[y,_]),je=c.useCallback(function(){b({type:"focus"})},[]),Se=c.useCallback(function(){b({type:"blur"})},[]),Pe=c.useCallback(function(){be||(br()?setTimeout(_,0):_())},[be,_]),w=function(i){return o?null:i},re=function(i){return Q?null:w(i)},W=function(i){return ve?null:w(i)},N=function(i){A&&i.stopPropagation()},Je=c.useMemo(function(){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=t.refKey,d=i===void 0?"ref":i,g=t.role,v=t.onKeyDown,L=t.onFocus,C=t.onBlur,ne=t.onClick,te=t.onDragEnter,oe=t.onDragOver,U=t.onDragLeave,ie=t.onDrop,ae=G(t,_r);return f(f(pe({onKeyDown:re(h(v,Ce)),onFocus:re(h(L,je)),onBlur:re(h(C,Se)),onClick:w(h(ne,Pe)),onDragEnter:W(h(te,Fe)),onDragOver:W(h(oe,_e)),onDragLeave:W(h(U,we)),onDrop:W(h(ie,B)),role:typeof g=="string"&&g!==""?g:"presentation"},d,y),!o&&!Q?{tabIndex:0}:{}),ae)}},[y,Ce,je,Se,Pe,Fe,_e,we,B,Q,ve,o]),Ve=c.useCallback(function(t){t.stopPropagation()},[]),Qe=c.useMemo(function(){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=t.refKey,d=i===void 0?"ref":i,g=t.onChange,v=t.onClick,L=G(t,wr),C=pe({accept:M,multiple:p,type:"file",style:{display:"none"},onChange:w(h(g,B)),onClick:w(h(v,Ve)),tabIndex:-1},d,D);return f(f({},C),L)}},[D,n,p,B,o]);return f(f({},ee),{},{isFocused:Ge&&!o,getRootProps:Je,getInputProps:Qe,rootRef:y,inputRef:D,open:w(_)})}function Mr(e,r){switch(r.type){case"focus":return f(f({},e),{},{isFocused:!0});case"blur":return f(f({},e),{},{isFocused:!1});case"openDialog":return f(f({},de),{},{isFileDialogActive:!0});case"closeDialog":return f(f({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return f(f({},e),{},{isDragActive:r.isDragActive,isDragAccept:r.isDragAccept,isDragReject:r.isDragReject});case"setFiles":return f(f({},e),{},{acceptedFiles:r.acceptedFiles,fileRejections:r.fileRejections});case"reset":return f({},de);default:return e}}function ze(){}export{xr as u}; +import{r as c,R as Ze}from"./react-DmpIMwDM.js";import{P as l}from"./prop-types-psm7UO16.js";import{f as er}from"./file-selector-CBHVlu32.js";import{_ as rr}from"./attr-accept-BWI1aNlo.js";function Re(e){return or(e)||tr(e)||$e(e)||nr()}function nr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tr(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function or(e){if(Array.isArray(e))return se(e)}function Te(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function Ie(e){for(var r=1;re.length)&&(r=e.length);for(var n=0,o=new Array(r);nn)return[!1,ke(n)];if(e.sizen)return[!1,ke(n)]}return[!0,null]}function E(e){return e!=null}function gr(e){var r=e.files,n=e.accept,o=e.minSize,a=e.maxSize,u=e.multiple,s=e.maxFiles,p=e.validator;return!u&&r.length>1||u&&s>=1&&r.length>s?!1:r.every(function(m){var j=He(m,n),S=z(j,1),P=S[0],R=Be(m,o,a),T=z(R,1),I=T[0],k=p?p(m):null;return P&&I&&!k})}function q(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Y(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(r){return r==="Files"||r==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Me(e){e.preventDefault()}function yr(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function mr(e){return e.indexOf("Edge/")!==-1}function br(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return yr(e)||mr(e)}function h(){for(var e=arguments.length,r=new Array(e),n=0;n1?a-1:0),s=1;se.length)&&(r=e.length);for(var n=0,o=new Array(r);n=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function kr(e,r){if(e==null)return{};var n={},o=Object.keys(e),a,u;for(u=0;u=0)&&(n[a]=e[a]);return n}var ge=c.forwardRef(function(e,r){var n=e.children,o=G(e,Er),a=xr(o),u=a.open,s=G(a,Fr);return c.useImperativeHandle(r,function(){return{open:u}},[u]),Ze.createElement(c.Fragment,null,n(f(f({},s),{},{open:u})))});ge.displayName="Dropzone";var Ye={disabled:!1,getFilesFromEvent:er,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};ge.defaultProps=Ye;ge.propTypes={children:l.func,accept:l.objectOf(l.arrayOf(l.string)),multiple:l.bool,preventDropOnDocument:l.bool,noClick:l.bool,noKeyboard:l.bool,noDrag:l.bool,noDragEventsBubbling:l.bool,minSize:l.number,maxSize:l.number,maxFiles:l.number,disabled:l.bool,getFilesFromEvent:l.func,onFileDialogCancel:l.func,onFileDialogOpen:l.func,useFsAccessApi:l.bool,autoFocus:l.bool,onDragEnter:l.func,onDragLeave:l.func,onDragOver:l.func,onDrop:l.func,onDropAccepted:l.func,onDropRejected:l.func,onError:l.func,validator:l.func};var de={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function xr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=f(f({},Ye),e),n=r.accept,o=r.disabled,a=r.getFilesFromEvent,u=r.maxSize,s=r.minSize,p=r.multiple,m=r.maxFiles,j=r.onDragEnter,S=r.onDragLeave,P=r.onDragOver,R=r.onDrop,T=r.onDropAccepted,I=r.onDropRejected,k=r.onFileDialogCancel,J=r.onFileDialogOpen,ye=r.useFsAccessApi,me=r.autoFocus,V=r.preventDropOnDocument,be=r.noClick,Q=r.noKeyboard,ve=r.noDrag,A=r.noDragEventsBubbling,X=r.onError,x=r.validator,M=c.useMemo(function(){return hr(n)},[n]),De=c.useMemo(function(){return Dr(n)},[n]),Z=c.useMemo(function(){return typeof J=="function"?J:ze},[J]),K=c.useMemo(function(){return typeof k=="function"?k:ze},[k]),y=c.useRef(null),D=c.useRef(null),qe=c.useReducer(Mr,de),he=le(qe,2),ee=he[0],b=he[1],Ge=ee.isFocused,Ae=ee.isFileDialogActive,$=c.useRef(typeof window<"u"&&window.isSecureContext&&ye&&vr()),Oe=function(){!$.current&&Ae&&setTimeout(function(){if(D.current){var i=D.current.files;i.length||(b({type:"closeDialog"}),K())}},300)};c.useEffect(function(){return window.addEventListener("focus",Oe,!1),function(){window.removeEventListener("focus",Oe,!1)}},[D,Ae,K,$]);var F=c.useRef([]),Ee=function(i){y.current&&y.current.contains(i.target)||(i.preventDefault(),F.current=[])};c.useEffect(function(){return V&&(document.addEventListener("dragover",Me,!1),document.addEventListener("drop",Ee,!1)),function(){V&&(document.removeEventListener("dragover",Me),document.removeEventListener("drop",Ee))}},[y,V]),c.useEffect(function(){return!o&&me&&y.current&&y.current.focus(),function(){}},[y,me,o]);var O=c.useCallback(function(t){X?X(t):console.error(t)},[X]),Fe=c.useCallback(function(t){t.preventDefault(),t.persist(),N(t),F.current=[].concat(Cr(F.current),[t.target]),Y(t)&&Promise.resolve(a(t)).then(function(i){if(!(q(t)&&!A)){var d=i.length,g=d>0&&gr({files:i,accept:M,minSize:s,maxSize:u,multiple:p,maxFiles:m,validator:x}),v=d>0&&!g;b({isDragAccept:g,isDragReject:v,isDragActive:!0,type:"setDraggedFiles"}),j&&j(t)}}).catch(function(i){return O(i)})},[a,j,O,A,M,s,u,p,m,x]),_e=c.useCallback(function(t){t.preventDefault(),t.persist(),N(t);var i=Y(t);if(i&&t.dataTransfer)try{t.dataTransfer.dropEffect="copy"}catch{}return i&&P&&P(t),!1},[P,A]),we=c.useCallback(function(t){t.preventDefault(),t.persist(),N(t);var i=F.current.filter(function(g){return y.current&&y.current.contains(g)}),d=i.indexOf(t.target);d!==-1&&i.splice(d,1),F.current=i,!(i.length>0)&&(b({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Y(t)&&S&&S(t))},[y,S,A]),H=c.useCallback(function(t,i){var d=[],g=[];t.forEach(function(v){var L=He(v,M),C=le(L,2),ne=C[0],te=C[1],oe=Be(v,s,u),U=le(oe,2),ie=U[0],ae=U[1],ue=x?x(v):null;if(ne&&ie&&!ue)d.push(v);else{var ce=[te,ae];ue&&(ce=ce.concat(ue)),g.push({file:v,errors:ce.filter(function(Xe){return Xe})})}}),(!p&&d.length>1||p&&m>=1&&d.length>m)&&(d.forEach(function(v){g.push({file:v,errors:[dr]})}),d.splice(0)),b({acceptedFiles:d,fileRejections:g,type:"setFiles"}),R&&R(d,g,i),g.length>0&&I&&I(g,i),d.length>0&&T&&T(d,i)},[b,p,M,s,u,m,R,T,I,x]),B=c.useCallback(function(t){t.preventDefault(),t.persist(),N(t),F.current=[],Y(t)&&Promise.resolve(a(t)).then(function(i){q(t)&&!A||H(i,t)}).catch(function(i){return O(i)}),b({type:"reset"})},[a,H,O,A]),_=c.useCallback(function(){if($.current){b({type:"openDialog"}),Z();var t={multiple:p,types:De};window.showOpenFilePicker(t).then(function(i){return a(i)}).then(function(i){H(i,null),b({type:"closeDialog"})}).catch(function(i){Ar(i)?(K(i),b({type:"closeDialog"})):Or(i)?($.current=!1,D.current?(D.current.value=null,D.current.click()):O(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):O(i)});return}D.current&&(b({type:"openDialog"}),Z(),D.current.value=null,D.current.click())},[b,Z,K,ye,H,O,De,p]),Ce=c.useCallback(function(t){!y.current||!y.current.isEqualNode(t.target)||(t.key===" "||t.key==="Enter"||t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),_())},[y,_]),je=c.useCallback(function(){b({type:"focus"})},[]),Se=c.useCallback(function(){b({type:"blur"})},[]),Pe=c.useCallback(function(){be||(br()?setTimeout(_,0):_())},[be,_]),w=function(i){return o?null:i},re=function(i){return Q?null:w(i)},W=function(i){return ve?null:w(i)},N=function(i){A&&i.stopPropagation()},Je=c.useMemo(function(){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=t.refKey,d=i===void 0?"ref":i,g=t.role,v=t.onKeyDown,L=t.onFocus,C=t.onBlur,ne=t.onClick,te=t.onDragEnter,oe=t.onDragOver,U=t.onDragLeave,ie=t.onDrop,ae=G(t,_r);return f(f(pe({onKeyDown:re(h(v,Ce)),onFocus:re(h(L,je)),onBlur:re(h(C,Se)),onClick:w(h(ne,Pe)),onDragEnter:W(h(te,Fe)),onDragOver:W(h(oe,_e)),onDragLeave:W(h(U,we)),onDrop:W(h(ie,B)),role:typeof g=="string"&&g!==""?g:"presentation"},d,y),!o&&!Q?{tabIndex:0}:{}),ae)}},[y,Ce,je,Se,Pe,Fe,_e,we,B,Q,ve,o]),Ve=c.useCallback(function(t){t.stopPropagation()},[]),Qe=c.useMemo(function(){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=t.refKey,d=i===void 0?"ref":i,g=t.onChange,v=t.onClick,L=G(t,wr),C=pe({accept:M,multiple:p,type:"file",style:{display:"none"},onChange:w(h(g,B)),onClick:w(h(v,Ve)),tabIndex:-1},d,D);return f(f({},C),L)}},[D,n,p,B,o]);return f(f({},ee),{},{isFocused:Ge&&!o,getRootProps:Je,getInputProps:Qe,rootRef:y,inputRef:D,open:w(_)})}function Mr(e,r){switch(r.type){case"focus":return f(f({},e),{},{isFocused:!0});case"blur":return f(f({},e),{},{isFocused:!1});case"openDialog":return f(f({},de),{},{isFileDialogActive:!0});case"closeDialog":return f(f({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return f(f({},e),{},{isDragActive:r.isDragActive,isDragAccept:r.isDragAccept,isDragReject:r.isDragReject});case"setFiles":return f(f({},e),{},{acceptedFiles:r.acceptedFiles,fileRejections:r.fileRejections});case"reset":return f({},de);default:return e}}function ze(){}export{xr as u}; diff --git a/assets/react-dropzone-D-IBOhIS.js.gz b/assets/react-dropzone-D-IBOhIS.js.gz new file mode 100644 index 0000000..33f16b3 Binary files /dev/null and b/assets/react-dropzone-D-IBOhIS.js.gz differ diff --git a/assets/react-remove-scroll-BBk4x74E.js.gz b/assets/react-remove-scroll-BBk4x74E.js.gz deleted file mode 100644 index 1e6fff8..0000000 Binary files a/assets/react-remove-scroll-BBk4x74E.js.gz and /dev/null differ diff --git a/assets/react-remove-scroll-BBk4x74E.js b/assets/react-remove-scroll-BOyN_WUU.js similarity index 94% rename from assets/react-remove-scroll-BBk4x74E.js rename to assets/react-remove-scroll-BOyN_WUU.js index a21cf0b..23f3475 100644 --- a/assets/react-remove-scroll-BBk4x74E.js +++ b/assets/react-remove-scroll-BOyN_WUU.js @@ -1,4 +1,4 @@ -import{d as z,e as B,b as j}from"./tslib-CuZy2iRz.js";import{r as a}from"./react-BLNIRDtH.js";import{f as O,z as Q,R as p}from"./react-remove-scroll-bar-D1YV4RSd.js";import{c as q,e as G}from"./use-sidecar-DDa65NPA.js";import{u as J}from"./use-callback-ref-2GXKldmC.js";import{s as K}from"./react-style-singleton-Cy56ZS_u.js";var V=q(),Y=function(){},X=a.forwardRef(function(e,r){var c=a.useRef(null),l=a.useState({onScrollCapture:Y,onWheelCapture:Y,onTouchMoveCapture:Y}),u=l[0],s=l[1],v=e.forwardProps,o=e.children,m=e.className,g=e.removeScrollBar,w=e.enabled,C=e.shards,y=e.sideCar,b=e.noIsolation,R=e.inert,t=e.allowPinchZoom,n=e.as,f=n===void 0?"div":n,h=e.gapMode,d=z(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=y,i=J([c,r]),E=B(B({},d),u);return a.createElement(a.Fragment,null,w&&a.createElement(S,{sideCar:V,removeScrollBar:g,shards:C,noIsolation:b,inert:R,setCallbacks:s,allowPinchZoom:!!t,lockRef:c,gapMode:h}),v?a.cloneElement(a.Children.only(o),B(B({},E),{ref:i})):a.createElement(f,B({},E,{className:m,ref:i}),o))});X.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};X.classNames={fullWidth:O,zeroRight:Q};var D=!1;if(typeof window<"u")try{var N=Object.defineProperty({},"passive",{get:function(){return D=!0,!0}});window.addEventListener("test",N,N),window.removeEventListener("test",N,N)}catch{D=!1}var k=D?{passive:!1}:!1,U=function(e){return e.tagName==="TEXTAREA"},Z=function(e,r){var c=window.getComputedStyle(e);return c[r]!=="hidden"&&!(c.overflowY===c.overflowX&&!U(e)&&c[r]==="visible")},_=function(e){return Z(e,"overflowY")},$=function(e){return Z(e,"overflowX")},I=function(e,r){var c=r.ownerDocument,l=r;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var u=F(e,l);if(u){var s=x(e,l),v=s[1],o=s[2];if(v>o)return!0}l=l.parentNode}while(l&&l!==c.body);return!1},ee=function(e){var r=e.scrollTop,c=e.scrollHeight,l=e.clientHeight;return[r,c,l]},re=function(e){var r=e.scrollLeft,c=e.scrollWidth,l=e.clientWidth;return[r,c,l]},F=function(e,r){return e==="v"?_(r):$(r)},x=function(e,r){return e==="v"?ee(r):re(r)},te=function(e,r){return e==="h"&&r==="rtl"?-1:1},ae=function(e,r,c,l,u){var s=te(e,window.getComputedStyle(r).direction),v=s*l,o=c.target,m=r.contains(o),g=!1,w=v>0,C=0,y=0;do{var b=x(e,o),R=b[0],t=b[1],n=b[2],f=t-n-s*R;(R||f)&&F(e,o)&&(C+=f,y+=R),o instanceof ShadowRoot?o=o.host:o=o.parentNode}while(!m&&o!==document.body||m&&(r.contains(o)||r===o));return(w&&(Math.abs(C)<1||!u)||!w&&(Math.abs(y)<1||!u))&&(g=!0),g},T=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},A=function(e){return[e.deltaX,e.deltaY]},H=function(e){return e&&"current"in e?e.current:e},ne=function(e,r){return e[0]===r[0]&&e[1]===r[1]},le=function(e){return` +import{d as z,e as B,b as j}from"./tslib-CuZy2iRz.js";import{r as a}from"./react-DmpIMwDM.js";import{f as O,z as Q,R as p}from"./react-remove-scroll-bar-DZjhPxUV.js";import{c as q,e as G}from"./use-sidecar-D8_hMcUG.js";import{u as J}from"./use-callback-ref-DRzK4jWO.js";import{s as K}from"./react-style-singleton-CpxBwIWS.js";var V=q(),Y=function(){},X=a.forwardRef(function(e,r){var c=a.useRef(null),l=a.useState({onScrollCapture:Y,onWheelCapture:Y,onTouchMoveCapture:Y}),u=l[0],s=l[1],v=e.forwardProps,o=e.children,m=e.className,g=e.removeScrollBar,w=e.enabled,C=e.shards,y=e.sideCar,b=e.noIsolation,R=e.inert,t=e.allowPinchZoom,n=e.as,f=n===void 0?"div":n,h=e.gapMode,d=z(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=y,i=J([c,r]),E=B(B({},d),u);return a.createElement(a.Fragment,null,w&&a.createElement(S,{sideCar:V,removeScrollBar:g,shards:C,noIsolation:b,inert:R,setCallbacks:s,allowPinchZoom:!!t,lockRef:c,gapMode:h}),v?a.cloneElement(a.Children.only(o),B(B({},E),{ref:i})):a.createElement(f,B({},E,{className:m,ref:i}),o))});X.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};X.classNames={fullWidth:O,zeroRight:Q};var D=!1;if(typeof window<"u")try{var N=Object.defineProperty({},"passive",{get:function(){return D=!0,!0}});window.addEventListener("test",N,N),window.removeEventListener("test",N,N)}catch{D=!1}var k=D?{passive:!1}:!1,U=function(e){return e.tagName==="TEXTAREA"},Z=function(e,r){var c=window.getComputedStyle(e);return c[r]!=="hidden"&&!(c.overflowY===c.overflowX&&!U(e)&&c[r]==="visible")},_=function(e){return Z(e,"overflowY")},$=function(e){return Z(e,"overflowX")},I=function(e,r){var c=r.ownerDocument,l=r;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var u=F(e,l);if(u){var s=x(e,l),v=s[1],o=s[2];if(v>o)return!0}l=l.parentNode}while(l&&l!==c.body);return!1},ee=function(e){var r=e.scrollTop,c=e.scrollHeight,l=e.clientHeight;return[r,c,l]},re=function(e){var r=e.scrollLeft,c=e.scrollWidth,l=e.clientWidth;return[r,c,l]},F=function(e,r){return e==="v"?_(r):$(r)},x=function(e,r){return e==="v"?ee(r):re(r)},te=function(e,r){return e==="h"&&r==="rtl"?-1:1},ae=function(e,r,c,l,u){var s=te(e,window.getComputedStyle(r).direction),v=s*l,o=c.target,m=r.contains(o),g=!1,w=v>0,C=0,y=0;do{var b=x(e,o),R=b[0],t=b[1],n=b[2],f=t-n-s*R;(R||f)&&F(e,o)&&(C+=f,y+=R),o instanceof ShadowRoot?o=o.host:o=o.parentNode}while(!m&&o!==document.body||m&&(r.contains(o)||r===o));return(w&&(Math.abs(C)<1||!u)||!w&&(Math.abs(y)<1||!u))&&(g=!0),g},T=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},A=function(e){return[e.deltaX,e.deltaY]},H=function(e){return e&&"current"in e?e.current:e},ne=function(e,r){return e[0]===r[0]&&e[1]===r[1]},le=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},oe=0,P=[];function ce(e){var r=a.useRef([]),c=a.useRef([0,0]),l=a.useRef(),u=a.useState(oe++)[0],s=a.useState(K)[0],v=a.useRef(e);a.useEffect(function(){v.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(u));var t=j([e.lockRef.current],(e.shards||[]).map(H),!0).filter(Boolean);return t.forEach(function(n){return n.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),t.forEach(function(n){return n.classList.remove("allow-interactivity-".concat(u))})}}},[e.inert,e.lockRef.current,e.shards]);var o=a.useCallback(function(t,n){if("touches"in t&&t.touches.length===2)return!v.current.allowPinchZoom;var f=T(t),h=c.current,d="deltaX"in t?t.deltaX:h[0]-f[0],S="deltaY"in t?t.deltaY:h[1]-f[1],i,E=t.target,M=Math.abs(d)>Math.abs(S)?"h":"v";if("touches"in t&&M==="h"&&E.type==="range")return!1;var L=I(M,E);if(!L)return!0;if(L?i=M:(i=M==="v"?"h":"v",L=I(M,E)),!L)return!1;if(!l.current&&"changedTouches"in t&&(d||S)&&(l.current=i),!i)return!0;var W=l.current||i;return ae(W,n,t,W==="h"?d:S,!0)},[]),m=a.useCallback(function(t){var n=t;if(!(!P.length||P[P.length-1]!==s)){var f="deltaY"in n?A(n):T(n),h=r.current.filter(function(i){return i.name===n.type&&(i.target===n.target||n.target===i.shadowParent)&&ne(i.delta,f)})[0];if(h&&h.should){n.cancelable&&n.preventDefault();return}if(!h){var d=(v.current.shards||[]).map(H).filter(Boolean).filter(function(i){return i.contains(n.target)}),S=d.length>0?o(n,d[0]):!v.current.noIsolation;S&&n.cancelable&&n.preventDefault()}}},[]),g=a.useCallback(function(t,n,f,h){var d={name:t,delta:n,target:f,should:h,shadowParent:ie(f)};r.current.push(d),setTimeout(function(){r.current=r.current.filter(function(S){return S!==d})},1)},[]),w=a.useCallback(function(t){c.current=T(t),l.current=void 0},[]),C=a.useCallback(function(t){g(t.type,A(t),t.target,o(t,e.lockRef.current))},[]),y=a.useCallback(function(t){g(t.type,T(t),t.target,o(t,e.lockRef.current))},[]);a.useEffect(function(){return P.push(s),e.setCallbacks({onScrollCapture:C,onWheelCapture:C,onTouchMoveCapture:y}),document.addEventListener("wheel",m,k),document.addEventListener("touchmove",m,k),document.addEventListener("touchstart",w,k),function(){P=P.filter(function(t){return t!==s}),document.removeEventListener("wheel",m,k),document.removeEventListener("touchmove",m,k),document.removeEventListener("touchstart",w,k)}},[]);var b=e.removeScrollBar,R=e.inert;return a.createElement(a.Fragment,null,R?a.createElement(s,{styles:le(u)}):null,b?a.createElement(p,{gapMode:e.gapMode}):null)}function ie(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const ue=G(V,ce);var se=a.forwardRef(function(e,r){return a.createElement(X,B({},e,{ref:r,sideCar:ue}))});se.classNames=X.classNames;export{se as R}; diff --git a/assets/react-remove-scroll-BOyN_WUU.js.gz b/assets/react-remove-scroll-BOyN_WUU.js.gz new file mode 100644 index 0000000..d8ab32c Binary files /dev/null and b/assets/react-remove-scroll-BOyN_WUU.js.gz differ diff --git a/assets/react-remove-scroll-bar-D1YV4RSd.js.gz b/assets/react-remove-scroll-bar-D1YV4RSd.js.gz deleted file mode 100644 index c7d1904..0000000 Binary files a/assets/react-remove-scroll-bar-D1YV4RSd.js.gz and /dev/null differ diff --git a/assets/react-remove-scroll-bar-D1YV4RSd.js b/assets/react-remove-scroll-bar-DZjhPxUV.js similarity index 94% rename from assets/react-remove-scroll-bar-D1YV4RSd.js rename to assets/react-remove-scroll-bar-DZjhPxUV.js index 23da6b4..14fc418 100644 --- a/assets/react-remove-scroll-bar-D1YV4RSd.js +++ b/assets/react-remove-scroll-bar-DZjhPxUV.js @@ -1,4 +1,4 @@ -import{r as s}from"./react-BLNIRDtH.js";import{s as f}from"./react-style-singleton-Cy56ZS_u.js";var d="right-scroll-bar-position",g="width-before-scroll-bar",p="with-scroll-bars-hidden",h="--removed-body-scroll-bar-size",m={left:0,top:0,right:0,gap:0},l=function(n){return parseInt(n||"",10)||0},b=function(n){var r=window.getComputedStyle(document.body),o=r[n==="padding"?"paddingLeft":"marginLeft"],t=r[n==="padding"?"paddingTop":"marginTop"],e=r[n==="padding"?"paddingRight":"marginRight"];return[l(o),l(t),l(e)]},y=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return m;var r=b(n),o=document.documentElement.clientWidth,t=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,t-o+r[2]-r[0])}},w=f(),c="data-scroll-locked",x=function(n,r,o,t){var e=n.left,i=n.top,v=n.right,a=n.gap;return o===void 0&&(o="margin"),` +import{r as s}from"./react-DmpIMwDM.js";import{s as f}from"./react-style-singleton-CpxBwIWS.js";var d="right-scroll-bar-position",g="width-before-scroll-bar",p="with-scroll-bars-hidden",h="--removed-body-scroll-bar-size",m={left:0,top:0,right:0,gap:0},l=function(n){return parseInt(n||"",10)||0},b=function(n){var r=window.getComputedStyle(document.body),o=r[n==="padding"?"paddingLeft":"marginLeft"],t=r[n==="padding"?"paddingTop":"marginTop"],e=r[n==="padding"?"paddingRight":"marginRight"];return[l(o),l(t),l(e)]},y=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return m;var r=b(n),o=document.documentElement.clientWidth,t=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,t-o+r[2]-r[0])}},w=f(),c="data-scroll-locked",x=function(n,r,o,t){var e=n.left,i=n.top,v=n.right,a=n.gap;return o===void 0&&(o="margin"),` .`.concat(p,` { overflow: hidden `).concat(t,`; padding-right: `).concat(a,"px ").concat(t,`; diff --git a/assets/react-remove-scroll-bar-DZjhPxUV.js.gz b/assets/react-remove-scroll-bar-DZjhPxUV.js.gz new file mode 100644 index 0000000..b735755 Binary files /dev/null and b/assets/react-remove-scroll-bar-DZjhPxUV.js.gz differ diff --git a/assets/react-style-singleton-Cy56ZS_u.js b/assets/react-style-singleton-CpxBwIWS.js similarity index 92% rename from assets/react-style-singleton-Cy56ZS_u.js rename to assets/react-style-singleton-CpxBwIWS.js index 7a31477..004e70c 100644 --- a/assets/react-style-singleton-Cy56ZS_u.js +++ b/assets/react-style-singleton-CpxBwIWS.js @@ -1 +1 @@ -import{r as a}from"./react-BLNIRDtH.js";import{g as u}from"./get-nonce-C-Z93AgS.js";function i(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=u();return e&&t.setAttribute("nonce",e),t}function c(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function l(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var s=function(){var t=0,e=null;return{add:function(n){t==0&&(e=i())&&(c(e,n),l(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},d=function(){var t=s();return function(e,n){a.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},y=function(){var t=d(),e=function(n){var r=n.styles,o=n.dynamic;return t(r,o),null};return e};export{y as s}; +import{r as a}from"./react-DmpIMwDM.js";import{g as u}from"./get-nonce-C-Z93AgS.js";function i(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=u();return e&&t.setAttribute("nonce",e),t}function c(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function l(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var s=function(){var t=0,e=null;return{add:function(n){t==0&&(e=i())&&(c(e,n),l(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},d=function(){var t=s();return function(e,n){a.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},y=function(){var t=d(),e=function(n){var r=n.styles,o=n.dynamic;return t(r,o),null};return e};export{y as s}; diff --git a/assets/sonner-mOQquDco.js b/assets/sonner-CxG_nbEz.js similarity index 99% rename from assets/sonner-mOQquDco.js rename to assets/sonner-CxG_nbEz.js index b412bf5..b6bb6fc 100644 --- a/assets/sonner-mOQquDco.js +++ b/assets/sonner-CxG_nbEz.js @@ -1,2 +1,2 @@ -import{a as e}from"./react-BLNIRDtH.js";import{R as It}from"./react-dom-CbzF4jeR.js";var Yt=a=>{switch(a){case"success":return Ht;case"info":return Dt;case"warning":return At;case"error":return Lt;default:return null}},jt=Array(12).fill(0),Pt=({visible:a})=>e.createElement("div",{className:"sonner-loading-wrapper","data-visible":a},e.createElement("div",{className:"sonner-spinner"},jt.map((r,o)=>e.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),Ht=e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),At=e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},e.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Dt=e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Lt=e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),$t=()=>{let[a,r]=e.useState(document.hidden);return e.useEffect(()=>{let o=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),a},ht=1,Ot=class{constructor(){this.subscribe=a=>(this.subscribers.push(a),()=>{let r=this.subscribers.indexOf(a);this.subscribers.splice(r,1)}),this.publish=a=>{this.subscribers.forEach(r=>r(a))},this.addToast=a=>{this.publish(a),this.toasts=[...this.toasts,a]},this.create=a=>{var r;let{message:o,...g}=a,v=typeof(a==null?void 0:a.id)=="number"||((r=a.id)==null?void 0:r.length)>0?a.id:ht++,m=this.toasts.find(f=>f.id===v),b=a.dismissible===void 0?!0:a.dismissible;return m?this.toasts=this.toasts.map(f=>f.id===v?(this.publish({...f,...a,id:v,title:o}),{...f,...a,id:v,dismissible:b,title:o}):f):this.addToast({title:o,...g,dismissible:b,id:v}),v},this.dismiss=a=>(a||this.toasts.forEach(r=>{this.subscribers.forEach(o=>o({id:r.id,dismiss:!0}))}),this.subscribers.forEach(r=>r({id:a,dismiss:!0})),a),this.message=(a,r)=>this.create({...r,message:a}),this.error=(a,r)=>this.create({...r,message:a,type:"error"}),this.success=(a,r)=>this.create({...r,type:"success",message:a}),this.info=(a,r)=>this.create({...r,type:"info",message:a}),this.warning=(a,r)=>this.create({...r,type:"warning",message:a}),this.loading=(a,r)=>this.create({...r,type:"loading",message:a}),this.promise=(a,r)=>{if(!r)return;let o;r.loading!==void 0&&(o=this.create({...r,promise:a,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let g=a instanceof Promise?a:a(),v=o!==void 0;return g.then(async m=>{if(Vt(m)&&!m.ok){v=!1;let b=typeof r.error=="function"?await r.error(`HTTP error! status: ${m.status}`):r.error,f=typeof r.description=="function"?await r.description(`HTTP error! status: ${m.status}`):r.description;this.create({id:o,type:"error",message:b,description:f})}else if(r.success!==void 0){v=!1;let b=typeof r.success=="function"?await r.success(m):r.success,f=typeof r.description=="function"?await r.description(m):r.description;this.create({id:o,type:"success",message:b,description:f})}}).catch(async m=>{if(r.error!==void 0){v=!1;let b=typeof r.error=="function"?await r.error(m):r.error,f=typeof r.description=="function"?await r.description(m):r.description;this.create({id:o,type:"error",message:b,description:f})}}).finally(()=>{var m;v&&(this.dismiss(o),o=void 0),(m=r.finally)==null||m.call(r)}),o},this.custom=(a,r)=>{let o=(r==null?void 0:r.id)||ht++;return this.create({jsx:a(o),id:o,...r}),o},this.subscribers=[],this.toasts=[]}},y=new Ot,Ut=(a,r)=>{let o=(r==null?void 0:r.id)||ht++;return y.addToast({title:a,...r,id:o}),o},Vt=a=>a&&typeof a=="object"&&"ok"in a&&typeof a.ok=="boolean"&&"status"in a&&typeof a.status=="number",Wt=Ut,Kt=()=>y.toasts,ne=Object.assign(Wt,{success:y.success,info:y.info,warning:y.warning,error:y.error,custom:y.custom,message:y.message,promise:y.promise,dismiss:y.dismiss,loading:y.loading},{getHistory:Kt});function Ft(a,{insertAt:r}={}){if(typeof document>"u")return;let o=document.head||document.getElementsByTagName("head")[0],g=document.createElement("style");g.type="text/css",r==="top"&&o.firstChild?o.insertBefore(g,o.firstChild):o.appendChild(g),g.styleSheet?g.styleSheet.cssText=a:g.appendChild(document.createTextNode(a))}Ft(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} +import{R as e}from"./react-DmpIMwDM.js";import{R as It}from"./react-dom-Cjr6YfK8.js";var Yt=a=>{switch(a){case"success":return Ht;case"info":return Dt;case"warning":return At;case"error":return Lt;default:return null}},jt=Array(12).fill(0),Pt=({visible:a})=>e.createElement("div",{className:"sonner-loading-wrapper","data-visible":a},e.createElement("div",{className:"sonner-spinner"},jt.map((r,o)=>e.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),Ht=e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),At=e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},e.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Dt=e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Lt=e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),$t=()=>{let[a,r]=e.useState(document.hidden);return e.useEffect(()=>{let o=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),a},ht=1,Ot=class{constructor(){this.subscribe=a=>(this.subscribers.push(a),()=>{let r=this.subscribers.indexOf(a);this.subscribers.splice(r,1)}),this.publish=a=>{this.subscribers.forEach(r=>r(a))},this.addToast=a=>{this.publish(a),this.toasts=[...this.toasts,a]},this.create=a=>{var r;let{message:o,...g}=a,v=typeof(a==null?void 0:a.id)=="number"||((r=a.id)==null?void 0:r.length)>0?a.id:ht++,m=this.toasts.find(f=>f.id===v),b=a.dismissible===void 0?!0:a.dismissible;return m?this.toasts=this.toasts.map(f=>f.id===v?(this.publish({...f,...a,id:v,title:o}),{...f,...a,id:v,dismissible:b,title:o}):f):this.addToast({title:o,...g,dismissible:b,id:v}),v},this.dismiss=a=>(a||this.toasts.forEach(r=>{this.subscribers.forEach(o=>o({id:r.id,dismiss:!0}))}),this.subscribers.forEach(r=>r({id:a,dismiss:!0})),a),this.message=(a,r)=>this.create({...r,message:a}),this.error=(a,r)=>this.create({...r,message:a,type:"error"}),this.success=(a,r)=>this.create({...r,type:"success",message:a}),this.info=(a,r)=>this.create({...r,type:"info",message:a}),this.warning=(a,r)=>this.create({...r,type:"warning",message:a}),this.loading=(a,r)=>this.create({...r,type:"loading",message:a}),this.promise=(a,r)=>{if(!r)return;let o;r.loading!==void 0&&(o=this.create({...r,promise:a,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let g=a instanceof Promise?a:a(),v=o!==void 0;return g.then(async m=>{if(Vt(m)&&!m.ok){v=!1;let b=typeof r.error=="function"?await r.error(`HTTP error! status: ${m.status}`):r.error,f=typeof r.description=="function"?await r.description(`HTTP error! status: ${m.status}`):r.description;this.create({id:o,type:"error",message:b,description:f})}else if(r.success!==void 0){v=!1;let b=typeof r.success=="function"?await r.success(m):r.success,f=typeof r.description=="function"?await r.description(m):r.description;this.create({id:o,type:"success",message:b,description:f})}}).catch(async m=>{if(r.error!==void 0){v=!1;let b=typeof r.error=="function"?await r.error(m):r.error,f=typeof r.description=="function"?await r.description(m):r.description;this.create({id:o,type:"error",message:b,description:f})}}).finally(()=>{var m;v&&(this.dismiss(o),o=void 0),(m=r.finally)==null||m.call(r)}),o},this.custom=(a,r)=>{let o=(r==null?void 0:r.id)||ht++;return this.create({jsx:a(o),id:o,...r}),o},this.subscribers=[],this.toasts=[]}},y=new Ot,Ut=(a,r)=>{let o=(r==null?void 0:r.id)||ht++;return y.addToast({title:a,...r,id:o}),o},Vt=a=>a&&typeof a=="object"&&"ok"in a&&typeof a.ok=="boolean"&&"status"in a&&typeof a.status=="number",Wt=Ut,Kt=()=>y.toasts,ne=Object.assign(Wt,{success:y.success,info:y.info,warning:y.warning,error:y.error,custom:y.custom,message:y.message,promise:y.promise,dismiss:y.dismiss,loading:y.loading},{getHistory:Kt});function Ft(a,{insertAt:r}={}){if(typeof document>"u")return;let o=document.head||document.getElementsByTagName("head")[0],g=document.createElement("style");g.type="text/css",r==="top"&&o.firstChild?o.insertBefore(g,o.firstChild):o.appendChild(g),g.styleSheet?g.styleSheet.cssText=a:g.appendChild(document.createTextNode(a))}Ft(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function tt(a){return a.label!==void 0}var Xt=3,Jt="32px",qt=4e3,Qt=356,Zt=14,_t=20,Gt=200;function te(...a){return a.filter(Boolean).join(" ")}var ee=a=>{var r,o,g,v,m,b,f,S,X,J;let{invert:et,toast:t,unstyled:h,interacting:L,setHeights:k,visibleToasts:at,heights:Y,index:M,toasts:rt,expanded:$,removeToast:w,defaultRichColors:O,closeButton:q,style:Q,cancelButtonStyle:nt,actionButtonStyle:ot,className:z="",descriptionClassName:Z="",duration:U,position:st,gap:j,loadingIcon:B,expandByDefault:V,classNames:s,icons:E,closeButtonAriaLabel:it="Close toast",pauseWhenPageIsHidden:i,cn:d}=a,[u,N]=e.useState(!1),[I,p]=e.useState(!1),[lt,W]=e.useState(!1),[K,F]=e.useState(!1),[xt,dt]=e.useState(0),[Et,mt]=e.useState(0),ft=e.useRef(null),P=e.useRef(null),kt=M===0,Nt=M+1<=at,x=t.type,H=t.dismissible!==!1,Tt=t.className||"",Ct=t.descriptionClassName||"",_=e.useMemo(()=>Y.findIndex(n=>n.toastId===t.id)||0,[Y,t.id]),St=e.useMemo(()=>{var n;return(n=t.closeButton)!=null?n:q},[t.closeButton,q]),pt=e.useMemo(()=>t.duration||U||qt,[t.duration,U]),ct=e.useRef(0),A=e.useRef(0),gt=e.useRef(0),D=e.useRef(null),[vt,Bt]=st.split("-"),bt=e.useMemo(()=>Y.reduce((n,c,l)=>l>=_?n:n+c.height,0),[Y,_]),yt=$t(),Mt=t.invert||et,ut=x==="loading";A.current=e.useMemo(()=>_*j+bt,[_,bt]),e.useEffect(()=>{N(!0)},[]),e.useLayoutEffect(()=>{if(!u)return;let n=P.current,c=n.style.height;n.style.height="auto";let l=n.getBoundingClientRect().height;n.style.height=c,mt(l),k(T=>T.find(C=>C.toastId===t.id)?T.map(C=>C.toastId===t.id?{...C,height:l}:C):[{toastId:t.id,height:l,position:t.position},...T])},[u,t.title,t.description,k,t.id]);let R=e.useCallback(()=>{p(!0),dt(A.current),k(n=>n.filter(c=>c.toastId!==t.id)),setTimeout(()=>{w(t)},Gt)},[t,w,k,A]);e.useEffect(()=>{if(t.promise&&x==="loading"||t.duration===1/0||t.type==="loading")return;let n,c=pt;return $||L||i&&yt?(()=>{if(gt.current{var l;(l=t.onAutoClose)==null||l.call(t,t),R()},c)),()=>clearTimeout(n)},[$,L,V,t,pt,R,t.promise,x,i,yt]),e.useEffect(()=>{let n=P.current;if(n){let c=n.getBoundingClientRect().height;return mt(c),k(l=>[{toastId:t.id,height:c,position:t.position},...l]),()=>k(l=>l.filter(T=>T.toastId!==t.id))}},[k,t.id]),e.useEffect(()=>{t.delete&&R()},[R,t.delete]);function zt(){return E!=null&&E.loading?e.createElement("div",{className:"sonner-loader","data-visible":x==="loading"},E.loading):B?e.createElement("div",{className:"sonner-loader","data-visible":x==="loading"},B):e.createElement(Pt,{visible:x==="loading"})}return e.createElement("li",{"aria-live":t.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:P,className:d(z,Tt,s==null?void 0:s.toast,(r=t==null?void 0:t.classNames)==null?void 0:r.toast,s==null?void 0:s.default,s==null?void 0:s[x],(o=t==null?void 0:t.classNames)==null?void 0:o[x]),"data-sonner-toast":"","data-rich-colors":(g=t.richColors)!=null?g:O,"data-styled":!(t.jsx||t.unstyled||h),"data-mounted":u,"data-promise":!!t.promise,"data-removed":I,"data-visible":Nt,"data-y-position":vt,"data-x-position":Bt,"data-index":M,"data-front":kt,"data-swiping":lt,"data-dismissible":H,"data-type":x,"data-invert":Mt,"data-swipe-out":K,"data-expanded":!!($||V&&u),style:{"--index":M,"--toasts-before":M,"--z-index":rt.length-M,"--offset":`${I?xt:A.current}px`,"--initial-height":V?"auto":`${Et}px`,...Q,...t.style},onPointerDown:n=>{ut||!H||(ft.current=new Date,dt(A.current),n.target.setPointerCapture(n.pointerId),n.target.tagName!=="BUTTON"&&(W(!0),D.current={x:n.clientX,y:n.clientY}))},onPointerUp:()=>{var n,c,l,T;if(K||!H)return;D.current=null;let C=Number(((n=P.current)==null?void 0:n.style.getPropertyValue("--swipe-amount").replace("px",""))||0),G=new Date().getTime()-((c=ft.current)==null?void 0:c.getTime()),Rt=Math.abs(C)/G;if(Math.abs(C)>=_t||Rt>.11){dt(A.current),(l=t.onDismiss)==null||l.call(t,t),R(),F(!0);return}(T=P.current)==null||T.style.setProperty("--swipe-amount","0px"),W(!1)},onPointerMove:n=>{var c;if(!D.current||!H)return;let l=n.clientY-D.current.y,T=n.clientX-D.current.x,C=(vt==="top"?Math.min:Math.max)(0,l),G=n.pointerType==="touch"?10:2;Math.abs(C)>G?(c=P.current)==null||c.style.setProperty("--swipe-amount",`${l}px`):Math.abs(T)>G&&(D.current=null)}},St&&!t.jsx?e.createElement("button",{"aria-label":it,"data-disabled":ut,"data-close-button":!0,onClick:ut||!H?()=>{}:()=>{var n;R(),(n=t.onDismiss)==null||n.call(t,t)},className:d(s==null?void 0:s.closeButton,(v=t==null?void 0:t.classNames)==null?void 0:v.closeButton)},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},e.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,t.jsx||e.isValidElement(t.title)?t.jsx||t.title:e.createElement(e.Fragment,null,x||t.icon||t.promise?e.createElement("div",{"data-icon":"",className:d(s==null?void 0:s.icon,(m=t==null?void 0:t.classNames)==null?void 0:m.icon)},t.promise||t.type==="loading"&&!t.icon?t.icon||zt():null,t.type!=="loading"?t.icon||(E==null?void 0:E[x])||Yt(x):null):null,e.createElement("div",{"data-content":"",className:d(s==null?void 0:s.content,(b=t==null?void 0:t.classNames)==null?void 0:b.content)},e.createElement("div",{"data-title":"",className:d(s==null?void 0:s.title,(f=t==null?void 0:t.classNames)==null?void 0:f.title)},t.title),t.description?e.createElement("div",{"data-description":"",className:d(Z,Ct,s==null?void 0:s.description,(S=t==null?void 0:t.classNames)==null?void 0:S.description)},t.description):null),e.isValidElement(t.cancel)?t.cancel:t.cancel&&tt(t.cancel)?e.createElement("button",{"data-button":!0,"data-cancel":!0,style:t.cancelButtonStyle||nt,onClick:n=>{var c,l;tt(t.cancel)&&H&&((l=(c=t.cancel).onClick)==null||l.call(c,n),R())},className:d(s==null?void 0:s.cancelButton,(X=t==null?void 0:t.classNames)==null?void 0:X.cancelButton)},t.cancel.label):null,e.isValidElement(t.action)?t.action:t.action&&tt(t.action)?e.createElement("button",{"data-button":!0,"data-action":!0,style:t.actionButtonStyle||ot,onClick:n=>{var c,l;tt(t.action)&&(n.defaultPrevented||((l=(c=t.action).onClick)==null||l.call(c,n),R()))},className:d(s==null?void 0:s.actionButton,(J=t==null?void 0:t.classNames)==null?void 0:J.actionButton)},t.action.label):null))};function wt(){if(typeof window>"u"||typeof document>"u")return"ltr";let a=document.documentElement.getAttribute("dir");return a==="auto"||!a?window.getComputedStyle(document.documentElement).direction:a}var oe=a=>{let{invert:r,position:o="bottom-right",hotkey:g=["altKey","KeyT"],expand:v,closeButton:m,className:b,offset:f,theme:S="light",richColors:X,duration:J,style:et,visibleToasts:t=Xt,toastOptions:h,dir:L=wt(),gap:k=Zt,loadingIcon:at,icons:Y,containerAriaLabel:M="Notifications",pauseWhenPageIsHidden:rt,cn:$=te}=a,[w,O]=e.useState([]),q=e.useMemo(()=>Array.from(new Set([o].concat(w.filter(i=>i.position).map(i=>i.position)))),[w,o]),[Q,nt]=e.useState([]),[ot,z]=e.useState(!1),[Z,U]=e.useState(!1),[st,j]=e.useState(S!=="system"?S:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=e.useRef(null),V=g.join("+").replace(/Key/g,"").replace(/Digit/g,""),s=e.useRef(null),E=e.useRef(!1),it=e.useCallback(i=>{var d;(d=w.find(u=>u.id===i.id))!=null&&d.delete||y.dismiss(i.id),O(u=>u.filter(({id:N})=>N!==i.id))},[w]);return e.useEffect(()=>y.subscribe(i=>{if(i.dismiss){O(d=>d.map(u=>u.id===i.id?{...u,delete:!0}:u));return}setTimeout(()=>{It.flushSync(()=>{O(d=>{let u=d.findIndex(N=>N.id===i.id);return u!==-1?[...d.slice(0,u),{...d[u],...i},...d.slice(u+1)]:[i,...d]})})})}),[]),e.useEffect(()=>{if(S!=="system"){j(S);return}S==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?j("dark"):j("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:i})=>{j(i?"dark":"light")})},[S]),e.useEffect(()=>{w.length<=1&&z(!1)},[w]),e.useEffect(()=>{let i=d=>{var u,N;g.every(I=>d[I]||d.code===I)&&(z(!0),(u=B.current)==null||u.focus()),d.code==="Escape"&&(document.activeElement===B.current||(N=B.current)!=null&&N.contains(document.activeElement))&&z(!1)};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[g]),e.useEffect(()=>{if(B.current)return()=>{s.current&&(s.current.focus({preventScroll:!0}),s.current=null,E.current=!1)}},[B.current]),w.length?e.createElement("section",{"aria-label":`${M} ${V}`,tabIndex:-1},q.map((i,d)=>{var u;let[N,I]=i.split("-");return e.createElement("ol",{key:i,dir:L==="auto"?wt():L,tabIndex:-1,ref:B,className:b,"data-sonner-toaster":!0,"data-theme":st,"data-y-position":N,"data-x-position":I,style:{"--front-toast-height":`${((u=Q[0])==null?void 0:u.height)||0}px`,"--offset":typeof f=="number"?`${f}px`:f||Jt,"--width":`${Qt}px`,"--gap":`${k}px`,...et},onBlur:p=>{E.current&&!p.currentTarget.contains(p.relatedTarget)&&(E.current=!1,s.current&&(s.current.focus({preventScroll:!0}),s.current=null))},onFocus:p=>{p.target instanceof HTMLElement&&p.target.dataset.dismissible==="false"||E.current||(E.current=!0,s.current=p.relatedTarget)},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{Z||z(!1)},onPointerDown:p=>{p.target instanceof HTMLElement&&p.target.dataset.dismissible==="false"||U(!0)},onPointerUp:()=>U(!1)},w.filter(p=>!p.position&&d===0||p.position===i).map((p,lt)=>{var W,K;return e.createElement(ee,{key:p.id,icons:Y,index:lt,toast:p,defaultRichColors:X,duration:(W=h==null?void 0:h.duration)!=null?W:J,className:h==null?void 0:h.className,descriptionClassName:h==null?void 0:h.descriptionClassName,invert:r,visibleToasts:t,closeButton:(K=h==null?void 0:h.closeButton)!=null?K:m,interacting:Z,position:i,style:h==null?void 0:h.style,unstyled:h==null?void 0:h.unstyled,classNames:h==null?void 0:h.classNames,cancelButtonStyle:h==null?void 0:h.cancelButtonStyle,actionButtonStyle:h==null?void 0:h.actionButtonStyle,removeToast:it,toasts:w.filter(F=>F.position==p.position),heights:Q.filter(F=>F.position==p.position),setHeights:nt,expandByDefault:v,gap:k,loadingIcon:at,expanded:ot,pauseWhenPageIsHidden:rt,cn:$})}))})):null};export{ne as J,oe as T}; diff --git a/assets/sonner-CxG_nbEz.js.gz b/assets/sonner-CxG_nbEz.js.gz new file mode 100644 index 0000000..265bb65 Binary files /dev/null and b/assets/sonner-CxG_nbEz.js.gz differ diff --git a/assets/sonner-mOQquDco.js.gz b/assets/sonner-mOQquDco.js.gz deleted file mode 100644 index 97a318d..0000000 Binary files a/assets/sonner-mOQquDco.js.gz and /dev/null differ diff --git a/assets/use-callback-ref-2GXKldmC.js b/assets/use-callback-ref-DRzK4jWO.js similarity index 90% rename from assets/use-callback-ref-2GXKldmC.js rename to assets/use-callback-ref-DRzK4jWO.js index 8e88417..934ca87 100644 --- a/assets/use-callback-ref-2GXKldmC.js +++ b/assets/use-callback-ref-DRzK4jWO.js @@ -1 +1 @@ -import{r as f}from"./react-BLNIRDtH.js";function c(t,u){return typeof t=="function"?t(u):t&&(t.current=u),t}function s(t,u){var a=f.useState(function(){return{value:t,callback:u,facade:{get current(){return a.value},set current(e){var n=a.value;n!==e&&(a.value=e,a.callback(e,n))}}}})[0];return a.callback=u,a.facade}var v=typeof window<"u"?f.useLayoutEffect:f.useEffect,i=new WeakMap;function E(t,u){var a=s(null,function(e){return t.forEach(function(n){return c(n,e)})});return v(function(){var e=i.get(a);if(e){var n=new Set(e),o=new Set(t),l=a.current;n.forEach(function(r){o.has(r)||c(r,null)}),o.forEach(function(r){n.has(r)||c(r,l)})}i.set(a,t)},[t]),a}export{E as u}; +import{r as f}from"./react-DmpIMwDM.js";function c(t,u){return typeof t=="function"?t(u):t&&(t.current=u),t}function s(t,u){var a=f.useState(function(){return{value:t,callback:u,facade:{get current(){return a.value},set current(e){var n=a.value;n!==e&&(a.value=e,a.callback(e,n))}}}})[0];return a.callback=u,a.facade}var v=typeof window<"u"?f.useLayoutEffect:f.useEffect,i=new WeakMap;function E(t,u){var a=s(null,function(e){return t.forEach(function(n){return c(n,e)})});return v(function(){var e=i.get(a);if(e){var n=new Set(e),o=new Set(t),l=a.current;n.forEach(function(r){o.has(r)||c(r,null)}),o.forEach(function(r){n.has(r)||c(r,l)})}i.set(a,t)},[t]),a}export{E as u}; diff --git a/assets/use-sidecar-DDa65NPA.js b/assets/use-sidecar-D8_hMcUG.js similarity index 94% rename from assets/use-sidecar-DDa65NPA.js rename to assets/use-sidecar-D8_hMcUG.js index a745421..f43f139 100644 --- a/assets/use-sidecar-DDa65NPA.js +++ b/assets/use-sidecar-D8_hMcUG.js @@ -1 +1 @@ -import{r as h}from"./react-BLNIRDtH.js";import{e as s,d as l}from"./tslib-CuZy2iRz.js";function v(e){return e}function p(e,n){n===void 0&&(n=v);var r=[],i=!1,d={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(u){var t=n(u,i);return r.push(t),function(){r=r.filter(function(a){return a!==t})}},assignSyncMedium:function(u){for(i=!0;r.length;){var t=r;r=[],t.forEach(u)}r={push:function(a){return u(a)},filter:function(){return r}}},assignMedium:function(u){i=!0;var t=[];if(r.length){var a=r;r=[],a.forEach(u),t=r}var m=function(){var o=t;t=[],o.forEach(u)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(o){t.push(o),f()},filter:function(o){return t=t.filter(o),r}}}};return d}function S(e){e===void 0&&(e={});var n=p(null);return n.options=s({async:!0,ssr:!1},e),n}var c=function(e){var n=e.sideCar,r=l(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw new Error("Sidecar medium not found");return h.createElement(i,s({},r))};c.isSideCarExport=!0;function C(e,n){return e.useMedium(n),c}export{S as c,C as e}; +import{r as h}from"./react-DmpIMwDM.js";import{e as s,d as l}from"./tslib-CuZy2iRz.js";function v(e){return e}function p(e,n){n===void 0&&(n=v);var r=[],i=!1,d={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(u){var t=n(u,i);return r.push(t),function(){r=r.filter(function(a){return a!==t})}},assignSyncMedium:function(u){for(i=!0;r.length;){var t=r;r=[],t.forEach(u)}r={push:function(a){return u(a)},filter:function(){return r}}},assignMedium:function(u){i=!0;var t=[];if(r.length){var a=r;r=[],a.forEach(u),t=r}var m=function(){var o=t;t=[],o.forEach(u)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(o){t.push(o),f()},filter:function(o){return t=t.filter(o),r}}}};return d}function S(e){e===void 0&&(e={});var n=p(null);return n.options=s({async:!0,ssr:!1},e),n}var c=function(e){var n=e.sideCar,r=l(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw new Error("Sidecar medium not found");return h.createElement(i,s({},r))};c.isSideCarExport=!0;function C(e,n){return e.useMedium(n),c}export{S as c,C as e}; diff --git a/assets/use-sidecar-D8_hMcUG.js.gz b/assets/use-sidecar-D8_hMcUG.js.gz new file mode 100644 index 0000000..c1059f1 Binary files /dev/null and b/assets/use-sidecar-D8_hMcUG.js.gz differ diff --git a/assets/use-sidecar-DDa65NPA.js.gz b/assets/use-sidecar-DDa65NPA.js.gz deleted file mode 100644 index 644c869..0000000 Binary files a/assets/use-sidecar-DDa65NPA.js.gz and /dev/null differ diff --git a/assets/use-sync-external-store-Btn3o0C-.js.gz b/assets/use-sync-external-store-Btn3o0C-.js.gz deleted file mode 100644 index 6aa18da..0000000 Binary files a/assets/use-sync-external-store-Btn3o0C-.js.gz and /dev/null differ diff --git a/assets/use-sync-external-store-Btn3o0C-.js b/assets/use-sync-external-store-ByYeed7R.js similarity index 97% rename from assets/use-sync-external-store-Btn3o0C-.js rename to assets/use-sync-external-store-ByYeed7R.js index bcf6a95..1b4a407 100644 --- a/assets/use-sync-external-store-Btn3o0C-.js +++ b/assets/use-sync-external-store-ByYeed7R.js @@ -1,4 +1,4 @@ -import{g as V}from"./attr-accept-BWI1aNlo.js";import{r as E}from"./react-BLNIRDtH.js";var y={exports:{}},w={},$={exports:{}},j={};/** +import{g as V}from"./attr-accept-BWI1aNlo.js";import{r as E}from"./react-DmpIMwDM.js";var y={exports:{}},w={},$={exports:{}},j={};/** * @license React * use-sync-external-store-shim.production.min.js * diff --git a/assets/use-sync-external-store-ByYeed7R.js.gz b/assets/use-sync-external-store-ByYeed7R.js.gz new file mode 100644 index 0000000..d4a605f Binary files /dev/null and b/assets/use-sync-external-store-ByYeed7R.js.gz differ diff --git a/assets/vaul-DvR9Gt1n.js.gz b/assets/vaul-DvR9Gt1n.js.gz deleted file mode 100644 index 92928aa..0000000 Binary files a/assets/vaul-DvR9Gt1n.js.gz and /dev/null differ diff --git a/assets/vaul-DvR9Gt1n.js b/assets/vaul-OrZLygqJ.js similarity index 99% rename from assets/vaul-DvR9Gt1n.js rename to assets/vaul-OrZLygqJ.js index 819b014..31f8244 100644 --- a/assets/vaul-DvR9Gt1n.js +++ b/assets/vaul-OrZLygqJ.js @@ -1 +1 @@ -import{O as ct,C as ft,T as dt,P as mt,a as ht,b as wt,D as gt,R as pt}from"./@radix-ui-B2FzUeFR.js";import{a as r,r as Se}from"./react-BLNIRDtH.js";function vt(e){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css",n.appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}const _e=r.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,handleOnly:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{},direction:"bottom"}),de=()=>{const e=r.useContext(_e);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};vt("[vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1)}[vaul-drawer][vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[vaul-drawer][vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[vaul-drawer][vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[vaul-drawer][vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}.vaul-dragging .vaul-scrollable [vault-drawer-direction=top]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=bottom]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=left]{overflow-x:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=right]{overflow-x:hidden!important}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]::after{content:'';position:absolute;background:inherit;background-color:inherit}[vaul-drawer][vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[vaul-drawer][vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[vaul-handle]{display:block;position:relative;opacity:.8;margin-left:auto;margin-right:auto;height:5px;width:56px;border-radius:1rem;touch-action:pan-y;cursor:grab}[vaul-handle]:active,[vaul-handle]:hover{opacity:1}[vaul-handle]:active{cursor:grabbing}[vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible=false]){opacity:1}@media (hover:hover) and (pointer:fine){[vaul-drawer]{user-select:none}}@media (pointer:fine){[vaul-handle-hitarea]:{width:100%;height:100%}}");const bt=typeof window<"u"?Se.useLayoutEffect:Se.useEffect;function De(...e){return(...n)=>{for(let t of e)typeof t=="function"&&t(...n)}}function yt(){return Re(/^Mac/)}function Et(){return Re(/^iPhone/)}function St(){return Re(/^iPad/)||yt()&&navigator.maxTouchPoints>1}function Ve(){return Et()||St()}function Re(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const be=typeof document<"u"&&window.visualViewport;function He(e){let n=window.getComputedStyle(e);return/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY)}function We(e){for(He(e)&&(e=e.parentElement);e&&!He(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const Dt=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let se=0,ye;function Tt(e={}){let{isDisabled:n}=e;bt(()=>{if(!n)return se++,se===1&&(Ve()?ye=$t():ye=Rt()),()=>{se--,se===0&&ye()}},[n])}function Rt(){return De(ke(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`))}function $t(){let e,n=0,t=g=>{e=We(g.target),!(e===document.documentElement&&e===document.body)&&(n=g.changedTouches[0].pageY)},l=g=>{if(!e||e===document.documentElement||e===document.body){g.preventDefault();return}let d=g.changedTouches[0].pageY,c=e.scrollTop,N=e.scrollHeight-e.clientHeight;N!==0&&((c<=0&&d>n||c>=N&&d{let d=g.target;Te(d)&&d!==document.activeElement&&(g.preventDefault(),d.style.transform="translateY(-2000px)",d.focus(),requestAnimationFrame(()=>{d.style.transform=""}))},a=g=>{let d=g.target;Te(d)&&(d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",be&&(be.height{Pe(d)}):be.addEventListener("resize",()=>Pe(d),{once:!0}))}))},s=()=>{window.scrollTo(0,0)},h=window.pageXOffset,y=window.pageYOffset,T=De(ke(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let M=De(ne(document,"touchstart",t,{passive:!1,capture:!0}),ne(document,"touchmove",l,{passive:!1,capture:!0}),ne(document,"touchend",i,{passive:!1,capture:!0}),ne(document,"focus",a,!0),ne(window,"scroll",s));return()=>{T(),M(),window.scrollTo(h,y)}}function ke(e,n,t){let l=e.style[n];return e.style[n]=t,()=>{e.style[n]=l}}function ne(e,n,t,l){return e.addEventListener(n,t,l),()=>{e.removeEventListener(n,t,l)}}function Pe(e){let n=document.scrollingElement||document.documentElement;for(;e&&e!==n;){let t=We(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let l=t.getBoundingClientRect().top,i=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom;const s=t.getBoundingClientRect().bottom;a>s&&(t.scrollTop+=i-l)}e=t.parentElement}}function Te(e){return e instanceof HTMLInputElement&&!Dt.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function xt(e,n){typeof e=="function"?e(n):e!=null&&(e.current=n)}function Ot(...e){return n=>e.forEach(t=>xt(t,n))}function ze(...e){return Se.useCallback(Ot(...e),e)}let re=null;function Ct({isOpen:e,modal:n,nested:t,hasBeenOpened:l,preventScrollRestoration:i,noBodyStyles:a}){const[s,h]=r.useState(()=>typeof window<"u"?window.location.href:""),y=r.useRef(0),T=r.useCallback(()=>{if(re===null&&e&&!a){re={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:g,innerHeight:d}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-y.current}px`,left:`${-g}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const c=d-window.innerHeight;c&&y.current>=d&&(document.body.style.top=`${-(y.current+c)}px`)}),300)}},[e]),M=r.useCallback(()=>{if(re!==null&&!a){const g=-parseInt(document.body.style.top,10),d=-parseInt(document.body.style.left,10);Object.assign(document.body.style,re),window.requestAnimationFrame(()=>{if(i&&s!==window.location.href){h(window.location.href);return}window.scrollTo(d,g)}),re=null}},[s]);return r.useEffect(()=>{function g(){y.current=window.scrollY}return g(),window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}},[]),r.useEffect(()=>{t||!l||(e?(!window.matchMedia("(display-mode: standalone)").matches&&T(),n||window.setTimeout(()=>{M()},500)):M())},[e,l,s,n,t,T,M]),{restorePositionSetting:M}}const je=new WeakMap;function S(e,n,t=!1){if(!e||!(e instanceof HTMLElement))return;let l={};Object.entries(n).forEach(([i,a])=>{if(i.startsWith("--")){e.style.setProperty(i,a);return}l[i]=e.style[i],e.style[i]=a}),!t&&je.set(e,l)}function ce(e,n){if(!e||!(e instanceof HTMLElement))return;let t=je.get(e);t&&(n?e.style[n]=t[n]:Object.entries(t).forEach(([l,i])=>{e.style[l]=i}))}const A=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function fe(e,n){if(!e)return null;const t=window.getComputedStyle(e),l=t.transform||t.webkitTransform||t.mozTransform;let i=l.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(", ")[A(n)?13:12]):(i=l.match(/^matrix\((.+)\)$/),i?parseFloat(i[1].split(", ")[A(n)?5:4]):null)}function At(e){return 8*(Math.log(e+1)-2)}const E={DURATION:.5,EASE:[.32,.72,0,1]},Be=.4;function Ye(e){const n=r.useRef(e);return r.useEffect(()=>{n.current=e}),r.useMemo(()=>(...t)=>n.current==null?void 0:n.current.call(n,...t),[])}function Mt({defaultProp:e,onChange:n}){const t=r.useState(e),[l]=t,i=r.useRef(l),a=Ye(n);return r.useEffect(()=>{i.current!==l&&(a(l),i.current=l)},[l,i,a]),t}function It({prop:e,defaultProp:n,onChange:t=()=>{}}){const[l,i]=Mt({defaultProp:n,onChange:t}),a=e!==void 0,s=a?e:l,h=Ye(t),y=r.useCallback(T=>{if(a){const g=typeof T=="function"?T(e):T;g!==e&&h(g)}else i(T)},[a,e,i,h]);return[s,y]}function Nt({activeSnapPointProp:e,setActiveSnapPointProp:n,snapPoints:t,drawerRef:l,overlayRef:i,fadeFromIndex:a,onSnapPointChange:s,direction:h="bottom"}){const[y,T]=It({prop:e,defaultProp:t==null?void 0:t[0],onChange:n}),M=r.useMemo(()=>y===(t==null?void 0:t[t.length-1])||null,[t,y]),g=t&&t.length>0&&(a||a===0)&&!Number.isNaN(a)&&t[a]===y||!t,d=r.useMemo(()=>t==null?void 0:t.findIndex(v=>v===y),[t,y]),c=r.useMemo(()=>{var v;return(v=t==null?void 0:t.map(o=>{const b=typeof window<"u",x=typeof o=="string";let O=0;if(x&&(O=parseInt(o,10)),A(h)){const f=x?O:b?o*window.innerHeight:0;return b?h==="bottom"?window.innerHeight-f:-window.innerHeight+f:f}const R=x?O:b?o*window.innerWidth:0;return b?h==="right"?window.innerWidth-R:-window.innerWidth+R:R}))!=null?v:[]},[t]),N=r.useMemo(()=>d!==null?c==null?void 0:c[d]:null,[c,d]),I=r.useCallback(v=>{var o;const b=(o=c==null?void 0:c.findIndex(x=>x===v))!=null?o:null;s(b),S(l.current,{transition:`transform ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`,transform:A(h)?`translate3d(0, ${v}px, 0)`:`translate3d(${v}px, 0, 0)`}),c&&b!==c.length-1&&b!==a?S(i.current,{transition:`opacity ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`,opacity:"0"}):S(i.current,{transition:`opacity ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`,opacity:"1"}),T(b!==null?t==null?void 0:t[b]:null)},[l.current,t,c,a,i,T]);r.useEffect(()=>{if(y||e){var v;const o=(v=t==null?void 0:t.findIndex(b=>b===e||b===y))!=null?v:-1;c&&o!==-1&&typeof c[o]=="number"&&I(c[o])}},[y,e,t,c,I]);function B({draggedDistance:v,closeDrawer:o,velocity:b,dismissible:x}){if(a===void 0)return;const O=h==="bottom"||h==="right"?(N??0)-v:(N??0)+v,R=d===a-1,f=d===0,H=v>0;if(R&&S(i.current,{transition:`opacity ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`}),b>2&&!H){x?o():I(c[0]);return}if(b>2&&H&&c&&t){I(c[t.length-1]);return}const V=c==null?void 0:c.reduce((P,k)=>typeof P!="number"||typeof k!="number"?P:Math.abs(k-O)Be&&Math.abs(v)0&&M){I(c[t.length-1]);return}if(f&&P<0&&x&&o(),d===null)return;I(c[d+P]);return}I(V)}function _({draggedDistance:v}){if(N===null)return;const o=h==="bottom"||h==="right"?N-v:N+v;(h==="bottom"||h==="right")&&oc[c.length-1]||S(l.current,{transform:A(h)?`translate3d(0, ${o}px, 0)`:`translate3d(${o}px, 0, 0)`})}function z(v,o){if(!t||typeof d!="number"||!c||a===void 0)return null;const b=d===a-1;if(d>=a&&o)return 0;if(b&&!o)return 1;if(!g&&!b)return null;const O=b?d+1:d-1,R=b?c[O]-c[O-1]:c[O+1]-c[O],f=v/Math.abs(R);return b?1-f:f}return{isLastSnapPoint:M,activeSnapPoint:y,shouldFade:g,getPercentageDragged:z,setActiveSnapPoint:T,activeSnapPointIndex:d,onRelease:B,onDrag:_,snapPointsOffset:c}}const Ht=.25,Pt=100,Le=8,q=16,Ue=26,Ee="vaul-dragging";function Fe({open:e,onOpenChange:n,children:t,shouldScaleBackground:l,onDrag:i,onRelease:a,snapPoints:s,nested:h=!1,setBackgroundColorOnScale:y=!0,closeThreshold:T=Ht,scrollLockTimeout:M=Pt,dismissible:g=!0,handleOnly:d=!1,fadeFromIndex:c=s&&s.length-1,activeSnapPoint:N,setActiveSnapPoint:I,fixed:B,modal:_=!0,onClose:z,noBodyStyles:v,direction:o="bottom",preventScrollRestoration:b=!0,disablePreventScroll:x=!1}){var O;const[R=!1,f]=r.useState(!1),[H,V]=r.useState(!1),[L,P]=r.useState(!1),[k,oe]=r.useState(!1),[Y,me]=r.useState(!1),[Ke,$e]=r.useState(!1),F=r.useRef(null),ie=r.useRef(null),he=r.useRef(null),we=r.useRef(null),Q=r.useRef(null),Z=r.useRef(!1),ge=r.useRef(null),pe=r.useRef(0),G=r.useRef(!1),xe=r.useRef(0),m=r.useRef(null),Oe=r.useRef(((O=m.current)==null?void 0:O.getBoundingClientRect().height)||0),ve=r.useRef(0),Je=r.useCallback(u=>{s&&u===te.length-1&&(ie.current=new Date)},[]),{activeSnapPoint:Qe,activeSnapPointIndex:ee,setActiveSnapPoint:Ce,onRelease:Ze,snapPointsOffset:te,onDrag:et,shouldFade:Ae,getPercentageDragged:tt}=Nt({snapPoints:s,activeSnapPointProp:N,setActiveSnapPointProp:I,drawerRef:m,fadeFromIndex:c,overlayRef:F,onSnapPointChange:Je,direction:o});Tt({isDisabled:!R||Y||!_||Ke||!H||x});const{restorePositionSetting:nt}=Ct({isOpen:R,modal:_,nested:h,hasBeenOpened:H,preventScrollRestoration:b,noBodyStyles:v});function K(){return(window.innerWidth-Ue)/window.innerWidth}function rt(u){var w;!g&&!s||m.current&&!m.current.contains(u.target)||(Oe.current=((w=m.current)==null?void 0:w.getBoundingClientRect().height)||0,me(!0),he.current=new Date,Ve()&&window.addEventListener("touchend",()=>Z.current=!1,{once:!0}),u.target.setPointerCapture(u.pointerId),pe.current=A(o)?u.clientY:u.clientX)}function Me(u,w){var D;let p=u;const $=(D=window.getSelection())==null?void 0:D.toString(),C=m.current?fe(m.current,o):null,U=new Date;if(p.hasAttribute("data-vaul-no-drag")||p.closest("[data-vaul-no-drag]"))return!1;if(o==="right"||o==="left")return!0;if(ie.current&&U.getTime()-ie.current.getTime()<500)return!1;if(C!==null&&(o==="bottom"?C>0:C<0))return!0;if($&&$.length>0)return!1;if(Q.current&&U.getTime()-Q.current.getTime()p.clientHeight){if(p.scrollTop!==0)return Q.current=new Date,!1;if(p.getAttribute("role")==="dialog")return!0}p=p.parentNode}return!0}function ot(u){if(m.current&&Y){const w=o==="bottom"||o==="right"?1:-1,D=(pe.current-(A(o)?u.clientY:u.clientX))*w,p=D>0,$=s&&!g&&!p;if($&&ee===0)return;const C=Math.abs(D),U=document.querySelector("[vaul-drawer-wrapper]");let W=C/Oe.current;const j=tt(C,p);if(j!==null&&(W=j),$&&W>=1||!Z.current&&!Me(u.target,p))return;if(m.current.classList.add(Ee),Z.current=!0,S(m.current,{transition:"none"}),S(F.current,{transition:"none"}),s&&et({draggedDistance:D}),p&&!s){const X=At(D),ue=Math.min(X*-1,0)*w;S(m.current,{transform:A(o)?`translate3d(0, ${ue}px, 0)`:`translate3d(${ue}px, 0, 0)`});return}const le=1-W;if((Ae||c&&ee===c-1)&&(i==null||i(u,W),S(F.current,{opacity:`${le}`,transition:"none"},!0)),U&&F.current&&l){const X=Math.min(K()+W*(1-K()),1),ue=8-W*8,Ne=Math.max(0,14-W*14);S(U,{borderRadius:`${ue}px`,transform:A(o)?`scale(${X}) translate3d(0, ${Ne}px, 0)`:`scale(${X}) translate3d(${Ne}px, 0, 0)`,transition:"none"},!0)}if(!s){const X=C*w;S(m.current,{transform:A(o)?`translate3d(0, ${X}px, 0)`:`translate3d(${X}px, 0, 0)`})}}}r.useEffect(()=>()=>{ae(!1),nt()},[]),r.useEffect(()=>{var u;function w(){if(!m.current)return;const D=document.activeElement;if(Te(D)||G.current){var p;const $=((p=window.visualViewport)==null?void 0:p.height)||0;let C=window.innerHeight-$;const U=m.current.getBoundingClientRect().height||0;ve.current||(ve.current=U);const W=m.current.getBoundingClientRect().top;if(Math.abs(xe.current-C)>60&&(G.current=!G.current),s&&s.length>0&&te&&ee){const j=te[ee]||0;C+=j}if(xe.current=C,U>$||G.current){const j=m.current.getBoundingClientRect().height;let le=j;j>$&&(le=$-Ue),B?m.current.style.height=`${j-Math.max(C,0)}px`:m.current.style.height=`${Math.max(le,$-W)}px`}else m.current.style.height=`${ve.current}px`;s&&s.length>0&&!G.current?m.current.style.bottom="0px":m.current.style.bottom=`${Math.max(C,0)}px`}}return(u=window.visualViewport)==null||u.addEventListener("resize",w),()=>{var D;return(D=window.visualViewport)==null?void 0:D.removeEventListener("resize",w)}},[ee,s,te]);function J(){m.current&&(it(),z==null||z(),S(m.current,{transform:A(o)?`translate3d(0, ${o==="bottom"?"100%":"-100%"}, 0)`:`translate3d(${o==="right"?"100%":"-100%"}, 0, 0)`,transition:`transform ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`}),S(F.current,{opacity:"0",transition:`opacity ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`}),ae(!1),setTimeout(()=>{P(!1),f(!1)},300),setTimeout(()=>{s&&Ce(s[0])},E.DURATION*1e3))}r.useEffect(()=>{if(!R&&l){const u=setTimeout(()=>{ce(document.body)},200);return()=>clearTimeout(u)}},[R,l]),r.useLayoutEffect(()=>{e?(f(!0),V(!0)):J()},[e]),r.useEffect(()=>{k&&(n==null||n(R))},[R]),r.useEffect(()=>{oe(!0)},[]);function Ie(){if(!m.current)return;const u=document.querySelector("[vaul-drawer-wrapper]"),w=fe(m.current,o);S(m.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`}),S(F.current,{transition:`opacity ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`,opacity:"1"}),l&&w&&w>0&&R&&S(u,{borderRadius:`${Le}px`,overflow:"hidden",...A(o)?{transform:`scale(${K()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${K()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${E.DURATION}s`,transitionTimingFunction:`cubic-bezier(${E.EASE.join(",")})`},!0)}function it(){!Y||!m.current||(m.current.classList.remove(Ee),Z.current=!1,me(!1),we.current=new Date)}function at(u){if(!Y||!m.current)return;m.current.classList.remove(Ee),Z.current=!1,me(!1),we.current=new Date;const w=fe(m.current,o);if(!Me(u.target,!1)||!w||Number.isNaN(w)||he.current===null)return;const D=we.current.getTime()-he.current.getTime(),p=pe.current-(A(o)?u.clientY:u.clientX),$=Math.abs(p)/D;if($>.05&&($e(!0),setTimeout(()=>{$e(!1)},200)),s){Ze({draggedDistance:p*(o==="bottom"||o==="right"?1:-1),closeDrawer:J,velocity:$,dismissible:g}),a==null||a(u,!0);return}if(o==="bottom"||o==="right"?p>0:p<0){Ie(),a==null||a(u,!0);return}if($>Be){J(),a==null||a(u,!1);return}var C;const U=Math.min((C=m.current.getBoundingClientRect().height)!=null?C:0,window.innerHeight);if(w>=U*T){J(),a==null||a(u,!1);return}a==null||a(u,!0),Ie()}r.useEffect(()=>{R&&(S(document.documentElement,{scrollBehavior:"auto"}),ie.current=new Date,ae(!0))},[R]),r.useEffect(()=>{if(m.current&&L){var u;const w=m==null||(u=m.current)==null?void 0:u.querySelectorAll("*");w==null||w.forEach(D=>{const p=D;(p.scrollHeight>p.clientHeight||p.scrollWidth>p.clientWidth)&&p.classList.add("vaul-scrollable")})}},[L]);function ae(u){const w=document.querySelector("[vaul-drawer-wrapper]");!w||!l||(u?(y&&(v||(S(document.body,{background:document.body.style.backgroundColor||document.body.style.background}),S(document.body,{background:"black"},!0))),S(w,{borderRadius:`${Le}px`,overflow:"hidden",...A(o)?{transform:`scale(${K()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${K()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${E.DURATION}s`,transitionTimingFunction:`cubic-bezier(${E.EASE.join(",")})`})):(ce(w,"overflow"),ce(w,"transform"),ce(w,"borderRadius"),S(w,{transitionProperty:"transform, border-radius",transitionDuration:`${E.DURATION}s`,transitionTimingFunction:`cubic-bezier(${E.EASE.join(",")})`})))}function lt(u){const w=u?(window.innerWidth-q)/window.innerWidth:1,D=u?-q:0;ge.current&&window.clearTimeout(ge.current),S(m.current,{transition:`transform ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`,transform:`scale(${w}) translate3d(0, ${D}px, 0)`}),!u&&m.current&&(ge.current=setTimeout(()=>{const p=fe(m.current,o);S(m.current,{transition:"none",transform:A(o)?`translate3d(0, ${p}px, 0)`:`translate3d(${p}px, 0, 0)`})},500))}function ut(u,w){if(w<0)return;const D=A(o)?window.innerHeight:window.innerWidth,p=(D-q)/D,$=p+w*(1-p),C=-q+w*q;S(m.current,{transform:A(o)?`scale(${$}) translate3d(0, ${C}px, 0)`:`scale(${$}) translate3d(${C}px, 0, 0)`,transition:"none"})}function st(u,w){const D=A(o)?window.innerHeight:window.innerWidth,p=w?(D-q)/D:1,$=w?-q:0;w&&S(m.current,{transition:`transform ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`,transform:A(o)?`scale(${p}) translate3d(0, ${$}px, 0)`:`scale(${p}) translate3d(${$}px, 0, 0)`})}return r.createElement(pt,{modal:_,onOpenChange:u=>{if(e!==void 0){n==null||n(u);return}u?(V(!0),f(u)):J()},open:R},r.createElement(_e.Provider,{value:{visible:L,activeSnapPoint:Qe,snapPoints:s,setActiveSnapPoint:Ce,drawerRef:m,overlayRef:F,scaleBackground:ae,onOpenChange:n,onPress:rt,setVisible:P,onRelease:at,onDrag:ot,dismissible:g,handleOnly:d,isOpen:R,isDragging:Y,shouldFade:Ae,closeDrawer:J,onNestedDrag:ut,onNestedOpenChange:lt,onNestedRelease:st,keyboardIsOpen:G,openProp:e,modal:_,snapPointsOffset:te,direction:o}},t))}const Lt=250,Ut=120,Xe=r.forwardRef(function({preventCycle:e=!1,children:n,...t},l){const{visible:i,closeDrawer:a,isDragging:s,snapPoints:h,activeSnapPoint:y,setActiveSnapPoint:T,dismissible:M,handleOnly:g,onPress:d,onDrag:c}=de(),N=r.useRef(null),I=r.useRef(!1);function B(){if(I.current){v();return}window.setTimeout(()=>{_()},Ut)}function _(){if(s||e||I.current){v();return}if(v(),(!h||h.length===0)&&M){a();return}if(y===h[h.length-1]&&M){a();return}const b=h.findIndex(O=>O===y);if(b===-1)return;const x=h[b+1];T(x)}function z(){N.current=window.setTimeout(()=>{I.current=!0},Lt)}function v(){window.clearTimeout(N.current),I.current=!1}return r.createElement("div",{onClick:B,onDoubleClick:()=>{I.current=!0,a()},onPointerCancel:v,onPointerDown:o=>{g&&d(o),z()},onPointerMove:o=>{g&&c(o)},ref:l,"vaul-drawer-visible":i?"true":"false","vaul-handle":"","aria-hidden":"true",...t},r.createElement("span",{"vaul-handle-hitarea":"","aria-hidden":"true"},n))});Xe.displayName="Drawer.Handle";const qe=r.forwardRef(function({children:e,...n},t){const{overlayRef:l,snapPoints:i,onRelease:a,shouldFade:s,isOpen:h,visible:y}=de(),T=ze(t,l),M=i&&i.length>0;return r.createElement(ct,{onMouseUp:a,ref:T,"vaul-drawer-visible":y?"true":"false","vaul-overlay":"","vaul-snap-points":h&&M?"true":"false","vaul-snap-points-overlay":h&&s?"true":"false",...n})});qe.displayName="Drawer.Overlay";const Ge=r.forwardRef(function({onOpenAutoFocus:e,onPointerDownOutside:n,onAnimationEnd:t,style:l,...i},a){const{drawerRef:s,onPress:h,onRelease:y,onDrag:T,dismissible:M,keyboardIsOpen:g,snapPointsOffset:d,visible:c,closeDrawer:N,modal:I,openProp:B,onOpenChange:_,setVisible:z,handleOnly:v,direction:o}=de(),b=ze(a,s),x=r.useRef(null),O=r.useRef(!1),R=(f,H,V=0)=>{if(O.current)return!0;const L=Math.abs(f.y),P=Math.abs(f.x),k=P>L,oe=["bottom","right"].includes(H)?1:-1;if(H==="left"||H==="right"){if(!(f.x*oe<0)&&P>=0&&P<=V)return k}else if(!(f.y*oe<0)&&L>=0&&L<=V)return!k;return O.current=!0,!0};return r.useEffect(()=>{z(!0)},[]),r.createElement(ft,{"vaul-drawer":"","vaul-drawer-direction":o,"vaul-drawer-visible":c?"true":"false",...i,ref:b,style:d&&d.length>0?{"--snap-point-height":`${d[0]}px`,...l}:l,onOpenAutoFocus:f=>{if(e)e(f);else{var H;f.preventDefault(),(H=s.current)==null||H.focus()}},onPointerDown:f=>{v||(i.onPointerDown==null||i.onPointerDown.call(i,f),x.current={x:f.clientX,y:f.clientY},h(f))},onPointerDownOutside:f=>{if(n==null||n(f),!I||f.defaultPrevented){f.preventDefault();return}g.current&&(g.current=!1),f.preventDefault(),_==null||_(!1),!(!M||B!==void 0)&&N()},onFocusOutside:f=>{if(!I){f.preventDefault();return}},onEscapeKeyDown:f=>{if(!I){f.preventDefault();return}},onPointerMove:f=>{if(v||(i.onPointerMove==null||i.onPointerMove.call(i,f),!x.current))return;const H=f.clientY-x.current.y,V=f.clientX-x.current.x,L=f.pointerType==="touch"?10:2;R({x:V,y:H},o,L)?T(f):(Math.abs(V)>L||Math.abs(H)>L)&&(x.current=null)},onPointerUp:f=>{i.onPointerUp==null||i.onPointerUp.call(i,f),x.current=null,O.current=!1,y(f)}})});Ge.displayName="Drawer.Content";function _t({onDrag:e,onOpenChange:n,...t}){const{onNestedDrag:l,onNestedOpenChange:i,onNestedRelease:a}=de();if(!l)throw new Error("Drawer.NestedRoot must be placed in another drawer");return r.createElement(Fe,{nested:!0,onClose:()=>{i(!1)},onDrag:(s,h)=>{l(s,h),e==null||e(s,h)},onOpenChange:s=>{s&&i(s),n==null||n(s)},onRelease:a,...t})}const kt={Root:Fe,NestedRoot:_t,Content:Ge,Handle:Xe,Overlay:qe,Trigger:dt,Portal:mt,Close:ht,Title:wt,Description:gt};export{kt as D}; +import{O as ct,C as ft,T as dt,P as mt,a as ht,b as wt,D as gt,R as pt}from"./@radix-ui-BQVY8FyZ.js";import{R as r,r as Se}from"./react-DmpIMwDM.js";function vt(e){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css",n.appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}const _e=r.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,handleOnly:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{},direction:"bottom"}),de=()=>{const e=r.useContext(_e);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};vt("[vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1)}[vaul-drawer][vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[vaul-drawer][vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[vaul-drawer][vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[vaul-drawer][vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}.vaul-dragging .vaul-scrollable [vault-drawer-direction=top]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=bottom]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=left]{overflow-x:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=right]{overflow-x:hidden!important}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]::after{content:'';position:absolute;background:inherit;background-color:inherit}[vaul-drawer][vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[vaul-drawer][vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[vaul-handle]{display:block;position:relative;opacity:.8;margin-left:auto;margin-right:auto;height:5px;width:56px;border-radius:1rem;touch-action:pan-y;cursor:grab}[vaul-handle]:active,[vaul-handle]:hover{opacity:1}[vaul-handle]:active{cursor:grabbing}[vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible=false]){opacity:1}@media (hover:hover) and (pointer:fine){[vaul-drawer]{user-select:none}}@media (pointer:fine){[vaul-handle-hitarea]:{width:100%;height:100%}}");const bt=typeof window<"u"?Se.useLayoutEffect:Se.useEffect;function De(...e){return(...n)=>{for(let t of e)typeof t=="function"&&t(...n)}}function yt(){return Re(/^Mac/)}function Et(){return Re(/^iPhone/)}function St(){return Re(/^iPad/)||yt()&&navigator.maxTouchPoints>1}function Ve(){return Et()||St()}function Re(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const be=typeof document<"u"&&window.visualViewport;function He(e){let n=window.getComputedStyle(e);return/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY)}function We(e){for(He(e)&&(e=e.parentElement);e&&!He(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const Dt=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let se=0,ye;function Tt(e={}){let{isDisabled:n}=e;bt(()=>{if(!n)return se++,se===1&&(Ve()?ye=$t():ye=Rt()),()=>{se--,se===0&&ye()}},[n])}function Rt(){return De(ke(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`))}function $t(){let e,n=0,t=g=>{e=We(g.target),!(e===document.documentElement&&e===document.body)&&(n=g.changedTouches[0].pageY)},l=g=>{if(!e||e===document.documentElement||e===document.body){g.preventDefault();return}let d=g.changedTouches[0].pageY,c=e.scrollTop,N=e.scrollHeight-e.clientHeight;N!==0&&((c<=0&&d>n||c>=N&&d{let d=g.target;Te(d)&&d!==document.activeElement&&(g.preventDefault(),d.style.transform="translateY(-2000px)",d.focus(),requestAnimationFrame(()=>{d.style.transform=""}))},a=g=>{let d=g.target;Te(d)&&(d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",be&&(be.height{Pe(d)}):be.addEventListener("resize",()=>Pe(d),{once:!0}))}))},s=()=>{window.scrollTo(0,0)},h=window.pageXOffset,y=window.pageYOffset,T=De(ke(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let M=De(ne(document,"touchstart",t,{passive:!1,capture:!0}),ne(document,"touchmove",l,{passive:!1,capture:!0}),ne(document,"touchend",i,{passive:!1,capture:!0}),ne(document,"focus",a,!0),ne(window,"scroll",s));return()=>{T(),M(),window.scrollTo(h,y)}}function ke(e,n,t){let l=e.style[n];return e.style[n]=t,()=>{e.style[n]=l}}function ne(e,n,t,l){return e.addEventListener(n,t,l),()=>{e.removeEventListener(n,t,l)}}function Pe(e){let n=document.scrollingElement||document.documentElement;for(;e&&e!==n;){let t=We(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let l=t.getBoundingClientRect().top,i=e.getBoundingClientRect().top,a=e.getBoundingClientRect().bottom;const s=t.getBoundingClientRect().bottom;a>s&&(t.scrollTop+=i-l)}e=t.parentElement}}function Te(e){return e instanceof HTMLInputElement&&!Dt.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function xt(e,n){typeof e=="function"?e(n):e!=null&&(e.current=n)}function Ot(...e){return n=>e.forEach(t=>xt(t,n))}function ze(...e){return Se.useCallback(Ot(...e),e)}let re=null;function Ct({isOpen:e,modal:n,nested:t,hasBeenOpened:l,preventScrollRestoration:i,noBodyStyles:a}){const[s,h]=r.useState(()=>typeof window<"u"?window.location.href:""),y=r.useRef(0),T=r.useCallback(()=>{if(re===null&&e&&!a){re={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:g,innerHeight:d}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-y.current}px`,left:`${-g}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const c=d-window.innerHeight;c&&y.current>=d&&(document.body.style.top=`${-(y.current+c)}px`)}),300)}},[e]),M=r.useCallback(()=>{if(re!==null&&!a){const g=-parseInt(document.body.style.top,10),d=-parseInt(document.body.style.left,10);Object.assign(document.body.style,re),window.requestAnimationFrame(()=>{if(i&&s!==window.location.href){h(window.location.href);return}window.scrollTo(d,g)}),re=null}},[s]);return r.useEffect(()=>{function g(){y.current=window.scrollY}return g(),window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}},[]),r.useEffect(()=>{t||!l||(e?(!window.matchMedia("(display-mode: standalone)").matches&&T(),n||window.setTimeout(()=>{M()},500)):M())},[e,l,s,n,t,T,M]),{restorePositionSetting:M}}const je=new WeakMap;function S(e,n,t=!1){if(!e||!(e instanceof HTMLElement))return;let l={};Object.entries(n).forEach(([i,a])=>{if(i.startsWith("--")){e.style.setProperty(i,a);return}l[i]=e.style[i],e.style[i]=a}),!t&&je.set(e,l)}function ce(e,n){if(!e||!(e instanceof HTMLElement))return;let t=je.get(e);t&&(n?e.style[n]=t[n]:Object.entries(t).forEach(([l,i])=>{e.style[l]=i}))}const A=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function fe(e,n){if(!e)return null;const t=window.getComputedStyle(e),l=t.transform||t.webkitTransform||t.mozTransform;let i=l.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(", ")[A(n)?13:12]):(i=l.match(/^matrix\((.+)\)$/),i?parseFloat(i[1].split(", ")[A(n)?5:4]):null)}function At(e){return 8*(Math.log(e+1)-2)}const E={DURATION:.5,EASE:[.32,.72,0,1]},Be=.4;function Ye(e){const n=r.useRef(e);return r.useEffect(()=>{n.current=e}),r.useMemo(()=>(...t)=>n.current==null?void 0:n.current.call(n,...t),[])}function Mt({defaultProp:e,onChange:n}){const t=r.useState(e),[l]=t,i=r.useRef(l),a=Ye(n);return r.useEffect(()=>{i.current!==l&&(a(l),i.current=l)},[l,i,a]),t}function It({prop:e,defaultProp:n,onChange:t=()=>{}}){const[l,i]=Mt({defaultProp:n,onChange:t}),a=e!==void 0,s=a?e:l,h=Ye(t),y=r.useCallback(T=>{if(a){const g=typeof T=="function"?T(e):T;g!==e&&h(g)}else i(T)},[a,e,i,h]);return[s,y]}function Nt({activeSnapPointProp:e,setActiveSnapPointProp:n,snapPoints:t,drawerRef:l,overlayRef:i,fadeFromIndex:a,onSnapPointChange:s,direction:h="bottom"}){const[y,T]=It({prop:e,defaultProp:t==null?void 0:t[0],onChange:n}),M=r.useMemo(()=>y===(t==null?void 0:t[t.length-1])||null,[t,y]),g=t&&t.length>0&&(a||a===0)&&!Number.isNaN(a)&&t[a]===y||!t,d=r.useMemo(()=>t==null?void 0:t.findIndex(v=>v===y),[t,y]),c=r.useMemo(()=>{var v;return(v=t==null?void 0:t.map(o=>{const b=typeof window<"u",x=typeof o=="string";let O=0;if(x&&(O=parseInt(o,10)),A(h)){const f=x?O:b?o*window.innerHeight:0;return b?h==="bottom"?window.innerHeight-f:-window.innerHeight+f:f}const R=x?O:b?o*window.innerWidth:0;return b?h==="right"?window.innerWidth-R:-window.innerWidth+R:R}))!=null?v:[]},[t]),N=r.useMemo(()=>d!==null?c==null?void 0:c[d]:null,[c,d]),I=r.useCallback(v=>{var o;const b=(o=c==null?void 0:c.findIndex(x=>x===v))!=null?o:null;s(b),S(l.current,{transition:`transform ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`,transform:A(h)?`translate3d(0, ${v}px, 0)`:`translate3d(${v}px, 0, 0)`}),c&&b!==c.length-1&&b!==a?S(i.current,{transition:`opacity ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`,opacity:"0"}):S(i.current,{transition:`opacity ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`,opacity:"1"}),T(b!==null?t==null?void 0:t[b]:null)},[l.current,t,c,a,i,T]);r.useEffect(()=>{if(y||e){var v;const o=(v=t==null?void 0:t.findIndex(b=>b===e||b===y))!=null?v:-1;c&&o!==-1&&typeof c[o]=="number"&&I(c[o])}},[y,e,t,c,I]);function B({draggedDistance:v,closeDrawer:o,velocity:b,dismissible:x}){if(a===void 0)return;const O=h==="bottom"||h==="right"?(N??0)-v:(N??0)+v,R=d===a-1,f=d===0,H=v>0;if(R&&S(i.current,{transition:`opacity ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`}),b>2&&!H){x?o():I(c[0]);return}if(b>2&&H&&c&&t){I(c[t.length-1]);return}const V=c==null?void 0:c.reduce((P,k)=>typeof P!="number"||typeof k!="number"?P:Math.abs(k-O)Be&&Math.abs(v)0&&M){I(c[t.length-1]);return}if(f&&P<0&&x&&o(),d===null)return;I(c[d+P]);return}I(V)}function _({draggedDistance:v}){if(N===null)return;const o=h==="bottom"||h==="right"?N-v:N+v;(h==="bottom"||h==="right")&&oc[c.length-1]||S(l.current,{transform:A(h)?`translate3d(0, ${o}px, 0)`:`translate3d(${o}px, 0, 0)`})}function z(v,o){if(!t||typeof d!="number"||!c||a===void 0)return null;const b=d===a-1;if(d>=a&&o)return 0;if(b&&!o)return 1;if(!g&&!b)return null;const O=b?d+1:d-1,R=b?c[O]-c[O-1]:c[O+1]-c[O],f=v/Math.abs(R);return b?1-f:f}return{isLastSnapPoint:M,activeSnapPoint:y,shouldFade:g,getPercentageDragged:z,setActiveSnapPoint:T,activeSnapPointIndex:d,onRelease:B,onDrag:_,snapPointsOffset:c}}const Ht=.25,Pt=100,Le=8,q=16,Ue=26,Ee="vaul-dragging";function Fe({open:e,onOpenChange:n,children:t,shouldScaleBackground:l,onDrag:i,onRelease:a,snapPoints:s,nested:h=!1,setBackgroundColorOnScale:y=!0,closeThreshold:T=Ht,scrollLockTimeout:M=Pt,dismissible:g=!0,handleOnly:d=!1,fadeFromIndex:c=s&&s.length-1,activeSnapPoint:N,setActiveSnapPoint:I,fixed:B,modal:_=!0,onClose:z,noBodyStyles:v,direction:o="bottom",preventScrollRestoration:b=!0,disablePreventScroll:x=!1}){var O;const[R=!1,f]=r.useState(!1),[H,V]=r.useState(!1),[L,P]=r.useState(!1),[k,oe]=r.useState(!1),[Y,me]=r.useState(!1),[Ke,$e]=r.useState(!1),F=r.useRef(null),ie=r.useRef(null),he=r.useRef(null),we=r.useRef(null),Q=r.useRef(null),Z=r.useRef(!1),ge=r.useRef(null),pe=r.useRef(0),G=r.useRef(!1),xe=r.useRef(0),m=r.useRef(null),Oe=r.useRef(((O=m.current)==null?void 0:O.getBoundingClientRect().height)||0),ve=r.useRef(0),Je=r.useCallback(u=>{s&&u===te.length-1&&(ie.current=new Date)},[]),{activeSnapPoint:Qe,activeSnapPointIndex:ee,setActiveSnapPoint:Ce,onRelease:Ze,snapPointsOffset:te,onDrag:et,shouldFade:Ae,getPercentageDragged:tt}=Nt({snapPoints:s,activeSnapPointProp:N,setActiveSnapPointProp:I,drawerRef:m,fadeFromIndex:c,overlayRef:F,onSnapPointChange:Je,direction:o});Tt({isDisabled:!R||Y||!_||Ke||!H||x});const{restorePositionSetting:nt}=Ct({isOpen:R,modal:_,nested:h,hasBeenOpened:H,preventScrollRestoration:b,noBodyStyles:v});function K(){return(window.innerWidth-Ue)/window.innerWidth}function rt(u){var w;!g&&!s||m.current&&!m.current.contains(u.target)||(Oe.current=((w=m.current)==null?void 0:w.getBoundingClientRect().height)||0,me(!0),he.current=new Date,Ve()&&window.addEventListener("touchend",()=>Z.current=!1,{once:!0}),u.target.setPointerCapture(u.pointerId),pe.current=A(o)?u.clientY:u.clientX)}function Me(u,w){var D;let p=u;const $=(D=window.getSelection())==null?void 0:D.toString(),C=m.current?fe(m.current,o):null,U=new Date;if(p.hasAttribute("data-vaul-no-drag")||p.closest("[data-vaul-no-drag]"))return!1;if(o==="right"||o==="left")return!0;if(ie.current&&U.getTime()-ie.current.getTime()<500)return!1;if(C!==null&&(o==="bottom"?C>0:C<0))return!0;if($&&$.length>0)return!1;if(Q.current&&U.getTime()-Q.current.getTime()p.clientHeight){if(p.scrollTop!==0)return Q.current=new Date,!1;if(p.getAttribute("role")==="dialog")return!0}p=p.parentNode}return!0}function ot(u){if(m.current&&Y){const w=o==="bottom"||o==="right"?1:-1,D=(pe.current-(A(o)?u.clientY:u.clientX))*w,p=D>0,$=s&&!g&&!p;if($&&ee===0)return;const C=Math.abs(D),U=document.querySelector("[vaul-drawer-wrapper]");let W=C/Oe.current;const j=tt(C,p);if(j!==null&&(W=j),$&&W>=1||!Z.current&&!Me(u.target,p))return;if(m.current.classList.add(Ee),Z.current=!0,S(m.current,{transition:"none"}),S(F.current,{transition:"none"}),s&&et({draggedDistance:D}),p&&!s){const X=At(D),ue=Math.min(X*-1,0)*w;S(m.current,{transform:A(o)?`translate3d(0, ${ue}px, 0)`:`translate3d(${ue}px, 0, 0)`});return}const le=1-W;if((Ae||c&&ee===c-1)&&(i==null||i(u,W),S(F.current,{opacity:`${le}`,transition:"none"},!0)),U&&F.current&&l){const X=Math.min(K()+W*(1-K()),1),ue=8-W*8,Ne=Math.max(0,14-W*14);S(U,{borderRadius:`${ue}px`,transform:A(o)?`scale(${X}) translate3d(0, ${Ne}px, 0)`:`scale(${X}) translate3d(${Ne}px, 0, 0)`,transition:"none"},!0)}if(!s){const X=C*w;S(m.current,{transform:A(o)?`translate3d(0, ${X}px, 0)`:`translate3d(${X}px, 0, 0)`})}}}r.useEffect(()=>()=>{ae(!1),nt()},[]),r.useEffect(()=>{var u;function w(){if(!m.current)return;const D=document.activeElement;if(Te(D)||G.current){var p;const $=((p=window.visualViewport)==null?void 0:p.height)||0;let C=window.innerHeight-$;const U=m.current.getBoundingClientRect().height||0;ve.current||(ve.current=U);const W=m.current.getBoundingClientRect().top;if(Math.abs(xe.current-C)>60&&(G.current=!G.current),s&&s.length>0&&te&&ee){const j=te[ee]||0;C+=j}if(xe.current=C,U>$||G.current){const j=m.current.getBoundingClientRect().height;let le=j;j>$&&(le=$-Ue),B?m.current.style.height=`${j-Math.max(C,0)}px`:m.current.style.height=`${Math.max(le,$-W)}px`}else m.current.style.height=`${ve.current}px`;s&&s.length>0&&!G.current?m.current.style.bottom="0px":m.current.style.bottom=`${Math.max(C,0)}px`}}return(u=window.visualViewport)==null||u.addEventListener("resize",w),()=>{var D;return(D=window.visualViewport)==null?void 0:D.removeEventListener("resize",w)}},[ee,s,te]);function J(){m.current&&(it(),z==null||z(),S(m.current,{transform:A(o)?`translate3d(0, ${o==="bottom"?"100%":"-100%"}, 0)`:`translate3d(${o==="right"?"100%":"-100%"}, 0, 0)`,transition:`transform ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`}),S(F.current,{opacity:"0",transition:`opacity ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`}),ae(!1),setTimeout(()=>{P(!1),f(!1)},300),setTimeout(()=>{s&&Ce(s[0])},E.DURATION*1e3))}r.useEffect(()=>{if(!R&&l){const u=setTimeout(()=>{ce(document.body)},200);return()=>clearTimeout(u)}},[R,l]),r.useLayoutEffect(()=>{e?(f(!0),V(!0)):J()},[e]),r.useEffect(()=>{k&&(n==null||n(R))},[R]),r.useEffect(()=>{oe(!0)},[]);function Ie(){if(!m.current)return;const u=document.querySelector("[vaul-drawer-wrapper]"),w=fe(m.current,o);S(m.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`}),S(F.current,{transition:`opacity ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`,opacity:"1"}),l&&w&&w>0&&R&&S(u,{borderRadius:`${Le}px`,overflow:"hidden",...A(o)?{transform:`scale(${K()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${K()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${E.DURATION}s`,transitionTimingFunction:`cubic-bezier(${E.EASE.join(",")})`},!0)}function it(){!Y||!m.current||(m.current.classList.remove(Ee),Z.current=!1,me(!1),we.current=new Date)}function at(u){if(!Y||!m.current)return;m.current.classList.remove(Ee),Z.current=!1,me(!1),we.current=new Date;const w=fe(m.current,o);if(!Me(u.target,!1)||!w||Number.isNaN(w)||he.current===null)return;const D=we.current.getTime()-he.current.getTime(),p=pe.current-(A(o)?u.clientY:u.clientX),$=Math.abs(p)/D;if($>.05&&($e(!0),setTimeout(()=>{$e(!1)},200)),s){Ze({draggedDistance:p*(o==="bottom"||o==="right"?1:-1),closeDrawer:J,velocity:$,dismissible:g}),a==null||a(u,!0);return}if(o==="bottom"||o==="right"?p>0:p<0){Ie(),a==null||a(u,!0);return}if($>Be){J(),a==null||a(u,!1);return}var C;const U=Math.min((C=m.current.getBoundingClientRect().height)!=null?C:0,window.innerHeight);if(w>=U*T){J(),a==null||a(u,!1);return}a==null||a(u,!0),Ie()}r.useEffect(()=>{R&&(S(document.documentElement,{scrollBehavior:"auto"}),ie.current=new Date,ae(!0))},[R]),r.useEffect(()=>{if(m.current&&L){var u;const w=m==null||(u=m.current)==null?void 0:u.querySelectorAll("*");w==null||w.forEach(D=>{const p=D;(p.scrollHeight>p.clientHeight||p.scrollWidth>p.clientWidth)&&p.classList.add("vaul-scrollable")})}},[L]);function ae(u){const w=document.querySelector("[vaul-drawer-wrapper]");!w||!l||(u?(y&&(v||(S(document.body,{background:document.body.style.backgroundColor||document.body.style.background}),S(document.body,{background:"black"},!0))),S(w,{borderRadius:`${Le}px`,overflow:"hidden",...A(o)?{transform:`scale(${K()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${K()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${E.DURATION}s`,transitionTimingFunction:`cubic-bezier(${E.EASE.join(",")})`})):(ce(w,"overflow"),ce(w,"transform"),ce(w,"borderRadius"),S(w,{transitionProperty:"transform, border-radius",transitionDuration:`${E.DURATION}s`,transitionTimingFunction:`cubic-bezier(${E.EASE.join(",")})`})))}function lt(u){const w=u?(window.innerWidth-q)/window.innerWidth:1,D=u?-q:0;ge.current&&window.clearTimeout(ge.current),S(m.current,{transition:`transform ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`,transform:`scale(${w}) translate3d(0, ${D}px, 0)`}),!u&&m.current&&(ge.current=setTimeout(()=>{const p=fe(m.current,o);S(m.current,{transition:"none",transform:A(o)?`translate3d(0, ${p}px, 0)`:`translate3d(${p}px, 0, 0)`})},500))}function ut(u,w){if(w<0)return;const D=A(o)?window.innerHeight:window.innerWidth,p=(D-q)/D,$=p+w*(1-p),C=-q+w*q;S(m.current,{transform:A(o)?`scale(${$}) translate3d(0, ${C}px, 0)`:`scale(${$}) translate3d(${C}px, 0, 0)`,transition:"none"})}function st(u,w){const D=A(o)?window.innerHeight:window.innerWidth,p=w?(D-q)/D:1,$=w?-q:0;w&&S(m.current,{transition:`transform ${E.DURATION}s cubic-bezier(${E.EASE.join(",")})`,transform:A(o)?`scale(${p}) translate3d(0, ${$}px, 0)`:`scale(${p}) translate3d(${$}px, 0, 0)`})}return r.createElement(pt,{modal:_,onOpenChange:u=>{if(e!==void 0){n==null||n(u);return}u?(V(!0),f(u)):J()},open:R},r.createElement(_e.Provider,{value:{visible:L,activeSnapPoint:Qe,snapPoints:s,setActiveSnapPoint:Ce,drawerRef:m,overlayRef:F,scaleBackground:ae,onOpenChange:n,onPress:rt,setVisible:P,onRelease:at,onDrag:ot,dismissible:g,handleOnly:d,isOpen:R,isDragging:Y,shouldFade:Ae,closeDrawer:J,onNestedDrag:ut,onNestedOpenChange:lt,onNestedRelease:st,keyboardIsOpen:G,openProp:e,modal:_,snapPointsOffset:te,direction:o}},t))}const Lt=250,Ut=120,Xe=r.forwardRef(function({preventCycle:e=!1,children:n,...t},l){const{visible:i,closeDrawer:a,isDragging:s,snapPoints:h,activeSnapPoint:y,setActiveSnapPoint:T,dismissible:M,handleOnly:g,onPress:d,onDrag:c}=de(),N=r.useRef(null),I=r.useRef(!1);function B(){if(I.current){v();return}window.setTimeout(()=>{_()},Ut)}function _(){if(s||e||I.current){v();return}if(v(),(!h||h.length===0)&&M){a();return}if(y===h[h.length-1]&&M){a();return}const b=h.findIndex(O=>O===y);if(b===-1)return;const x=h[b+1];T(x)}function z(){N.current=window.setTimeout(()=>{I.current=!0},Lt)}function v(){window.clearTimeout(N.current),I.current=!1}return r.createElement("div",{onClick:B,onDoubleClick:()=>{I.current=!0,a()},onPointerCancel:v,onPointerDown:o=>{g&&d(o),z()},onPointerMove:o=>{g&&c(o)},ref:l,"vaul-drawer-visible":i?"true":"false","vaul-handle":"","aria-hidden":"true",...t},r.createElement("span",{"vaul-handle-hitarea":"","aria-hidden":"true"},n))});Xe.displayName="Drawer.Handle";const qe=r.forwardRef(function({children:e,...n},t){const{overlayRef:l,snapPoints:i,onRelease:a,shouldFade:s,isOpen:h,visible:y}=de(),T=ze(t,l),M=i&&i.length>0;return r.createElement(ct,{onMouseUp:a,ref:T,"vaul-drawer-visible":y?"true":"false","vaul-overlay":"","vaul-snap-points":h&&M?"true":"false","vaul-snap-points-overlay":h&&s?"true":"false",...n})});qe.displayName="Drawer.Overlay";const Ge=r.forwardRef(function({onOpenAutoFocus:e,onPointerDownOutside:n,onAnimationEnd:t,style:l,...i},a){const{drawerRef:s,onPress:h,onRelease:y,onDrag:T,dismissible:M,keyboardIsOpen:g,snapPointsOffset:d,visible:c,closeDrawer:N,modal:I,openProp:B,onOpenChange:_,setVisible:z,handleOnly:v,direction:o}=de(),b=ze(a,s),x=r.useRef(null),O=r.useRef(!1),R=(f,H,V=0)=>{if(O.current)return!0;const L=Math.abs(f.y),P=Math.abs(f.x),k=P>L,oe=["bottom","right"].includes(H)?1:-1;if(H==="left"||H==="right"){if(!(f.x*oe<0)&&P>=0&&P<=V)return k}else if(!(f.y*oe<0)&&L>=0&&L<=V)return!k;return O.current=!0,!0};return r.useEffect(()=>{z(!0)},[]),r.createElement(ft,{"vaul-drawer":"","vaul-drawer-direction":o,"vaul-drawer-visible":c?"true":"false",...i,ref:b,style:d&&d.length>0?{"--snap-point-height":`${d[0]}px`,...l}:l,onOpenAutoFocus:f=>{if(e)e(f);else{var H;f.preventDefault(),(H=s.current)==null||H.focus()}},onPointerDown:f=>{v||(i.onPointerDown==null||i.onPointerDown.call(i,f),x.current={x:f.clientX,y:f.clientY},h(f))},onPointerDownOutside:f=>{if(n==null||n(f),!I||f.defaultPrevented){f.preventDefault();return}g.current&&(g.current=!1),f.preventDefault(),_==null||_(!1),!(!M||B!==void 0)&&N()},onFocusOutside:f=>{if(!I){f.preventDefault();return}},onEscapeKeyDown:f=>{if(!I){f.preventDefault();return}},onPointerMove:f=>{if(v||(i.onPointerMove==null||i.onPointerMove.call(i,f),!x.current))return;const H=f.clientY-x.current.y,V=f.clientX-x.current.x,L=f.pointerType==="touch"?10:2;R({x:V,y:H},o,L)?T(f):(Math.abs(V)>L||Math.abs(H)>L)&&(x.current=null)},onPointerUp:f=>{i.onPointerUp==null||i.onPointerUp.call(i,f),x.current=null,O.current=!1,y(f)}})});Ge.displayName="Drawer.Content";function _t({onDrag:e,onOpenChange:n,...t}){const{onNestedDrag:l,onNestedOpenChange:i,onNestedRelease:a}=de();if(!l)throw new Error("Drawer.NestedRoot must be placed in another drawer");return r.createElement(Fe,{nested:!0,onClose:()=>{i(!1)},onDrag:(s,h)=>{l(s,h),e==null||e(s,h)},onOpenChange:s=>{s&&i(s),n==null||n(s)},onRelease:a,...t})}const kt={Root:Fe,NestedRoot:_t,Content:Ge,Handle:Xe,Overlay:qe,Trigger:dt,Portal:mt,Close:ht,Title:wt,Description:gt};export{kt as D}; diff --git a/assets/vaul-OrZLygqJ.js.gz b/assets/vaul-OrZLygqJ.js.gz new file mode 100644 index 0000000..e25fb77 Binary files /dev/null and b/assets/vaul-OrZLygqJ.js.gz differ diff --git a/assets/zustand-DUrK90M2.js b/assets/zustand-BpWCCnYR.js similarity index 84% rename from assets/zustand-DUrK90M2.js rename to assets/zustand-BpWCCnYR.js index abda5be..a0dfd79 100644 --- a/assets/zustand-DUrK90M2.js +++ b/assets/zustand-BpWCCnYR.js @@ -1 +1 @@ -import{a as E}from"./react-BLNIRDtH.js";import{u as m}from"./use-sync-external-store-Btn3o0C-.js";const g={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},a=t=>{let e;const o=new Set,n=(s,u)=>{const r=typeof s=="function"?s(e):s;if(!Object.is(r,e)){const S=e;e=u??(typeof r!="object"||r===null)?r:Object.assign({},e,r),o.forEach(b=>b(e,S))}},i=()=>e,c={setState:n,getState:i,getInitialState:()=>p,subscribe:s=>(o.add(s),()=>o.delete(s)),destroy:()=>{(g?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),o.clear()}},p=e=t(n,i,c);return c},_=t=>t?a(t):a,f={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},{useDebugValue:y}=E,{useSyncExternalStoreWithSelector:v}=m;let l=!1;const D=t=>t;function h(t,e=D,o){(f?"production":void 0)!=="production"&&o&&!l&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),l=!0);const n=v(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,o);return y(n),n}const d=t=>{(f?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?_(t):t,o=(n,i)=>h(e,n,i);return Object.assign(o,e),o},P=t=>t?d(t):d;export{P as c}; +import{R as E}from"./react-DmpIMwDM.js";import{u as m}from"./use-sync-external-store-ByYeed7R.js";const g={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},a=t=>{let e;const o=new Set,n=(s,u)=>{const r=typeof s=="function"?s(e):s;if(!Object.is(r,e)){const S=e;e=u??(typeof r!="object"||r===null)?r:Object.assign({},e,r),o.forEach(b=>b(e,S))}},i=()=>e,c={setState:n,getState:i,getInitialState:()=>p,subscribe:s=>(o.add(s),()=>o.delete(s)),destroy:()=>{(g?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),o.clear()}},p=e=t(n,i,c);return c},_=t=>t?a(t):a,f={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},{useDebugValue:y}=E,{useSyncExternalStoreWithSelector:v}=m;let l=!1;const D=t=>t;function R(t,e=D,o){(f?"production":void 0)!=="production"&&o&&!l&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),l=!0);const n=v(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,o);return y(n),n}const d=t=>{(f?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?_(t):t,o=(n,i)=>R(e,n,i);return Object.assign(o,e),o},P=t=>t?d(t):d;export{P as c}; diff --git a/assets/zustand-BpWCCnYR.js.gz b/assets/zustand-BpWCCnYR.js.gz new file mode 100644 index 0000000..5ca0252 Binary files /dev/null and b/assets/zustand-BpWCCnYR.js.gz differ diff --git a/assets/zustand-DUrK90M2.js.gz b/assets/zustand-DUrK90M2.js.gz deleted file mode 100644 index 8f6533b..0000000 Binary files a/assets/zustand-DUrK90M2.js.gz and /dev/null differ diff --git a/index.html b/index.html index 92977c5..a1ca3e7 100644 --- a/index.html +++ b/index.html @@ -93,45 +93,45 @@ font-size: 2rem; } - + - + - - - + + + + + - - - - - - - - + + + + + + + - - + + + + - - - + - - - + +
diff --git a/index.html.gz b/index.html.gz index e1ef2c5..744d6b6 100644 Binary files a/index.html.gz and b/index.html.gz differ diff --git a/sw.js b/sw.js index ed89f84..013d495 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let s,e={};const l=(l,r)=>(l=new URL(l+".js",r).href,e[l]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()})).then((()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s})));self.define=(r,n)=>{const i=s||("document"in self?document.currentScript.src:"")||location.href;if(e[i])return;let u={};const t=s=>l(s,i),o={module:{uri:i},exports:u,require:t};e[i]=Promise.all(r.map((s=>o[s]||t(s)))).then((s=>(n(...s),u)))}}define(["./workbox-3e911b1d"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/@babel-BjXSgPXB.js",revision:null},{url:"assets/@codemirror-SM3v-hs2.js",revision:null},{url:"assets/@floating-ui-DN5zxe12.js",revision:null},{url:"assets/@lezer-C0_A0N7l.js",revision:null},{url:"assets/@radix-ui-B2FzUeFR.js",revision:null},{url:"assets/@uiw-7vynk4Up.js",revision:null},{url:"assets/aria-hidden-DQ5UC2Eg.js",revision:null},{url:"assets/attr-accept-BWI1aNlo.js",revision:null},{url:"assets/class-variance-authority-Bb4qSo10.js",revision:null},{url:"assets/clsx-B-dksMZM.js",revision:null},{url:"assets/crelt-C8TCjufn.js",revision:null},{url:"assets/date-fns-BAPXOope.js",revision:null},{url:"assets/detect-node-es-l0sNRNKZ.js",revision:null},{url:"assets/file-saver-DhbZvGod.js",revision:null},{url:"assets/file-selector-CBHVlu32.js",revision:null},{url:"assets/get-nonce-C-Z93AgS.js",revision:null},{url:"assets/index-B-W7ss30.js",revision:null},{url:"assets/index-C7t4FGqo.css",revision:null},{url:"assets/lucide-react-BjVfCz3W.js",revision:null},{url:"assets/nearley-CG12bGQB.js",revision:null},{url:"assets/prop-types-psm7UO16.js",revision:null},{url:"assets/react-BLNIRDtH.js",revision:null},{url:"assets/react-dom-CbzF4jeR.js",revision:null},{url:"assets/react-dropzone-BJpUdYKv.js",revision:null},{url:"assets/react-remove-scroll-bar-D1YV4RSd.js",revision:null},{url:"assets/react-remove-scroll-BBk4x74E.js",revision:null},{url:"assets/react-style-singleton-Cy56ZS_u.js",revision:null},{url:"assets/scheduler-CzFDRTuY.js",revision:null},{url:"assets/sonner-mOQquDco.js",revision:null},{url:"assets/sql-formatter-BoZ82dp4.js",revision:null},{url:"assets/sql.js-Ch_tM77n.js",revision:null},{url:"assets/style-mod-Bc2inJdb.js",revision:null},{url:"assets/tailwind-merge-BkWO730n.js",revision:null},{url:"assets/tslib-CuZy2iRz.js",revision:null},{url:"assets/use-callback-ref-2GXKldmC.js",revision:null},{url:"assets/use-sidecar-DDa65NPA.js",revision:null},{url:"assets/use-sync-external-store-Btn3o0C-.js",revision:null},{url:"assets/vaul-DvR9Gt1n.js",revision:null},{url:"assets/w3c-keyname-Vcq4gwWv.js",revision:null},{url:"assets/zustand-DUrK90M2.js",revision:null},{url:"index.html",revision:"d6758203900843815592ab0b5235b106"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"sql.wasm",revision:"f6ad6454f4630b310eb8473858eb33bb"},{url:"manifest.webmanifest",revision:"662c9ac5fe5300a257a596b0ad6130ea"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))})); +if(!self.define){let s,e={};const l=(l,r)=>(l=new URL(l+".js",r).href,e[l]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()})).then((()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s})));self.define=(r,n)=>{const i=s||("document"in self?document.currentScript.src:"")||location.href;if(e[i])return;let u={};const t=s=>l(s,i),o={module:{uri:i},exports:u,require:t};e[i]=Promise.all(r.map((s=>o[s]||t(s)))).then((s=>(n(...s),u)))}}define(["./workbox-3e911b1d"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/@babel-BjXSgPXB.js",revision:null},{url:"assets/@codemirror-SM3v-hs2.js",revision:null},{url:"assets/@floating-ui-Bob4LHZu.js",revision:null},{url:"assets/@lezer-C0_A0N7l.js",revision:null},{url:"assets/@radix-ui-BQVY8FyZ.js",revision:null},{url:"assets/@uiw-Cmr0UBwL.js",revision:null},{url:"assets/aria-hidden-DQ5UC2Eg.js",revision:null},{url:"assets/attr-accept-BWI1aNlo.js",revision:null},{url:"assets/class-variance-authority-Bb4qSo10.js",revision:null},{url:"assets/clsx-B-dksMZM.js",revision:null},{url:"assets/crelt-C8TCjufn.js",revision:null},{url:"assets/date-fns-BAPXOope.js",revision:null},{url:"assets/detect-node-es-l0sNRNKZ.js",revision:null},{url:"assets/file-saver-DhbZvGod.js",revision:null},{url:"assets/file-selector-CBHVlu32.js",revision:null},{url:"assets/get-nonce-C-Z93AgS.js",revision:null},{url:"assets/index-C-kKn6GS.css",revision:null},{url:"assets/index-Dhbsy5TC.js",revision:null},{url:"assets/lucide-react-S8ZAjIB-.js",revision:null},{url:"assets/nearley-CG12bGQB.js",revision:null},{url:"assets/prop-types-psm7UO16.js",revision:null},{url:"assets/react-DmpIMwDM.js",revision:null},{url:"assets/react-dom-Cjr6YfK8.js",revision:null},{url:"assets/react-dropzone-D-IBOhIS.js",revision:null},{url:"assets/react-remove-scroll-bar-DZjhPxUV.js",revision:null},{url:"assets/react-remove-scroll-BOyN_WUU.js",revision:null},{url:"assets/react-style-singleton-CpxBwIWS.js",revision:null},{url:"assets/scheduler-CzFDRTuY.js",revision:null},{url:"assets/sonner-CxG_nbEz.js",revision:null},{url:"assets/sql-formatter-BoZ82dp4.js",revision:null},{url:"assets/sql.js-Ch_tM77n.js",revision:null},{url:"assets/style-mod-Bc2inJdb.js",revision:null},{url:"assets/tailwind-merge-BkWO730n.js",revision:null},{url:"assets/tslib-CuZy2iRz.js",revision:null},{url:"assets/use-callback-ref-DRzK4jWO.js",revision:null},{url:"assets/use-sidecar-D8_hMcUG.js",revision:null},{url:"assets/use-sync-external-store-ByYeed7R.js",revision:null},{url:"assets/vaul-OrZLygqJ.js",revision:null},{url:"assets/w3c-keyname-Vcq4gwWv.js",revision:null},{url:"assets/zustand-BpWCCnYR.js",revision:null},{url:"index.html",revision:"36e3e02c57d7baef20ad2fe7e8b2f67b"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"sql.wasm",revision:"f6ad6454f4630b310eb8473858eb33bb"},{url:"manifest.webmanifest",revision:"662c9ac5fe5300a257a596b0ad6130ea"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))}));