@datawire-ai/busyfile-design-library 1.6.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(j,$){typeof exports=="object"&&typeof module<"u"?$(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],$):(j=typeof globalThis<"u"?globalThis:j||self,$(j.BusyFileDesignSystem={},j.React,j.ReactDOM))})(this,function(j,$,st){"use strict";function it(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=it($),Pr=it(st);var ze={exports:{}},be={};/**
1
+ (function(W,ee){typeof exports=="object"&&typeof module<"u"?ee(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],ee):(W=typeof globalThis<"u"?globalThis:W||self,ee(W.BusyFileDesignSystem={},W.React,W.ReactDOM))})(this,function(W,ee,un){"use strict";function dn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=dn(ee),fn=dn(un);var Ct={exports:{}},Be={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var lt;function Tr(){if(lt)return be;lt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:a}}return be.Fragment=t,be.jsx=r,be.jsxs=r,be}var he={};/**
9
+ */var mn;function Co(){if(mn)return Be;mn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var s=null;if(i!==void 0&&(s=""+i),o.key!==void 0&&(s=""+o.key),"key"in o){i={};for(var a in o)a!=="key"&&(i[a]=o[a])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:i}}return Be.Fragment=t,Be.jsx=n,Be.jsxs=n,Be}var Ve={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,78 +14,78 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var ct;function Ar(){return ct||(ct=1,process.env.NODE_ENV!=="production"&&function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===te?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case f:return"Fragment";case k:return"Profiler";case y:return"StrictMode";case _:return"Suspense";case F:return"SuspenseList";case W:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case R:return"Portal";case O:return(d.displayName||"Context")+".Provider";case N:return(d._context.displayName||"Context")+".Consumer";case T:var C=d.render;return d=d.displayName,d||(d=C.displayName||C.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case P:return C=d.displayName||null,C!==null?C:e(d.type)||"Memo";case h:C=d._payload,d=d._init;try{return e(d(C))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var C=!1}catch{C=!0}if(C){C=console;var D=C.error,A=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return D.call(C,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",A),t(d)}}function n(d){if(d===f)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===h)return"<...>";try{var C=e(d);return C?"<"+C+">":"<...>"}catch{return"<...>"}}function o(){var d=ge.A;return d===null?null:d.getOwner()}function a(){return Error("react-stack-top-frame")}function i(d){if(se.call(d,"key")){var C=Object.getOwnPropertyDescriptor(d,"key").get;if(C&&C.isReactWarning)return!1}return d.key!==void 0}function s(d,C){function D(){Z||(Z=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",C))}D.isReactWarning=!0,Object.defineProperty(d,"key",{get:D,configurable:!0})}function c(){var d=e(this.type);return U[d]||(U[d]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),d=this.props.ref,d!==void 0?d:null}function u(d,C,D,A,M,B,ve,I){return D=B.ref,d={$$typeof:E,type:d,key:C,props:B,_owner:M},(D!==void 0?D:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:c}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ve}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:I}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function m(d,C,D,A,M,B,ve,I){var z=C.children;if(z!==void 0)if(A)if(Le(z)){for(A=0;A<z.length;A++)p(z[A]);Object.freeze&&Object.freeze(z)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(z);if(se.call(C,"key")){z=e(d);var G=Object.keys(C).filter(function(ke){return ke!=="key"});A=0<G.length?"{key: someKey, "+G.join(": ..., ")+": ...}":"{key: someKey}",Ee[z+A]||(G=0<G.length?"{"+G.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var pn;function ko(){return pn||(pn=1,process.env.NODE_ENV!=="production"&&function(){function e(b){if(b==null)return null;if(typeof b=="function")return b.$$typeof===$?null:b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case m:return"Fragment";case y:return"Profiler";case v:return"StrictMode";case S:return"Suspense";case O:return"SuspenseList";case M:return"Activity"}if(typeof b=="object")switch(typeof b.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),b.$$typeof){case h:return"Portal";case k:return(b.displayName||"Context")+".Provider";case E:return(b._context.displayName||"Context")+".Consumer";case C:var N=b.render;return b=b.displayName,b||(b=N.displayName||N.name||"",b=b!==""?"ForwardRef("+b+")":"ForwardRef"),b;case T:return N=b.displayName||null,N!==null?N:e(b.type)||"Memo";case R:N=b._payload,b=b._init;try{return e(b(N))}catch{}}return null}function t(b){return""+b}function n(b){try{t(b);var N=!1}catch{N=!0}if(N){N=console;var F=N.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&b[Symbol.toStringTag]||b.constructor.name||"Object";return F.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(b)}}function r(b){if(b===m)return"<>";if(typeof b=="object"&&b!==null&&b.$$typeof===R)return"<...>";try{var N=e(b);return N?"<"+N+">":"<...>"}catch{return"<...>"}}function o(){var b=G.A;return b===null?null:b.getOwner()}function i(){return Error("react-stack-top-frame")}function s(b){if(H.call(b,"key")){var N=Object.getOwnPropertyDescriptor(b,"key").get;if(N&&N.isReactWarning)return!1}return b.key!==void 0}function a(b,N){function F(){U||(U=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",N))}F.isReactWarning=!0,Object.defineProperty(b,"key",{get:F,configurable:!0})}function c(){var b=e(this.type);return L[b]||(L[b]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),b=this.props.ref,b!==void 0?b:null}function l(b,N,F,D,V,K,Ee,z){return F=K.ref,b={$$typeof:p,type:b,key:N,props:K,_owner:V},(F!==void 0?F:null)!==null?Object.defineProperty(b,"ref",{enumerable:!1,get:c}):Object.defineProperty(b,"ref",{enumerable:!1,value:null}),b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(b,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(b,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ee}),Object.defineProperty(b,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:z}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b}function d(b,N,F,D,V,K,Ee,z){var X=N.children;if(X!==void 0)if(D)if(B(X)){for(D=0;D<X.length;D++)f(X[D]);Object.freeze&&Object.freeze(X)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(X);if(H.call(N,"key")){X=e(b);var Q=Object.keys(N).filter(function(Ce){return Ce!=="key"});D=0<Q.length?"{key: someKey, "+Q.join(": ..., ")+": ...}":"{key: someKey}",Y[X+D]||(Q=0<Q.length?"{"+Q.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,A,z,G,z),Ee[z+A]=!0)}if(z=null,D!==void 0&&(r(D),z=""+D),i(C)&&(r(C.key),z=""+C.key),"key"in C){D={};for(var re in C)re!=="key"&&(D[re]=C[re])}else D=C;return z&&s(D,typeof d=="function"?d.displayName||d.name||"Unknown":d),u(d,z,B,M,o(),D,ve,I)}function p(d){typeof d=="object"&&d!==null&&d.$$typeof===E&&d._store&&(d._store.validated=1)}var g=$,E=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),O=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),te=Symbol.for("react.client.reference"),ge=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=Object.prototype.hasOwnProperty,Le=Array.isArray,ie=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(d){return d()}};var Z,U={},X=g["react-stack-bottom-frame"].bind(g,a)(),x=ie(n(a)),Ee={};he.Fragment=f,he.jsx=function(d,C,D,A,M){var B=1e4>ge.recentlyCreatedOwnerStacks++;return m(d,C,D,!1,A,M,B?Error("react-stack-top-frame"):X,B?ie(n(d)):x)},he.jsxs=function(d,C,D,A,M){var B=1e4>ge.recentlyCreatedOwnerStacks++;return m(d,C,D,!0,A,M,B?Error("react-stack-top-frame"):X,B?ie(n(d)):x)}}()),he}process.env.NODE_ENV==="production"?ze.exports=Tr():ze.exports=Ar();var w=ze.exports;function ut(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dt(...e){return t=>{let r=!1;const n=e.map(o=>{const a=ut(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ut(e[o],null)}}}}function ne(...e){return l.useCallback(dt(...e),e)}function We(e){const t=Nr(e),r=l.forwardRef((n,o)=>{const{children:a,...i}=n,s=l.Children.toArray(a),c=s.find(_r);if(c){const u=c.props.children,m=s.map(p=>p===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return w.jsx(t,{...i,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,m):null})}return w.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var ft=We("Slot");function Nr(e){const t=l.forwardRef((r,n)=>{const{children:o,...a}=r;if(l.isValidElement(o)){const i=Mr(o),s=Dr(a,o.props);return o.type!==l.Fragment&&(s.ref=n?dt(n,i):i),l.cloneElement(o,s)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Or=Symbol("radix.slottable");function _r(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Or}function Dr(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const c=a(...s);return o(...s),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Mr(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function mt(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=mt(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function pt(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=mt(e))&&(n&&(n+=" "),n+=t);return n}const Be="-",Ir=e=>{const t=Lr(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const s=i.split(Be);return s[0]===""&&s.length!==1&&s.shift(),gt(s,t)||jr(i)},getConflictingClassGroupIds:(i,s)=>{const c=r[i]||[];return s&&n[i]?[...c,...n[i]]:c}}},gt=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?gt(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Be);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},vt=/^\[(.+)\]$/,jr=e=>{if(vt.test(e)){const t=vt.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Lr=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)$e(r[o],n,o,t);return n},$e=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:bt(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(Fr(o)){$e(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{$e(i,bt(t,a),r,n)})})},bt=(e,t)=>{let r=e;return t.split(Be).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Fr=e=>e.isThemeGetter,zr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},Ue="!",Ve=":",Wr=Ve.length,Br=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let i=0,s=0,c=0,u;for(let R=0;R<o.length;R++){let f=o[R];if(i===0&&s===0){if(f===Ve){a.push(o.slice(c,R)),c=R+Wr;continue}if(f==="/"){u=R;continue}}f==="["?i++:f==="]"?i--:f==="("?s++:f===")"&&s--}const m=a.length===0?o:o.substring(c),p=$r(m),g=p!==m,E=u&&u>c?u-c:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:p,maybePostfixModifierPosition:E}};if(t){const o=t+Ve,a=n;n=i=>i.startsWith(o)?a(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},$r=e=>e.endsWith(Ue)?e.substring(0,e.length-1):e.startsWith(Ue)?e.substring(1):e,Ur=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(i=>{i[0]==="["||t[i]?(o.push(...a.sort(),i),a=[]):a.push(i)}),o.push(...a.sort()),o}},Vr=e=>({cache:zr(e.cacheSize),parseClassName:Br(e),sortModifiers:Ur(e),...Ir(e)}),Gr=/\s+/,Yr=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(Gr);let c="";for(let u=s.length-1;u>=0;u-=1){const m=s[u],{isExternal:p,modifiers:g,hasImportantModifier:E,baseClassName:R,maybePostfixModifierPosition:f}=r(m);if(p){c=m+(c.length>0?" "+c:c);continue}let y=!!f,k=n(y?R.substring(0,f):R);if(!k){if(!y){c=m+(c.length>0?" "+c:c);continue}if(k=n(R),!k){c=m+(c.length>0?" "+c:c);continue}y=!1}const N=a(g).join(":"),O=E?N+Ue:N,T=O+k;if(i.includes(T))continue;i.push(T);const _=o(k,y);for(let F=0;F<_.length;++F){const P=_[F];i.push(O+P)}c=m+(c.length>0?" "+c:c)}return c};function Xr(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ht(t))&&(n&&(n+=" "),n+=r);return n}const ht=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=ht(e[n]))&&(r&&(r+=" "),r+=t);return r};function Hr(e,...t){let r,n,o,a=i;function i(c){const u=t.reduce((m,p)=>p(m),e());return r=Vr(u),n=r.cache.get,o=r.cache.set,a=s,s(c)}function s(c){const u=n(c);if(u)return u;const m=Yr(c,r);return o(c,m),m}return function(){return a(Xr.apply(null,arguments))}}const L=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},yt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,wt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Kr=/^\d+\/\d+$/,qr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Jr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Qr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,en=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,le=e=>Kr.test(e),S=e=>!!e&&!Number.isNaN(Number(e)),J=e=>!!e&&Number.isInteger(Number(e)),Ge=e=>e.endsWith("%")&&S(e.slice(0,-1)),H=e=>qr.test(e),tn=()=>!0,rn=e=>Zr.test(e)&&!Jr.test(e),xt=()=>!1,nn=e=>Qr.test(e),on=e=>en.test(e),an=e=>!v(e)&&!b(e),sn=e=>ce(e,Rt,xt),v=e=>yt.test(e),oe=e=>ce(e,Pt,rn),Ye=e=>ce(e,fn,S),Et=e=>ce(e,Ct,xt),ln=e=>ce(e,St,on),Ce=e=>ce(e,Tt,nn),b=e=>wt.test(e),ye=e=>ue(e,Pt),cn=e=>ue(e,mn),kt=e=>ue(e,Ct),un=e=>ue(e,Rt),dn=e=>ue(e,St),Se=e=>ue(e,Tt,!0),ce=(e,t,r)=>{const n=yt.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},ue=(e,t,r=!1)=>{const n=wt.exec(e);return n?n[1]?t(n[1]):r:!1},Ct=e=>e==="position"||e==="percentage",St=e=>e==="image"||e==="url",Rt=e=>e==="length"||e==="size"||e==="bg-size",Pt=e=>e==="length",fn=e=>e==="number",mn=e=>e==="family-name",Tt=e=>e==="shadow",pn=Hr(()=>{const e=L("color"),t=L("font"),r=L("text"),n=L("font-weight"),o=L("tracking"),a=L("leading"),i=L("breakpoint"),s=L("container"),c=L("spacing"),u=L("radius"),m=L("shadow"),p=L("inset-shadow"),g=L("text-shadow"),E=L("drop-shadow"),R=L("blur"),f=L("perspective"),y=L("aspect"),k=L("ease"),N=L("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...T(),b,v],F=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],h=()=>[b,v,c],W=()=>[le,"full","auto",...h()],te=()=>[J,"none","subgrid",b,v],ge=()=>["auto",{span:["full",J,b,v]},J,b,v],se=()=>[J,"auto",b,v],Le=()=>["auto","min","max","fr",b,v],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...h()],X=()=>[le,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...h()],x=()=>[e,b,v],Ee=()=>[...T(),kt,Et,{position:[b,v]}],d=()=>["no-repeat",{repeat:["","x","y","space","round"]}],C=()=>["auto","cover","contain",un,sn,{size:[b,v]}],D=()=>[Ge,ye,oe],A=()=>["","none","full",u,b,v],M=()=>["",S,ye,oe],B=()=>["solid","dashed","dotted","double"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[S,Ge,kt,Et],z=()=>["","none",R,b,v],G=()=>["none",S,b,v],re=()=>["none",S,b,v],ke=()=>[S,b,v],Fe=()=>[le,"full",...h()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[H],breakpoint:[H],color:[tn],container:[H],"drop-shadow":[H],ease:["in","out","in-out"],font:[an],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[H],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[H],shadow:[H],spacing:["px",S],text:[H],"text-shadow":[H],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",le,v,b,y]}],container:["container"],columns:[{columns:[S,v,b,s]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:_()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{start:W()}],end:[{end:W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[J,"auto",b,v]}],basis:[{basis:[le,"full","auto",s,...h()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[S,le,"auto","initial","none",v]}],grow:[{grow:["",S,b,v]}],shrink:[{shrink:["",S,b,v]}],order:[{order:[J,"first","last","none",b,v]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ge()}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:ge()}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Le()}],"auto-rows":[{"auto-rows":Le()}],gap:[{gap:h()}],"gap-x":[{"gap-x":h()}],"gap-y":[{"gap-y":h()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:h()}],px:[{px:h()}],py:[{py:h()}],ps:[{ps:h()}],pe:[{pe:h()}],pt:[{pt:h()}],pr:[{pr:h()}],pb:[{pb:h()}],pl:[{pl:h()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":h()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":h()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[s,"screen",...X()]}],"min-w":[{"min-w":[s,"screen","none",...X()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",r,ye,oe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,b,Ye]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ge,v]}],"font-family":[{font:[cn,v,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,b,v]}],"line-clamp":[{"line-clamp":[S,"none",b,Ye]}],leading:[{leading:[a,...h()]}],"list-image":[{"list-image":["none",b,v]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",b,v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:[S,"from-font","auto",b,oe]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[S,"auto",b,v]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b,v]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",b,v]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ee()}],"bg-repeat":[{bg:d()}],"bg-size":[{bg:C()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},J,b,v],radial:["",b,v],conic:[J,b,v]},dn,ln]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...B(),"hidden","none"]}],"divide-style":[{divide:[...B(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...B(),"none","hidden"]}],"outline-offset":[{"outline-offset":[S,b,v]}],"outline-w":[{outline:["",S,ye,oe]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",m,Se,Ce]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",p,Se,Ce]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[S,oe]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",g,Se,Ce]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[S,b,v]}],"mix-blend":[{"mix-blend":[...ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ve()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[S]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[b,v]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[S]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ee()}],"mask-repeat":[{mask:d()}],"mask-size":[{mask:C()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",b,v]}],filter:[{filter:["","none",b,v]}],blur:[{blur:z()}],brightness:[{brightness:[S,b,v]}],contrast:[{contrast:[S,b,v]}],"drop-shadow":[{"drop-shadow":["","none",E,Se,Ce]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",S,b,v]}],"hue-rotate":[{"hue-rotate":[S,b,v]}],invert:[{invert:["",S,b,v]}],saturate:[{saturate:[S,b,v]}],sepia:[{sepia:["",S,b,v]}],"backdrop-filter":[{"backdrop-filter":["","none",b,v]}],"backdrop-blur":[{"backdrop-blur":z()}],"backdrop-brightness":[{"backdrop-brightness":[S,b,v]}],"backdrop-contrast":[{"backdrop-contrast":[S,b,v]}],"backdrop-grayscale":[{"backdrop-grayscale":["",S,b,v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S,b,v]}],"backdrop-invert":[{"backdrop-invert":["",S,b,v]}],"backdrop-opacity":[{"backdrop-opacity":[S,b,v]}],"backdrop-saturate":[{"backdrop-saturate":[S,b,v]}],"backdrop-sepia":[{"backdrop-sepia":["",S,b,v]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":h()}],"border-spacing-x":[{"border-spacing-x":h()}],"border-spacing-y":[{"border-spacing-y":h()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",b,v]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[S,"initial",b,v]}],ease:[{ease:["linear","initial",k,b,v]}],delay:[{delay:[S,b,v]}],animate:[{animate:["none",N,b,v]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,b,v]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:G()}],"rotate-x":[{"rotate-x":G()}],"rotate-y":[{"rotate-y":G()}],"rotate-z":[{"rotate-z":G()}],scale:[{scale:re()}],"scale-x":[{"scale-x":re()}],"scale-y":[{"scale-y":re()}],"scale-z":[{"scale-z":re()}],"scale-3d":["scale-3d"],skew:[{skew:ke()}],"skew-x":[{"skew-x":ke()}],"skew-y":[{"skew-y":ke()}],transform:[{transform:[b,v,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Fe()}],"translate-x":[{"translate-x":Fe()}],"translate-y":[{"translate-y":Fe()}],"translate-z":[{"translate-z":Fe()}],"translate-none":["translate-none"],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",b,v]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",b,v]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[S,ye,oe,Ye]}],stroke:[{stroke:["none",...x()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function K(...e){return pn(pt(e))}const At=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Nt=pt,Ot=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Nt(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(u=>{const m=r==null?void 0:r[u],p=a==null?void 0:a[u];if(m===null)return null;const g=At(m)||At(p);return o[u][g]}),s=r&&Object.entries(r).reduce((u,m)=>{let[p,g]=m;return g===void 0||(u[p]=g),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,m)=>{let{class:p,className:g,...E}=m;return Object.entries(E).every(R=>{let[f,y]=R;return Array.isArray(y)?y.includes({...a,...s}[f]):{...a,...s}[f]===y})?[...u,p,g]:u},[]);return Nt(e,i,c,r==null?void 0:r.class,r==null?void 0:r.className)},gn=Ot("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-offset-2",{variants:{variant:{default:"bg-black text-sm font-normal text-white shadow-sm hover:bg-black-soft focus-visible:ring-black",primary:"bg-neutral-99 text-sm font-normal text-neutral-70 hover:bg-neutral-99 focus-visible:ring-bg-neutral-99",outline:"bg-transparent text-black hover:bg-surface focus-visible:ring-4 focus-visible:ring-bg-surface border border-black-soft"},size:{default:"h-9 px-4 py-2",sm:"h-8 px-3 text-xs",lg:"h-10 px-6",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}});function vn({className:e,variant:t,size:r,asChild:n=!1,children:o,...a}){const i=n?ft:"button";return w.jsx(i,{"data-slot":"button",className:K(gn({variant:t,size:r}),e),...a,children:o})}function Q(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function bn(e,t){const r=l.createContext(t),n=a=>{const{children:i,...s}=a,c=l.useMemo(()=>s,Object.values(s));return w.jsx(r.Provider,{value:c,children:i})};n.displayName=e+"Provider";function o(a){const i=l.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function hn(e,t=[]){let r=[];function n(a,i){const s=l.createContext(i),c=r.length;r=[...r,i];const u=p=>{var k;const{scope:g,children:E,...R}=p,f=((k=g==null?void 0:g[e])==null?void 0:k[c])||s,y=l.useMemo(()=>R,Object.values(R));return w.jsx(f.Provider,{value:y,children:E})};u.displayName=a+"Provider";function m(p,g){var f;const E=((f=g==null?void 0:g[e])==null?void 0:f[c])||s,R=l.useContext(E);if(R)return R;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[u,m]}const o=()=>{const a=r.map(i=>l.createContext(i));return function(s){const c=(s==null?void 0:s[e])||a;return l.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[n,yn(o,...t)]}function yn(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=n.reduce((s,{useScope:c,scopeName:u})=>{const p=c(a)[`__scope${u}`];return{...s,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var we=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},wn=l[" useId ".trim().toString()]||(()=>{}),xn=0;function Xe(e){const[t,r]=l.useState(wn());return we(()=>{r(n=>n??String(xn++))},[e]),e||(t?`radix-${t}`:"")}var En=l[" useInsertionEffect ".trim().toString()]||we;function kn({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,i]=Cn({defaultProp:t,onChange:r}),s=e!==void 0,c=s?e:o;{const m=l.useRef(e!==void 0);l.useEffect(()=>{const p=m.current;p!==s&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=s},[s,n])}const u=l.useCallback(m=>{var p;if(s){const g=Sn(m)?m(e):m;g!==e&&((p=i.current)==null||p.call(i,g))}else a(m)},[s,e,a,i]);return[c,u]}function Cn({defaultProp:e,onChange:t}){const[r,n]=l.useState(e),o=l.useRef(r),a=l.useRef(t);return En(()=>{a.current=t},[t]),l.useEffect(()=>{var i;o.current!==r&&((i=a.current)==null||i.call(a,r),o.current=r)},[r,o]),[r,n,a]}function Sn(e){return typeof e=="function"}var Rn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],q=Rn.reduce((e,t)=>{const r=We(`Primitive.${t}`),n=l.forwardRef((o,a)=>{const{asChild:i,...s}=o,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(c,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Pn(e,t){e&&Pr.flushSync(()=>e.dispatchEvent(t))}function xe(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Tn(e,t=globalThis==null?void 0:globalThis.document){const r=xe(e);l.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var An="DismissableLayer",He="dismissableLayer.update",Nn="dismissableLayer.pointerDownOutside",On="dismissableLayer.focusOutside",_t,Dt=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mt=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...c}=e,u=l.useContext(Dt),[m,p]=l.useState(null),g=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=l.useState({}),R=ne(t,P=>p(P)),f=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),k=f.indexOf(y),N=m?f.indexOf(m):-1,O=u.layersWithOutsidePointerEventsDisabled.size>0,T=N>=k,_=Mn(P=>{const h=P.target,W=[...u.branches].some(te=>te.contains(h));!T||W||(o==null||o(P),i==null||i(P),P.defaultPrevented||s==null||s())},g),F=In(P=>{const h=P.target;[...u.branches].some(te=>te.contains(h))||(a==null||a(P),i==null||i(P),P.defaultPrevented||s==null||s())},g);return Tn(P=>{N===u.layers.size-1&&(n==null||n(P),!P.defaultPrevented&&s&&(P.preventDefault(),s()))},g),l.useEffect(()=>{if(m)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(_t=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(m)),u.layers.add(m),It(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=_t)}},[m,g,r,u]),l.useEffect(()=>()=>{m&&(u.layers.delete(m),u.layersWithOutsidePointerEventsDisabled.delete(m),It())},[m,u]),l.useEffect(()=>{const P=()=>E({});return document.addEventListener(He,P),()=>document.removeEventListener(He,P)},[]),w.jsx(q.div,{...c,ref:R,style:{pointerEvents:O?T?"auto":"none":void 0,...e.style},onFocusCapture:Q(e.onFocusCapture,F.onFocusCapture),onBlurCapture:Q(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:Q(e.onPointerDownCapture,_.onPointerDownCapture)})});Mt.displayName=An;var _n="DismissableLayerBranch",Dn=l.forwardRef((e,t)=>{const r=l.useContext(Dt),n=l.useRef(null),o=ne(t,n);return l.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),w.jsx(q.div,{...e,ref:o})});Dn.displayName=_n;function Mn(e,t=globalThis==null?void 0:globalThis.document){const r=xe(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let c=function(){jt(Nn,r,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function In(e,t=globalThis==null?void 0:globalThis.document){const r=xe(e),n=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!n.current&&jt(On,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function It(){const e=new CustomEvent(He);document.dispatchEvent(e)}function jt(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Pn(o,a):o.dispatchEvent(a)}var Ke="focusScope.autoFocusOnMount",qe="focusScope.autoFocusOnUnmount",Lt={bubbles:!1,cancelable:!0},jn="FocusScope",Ft=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,c]=l.useState(null),u=xe(o),m=xe(a),p=l.useRef(null),g=ne(t,f=>c(f)),E=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let f=function(O){if(E.paused||!s)return;const T=O.target;s.contains(T)?p.current=T:ee(p.current,{select:!0})},y=function(O){if(E.paused||!s)return;const T=O.relatedTarget;T!==null&&(s.contains(T)||ee(p.current,{select:!0}))},k=function(O){if(document.activeElement===document.body)for(const _ of O)_.removedNodes.length>0&&ee(s)};document.addEventListener("focusin",f),document.addEventListener("focusout",y);const N=new MutationObserver(k);return s&&N.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",y),N.disconnect()}}},[n,s,E.paused]),l.useEffect(()=>{if(s){Bt.add(E);const f=document.activeElement;if(!s.contains(f)){const k=new CustomEvent(Ke,Lt);s.addEventListener(Ke,u),s.dispatchEvent(k),k.defaultPrevented||(Ln($n(zt(s)),{select:!0}),document.activeElement===f&&ee(s))}return()=>{s.removeEventListener(Ke,u),setTimeout(()=>{const k=new CustomEvent(qe,Lt);s.addEventListener(qe,m),s.dispatchEvent(k),k.defaultPrevented||ee(f??document.body,{select:!0}),s.removeEventListener(qe,m),Bt.remove(E)},0)}}},[s,u,m,E]);const R=l.useCallback(f=>{if(!r&&!n||E.paused)return;const y=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,k=document.activeElement;if(y&&k){const N=f.currentTarget,[O,T]=Fn(N);O&&T?!f.shiftKey&&k===T?(f.preventDefault(),r&&ee(O,{select:!0})):f.shiftKey&&k===O&&(f.preventDefault(),r&&ee(T,{select:!0})):k===N&&f.preventDefault()}},[r,n,E.paused]);return w.jsx(q.div,{tabIndex:-1,...i,ref:g,onKeyDown:R})});Ft.displayName=jn;function Ln(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ee(n,{select:t}),document.activeElement!==r)return}function Fn(e){const t=zt(e),r=Wt(t,e),n=Wt(t.reverse(),e);return[r,n]}function zt(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Wt(e,t){for(const r of e)if(!zn(r,{upTo:t}))return r}function zn(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Wn(e){return e instanceof HTMLInputElement&&"select"in e}function ee(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Wn(e)&&t&&e.select()}}var Bt=Bn();function Bn(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=$t(e,t),e.unshift(t)},remove(t){var r;e=$t(e,t),(r=e[0])==null||r.resume()}}}function $t(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function $n(e){return e.filter(t=>t.tagName!=="A")}var Un="Portal",Ut=l.forwardRef((e,t)=>{var s;const{container:r,...n}=e,[o,a]=l.useState(!1);we(()=>a(!0),[]);const i=r||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?st.createPortal(w.jsx(q.div,{...n,ref:t}),i):null});Ut.displayName=Un;function Vn(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var Re=e=>{const{present:t,children:r}=e,n=Gn(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),a=ne(n.ref,Yn(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:a}):null};Re.displayName="Presence";function Gn(e){const[t,r]=l.useState(),n=l.useRef(null),o=l.useRef(e),a=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=Vn(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=Pe(n.current);a.current=s==="mounted"?u:"none"},[s]),we(()=>{const u=n.current,m=o.current;if(m!==e){const g=a.current,E=Pe(u);e?c("MOUNT"):E==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(m&&g!==E?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),we(()=>{if(t){let u;const m=t.ownerDocument.defaultView??window,p=E=>{const f=Pe(n.current).includes(CSS.escape(E.animationName));if(E.target===t&&f&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},g=E=>{E.target===t&&(a.current=Pe(n.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{m.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function Pe(e){return(e==null?void 0:e.animationName)||"none"}function Yn(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ze=0;function Xn(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Vt()),document.body.insertAdjacentElement("beforeend",e[1]??Vt()),Ze++,()=>{Ze===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ze--}},[])}function Vt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Y=function(){return Y=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Y.apply(this,arguments)};function Gt(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Hn(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Te="right-scroll-bar-position",Ae="width-before-scroll-bar",Kn="with-scroll-bars-hidden",qn="--removed-body-scroll-bar-size";function Je(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Zn(e,t){var r=$.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Jn=typeof window<"u"?l.useLayoutEffect:l.useEffect,Yt=new WeakMap;function Qn(e,t){var r=Zn(null,function(n){return e.forEach(function(o){return Je(o,n)})});return Jn(function(){var n=Yt.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(s){a.has(s)||Je(s,null)}),a.forEach(function(s){o.has(s)||Je(s,i)})}Yt.set(r,e)},[e]),r}function eo(e){return e}function to(e,t){t===void 0&&(t=eo);var r=[],n=!1,o={read:function(){if(n)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(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var s=r;r=[],s.forEach(a),i=r}var c=function(){var m=i;i=[],m.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(m){i.push(m),u()},filter:function(m){return i=i.filter(m),r}}}};return o}function ro(e){e===void 0&&(e={});var t=to(null);return t.options=Y({async:!0,ssr:!1},e),t}var Xt=function(e){var t=e.sideCar,r=Gt(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return l.createElement(n,Y({},r))};Xt.isSideCarExport=!0;function no(e,t){return e.useMedium(t),Xt}var Ht=ro(),Qe=function(){},Ne=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:Qe,onWheelCapture:Qe,onTouchMoveCapture:Qe}),o=n[0],a=n[1],i=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,m=e.enabled,p=e.shards,g=e.sideCar,E=e.noRelative,R=e.noIsolation,f=e.inert,y=e.allowPinchZoom,k=e.as,N=k===void 0?"div":k,O=e.gapMode,T=Gt(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=g,F=Qn([r,t]),P=Y(Y({},T),o);return l.createElement(l.Fragment,null,m&&l.createElement(_,{sideCar:Ht,removeScrollBar:u,shards:p,noRelative:E,noIsolation:R,inert:f,setCallbacks:a,allowPinchZoom:!!y,lockRef:r,gapMode:O}),i?l.cloneElement(l.Children.only(s),Y(Y({},P),{ref:F})):l.createElement(N,Y({},P,{className:c,ref:F}),s))});Ne.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ne.classNames={fullWidth:Ae,zeroRight:Te};var oo=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ao(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=oo();return t&&e.setAttribute("nonce",t),e}function so(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function io(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var lo=function(){var e=0,t=null;return{add:function(r){e==0&&(t=ao())&&(so(t,r),io(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},co=function(){var e=lo();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Kt=function(){var e=co(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},uo={left:0,top:0,right:0,gap:0},et=function(e){return parseInt(e||"",10)||0},fo=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[et(r),et(n),et(o)]},mo=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return uo;var t=fo(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},po=Kt(),de="data-scroll-locked",go=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),`
23
- .`.concat(Kn,` {
24
- overflow: hidden `).concat(n,`;
25
- padding-right: `).concat(s,"px ").concat(n,`;
22
+ <%s key={someKey} {...props} />`,D,X,Q,X),Y[X+D]=!0)}if(X=null,F!==void 0&&(n(F),X=""+F),s(N)&&(n(N.key),X=""+N.key),"key"in N){F={};for(var ae in N)ae!=="key"&&(F[ae]=N[ae])}else F=N;return X&&a(F,typeof b=="function"?b.displayName||b.name||"Unknown":b),l(b,X,K,V,o(),F,Ee,z)}function f(b){typeof b=="object"&&b!==null&&b.$$typeof===p&&b._store&&(b._store.validated=1)}var g=ee,p=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),k=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),$=Symbol.for("react.client.reference"),G=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,B=Array.isArray,I=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(b){return b()}};var U,L={},j=g["react-stack-bottom-frame"].bind(g,i)(),x=I(r(i)),Y={};Ve.Fragment=m,Ve.jsx=function(b,N,F,D,V){var K=1e4>G.recentlyCreatedOwnerStacks++;return d(b,N,F,!1,D,V,K?Error("react-stack-top-frame"):j,K?I(r(b)):x)},Ve.jsxs=function(b,N,F,D,V){var K=1e4>G.recentlyCreatedOwnerStacks++;return d(b,N,F,!0,D,V,K?Error("react-stack-top-frame"):j,K?I(r(b)):x)}}()),Ve}process.env.NODE_ENV==="production"?Ct.exports=Co():Ct.exports=ko();var w=Ct.exports;function gn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function hn(...e){return t=>{let n=!1;const r=e.map(o=>{const i=gn(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():gn(e[o],null)}}}}function re(...e){return u.useCallback(hn(...e),e)}function kt(e){const t=So(e),n=u.forwardRef((r,o)=>{const{children:i,...s}=r,a=u.Children.toArray(i),c=a.find(Ao);if(c){const l=c.props.children,d=a.map(f=>f===c?u.Children.count(l)>1?u.Children.only(null):u.isValidElement(l)?l.props.children:null:f);return w.jsx(t,{...s,ref:o,children:u.isValidElement(l)?u.cloneElement(l,void 0,d):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var vn=kt("Slot");function So(e){const t=u.forwardRef((n,r)=>{const{children:o,...i}=n;if(u.isValidElement(o)){const s=To(o),a=Po(i,o.props);return o.type!==u.Fragment&&(a.ref=r?hn(r,s):s),u.cloneElement(o,a)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bn=Symbol("radix.slottable");function Ro(e){const t=({children:n})=>w.jsx(w.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=bn,t}function Ao(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===bn}function Po(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const c=i(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function To(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function yn(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=yn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function wn(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=yn(e))&&(r&&(r+=" "),r+=t);return r}const St="-",Oo=e=>{const t=_o(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(St);return a[0]===""&&a.length!==1&&a.shift(),xn(a,t)||No(s)},getConflictingClassGroupIds:(s,a)=>{const c=n[s]||[];return a&&r[s]?[...c,...r[s]]:c}}},xn=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?xn(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(St);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},En=/^\[(.+)\]$/,No=e=>{if(En.test(e)){const t=En.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},_o=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Rt(n[o],r,o,t);return r},Rt=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Cn(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(Do(o)){Rt(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Rt(s,Cn(t,i),n,r)})})},Cn=(e,t)=>{let n=e;return t.split(St).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Do=e=>e.isThemeGetter,Mo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},At="!",Pt=":",Lo=Pt.length,jo=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,c=0,l;for(let h=0;h<o.length;h++){let m=o[h];if(s===0&&a===0){if(m===Pt){i.push(o.slice(c,h)),c=h+Lo;continue}if(m==="/"){l=h;continue}}m==="["?s++:m==="]"?s--:m==="("?a++:m===")"&&a--}const d=i.length===0?o:o.substring(c),f=Io(d),g=f!==d,p=l&&l>c?l-c:void 0;return{modifiers:i,hasImportantModifier:g,baseClassName:f,maybePostfixModifierPosition:p}};if(t){const o=t+Pt,i=r;r=s=>s.startsWith(o)?i(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},Io=e=>e.endsWith(At)?e.substring(0,e.length-1):e.startsWith(At)?e.substring(1):e,Fo=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let i=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...i.sort(),s),i=[]):i.push(s)}),o.push(...i.sort()),o}},$o=e=>({cache:Mo(e.cacheSize),parseClassName:jo(e),sortModifiers:Fo(e),...Oo(e)}),zo=/\s+/,Wo=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(zo);let c="";for(let l=a.length-1;l>=0;l-=1){const d=a[l],{isExternal:f,modifiers:g,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:m}=n(d);if(f){c=d+(c.length>0?" "+c:c);continue}let v=!!m,y=r(v?h.substring(0,m):h);if(!y){if(!v){c=d+(c.length>0?" "+c:c);continue}if(y=r(h),!y){c=d+(c.length>0?" "+c:c);continue}v=!1}const E=i(g).join(":"),k=p?E+At:E,C=k+y;if(s.includes(C))continue;s.push(C);const S=o(y,v);for(let O=0;O<S.length;++O){const T=S[O];s.push(k+T)}c=d+(c.length>0?" "+c:c)}return c};function Bo(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=kn(t))&&(r&&(r+=" "),r+=n);return r}const kn=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=kn(e[r]))&&(n&&(n+=" "),n+=t);return n};function Vo(e,...t){let n,r,o,i=s;function s(c){const l=t.reduce((d,f)=>f(d),e());return n=$o(l),r=n.cache.get,o=n.cache.set,i=a,a(c)}function a(c){const l=r(c);if(l)return l;const d=Wo(c,n);return o(c,d),d}return function(){return i(Bo.apply(null,arguments))}}const q=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Sn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Rn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ho=/^\d+\/\d+$/,Uo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Go=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Yo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Xo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pe=e=>Ho.test(e),_=e=>!!e&&!Number.isNaN(Number(e)),ve=e=>!!e&&Number.isInteger(Number(e)),Tt=e=>e.endsWith("%")&&_(e.slice(0,-1)),pe=e=>Uo.test(e),Ko=()=>!0,Zo=e=>Go.test(e)&&!Yo.test(e),An=()=>!1,Jo=e=>Xo.test(e),Qo=e=>qo.test(e),ei=e=>!A(e)&&!P(e),ti=e=>Te(e,_n,An),A=e=>Sn.test(e),ke=e=>Te(e,Dn,Zo),Ot=e=>Te(e,si,_),Pn=e=>Te(e,On,An),ni=e=>Te(e,Nn,Qo),Ze=e=>Te(e,Mn,Jo),P=e=>Rn.test(e),He=e=>Oe(e,Dn),ri=e=>Oe(e,ai),Tn=e=>Oe(e,On),oi=e=>Oe(e,_n),ii=e=>Oe(e,Nn),Je=e=>Oe(e,Mn,!0),Te=(e,t,n)=>{const r=Sn.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Oe=(e,t,n=!1)=>{const r=Rn.exec(e);return r?r[1]?t(r[1]):n:!1},On=e=>e==="position"||e==="percentage",Nn=e=>e==="image"||e==="url",_n=e=>e==="length"||e==="size"||e==="bg-size",Dn=e=>e==="length",si=e=>e==="number",ai=e=>e==="family-name",Mn=e=>e==="shadow",ci=Vo(()=>{const e=q("color"),t=q("font"),n=q("text"),r=q("font-weight"),o=q("tracking"),i=q("leading"),s=q("breakpoint"),a=q("container"),c=q("spacing"),l=q("radius"),d=q("shadow"),f=q("inset-shadow"),g=q("text-shadow"),p=q("drop-shadow"),h=q("blur"),m=q("perspective"),v=q("aspect"),y=q("ease"),E=q("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...C(),P,A],O=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],R=()=>[P,A,c],M=()=>[Pe,"full","auto",...R()],$=()=>[ve,"none","subgrid",P,A],G=()=>["auto",{span:["full",ve,P,A]},ve,P,A],H=()=>[ve,"auto",P,A],B=()=>["auto","min","max","fr",P,A],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...R()],j=()=>[Pe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],x=()=>[e,P,A],Y=()=>[...C(),Tn,Pn,{position:[P,A]}],b=()=>["no-repeat",{repeat:["","x","y","space","round"]}],N=()=>["auto","cover","contain",oi,ti,{size:[P,A]}],F=()=>[Tt,He,ke],D=()=>["","none","full",l,P,A],V=()=>["",_,He,ke],K=()=>["solid","dashed","dotted","double"],Ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>[_,Tt,Tn,Pn],X=()=>["","none",h,P,A],Q=()=>["none",_,P,A],ae=()=>["none",_,P,A],Ce=()=>[_,P,A],Ae=()=>[Pe,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[pe],breakpoint:[pe],color:[Ko],container:[pe],"drop-shadow":[pe],ease:["in","out","in-out"],font:[ei],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[pe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[pe],shadow:[pe],spacing:["px",_],text:[pe],"text-shadow":[pe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Pe,A,P,v]}],container:["container"],columns:[{columns:[_,A,P,a]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{start:M()}],end:[{end:M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[ve,"auto",P,A]}],basis:[{basis:[Pe,"full","auto",a,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_,Pe,"auto","initial","none",A]}],grow:[{grow:["",_,P,A]}],shrink:[{shrink:["",_,P,A]}],order:[{order:[ve,"first","last","none",P,A]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[a,"screen",...j()]}],"min-w":[{"min-w":[a,"screen","none",...j()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",n,He,ke]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,P,Ot]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Tt,A]}],"font-family":[{font:[ri,A,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,P,A]}],"line-clamp":[{"line-clamp":[_,"none",P,Ot]}],leading:[{leading:[i,...R()]}],"list-image":[{"list-image":["none",P,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:[_,"from-font","auto",P,ke]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[_,"auto",P,A]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P,A]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",P,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Y()}],"bg-repeat":[{bg:b()}],"bg-size":[{bg:N()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ve,P,A],radial:["",P,A],conic:[ve,P,A]},ii,ni]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...K(),"hidden","none"]}],"divide-style":[{divide:[...K(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...K(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_,P,A]}],"outline-w":[{outline:["",_,He,ke]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",d,Je,Ze]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",f,Je,Ze]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[_,ke]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",g,Je,Ze]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[_,P,A]}],"mix-blend":[{"mix-blend":[...Ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ee()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[_]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[P,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[_]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Y()}],"mask-repeat":[{mask:b()}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,A]}],filter:[{filter:["","none",P,A]}],blur:[{blur:X()}],brightness:[{brightness:[_,P,A]}],contrast:[{contrast:[_,P,A]}],"drop-shadow":[{"drop-shadow":["","none",p,Je,Ze]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",_,P,A]}],"hue-rotate":[{"hue-rotate":[_,P,A]}],invert:[{invert:["",_,P,A]}],saturate:[{saturate:[_,P,A]}],sepia:[{sepia:["",_,P,A]}],"backdrop-filter":[{"backdrop-filter":["","none",P,A]}],"backdrop-blur":[{"backdrop-blur":X()}],"backdrop-brightness":[{"backdrop-brightness":[_,P,A]}],"backdrop-contrast":[{"backdrop-contrast":[_,P,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_,P,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_,P,A]}],"backdrop-invert":[{"backdrop-invert":["",_,P,A]}],"backdrop-opacity":[{"backdrop-opacity":[_,P,A]}],"backdrop-saturate":[{"backdrop-saturate":[_,P,A]}],"backdrop-sepia":[{"backdrop-sepia":["",_,P,A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_,"initial",P,A]}],ease:[{ease:["linear","initial",y,P,A]}],delay:[{delay:[_,P,A]}],animate:[{animate:["none",E,P,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,P,A]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:Q()}],"rotate-x":[{"rotate-x":Q()}],"rotate-y":[{"rotate-y":Q()}],"rotate-z":[{"rotate-z":Q()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[P,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ae()}],"translate-x":[{"translate-x":Ae()}],"translate-y":[{"translate-y":Ae()}],"translate-z":[{"translate-z":Ae()}],"translate-none":["translate-none"],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",P,A]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",P,A]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[_,He,ke,Ot]}],stroke:[{stroke:["none",...x()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function ce(...e){return ci(wn(e))}const Ln=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,jn=wn,In=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return jn(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(l=>{const d=n==null?void 0:n[l],f=i==null?void 0:i[l];if(d===null)return null;const g=Ln(d)||Ln(f);return o[l][g]}),a=n&&Object.entries(n).reduce((l,d)=>{let[f,g]=d;return g===void 0||(l[f]=g),l},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,d)=>{let{class:f,className:g,...p}=d;return Object.entries(p).every(h=>{let[m,v]=h;return Array.isArray(v)?v.includes({...i,...a}[m]):{...i,...a}[m]===v})?[...l,f,g]:l},[]);return jn(e,s,c,n==null?void 0:n.class,n==null?void 0:n.className)},li=In("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-offset-2",{variants:{variant:{default:"bg-black text-sm font-normal text-white shadow-sm hover:bg-black-soft focus-visible:ring-black",primary:"bg-neutral-99 text-sm font-normal text-neutral-70 hover:bg-neutral-99 focus-visible:ring-bg-neutral-99",outline:"bg-transparent text-black hover:bg-surface focus-visible:ring-4 focus-visible:ring-bg-surface border border-black-soft"},size:{default:"h-9 px-4 py-2",sm:"h-8 px-3 text-xs",lg:"h-10 px-6",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}});function ui({className:e,variant:t,size:n,asChild:r=!1,children:o,...i}){const s=r?vn:"button";return w.jsx(s,{"data-slot":"button",className:ce(li({variant:t,size:n}),e),...i,children:o})}function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function di(e,t){const n=u.createContext(t),r=i=>{const{children:s,...a}=i,c=u.useMemo(()=>a,Object.values(a));return w.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(i){const s=u.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Nt(e,t=[]){let n=[];function r(i,s){const a=u.createContext(s),c=n.length;n=[...n,s];const l=f=>{var y;const{scope:g,children:p,...h}=f,m=((y=g==null?void 0:g[e])==null?void 0:y[c])||a,v=u.useMemo(()=>h,Object.values(h));return w.jsx(m.Provider,{value:v,children:p})};l.displayName=i+"Provider";function d(f,g){var m;const p=((m=g==null?void 0:g[e])==null?void 0:m[c])||a,h=u.useContext(p);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[l,d]}const o=()=>{const i=n.map(s=>u.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return u.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,fi(o,...t)]}function fi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const f=c(i)[`__scope${l}`];return{...a,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var be=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},mi=u[" useId ".trim().toString()]||(()=>{}),pi=0;function Qe(e){const[t,n]=u.useState(mi());return be(()=>{n(r=>r??String(pi++))},[e]),e||(t?`radix-${t}`:"")}var gi=u[" useInsertionEffect ".trim().toString()]||be;function Fn({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=hi({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const d=u.useRef(e!==void 0);u.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const l=u.useCallback(d=>{var f;if(a){const g=vi(d)?d(e):d;g!==e&&((f=s.current)==null||f.call(s,g))}else i(d)},[a,e,i,s]);return[c,l]}function hi({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),i=u.useRef(t);return gi(()=>{i.current=t},[t]),u.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function vi(e){return typeof e=="function"}var bi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],J=bi.reduce((e,t)=>{const n=kt(`Primitive.${t}`),r=u.forwardRef((o,i)=>{const{asChild:s,...a}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function yi(e,t){e&&fn.flushSync(()=>e.dispatchEvent(t))}function Ne(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function wi(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var xi="DismissableLayer",_t="dismissableLayer.update",Ei="dismissableLayer.pointerDownOutside",Ci="dismissableLayer.focusOutside",$n,zn=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dt=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=u.useContext(zn),[d,f]=u.useState(null),g=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=u.useState({}),h=re(t,T=>f(T)),m=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(v),E=d?m.indexOf(d):-1,k=l.layersWithOutsidePointerEventsDisabled.size>0,C=E>=y,S=Ri(T=>{const R=T.target,M=[...l.branches].some($=>$.contains(R));!C||M||(o==null||o(T),s==null||s(T),T.defaultPrevented||a==null||a())},g),O=Ai(T=>{const R=T.target;[...l.branches].some($=>$.contains(R))||(i==null||i(T),s==null||s(T),T.defaultPrevented||a==null||a())},g);return wi(T=>{E===l.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},g),u.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&($n=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),Wn(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=$n)}},[d,g,n,l]),u.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),Wn())},[d,l]),u.useEffect(()=>{const T=()=>p({});return document.addEventListener(_t,T),()=>document.removeEventListener(_t,T)},[]),w.jsx(J.div,{...c,ref:h,style:{pointerEvents:k?C?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,S.onPointerDownCapture)})});Dt.displayName=xi;var ki="DismissableLayerBranch",Si=u.forwardRef((e,t)=>{const n=u.useContext(zn),r=u.useRef(null),o=re(t,r);return u.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(J.div,{...e,ref:o})});Si.displayName=ki;function Ri(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){Bn(Ei,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ai(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e),r=u.useRef(!1);return u.useEffect(()=>{const o=i=>{i.target&&!r.current&&Bn(Ci,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Wn(){const e=new CustomEvent(_t);document.dispatchEvent(e)}function Bn(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?yi(o,i):o.dispatchEvent(i)}var Mt="focusScope.autoFocusOnMount",Lt="focusScope.autoFocusOnUnmount",Vn={bubbles:!1,cancelable:!0},Pi="FocusScope",Hn=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=u.useState(null),l=Ne(o),d=Ne(i),f=u.useRef(null),g=re(t,m=>c(m)),p=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let m=function(k){if(p.paused||!a)return;const C=k.target;a.contains(C)?f.current=C:ye(f.current,{select:!0})},v=function(k){if(p.paused||!a)return;const C=k.relatedTarget;C!==null&&(a.contains(C)||ye(f.current,{select:!0}))},y=function(k){if(document.activeElement===document.body)for(const S of k)S.removedNodes.length>0&&ye(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",v);const E=new MutationObserver(y);return a&&E.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",v),E.disconnect()}}},[r,a,p.paused]),u.useEffect(()=>{if(a){Yn.add(p);const m=document.activeElement;if(!a.contains(m)){const y=new CustomEvent(Mt,Vn);a.addEventListener(Mt,l),a.dispatchEvent(y),y.defaultPrevented||(Ti(Mi(Un(a)),{select:!0}),document.activeElement===m&&ye(a))}return()=>{a.removeEventListener(Mt,l),setTimeout(()=>{const y=new CustomEvent(Lt,Vn);a.addEventListener(Lt,d),a.dispatchEvent(y),y.defaultPrevented||ye(m??document.body,{select:!0}),a.removeEventListener(Lt,d),Yn.remove(p)},0)}}},[a,l,d,p]);const h=u.useCallback(m=>{if(!n&&!r||p.paused)return;const v=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(v&&y){const E=m.currentTarget,[k,C]=Oi(E);k&&C?!m.shiftKey&&y===C?(m.preventDefault(),n&&ye(k,{select:!0})):m.shiftKey&&y===k&&(m.preventDefault(),n&&ye(C,{select:!0})):y===E&&m.preventDefault()}},[n,r,p.paused]);return w.jsx(J.div,{tabIndex:-1,...s,ref:g,onKeyDown:h})});Hn.displayName=Pi;function Ti(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ye(r,{select:t}),document.activeElement!==n)return}function Oi(e){const t=Un(e),n=Gn(t,e),r=Gn(t.reverse(),e);return[n,r]}function Un(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Gn(e,t){for(const n of e)if(!Ni(n,{upTo:t}))return n}function Ni(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function _i(e){return e instanceof HTMLInputElement&&"select"in e}function ye(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&_i(e)&&t&&e.select()}}var Yn=Di();function Di(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Xn(e,t),e.unshift(t)},remove(t){var n;e=Xn(e,t),(n=e[0])==null||n.resume()}}}function Xn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Mi(e){return e.filter(t=>t.tagName!=="A")}var Li="Portal",jt=u.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=u.useState(!1);be(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?un.createPortal(w.jsx(J.div,{...r,ref:t}),s):null});jt.displayName=Li;function ji(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var _e=e=>{const{present:t,children:n}=e,r=Ii(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),i=re(r.ref,Fi(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:i}):null};_e.displayName="Presence";function Ii(e){const[t,n]=u.useState(),r=u.useRef(null),o=u.useRef(e),i=u.useRef("none"),s=e?"mounted":"unmounted",[a,c]=ji(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const l=et(r.current);i.current=a==="mounted"?l:"none"},[a]),be(()=>{const l=r.current,d=o.current;if(d!==e){const g=i.current,p=et(l);e?c("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(d&&g!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),be(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,f=p=>{const m=et(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&m&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=p=>{p.target===t&&(i.current=et(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:u.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function et(e){return(e==null?void 0:e.animationName)||"none"}function Fi(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var It=0;function $i(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??qn()),document.body.insertAdjacentElement("beforeend",e[1]??qn()),It++,()=>{It===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),It--}},[])}function qn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var le=function(){return le=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},le.apply(this,arguments)};function Kn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function zi(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var tt="right-scroll-bar-position",nt="width-before-scroll-bar",Wi="with-scroll-bars-hidden",Bi="--removed-body-scroll-bar-size";function Ft(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Vi(e,t){var n=ee.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Hi=typeof window<"u"?u.useLayoutEffect:u.useEffect,Zn=new WeakMap;function Ui(e,t){var n=Vi(null,function(r){return e.forEach(function(o){return Ft(o,r)})});return Hi(function(){var r=Zn.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Ft(a,null)}),i.forEach(function(a){o.has(a)||Ft(a,s)})}Zn.set(n,e)},[e]),n}function Gi(e){return e}function Yi(e,t){t===void 0&&(t=Gi);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var c=function(){var d=s;s=[],d.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(d){s.push(d),l()},filter:function(d){return s=s.filter(d),n}}}};return o}function Xi(e){e===void 0&&(e={});var t=Yi(null);return t.options=le({async:!0,ssr:!1},e),t}var Jn=function(e){var t=e.sideCar,n=Kn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,le({},n))};Jn.isSideCarExport=!0;function qi(e,t){return e.useMedium(t),Jn}var Qn=Xi(),$t=function(){},rt=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:$t,onWheelCapture:$t,onTouchMoveCapture:$t}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,f=e.shards,g=e.sideCar,p=e.noRelative,h=e.noIsolation,m=e.inert,v=e.allowPinchZoom,y=e.as,E=y===void 0?"div":y,k=e.gapMode,C=Kn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=g,O=Ui([n,t]),T=le(le({},C),o);return u.createElement(u.Fragment,null,d&&u.createElement(S,{sideCar:Qn,removeScrollBar:l,shards:f,noRelative:p,noIsolation:h,inert:m,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:k}),s?u.cloneElement(u.Children.only(a),le(le({},T),{ref:O})):u.createElement(E,le({},T,{className:c,ref:O}),a))});rt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},rt.classNames={fullWidth:nt,zeroRight:tt};var Ki=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Zi(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ki();return t&&e.setAttribute("nonce",t),e}function Ji(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Qi(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var es=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Zi())&&(Ji(t,n),Qi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ts=function(){var e=es();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},er=function(){var e=ts(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ns={left:0,top:0,right:0,gap:0},zt=function(e){return parseInt(e||"",10)||0},rs=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[zt(n),zt(r),zt(o)]},os=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ns;var t=rs(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},is=er(),De="data-scroll-locked",ss=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
23
+ .`.concat(Wi,` {
24
+ overflow: hidden `).concat(r,`;
25
+ padding-right: `).concat(a,"px ").concat(r,`;
26
26
  }
27
- body[`).concat(de,`] {
28
- overflow: hidden `).concat(n,`;
27
+ body[`).concat(De,`] {
28
+ overflow: hidden `).concat(r,`;
29
29
  overscroll-behavior: contain;
30
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
30
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
31
31
  padding-left: `.concat(o,`px;
32
- padding-top: `).concat(a,`px;
33
- padding-right: `).concat(i,`px;
32
+ padding-top: `).concat(i,`px;
33
+ padding-right: `).concat(s,`px;
34
34
  margin-left:0;
35
35
  margin-top:0;
36
- margin-right: `).concat(s,"px ").concat(n,`;
37
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
36
+ margin-right: `).concat(a,"px ").concat(r,`;
37
+ `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
38
38
  }
39
39
 
40
- .`).concat(Te,` {
41
- right: `).concat(s,"px ").concat(n,`;
40
+ .`).concat(tt,` {
41
+ right: `).concat(a,"px ").concat(r,`;
42
42
  }
43
43
 
44
- .`).concat(Ae,` {
45
- margin-right: `).concat(s,"px ").concat(n,`;
44
+ .`).concat(nt,` {
45
+ margin-right: `).concat(a,"px ").concat(r,`;
46
46
  }
47
47
 
48
- .`).concat(Te," .").concat(Te,` {
49
- right: 0 `).concat(n,`;
48
+ .`).concat(tt," .").concat(tt,` {
49
+ right: 0 `).concat(r,`;
50
50
  }
51
51
 
52
- .`).concat(Ae," .").concat(Ae,` {
53
- margin-right: 0 `).concat(n,`;
52
+ .`).concat(nt," .").concat(nt,` {
53
+ margin-right: 0 `).concat(r,`;
54
54
  }
55
55
 
56
- body[`).concat(de,`] {
57
- `).concat(qn,": ").concat(s,`px;
56
+ body[`).concat(De,`] {
57
+ `).concat(Bi,": ").concat(a,`px;
58
58
  }
59
- `)},qt=function(){var e=parseInt(document.body.getAttribute(de)||"0",10);return isFinite(e)?e:0},vo=function(){l.useEffect(function(){return document.body.setAttribute(de,(qt()+1).toString()),function(){var e=qt()-1;e<=0?document.body.removeAttribute(de):document.body.setAttribute(de,e.toString())}},[])},bo=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;vo();var a=l.useMemo(function(){return mo(o)},[o]);return l.createElement(po,{styles:go(a,!t,o,r?"":"!important")})},tt=!1;if(typeof window<"u")try{var Oe=Object.defineProperty({},"passive",{get:function(){return tt=!0,!0}});window.addEventListener("test",Oe,Oe),window.removeEventListener("test",Oe,Oe)}catch{tt=!1}var fe=tt?{passive:!1}:!1,ho=function(e){return e.tagName==="TEXTAREA"},Zt=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!ho(e)&&r[t]==="visible")},yo=function(e){return Zt(e,"overflowY")},wo=function(e){return Zt(e,"overflowX")},Jt=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Qt(e,n);if(o){var a=er(e,n),i=a[1],s=a[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},xo=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Eo=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Qt=function(e,t){return e==="v"?yo(t):wo(t)},er=function(e,t){return e==="v"?xo(t):Eo(t)},ko=function(e,t){return e==="h"&&t==="rtl"?-1:1},Co=function(e,t,r,n,o){var a=ko(e,window.getComputedStyle(t).direction),i=a*n,s=r.target,c=t.contains(s),u=!1,m=i>0,p=0,g=0;do{if(!s)break;var E=er(e,s),R=E[0],f=E[1],y=E[2],k=f-y-a*R;(R||k)&&Qt(e,s)&&(p+=k,g+=R);var N=s.parentNode;s=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(m&&Math.abs(p)<1||!m&&Math.abs(g)<1)&&(u=!0),u},_e=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tr=function(e){return[e.deltaX,e.deltaY]},rr=function(e){return e&&"current"in e?e.current:e},So=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ro=function(e){return`
59
+ `)},tr=function(){var e=parseInt(document.body.getAttribute(De)||"0",10);return isFinite(e)?e:0},as=function(){u.useEffect(function(){return document.body.setAttribute(De,(tr()+1).toString()),function(){var e=tr()-1;e<=0?document.body.removeAttribute(De):document.body.setAttribute(De,e.toString())}},[])},cs=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;as();var i=u.useMemo(function(){return os(o)},[o]);return u.createElement(is,{styles:ss(i,!t,o,n?"":"!important")})},Wt=!1;if(typeof window<"u")try{var ot=Object.defineProperty({},"passive",{get:function(){return Wt=!0,!0}});window.addEventListener("test",ot,ot),window.removeEventListener("test",ot,ot)}catch{Wt=!1}var Me=Wt?{passive:!1}:!1,ls=function(e){return e.tagName==="TEXTAREA"},nr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ls(e)&&n[t]==="visible")},us=function(e){return nr(e,"overflowY")},ds=function(e){return nr(e,"overflowX")},rr=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=or(e,r);if(o){var i=ir(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},fs=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ms=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},or=function(e,t){return e==="v"?us(t):ds(t)},ir=function(e,t){return e==="v"?fs(t):ms(t)},ps=function(e,t){return e==="h"&&t==="rtl"?-1:1},gs=function(e,t,n,r,o){var i=ps(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,c=t.contains(a),l=!1,d=s>0,f=0,g=0;do{if(!a)break;var p=ir(e,a),h=p[0],m=p[1],v=p[2],y=m-v-i*h;(h||y)&&or(e,a)&&(f+=y,g+=h);var E=a.parentNode;a=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&Math.abs(f)<1||!d&&Math.abs(g)<1)&&(l=!0),l},it=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sr=function(e){return[e.deltaX,e.deltaY]},ar=function(e){return e&&"current"in e?e.current:e},hs=function(e,t){return e[0]===t[0]&&e[1]===t[1]},vs=function(e){return`
60
60
  .block-interactivity-`.concat(e,` {pointer-events: none;}
61
61
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
62
- `)},Po=0,me=[];function To(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),o=l.useState(Po++)[0],a=l.useState(Kt)[0],i=l.useRef(e);l.useEffect(function(){i.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Hn([e.lockRef.current],(e.shards||[]).map(rr),!0).filter(Boolean);return f.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=l.useCallback(function(f,y){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!i.current.allowPinchZoom;var k=_e(f),N=r.current,O="deltaX"in f?f.deltaX:N[0]-k[0],T="deltaY"in f?f.deltaY:N[1]-k[1],_,F=f.target,P=Math.abs(O)>Math.abs(T)?"h":"v";if("touches"in f&&P==="h"&&F.type==="range")return!1;var h=Jt(P,F);if(!h)return!0;if(h?_=P:(_=P==="v"?"h":"v",h=Jt(P,F)),!h)return!1;if(!n.current&&"changedTouches"in f&&(O||T)&&(n.current=_),!_)return!0;var W=n.current||_;return Co(W,y,f,W==="h"?O:T)},[]),c=l.useCallback(function(f){var y=f;if(!(!me.length||me[me.length-1]!==a)){var k="deltaY"in y?tr(y):_e(y),N=t.current.filter(function(_){return _.name===y.type&&(_.target===y.target||y.target===_.shadowParent)&&So(_.delta,k)})[0];if(N&&N.should){y.cancelable&&y.preventDefault();return}if(!N){var O=(i.current.shards||[]).map(rr).filter(Boolean).filter(function(_){return _.contains(y.target)}),T=O.length>0?s(y,O[0]):!i.current.noIsolation;T&&y.cancelable&&y.preventDefault()}}},[]),u=l.useCallback(function(f,y,k,N){var O={name:f,delta:y,target:k,should:N,shadowParent:Ao(k)};t.current.push(O),setTimeout(function(){t.current=t.current.filter(function(T){return T!==O})},1)},[]),m=l.useCallback(function(f){r.current=_e(f),n.current=void 0},[]),p=l.useCallback(function(f){u(f.type,tr(f),f.target,s(f,e.lockRef.current))},[]),g=l.useCallback(function(f){u(f.type,_e(f),f.target,s(f,e.lockRef.current))},[]);l.useEffect(function(){return me.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",c,fe),document.addEventListener("touchmove",c,fe),document.addEventListener("touchstart",m,fe),function(){me=me.filter(function(f){return f!==a}),document.removeEventListener("wheel",c,fe),document.removeEventListener("touchmove",c,fe),document.removeEventListener("touchstart",m,fe)}},[]);var E=e.removeScrollBar,R=e.inert;return l.createElement(l.Fragment,null,R?l.createElement(a,{styles:Ro(o)}):null,E?l.createElement(bo,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ao(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const No=no(Ht,To);var nr=l.forwardRef(function(e,t){return l.createElement(Ne,Y({},e,{ref:t,sideCar:No}))});nr.classNames=Ne.classNames;var Oo=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},pe=new WeakMap,De=new WeakMap,Me={},rt=0,or=function(e){return e&&(e.host||or(e.parentNode))},_o=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=or(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Do=function(e,t,r,n){var o=_o(t,Array.isArray(e)?e:[e]);Me[r]||(Me[r]=new WeakMap);var a=Me[r],i=[],s=new Set,c=new Set(o),u=function(p){!p||s.has(p)||(s.add(p),u(p.parentNode))};o.forEach(u);var m=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(g){if(s.has(g))m(g);else try{var E=g.getAttribute(n),R=E!==null&&E!=="false",f=(pe.get(g)||0)+1,y=(a.get(g)||0)+1;pe.set(g,f),a.set(g,y),i.push(g),f===1&&R&&De.set(g,!0),y===1&&g.setAttribute(r,"true"),R||g.setAttribute(n,"true")}catch(k){console.error("aria-hidden: cannot operate on ",g,k)}})};return m(t),s.clear(),rt++,function(){i.forEach(function(p){var g=pe.get(p)-1,E=a.get(p)-1;pe.set(p,g),a.set(p,E),g||(De.has(p)||p.removeAttribute(n),De.delete(p)),E||p.removeAttribute(r)}),rt--,rt||(pe=new WeakMap,pe=new WeakMap,De=new WeakMap,Me={})}},Mo=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Oo(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Do(n,o,r,"aria-hidden")):function(){return null}},Ie="Dialog",[ar,va]=hn(Ie),[Io,V]=ar(Ie),sr=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=l.useRef(null),c=l.useRef(null),[u,m]=kn({prop:n,defaultProp:o??!1,onChange:a,caller:Ie});return w.jsx(Io,{scope:t,triggerRef:s,contentRef:c,contentId:Xe(),titleId:Xe(),descriptionId:Xe(),open:u,onOpenChange:m,onOpenToggle:l.useCallback(()=>m(p=>!p),[m]),modal:i,children:r})};sr.displayName=Ie;var ir="DialogTrigger",lr=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=V(ir,r),a=ne(t,o.triggerRef);return w.jsx(q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":at(o.open),...n,ref:a,onClick:Q(e.onClick,o.onOpenToggle)})});lr.displayName=ir;var nt="DialogPortal",[jo,cr]=ar(nt,{forceMount:void 0}),ur=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=V(nt,t);return w.jsx(jo,{scope:t,forceMount:r,children:l.Children.map(n,i=>w.jsx(Re,{present:r||a.open,children:w.jsx(Ut,{asChild:!0,container:o,children:i})}))})};ur.displayName=nt;var je="DialogOverlay",dr=l.forwardRef((e,t)=>{const r=cr(je,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=V(je,e.__scopeDialog);return a.modal?w.jsx(Re,{present:n||a.open,children:w.jsx(Fo,{...o,ref:t})}):null});dr.displayName=je;var Lo=We("DialogOverlay.RemoveScroll"),Fo=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=V(je,r);return w.jsx(nr,{as:Lo,allowPinchZoom:!0,shards:[o.contentRef],children:w.jsx(q.div,{"data-state":at(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),ae="DialogContent",fr=l.forwardRef((e,t)=>{const r=cr(ae,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=V(ae,e.__scopeDialog);return w.jsx(Re,{present:n||a.open,children:a.modal?w.jsx(zo,{...o,ref:t}):w.jsx(Wo,{...o,ref:t})})});fr.displayName=ae;var zo=l.forwardRef((e,t)=>{const r=V(ae,e.__scopeDialog),n=l.useRef(null),o=ne(t,r.contentRef,n);return l.useEffect(()=>{const a=n.current;if(a)return Mo(a)},[]),w.jsx(mr,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Q(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:Q(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:Q(e.onFocusOutside,a=>a.preventDefault())})}),Wo=l.forwardRef((e,t)=>{const r=V(ae,e.__scopeDialog),n=l.useRef(!1),o=l.useRef(!1);return w.jsx(mr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(s=r.triggerRef.current)==null||s.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((u=r.triggerRef.current)==null?void 0:u.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),mr=l.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=V(ae,r),c=l.useRef(null),u=ne(t,c);return Xn(),w.jsxs(w.Fragment,{children:[w.jsx(Ft,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:w.jsx(Mt,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":at(s.open),...i,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(Bo,{titleId:s.titleId}),w.jsx(Uo,{contentRef:c,descriptionId:s.descriptionId})]})]})}),ot="DialogTitle",pr=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=V(ot,r);return w.jsx(q.h2,{id:o.titleId,...n,ref:t})});pr.displayName=ot;var gr="DialogDescription",vr=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=V(gr,r);return w.jsx(q.p,{id:o.descriptionId,...n,ref:t})});vr.displayName=gr;var br="DialogClose",hr=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=V(br,r);return w.jsx(q.button,{type:"button",...n,ref:t,onClick:Q(e.onClick,()=>o.onOpenChange(!1))})});hr.displayName=br;function at(e){return e?"open":"closed"}var yr="DialogTitleWarning",[ba,wr]=bn(yr,{contentName:ae,titleName:ot,docsSlug:"dialog"}),Bo=({titleId:e})=>{const t=wr(yr),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
62
+ `)},bs=0,Le=[];function ys(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(bs++)[0],i=u.useState(er)[0],s=u.useRef(e);u.useEffect(function(){s.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=zi([e.lockRef.current],(e.shards||[]).map(ar),!0).filter(Boolean);return m.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=u.useCallback(function(m,v){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var y=it(m),E=n.current,k="deltaX"in m?m.deltaX:E[0]-y[0],C="deltaY"in m?m.deltaY:E[1]-y[1],S,O=m.target,T=Math.abs(k)>Math.abs(C)?"h":"v";if("touches"in m&&T==="h"&&O.type==="range")return!1;var R=rr(T,O);if(!R)return!0;if(R?S=T:(S=T==="v"?"h":"v",R=rr(T,O)),!R)return!1;if(!r.current&&"changedTouches"in m&&(k||C)&&(r.current=S),!S)return!0;var M=r.current||S;return gs(M,v,m,M==="h"?k:C)},[]),c=u.useCallback(function(m){var v=m;if(!(!Le.length||Le[Le.length-1]!==i)){var y="deltaY"in v?sr(v):it(v),E=t.current.filter(function(S){return S.name===v.type&&(S.target===v.target||v.target===S.shadowParent)&&hs(S.delta,y)})[0];if(E&&E.should){v.cancelable&&v.preventDefault();return}if(!E){var k=(s.current.shards||[]).map(ar).filter(Boolean).filter(function(S){return S.contains(v.target)}),C=k.length>0?a(v,k[0]):!s.current.noIsolation;C&&v.cancelable&&v.preventDefault()}}},[]),l=u.useCallback(function(m,v,y,E){var k={name:m,delta:v,target:y,should:E,shadowParent:ws(y)};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(C){return C!==k})},1)},[]),d=u.useCallback(function(m){n.current=it(m),r.current=void 0},[]),f=u.useCallback(function(m){l(m.type,sr(m),m.target,a(m,e.lockRef.current))},[]),g=u.useCallback(function(m){l(m.type,it(m),m.target,a(m,e.lockRef.current))},[]);u.useEffect(function(){return Le.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Me),document.addEventListener("touchmove",c,Me),document.addEventListener("touchstart",d,Me),function(){Le=Le.filter(function(m){return m!==i}),document.removeEventListener("wheel",c,Me),document.removeEventListener("touchmove",c,Me),document.removeEventListener("touchstart",d,Me)}},[]);var p=e.removeScrollBar,h=e.inert;return u.createElement(u.Fragment,null,h?u.createElement(i,{styles:vs(o)}):null,p?u.createElement(cs,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ws(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xs=qi(Qn,ys);var cr=u.forwardRef(function(e,t){return u.createElement(rt,le({},e,{ref:t,sideCar:xs}))});cr.classNames=rt.classNames;var Es=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},je=new WeakMap,st=new WeakMap,at={},Bt=0,lr=function(e){return e&&(e.host||lr(e.parentNode))},Cs=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=lr(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ks=function(e,t,n,r){var o=Cs(t,Array.isArray(e)?e:[e]);at[n]||(at[n]=new WeakMap);var i=at[n],s=[],a=new Set,c=new Set(o),l=function(f){!f||a.has(f)||(a.add(f),l(f.parentNode))};o.forEach(l);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(g){if(a.has(g))d(g);else try{var p=g.getAttribute(r),h=p!==null&&p!=="false",m=(je.get(g)||0)+1,v=(i.get(g)||0)+1;je.set(g,m),i.set(g,v),s.push(g),m===1&&h&&st.set(g,!0),v===1&&g.setAttribute(n,"true"),h||g.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return d(t),a.clear(),Bt++,function(){s.forEach(function(f){var g=je.get(f)-1,p=i.get(f)-1;je.set(f,g),i.set(f,p),g||(st.has(f)||f.removeAttribute(r),st.delete(f)),p||f.removeAttribute(n)}),Bt--,Bt||(je=new WeakMap,je=new WeakMap,st=new WeakMap,at={})}},Ss=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Es(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),ks(r,o,n,"aria-hidden")):function(){return null}},ct="Dialog",[ur]=Nt(ct),[Rs,oe]=ur(ct),dr=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=u.useRef(null),c=u.useRef(null),[l,d]=Fn({prop:r,defaultProp:o??!1,onChange:i,caller:ct});return w.jsx(Rs,{scope:t,triggerRef:a,contentRef:c,contentId:Qe(),titleId:Qe(),descriptionId:Qe(),open:l,onOpenChange:d,onOpenToggle:u.useCallback(()=>d(f=>!f),[d]),modal:s,children:n})};dr.displayName=ct;var fr="DialogTrigger",mr=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=oe(fr,n),i=re(t,o.triggerRef);return w.jsx(J.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ut(o.open),...r,ref:i,onClick:Z(e.onClick,o.onOpenToggle)})});mr.displayName=fr;var Vt="DialogPortal",[As,pr]=ur(Vt,{forceMount:void 0}),gr=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=oe(Vt,t);return w.jsx(As,{scope:t,forceMount:n,children:u.Children.map(r,s=>w.jsx(_e,{present:n||i.open,children:w.jsx(jt,{asChild:!0,container:o,children:s})}))})};gr.displayName=Vt;var lt="DialogOverlay",hr=u.forwardRef((e,t)=>{const n=pr(lt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=oe(lt,e.__scopeDialog);return i.modal?w.jsx(_e,{present:r||i.open,children:w.jsx(Ts,{...o,ref:t})}):null});hr.displayName=lt;var Ps=kt("DialogOverlay.RemoveScroll"),Ts=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=oe(lt,n);return w.jsx(cr,{as:Ps,allowPinchZoom:!0,shards:[o.contentRef],children:w.jsx(J.div,{"data-state":Ut(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Se="DialogContent",vr=u.forwardRef((e,t)=>{const n=pr(Se,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=oe(Se,e.__scopeDialog);return w.jsx(_e,{present:r||i.open,children:i.modal?w.jsx(Os,{...o,ref:t}):w.jsx(Ns,{...o,ref:t})})});vr.displayName=Se;var Os=u.forwardRef((e,t)=>{const n=oe(Se,e.__scopeDialog),r=u.useRef(null),o=re(t,n.contentRef,r);return u.useEffect(()=>{const i=r.current;if(i)return Ss(i)},[]),w.jsx(br,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:Z(e.onFocusOutside,i=>i.preventDefault())})}),Ns=u.forwardRef((e,t)=>{const n=oe(Se,e.__scopeDialog),r=u.useRef(!1),o=u.useRef(!1);return w.jsx(br,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),br=u.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=oe(Se,n),c=u.useRef(null),l=re(t,c);return $i(),w.jsxs(w.Fragment,{children:[w.jsx(Hn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:w.jsx(Dt,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Ut(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(_s,{titleId:a.titleId}),w.jsx(Ms,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Ht="DialogTitle",yr=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=oe(Ht,n);return w.jsx(J.h2,{id:o.titleId,...r,ref:t})});yr.displayName=Ht;var wr="DialogDescription",xr=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=oe(wr,n);return w.jsx(J.p,{id:o.descriptionId,...r,ref:t})});xr.displayName=wr;var Er="DialogClose",Cr=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=oe(Er,n);return w.jsx(J.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});Cr.displayName=Er;function Ut(e){return e?"open":"closed"}var kr="DialogTitleWarning",[cl,Sr]=di(kr,{contentName:Se,titleName:Ht,docsSlug:"dialog"}),_s=({titleId:e})=>{const t=Sr(kr),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
63
63
 
64
64
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
65
65
 
66
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},$o="DialogDescriptionWarning",Uo=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${wr($o).contentName}}.`;return l.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Vo=sr,Go=lr,Yo=ur,Xo=dr,Ho=fr,Ko=pr,qo=vr,xr=hr;/**
66
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ds="DialogDescriptionWarning",Ms=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Sr(Ds).contentName}}.`;return u.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Ls=dr,js=mr,Is=gr,Fs=hr,$s=vr,zs=yr,Ws=xr,Rr=Cr;/**
67
67
  * @license lucide-react v0.542.0 - ISC
68
68
  *
69
69
  * This source code is licensed under the ISC license.
70
70
  * See the LICENSE file in the root directory of this source tree.
71
- */const Zo=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Jo=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Er=e=>{const t=Jo(e);return t.charAt(0).toUpperCase()+t.slice(1)},kr=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Qo=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
71
+ */const Bs=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Vs=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Ar=e=>{const t=Vs(e);return t.charAt(0).toUpperCase()+t.slice(1)},Pr=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Hs=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
72
72
  * @license lucide-react v0.542.0 - ISC
73
73
  *
74
74
  * This source code is licensed under the ISC license.
75
75
  * See the LICENSE file in the root directory of this source tree.
76
- */var ea={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
76
+ */var Us={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
77
77
  * @license lucide-react v0.542.0 - ISC
78
78
  *
79
79
  * This source code is licensed under the ISC license.
80
80
  * See the LICENSE file in the root directory of this source tree.
81
- */const ta=$.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},c)=>$.createElement("svg",{ref:c,...ea,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:kr("lucide",o),...!a&&!Qo(s)&&{"aria-hidden":"true"},...s},[...i.map(([u,m])=>$.createElement(u,m)),...Array.isArray(a)?a:[a]]));/**
81
+ */const Gs=ee.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},c)=>ee.createElement("svg",{ref:c,...Us,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Pr("lucide",o),...!i&&!Hs(a)&&{"aria-hidden":"true"},...a},[...s.map(([l,d])=>ee.createElement(l,d)),...Array.isArray(i)?i:[i]]));/**
82
82
  * @license lucide-react v0.542.0 - ISC
83
83
  *
84
84
  * This source code is licensed under the ISC license.
85
85
  * See the LICENSE file in the root directory of this source tree.
86
- */const ra=(e,t)=>{const r=$.forwardRef(({className:n,...o},a)=>$.createElement(ta,{ref:a,iconNode:t,className:kr(`lucide-${Zo(Er(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Er(e),r};/**
86
+ */const Ys=(e,t)=>{const n=ee.forwardRef(({className:r,...o},i)=>ee.createElement(Gs,{ref:i,iconNode:t,className:Pr(`lucide-${Bs(Ar(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Ar(e),n};/**
87
87
  * @license lucide-react v0.542.0 - ISC
88
88
  *
89
89
  * This source code is licensed under the ISC license.
90
90
  * See the LICENSE file in the root directory of this source tree.
91
- */const na=ra("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function oa({...e}){return w.jsx(Vo,{"data-slot":"dialog",...e})}function aa({...e}){return w.jsx(Go,{"data-slot":"dialog-trigger",...e})}function Cr({...e}){return w.jsx(Yo,{"data-slot":"dialog-portal",...e})}function sa({...e}){return w.jsx(xr,{"data-slot":"dialog-close",...e})}function Sr({className:e,...t}){return w.jsx(Xo,{"data-slot":"dialog-overlay",className:K("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function ia({className:e,children:t,showCloseButton:r=!0,...n}){return w.jsxs(Cr,{"data-slot":"dialog-portal",children:[w.jsx(Sr,{}),w.jsxs(Ho,{"data-slot":"dialog-content",className:K("bg-background bg-white 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-none p-6 shadow-lg duration-200 sm:max-w-lg",e),...n,children:[t,r&&w.jsxs(xr,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[w.jsx(na,{}),w.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function la({className:e,...t}){return w.jsx("div",{"data-slot":"dialog-header",className:K("flex flex-col gap-2 text-center sm:text-left",e),...t})}function ca({className:e,...t}){return w.jsx("div",{"data-slot":"dialog-footer",className:K("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function ua({className:e,...t}){return w.jsx(Ko,{"data-slot":"dialog-title",className:K("text-lg leading-none font-semibold ",e),...t})}function da({className:e,...t}){return w.jsx(qo,{"data-slot":"dialog-description",className:K("text-muted-foreground text-sm",e),...t})}const fa=Ot("inline-flex items-center justify-center rounded-full font-medium w-fit whitespace-nowrap shrink-0 gap-1 text-sm",{variants:{variant:{primary:"bg-tag-light-blue text-tag-dark-blue border-tag-light-blue",neutral:"bg-tag-light-gray text-tag-dark-gray border-tag-light-gray",warning:"bg-tag-light-brown text-tag-dark-brown border-tag-stroke-warning-border",success:"bg-tag-light-green text-tag-dark-green border-tag-stroke-success-border",error:"bg-tag-light-red-light text-tag-dark-red-dark border-tag-stroke-error-border",secondaryB:"bg-tag-light-ice-blue text-tag-dark-ice-blue border-tag-stroke-dark-border"},type:{filled:"border-0",outline:"border bg-transparent"},size:{md:"px-3 py-0.5 text-sm"}},defaultVariants:{variant:"primary",type:"filled",size:"md"}}),Rr=l.forwardRef(({className:e,variant:t,type:r="filled",asChild:n=!1,children:o,...a},i)=>{const s=n?ft:"span";return w.jsx(s,{ref:i,"data-slot":"badge",className:K(fa({variant:t,type:r}),r==="outline"?"bg-transparent":"",e),...a,children:o})});Rr.displayName="Badge",j.Badge=Rr,j.Button=vn,j.Dialog=oa,j.DialogClose=sa,j.DialogContent=ia,j.DialogDescription=da,j.DialogFooter=ca,j.DialogHeader=la,j.DialogOverlay=Sr,j.DialogPortal=Cr,j.DialogTitle=ua,j.DialogTrigger=aa,j.cn=K,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
91
+ */const Xs=Ys("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function qs({...e}){return w.jsx(Ls,{"data-slot":"dialog",...e})}function Ks({...e}){return w.jsx(js,{"data-slot":"dialog-trigger",...e})}function Tr({...e}){return w.jsx(Is,{"data-slot":"dialog-portal",...e})}function Zs({...e}){return w.jsx(Rr,{"data-slot":"dialog-close",...e})}function Or({className:e,...t}){return w.jsx(Fs,{"data-slot":"dialog-overlay",className:ce("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Js({className:e,children:t,showCloseButton:n=!0,...r}){return w.jsxs(Tr,{"data-slot":"dialog-portal",children:[w.jsx(Or,{}),w.jsxs($s,{"data-slot":"dialog-content",className:ce("bg-background bg-white 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-none p-6 shadow-lg duration-200 sm:max-w-lg",e),...r,children:[t,n&&w.jsxs(Rr,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[w.jsx(Xs,{}),w.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Qs({className:e,...t}){return w.jsx("div",{"data-slot":"dialog-header",className:ce("flex flex-col gap-2 text-center sm:text-left",e),...t})}function ea({className:e,...t}){return w.jsx("div",{"data-slot":"dialog-footer",className:ce("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function ta({className:e,...t}){return w.jsx(zs,{"data-slot":"dialog-title",className:ce("text-lg leading-none font-semibold ",e),...t})}function na({className:e,...t}){return w.jsx(Ws,{"data-slot":"dialog-description",className:ce("text-muted-foreground text-sm",e),...t})}const ra=In("inline-flex items-center justify-center rounded-full font-medium w-fit whitespace-nowrap shrink-0 gap-1 text-sm",{variants:{variant:{primary:"bg-tag-light-blue text-tag-dark-blue border-tag-light-blue",neutral:"bg-tag-light-gray text-tag-dark-gray border-tag-light-gray",warning:"bg-tag-light-brown text-tag-dark-brown border-tag-stroke-warning-border",success:"bg-tag-light-green text-tag-dark-green border-tag-stroke-success-border",error:"bg-tag-light-red-light text-tag-dark-red-dark border-tag-stroke-error-border",secondary:"bg-tag-light-ice-blue text-tag-dark-ice-blue border-tag-stroke-dark-border"},type:{filled:"border-0",outline:"border bg-transparent"},size:{md:"px-3 py-0.5 text-sm"}},defaultVariants:{variant:"primary",type:"filled",size:"md"}});function oa({className:e,variant:t,type:n="filled",asChild:r=!1,children:o,...i}){const s=r?vn:"span";return w.jsx(s,{"data-slot":"badge",className:ce(ra({variant:t,type:n}),e),...i,children:o})}const ia=["top","right","bottom","left"],we=Math.min,te=Math.max,ut=Math.round,dt=Math.floor,ue=e=>({x:e,y:e}),sa={left:"right",right:"left",bottom:"top",top:"bottom"},aa={start:"end",end:"start"};function Gt(e,t,n){return te(e,we(t,n))}function ge(e,t){return typeof e=="function"?e(t):e}function he(e){return e.split("-")[0]}function Ie(e){return e.split("-")[1]}function Yt(e){return e==="x"?"y":"x"}function Xt(e){return e==="y"?"height":"width"}const ca=new Set(["top","bottom"]);function de(e){return ca.has(he(e))?"y":"x"}function qt(e){return Yt(de(e))}function la(e,t,n){n===void 0&&(n=!1);const r=Ie(e),o=qt(e),i=Xt(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ft(s)),[s,ft(s)]}function ua(e){const t=ft(e);return[Kt(e),t,Kt(t)]}function Kt(e){return e.replace(/start|end/g,t=>aa[t])}const Nr=["left","right"],_r=["right","left"],da=["top","bottom"],fa=["bottom","top"];function ma(e,t,n){switch(e){case"top":case"bottom":return n?t?_r:Nr:t?Nr:_r;case"left":case"right":return t?da:fa;default:return[]}}function pa(e,t,n,r){const o=Ie(e);let i=ma(he(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Kt)))),i}function ft(e){return e.replace(/left|right|bottom|top/g,t=>sa[t])}function ga(e){return{top:0,right:0,bottom:0,left:0,...e}}function Dr(e){return typeof e!="number"?ga(e):{top:e,right:e,bottom:e,left:e}}function mt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Mr(e,t,n){let{reference:r,floating:o}=e;const i=de(t),s=qt(t),a=Xt(s),c=he(t),l=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[a]/2-o[a]/2;let p;switch(c){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Ie(t)){case"start":p[s]-=g*(n&&l?-1:1);break;case"end":p[s]+=g*(n&&l?-1:1);break}return p}const ha=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Mr(l,r,c),g=r,p={},h=0;for(let m=0;m<a.length;m++){const{name:v,fn:y}=a[m],{x:E,y:k,data:C,reset:S}=await y({x:d,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});d=E??d,f=k??f,p={...p,[v]:{...p[v],...C}},S&&h<=50&&(h++,typeof S=="object"&&(S.placement&&(g=S.placement),S.rects&&(l=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:d,y:f}=Mr(l,g,c)),m=-1)}return{x:d,y:f,placement:g,strategy:o,middlewareData:p}};async function Ue(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:g=!1,padding:p=0}=ge(t,e),h=Dr(p),v=a[g?f==="floating"?"reference":"floating":f],y=mt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:c})),E=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},S=mt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:E,offsetParent:k,strategy:c}):E);return{top:(y.top-S.top+h.top)/C.y,bottom:(S.bottom-y.bottom+h.bottom)/C.y,left:(y.left-S.left+h.left)/C.x,right:(S.right-y.right+h.right)/C.x}}const va=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:d=0}=ge(e,t)||{};if(l==null)return{};const f=Dr(d),g={x:n,y:r},p=qt(o),h=Xt(p),m=await s.getDimensions(l),v=p==="y",y=v?"top":"left",E=v?"bottom":"right",k=v?"clientHeight":"clientWidth",C=i.reference[h]+i.reference[p]-g[p]-i.floating[h],S=g[p]-i.reference[p],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let T=O?O[k]:0;(!T||!await(s.isElement==null?void 0:s.isElement(O)))&&(T=a.floating[k]||i.floating[h]);const R=C/2-S/2,M=T/2-m[h]/2-1,$=we(f[y],M),G=we(f[E],M),H=$,B=T-m[h]-G,I=T/2-m[h]/2+R,U=Gt(H,I,B),L=!c.arrow&&Ie(o)!=null&&I!==U&&i.reference[h]/2-(I<H?$:G)-m[h]/2<0,j=L?I<H?I-H:I-B:0;return{[p]:g[p]+j,data:{[p]:U,centerOffset:I-U-j,...L&&{alignmentOffset:j}},reset:L}}}),ba=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...v}=ge(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=he(o),E=de(a),k=he(a)===a,C=await(c.isRTL==null?void 0:c.isRTL(l.floating)),S=g||(k||!m?[ft(a)]:ua(a)),O=h!=="none";!g&&O&&S.push(...pa(a,m,h,C));const T=[a,...S],R=await Ue(t,v),M=[];let $=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&M.push(R[y]),f){const I=la(o,s,C);M.push(R[I[0]],R[I[1]])}if($=[...$,{placement:o,overflows:M}],!M.every(I=>I<=0)){var G,H;const I=(((G=i.flip)==null?void 0:G.index)||0)+1,U=T[I];if(U&&(!(f==="alignment"?E!==de(U):!1)||$.every(x=>de(x.placement)===E?x.overflows[0]>0:!0)))return{data:{index:I,overflows:$},reset:{placement:U}};let L=(H=$.filter(j=>j.overflows[0]<=0).sort((j,x)=>j.overflows[1]-x.overflows[1])[0])==null?void 0:H.placement;if(!L)switch(p){case"bestFit":{var B;const j=(B=$.filter(x=>{if(O){const Y=de(x.placement);return Y===E||Y==="y"}return!0}).map(x=>[x.placement,x.overflows.filter(Y=>Y>0).reduce((Y,b)=>Y+b,0)]).sort((x,Y)=>x[1]-Y[1])[0])==null?void 0:B[0];j&&(L=j);break}case"initialPlacement":L=a;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function Lr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jr(e){return ia.some(t=>e[t]>=0)}const ya=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ge(e,t);switch(r){case"referenceHidden":{const i=await Ue(t,{...o,elementContext:"reference"}),s=Lr(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:jr(s)}}}case"escaped":{const i=await Ue(t,{...o,altBoundary:!0}),s=Lr(i,n.floating);return{data:{escapedOffsets:s,escaped:jr(s)}}}default:return{}}}}},Ir=new Set(["left","top"]);async function wa(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=he(n),a=Ie(n),c=de(n)==="y",l=Ir.has(s)?-1:1,d=i&&c?-1:1,f=ge(t,e);let{mainAxis:g,crossAxis:p,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof h=="number"&&(p=a==="end"?h*-1:h),c?{x:p*d,y:g*l}:{x:g*l,y:p*d}}const xa=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await wa(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},Ea=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:y,y:E}=v;return{x:y,y:E}}},...c}=ge(e,t),l={x:n,y:r},d=await Ue(t,c),f=de(he(o)),g=Yt(f);let p=l[g],h=l[f];if(i){const v=g==="y"?"top":"left",y=g==="y"?"bottom":"right",E=p+d[v],k=p-d[y];p=Gt(E,p,k)}if(s){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",E=h+d[v],k=h-d[y];h=Gt(E,h,k)}const m=a.fn({...t,[g]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[g]:i,[f]:s}}}}}},Ca=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=ge(e,t),d={x:n,y:r},f=de(o),g=Yt(f);let p=d[g],h=d[f];const m=ge(a,t),v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const k=g==="y"?"height":"width",C=i.reference[g]-i.floating[k]+v.mainAxis,S=i.reference[g]+i.reference[k]-v.mainAxis;p<C?p=C:p>S&&(p=S)}if(l){var y,E;const k=g==="y"?"width":"height",C=Ir.has(he(o)),S=i.reference[f]-i.floating[k]+(C&&((y=s.offset)==null?void 0:y[f])||0)+(C?0:v.crossAxis),O=i.reference[f]+i.reference[k]+(C?0:((E=s.offset)==null?void 0:E[f])||0)-(C?v.crossAxis:0);h<S?h=S:h>O&&(h=O)}return{[g]:p,[f]:h}}}},ka=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...l}=ge(e,t),d=await Ue(t,l),f=he(o),g=Ie(o),p=de(o)==="y",{width:h,height:m}=i.floating;let v,y;f==="top"||f==="bottom"?(v=f,y=g===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=f,v=g==="end"?"top":"bottom");const E=m-d.top-d.bottom,k=h-d.left-d.right,C=we(m-d[v],E),S=we(h-d[y],k),O=!t.middlewareData.shift;let T=C,R=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=E),O&&!g){const $=te(d.left,0),G=te(d.right,0),H=te(d.top,0),B=te(d.bottom,0);p?R=h-2*($!==0||G!==0?$+G:te(d.left,d.right)):T=m-2*(H!==0||B!==0?H+B:te(d.top,d.bottom))}await c({...t,availableWidth:R,availableHeight:T});const M=await s.getDimensions(a.floating);return h!==M.width||m!==M.height?{reset:{rects:!0}}:{}}}};function pt(){return typeof window<"u"}function Fe(e){return Fr(e)?(e.nodeName||"").toLowerCase():"#document"}function ne(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fe(e){var t;return(t=(Fr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fr(e){return pt()?e instanceof Node||e instanceof ne(e).Node:!1}function ie(e){return pt()?e instanceof Element||e instanceof ne(e).Element:!1}function me(e){return pt()?e instanceof HTMLElement||e instanceof ne(e).HTMLElement:!1}function $r(e){return!pt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ne(e).ShadowRoot}const Sa=new Set(["inline","contents"]);function Ge(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=se(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Sa.has(o)}const Ra=new Set(["table","td","th"]);function Aa(e){return Ra.has(Fe(e))}const Pa=[":popover-open",":modal"];function gt(e){return Pa.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ta=["transform","translate","scale","rotate","perspective"],Oa=["transform","translate","scale","rotate","perspective","filter"],Na=["paint","layout","strict","content"];function Zt(e){const t=Jt(),n=ie(e)?se(e):e;return Ta.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Oa.some(r=>(n.willChange||"").includes(r))||Na.some(r=>(n.contain||"").includes(r))}function _a(e){let t=xe(e);for(;me(t)&&!$e(t);){if(Zt(t))return t;if(gt(t))return null;t=xe(t)}return null}function Jt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Da=new Set(["html","body","#document"]);function $e(e){return Da.has(Fe(e))}function se(e){return ne(e).getComputedStyle(e)}function ht(e){return ie(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xe(e){if(Fe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$r(e)&&e.host||fe(e);return $r(t)?t.host:t}function zr(e){const t=xe(e);return $e(t)?e.ownerDocument?e.ownerDocument.body:e.body:me(t)&&Ge(t)?t:zr(t)}function Ye(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=zr(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ne(o);if(i){const a=Qt(s);return t.concat(s,s.visualViewport||[],Ge(o)?o:[],a&&n?Ye(a):[])}return t.concat(o,Ye(o,[],n))}function Qt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wr(e){const t=se(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=me(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=ut(n)!==i||ut(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function en(e){return ie(e)?e:e.contextElement}function ze(e){const t=en(e);if(!me(t))return ue(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Wr(t);let s=(i?ut(n.width):n.width)/r,a=(i?ut(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Ma=ue(0);function Br(e){const t=ne(e);return!Jt()||!t.visualViewport?Ma:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function La(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ne(e)?!1:t}function Re(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=en(e);let s=ue(1);t&&(r?ie(r)&&(s=ze(r)):s=ze(e));const a=La(i,n,r)?Br(i):ue(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const g=ne(i),p=r&&ie(r)?ne(r):r;let h=g,m=Qt(h);for(;m&&r&&p!==h;){const v=ze(m),y=m.getBoundingClientRect(),E=se(m),k=y.left+(m.clientLeft+parseFloat(E.paddingLeft))*v.x,C=y.top+(m.clientTop+parseFloat(E.paddingTop))*v.y;c*=v.x,l*=v.y,d*=v.x,f*=v.y,c+=k,l+=C,h=ne(m),m=Qt(h)}}return mt({width:d,height:f,x:c,y:l})}function vt(e,t){const n=ht(e).scrollLeft;return t?t.left+n:Re(fe(e)).left+n}function Vr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-vt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function ja(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=fe(r),a=t?gt(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=ue(1);const d=ue(0),f=me(r);if((f||!f&&!i)&&((Fe(r)!=="body"||Ge(s))&&(c=ht(r)),me(r))){const p=Re(r);l=ze(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const g=s&&!f&&!i?Vr(s,c):ue(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+g.x,y:n.y*l.y-c.scrollTop*l.y+d.y+g.y}}function Ia(e){return Array.from(e.getClientRects())}function Fa(e){const t=fe(e),n=ht(e),r=e.ownerDocument.body,o=te(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=te(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+vt(e);const a=-n.scrollTop;return se(r).direction==="rtl"&&(s+=te(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const Hr=25;function $a(e,t){const n=ne(e),r=fe(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const d=Jt();(!d||d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=vt(r);if(l<=0){const d=r.ownerDocument,f=d.body,g=getComputedStyle(f),p=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,h=Math.abs(r.clientWidth-f.clientWidth-p);h<=Hr&&(i-=h)}else l<=Hr&&(i+=l);return{width:i,height:s,x:a,y:c}}const za=new Set(["absolute","fixed"]);function Wa(e,t){const n=Re(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=me(e)?ze(e):ue(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function Ur(e,t,n){let r;if(t==="viewport")r=$a(e,n);else if(t==="document")r=Fa(fe(e));else if(ie(t))r=Wa(t,n);else{const o=Br(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return mt(r)}function Gr(e,t){const n=xe(e);return n===t||!ie(n)||$e(n)?!1:se(n).position==="fixed"||Gr(n,t)}function Ba(e,t){const n=t.get(e);if(n)return n;let r=Ye(e,[],!1).filter(a=>ie(a)&&Fe(a)!=="body"),o=null;const i=se(e).position==="fixed";let s=i?xe(e):e;for(;ie(s)&&!$e(s);){const a=se(s),c=Zt(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&za.has(o.position)||Ge(s)&&!c&&Gr(e,s))?r=r.filter(d=>d!==s):o=a,s=xe(s)}return t.set(e,r),r}function Va(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?gt(t)?[]:Ba(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,d)=>{const f=Ur(t,d,o);return l.top=te(f.top,l.top),l.right=we(f.right,l.right),l.bottom=we(f.bottom,l.bottom),l.left=te(f.left,l.left),l},Ur(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ha(e){const{width:t,height:n}=Wr(e);return{width:t,height:n}}function Ua(e,t,n){const r=me(t),o=fe(t),i=n==="fixed",s=Re(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=ue(0);function l(){c.x=vt(o)}if(r||!r&&!i)if((Fe(t)!=="body"||Ge(o))&&(a=ht(t)),r){const p=Re(t,!0,i,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else o&&l();i&&!r&&o&&l();const d=o&&!r&&!i?Vr(o,a):ue(0),f=s.left+a.scrollLeft-c.x-d.x,g=s.top+a.scrollTop-c.y-d.y;return{x:f,y:g,width:s.width,height:s.height}}function tn(e){return se(e).position==="static"}function Yr(e,t){if(!me(e)||se(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return fe(e)===n&&(n=n.ownerDocument.body),n}function Xr(e,t){const n=ne(e);if(gt(e))return n;if(!me(e)){let o=xe(e);for(;o&&!$e(o);){if(ie(o)&&!tn(o))return o;o=xe(o)}return n}let r=Yr(e,t);for(;r&&Aa(r)&&tn(r);)r=Yr(r,t);return r&&$e(r)&&tn(r)&&!Zt(r)?n:r||_a(e)||n}const Ga=async function(e){const t=this.getOffsetParent||Xr,n=this.getDimensions,r=await n(e.floating);return{reference:Ua(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ya(e){return se(e).direction==="rtl"}const Xa={convertOffsetParentRelativeRectToViewportRelativeRect:ja,getDocumentElement:fe,getClippingRect:Va,getOffsetParent:Xr,getElementRects:Ga,getClientRects:Ia,getDimensions:Ha,getScale:ze,isElement:ie,isRTL:Ya};function qr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qa(e,t){let n=null,r;const o=fe(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:d,top:f,width:g,height:p}=l;if(a||t(),!g||!p)return;const h=dt(f),m=dt(o.clientWidth-(d+g)),v=dt(o.clientHeight-(f+p)),y=dt(d),k={rootMargin:-h+"px "+-m+"px "+-v+"px "+-y+"px",threshold:te(0,we(1,c))||1};let C=!0;function S(O){const T=O[0].intersectionRatio;if(T!==c){if(!C)return s();T?s(!1,T):r=setTimeout(()=>{s(!1,1e-7)},1e3)}T===1&&!qr(l,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(S,{...k,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,k)}n.observe(e)}return s(!0),i}function Ka(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=en(e),d=o||i?[...l?Ye(l):[],...Ye(t)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const f=l&&a?qa(l,n):null;let g=-1,p=null;s&&(p=new ResizeObserver(y=>{let[E]=y;E&&E.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var k;(k=p)==null||k.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let h,m=c?Re(e):null;c&&v();function v(){const y=Re(e);m&&!qr(m,y)&&n(),m=y,h=requestAnimationFrame(v)}return n(),()=>{var y;d.forEach(E=>{o&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),f==null||f(),(y=p)==null||y.disconnect(),p=null,c&&cancelAnimationFrame(h)}}const Za=xa,Ja=Ea,Qa=ba,ec=ka,tc=ya,Kr=va,nc=Ca,rc=(e,t,n)=>{const r=new Map,o={platform:Xa,...n},i={...o.platform,_c:r};return ha(e,t,{...o,platform:i})};var oc=typeof document<"u",ic=function(){},bt=oc?ee.useLayoutEffect:ic;function yt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!yt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!yt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Zr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jr(e,t){const n=Zr(e);return Math.round(t*n)/n}function nn(e){const t=u.useRef(e);return bt(()=>{t.current=e}),t}function sc(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[d,f]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,p]=u.useState(r);yt(g,r)||p(r);const[h,m]=u.useState(null),[v,y]=u.useState(null),E=u.useCallback(x=>{x!==O.current&&(O.current=x,m(x))},[]),k=u.useCallback(x=>{x!==T.current&&(T.current=x,y(x))},[]),C=i||h,S=s||v,O=u.useRef(null),T=u.useRef(null),R=u.useRef(d),M=c!=null,$=nn(c),G=nn(o),H=nn(l),B=u.useCallback(()=>{if(!O.current||!T.current)return;const x={placement:t,strategy:n,middleware:g};G.current&&(x.platform=G.current),rc(O.current,T.current,x).then(Y=>{const b={...Y,isPositioned:H.current!==!1};I.current&&!yt(R.current,b)&&(R.current=b,fn.flushSync(()=>{f(b)}))})},[g,t,n,G,H]);bt(()=>{l===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,f(x=>({...x,isPositioned:!1})))},[l]);const I=u.useRef(!1);bt(()=>(I.current=!0,()=>{I.current=!1}),[]),bt(()=>{if(C&&(O.current=C),S&&(T.current=S),C&&S){if($.current)return $.current(C,S,B);B()}},[C,S,B,$,M]);const U=u.useMemo(()=>({reference:O,floating:T,setReference:E,setFloating:k}),[E,k]),L=u.useMemo(()=>({reference:C,floating:S}),[C,S]),j=u.useMemo(()=>{const x={position:n,left:0,top:0};if(!L.floating)return x;const Y=Jr(L.floating,d.x),b=Jr(L.floating,d.y);return a?{...x,transform:"translate("+Y+"px, "+b+"px)",...Zr(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:b}},[n,a,L.floating,d.x,d.y]);return u.useMemo(()=>({...d,update:B,refs:U,elements:L,floatingStyles:j}),[d,B,U,L,j])}const ac=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Kr({element:r.current,padding:o}).fn(n):{}:r?Kr({element:r,padding:o}).fn(n):{}}}},cc=(e,t)=>({...Za(e),options:[e,t]}),lc=(e,t)=>({...Ja(e),options:[e,t]}),uc=(e,t)=>({...nc(e),options:[e,t]}),dc=(e,t)=>({...Qa(e),options:[e,t]}),fc=(e,t)=>({...ec(e),options:[e,t]}),mc=(e,t)=>({...tc(e),options:[e,t]}),pc=(e,t)=>({...ac(e),options:[e,t]});var gc="Arrow",Qr=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return w.jsx(J.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});Qr.displayName=gc;var hc=Qr;function vc(e){const[t,n]=u.useState(void 0);return be(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var rn="Popper",[eo,to]=Nt(rn),[bc,no]=eo(rn),ro=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return w.jsx(bc,{scope:t,anchor:r,onAnchorChange:o,children:n})};ro.displayName=rn;var oo="PopperAnchor",io=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=no(oo,n),s=u.useRef(null),a=re(t,s),c=u.useRef(null);return u.useEffect(()=>{const l=c.current;c.current=(r==null?void 0:r.current)||s.current,l!==c.current&&i.onAnchorChange(c.current)}),r?null:w.jsx(J.div,{...o,ref:a})});io.displayName=oo;var on="PopperContent",[yc,wc]=eo(on),so=u.forwardRef((e,t)=>{var z,X,Q,ae,Ce,Ae;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:p="optimized",onPlaced:h,...m}=e,v=no(on,n),[y,E]=u.useState(null),k=re(t,Ke=>E(Ke)),[C,S]=u.useState(null),O=vc(C),T=(O==null?void 0:O.width)??0,R=(O==null?void 0:O.height)??0,M=r+(i!=="center"?"-"+i:""),$=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},G=Array.isArray(l)?l:[l],H=G.length>0,B={padding:$,boundary:G.filter(Ec),altBoundary:H},{refs:I,floatingStyles:U,placement:L,isPositioned:j,middlewareData:x}=sc({strategy:"fixed",placement:M,whileElementsMounted:(...Ke)=>Ka(...Ke,{animationFrame:p==="always"}),elements:{reference:v.anchor},middleware:[cc({mainAxis:o+R,alignmentAxis:s}),c&&lc({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?uc():void 0,...B}),c&&dc({...B}),fc({...B,apply:({elements:Ke,rects:Eo,availableWidth:tl,availableHeight:nl})=>{const{width:rl,height:ol}=Eo.reference,Et=Ke.floating.style;Et.setProperty("--radix-popper-available-width",`${tl}px`),Et.setProperty("--radix-popper-available-height",`${nl}px`),Et.setProperty("--radix-popper-anchor-width",`${rl}px`),Et.setProperty("--radix-popper-anchor-height",`${ol}px`)}}),C&&pc({element:C,padding:a}),Cc({arrowWidth:T,arrowHeight:R}),g&&mc({strategy:"referenceHidden",...B})]}),[Y,b]=lo(L),N=Ne(h);be(()=>{j&&(N==null||N())},[j,N]);const F=(z=x.arrow)==null?void 0:z.x,D=(X=x.arrow)==null?void 0:X.y,V=((Q=x.arrow)==null?void 0:Q.centerOffset)!==0,[K,Ee]=u.useState();return be(()=>{y&&Ee(window.getComputedStyle(y).zIndex)},[y]),w.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:j?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[(ae=x.transformOrigin)==null?void 0:ae.x,(Ce=x.transformOrigin)==null?void 0:Ce.y].join(" "),...((Ae=x.hide)==null?void 0:Ae.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(yc,{scope:n,placedSide:Y,onArrowChange:S,arrowX:F,arrowY:D,shouldHideArrow:V,children:w.jsx(J.div,{"data-side":Y,"data-align":b,...m,ref:k,style:{...m.style,animation:j?void 0:"none"}})})})});so.displayName=on;var ao="PopperArrow",xc={top:"bottom",right:"left",bottom:"top",left:"right"},co=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=wc(ao,r),s=xc[i.placedSide];return w.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:w.jsx(hc,{...o,ref:n,style:{...o.style,display:"block"}})})});co.displayName=ao;function Ec(e){return e!==null}var Cc=e=>({name:"transformOrigin",options:e,fn(t){var v,y,E;const{placement:n,rects:r,middlewareData:o}=t,s=((v=o.arrow)==null?void 0:v.centerOffset)!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[l,d]=lo(n),f={start:"0%",center:"50%",end:"100%"}[d],g=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,p=(((E=o.arrow)==null?void 0:E.y)??0)+c/2;let h="",m="";return l==="bottom"?(h=s?f:`${g}px`,m=`${-c}px`):l==="top"?(h=s?f:`${g}px`,m=`${r.floating.height+c}px`):l==="right"?(h=`${-c}px`,m=s?f:`${p}px`):l==="left"&&(h=`${r.floating.width+c}px`,m=s?f:`${p}px`),{data:{x:h,y:m}}}});function lo(e){const[t,n="center"]=e.split("-");return[t,n]}var kc=ro,Sc=io,Rc=so,Ac=co,Pc=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Tc="VisuallyHidden",uo=u.forwardRef((e,t)=>w.jsx(J.span,{...e,ref:t,style:{...Pc,...e.style}}));uo.displayName=Tc;var Oc=uo,[wt]=Nt("Tooltip",[to]),xt=to(),fo="TooltipProvider",Nc=700,sn="tooltip.open",[_c,an]=wt(fo),mo=e=>{const{__scopeTooltip:t,delayDuration:n=Nc,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=u.useRef(!0),a=u.useRef(!1),c=u.useRef(0);return u.useEffect(()=>{const l=c.current;return()=>window.clearTimeout(l)},[]),w.jsx(_c,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:u.useCallback(l=>{a.current=l},[]),disableHoverableContent:o,children:i})};mo.displayName=fo;var Xe="Tooltip",[Dc,qe]=wt(Xe),po=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=an(Xe,e.__scopeTooltip),l=xt(t),[d,f]=u.useState(null),g=Qe(),p=u.useRef(0),h=s??c.disableHoverableContent,m=a??c.delayDuration,v=u.useRef(!1),[y,E]=Fn({prop:r,defaultProp:o??!1,onChange:T=>{T?(c.onOpen(),document.dispatchEvent(new CustomEvent(sn))):c.onClose(),i==null||i(T)},caller:Xe}),k=u.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),C=u.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v.current=!1,E(!0)},[E]),S=u.useCallback(()=>{window.clearTimeout(p.current),p.current=0,E(!1)},[E]),O=u.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{v.current=!0,E(!0),p.current=0},m)},[m,E]);return u.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),w.jsx(kc,{...l,children:w.jsx(Dc,{scope:t,contentId:g,open:y,stateAttribute:k,trigger:d,onTriggerChange:f,onTriggerEnter:u.useCallback(()=>{c.isOpenDelayedRef.current?O():C()},[c.isOpenDelayedRef,O,C]),onTriggerLeave:u.useCallback(()=>{h?S():(window.clearTimeout(p.current),p.current=0)},[S,h]),onOpen:C,onClose:S,disableHoverableContent:h,children:n})})};po.displayName=Xe;var cn="TooltipTrigger",go=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=qe(cn,n),i=an(cn,n),s=xt(n),a=u.useRef(null),c=re(t,a,o.onTriggerChange),l=u.useRef(!1),d=u.useRef(!1),f=u.useCallback(()=>l.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),w.jsx(Sc,{asChild:!0,...s,children:w.jsx(J.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:Z(e.onPointerMove,g=>{g.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:Z(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:Z(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Z(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:Z(e.onBlur,o.onClose),onClick:Z(e.onClick,o.onClose)})})});go.displayName=cn;var ln="TooltipPortal",[Mc,Lc]=wt(ln,{forceMount:void 0}),ho=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=qe(ln,t);return w.jsx(Mc,{scope:t,forceMount:n,children:w.jsx(_e,{present:n||i.open,children:w.jsx(jt,{asChild:!0,container:o,children:r})})})};ho.displayName=ln;var We="TooltipContent",vo=u.forwardRef((e,t)=>{const n=Lc(We,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=qe(We,e.__scopeTooltip);return w.jsx(_e,{present:r||s.open,children:s.disableHoverableContent?w.jsx(bo,{side:o,...i,ref:t}):w.jsx(jc,{side:o,...i,ref:t})})}),jc=u.forwardRef((e,t)=>{const n=qe(We,e.__scopeTooltip),r=an(We,e.__scopeTooltip),o=u.useRef(null),i=re(t,o),[s,a]=u.useState(null),{trigger:c,onClose:l}=n,d=o.current,{onPointerInTransitChange:f}=r,g=u.useCallback(()=>{a(null),f(!1)},[f]),p=u.useCallback((h,m)=>{const v=h.currentTarget,y={x:h.clientX,y:h.clientY},E=zc(y,v.getBoundingClientRect()),k=Wc(y,E),C=Bc(m.getBoundingClientRect()),S=Hc([...k,...C]);a(S),f(!0)},[f]);return u.useEffect(()=>()=>g(),[g]),u.useEffect(()=>{if(c&&d){const h=v=>p(v,d),m=v=>p(v,c);return c.addEventListener("pointerleave",h),d.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",h),d.removeEventListener("pointerleave",m)}}},[c,d,p,g]),u.useEffect(()=>{if(s){const h=m=>{const v=m.target,y={x:m.clientX,y:m.clientY},E=(c==null?void 0:c.contains(v))||(d==null?void 0:d.contains(v)),k=!Vc(y,s);E?g():k&&(g(),l())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[c,d,s,l,g]),w.jsx(bo,{...e,ref:i})}),[Ic,Fc]=wt(Xe,{isInside:!1}),$c=Ro("TooltipContent"),bo=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=qe(We,n),l=xt(n),{onClose:d}=c;return u.useEffect(()=>(document.addEventListener(sn,d),()=>document.removeEventListener(sn,d)),[d]),u.useEffect(()=>{if(c.trigger){const f=g=>{const p=g.target;p!=null&&p.contains(c.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,d]),w.jsx(Dt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:w.jsxs(Rc,{"data-state":c.stateAttribute,...l,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[w.jsx($c,{children:r}),w.jsx(Ic,{scope:n,isInside:!0,children:w.jsx(Oc,{id:c.contentId,role:"tooltip",children:o||r})})]})})});vo.displayName=We;var yo="TooltipArrow",wo=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=xt(n);return Fc(yo,n).isInside?null:w.jsx(Ac,{...o,...r,ref:t})});wo.displayName=yo;function zc(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Wc(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Bc(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Vc(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],c=t[s],l=a.x,d=a.y,f=c.x,g=c.y;d>r!=g>r&&n<(f-l)*(r-d)/(g-d)+l&&(o=!o)}return o}function Hc(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Uc(t)}function Uc(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Gc=mo,Yc=po,Xc=go,qc=ho,Kc=vo,Zc=wo;function xo({delayDuration:e=0,...t}){return w.jsx(Gc,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Jc({...e}){return w.jsx(xo,{children:w.jsx(Yc,{"data-slot":"tooltip",...e})})}function Qc({...e}){return w.jsx(Xc,{"data-slot":"tooltip-trigger",...e})}function el({className:e,sideOffset:t=0,children:n,...r}){return w.jsx(qc,{children:w.jsxs(Kc,{"data-slot":"tooltip-content",sideOffset:t,className:ce("bg-neutral-black-1 text-white animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 z-50 max-w-[362px]! origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs",e),...r,children:[n,w.jsx(Zc,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}W.Badge=oa,W.Button=ui,W.Dialog=qs,W.DialogClose=Zs,W.DialogContent=Js,W.DialogDescription=na,W.DialogFooter=ea,W.DialogHeader=Qs,W.DialogOverlay=Or,W.DialogPortal=Tr,W.DialogTitle=ta,W.DialogTrigger=Ks,W.Tooltip=Jc,W.TooltipContent=el,W.TooltipProvider=xo,W.TooltipTrigger=Qc,W.cn=ce,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})});