@datawire-ai/busyfile-design-library 1.29.0 → 1.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8165 -4243
- package/dist/index.umd.cjs +62 -47
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +554 -0
- package/package.json +4 -3
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(D,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],M):(D=typeof globalThis<"u"?globalThis:D||self,M(D.BusyFileDesignSystem={},D.React,D.ReactDOM))})(this,function(D,M,zo){"use strict";function Vo(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=Vo(M),gn=Vo(zo);var ir={exports:{}},Yt={};/**
|
|
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
|
|
9
|
+
*/var Yo;function nd(){if(Yo)return Yt;Yo=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var i in o)i!=="key"&&(a[i]=o[i])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:a}}return Yt.Fragment=t,Yt.jsx=n,Yt.jsxs=n,Yt}var Ht={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,156 +14,171 @@
|
|
|
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
|
|
17
|
+
*/var Ho;function rd(){return Ho||(Ho=1,process.env.NODE_ENV!=="production"&&function(){function e(T){if(T==null)return null;if(typeof T=="function")return T.$$typeof===Y?null:T.displayName||T.name||null;if(typeof T=="string")return T;switch(T){case h:return"Fragment";case x:return"Profiler";case v:return"StrictMode";case k:return"Suspense";case _:return"SuspenseList";case F:return"Activity"}if(typeof T=="object")switch(typeof T.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),T.$$typeof){case b:return"Portal";case w:return(T.displayName||"Context")+".Provider";case y:return(T._context.displayName||"Context")+".Consumer";case S:var G=T.render;return T=T.displayName,T||(T=G.displayName||G.name||"",T=T!==""?"ForwardRef("+T+")":"ForwardRef"),T;case C:return G=T.displayName||null,G!==null?G:e(T.type)||"Memo";case E:G=T._payload,T=T._init;try{return e(T(G))}catch{}}return null}function t(T){return""+T}function n(T){try{t(T);var G=!1}catch{G=!0}if(G){G=console;var O=G.error,A=typeof Symbol=="function"&&Symbol.toStringTag&&T[Symbol.toStringTag]||T.constructor.name||"Object";return O.call(G,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",A),t(T)}}function r(T){if(T===h)return"<>";if(typeof T=="object"&&T!==null&&T.$$typeof===E)return"<...>";try{var G=e(T);return G?"<"+G+">":"<...>"}catch{return"<...>"}}function o(){var T=R.A;return T===null?null:T.getOwner()}function a(){return Error("react-stack-top-frame")}function s(T){if(z.call(T,"key")){var G=Object.getOwnPropertyDescriptor(T,"key").get;if(G&&G.isReactWarning)return!1}return T.key!==void 0}function i(T,G){function O(){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)",G))}O.isReactWarning=!0,Object.defineProperty(T,"key",{get:O,configurable:!0})}function l(){var T=e(this.type);return B[T]||(B[T]=!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.")),T=this.props.ref,T!==void 0?T:null}function d(T,G,O,A,W,I,ee,j){return O=I.ref,T={$$typeof:g,type:T,key:G,props:I,_owner:W},(O!==void 0?O:null)!==null?Object.defineProperty(T,"ref",{enumerable:!1,get:l}):Object.defineProperty(T,"ref",{enumerable:!1,value:null}),T._store={},Object.defineProperty(T._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(T,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(T,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ee}),Object.defineProperty(T,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:j}),Object.freeze&&(Object.freeze(T.props),Object.freeze(T)),T}function f(T,G,O,A,W,I,ee,j){var V=G.children;if(V!==void 0)if(A)if(K(V)){for(A=0;A<V.length;A++)m(V[A]);Object.freeze&&Object.freeze(V)}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 m(V);if(z.call(G,"key")){V=e(T);var J=Object.keys(G).filter(function(se){return se!=="key"});A=0<J.length?"{key: someKey, "+J.join(": ..., ")+": ...}":"{key: someKey}",te[V+A]||(J=0<J.length?"{"+J.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,F,U,F),te[F+A]=!0)}if(F=null,S!==void 0&&(r(S),F=""+S),s(B)&&(r(B.key),F=""+B.key),"key"in B){S={};for(var Z in B)Z!=="key"&&(S[Z]=B[Z])}else S=B;return F&&i(S,typeof k=="function"?k.displayName||k.name||"Unknown":k),d(k,F,I,D,o(),S,Y,P)}function p(k){typeof k=="object"&&k!==null&&k.$$typeof===h&&k._store&&(k._store.validated=1)}var g=ae,h=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),y=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),K=Symbol.for("react.client.reference"),X=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,ee=Array.isArray,W=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(k){return k()}};var q,$={},H=g["react-stack-bottom-frame"].bind(g,a)(),N=W(n(a)),te={};ft.Fragment=m,ft.jsx=function(k,B,S,A,D){var I=1e4>X.recentlyCreatedOwnerStacks++;return f(k,B,S,!1,A,D,I?Error("react-stack-top-frame"):H,I?W(n(k)):N)},ft.jsxs=function(k,B,S,A,D){var I=1e4>X.recentlyCreatedOwnerStacks++;return f(k,B,S,!0,A,D,I?Error("react-stack-top-frame"):H,I?W(n(k)):N)}}()),ft}process.env.NODE_ENV==="production"?Sr.exports=sl():Sr.exports=il();var u=Sr.exports;function Fn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ve(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Fn(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():Fn(e[o],null)}}}}function ne(...e){return l.useCallback(Ve(...e),e)}function Be(e){const t=ll(e),r=l.forwardRef((n,o)=>{const{children:a,...s}=n,i=l.Children.toArray(a),c=i.find(ul);if(c){const d=c.props.children,f=i.map(p=>p===c?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:p);return u.jsx(t,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return u.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var At=Be("Slot");function ll(e){const t=l.forwardRef((r,n)=>{const{children:o,...a}=r;if(l.isValidElement(o)){const s=fl(o),i=dl(a,o.props);return o.type!==l.Fragment&&(i.ref=n?Ve(n,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vn=Symbol("radix.slottable");function cl(e){const t=({children:r})=>u.jsx(u.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Vn,t}function ul(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vn}function dl(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]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function fl(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 Bn(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=Bn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function zn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Bn(e))&&(n&&(n+=" "),n+=t);return n}const Cr="-",pl=e=>{const t=hl(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const i=s.split(Cr);return i[0]===""&&i.length!==1&&i.shift(),Wn(i,t)||ml(s)},getConflictingClassGroupIds:(s,i)=>{const c=r[s]||[];return i&&n[s]?[...c,...n[s]]:c}}},Wn=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Wn(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Cr);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},Gn=/^\[(.+)\]$/,ml=e=>{if(Gn.test(e)){const t=Gn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},hl=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)kr(r[o],n,o,t);return n},kr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Hn(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(gl(o)){kr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,s])=>{kr(s,Hn(t,a),r,n)})})},Hn=(e,t)=>{let r=e;return t.split(Cr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},gl=e=>e.isThemeGetter,vl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,s)=>{r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return o(a,s),s},set(a,s){r.has(a)?r.set(a,s):o(a,s)}}},Er="!",Rr=":",bl=Rr.length,xl=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let s=0,i=0,c=0,d;for(let v=0;v<o.length;v++){let m=o[v];if(s===0&&i===0){if(m===Rr){a.push(o.slice(c,v)),c=v+bl;continue}if(m==="/"){d=v;continue}}m==="["?s++:m==="]"?s--:m==="("?i++:m===")"&&i--}const f=a.length===0?o:o.substring(c),p=wl(f),g=p!==f,h=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:p,maybePostfixModifierPosition:h}};if(t){const o=t+Rr,a=n;n=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},wl=e=>e.endsWith(Er)?e.substring(0,e.length-1):e.startsWith(Er)?e.substring(1):e,yl=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(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},Sl=e=>({cache:vl(e.cacheSize),parseClassName:xl(e),sortModifiers:yl(e),...pl(e)}),Cl=/\s+/,kl=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(Cl);let c="";for(let d=i.length-1;d>=0;d-=1){const f=i[d],{isExternal:p,modifiers:g,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let b=!!m,x=n(b?v.substring(0,m):v);if(!x){if(!b){c=f+(c.length>0?" "+c:c);continue}if(x=n(v),!x){c=f+(c.length>0?" "+c:c);continue}b=!1}const w=a(g).join(":"),y=h?w+Er:w,C=y+x;if(s.includes(C))continue;s.push(C);const E=o(x,b);for(let T=0;T<E.length;++T){const _=E[T];s.push(y+_)}c=f+(c.length>0?" "+c:c)}return c};function El(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Un(t))&&(n&&(n+=" "),n+=r);return n}const Un=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Un(e[n]))&&(r&&(r+=" "),r+=t);return r};function Rl(e,...t){let r,n,o,a=s;function s(c){const d=t.reduce((f,p)=>p(f),e());return r=Sl(d),n=r.cache.get,o=r.cache.set,a=i,i(c)}function i(c){const d=n(c);if(d)return d;const f=kl(c,r);return o(c,f),f}return function(){return a(El.apply(null,arguments))}}const se=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Kn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Yn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_l=/^\d+\/\d+$/,Nl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pl=/\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$/,Tl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Al=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Il=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ye=e=>_l.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),Ae=e=>!!e&&Number.isInteger(Number(e)),_r=e=>e.endsWith("%")&&J(e.slice(0,-1)),_e=e=>Nl.test(e),jl=()=>!0,Ol=e=>Pl.test(e)&&!Tl.test(e),qn=()=>!1,Ml=e=>Al.test(e),Dl=e=>Il.test(e),Ll=e=>!O(e)&&!M(e),$l=e=>qe(e,eo,qn),O=e=>Kn.test(e),ze=e=>qe(e,to,Ol),Nr=e=>qe(e,Wl,J),Xn=e=>qe(e,Jn,qn),Fl=e=>qe(e,Qn,Dl),It=e=>qe(e,ro,Ml),M=e=>Yn.test(e),pt=e=>Xe(e,to),Vl=e=>Xe(e,Gl),Zn=e=>Xe(e,Jn),Bl=e=>Xe(e,eo),zl=e=>Xe(e,Qn),jt=e=>Xe(e,ro,!0),qe=(e,t,r)=>{const n=Kn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Xe=(e,t,r=!1)=>{const n=Yn.exec(e);return n?n[1]?t(n[1]):r:!1},Jn=e=>e==="position"||e==="percentage",Qn=e=>e==="image"||e==="url",eo=e=>e==="length"||e==="size"||e==="bg-size",to=e=>e==="length",Wl=e=>e==="number",Gl=e=>e==="family-name",ro=e=>e==="shadow",Hl=Rl(()=>{const e=se("color"),t=se("font"),r=se("text"),n=se("font-weight"),o=se("tracking"),a=se("leading"),s=se("breakpoint"),i=se("container"),c=se("spacing"),d=se("radius"),f=se("shadow"),p=se("inset-shadow"),g=se("text-shadow"),h=se("drop-shadow"),v=se("blur"),m=se("perspective"),b=se("aspect"),x=se("ease"),w=se("animate"),y=()=>["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"],E=()=>[...C(),M,O],T=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],R=()=>[M,O,c],G=()=>[Ye,"full","auto",...R()],K=()=>[Ae,"none","subgrid",M,O],X=()=>["auto",{span:["full",Ae,M,O]},Ae,M,O],Q=()=>[Ae,"auto",M,O],ee=()=>["auto","min","max","fr",M,O],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...R()],H=()=>[Ye,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],N=()=>[e,M,O],te=()=>[...C(),Zn,Xn,{position:[M,O]}],k=()=>["no-repeat",{repeat:["","x","y","space","round"]}],B=()=>["auto","cover","contain",Bl,$l,{size:[M,O]}],S=()=>[_r,pt,ze],A=()=>["","none","full",d,M,O],D=()=>["",J,pt,ze],I=()=>["solid","dashed","dotted","double"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>[J,_r,Zn,Xn],F=()=>["","none",v,M,O],U=()=>["none",J,M,O],Z=()=>["none",J,M,O],re=()=>[J,M,O],oe=()=>[Ye,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_e],breakpoint:[_e],color:[jl],container:[_e],"drop-shadow":[_e],ease:["in","out","in-out"],font:[Ll],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_e],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_e],shadow:[_e],spacing:["px",J],text:[_e],"text-shadow":[_e],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ye,O,M,b]}],container:["container"],columns:[{columns:[J,O,M,i]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:E()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[Ae,"auto",M,O]}],basis:[{basis:[Ye,"full","auto",i,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[J,Ye,"auto","initial","none",O]}],grow:[{grow:["",J,M,O]}],shrink:[{shrink:["",J,M,O]}],order:[{order:[Ae,"first","last","none",M,O]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],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:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[i,"screen",...H()]}],"min-w":[{"min-w":[i,"screen","none",...H()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",r,pt,ze]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,M,Nr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_r,O]}],"font-family":[{font:[Vl,O,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,M,O]}],"line-clamp":[{"line-clamp":[J,"none",M,Nr]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",M,O]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",M,O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...I(),"wavy"]}],"text-decoration-thickness":[{decoration:[J,"from-font","auto",M,ze]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[J,"auto",M,O]}],"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",M,O]}],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",M,O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:k()}],"bg-size":[{bg:B()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ae,M,O],radial:["",M,O],conic:[Ae,M,O]},zl,Fl]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],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:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...I(),"hidden","none"]}],"divide-style":[{divide:[...I(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...I(),"none","hidden"]}],"outline-offset":[{"outline-offset":[J,M,O]}],"outline-w":[{outline:["",J,pt,ze]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",f,jt,It]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",p,jt,It]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[J,ze]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",g,jt,It]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[J,M,O]}],"mix-blend":[{"mix-blend":[...Y(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Y()}],"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":[J]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[M,O]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"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":[J]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:k()}],"mask-size":[{mask:B()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",M,O]}],filter:[{filter:["","none",M,O]}],blur:[{blur:F()}],brightness:[{brightness:[J,M,O]}],contrast:[{contrast:[J,M,O]}],"drop-shadow":[{"drop-shadow":["","none",h,jt,It]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",J,M,O]}],"hue-rotate":[{"hue-rotate":[J,M,O]}],invert:[{invert:["",J,M,O]}],saturate:[{saturate:[J,M,O]}],sepia:[{sepia:["",J,M,O]}],"backdrop-filter":[{"backdrop-filter":["","none",M,O]}],"backdrop-blur":[{"backdrop-blur":F()}],"backdrop-brightness":[{"backdrop-brightness":[J,M,O]}],"backdrop-contrast":[{"backdrop-contrast":[J,M,O]}],"backdrop-grayscale":[{"backdrop-grayscale":["",J,M,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,M,O]}],"backdrop-invert":[{"backdrop-invert":["",J,M,O]}],"backdrop-opacity":[{"backdrop-opacity":[J,M,O]}],"backdrop-saturate":[{"backdrop-saturate":[J,M,O]}],"backdrop-sepia":[{"backdrop-sepia":["",J,M,O]}],"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",M,O]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[J,"initial",M,O]}],ease:[{ease:["linear","initial",x,M,O]}],delay:[{delay:[J,M,O]}],animate:[{animate:["none",w,M,O]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,M,O]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:U()}],"rotate-x":[{"rotate-x":U()}],"rotate-y":[{"rotate-y":U()}],"rotate-z":[{"rotate-z":U()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[M,O,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"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",M,O]}],"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",M,O]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[J,pt,ze,Nr]}],stroke:[{stroke:["none",...N()]}],"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 j(...e){return Hl(zn(e))}const no=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,oo=zn,le=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return oo(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const f=r==null?void 0:r[d],p=a==null?void 0:a[d];if(f===null)return null;const g=no(f)||no(p);return o[d][g]}),i=r&&Object.entries(r).reduce((d,f)=>{let[p,g]=f;return g===void 0||(d[p]=g),d},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,f)=>{let{class:p,className:g,...h}=f;return Object.entries(h).every(v=>{let[m,b]=v;return Array.isArray(b)?b.includes({...a,...i}[m]):{...a,...i}[m]===b})?[...d,p,g]:d},[]);return oo(e,s,c,r==null?void 0:r.class,r==null?void 0:r.className)},Ul=le("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 cursor-pointer",{variants:{variant:{default:"bg-neutral-black-1 text-sm font-normal text-white shadow-sm hover:bg-neutral-black-2 focus-visible:ring-neutral-black-1",primary:"bg-neutral-black-5 text-sm font-normal text-neutral-70 hover:bg-neutral-black-5 focus-visible:ring-bg-neutral-black-5",outline:"bg-transparent text-black hover:bg-neutral-black-2 focus-visible:ring-4 focus-visible:ring-bg-surface border border-bg-neutral-black-2"},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 Ot({className:e,variant:t,size:r,asChild:n=!1,children:o,...a}){const s=n?At:"button";return u.jsx(s,{"data-slot":"button",className:j(Ul({variant:t,size:r}),e),...a,children:o})}function z(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 Kl(e,t){const r=l.createContext(t),n=a=>{const{children:s,...i}=a,c=l.useMemo(()=>i,Object.values(i));return u.jsx(r.Provider,{value:c,children:s})};n.displayName=e+"Provider";function o(a){const s=l.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function de(e,t=[]){let r=[];function n(a,s){const i=l.createContext(s),c=r.length;r=[...r,s];const d=p=>{var x;const{scope:g,children:h,...v}=p,m=((x=g==null?void 0:g[e])==null?void 0:x[c])||i,b=l.useMemo(()=>v,Object.values(v));return u.jsx(m.Provider,{value:b,children:h})};d.displayName=a+"Provider";function f(p,g){var m;const h=((m=g==null?void 0:g[e])==null?void 0:m[c])||i,v=l.useContext(h);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=r.map(s=>l.createContext(s));return function(i){const c=(i==null?void 0:i[e])||a;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[n,Yl(o,...t)]}function Yl(...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 s=n.reduce((i,{useScope:c,scopeName:d})=>{const p=c(a)[`__scope${d}`];return{...i,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},ql=l[" useInsertionEffect ".trim().toString()]||ie;function we({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,s]=Xl({defaultProp:t,onChange:r}),i=e!==void 0,c=i?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,n])}const d=l.useCallback(f=>{var p;if(i){const g=Zl(f)?f(e):f;g!==e&&((p=s.current)==null||p.call(s,g))}else a(f)},[i,e,a,s]);return[c,d]}function Xl({defaultProp:e,onChange:t}){const[r,n]=l.useState(e),o=l.useRef(r),a=l.useRef(t);return ql(()=>{a.current=t},[t]),l.useEffect(()=>{var s;o.current!==r&&((s=a.current)==null||s.call(a,r),o.current=r)},[r,o]),[r,n,a]}function Zl(e){return typeof e=="function"}function Mt(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Dt(e){const[t,r]=l.useState(void 0);return ie(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;s=d.inlineSize,i=d.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Jl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],V=Jl.reduce((e,t)=>{const r=Be(`Primitive.${t}`),n=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ql(e,t){e&&Tt.flushSync(()=>e.dispatchEvent(t))}var Lt="Switch",[ec,sg]=de(Lt),[tc,rc]=ec(Lt),ao=l.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:a,required:s,disabled:i,value:c="on",onCheckedChange:d,form:f,...p}=e,[g,h]=l.useState(null),v=ne(t,y=>h(y)),m=l.useRef(!1),b=g?f||!!g.closest("form"):!0,[x,w]=we({prop:o,defaultProp:a??!1,onChange:d,caller:Lt});return u.jsxs(tc,{scope:r,checked:x,disabled:i,children:[u.jsx(V.button,{type:"button",role:"switch","aria-checked":x,"aria-required":s,"data-state":co(x),"data-disabled":i?"":void 0,disabled:i,value:c,...p,ref:v,onClick:z(e.onClick,y=>{w(C=>!C),b&&(m.current=y.isPropagationStopped(),m.current||y.stopPropagation())})}),b&&u.jsx(lo,{control:g,bubbles:!m.current,name:n,value:c,checked:x,required:s,disabled:i,form:f,style:{transform:"translateX(-100%)"}})]})});ao.displayName=Lt;var so="SwitchThumb",io=l.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=rc(so,r);return u.jsx(V.span,{"data-state":co(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});io.displayName=so;var nc="SwitchBubbleInput",lo=l.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=l.useRef(null),i=ne(s,a),c=Mt(r),d=Dt(t);return l.useEffect(()=>{const f=s.current;if(!f)return;const p=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&h){const v=new Event("click",{bubbles:n});h.call(f,r),f.dispatchEvent(v)}},[c,r,n]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});lo.displayName=nc;function co(e){return e?"checked":"unchecked"}var oc=ao,ac=io;const sc=le(["group relative inline-flex items-center cursor-pointer transition-all duration-200 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-100","h-[13px] w-[25px] rounded-full p-[1px]","bg-neutral-black-2","hover:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","focus-visible:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","active:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","data-[state=checked]:bg-neutral-black-1 data-[state=checked]:hover:shadow-[0_0_0_3px_rgba(10,10,10,.1)]","data-[state=checked]:focus-visible:shadow-[0_0_0_3px_rgba(10,10,10,0.2)]","data-[state=checked]:active:shadow-[0_0_0_3px_rgba(10,10,10,0.2)]","disabled:bg-neutral-black-5 disabled:hover:shadow-none disabled:focus-visible:shadow-none disabled:active:shadow-none","data-[state=checked]:disabled:bg-neutral-black-5 data-[state=checked]:disabled:hover:shadow-none data-[state=checked]:disabled:focus-visible:shadow-none data-[state=checked]:disabled:active:shadow-none"]),ic=le(["block rounded-full transition-transform duration-200 ease-in-out","shadow-[0_3px_6px_-3px_rgba(0,0,0,0.05),0_2px_4px_-2px_rgba(0,0,0,0.05)]","h-[11px] w-[11px] bg-white","translate-x-0 group-data-[state=checked]:translate-x-[12px]"]);function lc({className:e,...t}){return u.jsx(oc,{"data-slot":"switch",className:j(sc(),e),...t,children:u.jsx(ac,{"data-slot":"switch-thumb",className:j(ic())})})}function uo(e){const t=e+"CollectionProvider",[r,n]=de(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:b,children:x}=m,w=ae.useRef(null),y=ae.useRef(new Map).current;return u.jsx(o,{scope:b,itemMap:y,collectionRef:w,children:x})};s.displayName=t;const i=e+"CollectionSlot",c=Be(i),d=ae.forwardRef((m,b)=>{const{scope:x,children:w}=m,y=a(i,x),C=ne(b,y.collectionRef);return u.jsx(c,{ref:C,children:w})});d.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",g=Be(f),h=ae.forwardRef((m,b)=>{const{scope:x,children:w,...y}=m,C=ae.useRef(null),E=ne(b,C),T=a(f,x);return ae.useEffect(()=>(T.itemMap.set(C,{ref:C,...y}),()=>void T.itemMap.delete(C))),u.jsx(g,{[p]:"",ref:E,children:w})});h.displayName=f;function v(m){const b=a(e+"CollectionConsumer",m);return ae.useCallback(()=>{const w=b.collectionRef.current;if(!w)return[];const y=Array.from(w.querySelectorAll(`[${p}]`));return Array.from(b.itemMap.values()).sort((T,_)=>y.indexOf(T.ref.current)-y.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:d,ItemSlot:h},v,n]}var cc=l[" useId ".trim().toString()]||(()=>{}),uc=0;function ce(e){const[t,r]=l.useState(cc());return ie(()=>{r(n=>n??String(uc++))},[e]),t?`radix-${t}`:""}function Ne(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)},[])}var dc=l.createContext(void 0);function $t(e){const t=l.useContext(dc);return e||t||"ltr"}var Pr="rovingFocusGroup.onEntryFocus",fc={bubbles:!1,cancelable:!0},mt="RovingFocusGroup",[Tr,fo,pc]=uo(mt),[mc,Ft]=de(mt,[pc]),[hc,gc]=mc(mt),po=l.forwardRef((e,t)=>u.jsx(Tr.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Tr.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(vc,{...e,ref:t})})}));po.displayName=mt;var vc=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,g=l.useRef(null),h=ne(t,g),v=$t(a),[m,b]=we({prop:s,defaultProp:i??null,onChange:c,caller:mt}),[x,w]=l.useState(!1),y=Ne(d),C=fo(r),E=l.useRef(!1),[T,_]=l.useState(0);return l.useEffect(()=>{const R=g.current;if(R)return R.addEventListener(Pr,y),()=>R.removeEventListener(Pr,y)},[y]),u.jsx(hc,{scope:r,orientation:n,dir:v,loop:o,currentTabStopId:m,onItemFocus:l.useCallback(R=>b(R),[b]),onItemShiftTab:l.useCallback(()=>w(!0),[]),onFocusableItemAdd:l.useCallback(()=>_(R=>R+1),[]),onFocusableItemRemove:l.useCallback(()=>_(R=>R-1),[]),children:u.jsx(V.div,{tabIndex:x||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:z(e.onMouseDown,()=>{E.current=!0}),onFocus:z(e.onFocus,R=>{const G=!E.current;if(R.target===R.currentTarget&&G&&!x){const K=new CustomEvent(Pr,fc);if(R.currentTarget.dispatchEvent(K),!K.defaultPrevented){const X=C().filter($=>$.focusable),Q=X.find($=>$.active),ee=X.find($=>$.id===m),q=[Q,ee,...X].filter(Boolean).map($=>$.ref.current);go(q,f)}}E.current=!1}),onBlur:z(e.onBlur,()=>w(!1))})})}),mo="RovingFocusGroupItem",ho=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:s,...i}=e,c=ce(),d=a||c,f=gc(mo,r),p=f.currentTabStopId===d,g=fo(r),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:m}=f;return l.useEffect(()=>{if(n)return h(),()=>v()},[n,h,v]),u.jsx(Tr.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:u.jsx(V.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:z(e.onMouseDown,b=>{n?f.onItemFocus(d):b.preventDefault()}),onFocus:z(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:z(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){f.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const x=wc(b,f.orientation,f.dir);if(x!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let y=g().filter(C=>C.focusable).map(C=>C.ref.current);if(x==="last")y.reverse();else if(x==="prev"||x==="next"){x==="prev"&&y.reverse();const C=y.indexOf(b.currentTarget);y=f.loop?yc(y,C+1):y.slice(C+1)}setTimeout(()=>go(y))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:m!=null}):s})})});ho.displayName=mo;var bc={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function xc(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function wc(e,t,r){const n=xc(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return bc[n]}function go(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function yc(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var vo=po,bo=ho;function Sc(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var he=e=>{const{present:t,children:r}=e,n=Cc(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),a=ne(n.ref,kc(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:a}):null};he.displayName="Presence";function Cc(e){const[t,r]=l.useState(),n=l.useRef(null),o=l.useRef(e),a=l.useRef("none"),s=e?"mounted":"unmounted",[i,c]=Sc(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const d=Vt(n.current);a.current=i==="mounted"?d:"none"},[i]),ie(()=>{const d=n.current,f=o.current;if(f!==e){const g=a.current,h=Vt(d);e?c("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ie(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=h=>{const m=Vt(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(c("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},g=h=>{h.target===t&&(a.current=Vt(n.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function Vt(e){return(e==null?void 0:e.animationName)||"none"}function kc(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 Ar="Radio",[Ec,xo]=de(Ar),[Rc,_c]=Ec(Ar),wo=l.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:c,form:d,...f}=e,[p,g]=l.useState(null),h=ne(t,b=>g(b)),v=l.useRef(!1),m=p?d||!!p.closest("form"):!0;return u.jsxs(Rc,{scope:r,checked:o,disabled:s,children:[u.jsx(V.button,{type:"button",role:"radio","aria-checked":o,"data-state":ko(o),"data-disabled":s?"":void 0,disabled:s,value:i,...f,ref:h,onClick:z(e.onClick,b=>{o||c==null||c(),m&&(v.current=b.isPropagationStopped(),v.current||b.stopPropagation())})}),m&&u.jsx(Co,{control:p,bubbles:!v.current,name:n,value:i,checked:o,required:a,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});wo.displayName=Ar;var yo="RadioIndicator",So=l.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,a=_c(yo,r);return u.jsx(he,{present:n||a.checked,children:u.jsx(V.span,{"data-state":ko(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});So.displayName=yo;var Nc="RadioBubbleInput",Co=l.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=l.useRef(null),i=ne(s,a),c=Mt(r),d=Dt(t);return l.useEffect(()=>{const f=s.current;if(!f)return;const p=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&h){const v=new Event("click",{bubbles:n});h.call(f,r),f.dispatchEvent(v)}},[c,r,n]),u.jsx(V.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Co.displayName=Nc;function ko(e){return e?"checked":"unchecked"}var Pc=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Bt="RadioGroup",[Tc,ig]=de(Bt,[Ft,xo]),Eo=Ft(),Ro=xo(),[Ac,Ic]=Tc(Bt),_o=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:c,dir:d,loop:f=!0,onValueChange:p,...g}=e,h=Eo(r),v=$t(d),[m,b]=we({prop:a,defaultProp:o??null,onChange:p,caller:Bt});return u.jsx(Ac,{scope:r,name:n,required:s,disabled:i,value:m,onValueChange:b,children:u.jsx(vo,{asChild:!0,...h,orientation:c,dir:v,loop:f,children:u.jsx(V.div,{role:"radiogroup","aria-required":s,"aria-orientation":c,"data-disabled":i?"":void 0,dir:v,...g,ref:t})})})});_o.displayName=Bt;var No="RadioGroupItem",Po=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,a=Ic(No,r),s=a.disabled||n,i=Eo(r),c=Ro(r),d=l.useRef(null),f=ne(t,d),p=a.value===o.value,g=l.useRef(!1);return l.useEffect(()=>{const h=m=>{Pc.includes(m.key)&&(g.current=!0)},v=()=>g.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",v)}},[]),u.jsx(bo,{asChild:!0,...i,focusable:!s,active:p,children:u.jsx(wo,{disabled:s,required:a.required,checked:p,...c,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:z(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:z(o.onFocus,()=>{var h;g.current&&((h=d.current)==null||h.click())})})})});Po.displayName=No;var jc="RadioGroupIndicator",To=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=Ro(r);return u.jsx(So,{...o,...n,ref:t})});To.displayName=jc;var Ao=_o,Io=Po,Oc=To;const Mc=()=>({root:j("relative inline-flex items-center cursor-pointer","data-[disabled]:cursor-not-allowed"),indicator:j("relative flex items-center justify-center","w-4 h-4 rounded-full border-2 transition-all duration-200","border-neutral-black-2","hover:shadow-[0_0_0_3px_var(--color-neutral-black-5)] hover:bg-neutral-black-5","focus:shadow-[0_0_0_3px_var(--color-neutral-black-3)] focus:bg-neutral-black-3","data-[state=checked]:border-neutral-black-1","data-[state=checked]:hover:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","data-[state=checked]:hover:bg-neutral-black-4","data-[state=checked]:focus:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","data-[state=checked]:focus:bg-neutral-black-1","data-[disabled]:hover:shadow-none data-[disabled]:hover:bg-transparent data-[disabled]:data-[state=checked]:bg-transparent data-[disabled]:data-[state=checked]:shadow-none data-[disabled]:focus:shadow-none data-[disabled]:border-neutral-black-3"),innerCircle:j("w-2 h-2 rounded-full transition-all duration-200","bg-neutral-black-1"),label:j("ml-2.5 text-md cursor-pointer select-none","data-[disabled]:cursor-not-allowed")}),jo=l.forwardRef(({className:e,...t},r)=>u.jsx(Ao,{className:j("grid gap-2",e),...t,ref:r}));jo.displayName=Ao.displayName;const Oo=l.forwardRef(({children:e,disabled:t,...r},n)=>{const o=Mc();return u.jsxs("label",{className:o.root,"data-disabled":t,children:[u.jsx(Io,{ref:n,className:j(o.indicator),disabled:t,...r,children:u.jsx(Oc,{className:"flex items-center justify-center",children:u.jsx("div",{className:o.innerCircle})})}),e&&u.jsx("span",{className:o.label,"data-disabled":t,children:e})]})});Oo.displayName=Io.displayName;var zt="Checkbox",[Dc,lg]=de(zt),[Lc,Ir]=Dc(zt);function $c(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:o,disabled:a,form:s,name:i,onCheckedChange:c,required:d,value:f="on",internal_do_not_use_render:p}=e,[g,h]=we({prop:r,defaultProp:o??!1,onChange:c,caller:zt}),[v,m]=l.useState(null),[b,x]=l.useState(null),w=l.useRef(!1),y=v?!!s||!!v.closest("form"):!0,C={checked:g,disabled:a,setChecked:h,control:v,setControl:m,name:i,form:s,value:f,hasConsumerStoppedPropagationRef:w,required:d,defaultChecked:Ie(o)?!1:o,isFormControl:y,bubbleInput:b,setBubbleInput:x};return u.jsx(Lc,{scope:t,...C,children:Fc(p)?p(C):n})}var Mo="CheckboxTrigger",Do=l.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},o)=>{const{control:a,value:s,disabled:i,checked:c,required:d,setControl:f,setChecked:p,hasConsumerStoppedPropagationRef:g,isFormControl:h,bubbleInput:v}=Ir(Mo,e),m=ne(o,f),b=l.useRef(c);return l.useEffect(()=>{const x=a==null?void 0:a.form;if(x){const w=()=>p(b.current);return x.addEventListener("reset",w),()=>x.removeEventListener("reset",w)}},[a,p]),u.jsx(V.button,{type:"button",role:"checkbox","aria-checked":Ie(c)?"mixed":c,"aria-required":d,"data-state":zo(c),"data-disabled":i?"":void 0,disabled:i,value:s,...n,ref:m,onKeyDown:z(t,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:z(r,x=>{p(w=>Ie(w)?!0:!w),v&&h&&(g.current=x.isPropagationStopped(),g.current||x.stopPropagation())})})});Do.displayName=Mo;var Lo=l.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:a,required:s,disabled:i,value:c,onCheckedChange:d,form:f,...p}=e;return u.jsx($c,{__scopeCheckbox:r,checked:o,defaultChecked:a,disabled:i,required:s,onCheckedChange:d,name:n,form:f,value:c,internal_do_not_use_render:({isFormControl:g})=>u.jsxs(u.Fragment,{children:[u.jsx(Do,{...p,ref:t,__scopeCheckbox:r}),g&&u.jsx(Bo,{__scopeCheckbox:r})]})})});Lo.displayName=zt;var $o="CheckboxIndicator",Fo=l.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,a=Ir($o,r);return u.jsx(he,{present:n||Ie(a.checked)||a.checked===!0,children:u.jsx(V.span,{"data-state":zo(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Fo.displayName=$o;var Vo="CheckboxBubbleInput",Bo=l.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:s,required:i,disabled:c,name:d,value:f,form:p,bubbleInput:g,setBubbleInput:h}=Ir(Vo,e),v=ne(r,h),m=Mt(a),b=Dt(n);l.useEffect(()=>{const w=g;if(!w)return;const y=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(y,"checked").set,T=!o.current;if(m!==a&&E){const _=new Event("click",{bubbles:T});w.indeterminate=Ie(a),E.call(w,Ie(a)?!1:a),w.dispatchEvent(_)}},[g,m,a,o]);const x=l.useRef(Ie(a)?!1:a);return u.jsx(V.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??x.current,required:i,disabled:c,name:d,value:f,form:p,...t,tabIndex:-1,ref:v,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Bo.displayName=Vo;function Fc(e){return typeof e=="function"}function Ie(e){return e==="indeterminate"}function zo(e){return Ie(e)?"indeterminate":e?"checked":"unchecked"}/**
|
|
22
|
+
<%s key={someKey} {...props} />`,A,V,J,V),te[V+A]=!0)}if(V=null,O!==void 0&&(n(O),V=""+O),s(G)&&(n(G.key),V=""+G.key),"key"in G){O={};for(var ne in G)ne!=="key"&&(O[ne]=G[ne])}else O=G;return V&&i(O,typeof T=="function"?T.displayName||T.name||"Unknown":T),d(T,V,I,W,o(),O,ee,j)}function m(T){typeof T=="object"&&T!==null&&T.$$typeof===g&&T._store&&(T._store.validated=1)}var p=M,g=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),R=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,K=Array.isArray,H=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(T){return T()}};var Z,B={},Q=p["react-stack-bottom-frame"].bind(p,a)(),P=H(r(a)),te={};Ht.Fragment=h,Ht.jsx=function(T,G,O,A,W){var I=1e4>R.recentlyCreatedOwnerStacks++;return f(T,G,O,!1,A,W,I?Error("react-stack-top-frame"):Q,I?H(r(T)):P)},Ht.jsxs=function(T,G,O,A,W){var I=1e4>R.recentlyCreatedOwnerStacks++;return f(T,G,O,!0,A,W,I?Error("react-stack-top-frame"):Q,I?H(r(T)):P)}}()),Ht}process.env.NODE_ENV==="production"?ir.exports=nd():ir.exports=rd();var c=ir.exports;function Go(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ct(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Go(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Go(e[o],null)}}}}function le(...e){return u.useCallback(ct(...e),e)}function dt(e){const t=od(e),n=u.forwardRef((r,o)=>{const{children:a,...s}=r,i=u.Children.toArray(a),l=i.find(sd);if(l){const d=l.props.children,f=i.map(m=>m===l?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:m);return c.jsx(t,{...s,ref:o,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return c.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Ge=dt("Slot");function od(e){const t=u.forwardRef((n,r)=>{const{children:o,...a}=n;if(u.isValidElement(o)){const s=ld(o),i=id(a,o.props);return o.type!==u.Fragment&&(i.ref=r?ct(r,s):s),u.cloneElement(o,i)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Uo=Symbol("radix.slottable");function ad(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Uo,t}function sd(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Uo}function id(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function ld(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 qo(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=qo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ko(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=qo(e))&&(r&&(r+=" "),r+=t);return r}const lr="-",cd=e=>{const t=ud(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(lr);return i[0]===""&&i.length!==1&&i.shift(),Xo(i,t)||dd(s)},getConflictingClassGroupIds:(s,i)=>{const l=n[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},Xo=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Xo(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(lr);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},Zo=/^\[(.+)\]$/,dd=e=>{if(Zo.test(e)){const t=Zo.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ud=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)cr(n[o],r,o,t);return r},cr=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Qo(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(fd(o)){cr(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{cr(s,Qo(t,a),n,r)})})},Qo=(e,t)=>{let n=e;return t.split(lr).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},fd=e=>e.isThemeGetter,md=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},dr="!",ur=":",hd=ur.length,pd=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let s=0,i=0,l=0,d;for(let b=0;b<o.length;b++){let h=o[b];if(s===0&&i===0){if(h===ur){a.push(o.slice(l,b)),l=b+hd;continue}if(h==="/"){d=b;continue}}h==="["?s++:h==="]"?s--:h==="("?i++:h===")"&&i--}const f=a.length===0?o:o.substring(l),m=gd(f),p=m!==f,g=d&&d>l?d-l:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}};if(t){const o=t+ur,a=r;r=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},gd=e=>e.endsWith(dr)?e.substring(0,e.length-1):e.startsWith(dr)?e.substring(1):e,bd=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},vd=e=>({cache:md(e.cacheSize),parseClassName:pd(e),sortModifiers:bd(e),...cd(e)}),xd=/\s+/,yd=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(xd);let l="";for(let d=i.length-1;d>=0;d-=1){const f=i[d],{isExternal:m,modifiers:p,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:h}=n(f);if(m){l=f+(l.length>0?" "+l:l);continue}let v=!!h,x=r(v?b.substring(0,h):b);if(!x){if(!v){l=f+(l.length>0?" "+l:l);continue}if(x=r(b),!x){l=f+(l.length>0?" "+l:l);continue}v=!1}const y=a(p).join(":"),w=g?y+dr:y,S=w+x;if(s.includes(S))continue;s.push(S);const k=o(x,v);for(let _=0;_<k.length;++_){const C=k[_];s.push(w+C)}l=f+(l.length>0?" "+l:l)}return l};function wd(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Jo(t))&&(r&&(r+=" "),r+=n);return r}const Jo=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Jo(e[r]))&&(n&&(n+=" "),n+=t);return n};function kd(e,...t){let n,r,o,a=s;function s(l){const d=t.reduce((f,m)=>m(f),e());return n=vd(d),r=n.cache.get,o=n.cache.set,a=i,i(l)}function i(l){const d=r(l);if(d)return d;const f=yd(l,n);return o(l,f),f}return function(){return a(wd.apply(null,arguments))}}const pe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ea=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ta=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Sd=/^\d+\/\d+$/,Cd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Nd=/\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$/,Ed=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,_d=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Md=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kt=e=>Sd.test(e),oe=e=>!!e&&!Number.isNaN(Number(e)),Je=e=>!!e&&Number.isInteger(Number(e)),fr=e=>e.endsWith("%")&&oe(e.slice(0,-1)),Ue=e=>Cd.test(e),Od=()=>!0,Td=e=>Nd.test(e)&&!Ed.test(e),na=()=>!1,Pd=e=>_d.test(e),Dd=e=>Md.test(e),jd=e=>!L(e)&&!$(e),Ad=e=>St(e,ia,na),L=e=>ea.test(e),ut=e=>St(e,la,Td),mr=e=>St(e,Ld,oe),ra=e=>St(e,aa,na),Rd=e=>St(e,sa,Dd),bn=e=>St(e,ca,Pd),$=e=>ta.test(e),Gt=e=>Ct(e,la),Id=e=>Ct(e,$d),oa=e=>Ct(e,aa),Wd=e=>Ct(e,ia),Fd=e=>Ct(e,sa),vn=e=>Ct(e,ca,!0),St=(e,t,n)=>{const r=ea.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ct=(e,t,n=!1)=>{const r=ta.exec(e);return r?r[1]?t(r[1]):n:!1},aa=e=>e==="position"||e==="percentage",sa=e=>e==="image"||e==="url",ia=e=>e==="length"||e==="size"||e==="bg-size",la=e=>e==="length",Ld=e=>e==="number",$d=e=>e==="family-name",ca=e=>e==="shadow",Bd=kd(()=>{const e=pe("color"),t=pe("font"),n=pe("text"),r=pe("font-weight"),o=pe("tracking"),a=pe("leading"),s=pe("breakpoint"),i=pe("container"),l=pe("spacing"),d=pe("radius"),f=pe("shadow"),m=pe("inset-shadow"),p=pe("text-shadow"),g=pe("drop-shadow"),b=pe("blur"),h=pe("perspective"),v=pe("aspect"),x=pe("ease"),y=pe("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...S(),$,L],_=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],E=()=>[$,L,l],F=()=>[kt,"full","auto",...E()],Y=()=>[Je,"none","subgrid",$,L],R=()=>["auto",{span:["full",Je,$,L]},Je,$,L],z=()=>[Je,"auto",$,L],K=()=>["auto","min","max","fr",$,L],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...E()],Q=()=>[kt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],P=()=>[e,$,L],te=()=>[...S(),oa,ra,{position:[$,L]}],T=()=>["no-repeat",{repeat:["","x","y","space","round"]}],G=()=>["auto","cover","contain",Wd,Ad,{size:[$,L]}],O=()=>[fr,Gt,ut],A=()=>["","none","full",d,$,L],W=()=>["",oe,Gt,ut],I=()=>["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"],j=()=>[oe,fr,oa,ra],V=()=>["","none",b,$,L],J=()=>["none",oe,$,L],ne=()=>["none",oe,$,L],se=()=>[oe,$,L],ie=()=>[kt,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ue],breakpoint:[Ue],color:[Od],container:[Ue],"drop-shadow":[Ue],ease:["in","out","in-out"],font:[jd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ue],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ue],shadow:[Ue],spacing:["px",oe],text:[Ue],"text-shadow":[Ue],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",kt,L,$,v]}],container:["container"],columns:[{columns:[oe,L,$,i]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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:k()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{start:F()}],end:[{end:F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[Je,"auto",$,L]}],basis:[{basis:[kt,"full","auto",i,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[oe,kt,"auto","initial","none",L]}],grow:[{grow:["",oe,$,L]}],shrink:[{shrink:["",oe,$,L]}],order:[{order:[Je,"first","last","none",$,L]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:R()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:R()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":K()}],"auto-rows":[{"auto-rows":K()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],w:[{w:[i,"screen",...Q()]}],"min-w":[{"min-w":[i,"screen","none",...Q()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",n,Gt,ut]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,$,mr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fr,L]}],"font-family":[{font:[Id,L,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,$,L]}],"line-clamp":[{"line-clamp":[oe,"none",$,mr]}],leading:[{leading:[a,...E()]}],"list-image":[{"list-image":["none",$,L]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",$,L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...I(),"wavy"]}],"text-decoration-thickness":[{decoration:[oe,"from-font","auto",$,ut]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[oe,"auto",$,L]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$,L]}],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",$,L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:T()}],"bg-size":[{bg:G()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Je,$,L],radial:["",$,L],conic:[Je,$,L]},Fd,Rd]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:O()}],"gradient-via-pos":[{via:O()}],"gradient-to-pos":[{to:O()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],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:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...I(),"hidden","none"]}],"divide-style":[{divide:[...I(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...I(),"none","hidden"]}],"outline-offset":[{"outline-offset":[oe,$,L]}],"outline-w":[{outline:["",oe,Gt,ut]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",f,vn,bn]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",m,vn,bn]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[oe,ut]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",p,vn,bn]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[oe,$,L]}],"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":[oe]}],"mask-image-linear-from-pos":[{"mask-linear-from":j()}],"mask-image-linear-to-pos":[{"mask-linear-to":j()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":j()}],"mask-image-t-to-pos":[{"mask-t-to":j()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":j()}],"mask-image-r-to-pos":[{"mask-r-to":j()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":j()}],"mask-image-b-to-pos":[{"mask-b-to":j()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":j()}],"mask-image-l-to-pos":[{"mask-l-to":j()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":j()}],"mask-image-x-to-pos":[{"mask-x-to":j()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":j()}],"mask-image-y-to-pos":[{"mask-y-to":j()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[$,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":j()}],"mask-image-radial-to-pos":[{"mask-radial-to":j()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"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":S()}],"mask-image-conic-pos":[{"mask-conic":[oe]}],"mask-image-conic-from-pos":[{"mask-conic-from":j()}],"mask-image-conic-to-pos":[{"mask-conic-to":j()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:T()}],"mask-size":[{mask:G()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",$,L]}],filter:[{filter:["","none",$,L]}],blur:[{blur:V()}],brightness:[{brightness:[oe,$,L]}],contrast:[{contrast:[oe,$,L]}],"drop-shadow":[{"drop-shadow":["","none",g,vn,bn]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",oe,$,L]}],"hue-rotate":[{"hue-rotate":[oe,$,L]}],invert:[{invert:["",oe,$,L]}],saturate:[{saturate:[oe,$,L]}],sepia:[{sepia:["",oe,$,L]}],"backdrop-filter":[{"backdrop-filter":["","none",$,L]}],"backdrop-blur":[{"backdrop-blur":V()}],"backdrop-brightness":[{"backdrop-brightness":[oe,$,L]}],"backdrop-contrast":[{"backdrop-contrast":[oe,$,L]}],"backdrop-grayscale":[{"backdrop-grayscale":["",oe,$,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[oe,$,L]}],"backdrop-invert":[{"backdrop-invert":["",oe,$,L]}],"backdrop-opacity":[{"backdrop-opacity":[oe,$,L]}],"backdrop-saturate":[{"backdrop-saturate":[oe,$,L]}],"backdrop-sepia":[{"backdrop-sepia":["",oe,$,L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",$,L]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[oe,"initial",$,L]}],ease:[{ease:["linear","initial",x,$,L]}],delay:[{delay:[oe,$,L]}],animate:[{animate:["none",y,$,L]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,$,L]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[$,L,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"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",$,L]}],"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":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",$,L]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[oe,Gt,ut,mr]}],stroke:[{stroke:["none",...P()]}],"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 N(...e){return Bd(Ko(e))}const da=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ua=Ko,ge=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ua(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const f=n==null?void 0:n[d],m=a==null?void 0:a[d];if(f===null)return null;const p=da(f)||da(m);return o[d][p]}),i=n&&Object.entries(n).reduce((d,f)=>{let[m,p]=f;return p===void 0||(d[m]=p),d},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:m,className:p,...g}=f;return Object.entries(g).every(b=>{let[h,v]=b;return Array.isArray(v)?v.includes({...a,...i}[h]):{...a,...i}[h]===v})?[...d,m,p]:d},[]);return ua(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},hr=ge("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 cursor-pointer",{variants:{variant:{default:"bg-neutral-black-1 text-sm font-normal text-white shadow-sm hover:bg-neutral-black-2 focus-visible:ring-neutral-black-1",primary:"bg-neutral-black-5 text-sm font-normal text-neutral-70 hover:bg-neutral-black-5 focus-visible:ring-bg-neutral-black-5",outline:"bg-transparent text-black hover:bg-neutral-black-2 focus-visible:ring-4 focus-visible:ring-bg-surface border border-bg-neutral-black-2"},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 Se({className:e,variant:t,size:n,asChild:r=!1,children:o,...a}){const s=r?Ge:"button";return c.jsx(s,{"data-slot":"button",className:N(hr({variant:t,size:n}),e),...a,children:o})}function X(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 zd(e,t){const n=u.createContext(t),r=a=>{const{children:s,...i}=a,l=u.useMemo(()=>i,Object.values(i));return c.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(a){const s=u.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Ce(e,t=[]){let n=[];function r(a,s){const i=u.createContext(s),l=n.length;n=[...n,s];const d=m=>{var x;const{scope:p,children:g,...b}=m,h=((x=p==null?void 0:p[e])==null?void 0:x[l])||i,v=u.useMemo(()=>b,Object.values(b));return c.jsx(h.Provider,{value:v,children:g})};d.displayName=a+"Provider";function f(m,p){var h;const g=((h=p==null?void 0:p[e])==null?void 0:h[l])||i,b=u.useContext(g);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=n.map(s=>u.createContext(s));return function(i){const l=(i==null?void 0:i[e])||a;return u.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,Vd(o,...t)]}function Vd(...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(a){const s=r.reduce((i,{useScope:l,scopeName:d})=>{const m=l(a)[`__scope${d}`];return{...i,...m}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var be=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},Yd=u[" useInsertionEffect ".trim().toString()]||be;function We({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=Hd({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const f=u.useRef(e!==void 0);u.useEffect(()=>{const m=f.current;m!==i&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,r])}const d=u.useCallback(f=>{var m;if(i){const p=Gd(f)?f(e):f;p!==e&&((m=s.current)==null||m.call(s,p))}else a(f)},[i,e,a,s]);return[l,d]}function Hd({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),a=u.useRef(t);return Yd(()=>{a.current=t},[t]),u.useEffect(()=>{var s;o.current!==n&&((s=a.current)==null||s.call(a,n),o.current=n)},[n,o]),[n,r,a]}function Gd(e){return typeof e=="function"}function xn(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function yn(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 a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,d=Array.isArray(l)?l[0]:l;s=d.inlineSize,i=d.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ud=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],U=Ud.reduce((e,t)=>{const n=dt(`Primitive.${t}`),r=u.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function qd(e,t){e&&gn.flushSync(()=>e.dispatchEvent(t))}var wn="Switch",[Kd,Jw]=Ce(wn),[Xd,Zd]=Kd(wn),fa=u.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:s,disabled:i,value:l="on",onCheckedChange:d,form:f,...m}=e,[p,g]=u.useState(null),b=le(t,w=>g(w)),h=u.useRef(!1),v=p?f||!!p.closest("form"):!0,[x,y]=We({prop:o,defaultProp:a??!1,onChange:d,caller:wn});return c.jsxs(Xd,{scope:n,checked:x,disabled:i,children:[c.jsx(U.button,{type:"button",role:"switch","aria-checked":x,"aria-required":s,"data-state":ga(x),"data-disabled":i?"":void 0,disabled:i,value:l,...m,ref:b,onClick:X(e.onClick,w=>{y(S=>!S),v&&(h.current=w.isPropagationStopped(),h.current||w.stopPropagation())})}),v&&c.jsx(pa,{control:p,bubbles:!h.current,name:r,value:l,checked:x,required:s,disabled:i,form:f,style:{transform:"translateX(-100%)"}})]})});fa.displayName=wn;var ma="SwitchThumb",ha=u.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=Zd(ma,n);return c.jsx(U.span,{"data-state":ga(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});ha.displayName=ma;var Qd="SwitchBubbleInput",pa=u.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const s=u.useRef(null),i=le(s,a),l=xn(n),d=yn(t);return u.useEffect(()=>{const f=s.current;if(!f)return;const m=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(m,"checked").set;if(l!==n&&g){const b=new Event("click",{bubbles:r});g.call(f,n),f.dispatchEvent(b)}},[l,n,r]),c.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});pa.displayName=Qd;function ga(e){return e?"checked":"unchecked"}var Jd=fa,eu=ha;const tu=ge(["group relative inline-flex items-center cursor-pointer transition-all duration-200 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-100","h-[13px] w-[25px] rounded-full p-[1px]","bg-neutral-black-2","hover:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","focus-visible:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","active:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","data-[state=checked]:bg-neutral-black-1 data-[state=checked]:hover:shadow-[0_0_0_3px_rgba(10,10,10,.1)]","data-[state=checked]:focus-visible:shadow-[0_0_0_3px_rgba(10,10,10,0.2)]","data-[state=checked]:active:shadow-[0_0_0_3px_rgba(10,10,10,0.2)]","disabled:bg-neutral-black-5 disabled:hover:shadow-none disabled:focus-visible:shadow-none disabled:active:shadow-none","data-[state=checked]:disabled:bg-neutral-black-5 data-[state=checked]:disabled:hover:shadow-none data-[state=checked]:disabled:focus-visible:shadow-none data-[state=checked]:disabled:active:shadow-none"]),nu=ge(["block rounded-full transition-transform duration-200 ease-in-out","shadow-[0_3px_6px_-3px_rgba(0,0,0,0.05),0_2px_4px_-2px_rgba(0,0,0,0.05)]","h-[11px] w-[11px] bg-white","translate-x-0 group-data-[state=checked]:translate-x-[12px]"]);function ru({className:e,...t}){return c.jsx(Jd,{"data-slot":"switch",className:N(tu(),e),...t,children:c.jsx(eu,{"data-slot":"switch-thumb",className:N(nu())})})}function ba(e){const t=e+"CollectionProvider",[n,r]=Ce(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:v,children:x}=h,y=M.useRef(null),w=M.useRef(new Map).current;return c.jsx(o,{scope:v,itemMap:w,collectionRef:y,children:x})};s.displayName=t;const i=e+"CollectionSlot",l=dt(i),d=M.forwardRef((h,v)=>{const{scope:x,children:y}=h,w=a(i,x),S=le(v,w.collectionRef);return c.jsx(l,{ref:S,children:y})});d.displayName=i;const f=e+"CollectionItemSlot",m="data-radix-collection-item",p=dt(f),g=M.forwardRef((h,v)=>{const{scope:x,children:y,...w}=h,S=M.useRef(null),k=le(v,S),_=a(f,x);return M.useEffect(()=>(_.itemMap.set(S,{ref:S,...w}),()=>void _.itemMap.delete(S))),c.jsx(p,{[m]:"",ref:k,children:y})});g.displayName=f;function b(h){const v=a(e+"CollectionConsumer",h);return M.useCallback(()=>{const y=v.collectionRef.current;if(!y)return[];const w=Array.from(y.querySelectorAll(`[${m}]`));return Array.from(v.itemMap.values()).sort((_,C)=>w.indexOf(_.ref.current)-w.indexOf(C.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:d,ItemSlot:g},b,r]}var ou=u[" useId ".trim().toString()]||(()=>{}),au=0;function ye(e){const[t,n]=u.useState(ou());return be(()=>{n(r=>r??String(au++))},[e]),t?`radix-${t}`:""}function qe(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)},[])}var su=u.createContext(void 0);function kn(e){const t=u.useContext(su);return e||t||"ltr"}var pr="rovingFocusGroup.onEntryFocus",iu={bubbles:!1,cancelable:!0},Ut="RovingFocusGroup",[gr,va,lu]=ba(Ut),[cu,Sn]=Ce(Ut,[lu]),[du,uu]=cu(Ut),xa=u.forwardRef((e,t)=>c.jsx(gr.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(gr.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(fu,{...e,ref:t})})}));xa.displayName=Ut;var fu=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...m}=e,p=u.useRef(null),g=le(t,p),b=kn(a),[h,v]=We({prop:s,defaultProp:i??null,onChange:l,caller:Ut}),[x,y]=u.useState(!1),w=qe(d),S=va(n),k=u.useRef(!1),[_,C]=u.useState(0);return u.useEffect(()=>{const E=p.current;if(E)return E.addEventListener(pr,w),()=>E.removeEventListener(pr,w)},[w]),c.jsx(du,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:h,onItemFocus:u.useCallback(E=>v(E),[v]),onItemShiftTab:u.useCallback(()=>y(!0),[]),onFocusableItemAdd:u.useCallback(()=>C(E=>E+1),[]),onFocusableItemRemove:u.useCallback(()=>C(E=>E-1),[]),children:c.jsx(U.div,{tabIndex:x||_===0?-1:0,"data-orientation":r,...m,ref:g,style:{outline:"none",...e.style},onMouseDown:X(e.onMouseDown,()=>{k.current=!0}),onFocus:X(e.onFocus,E=>{const F=!k.current;if(E.target===E.currentTarget&&F&&!x){const Y=new CustomEvent(pr,iu);if(E.currentTarget.dispatchEvent(Y),!Y.defaultPrevented){const R=S().filter(B=>B.focusable),z=R.find(B=>B.active),K=R.find(B=>B.id===h),Z=[z,K,...R].filter(Boolean).map(B=>B.ref.current);ka(Z,f)}}k.current=!1}),onBlur:X(e.onBlur,()=>y(!1))})})}),ya="RovingFocusGroupItem",wa=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,l=ye(),d=a||l,f=uu(ya,n),m=f.currentTabStopId===d,p=va(n),{onFocusableItemAdd:g,onFocusableItemRemove:b,currentTabStopId:h}=f;return u.useEffect(()=>{if(r)return g(),()=>b()},[r,g,b]),c.jsx(gr.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:c.jsx(U.span,{tabIndex:m?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:X(e.onMouseDown,v=>{r?f.onItemFocus(d):v.preventDefault()}),onFocus:X(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:X(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){f.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const x=pu(v,f.orientation,f.dir);if(x!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let w=p().filter(S=>S.focusable).map(S=>S.ref.current);if(x==="last")w.reverse();else if(x==="prev"||x==="next"){x==="prev"&&w.reverse();const S=w.indexOf(v.currentTarget);w=f.loop?gu(w,S+1):w.slice(S+1)}setTimeout(()=>ka(w))}}),children:typeof s=="function"?s({isCurrentTabStop:m,hasTabStop:h!=null}):s})})});wa.displayName=ya;var mu={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function hu(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function pu(e,t,n){const r=hu(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return mu[r]}function ka(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function gu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Sa=xa,Ca=wa;function bu(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var Pe=e=>{const{present:t,children:n}=e,r=vu(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),a=le(r.ref,xu(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:a}):null};Pe.displayName="Presence";function vu(e){const[t,n]=u.useState(),r=u.useRef(null),o=u.useRef(e),a=u.useRef("none"),s=e?"mounted":"unmounted",[i,l]=bu(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=Cn(r.current);a.current=i==="mounted"?d:"none"},[i]),be(()=>{const d=r.current,f=o.current;if(f!==e){const p=a.current,g=Cn(d);e?l("MOUNT"):g==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(f&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),be(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,m=g=>{const h=Cn(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&h&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=g=>{g.target===t&&(a.current=Cn(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:u.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function Cn(e){return(e==null?void 0:e.animationName)||"none"}function xu(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 br="Radio",[yu,Na]=Ce(br),[wu,ku]=yu(br),Ea=u.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:l,form:d,...f}=e,[m,p]=u.useState(null),g=le(t,v=>p(v)),b=u.useRef(!1),h=m?d||!!m.closest("form"):!0;return c.jsxs(wu,{scope:n,checked:o,disabled:s,children:[c.jsx(U.button,{type:"button",role:"radio","aria-checked":o,"data-state":Ta(o),"data-disabled":s?"":void 0,disabled:s,value:i,...f,ref:g,onClick:X(e.onClick,v=>{o||l==null||l(),h&&(b.current=v.isPropagationStopped(),b.current||v.stopPropagation())})}),h&&c.jsx(Oa,{control:m,bubbles:!b.current,name:r,value:i,checked:o,required:a,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});Ea.displayName=br;var _a="RadioIndicator",Ma=u.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=ku(_a,n);return c.jsx(Pe,{present:r||a.checked,children:c.jsx(U.span,{"data-state":Ta(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});Ma.displayName=_a;var Su="RadioBubbleInput",Oa=u.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},a)=>{const s=u.useRef(null),i=le(s,a),l=xn(n),d=yn(t);return u.useEffect(()=>{const f=s.current;if(!f)return;const m=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(m,"checked").set;if(l!==n&&g){const b=new Event("click",{bubbles:r});g.call(f,n),f.dispatchEvent(b)}},[l,n,r]),c.jsx(U.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Oa.displayName=Su;function Ta(e){return e?"checked":"unchecked"}var Cu=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Nn="RadioGroup",[Nu,e0]=Ce(Nn,[Sn,Na]),Pa=Sn(),Da=Na(),[Eu,_u]=Nu(Nn),ja=u.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:l,dir:d,loop:f=!0,onValueChange:m,...p}=e,g=Pa(n),b=kn(d),[h,v]=We({prop:a,defaultProp:o??null,onChange:m,caller:Nn});return c.jsx(Eu,{scope:n,name:r,required:s,disabled:i,value:h,onValueChange:v,children:c.jsx(Sa,{asChild:!0,...g,orientation:l,dir:b,loop:f,children:c.jsx(U.div,{role:"radiogroup","aria-required":s,"aria-orientation":l,"data-disabled":i?"":void 0,dir:b,...p,ref:t})})})});ja.displayName=Nn;var Aa="RadioGroupItem",Ra=u.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=_u(Aa,n),s=a.disabled||r,i=Pa(n),l=Da(n),d=u.useRef(null),f=le(t,d),m=a.value===o.value,p=u.useRef(!1);return u.useEffect(()=>{const g=h=>{Cu.includes(h.key)&&(p.current=!0)},b=()=>p.current=!1;return document.addEventListener("keydown",g),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",b)}},[]),c.jsx(Ca,{asChild:!0,...i,focusable:!s,active:m,children:c.jsx(Ea,{disabled:s,required:a.required,checked:m,...l,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:X(g=>{g.key==="Enter"&&g.preventDefault()}),onFocus:X(o.onFocus,()=>{var g;p.current&&((g=d.current)==null||g.click())})})})});Ra.displayName=Aa;var Mu="RadioGroupIndicator",Ia=u.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=Da(n);return c.jsx(Ma,{...o,...r,ref:t})});Ia.displayName=Mu;var Wa=ja,Fa=Ra,Ou=Ia;const Tu=()=>({root:N("relative inline-flex items-center cursor-pointer","data-[disabled]:cursor-not-allowed"),indicator:N("relative flex items-center justify-center","w-4 h-4 rounded-full border-2 transition-all duration-200","border-neutral-black-2","hover:shadow-[0_0_0_3px_var(--color-neutral-black-5)] hover:bg-neutral-black-5","focus:shadow-[0_0_0_3px_var(--color-neutral-black-3)] focus:bg-neutral-black-3","data-[state=checked]:border-neutral-black-1","data-[state=checked]:hover:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","data-[state=checked]:hover:bg-neutral-black-4","data-[state=checked]:focus:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","data-[state=checked]:focus:bg-neutral-black-1","data-[disabled]:hover:shadow-none data-[disabled]:hover:bg-transparent data-[disabled]:data-[state=checked]:bg-transparent data-[disabled]:data-[state=checked]:shadow-none data-[disabled]:focus:shadow-none data-[disabled]:border-neutral-black-3"),innerCircle:N("w-2 h-2 rounded-full transition-all duration-200","bg-neutral-black-1"),label:N("ml-2.5 text-md cursor-pointer select-none","data-[disabled]:cursor-not-allowed")}),La=u.forwardRef(({className:e,...t},n)=>c.jsx(Wa,{className:N("grid gap-2",e),...t,ref:n}));La.displayName=Wa.displayName;const $a=u.forwardRef(({children:e,disabled:t,...n},r)=>{const o=Tu();return c.jsxs("label",{className:o.root,"data-disabled":t,children:[c.jsx(Fa,{ref:r,className:N(o.indicator),disabled:t,...n,children:c.jsx(Ou,{className:"flex items-center justify-center",children:c.jsx("div",{className:o.innerCircle})})}),e&&c.jsx("span",{className:o.label,"data-disabled":t,children:e})]})});$a.displayName=Fa.displayName;var En="Checkbox",[Pu,t0]=Ce(En),[Du,vr]=Pu(En);function ju(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:a,form:s,name:i,onCheckedChange:l,required:d,value:f="on",internal_do_not_use_render:m}=e,[p,g]=We({prop:n,defaultProp:o??!1,onChange:l,caller:En}),[b,h]=u.useState(null),[v,x]=u.useState(null),y=u.useRef(!1),w=b?!!s||!!b.closest("form"):!0,S={checked:p,disabled:a,setChecked:g,control:b,setControl:h,name:i,form:s,value:f,hasConsumerStoppedPropagationRef:y,required:d,defaultChecked:et(o)?!1:o,isFormControl:w,bubbleInput:v,setBubbleInput:x};return c.jsx(Du,{scope:t,...S,children:Au(m)?m(S):r})}var Ba="CheckboxTrigger",za=u.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:a,value:s,disabled:i,checked:l,required:d,setControl:f,setChecked:m,hasConsumerStoppedPropagationRef:p,isFormControl:g,bubbleInput:b}=vr(Ba,e),h=le(o,f),v=u.useRef(l);return u.useEffect(()=>{const x=a==null?void 0:a.form;if(x){const y=()=>m(v.current);return x.addEventListener("reset",y),()=>x.removeEventListener("reset",y)}},[a,m]),c.jsx(U.button,{type:"button",role:"checkbox","aria-checked":et(l)?"mixed":l,"aria-required":d,"data-state":qa(l),"data-disabled":i?"":void 0,disabled:i,value:s,...r,ref:h,onKeyDown:X(t,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:X(n,x=>{m(y=>et(y)?!0:!y),b&&g&&(p.current=x.isPropagationStopped(),p.current||x.stopPropagation())})})});za.displayName=Ba;var Va=u.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:s,disabled:i,value:l,onCheckedChange:d,form:f,...m}=e;return c.jsx(ju,{__scopeCheckbox:n,checked:o,defaultChecked:a,disabled:i,required:s,onCheckedChange:d,name:r,form:f,value:l,internal_do_not_use_render:({isFormControl:p})=>c.jsxs(c.Fragment,{children:[c.jsx(za,{...m,ref:t,__scopeCheckbox:n}),p&&c.jsx(Ua,{__scopeCheckbox:n})]})})});Va.displayName=En;var Ya="CheckboxIndicator",Ha=u.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=vr(Ya,n);return c.jsx(Pe,{present:r||et(a.checked)||a.checked===!0,children:c.jsx(U.span,{"data-state":qa(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Ha.displayName=Ya;var Ga="CheckboxBubbleInput",Ua=u.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:s,required:i,disabled:l,name:d,value:f,form:m,bubbleInput:p,setBubbleInput:g}=vr(Ga,e),b=le(n,g),h=xn(a),v=yn(r);u.useEffect(()=>{const y=p;if(!y)return;const w=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(w,"checked").set,_=!o.current;if(h!==a&&k){const C=new Event("click",{bubbles:_});y.indeterminate=et(a),k.call(y,et(a)?!1:a),y.dispatchEvent(C)}},[p,h,a,o]);const x=u.useRef(et(a)?!1:a);return c.jsx(U.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??x.current,required:i,disabled:l,name:d,value:f,form:m,...t,tabIndex:-1,ref:b,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Ua.displayName=Ga;function Au(e){return typeof e=="function"}function et(e){return e==="indeterminate"}function qa(e){return et(e)?"indeterminate":e?"checked":"unchecked"}/**
|
|
23
23
|
* @license lucide-react v0.542.0 - ISC
|
|
24
24
|
*
|
|
25
25
|
* This source code is licensed under the ISC license.
|
|
26
26
|
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/const
|
|
27
|
+
*/const Ru=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Iu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Ka=e=>{const t=Iu(e);return t.charAt(0).toUpperCase()+t.slice(1)},Xa=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Wu=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
28
28
|
* @license lucide-react v0.542.0 - ISC
|
|
29
29
|
*
|
|
30
30
|
* This source code is licensed under the ISC license.
|
|
31
31
|
* See the LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/var
|
|
32
|
+
*/var Fu={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"};/**
|
|
33
33
|
* @license lucide-react v0.542.0 - ISC
|
|
34
34
|
*
|
|
35
35
|
* This source code is licensed under the ISC license.
|
|
36
36
|
* See the LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/const
|
|
37
|
+
*/const Lu=M.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...i},l)=>M.createElement("svg",{ref:l,...Fu,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Xa("lucide",o),...!a&&!Wu(i)&&{"aria-hidden":"true"},...i},[...s.map(([d,f])=>M.createElement(d,f)),...Array.isArray(a)?a:[a]]));/**
|
|
38
38
|
* @license lucide-react v0.542.0 - ISC
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the ISC license.
|
|
41
41
|
* See the LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/const
|
|
42
|
+
*/const ve=(e,t)=>{const n=M.forwardRef(({className:r,...o},a)=>M.createElement(Lu,{ref:a,iconNode:t,className:Xa(`lucide-${Ru(Ka(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Ka(e),n};/**
|
|
43
43
|
* @license lucide-react v0.542.0 - ISC
|
|
44
44
|
*
|
|
45
45
|
* This source code is licensed under the ISC license.
|
|
46
46
|
* See the LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/const
|
|
47
|
+
*/const $u=ve("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);/**
|
|
48
48
|
* @license lucide-react v0.542.0 - ISC
|
|
49
49
|
*
|
|
50
50
|
* This source code is licensed under the ISC license.
|
|
51
51
|
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/const
|
|
52
|
+
*/const Bu=ve("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
|
|
53
53
|
* @license lucide-react v0.542.0 - ISC
|
|
54
54
|
*
|
|
55
55
|
* This source code is licensed under the ISC license.
|
|
56
56
|
* See the LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/const
|
|
57
|
+
*/const zu=ve("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);/**
|
|
58
58
|
* @license lucide-react v0.542.0 - ISC
|
|
59
59
|
*
|
|
60
60
|
* This source code is licensed under the ISC license.
|
|
61
61
|
* See the LICENSE file in the root directory of this source tree.
|
|
62
|
-
*/const
|
|
62
|
+
*/const Za=ve("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
63
63
|
* @license lucide-react v0.542.0 - ISC
|
|
64
64
|
*
|
|
65
65
|
* This source code is licensed under the ISC license.
|
|
66
66
|
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
-
*/const
|
|
67
|
+
*/const Nt=ve("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
68
68
|
* @license lucide-react v0.542.0 - ISC
|
|
69
69
|
*
|
|
70
70
|
* This source code is licensed under the ISC license.
|
|
71
71
|
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/const
|
|
72
|
+
*/const xr=ve("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
73
73
|
* @license lucide-react v0.542.0 - ISC
|
|
74
74
|
*
|
|
75
75
|
* This source code is licensed under the ISC license.
|
|
76
76
|
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
-
*/const
|
|
77
|
+
*/const _n=ve("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
78
78
|
* @license lucide-react v0.542.0 - ISC
|
|
79
79
|
*
|
|
80
80
|
* This source code is licensed under the ISC license.
|
|
81
81
|
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
-
*/const
|
|
82
|
+
*/const Vu=ve("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
83
83
|
* @license lucide-react v0.542.0 - ISC
|
|
84
84
|
*
|
|
85
85
|
* This source code is licensed under the ISC license.
|
|
86
86
|
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
-
*/const
|
|
87
|
+
*/const Yu=ve("chevrons-left",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);/**
|
|
88
88
|
* @license lucide-react v0.542.0 - ISC
|
|
89
89
|
*
|
|
90
90
|
* This source code is licensed under the ISC license.
|
|
91
91
|
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
-
*/const
|
|
92
|
+
*/const Hu=ve("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
93
93
|
* @license lucide-react v0.542.0 - ISC
|
|
94
94
|
*
|
|
95
95
|
* This source code is licensed under the ISC license.
|
|
96
96
|
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
-
*/const
|
|
97
|
+
*/const Gu=ve("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
98
98
|
* @license lucide-react v0.542.0 - ISC
|
|
99
99
|
*
|
|
100
100
|
* This source code is licensed under the ISC license.
|
|
101
101
|
* See the LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/const
|
|
102
|
+
*/const Uu=ve("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
103
103
|
* @license lucide-react v0.542.0 - ISC
|
|
104
104
|
*
|
|
105
105
|
* This source code is licensed under the ISC license.
|
|
106
106
|
* See the LICENSE file in the root directory of this source tree.
|
|
107
|
-
*/const
|
|
107
|
+
*/const qu=ve("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
|
108
108
|
* @license lucide-react v0.542.0 - ISC
|
|
109
109
|
*
|
|
110
110
|
* This source code is licensed under the ISC license.
|
|
111
111
|
* See the LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/const
|
|
112
|
+
*/const Ku=ve("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
|
|
113
113
|
* @license lucide-react v0.542.0 - ISC
|
|
114
114
|
*
|
|
115
115
|
* This source code is licensed under the ISC license.
|
|
116
116
|
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
-
*/const
|
|
117
|
+
*/const Qa=ve("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
|
|
118
118
|
* @license lucide-react v0.542.0 - ISC
|
|
119
119
|
*
|
|
120
120
|
* This source code is licensed under the ISC license.
|
|
121
121
|
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
-
*/const Yo=ue("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ru=le(["w-4 h-4 rounded border transition-all duration-200 flex items-center justify-center","data-[state=unchecked]:bg-white data-[state=unchecked]:border-neutral-black-2","data-[state=checked]:bg-neutral-black-1 data-[state=checked]:border-neutral-black-1","data-[state=indeterminate]:bg-neutral-black-1 data-[state=indeterminate]:border-neutral-black-1","hover:data-[state=unchecked]:bg-neutral-black-4 hover:data-[state=unchecked]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","hover:data-[state=checked]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","hover:data-[state=indeterminate]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","focus:data-[state=unchecked]:bg-neutral-black-3 focus:data-[state=unchecked]:shadow-[0_0_0_3px_var(--color-neutral-black-3)]","focus:data-[state=checked]:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","focus:data-[state=indeterminate]:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","disabled:data-[state=unchecked]:bg-white disabled:data-[state=unchecked]:border-neutral-black-3","disabled:data-[state=checked]:bg-neutral-black-1 disabled:data-[state=checked]:border-neutral-black-1","disabled:data-[state=indeterminate]:bg-neutral-black-1 disabled:data-[state=indeterminate]:border-neutral-black-1","disabled:data-[state=unchecked]:hover:shadow-none disabled:focus:shadow-none disabled:data-[state=checked]:hover:shadow-none disabled:data-[state=indeterminate]:hover:shadow-none"]),qo=({className:e,...t})=>u.jsx(Lo,{className:j(ru(),e),...t,children:u.jsx(Fo,{className:"flex items-center justify-center text-white cursor-pointer",children:u.jsx(Ho,{className:"w-3 h-3",strokeWidth:2})})});qo.displayName="Checkbox";function nu(e,t=globalThis==null?void 0:globalThis.document){const r=Ne(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 ou="DismissableLayer",Or="dismissableLayer.update",au="dismissableLayer.pointerDownOutside",su="dismissableLayer.focusOutside",Xo,Zo=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ht=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...c}=e,d=l.useContext(Zo),[f,p]=l.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=l.useState({}),v=ne(t,_=>p(_)),m=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=m.indexOf(b),w=f?m.indexOf(f):-1,y=d.layersWithOutsidePointerEventsDisabled.size>0,C=w>=x,E=cu(_=>{const R=_.target,G=[...d.branches].some(K=>K.contains(R));!C||G||(o==null||o(_),s==null||s(_),_.defaultPrevented||i==null||i())},g),T=uu(_=>{const R=_.target;[...d.branches].some(K=>K.contains(R))||(a==null||a(_),s==null||s(_),_.defaultPrevented||i==null||i())},g);return nu(_=>{w===d.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&i&&(_.preventDefault(),i()))},g),l.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Xo=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Jo(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Xo)}},[f,g,r,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Jo())},[f,d]),l.useEffect(()=>{const _=()=>h({});return document.addEventListener(Or,_),()=>document.removeEventListener(Or,_)},[]),u.jsx(V.div,{...c,ref:v,style:{pointerEvents:y?C?"auto":"none":void 0,...e.style},onFocusCapture:z(e.onFocusCapture,T.onFocusCapture),onBlurCapture:z(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:z(e.onPointerDownCapture,E.onPointerDownCapture)})});ht.displayName=ou;var iu="DismissableLayerBranch",lu=l.forwardRef((e,t)=>{const r=l.useContext(Zo),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]),u.jsx(V.div,{...e,ref:o})});lu.displayName=iu;function cu(e,t=globalThis==null?void 0:globalThis.document){const r=Ne(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let c=function(){Qo(au,r,d,{discrete:!0})};const d={originalEvent:i};i.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},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function uu(e,t=globalThis==null?void 0:globalThis.document){const r=Ne(e),n=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!n.current&&Qo(su,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 Jo(){const e=new CustomEvent(Or);document.dispatchEvent(e)}function Qo(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?Ql(o,a):o.dispatchEvent(a)}var Mr="focusScope.autoFocusOnMount",Dr="focusScope.autoFocusOnUnmount",ea={bubbles:!1,cancelable:!0},du="FocusScope",Wt=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,c]=l.useState(null),d=Ne(o),f=Ne(a),p=l.useRef(null),g=ne(t,m=>c(m)),h=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let m=function(y){if(h.paused||!i)return;const C=y.target;i.contains(C)?p.current=C:je(p.current,{select:!0})},b=function(y){if(h.paused||!i)return;const C=y.relatedTarget;C!==null&&(i.contains(C)||je(p.current,{select:!0}))},x=function(y){if(document.activeElement===document.body)for(const E of y)E.removedNodes.length>0&&je(i)};document.addEventListener("focusin",m),document.addEventListener("focusout",b);const w=new MutationObserver(x);return i&&w.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),w.disconnect()}}},[n,i,h.paused]),l.useEffect(()=>{if(i){na.add(h);const m=document.activeElement;if(!i.contains(m)){const x=new CustomEvent(Mr,ea);i.addEventListener(Mr,d),i.dispatchEvent(x),x.defaultPrevented||(fu(vu(ta(i)),{select:!0}),document.activeElement===m&&je(i))}return()=>{i.removeEventListener(Mr,d),setTimeout(()=>{const x=new CustomEvent(Dr,ea);i.addEventListener(Dr,f),i.dispatchEvent(x),x.defaultPrevented||je(m??document.body,{select:!0}),i.removeEventListener(Dr,f),na.remove(h)},0)}}},[i,d,f,h]);const v=l.useCallback(m=>{if(!r&&!n||h.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,x=document.activeElement;if(b&&x){const w=m.currentTarget,[y,C]=pu(w);y&&C?!m.shiftKey&&x===C?(m.preventDefault(),r&&je(y,{select:!0})):m.shiftKey&&x===y&&(m.preventDefault(),r&&je(C,{select:!0})):x===w&&m.preventDefault()}},[r,n,h.paused]);return u.jsx(V.div,{tabIndex:-1,...s,ref:g,onKeyDown:v})});Wt.displayName=du;function fu(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(je(n,{select:t}),document.activeElement!==r)return}function pu(e){const t=ta(e),r=ra(t,e),n=ra(t.reverse(),e);return[r,n]}function ta(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 ra(e,t){for(const r of e)if(!mu(r,{upTo:t}))return r}function mu(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 hu(e){return e instanceof HTMLInputElement&&"select"in e}function je(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&hu(e)&&t&&e.select()}}var na=gu();function gu(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=oa(e,t),e.unshift(t)},remove(t){var r;e=oa(e,t),(r=e[0])==null||r.resume()}}}function oa(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function vu(e){return e.filter(t=>t.tagName!=="A")}var bu="Portal",gt=l.forwardRef((e,t)=>{var i;const{container:r,...n}=e,[o,a]=l.useState(!1);ie(()=>a(!0),[]);const s=r||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Mn.createPortal(u.jsx(V.div,{...n,ref:t}),s):null});gt.displayName=bu;var Lr=0;function $r(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??aa()),document.body.insertAdjacentElement("beforeend",e[1]??aa()),Lr++,()=>{Lr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Lr--}},[])}function aa(){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 ye=function(){return ye=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},ye.apply(this,arguments)};function sa(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 xu(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 Gt="right-scroll-bar-position",Ht="width-before-scroll-bar",wu="with-scroll-bars-hidden",yu="--removed-body-scroll-bar-size";function Fr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Su(e,t){var r=ae.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 Cu=typeof window<"u"?l.useLayoutEffect:l.useEffect,ia=new WeakMap;function ku(e,t){var r=Su(null,function(n){return e.forEach(function(o){return Fr(o,n)})});return Cu(function(){var n=ia.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(i){a.has(i)||Fr(i,null)}),a.forEach(function(i){o.has(i)||Fr(i,s)})}ia.set(r,e)},[e]),r}function Eu(e){return e}function Ru(e,t){t===void 0&&(t=Eu);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 s=t(a,n);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(i){return a(i)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(a),s=r}var c=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),r={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),r}}}};return o}function _u(e){e===void 0&&(e={});var t=Ru(null);return t.options=ye({async:!0,ssr:!1},e),t}var la=function(e){var t=e.sideCar,r=sa(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,ye({},r))};la.isSideCarExport=!0;function Nu(e,t){return e.useMedium(t),la}var ca=_u(),Vr=function(){},Ut=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:Vr,onWheelCapture:Vr,onTouchMoveCapture:Vr}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,g=e.sideCar,h=e.noRelative,v=e.noIsolation,m=e.inert,b=e.allowPinchZoom,x=e.as,w=x===void 0?"div":x,y=e.gapMode,C=sa(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=g,T=ku([r,t]),_=ye(ye({},C),o);return l.createElement(l.Fragment,null,f&&l.createElement(E,{sideCar:ca,removeScrollBar:d,shards:p,noRelative:h,noIsolation:v,inert:m,setCallbacks:a,allowPinchZoom:!!b,lockRef:r,gapMode:y}),s?l.cloneElement(l.Children.only(i),ye(ye({},_),{ref:T})):l.createElement(w,ye({},_,{className:c,ref:T}),i))});Ut.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ut.classNames={fullWidth:Ht,zeroRight:Gt};var Pu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Tu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Pu();return t&&e.setAttribute("nonce",t),e}function Au(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Iu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ju=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Tu())&&(Au(t,r),Iu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ou=function(){var e=ju();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ua=function(){var e=Ou(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Mu={left:0,top:0,right:0,gap:0},Br=function(e){return parseInt(e||"",10)||0},Du=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[Br(r),Br(n),Br(o)]},Lu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Mu;var t=Du(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])}},$u=ua(),Ze="data-scroll-locked",Fu=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
*/const Xu=ve("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/**
|
|
123
|
+
* @license lucide-react v0.542.0 - ISC
|
|
124
|
+
*
|
|
125
|
+
* This source code is licensed under the ISC license.
|
|
126
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
127
|
+
*/const Ja=ve("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
|
|
128
|
+
* @license lucide-react v0.542.0 - ISC
|
|
129
|
+
*
|
|
130
|
+
* This source code is licensed under the ISC license.
|
|
131
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
+
*/const Zu=ve("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
|
|
133
|
+
* @license lucide-react v0.542.0 - ISC
|
|
134
|
+
*
|
|
135
|
+
* This source code is licensed under the ISC license.
|
|
136
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
+
*/const es=ve("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Qu=ge(["w-4 h-4 rounded border transition-all duration-200 flex items-center justify-center","data-[state=unchecked]:bg-white data-[state=unchecked]:border-neutral-black-2","data-[state=checked]:bg-neutral-black-1 data-[state=checked]:border-neutral-black-1","data-[state=indeterminate]:bg-neutral-black-1 data-[state=indeterminate]:border-neutral-black-1","hover:data-[state=unchecked]:bg-neutral-black-4 hover:data-[state=unchecked]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","hover:data-[state=checked]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","hover:data-[state=indeterminate]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","focus:data-[state=unchecked]:bg-neutral-black-3 focus:data-[state=unchecked]:shadow-[0_0_0_3px_var(--color-neutral-black-3)]","focus:data-[state=checked]:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","focus:data-[state=indeterminate]:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","disabled:data-[state=unchecked]:bg-white disabled:data-[state=unchecked]:border-neutral-black-3","disabled:data-[state=checked]:bg-neutral-black-1 disabled:data-[state=checked]:border-neutral-black-1","disabled:data-[state=indeterminate]:bg-neutral-black-1 disabled:data-[state=indeterminate]:border-neutral-black-1","disabled:data-[state=unchecked]:hover:shadow-none disabled:focus:shadow-none disabled:data-[state=checked]:hover:shadow-none disabled:data-[state=indeterminate]:hover:shadow-none"]),ts=({className:e,...t})=>c.jsx(Va,{className:N(Qu(),e),...t,children:c.jsx(Ha,{className:"flex items-center justify-center text-white cursor-pointer",children:c.jsx(Za,{className:"w-3 h-3",strokeWidth:2})})});ts.displayName="Checkbox";function Ju(e,t=globalThis==null?void 0:globalThis.document){const n=qe(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 ef="DismissableLayer",yr="dismissableLayer.update",tf="dismissableLayer.pointerDownOutside",nf="dismissableLayer.focusOutside",ns,rs=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qt=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...l}=e,d=u.useContext(rs),[f,m]=u.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=u.useState({}),b=le(t,C=>m(C)),h=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=h.indexOf(v),y=f?h.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,S=y>=x,k=af(C=>{const E=C.target,F=[...d.branches].some(Y=>Y.contains(E));!S||F||(o==null||o(C),s==null||s(C),C.defaultPrevented||i==null||i())},p),_=sf(C=>{const E=C.target;[...d.branches].some(Y=>Y.contains(E))||(a==null||a(C),s==null||s(C),C.defaultPrevented||i==null||i())},p);return Ju(C=>{y===d.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&i&&(C.preventDefault(),i()))},p),u.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(ns=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),os(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=ns)}},[f,p,n,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),os())},[f,d]),u.useEffect(()=>{const C=()=>g({});return document.addEventListener(yr,C),()=>document.removeEventListener(yr,C)},[]),c.jsx(U.div,{...l,ref:b,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,_.onFocusCapture),onBlurCapture:X(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,k.onPointerDownCapture)})});qt.displayName=ef;var rf="DismissableLayerBranch",of=u.forwardRef((e,t)=>{const n=u.useContext(rs),r=u.useRef(null),o=le(t,r);return u.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),c.jsx(U.div,{...e,ref:o})});of.displayName=rf;function af(e,t=globalThis==null?void 0:globalThis.document){const n=qe(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let l=function(){as(tf,n,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function sf(e,t=globalThis==null?void 0:globalThis.document){const n=qe(e),r=u.useRef(!1);return u.useEffect(()=>{const o=a=>{a.target&&!r.current&&as(nf,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function os(){const e=new CustomEvent(yr);document.dispatchEvent(e)}function as(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?qd(o,a):o.dispatchEvent(a)}var wr="focusScope.autoFocusOnMount",kr="focusScope.autoFocusOnUnmount",ss={bubbles:!1,cancelable:!0},lf="FocusScope",Mn=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=u.useState(null),d=qe(o),f=qe(a),m=u.useRef(null),p=le(t,h=>l(h)),g=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let h=function(w){if(g.paused||!i)return;const S=w.target;i.contains(S)?m.current=S:tt(m.current,{select:!0})},v=function(w){if(g.paused||!i)return;const S=w.relatedTarget;S!==null&&(i.contains(S)||tt(m.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&tt(i)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const y=new MutationObserver(x);return i&&y.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),y.disconnect()}}},[r,i,g.paused]),u.useEffect(()=>{if(i){cs.add(g);const h=document.activeElement;if(!i.contains(h)){const x=new CustomEvent(wr,ss);i.addEventListener(wr,d),i.dispatchEvent(x),x.defaultPrevented||(cf(hf(is(i)),{select:!0}),document.activeElement===h&&tt(i))}return()=>{i.removeEventListener(wr,d),setTimeout(()=>{const x=new CustomEvent(kr,ss);i.addEventListener(kr,f),i.dispatchEvent(x),x.defaultPrevented||tt(h??document.body,{select:!0}),i.removeEventListener(kr,f),cs.remove(g)},0)}}},[i,d,f,g]);const b=u.useCallback(h=>{if(!n&&!r||g.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,x=document.activeElement;if(v&&x){const y=h.currentTarget,[w,S]=df(y);w&&S?!h.shiftKey&&x===S?(h.preventDefault(),n&&tt(w,{select:!0})):h.shiftKey&&x===w&&(h.preventDefault(),n&&tt(S,{select:!0})):x===y&&h.preventDefault()}},[n,r,g.paused]);return c.jsx(U.div,{tabIndex:-1,...s,ref:p,onKeyDown:b})});Mn.displayName=lf;function cf(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(tt(r,{select:t}),document.activeElement!==n)return}function df(e){const t=is(e),n=ls(t,e),r=ls(t.reverse(),e);return[n,r]}function is(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 ls(e,t){for(const n of e)if(!uf(n,{upTo:t}))return n}function uf(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 ff(e){return e instanceof HTMLInputElement&&"select"in e}function tt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ff(e)&&t&&e.select()}}var cs=mf();function mf(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ds(e,t),e.unshift(t)},remove(t){var n;e=ds(e,t),(n=e[0])==null||n.resume()}}}function ds(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function hf(e){return e.filter(t=>t.tagName!=="A")}var pf="Portal",Kt=u.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,a]=u.useState(!1);be(()=>a(!0),[]);const s=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?zo.createPortal(c.jsx(U.div,{...r,ref:t}),s):null});Kt.displayName=pf;var Sr=0;function Cr(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??us()),document.body.insertAdjacentElement("beforeend",e[1]??us()),Sr++,()=>{Sr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sr--}},[])}function us(){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 Fe=function(){return Fe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Fe.apply(this,arguments)};function fs(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 gf(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var On="right-scroll-bar-position",Tn="width-before-scroll-bar",bf="with-scroll-bars-hidden",vf="--removed-body-scroll-bar-size";function Nr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function xf(e,t){var n=M.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 yf=typeof window<"u"?u.useLayoutEffect:u.useEffect,ms=new WeakMap;function wf(e,t){var n=xf(null,function(r){return e.forEach(function(o){return Nr(o,r)})});return yf(function(){var r=ms.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||Nr(i,null)}),a.forEach(function(i){o.has(i)||Nr(i,s)})}ms.set(n,e)},[e]),n}function kf(e){return e}function Sf(e,t){t===void 0&&(t=kf);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(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var l=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(l)};d(),n={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),n}}}};return o}function Cf(e){e===void 0&&(e={});var t=Sf(null);return t.options=Fe({async:!0,ssr:!1},e),t}var hs=function(e){var t=e.sideCar,n=fs(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,Fe({},n))};hs.isSideCarExport=!0;function Nf(e,t){return e.useMedium(t),hs}var ps=Cf(),Er=function(){},Pn=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:Er,onWheelCapture:Er,onTouchMoveCapture:Er}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,l=e.className,d=e.removeScrollBar,f=e.enabled,m=e.shards,p=e.sideCar,g=e.noRelative,b=e.noIsolation,h=e.inert,v=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,w=e.gapMode,S=fs(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,_=wf([n,t]),C=Fe(Fe({},S),o);return u.createElement(u.Fragment,null,f&&u.createElement(k,{sideCar:ps,removeScrollBar:d,shards:m,noRelative:g,noIsolation:b,inert:h,setCallbacks:a,allowPinchZoom:!!v,lockRef:n,gapMode:w}),s?u.cloneElement(u.Children.only(i),Fe(Fe({},C),{ref:_})):u.createElement(y,Fe({},C,{className:l,ref:_}),i))});Pn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Pn.classNames={fullWidth:Tn,zeroRight:On};var Ef=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _f(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ef();return t&&e.setAttribute("nonce",t),e}function Mf(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Of(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Tf=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_f())&&(Mf(t,n),Of(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Pf=function(){var e=Tf();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},gs=function(){var e=Pf(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Df={left:0,top:0,right:0,gap:0},_r=function(e){return parseInt(e||"",10)||0},jf=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[_r(n),_r(r),_r(o)]},Af=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Df;var t=jf(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])}},Rf=gs(),Et="data-scroll-locked",If=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
138
|
+
.`.concat(bf,` {
|
|
139
|
+
overflow: hidden `).concat(r,`;
|
|
140
|
+
padding-right: `).concat(i,"px ").concat(r,`;
|
|
126
141
|
}
|
|
127
|
-
body[`).concat(
|
|
128
|
-
overflow: hidden `).concat(
|
|
142
|
+
body[`).concat(Et,`] {
|
|
143
|
+
overflow: hidden `).concat(r,`;
|
|
129
144
|
overscroll-behavior: contain;
|
|
130
|
-
`).concat([t&&"position: relative ".concat(
|
|
145
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
131
146
|
padding-left: `.concat(o,`px;
|
|
132
147
|
padding-top: `).concat(a,`px;
|
|
133
148
|
padding-right: `).concat(s,`px;
|
|
134
149
|
margin-left:0;
|
|
135
150
|
margin-top:0;
|
|
136
|
-
margin-right: `).concat(i,"px ").concat(
|
|
137
|
-
`),
|
|
151
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
152
|
+
`),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
138
153
|
}
|
|
139
154
|
|
|
140
|
-
.`).concat(
|
|
141
|
-
right: `).concat(i,"px ").concat(
|
|
155
|
+
.`).concat(On,` {
|
|
156
|
+
right: `).concat(i,"px ").concat(r,`;
|
|
142
157
|
}
|
|
143
158
|
|
|
144
|
-
.`).concat(
|
|
145
|
-
margin-right: `).concat(i,"px ").concat(
|
|
159
|
+
.`).concat(Tn,` {
|
|
160
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
146
161
|
}
|
|
147
162
|
|
|
148
|
-
.`).concat(
|
|
149
|
-
right: 0 `).concat(
|
|
163
|
+
.`).concat(On," .").concat(On,` {
|
|
164
|
+
right: 0 `).concat(r,`;
|
|
150
165
|
}
|
|
151
166
|
|
|
152
|
-
.`).concat(
|
|
153
|
-
margin-right: 0 `).concat(
|
|
167
|
+
.`).concat(Tn," .").concat(Tn,` {
|
|
168
|
+
margin-right: 0 `).concat(r,`;
|
|
154
169
|
}
|
|
155
170
|
|
|
156
|
-
body[`).concat(
|
|
157
|
-
`).concat(
|
|
171
|
+
body[`).concat(Et,`] {
|
|
172
|
+
`).concat(vf,": ").concat(i,`px;
|
|
158
173
|
}
|
|
159
|
-
`)},
|
|
174
|
+
`)},bs=function(){var e=parseInt(document.body.getAttribute(Et)||"0",10);return isFinite(e)?e:0},Wf=function(){u.useEffect(function(){return document.body.setAttribute(Et,(bs()+1).toString()),function(){var e=bs()-1;e<=0?document.body.removeAttribute(Et):document.body.setAttribute(Et,e.toString())}},[])},Ff=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Wf();var a=u.useMemo(function(){return Af(o)},[o]);return u.createElement(Rf,{styles:If(a,!t,o,n?"":"!important")})},Mr=!1;if(typeof window<"u")try{var Dn=Object.defineProperty({},"passive",{get:function(){return Mr=!0,!0}});window.addEventListener("test",Dn,Dn),window.removeEventListener("test",Dn,Dn)}catch{Mr=!1}var _t=Mr?{passive:!1}:!1,Lf=function(e){return e.tagName==="TEXTAREA"},vs=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Lf(e)&&n[t]==="visible")},$f=function(e){return vs(e,"overflowY")},Bf=function(e){return vs(e,"overflowX")},xs=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ys(e,r);if(o){var a=ws(e,r),s=a[1],i=a[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},zf=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Vf=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ys=function(e,t){return e==="v"?$f(t):Bf(t)},ws=function(e,t){return e==="v"?zf(t):Vf(t)},Yf=function(e,t){return e==="h"&&t==="rtl"?-1:1},Hf=function(e,t,n,r,o){var a=Yf(e,window.getComputedStyle(t).direction),s=a*r,i=n.target,l=t.contains(i),d=!1,f=s>0,m=0,p=0;do{if(!i)break;var g=ws(e,i),b=g[0],h=g[1],v=g[2],x=h-v-a*b;(b||x)&&ys(e,i)&&(m+=x,p+=b);var y=i.parentNode;i=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(f&&Math.abs(m)<1||!f&&Math.abs(p)<1)&&(d=!0),d},jn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ks=function(e){return[e.deltaX,e.deltaY]},Ss=function(e){return e&&"current"in e?e.current:e},Gf=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Uf=function(e){return`
|
|
160
175
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
161
176
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
162
|
-
`)},
|
|
177
|
+
`)},qf=0,Mt=[];function Kf(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(qf++)[0],a=u.useState(gs)[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 h=gf([e.lockRef.current],(e.shards||[]).map(Ss),!0).filter(Boolean);return h.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=u.useCallback(function(h,v){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var x=jn(h),y=n.current,w="deltaX"in h?h.deltaX:y[0]-x[0],S="deltaY"in h?h.deltaY:y[1]-x[1],k,_=h.target,C=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in h&&C==="h"&&_.type==="range")return!1;var E=xs(C,_);if(!E)return!0;if(E?k=C:(k=C==="v"?"h":"v",E=xs(C,_)),!E)return!1;if(!r.current&&"changedTouches"in h&&(w||S)&&(r.current=k),!k)return!0;var F=r.current||k;return Hf(F,v,h,F==="h"?w:S)},[]),l=u.useCallback(function(h){var v=h;if(!(!Mt.length||Mt[Mt.length-1]!==a)){var x="deltaY"in v?ks(v):jn(v),y=t.current.filter(function(k){return k.name===v.type&&(k.target===v.target||v.target===k.shadowParent)&&Gf(k.delta,x)})[0];if(y&&y.should){v.cancelable&&v.preventDefault();return}if(!y){var w=(s.current.shards||[]).map(Ss).filter(Boolean).filter(function(k){return k.contains(v.target)}),S=w.length>0?i(v,w[0]):!s.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),d=u.useCallback(function(h,v,x,y){var w={name:h,delta:v,target:x,should:y,shadowParent:Xf(x)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),f=u.useCallback(function(h){n.current=jn(h),r.current=void 0},[]),m=u.useCallback(function(h){d(h.type,ks(h),h.target,i(h,e.lockRef.current))},[]),p=u.useCallback(function(h){d(h.type,jn(h),h.target,i(h,e.lockRef.current))},[]);u.useEffect(function(){return Mt.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:p}),document.addEventListener("wheel",l,_t),document.addEventListener("touchmove",l,_t),document.addEventListener("touchstart",f,_t),function(){Mt=Mt.filter(function(h){return h!==a}),document.removeEventListener("wheel",l,_t),document.removeEventListener("touchmove",l,_t),document.removeEventListener("touchstart",f,_t)}},[]);var g=e.removeScrollBar,b=e.inert;return u.createElement(u.Fragment,null,b?u.createElement(a,{styles:Uf(o)}):null,g?u.createElement(Ff,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Xf(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Zf=Nf(ps,Kf);var An=u.forwardRef(function(e,t){return u.createElement(Pn,Fe({},e,{ref:t,sideCar:Zf}))});An.classNames=Pn.classNames;var Qf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ot=new WeakMap,Rn=new WeakMap,In={},Or=0,Cs=function(e){return e&&(e.host||Cs(e.parentNode))},Jf=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Cs(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})},em=function(e,t,n,r){var o=Jf(t,Array.isArray(e)?e:[e]);In[n]||(In[n]=new WeakMap);var a=In[n],s=[],i=new Set,l=new Set(o),d=function(m){!m||i.has(m)||(i.add(m),d(m.parentNode))};o.forEach(d);var f=function(m){!m||l.has(m)||Array.prototype.forEach.call(m.children,function(p){if(i.has(p))f(p);else try{var g=p.getAttribute(r),b=g!==null&&g!=="false",h=(Ot.get(p)||0)+1,v=(a.get(p)||0)+1;Ot.set(p,h),a.set(p,v),s.push(p),h===1&&b&&Rn.set(p,!0),v===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",p,x)}})};return f(t),i.clear(),Or++,function(){s.forEach(function(m){var p=Ot.get(m)-1,g=a.get(m)-1;Ot.set(m,p),a.set(m,g),p||(Rn.has(m)||m.removeAttribute(r),Rn.delete(m)),g||m.removeAttribute(n)}),Or--,Or||(Ot=new WeakMap,Ot=new WeakMap,Rn=new WeakMap,In={})}},Tr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Qf(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),em(r,o,n,"aria-hidden")):function(){return null}},Wn="Dialog",[Ns,w0]=Ce(Wn),[tm,De]=Ns(Wn),Es=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=u.useRef(null),l=u.useRef(null),[d,f]=We({prop:r,defaultProp:o??!1,onChange:a,caller:Wn});return c.jsx(tm,{scope:t,triggerRef:i,contentRef:l,contentId:ye(),titleId:ye(),descriptionId:ye(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(m=>!m),[f]),modal:s,children:n})};Es.displayName=Wn;var _s="DialogTrigger",Ms=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(_s,n),a=le(t,o.triggerRef);return c.jsx(U.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":jr(o.open),...r,ref:a,onClick:X(e.onClick,o.onOpenToggle)})});Ms.displayName=_s;var Pr="DialogPortal",[nm,Os]=Ns(Pr,{forceMount:void 0}),Ts=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=De(Pr,t);return c.jsx(nm,{scope:t,forceMount:n,children:u.Children.map(r,s=>c.jsx(Pe,{present:n||a.open,children:c.jsx(Kt,{asChild:!0,container:o,children:s})}))})};Ts.displayName=Pr;var Fn="DialogOverlay",Ps=u.forwardRef((e,t)=>{const n=Os(Fn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=De(Fn,e.__scopeDialog);return a.modal?c.jsx(Pe,{present:r||a.open,children:c.jsx(om,{...o,ref:t})}):null});Ps.displayName=Fn;var rm=dt("DialogOverlay.RemoveScroll"),om=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Fn,n);return c.jsx(An,{as:rm,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(U.div,{"data-state":jr(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ft="DialogContent",Ds=u.forwardRef((e,t)=>{const n=Os(ft,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=De(ft,e.__scopeDialog);return c.jsx(Pe,{present:r||a.open,children:a.modal?c.jsx(am,{...o,ref:t}):c.jsx(sm,{...o,ref:t})})});Ds.displayName=ft;var am=u.forwardRef((e,t)=>{const n=De(ft,e.__scopeDialog),r=u.useRef(null),o=le(t,n.contentRef,r);return u.useEffect(()=>{const a=r.current;if(a)return Tr(a)},[]),c.jsx(js,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:X(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:X(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:X(e.onFocusOutside,a=>a.preventDefault())})}),sm=u.forwardRef((e,t)=>{const n=De(ft,e.__scopeDialog),r=u.useRef(!1),o=u.useRef(!1);return c.jsx(js,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,d;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=n.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),js=u.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=De(ft,n),l=u.useRef(null),d=le(t,l);return Cr(),c.jsxs(c.Fragment,{children:[c.jsx(Mn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:c.jsx(qt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":jr(i.open),...s,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(im,{titleId:i.titleId}),c.jsx(cm,{contentRef:l,descriptionId:i.descriptionId})]})]})}),Dr="DialogTitle",As=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Dr,n);return c.jsx(U.h2,{id:o.titleId,...r,ref:t})});As.displayName=Dr;var Rs="DialogDescription",Is=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Rs,n);return c.jsx(U.p,{id:o.descriptionId,...r,ref:t})});Is.displayName=Rs;var Ws="DialogClose",Fs=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=De(Ws,n);return c.jsx(U.button,{type:"button",...r,ref:t,onClick:X(e.onClick,()=>o.onOpenChange(!1))})});Fs.displayName=Ws;function jr(e){return e?"open":"closed"}var Ls="DialogTitleWarning",[k0,$s]=zd(Ls,{contentName:ft,titleName:Dr,docsSlug:"dialog"}),im=({titleId:e})=>{const t=$s(Ls),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
163
178
|
|
|
164
179
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
165
180
|
|
|
166
|
-
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},dd="DialogDescriptionWarning",fd=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Oa(dd).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},Ma=wa,pd=Sa,Da=ka,La=Ea,$a=Ra,md=Na,hd=Ta,Fa=Ia;function gd({...e}){return u.jsx(Ma,{"data-slot":"dialog",...e})}function vd({...e}){return u.jsx(pd,{"data-slot":"dialog-trigger",...e})}function Va({...e}){return u.jsx(Da,{"data-slot":"dialog-portal",...e})}function bd({...e}){return u.jsx(Fa,{"data-slot":"dialog-close",...e})}function Ba({className:e,...t}){return u.jsx(La,{"data-slot":"dialog-overlay",className:j("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 xd({className:e,children:t,showCloseButton:r=!0,...n}){return u.jsxs(Va,{"data-slot":"dialog-portal",children:[u.jsx(Ba,{}),u.jsxs($a,{"data-slot":"dialog-content",className:j("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&&u.jsxs(Fa,{"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:[u.jsx(Yo,{}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function wd({className:e,...t}){return u.jsx("div",{"data-slot":"dialog-header",className:j("flex flex-col gap-2 text-center sm:text-left",e),...t})}function yd({className:e,...t}){return u.jsx("div",{"data-slot":"dialog-footer",className:j("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Sd({className:e,...t}){return u.jsx(md,{"data-slot":"dialog-title",className:j("text-lg leading-none font-semibold ",e),...t})}function Cd({className:e,...t}){return u.jsx(hd,{"data-slot":"dialog-description",className:j("text-muted-foreground text-sm",e),...t})}const kd=le("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"}}),Yr=l.forwardRef(({className:e,variant:t,type:r="filled",asChild:n=!1,children:o,...a},s)=>{const i=n?At:"span";return u.jsx(i,{ref:s,"data-slot":"badge",className:j(kd({variant:t,type:r}),r==="outline"?"bg-transparent":"",e),...a,children:o})});Yr.displayName="Badge";const Ed=["top","right","bottom","left"],Oe=Math.min,fe=Math.max,er=Math.round,tr=Math.floor,Se=e=>({x:e,y:e}),Rd={left:"right",right:"left",bottom:"top",top:"bottom"},_d={start:"end",end:"start"};function qr(e,t,r){return fe(e,Oe(t,r))}function Pe(e,t){return typeof e=="function"?e(t):e}function Te(e){return e.split("-")[0]}function tt(e){return e.split("-")[1]}function Xr(e){return e==="x"?"y":"x"}function Zr(e){return e==="y"?"height":"width"}const Nd=new Set(["top","bottom"]);function Ce(e){return Nd.has(Te(e))?"y":"x"}function Jr(e){return Xr(Ce(e))}function Pd(e,t,r){r===void 0&&(r=!1);const n=tt(e),o=Jr(e),a=Zr(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=rr(s)),[s,rr(s)]}function Td(e){const t=rr(e);return[Qr(e),t,Qr(t)]}function Qr(e){return e.replace(/start|end/g,t=>_d[t])}const za=["left","right"],Wa=["right","left"],Ad=["top","bottom"],Id=["bottom","top"];function jd(e,t,r){switch(e){case"top":case"bottom":return r?t?Wa:za:t?za:Wa;case"left":case"right":return t?Ad:Id;default:return[]}}function Od(e,t,r,n){const o=tt(e);let a=jd(Te(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Qr)))),a}function rr(e){return e.replace(/left|right|bottom|top/g,t=>Rd[t])}function Md(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ga(e){return typeof e!="number"?Md(e):{top:e,right:e,bottom:e,left:e}}function nr(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Ha(e,t,r){let{reference:n,floating:o}=e;const a=Ce(t),s=Jr(t),i=Zr(s),c=Te(t),d=a==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,g=n[i]/2-o[i]/2;let h;switch(c){case"top":h={x:f,y:n.y-o.height};break;case"bottom":h={x:f,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:p};break;case"left":h={x:n.x-o.width,y:p};break;default:h={x:n.x,y:n.y}}switch(tt(t)){case"start":h[s]-=g*(r&&d?-1:1);break;case"end":h[s]+=g*(r&&d?-1:1);break}return h}const Dd=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,i=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Ha(d,n,c),g=n,h={},v=0;for(let m=0;m<i.length;m++){const{name:b,fn:x}=i[m],{x:w,y,data:C,reset:E}=await x({x:f,y:p,initialPlacement:n,placement:g,strategy:o,middlewareData:h,rects:d,platform:s,elements:{reference:e,floating:t}});f=w??f,p=y??p,h={...h,[b]:{...h[b],...C}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(d=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:p}=Ha(d,g,c)),m=-1)}return{x:f,y:p,placement:g,strategy:o,middlewareData:h}};async function vt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:i,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:h=0}=Pe(t,e),v=Ga(h),b=i[g?p==="floating"?"reference":"floating":p],x=nr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(b)))==null||r?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:c})),w=p==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),C=await(a.isElement==null?void 0:a.isElement(y))?await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1}:{x:1,y:1},E=nr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:y,strategy:c}):w);return{top:(x.top-E.top+v.top)/C.y,bottom:(E.bottom-x.bottom+v.bottom)/C.y,left:(x.left-E.left+v.left)/C.x,right:(E.right-x.right+v.right)/C.x}}const Ld=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:i,middlewareData:c}=t,{element:d,padding:f=0}=Pe(e,t)||{};if(d==null)return{};const p=Ga(f),g={x:r,y:n},h=Jr(o),v=Zr(h),m=await s.getDimensions(d),b=h==="y",x=b?"top":"left",w=b?"bottom":"right",y=b?"clientHeight":"clientWidth",C=a.reference[v]+a.reference[h]-g[h]-a.floating[v],E=g[h]-a.reference[h],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let _=T?T[y]:0;(!_||!await(s.isElement==null?void 0:s.isElement(T)))&&(_=i.floating[y]||a.floating[v]);const R=C/2-E/2,G=_/2-m[v]/2-1,K=Oe(p[x],G),X=Oe(p[w],G),Q=K,ee=_-m[v]-X,W=_/2-m[v]/2+R,q=qr(Q,W,ee),$=!c.arrow&&tt(o)!=null&&W!==q&&a.reference[v]/2-(W<Q?K:X)-m[v]/2<0,H=$?W<Q?W-Q:W-ee:0;return{[h]:g[h]+H,data:{[h]:q,centerOffset:W-q-H,...$&&{alignmentOffset:H}},reset:$}}}),$d=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...b}=Pe(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const x=Te(o),w=Ce(i),y=Te(i)===i,C=await(c.isRTL==null?void 0:c.isRTL(d.floating)),E=g||(y||!m?[rr(i)]:Td(i)),T=v!=="none";!g&&T&&E.push(...Od(i,m,v,C));const _=[i,...E],R=await vt(t,b),G=[];let K=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&G.push(R[x]),p){const W=Pd(o,s,C);G.push(R[W[0]],R[W[1]])}if(K=[...K,{placement:o,overflows:G}],!G.every(W=>W<=0)){var X,Q;const W=(((X=a.flip)==null?void 0:X.index)||0)+1,q=_[W];if(q&&(!(p==="alignment"?w!==Ce(q):!1)||K.every(N=>Ce(N.placement)===w?N.overflows[0]>0:!0)))return{data:{index:W,overflows:K},reset:{placement:q}};let $=(Q=K.filter(H=>H.overflows[0]<=0).sort((H,N)=>H.overflows[1]-N.overflows[1])[0])==null?void 0:Q.placement;if(!$)switch(h){case"bestFit":{var ee;const H=(ee=K.filter(N=>{if(T){const te=Ce(N.placement);return te===w||te==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(te=>te>0).reduce((te,k)=>te+k,0)]).sort((N,te)=>N[1]-te[1])[0])==null?void 0:ee[0];H&&($=H);break}case"initialPlacement":$=i;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Ua(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ka(e){return Ed.some(t=>e[t]>=0)}const Fd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Pe(e,t);switch(n){case"referenceHidden":{const a=await vt(t,{...o,elementContext:"reference"}),s=Ua(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ka(s)}}}case"escaped":{const a=await vt(t,{...o,altBoundary:!0}),s=Ua(a,r.floating);return{data:{escapedOffsets:s,escaped:Ka(s)}}}default:return{}}}}},Ya=new Set(["left","top"]);async function Vd(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Te(r),i=tt(r),c=Ce(r)==="y",d=Ya.has(s)?-1:1,f=a&&c?-1:1,p=Pe(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof v=="number"&&(h=i==="end"?v*-1:v),c?{x:h*f,y:g*d}:{x:g*d,y:h*f}}const Bd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:s,middlewareData:i}=t,c=await Vd(t,e);return s===((r=i.offset)==null?void 0:r.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:s}}}}},zd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:b=>{let{x,y:w}=b;return{x,y:w}}},...c}=Pe(e,t),d={x:r,y:n},f=await vt(t,c),p=Ce(Te(o)),g=Xr(p);let h=d[g],v=d[p];if(a){const b=g==="y"?"top":"left",x=g==="y"?"bottom":"right",w=h+f[b],y=h-f[x];h=qr(w,h,y)}if(s){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=v+f[b],y=v-f[x];v=qr(w,v,y)}const m=i.fn({...t,[g]:h,[p]:v});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[g]:a,[p]:s}}}}}},Wd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:c=!0,crossAxis:d=!0}=Pe(e,t),f={x:r,y:n},p=Ce(o),g=Xr(p);let h=f[g],v=f[p];const m=Pe(i,t),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const y=g==="y"?"height":"width",C=a.reference[g]-a.floating[y]+b.mainAxis,E=a.reference[g]+a.reference[y]-b.mainAxis;h<C?h=C:h>E&&(h=E)}if(d){var x,w;const y=g==="y"?"width":"height",C=Ya.has(Te(o)),E=a.reference[p]-a.floating[y]+(C&&((x=s.offset)==null?void 0:x[p])||0)+(C?0:b.crossAxis),T=a.reference[p]+a.reference[y]+(C?0:((w=s.offset)==null?void 0:w[p])||0)-(C?b.crossAxis:0);v<E?v=E:v>T&&(v=T)}return{[g]:h,[p]:v}}}},Gd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:c=()=>{},...d}=Pe(e,t),f=await vt(t,d),p=Te(o),g=tt(o),h=Ce(o)==="y",{width:v,height:m}=a.floating;let b,x;p==="top"||p==="bottom"?(b=p,x=g===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(x=p,b=g==="end"?"top":"bottom");const w=m-f.top-f.bottom,y=v-f.left-f.right,C=Oe(m-f[b],w),E=Oe(v-f[x],y),T=!t.middlewareData.shift;let _=C,R=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(R=y),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(_=w),T&&!g){const K=fe(f.left,0),X=fe(f.right,0),Q=fe(f.top,0),ee=fe(f.bottom,0);h?R=v-2*(K!==0||X!==0?K+X:fe(f.left,f.right)):_=m-2*(Q!==0||ee!==0?Q+ee:fe(f.top,f.bottom))}await c({...t,availableWidth:R,availableHeight:_});const G=await s.getDimensions(i.floating);return v!==G.width||m!==G.height?{reset:{rects:!0}}:{}}}};function or(){return typeof window<"u"}function rt(e){return qa(e)?(e.nodeName||"").toLowerCase():"#document"}function pe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ke(e){var t;return(t=(qa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qa(e){return or()?e instanceof Node||e instanceof pe(e).Node:!1}function ve(e){return or()?e instanceof Element||e instanceof pe(e).Element:!1}function Ee(e){return or()?e instanceof HTMLElement||e instanceof pe(e).HTMLElement:!1}function Xa(e){return!or()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof pe(e).ShadowRoot}const Hd=new Set(["inline","contents"]);function bt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=be(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Hd.has(o)}const Ud=new Set(["table","td","th"]);function Kd(e){return Ud.has(rt(e))}const Yd=[":popover-open",":modal"];function ar(e){return Yd.some(t=>{try{return e.matches(t)}catch{return!1}})}const qd=["transform","translate","scale","rotate","perspective"],Xd=["transform","translate","scale","rotate","perspective","filter"],Zd=["paint","layout","strict","content"];function en(e){const t=tn(),r=ve(e)?be(e):e;return qd.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Xd.some(n=>(r.willChange||"").includes(n))||Zd.some(n=>(r.contain||"").includes(n))}function Jd(e){let t=Me(e);for(;Ee(t)&&!nt(t);){if(en(t))return t;if(ar(t))return null;t=Me(t)}return null}function tn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Qd=new Set(["html","body","#document"]);function nt(e){return Qd.has(rt(e))}function be(e){return pe(e).getComputedStyle(e)}function sr(e){return ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Me(e){if(rt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xa(e)&&e.host||ke(e);return Xa(t)?t.host:t}function Za(e){const t=Me(e);return nt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ee(t)&&bt(t)?t:Za(t)}function xt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Za(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=pe(o);if(a){const i=rn(s);return t.concat(s,s.visualViewport||[],bt(o)?o:[],i&&r?xt(i):[])}return t.concat(o,xt(o,[],r))}function rn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ja(e){const t=be(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ee(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=er(r)!==a||er(n)!==s;return i&&(r=a,n=s),{width:r,height:n,$:i}}function nn(e){return ve(e)?e:e.contextElement}function ot(e){const t=nn(e);if(!Ee(t))return Se(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Ja(t);let s=(a?er(r.width):r.width)/n,i=(a?er(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const ef=Se(0);function Qa(e){const t=pe(e);return!tn()||!t.visualViewport?ef:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tf(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==pe(e)?!1:t}function Ge(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=nn(e);let s=Se(1);t&&(n?ve(n)&&(s=ot(n)):s=ot(e));const i=tf(a,r,n)?Qa(a):Se(0);let c=(o.left+i.x)/s.x,d=(o.top+i.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(a){const g=pe(a),h=n&&ve(n)?pe(n):n;let v=g,m=rn(v);for(;m&&n&&h!==v;){const b=ot(m),x=m.getBoundingClientRect(),w=be(m),y=x.left+(m.clientLeft+parseFloat(w.paddingLeft))*b.x,C=x.top+(m.clientTop+parseFloat(w.paddingTop))*b.y;c*=b.x,d*=b.y,f*=b.x,p*=b.y,c+=y,d+=C,v=pe(m),m=rn(v)}}return nr({width:f,height:p,x:c,y:d})}function ir(e,t){const r=sr(e).scrollLeft;return t?t.left+r:Ge(ke(e)).left+r}function es(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-ir(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function rf(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",s=ke(n),i=t?ar(t.floating):!1;if(n===s||i&&a)return r;let c={scrollLeft:0,scrollTop:0},d=Se(1);const f=Se(0),p=Ee(n);if((p||!p&&!a)&&((rt(n)!=="body"||bt(s))&&(c=sr(n)),Ee(n))){const h=Ge(n);d=ot(n),f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}const g=s&&!p&&!a?es(s,c):Se(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+f.x+g.x,y:r.y*d.y-c.scrollTop*d.y+f.y+g.y}}function nf(e){return Array.from(e.getClientRects())}function of(e){const t=ke(e),r=sr(e),n=e.ownerDocument.body,o=fe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=fe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+ir(e);const i=-r.scrollTop;return be(n).direction==="rtl"&&(s+=fe(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:i}}const ts=25;function af(e,t){const r=pe(e),n=ke(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,i=0,c=0;if(o){a=o.width,s=o.height;const f=tn();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const d=ir(n);if(d<=0){const f=n.ownerDocument,p=f.body,g=getComputedStyle(p),h=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(n.clientWidth-p.clientWidth-h);v<=ts&&(a-=v)}else d<=ts&&(a+=d);return{width:a,height:s,x:i,y:c}}const sf=new Set(["absolute","fixed"]);function lf(e,t){const r=Ge(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Ee(e)?ot(e):Se(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,c=o*a.x,d=n*a.y;return{width:s,height:i,x:c,y:d}}function rs(e,t,r){let n;if(t==="viewport")n=af(e,r);else if(t==="document")n=of(ke(e));else if(ve(t))n=lf(t,r);else{const o=Qa(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return nr(n)}function ns(e,t){const r=Me(e);return r===t||!ve(r)||nt(r)?!1:be(r).position==="fixed"||ns(r,t)}function cf(e,t){const r=t.get(e);if(r)return r;let n=xt(e,[],!1).filter(i=>ve(i)&&rt(i)!=="body"),o=null;const a=be(e).position==="fixed";let s=a?Me(e):e;for(;ve(s)&&!nt(s);){const i=be(s),c=en(s);!c&&i.position==="fixed"&&(o=null),(a?!c&&!o:!c&&i.position==="static"&&!!o&&sf.has(o.position)||bt(s)&&!c&&ns(e,s))?n=n.filter(f=>f!==s):o=i,s=Me(s)}return t.set(e,n),n}function uf(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?ar(t)?[]:cf(t,this._c):[].concat(r),n],i=s[0],c=s.reduce((d,f)=>{const p=rs(t,f,o);return d.top=fe(p.top,d.top),d.right=Oe(p.right,d.right),d.bottom=Oe(p.bottom,d.bottom),d.left=fe(p.left,d.left),d},rs(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function df(e){const{width:t,height:r}=Ja(e);return{width:t,height:r}}function ff(e,t,r){const n=Ee(t),o=ke(t),a=r==="fixed",s=Ge(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const c=Se(0);function d(){c.x=ir(o)}if(n||!n&&!a)if((rt(t)!=="body"||bt(o))&&(i=sr(t)),n){const h=Ge(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&d();a&&!n&&o&&d();const f=o&&!n&&!a?es(o,i):Se(0),p=s.left+i.scrollLeft-c.x-f.x,g=s.top+i.scrollTop-c.y-f.y;return{x:p,y:g,width:s.width,height:s.height}}function on(e){return be(e).position==="static"}function os(e,t){if(!Ee(e)||be(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ke(e)===r&&(r=r.ownerDocument.body),r}function as(e,t){const r=pe(e);if(ar(e))return r;if(!Ee(e)){let o=Me(e);for(;o&&!nt(o);){if(ve(o)&&!on(o))return o;o=Me(o)}return r}let n=os(e,t);for(;n&&Kd(n)&&on(n);)n=os(n,t);return n&&nt(n)&&on(n)&&!en(n)?r:n||Jd(e)||r}const pf=async function(e){const t=this.getOffsetParent||as,r=this.getDimensions,n=await r(e.floating);return{reference:ff(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function mf(e){return be(e).direction==="rtl"}const hf={convertOffsetParentRelativeRectToViewportRelativeRect:rf,getDocumentElement:ke,getClippingRect:uf,getOffsetParent:as,getElementRects:pf,getClientRects:nf,getDimensions:df,getScale:ot,isElement:ve,isRTL:mf};function ss(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gf(e,t){let r=null,n;const o=ke(e);function a(){var i;clearTimeout(n),(i=r)==null||i.disconnect(),r=null}function s(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:f,top:p,width:g,height:h}=d;if(i||t(),!g||!h)return;const v=tr(p),m=tr(o.clientWidth-(f+g)),b=tr(o.clientHeight-(p+h)),x=tr(f),y={rootMargin:-v+"px "+-m+"px "+-b+"px "+-x+"px",threshold:fe(0,Oe(1,c))||1};let C=!0;function E(T){const _=T[0].intersectionRatio;if(_!==c){if(!C)return s();_?s(!1,_):n=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!ss(d,e.getBoundingClientRect())&&s(),C=!1}try{r=new IntersectionObserver(E,{...y,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,y)}r.observe(e)}return s(!0),a}function vf(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=nn(e),f=o||a?[...d?xt(d):[],...xt(t)]:[];f.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),a&&x.addEventListener("resize",r)});const p=d&&i?gf(d,r):null;let g=-1,h=null;s&&(h=new ResizeObserver(x=>{let[w]=x;w&&w.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),r()}),d&&!c&&h.observe(d),h.observe(t));let v,m=c?Ge(e):null;c&&b();function b(){const x=Ge(e);m&&!ss(m,x)&&r(),m=x,v=requestAnimationFrame(b)}return r(),()=>{var x;f.forEach(w=>{o&&w.removeEventListener("scroll",r),a&&w.removeEventListener("resize",r)}),p==null||p(),(x=h)==null||x.disconnect(),h=null,c&&cancelAnimationFrame(v)}}const bf=Bd,xf=zd,wf=$d,yf=Gd,Sf=Fd,is=Ld,Cf=Wd,kf=(e,t,r)=>{const n=new Map,o={platform:hf,...r},a={...o.platform,_c:n};return Dd(e,t,{...o,platform:a})};var Ef=typeof document<"u",Rf=function(){},lr=Ef?ae.useLayoutEffect:Rf;function cr(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!cr(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!cr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ls(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cs(e,t){const r=ls(e);return Math.round(t*r)/r}function an(e){const t=l.useRef(e);return lr(()=>{t.current=e}),t}function _f(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:c,open:d}=e,[f,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=l.useState(n);cr(g,n)||h(n);const[v,m]=l.useState(null),[b,x]=l.useState(null),w=l.useCallback(N=>{N!==T.current&&(T.current=N,m(N))},[]),y=l.useCallback(N=>{N!==_.current&&(_.current=N,x(N))},[]),C=a||v,E=s||b,T=l.useRef(null),_=l.useRef(null),R=l.useRef(f),G=c!=null,K=an(c),X=an(o),Q=an(d),ee=l.useCallback(()=>{if(!T.current||!_.current)return;const N={placement:t,strategy:r,middleware:g};X.current&&(N.platform=X.current),kf(T.current,_.current,N).then(te=>{const k={...te,isPositioned:Q.current!==!1};W.current&&!cr(R.current,k)&&(R.current=k,Tt.flushSync(()=>{p(k)}))})},[g,t,r,X,Q]);lr(()=>{d===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(N=>({...N,isPositioned:!1})))},[d]);const W=l.useRef(!1);lr(()=>(W.current=!0,()=>{W.current=!1}),[]),lr(()=>{if(C&&(T.current=C),E&&(_.current=E),C&&E){if(K.current)return K.current(C,E,ee);ee()}},[C,E,ee,K,G]);const q=l.useMemo(()=>({reference:T,floating:_,setReference:w,setFloating:y}),[w,y]),$=l.useMemo(()=>({reference:C,floating:E}),[C,E]),H=l.useMemo(()=>{const N={position:r,left:0,top:0};if(!$.floating)return N;const te=cs($.floating,f.x),k=cs($.floating,f.y);return i?{...N,transform:"translate("+te+"px, "+k+"px)",...ls($.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:te,top:k}},[r,i,$.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:ee,refs:q,elements:$,floatingStyles:H}),[f,ee,q,$,H])}const Nf=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?is({element:n.current,padding:o}).fn(r):{}:n?is({element:n,padding:o}).fn(r):{}}}},Pf=(e,t)=>({...bf(e),options:[e,t]}),Tf=(e,t)=>({...xf(e),options:[e,t]}),Af=(e,t)=>({...Cf(e),options:[e,t]}),If=(e,t)=>({...wf(e),options:[e,t]}),jf=(e,t)=>({...yf(e),options:[e,t]}),Of=(e,t)=>({...Sf(e),options:[e,t]}),Mf=(e,t)=>({...Nf(e),options:[e,t]});var Df="Arrow",us=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return u.jsx(V.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});us.displayName=Df;var Lf=us,sn="Popper",[ds,at]=de(sn),[$f,fs]=ds(sn),ps=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return u.jsx($f,{scope:t,anchor:n,onAnchorChange:o,children:r})};ps.displayName=sn;var ms="PopperAnchor",hs=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=fs(ms,r),s=l.useRef(null),i=ne(t,s),c=l.useRef(null);return l.useEffect(()=>{const d=c.current;c.current=(n==null?void 0:n.current)||s.current,d!==c.current&&a.onAnchorChange(c.current)}),n?null:u.jsx(V.div,{...o,ref:i})});hs.displayName=ms;var ln="PopperContent",[Ff,Vf]=ds(ln),gs=l.forwardRef((e,t)=>{var P,F,U,Z,re,oe;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:v,...m}=e,b=fs(ln,r),[x,w]=l.useState(null),y=ne(t,me=>w(me)),[C,E]=l.useState(null),T=Dt(C),_=(T==null?void 0:T.width)??0,R=(T==null?void 0:T.height)??0,G=n+(a!=="center"?"-"+a:""),K=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},X=Array.isArray(d)?d:[d],Q=X.length>0,ee={padding:K,boundary:X.filter(zf),altBoundary:Q},{refs:W,floatingStyles:q,placement:$,isPositioned:H,middlewareData:N}=_f({strategy:"fixed",placement:G,whileElementsMounted:(...me)=>vf(...me,{animationFrame:h==="always"}),elements:{reference:b.anchor},middleware:[Pf({mainAxis:o+R,alignmentAxis:s}),c&&Tf({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Af():void 0,...ee}),c&&If({...ee}),jf({...ee,apply:({elements:me,rects:Re,availableWidth:_t,availableHeight:Nt})=>{const{width:Pt,height:rg}=Re.reference,yr=me.floating.style;yr.setProperty("--radix-popper-available-width",`${_t}px`),yr.setProperty("--radix-popper-available-height",`${Nt}px`),yr.setProperty("--radix-popper-anchor-width",`${Pt}px`),yr.setProperty("--radix-popper-anchor-height",`${rg}px`)}}),C&&Mf({element:C,padding:i}),Wf({arrowWidth:_,arrowHeight:R}),g&&Of({strategy:"referenceHidden",...ee})]}),[te,k]=xs($),B=Ne(v);ie(()=>{H&&(B==null||B())},[H,B]);const S=(P=N.arrow)==null?void 0:P.x,A=(F=N.arrow)==null?void 0:F.y,D=((U=N.arrow)==null?void 0:U.centerOffset)!==0,[I,Y]=l.useState();return ie(()=>{x&&Y(window.getComputedStyle(x).zIndex)},[x]),u.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:H?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:I,"--radix-popper-transform-origin":[(Z=N.transformOrigin)==null?void 0:Z.x,(re=N.transformOrigin)==null?void 0:re.y].join(" "),...((oe=N.hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(Ff,{scope:r,placedSide:te,onArrowChange:E,arrowX:S,arrowY:A,shouldHideArrow:D,children:u.jsx(V.div,{"data-side":te,"data-align":k,...m,ref:y,style:{...m.style,animation:H?void 0:"none"}})})})});gs.displayName=ln;var vs="PopperArrow",Bf={top:"bottom",right:"left",bottom:"top",left:"right"},bs=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=Vf(vs,n),s=Bf[a.placedSide];return u.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:u.jsx(Lf,{...o,ref:r,style:{...o.style,display:"block"}})})});bs.displayName=vs;function zf(e){return e!==null}var Wf=e=>({name:"transformOrigin",options:e,fn(t){var b,x,w;const{placement:r,rects:n,middlewareData:o}=t,s=((b=o.arrow)==null?void 0:b.centerOffset)!==0,i=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[d,f]=xs(r),p={start:"0%",center:"50%",end:"100%"}[f],g=(((x=o.arrow)==null?void 0:x.x)??0)+i/2,h=(((w=o.arrow)==null?void 0:w.y)??0)+c/2;let v="",m="";return d==="bottom"?(v=s?p:`${g}px`,m=`${-c}px`):d==="top"?(v=s?p:`${g}px`,m=`${n.floating.height+c}px`):d==="right"?(v=`${-c}px`,m=s?p:`${h}px`):d==="left"&&(v=`${n.floating.width+c}px`,m=s?p:`${h}px`),{data:{x:v,y:m}}}});function xs(e){const[t,r="center"]=e.split("-");return[t,r]}var cn=ps,ur=hs,un=gs,dn=bs,ws=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"}),Gf="VisuallyHidden",ys=l.forwardRef((e,t)=>u.jsx(V.span,{...e,ref:t,style:{...ws,...e.style}}));ys.displayName=Gf;var Hf=ys,[dr,_g]=de("Tooltip",[at]),fr=at(),Ss="TooltipProvider",Uf=700,fn="tooltip.open",[Kf,pn]=dr(Ss),Cs=e=>{const{__scopeTooltip:t,delayDuration:r=Uf,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,s=l.useRef(!0),i=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),u.jsx(Kf,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(d=>{i.current=d},[]),disableHoverableContent:o,children:a})};Cs.displayName=Ss;var wt="Tooltip",[Yf,yt]=dr(wt),ks=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,c=pn(wt,e.__scopeTooltip),d=fr(t),[f,p]=l.useState(null),g=ce(),h=l.useRef(0),v=s??c.disableHoverableContent,m=i??c.delayDuration,b=l.useRef(!1),[x,w]=we({prop:n,defaultProp:o??!1,onChange:_=>{_?(c.onOpen(),document.dispatchEvent(new CustomEvent(fn))):c.onClose(),a==null||a(_)},caller:wt}),y=l.useMemo(()=>x?b.current?"delayed-open":"instant-open":"closed",[x]),C=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,w(!0)},[w]),E=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),T=l.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,w(!0),h.current=0},m)},[m,w]);return l.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),u.jsx(cn,{...d,children:u.jsx(Yf,{scope:t,contentId:g,open:x,stateAttribute:y,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?T():C()},[c.isOpenDelayedRef,T,C]),onTriggerLeave:l.useCallback(()=>{v?E():(window.clearTimeout(h.current),h.current=0)},[E,v]),onOpen:C,onClose:E,disableHoverableContent:v,children:r})})};ks.displayName=wt;var mn="TooltipTrigger",Es=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=yt(mn,r),a=pn(mn,r),s=fr(r),i=l.useRef(null),c=ne(t,i,o.onTriggerChange),d=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>d.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),u.jsx(ur,{asChild:!0,...s,children:u.jsx(V.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:c,onPointerMove:z(e.onPointerMove,g=>{g.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:z(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:z(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:z(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:z(e.onBlur,o.onClose),onClick:z(e.onClick,o.onClose)})})});Es.displayName=mn;var hn="TooltipPortal",[qf,Xf]=dr(hn,{forceMount:void 0}),Rs=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=yt(hn,t);return u.jsx(qf,{scope:t,forceMount:r,children:u.jsx(he,{present:r||a.open,children:u.jsx(gt,{asChild:!0,container:o,children:n})})})};Rs.displayName=hn;var st="TooltipContent",_s=l.forwardRef((e,t)=>{const r=Xf(st,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=yt(st,e.__scopeTooltip);return u.jsx(he,{present:n||s.open,children:s.disableHoverableContent?u.jsx(Ns,{side:o,...a,ref:t}):u.jsx(Zf,{side:o,...a,ref:t})})}),Zf=l.forwardRef((e,t)=>{const r=yt(st,e.__scopeTooltip),n=pn(st,e.__scopeTooltip),o=l.useRef(null),a=ne(t,o),[s,i]=l.useState(null),{trigger:c,onClose:d}=r,f=o.current,{onPointerInTransitChange:p}=n,g=l.useCallback(()=>{i(null),p(!1)},[p]),h=l.useCallback((v,m)=>{const b=v.currentTarget,x={x:v.clientX,y:v.clientY},w=tp(x,b.getBoundingClientRect()),y=rp(x,w),C=np(m.getBoundingClientRect()),E=ap([...y,...C]);i(E),p(!0)},[p]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(c&&f){const v=b=>h(b,f),m=b=>h(b,c);return c.addEventListener("pointerleave",v),f.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",v),f.removeEventListener("pointerleave",m)}}},[c,f,h,g]),l.useEffect(()=>{if(s){const v=m=>{const b=m.target,x={x:m.clientX,y:m.clientY},w=(c==null?void 0:c.contains(b))||(f==null?void 0:f.contains(b)),y=!op(x,s);w?g():y&&(g(),d())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,f,s,d,g]),u.jsx(Ns,{...e,ref:a})}),[Jf,Qf]=dr(wt,{isInside:!1}),ep=cl("TooltipContent"),Ns=l.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,c=yt(st,r),d=fr(r),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(fn,f),()=>document.removeEventListener(fn,f)),[f]),l.useEffect(()=>{if(c.trigger){const p=g=>{const h=g.target;h!=null&&h.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),u.jsx(ht,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:u.jsxs(un,{"data-state":c.stateAttribute,...d,...i,ref:t,style:{...i.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:[u.jsx(ep,{children:n}),u.jsx(Jf,{scope:r,isInside:!0,children:u.jsx(Hf,{id:c.contentId,role:"tooltip",children:o||n})})]})})});_s.displayName=st;var Ps="TooltipArrow",Ts=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=fr(r);return Qf(Ps,r).isInside?null:u.jsx(dn,{...o,...n,ref:t})});Ts.displayName=Ps;function tp(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function rp(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function np(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function op(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],c=t[s],d=i.x,f=i.y,p=c.x,g=c.y;f>n!=g>n&&r<(p-d)*(n-f)/(g-f)+d&&(o=!o)}return o}function ap(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),sp(t)}function sp(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],s=r[r.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var ip=Cs,lp=ks,cp=Es,up=Rs,dp=_s,fp=Ts;function As({delayDuration:e=0,...t}){return u.jsx(ip,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function pp({...e}){return u.jsx(As,{children:u.jsx(lp,{"data-slot":"tooltip",...e})})}function mp({...e}){return u.jsx(cp,{"data-slot":"tooltip-trigger",...e})}function hp({className:e,sideOffset:t=0,children:r,...n}){return u.jsx(up,{children:u.jsxs(dp,{"data-slot":"tooltip-content",sideOffset:t,className:j("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),...n,children:[r,u.jsx(fp,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Is=({className:e,type:t,...r})=>u.jsx("input",{type:t,className:j("flex-1 h-10 bg-transparent outline-none placeholder:text-neutral-black-2 disabled:cursor-not-allowed disabled:opacity-50","text-black-1 text-sm","placeholder:text-neutral-black-2 placeholder:text-sm",e),...r}),gp=le("flex items-center rounded-lg border transition-colors p-2",{variants:{size:{small:"h-6 w-80 text-sm px-2",medium:"h-10 w-92 text-base px-3"},status:{default:"border-neutral-black-4 text-foreground focus-within:ring-4 focus-within:ring-neutral-black-4",error:"border-error-1 text-primary-1 focus-within:ring-4 focus-within:ring-error-1",disabled:"border-neutral-black-4 bg-neutral-black-4 text-neutral-black-2 cursor-not-allowed"}},defaultVariants:{size:"medium",status:"default"}}),js=({size:e,status:t,startSlot:r,endSlot:n,className:o,disabled:a,...s})=>u.jsxs("div",{className:j(gp({size:e,status:t}),o),children:[r&&u.jsx("span",{className:"mr-2 flex-shrink-0",children:r}),u.jsx(Is,{disabled:a,...s}),n&&u.jsx("span",{className:"ml-2 flex-shrink-0",children:n})]}),Os=({children:e,className:t,...r})=>e==null?null:u.jsx("label",{className:j("text-sm font-normal text-neutral-black-1",t),...r,children:e}),Ms=({label:e,helperText:t,errorText:r,startSlot:n,endSlot:o,size:a="medium",className:s,disabled:i=!1,...c})=>u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx(Os,{children:e}),u.jsx(js,{size:a,status:r?"error":i?"disabled":"default",startSlot:n,endSlot:o,disabled:i,className:s,...c}),(t||r)&&u.jsx("p",{className:j("text-sm mt-1",r?"text-error-1":"text-neutral-black-2"),children:r||t})]}),vp=({showForgot:e=!1,onValidityChange:t,customValidator:r,...n})=>{const[o,a]=ae.useState(!1),[s,i]=ae.useState(""),[c,d]=ae.useState(!1),p=r?r(s):(h=>[{label:"minimum 8 characters",isValid:h.length>=8},{label:"one uppercase character",isValid:/[A-Z]/.test(h)},{label:"one lowercase character",isValid:/[a-z]/.test(h)},{label:"one special character",isValid:/[^A-Za-z0-9]/.test(h)},{label:"one number",isValid:/\d/.test(h)}])(s),g=p.every(h=>h.isValid);return ae.useEffect(()=>{t&&t(g,p)},[s,g,p,t]),u.jsx("div",{className:"flex flex-col gap-2",children:u.jsxs("div",{className:"flex flex-col gap-2 w-full max-w-sm",children:[u.jsxs("div",{className:"flex justify-between items-center",children:[u.jsx("label",{className:"text-sm font-medium text-neutral-0",children:"Password"}),e&&u.jsx(Ot,{className:"text-xs text-neutral-0 hover:underline bg-transparent p-0 hover:bg-transparent",variant:"primary",children:"Forgot Password?"})]}),u.jsx(Ms,{type:o?"text":"password",value:s,onChange:h=>i(h.target.value),onFocus:()=>d(!0),...n,endSlot:u.jsx(Ot,{className:"text-xs text-neutral-0 hover:underline bg-transparent p-0 hover:bg-transparent",variant:"primary",onClick:()=>a(!o),children:o?u.jsx(Xc,{size:24,className:"text-neutral-black-2"}):u.jsx(Zc,{size:24,className:"text-neutral-black-2"})})}),u.jsx("div",{className:"grid grid-cols-2 gap-y-1 text-xs mt-3",children:p.map((h,v)=>u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("div",{className:j("w-1.5 h-1.5 rounded-full transition-colors",h.isValid?"bg-success-1":c?"bg-primary-1":"bg-neutral-black-2")}),u.jsx("span",{className:j("transition-colors",h.isValid?"text-success-1":c?"text-primary-1":"text-neutral-black-2"),children:h.label})]},v))})]})})},bp=e=>u.jsx(Ms,{type:"search",startSlot:u.jsx(Uo,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder text-neutral-black-2"}),placeholder:"Search...",...e});function Ds(e,[t,r]){return Math.min(r,Math.max(t,e))}var xp=[" ","Enter","ArrowUp","ArrowDown"],wp=[" ","Enter"],He="Select",[pr,mr,yp]=uo(He),[it,Ng]=de(He,[yp,at]),hr=at(),[Sp,De]=it(He),[Cp,kp]=it(He),Ls=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:c,dir:d,name:f,autoComplete:p,disabled:g,required:h,form:v}=e,m=hr(t),[b,x]=l.useState(null),[w,y]=l.useState(null),[C,E]=l.useState(!1),T=$t(d),[_,R]=we({prop:n,defaultProp:o??!1,onChange:a,caller:He}),[G,K]=we({prop:s,defaultProp:i,onChange:c,caller:He}),X=l.useRef(null),Q=b?v||!!b.closest("form"):!0,[ee,W]=l.useState(new Set),q=Array.from(ee).map($=>$.props.value).join(";");return u.jsx(cn,{...m,children:u.jsxs(Sp,{required:h,scope:t,trigger:b,onTriggerChange:x,valueNode:w,onValueNodeChange:y,valueNodeHasChildren:C,onValueNodeHasChildrenChange:E,contentId:ce(),value:G,onValueChange:K,open:_,onOpenChange:R,dir:T,triggerPointerDownPosRef:X,disabled:g,children:[u.jsx(pr.Provider,{scope:t,children:u.jsx(Cp,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback($=>{W(H=>new Set(H).add($))},[]),onNativeOptionRemove:l.useCallback($=>{W(H=>{const N=new Set(H);return N.delete($),N})},[]),children:r})}),Q?u.jsxs(ii,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:G,onChange:$=>K($.target.value),disabled:g,form:v,children:[G===void 0?u.jsx("option",{value:""}):null,Array.from(ee)]},q):null]})})};Ls.displayName=He;var $s="SelectTrigger",Fs=l.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=hr(r),s=De($s,r),i=s.disabled||n,c=ne(t,s.onTriggerChange),d=mr(r),f=l.useRef("touch"),[p,g,h]=ci(m=>{const b=d().filter(y=>!y.disabled),x=b.find(y=>y.value===s.value),w=ui(b,m,x);w!==void 0&&s.onValueChange(w.value)}),v=m=>{i||(s.onOpenChange(!0),h()),m&&(s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return u.jsx(ur,{asChild:!0,...a,children:u.jsx(V.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":li(s.value)?"":void 0,...o,ref:c,onClick:z(o.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&v(m)}),onPointerDown:z(o.onPointerDown,m=>{f.current=m.pointerType;const b=m.target;b.hasPointerCapture(m.pointerId)&&b.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(v(m),m.preventDefault())}),onKeyDown:z(o.onKeyDown,m=>{const b=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(b&&m.key===" ")&&xp.includes(m.key)&&(v(),m.preventDefault())})})})});Fs.displayName=$s;var Vs="SelectValue",Bs=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:s="",...i}=e,c=De(Vs,r),{onValueNodeHasChildrenChange:d}=c,f=a!==void 0,p=ne(t,c.onValueNodeChange);return ie(()=>{d(f)},[d,f]),u.jsx(V.span,{...i,ref:p,style:{pointerEvents:"none"},children:li(c.value)?u.jsx(u.Fragment,{children:s}):a})});Bs.displayName=Vs;var Ep="SelectIcon",zs=l.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return u.jsx(V.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});zs.displayName=Ep;var Rp="SelectPortal",Ws=e=>u.jsx(gt,{asChild:!0,...e});Ws.displayName=Rp;var Ue="SelectContent",Gs=l.forwardRef((e,t)=>{const r=De(Ue,e.__scopeSelect),[n,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!r.open){const a=n;return a?Tt.createPortal(u.jsx(Hs,{scope:e.__scopeSelect,children:u.jsx(pr.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),a):null}return u.jsx(Us,{...e,ref:t})});Gs.displayName=Ue;var xe=10,[Hs,Le]=it(Ue),_p="SelectContentImpl",Np=Be("SelectContent.RemoveScroll"),Us=l.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:b,...x}=e,w=De(Ue,r),[y,C]=l.useState(null),[E,T]=l.useState(null),_=ne(t,P=>C(P)),[R,G]=l.useState(null),[K,X]=l.useState(null),Q=mr(r),[ee,W]=l.useState(!1),q=l.useRef(!1);l.useEffect(()=>{if(y)return Gr(y)},[y]),$r();const $=l.useCallback(P=>{const[F,...U]=Q().map(oe=>oe.ref.current),[Z]=U.slice(-1),re=document.activeElement;for(const oe of P)if(oe===re||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===F&&E&&(E.scrollTop=0),oe===Z&&E&&(E.scrollTop=E.scrollHeight),oe==null||oe.focus(),document.activeElement!==re))return},[Q,E]),H=l.useCallback(()=>$([R,y]),[$,R,y]);l.useEffect(()=>{ee&&H()},[ee,H]);const{onOpenChange:N,triggerPointerDownPosRef:te}=w;l.useEffect(()=>{if(y){let P={x:0,y:0};const F=Z=>{var re,oe;P={x:Math.abs(Math.round(Z.pageX)-(((re=te.current)==null?void 0:re.x)??0)),y:Math.abs(Math.round(Z.pageY)-(((oe=te.current)==null?void 0:oe.y)??0))}},U=Z=>{P.x<=10&&P.y<=10?Z.preventDefault():y.contains(Z.target)||N(!1),document.removeEventListener("pointermove",F),te.current=null};return te.current!==null&&(document.addEventListener("pointermove",F),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",F),document.removeEventListener("pointerup",U,{capture:!0})}}},[y,N,te]),l.useEffect(()=>{const P=()=>N(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[N]);const[k,B]=ci(P=>{const F=Q().filter(re=>!re.disabled),U=F.find(re=>re.ref.current===document.activeElement),Z=ui(F,P,U);Z&&setTimeout(()=>Z.ref.current.focus())}),S=l.useCallback((P,F,U)=>{const Z=!q.current&&!U;(w.value!==void 0&&w.value===F||Z)&&(G(P),Z&&(q.current=!0))},[w.value]),A=l.useCallback(()=>y==null?void 0:y.focus(),[y]),D=l.useCallback((P,F,U)=>{const Z=!q.current&&!U;(w.value!==void 0&&w.value===F||Z)&&X(P)},[w.value]),I=n==="popper"?gn:Ks,Y=I===gn?{side:i,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:b}:{};return u.jsx(Hs,{scope:r,content:y,viewport:E,onViewportChange:T,itemRefCallback:S,selectedItem:R,onItemLeave:A,itemTextRefCallback:D,focusSelectedItem:H,selectedItemText:K,position:n,isPositioned:ee,searchRef:k,children:u.jsx(qt,{as:Np,allowPinchZoom:!0,children:u.jsx(Wt,{asChild:!0,trapped:w.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:z(o,P=>{var F;(F=w.trigger)==null||F.focus({preventScroll:!0}),P.preventDefault()}),children:u.jsx(ht,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:u.jsx(I,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:P=>P.preventDefault(),...x,...Y,onPlaced:()=>W(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:z(x.onKeyDown,P=>{const F=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!F&&P.key.length===1&&B(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let Z=Q().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(P.key)&&(Z=Z.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const re=P.target,oe=Z.indexOf(re);Z=Z.slice(oe+1)}setTimeout(()=>$(Z)),P.preventDefault()}})})})})})})});Us.displayName=_p;var Pp="SelectItemAlignedPosition",Ks=l.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,a=De(Ue,r),s=Le(Ue,r),[i,c]=l.useState(null),[d,f]=l.useState(null),p=ne(t,_=>f(_)),g=mr(r),h=l.useRef(!1),v=l.useRef(!0),{viewport:m,selectedItem:b,selectedItemText:x,focusSelectedItem:w}=s,y=l.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&d&&m&&b&&x){const _=a.trigger.getBoundingClientRect(),R=d.getBoundingClientRect(),G=a.valueNode.getBoundingClientRect(),K=x.getBoundingClientRect();if(a.dir!=="rtl"){const re=K.left-R.left,oe=G.left-re,me=_.left-oe,Re=_.width+me,_t=Math.max(Re,R.width),Nt=window.innerWidth-xe,Pt=Ds(oe,[xe,Math.max(xe,Nt-_t)]);i.style.minWidth=Re+"px",i.style.left=Pt+"px"}else{const re=R.right-K.right,oe=window.innerWidth-G.right-re,me=window.innerWidth-_.right-oe,Re=_.width+me,_t=Math.max(Re,R.width),Nt=window.innerWidth-xe,Pt=Ds(oe,[xe,Math.max(xe,Nt-_t)]);i.style.minWidth=Re+"px",i.style.right=Pt+"px"}const X=g(),Q=window.innerHeight-xe*2,ee=m.scrollHeight,W=window.getComputedStyle(d),q=parseInt(W.borderTopWidth,10),$=parseInt(W.paddingTop,10),H=parseInt(W.borderBottomWidth,10),N=parseInt(W.paddingBottom,10),te=q+$+ee+N+H,k=Math.min(b.offsetHeight*5,te),B=window.getComputedStyle(m),S=parseInt(B.paddingTop,10),A=parseInt(B.paddingBottom,10),D=_.top+_.height/2-xe,I=Q-D,Y=b.offsetHeight/2,P=b.offsetTop+Y,F=q+$+P,U=te-F;if(F<=D){const re=X.length>0&&b===X[X.length-1].ref.current;i.style.bottom="0px";const oe=d.clientHeight-m.offsetTop-m.offsetHeight,me=Math.max(I,Y+(re?A:0)+oe+H),Re=F+me;i.style.height=Re+"px"}else{const re=X.length>0&&b===X[0].ref.current;i.style.top="0px";const me=Math.max(D,q+m.offsetTop+(re?S:0)+Y)+U;i.style.height=me+"px",m.scrollTop=F-D+m.offsetTop}i.style.margin=`${xe}px 0`,i.style.minHeight=k+"px",i.style.maxHeight=Q+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[g,a.trigger,a.valueNode,i,d,m,b,x,a.dir,n]);ie(()=>y(),[y]);const[C,E]=l.useState();ie(()=>{d&&E(window.getComputedStyle(d).zIndex)},[d]);const T=l.useCallback(_=>{_&&v.current===!0&&(y(),w==null||w(),v.current=!1)},[y,w]);return u.jsx(Ap,{scope:r,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:T,children:u.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:u.jsx(V.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ks.displayName=Pp;var Tp="SelectPopperPosition",gn=l.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=xe,...a}=e,s=hr(r);return u.jsx(un,{...s,...a,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});gn.displayName=Tp;var[Ap,vn]=it(Ue,{}),bn="SelectViewport",Ys=l.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,a=Le(bn,r),s=vn(bn,r),i=ne(t,a.onViewportChange),c=l.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),u.jsx(pr.Slot,{scope:r,children:u.jsx(V.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:z(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=s;if(g!=null&&g.current&&p){const h=Math.abs(c.current-f.scrollTop);if(h>0){const v=window.innerHeight-xe*2,m=parseFloat(p.style.minHeight),b=parseFloat(p.style.height),x=Math.max(m,b);if(x<v){const w=x+h,y=Math.min(v,w),C=w-y;p.style.height=y+"px",p.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,p.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});Ys.displayName=bn;var qs="SelectGroup",[Ip,jp]=it(qs),Xs=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=ce();return u.jsx(Ip,{scope:r,id:o,children:u.jsx(V.div,{role:"group","aria-labelledby":o,...n,ref:t})})});Xs.displayName=qs;var Zs="SelectLabel",Js=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=jp(Zs,r);return u.jsx(V.div,{id:o.id,...n,ref:t})});Js.displayName=Zs;var gr="SelectItem",[Op,Qs]=it(gr),ei=l.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...s}=e,i=De(gr,r),c=Le(gr,r),d=i.value===n,[f,p]=l.useState(a??""),[g,h]=l.useState(!1),v=ne(t,w=>{var y;return(y=c.itemRefCallback)==null?void 0:y.call(c,w,n,o)}),m=ce(),b=l.useRef("touch"),x=()=>{o||(i.onValueChange(n),i.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(Op,{scope:r,value:n,disabled:o,textId:m,isSelected:d,onItemTextChange:l.useCallback(w=>{p(y=>y||((w==null?void 0:w.textContent)??"").trim())},[]),children:u.jsx(pr.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:u.jsx(V.div,{role:"option","aria-labelledby":m,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:v,onFocus:z(s.onFocus,()=>h(!0)),onBlur:z(s.onBlur,()=>h(!1)),onClick:z(s.onClick,()=>{b.current!=="mouse"&&x()}),onPointerUp:z(s.onPointerUp,()=>{b.current==="mouse"&&x()}),onPointerDown:z(s.onPointerDown,w=>{b.current=w.pointerType}),onPointerMove:z(s.onPointerMove,w=>{var y;b.current=w.pointerType,o?(y=c.onItemLeave)==null||y.call(c):b.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:z(s.onPointerLeave,w=>{var y;w.currentTarget===document.activeElement&&((y=c.onItemLeave)==null||y.call(c))}),onKeyDown:z(s.onKeyDown,w=>{var C;((C=c.searchRef)==null?void 0:C.current)!==""&&w.key===" "||(wp.includes(w.key)&&x(),w.key===" "&&w.preventDefault())})})})})});ei.displayName=gr;var St="SelectItemText",ti=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,s=De(St,r),i=Le(St,r),c=Qs(St,r),d=kp(St,r),[f,p]=l.useState(null),g=ne(t,x=>p(x),c.onItemTextChange,x=>{var w;return(w=i.itemTextRefCallback)==null?void 0:w.call(i,x,c.value,c.disabled)}),h=f==null?void 0:f.textContent,v=l.useMemo(()=>u.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:b}=d;return ie(()=>(m(v),()=>b(v)),[m,b,v]),u.jsxs(u.Fragment,{children:[u.jsx(V.span,{id:c.textId,...a,ref:g}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Tt.createPortal(a.children,s.valueNode):null]})});ti.displayName=St;var ri="SelectItemIndicator",ni=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return Qs(ri,r).isSelected?u.jsx(V.span,{"aria-hidden":!0,...n,ref:t}):null});ni.displayName=ri;var xn="SelectScrollUpButton",oi=l.forwardRef((e,t)=>{const r=Le(xn,e.__scopeSelect),n=vn(xn,e.__scopeSelect),[o,a]=l.useState(!1),s=ne(t,n.onScrollButtonChange);return ie(()=>{if(r.viewport&&r.isPositioned){let i=function(){const d=c.scrollTop>0;a(d)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?u.jsx(si,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});oi.displayName=xn;var wn="SelectScrollDownButton",ai=l.forwardRef((e,t)=>{const r=Le(wn,e.__scopeSelect),n=vn(wn,e.__scopeSelect),[o,a]=l.useState(!1),s=ne(t,n.onScrollButtonChange);return ie(()=>{if(r.viewport&&r.isPositioned){let i=function(){const d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;a(f)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?u.jsx(si,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});ai.displayName=wn;var si=l.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=Le("SelectScrollButton",r),s=l.useRef(null),i=mr(r),c=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ie(()=>{var f;const d=i().find(p=>p.ref.current===document.activeElement);(f=d==null?void 0:d.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),u.jsx(V.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:z(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(n,50))}),onPointerMove:z(o.onPointerMove,()=>{var d;(d=a.onItemLeave)==null||d.call(a),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:z(o.onPointerLeave,()=>{c()})})}),Mp="SelectSeparator",Dp=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return u.jsx(V.div,{"aria-hidden":!0,...n,ref:t})});Dp.displayName=Mp;var yn="SelectArrow",Lp=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=hr(r),a=De(yn,r),s=Le(yn,r);return a.open&&s.position==="popper"?u.jsx(dn,{...o,...n,ref:t}):null});Lp.displayName=yn;var $p="SelectBubbleInput",ii=l.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=l.useRef(null),a=ne(n,o),s=Mt(t);return l.useEffect(()=>{const i=o.current;if(!i)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&f){const p=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(p)}},[s,t]),u.jsx(V.select,{...r,style:{...ws,...r.style},ref:a,defaultValue:t})});ii.displayName=$p;function li(e){return e===""||e===void 0}function ci(e){const t=Ne(e),r=l.useRef(""),n=l.useRef(0),o=l.useCallback(s=>{const i=r.current+s;t(i),function c(d){r.current=d,window.clearTimeout(n.current),d!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(i)},[t]),a=l.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,a]}function ui(e,t,r){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let s=Fp(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==r));const c=s.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function Fp(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Vp=Ls,Bp=Fs,zp=Bs,Wp=zs,Gp=Ws,Hp=Gs,Up=Ys,Kp=Xs,Yp=Js,qp=ei,Xp=ti,Zp=ni,Jp=oi,Qp=ai;function em({...e}){return u.jsx(Vp,{"data-slot":"select",...e})}function tm({...e}){return u.jsx(Kp,{"data-slot":"select-group",...e})}function rm({...e}){return u.jsx(zp,{"data-slot":"select-value",...e})}function nm({className:e,size:t="default",children:r,...n}){return u.jsxs(Bp,{"data-slot":"select-trigger","data-size":t,className:j("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r,u.jsx(Wp,{asChild:!0,children:u.jsx(jr,{className:"size-4 opacity-50"})})]})}function om({className:e,children:t,position:r="popper",...n}){return u.jsx(Gp,{children:u.jsxs(Hp,{"data-slot":"select-content",className:j("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[u.jsx(sm,{}),u.jsx(Up,{className:j("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),u.jsx(im,{})]})})}function am({className:e,...t}){return u.jsx(Yp,{"data-slot":"select-label",className:j("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function di({className:e,children:t,...r}){return u.jsxs(qp,{"data-slot":"select-item",className:j("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[u.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:u.jsx(Zp,{children:u.jsx(Ho,{className:"size-4"})})}),u.jsx(Xp,{children:t})]})}function sm({className:e,...t}){return u.jsx(Jp,{"data-slot":"select-scroll-up-button",className:j("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(Yc,{className:"size-4"})})}function im({className:e,...t}){return u.jsx(Qp,{"data-slot":"select-scroll-down-button",className:j("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(jr,{className:"size-4"})})}var vr="Popover",[fi,Pg]=de(vr,[at]),Ct=at(),[lm,$e]=fi(vr),pi=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=Ct(t),c=l.useRef(null),[d,f]=l.useState(!1),[p,g]=we({prop:n,defaultProp:o??!1,onChange:a,caller:vr});return u.jsx(cn,{...i,children:u.jsx(lm,{scope:t,contentId:ce(),triggerRef:c,open:p,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:d,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:s,children:r})})};pi.displayName=vr;var mi="PopoverAnchor",cm=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=$e(mi,r),a=Ct(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(s(),()=>i()),[s,i]),u.jsx(ur,{...a,...n,ref:t})});cm.displayName=mi;var hi="PopoverTrigger",gi=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=$e(hi,r),a=Ct(r),s=ne(t,o.triggerRef),i=u.jsx(V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":yi(o.open),...n,ref:s,onClick:z(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:u.jsx(ur,{asChild:!0,...a,children:i})});gi.displayName=hi;var Sn="PopoverPortal",[um,dm]=fi(Sn,{forceMount:void 0}),vi=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=$e(Sn,t);return u.jsx(um,{scope:t,forceMount:r,children:u.jsx(he,{present:r||a.open,children:u.jsx(gt,{asChild:!0,container:o,children:n})})})};vi.displayName=Sn;var lt="PopoverContent",bi=l.forwardRef((e,t)=>{const r=dm(lt,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=$e(lt,e.__scopePopover);return u.jsx(he,{present:n||a.open,children:a.modal?u.jsx(pm,{...o,ref:t}):u.jsx(mm,{...o,ref:t})})});bi.displayName=lt;var fm=Be("PopoverContent.RemoveScroll"),pm=l.forwardRef((e,t)=>{const r=$e(lt,e.__scopePopover),n=l.useRef(null),o=ne(t,n),a=l.useRef(!1);return l.useEffect(()=>{const s=n.current;if(s)return Gr(s)},[]),u.jsx(qt,{as:fm,allowPinchZoom:!0,children:u.jsx(xi,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:z(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,d=i.button===2||c;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:z(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),mm=l.forwardRef((e,t)=>{const r=$e(lt,e.__scopePopover),n=l.useRef(!1),o=l.useRef(!1);return u.jsx(xi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=r.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),xi=l.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...p}=e,g=$e(lt,r),h=Ct(r);return $r(),u.jsx(Wt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(ht,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1),children:u.jsx(un,{"data-state":yi(g.open),role:"dialog",id:g.contentId,...h,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),wi="PopoverClose",hm=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=$e(wi,r);return u.jsx(V.button,{type:"button",...n,ref:t,onClick:z(e.onClick,()=>o.onOpenChange(!1))})});hm.displayName=wi;var gm="PopoverArrow",vm=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Ct(r);return u.jsx(dn,{...o,...n,ref:t})});vm.displayName=gm;function yi(e){return e?"open":"closed"}var bm=pi,xm=gi,wm=vi,ym=bi;function Sm({...e}){return u.jsx(bm,{"data-slot":"popover",...e})}function Cm({...e}){return u.jsx(xm,{"data-slot":"popover-trigger",...e})}function km({className:e,align:t="center",sideOffset:r=4,...n}){return u.jsx(wm,{children:u.jsx(ym,{"data-slot":"popover-content",align:t,sideOffset:r,className:j("bg-white text-black data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}var Si=1,Em=.9,Rm=.8,_m=.17,Cn=.1,kn=.999,Nm=.9999,Pm=.99,Tm=/[\\\/_+.#"@\[\(\{&]/,Am=/[\\\/_+.#"@\[\(\{&]/g,Im=/[\s-]/,Ci=/[\s-]/g;function En(e,t,r,n,o,a,s){if(a===t.length)return o===e.length?Si:Pm;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var c=n.charAt(a),d=r.indexOf(c,o),f=0,p,g,h,v;d>=0;)p=En(e,t,r,n,d+1,a+1,s),p>f&&(d===o?p*=Si:Tm.test(e.charAt(d-1))?(p*=Rm,h=e.slice(o,d-1).match(Am),h&&o>0&&(p*=Math.pow(kn,h.length))):Im.test(e.charAt(d-1))?(p*=Em,v=e.slice(o,d-1).match(Ci),v&&o>0&&(p*=Math.pow(kn,v.length))):(p*=_m,o>0&&(p*=Math.pow(kn,d-o))),e.charAt(d)!==t.charAt(a)&&(p*=Nm)),(p<Cn&&r.charAt(d-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(d-1)!==n.charAt(a))&&(g=En(e,t,r,n,d+1,a+2,s),g*Cn>p&&(p=g*Cn)),p>f&&(f=p),d=r.indexOf(c,d+1);return s[i]=f,f}function ki(e){return e.toLowerCase().replace(Ci," ")}function jm(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,En(e,t,ki(e),ki(t),0,0,{})}var kt='[cmdk-group=""]',Rn='[cmdk-group-items=""]',Om='[cmdk-group-heading=""]',Ei='[cmdk-item=""]',Ri=`${Ei}:not([aria-disabled="true"])`,_n="cmdk-item-select",ct="data-value",Mm=(e,t,r)=>jm(e,t,r),_i=l.createContext(void 0),Et=()=>l.useContext(_i),Ni=l.createContext(void 0),Nn=()=>l.useContext(Ni),Pi=l.createContext(void 0),Ti=l.forwardRef((e,t)=>{let r=ut(()=>{var S,A;return{search:"",value:(A=(S=e.value)!=null?S:e.defaultValue)!=null?A:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=ut(()=>new Set),o=ut(()=>new Map),a=ut(()=>new Map),s=ut(()=>new Set),i=Ai(e),{label:c,children:d,value:f,onValueChange:p,filter:g,shouldFilter:h,loop:v,disablePointerSelection:m=!1,vimBindings:b=!0,...x}=e,w=ce(),y=ce(),C=ce(),E=l.useRef(null),T=Um();Ke(()=>{if(f!==void 0){let S=f.trim();r.current.value=S,_.emit()}},[f]),Ke(()=>{T(6,ee)},[]);let _=l.useMemo(()=>({subscribe:S=>(s.current.add(S),()=>s.current.delete(S)),snapshot:()=>r.current,setState:(S,A,D)=>{var I,Y,P,F;if(!Object.is(r.current[S],A)){if(r.current[S]=A,S==="search")Q(),K(),T(1,X);else if(S==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let U=document.getElementById(C);U?U.focus():(I=document.getElementById(w))==null||I.focus()}if(T(7,()=>{var U;r.current.selectedItemId=(U=W())==null?void 0:U.id,_.emit()}),D||T(5,ee),((Y=i.current)==null?void 0:Y.value)!==void 0){let U=A??"";(F=(P=i.current).onValueChange)==null||F.call(P,U);return}}_.emit()}},emit:()=>{s.current.forEach(S=>S())}}),[]),R=l.useMemo(()=>({value:(S,A,D)=>{var I;A!==((I=a.current.get(S))==null?void 0:I.value)&&(a.current.set(S,{value:A,keywords:D}),r.current.filtered.items.set(S,G(A,D)),T(2,()=>{K(),_.emit()}))},item:(S,A)=>(n.current.add(S),A&&(o.current.has(A)?o.current.get(A).add(S):o.current.set(A,new Set([S]))),T(3,()=>{Q(),K(),r.current.value||X(),_.emit()}),()=>{a.current.delete(S),n.current.delete(S),r.current.filtered.items.delete(S);let D=W();T(4,()=>{Q(),(D==null?void 0:D.getAttribute("id"))===S&&X(),_.emit()})}),group:S=>(o.current.has(S)||o.current.set(S,new Set),()=>{a.current.delete(S),o.current.delete(S)}),filter:()=>i.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:w,inputId:C,labelId:y,listInnerRef:E}),[]);function G(S,A){var D,I;let Y=(I=(D=i.current)==null?void 0:D.filter)!=null?I:Mm;return S?Y(S,r.current.search,A):0}function K(){if(!r.current.search||i.current.shouldFilter===!1)return;let S=r.current.filtered.items,A=[];r.current.filtered.groups.forEach(I=>{let Y=o.current.get(I),P=0;Y.forEach(F=>{let U=S.get(F);P=Math.max(U,P)}),A.push([I,P])});let D=E.current;q().sort((I,Y)=>{var P,F;let U=I.getAttribute("id"),Z=Y.getAttribute("id");return((P=S.get(Z))!=null?P:0)-((F=S.get(U))!=null?F:0)}).forEach(I=>{let Y=I.closest(Rn);Y?Y.appendChild(I.parentElement===Y?I:I.closest(`${Rn} > *`)):D.appendChild(I.parentElement===D?I:I.closest(`${Rn} > *`))}),A.sort((I,Y)=>Y[1]-I[1]).forEach(I=>{var Y;let P=(Y=E.current)==null?void 0:Y.querySelector(`${kt}[${ct}="${encodeURIComponent(I[0])}"]`);P==null||P.parentElement.appendChild(P)})}function X(){let S=q().find(D=>D.getAttribute("aria-disabled")!=="true"),A=S==null?void 0:S.getAttribute(ct);_.setState("value",A||void 0)}function Q(){var S,A,D,I;if(!r.current.search||i.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let Y=0;for(let P of n.current){let F=(A=(S=a.current.get(P))==null?void 0:S.value)!=null?A:"",U=(I=(D=a.current.get(P))==null?void 0:D.keywords)!=null?I:[],Z=G(F,U);r.current.filtered.items.set(P,Z),Z>0&&Y++}for(let[P,F]of o.current)for(let U of F)if(r.current.filtered.items.get(U)>0){r.current.filtered.groups.add(P);break}r.current.filtered.count=Y}function ee(){var S,A,D;let I=W();I&&(((S=I.parentElement)==null?void 0:S.firstChild)===I&&((D=(A=I.closest(kt))==null?void 0:A.querySelector(Om))==null||D.scrollIntoView({block:"nearest"})),I.scrollIntoView({block:"nearest"}))}function W(){var S;return(S=E.current)==null?void 0:S.querySelector(`${Ei}[aria-selected="true"]`)}function q(){var S;return Array.from(((S=E.current)==null?void 0:S.querySelectorAll(Ri))||[])}function $(S){let A=q()[S];A&&_.setState("value",A.getAttribute(ct))}function H(S){var A;let D=W(),I=q(),Y=I.findIndex(F=>F===D),P=I[Y+S];(A=i.current)!=null&&A.loop&&(P=Y+S<0?I[I.length-1]:Y+S===I.length?I[0]:I[Y+S]),P&&_.setState("value",P.getAttribute(ct))}function N(S){let A=W(),D=A==null?void 0:A.closest(kt),I;for(;D&&!I;)D=S>0?Gm(D,kt):Hm(D,kt),I=D==null?void 0:D.querySelector(Ri);I?_.setState("value",I.getAttribute(ct)):H(S)}let te=()=>$(q().length-1),k=S=>{S.preventDefault(),S.metaKey?te():S.altKey?N(1):H(1)},B=S=>{S.preventDefault(),S.metaKey?$(0):S.altKey?N(-1):H(-1)};return l.createElement(V.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:S=>{var A;(A=x.onKeyDown)==null||A.call(x,S);let D=S.nativeEvent.isComposing||S.keyCode===229;if(!(S.defaultPrevented||D))switch(S.key){case"n":case"j":{b&&S.ctrlKey&&k(S);break}case"ArrowDown":{k(S);break}case"p":case"k":{b&&S.ctrlKey&&B(S);break}case"ArrowUp":{B(S);break}case"Home":{S.preventDefault(),$(0);break}case"End":{S.preventDefault(),te();break}case"Enter":{S.preventDefault();let I=W();if(I){let Y=new Event(_n);I.dispatchEvent(Y)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:R.inputId,id:R.labelId,style:Ym},c),br(e,S=>l.createElement(Ni.Provider,{value:_},l.createElement(_i.Provider,{value:R},S))))}),Dm=l.forwardRef((e,t)=>{var r,n;let o=ce(),a=l.useRef(null),s=l.useContext(Pi),i=Et(),c=Ai(e),d=(n=(r=c.current)==null?void 0:r.forceMount)!=null?n:s==null?void 0:s.forceMount;Ke(()=>{if(!d)return i.item(o,s==null?void 0:s.id)},[d]);let f=Ii(o,a,[e.value,e.children,a],e.keywords),p=Nn(),g=Fe(T=>T.value&&T.value===f.current),h=Fe(T=>d||i.filter()===!1?!0:T.search?T.filtered.items.get(o)>0:!0);l.useEffect(()=>{let T=a.current;if(!(!T||e.disabled))return T.addEventListener(_n,v),()=>T.removeEventListener(_n,v)},[h,e.onSelect,e.disabled]);function v(){var T,_;m(),(_=(T=c.current).onSelect)==null||_.call(T,f.current)}function m(){p.setState("value",f.current,!0)}if(!h)return null;let{disabled:b,value:x,onSelect:w,forceMount:y,keywords:C,...E}=e;return l.createElement(V.div,{ref:Ve(a,t),...E,id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!g,"data-disabled":!!b,"data-selected":!!g,onPointerMove:b||i.getDisablePointerSelection()?void 0:m,onClick:b?void 0:v},e.children)}),Lm=l.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,s=ce(),i=l.useRef(null),c=l.useRef(null),d=ce(),f=Et(),p=Fe(h=>o||f.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);Ke(()=>f.group(s),[]),Ii(s,i,[e.value,e.heading,c]);let g=l.useMemo(()=>({id:s,forceMount:o}),[o]);return l.createElement(V.div,{ref:Ve(i,t),...a,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},r&&l.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),br(e,h=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},l.createElement(Pi.Provider,{value:g},h))))}),$m=l.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=l.useRef(null),a=Fe(s=>!s.search);return!r&&!a?null:l.createElement(V.div,{ref:Ve(o,t),...n,"cmdk-separator":"",role:"separator"})}),Fm=l.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,a=Nn(),s=Fe(d=>d.search),i=Fe(d=>d.selectedItemId),c=Et();return l.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),l.createElement(V.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":i,id:c.inputId,type:"text",value:o?e.value:s,onChange:d=>{o||a.setState("search",d.target.value),r==null||r(d.target.value)}})}),Vm=l.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=l.useRef(null),s=l.useRef(null),i=Fe(d=>d.selectedItemId),c=Et();return l.useEffect(()=>{if(s.current&&a.current){let d=s.current,f=a.current,p,g=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let h=d.offsetHeight;f.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return g.observe(d),()=>{cancelAnimationFrame(p),g.unobserve(d)}}},[]),l.createElement(V.div,{ref:Ve(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:c.listId},br(e,d=>l.createElement("div",{ref:Ve(s,c.listInnerRef),"cmdk-list-sizer":""},d)))}),Bm=l.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:s,...i}=e;return l.createElement(Ma,{open:r,onOpenChange:n},l.createElement(Da,{container:s},l.createElement(La,{"cmdk-overlay":"",className:o}),l.createElement($a,{"aria-label":e.label,"cmdk-dialog":"",className:a},l.createElement(Ti,{ref:t,...i}))))}),zm=l.forwardRef((e,t)=>Fe(r=>r.filtered.count===0)?l.createElement(V.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Wm=l.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...a}=e;return l.createElement(V.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},br(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),Rt=Object.assign(Ti,{List:Vm,Item:Dm,Input:Fm,Group:Lm,Separator:$m,Dialog:Bm,Empty:zm,Loading:Wm});function Gm(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function Hm(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function Ai(e){let t=l.useRef(e);return Ke(()=>{t.current=e}),t}var Ke=typeof window>"u"?l.useEffect:l.useLayoutEffect;function ut(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function Fe(e){let t=Nn(),r=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,r,r)}function Ii(e,t,r,n=[]){let o=l.useRef(),a=Et();return Ke(()=>{var s;let i=(()=>{var d;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(d=f.current.textContent)==null?void 0:d.trim():o.current}})(),c=n.map(d=>d.trim());a.value(e,i,c),(s=t.current)==null||s.setAttribute(ct,i),o.current=i}),o}var Um=()=>{let[e,t]=l.useState(),r=ut(()=>new Map);return Ke(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function Km(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function br({asChild:e,children:t},r){return e&&l.isValidElement(t)?l.cloneElement(Km(t),{ref:t.ref},r(t.props.children)):r(t)}var Ym={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function qm({className:e,...t}){return u.jsx(Rt,{"data-slot":"command",className:j("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function Xm({className:e,...t}){return u.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[u.jsx(Uo,{className:"size-4 shrink-0 opacity-50"}),u.jsx(Rt.Input,{"data-slot":"command-input",className:j("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function Zm({...e}){return u.jsx(Rt.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function ji({className:e,...t}){return u.jsx(Rt.Group,{"data-slot":"command-group",className:j("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function Oi({className:e,...t}){return u.jsx(Rt.Item,{"data-slot":"command-item",className:j("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Pn(e){return e.length>0&&e[0].kind==="group"}function Jm(e){return e.multiple?u.jsx(Di,{...e}):u.jsx(Mi,{...e})}const Mi=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=ae.useState(""),d=a??i,f=p=>{c(p),s==null||s(p)};return u.jsxs("div",{className:"w-94",children:[u.jsxs(em,{value:d,onValueChange:f,disabled:r,children:[u.jsx(nm,{"aria-invalid":!!n,className:j("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",r&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",n?"border-primary-1":"border-neutral-black-4"),children:u.jsx(rm,{placeholder:t})}),u.jsx(om,{className:"w-full bg-white border border-neutral-black-4",children:Pn(e)?e.map(p=>u.jsxs(tm,{className:"p-2",children:[u.jsx(am,{children:p.label}),p.options.map(g=>u.jsx(di,{value:g.value,disabled:g.disabled,children:g.label},g.value))]},p.label)):e.map(p=>u.jsx(di,{value:p.value,disabled:p.disabled,className:"hover:cursor-pointer hover:bg-neutral-black-5",children:p.label},p.value))})]}),n&&u.jsx("p",{className:"mt-1 text-xs text-primary-1",children:n}),o&&u.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},Di=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=ae.useState(!1),[d,f]=ae.useState([]),p=a??d,g=ae.useMemo(()=>Pn(e)?e.flatMap(v=>v.options):e,[e]),h=v=>{const m=p.includes(v)?p.filter(b=>b!==v):[...p,v];f(m),s==null||s(m)};return u.jsxs("div",{className:"w-94",children:[u.jsxs(Sm,{open:i,onOpenChange:c,children:[u.jsx(Cm,{asChild:!0,children:u.jsxs("button",{type:"button",disabled:r,"aria-haspopup":"listbox","aria-expanded":i,className:j("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",r&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",n?"border-primary-1":"border-neutral-black-4"),children:[u.jsx("div",{className:"flex flex-wrap gap-1",children:p.length>0?p.map(v=>u.jsxs(Yr,{type:"outline",onClick:m=>{m.stopPropagation(),h(v)},className:"cursor-pointer border-neutral-black-4 bg-transparent hover:bg-neutral-black-4",children:[u.jsx("span",{className:"text-neutral-black-1",children:v}),u.jsx("div",{className:"flex items-center justify-center rounded-full border border-neutral-black-2 h-5 w-5 ml-1",children:u.jsx(Yo,{className:"h-3 w-3 text-neutral-black-1",strokeWidth:2})})]},v)):u.jsx("span",{className:"truncate text-xs text-neutral-black-1",children:t})}),u.jsx(jr,{className:"h-4 w-4 text-neutral-black-1"})]})}),u.jsx(km,{className:"p-0 w-full bg-white border border-neutral-black-4",children:u.jsxs(qm,{className:"w-full",children:[u.jsx(Xm,{placeholder:"Search..."}),u.jsx(Zm,{children:"No results found."}),Pn(e)?e.map(v=>u.jsx(ji,{heading:v.label,children:v.options.map(m=>u.jsxs(Oi,{value:m.label,onSelect:()=>!m.disabled&&h(m.value),disabled:m.disabled,children:[u.jsx("input",{type:"checkbox",readOnly:!0,checked:p.includes(m.value),className:"mr-2"}),m.label]},m.value))},v.label)):u.jsx(ji,{children:g.map(v=>u.jsxs(Oi,{value:v.label,onSelect:()=>!v.disabled&&h(v.value),disabled:v.disabled,children:[u.jsx("input",{type:"checkbox",readOnly:!0,checked:p.includes(v.value),className:"mr-2"}),v.label]},v.value))})]})})]}),n&&u.jsx("p",{className:"mt-1 text-xs text-primary-1",children:n}),o&&u.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},Qm=le("w-full",{variants:{variant:{"widget-1":"bg-white rounded-lg p-6 flex flex-col items-start gap-4 shadow-[0_0_8px_0_rgba(0,0,0,0.08),6px_0_0_0_var(--color-primary-1)_inset]","widget-2":"bg-white rounded-lg p-6 flex flex-col items-start gap-4 border border-neutral-black-4 shadow-[0_0_8px_0_rgba(0,0,0,0.08)]"}},defaultVariants:{variant:"widget-1"}});function eh({className:e,variant:t,asChild:r=!1,children:n,...o}){const a=r?At:"div";return u.jsx(a,{"data-slot":"card",className:j(Qm({variant:t}),e),...o,children:n})}var Tn={exports:{}},An={};/**
|
|
181
|
+
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},lm="DialogDescriptionWarning",cm=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$s(lm).contentName}}.`;return u.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Bs=Es,dm=Ms,zs=Ts,Vs=Ps,Ys=Ds,um=As,fm=Is,Hs=Fs;function mm({...e}){return c.jsx(Bs,{"data-slot":"dialog",...e})}function hm({...e}){return c.jsx(dm,{"data-slot":"dialog-trigger",...e})}function Gs({...e}){return c.jsx(zs,{"data-slot":"dialog-portal",...e})}function pm({...e}){return c.jsx(Hs,{"data-slot":"dialog-close",...e})}function Us({className:e,...t}){return c.jsx(Vs,{"data-slot":"dialog-overlay",className:N("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 gm({className:e,children:t,showCloseButton:n=!0,...r}){return c.jsxs(Gs,{"data-slot":"dialog-portal",children:[c.jsx(Us,{}),c.jsxs(Ys,{"data-slot":"dialog-content",className:N("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&&c.jsxs(Hs,{"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:[c.jsx(es,{}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function bm({className:e,...t}){return c.jsx("div",{"data-slot":"dialog-header",className:N("flex flex-col gap-2 text-center sm:text-left",e),...t})}function vm({className:e,...t}){return c.jsx("div",{"data-slot":"dialog-footer",className:N("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function xm({className:e,...t}){return c.jsx(um,{"data-slot":"dialog-title",className:N("text-lg leading-none font-semibold ",e),...t})}function ym({className:e,...t}){return c.jsx(fm,{"data-slot":"dialog-description",className:N("text-muted-foreground text-sm",e),...t})}const wm=ge("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"}}),Ar=u.forwardRef(({className:e,variant:t,type:n="filled",asChild:r=!1,children:o,...a},s)=>{const i=r?Ge:"span";return c.jsx(i,{ref:s,"data-slot":"badge",className:N(wm({variant:t,type:n}),n==="outline"?"bg-transparent":"",e),...a,children:o})});Ar.displayName="Badge";const km=["top","right","bottom","left"],nt=Math.min,Ne=Math.max,Ln=Math.round,$n=Math.floor,Le=e=>({x:e,y:e}),Sm={left:"right",right:"left",bottom:"top",top:"bottom"},Cm={start:"end",end:"start"};function Rr(e,t,n){return Ne(e,nt(t,n))}function Ke(e,t){return typeof e=="function"?e(t):e}function Xe(e){return e.split("-")[0]}function Tt(e){return e.split("-")[1]}function Ir(e){return e==="x"?"y":"x"}function Wr(e){return e==="y"?"height":"width"}const Nm=new Set(["top","bottom"]);function $e(e){return Nm.has(Xe(e))?"y":"x"}function Fr(e){return Ir($e(e))}function Em(e,t,n){n===void 0&&(n=!1);const r=Tt(e),o=Fr(e),a=Wr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Bn(s)),[s,Bn(s)]}function _m(e){const t=Bn(e);return[Lr(e),t,Lr(t)]}function Lr(e){return e.replace(/start|end/g,t=>Cm[t])}const qs=["left","right"],Ks=["right","left"],Mm=["top","bottom"],Om=["bottom","top"];function Tm(e,t,n){switch(e){case"top":case"bottom":return n?t?Ks:qs:t?qs:Ks;case"left":case"right":return t?Mm:Om;default:return[]}}function Pm(e,t,n,r){const o=Tt(e);let a=Tm(Xe(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Lr)))),a}function Bn(e){return e.replace(/left|right|bottom|top/g,t=>Sm[t])}function Dm(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xs(e){return typeof e!="number"?Dm(e):{top:e,right:e,bottom:e,left:e}}function zn(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 Zs(e,t,n){let{reference:r,floating:o}=e;const a=$e(t),s=Fr(t),i=Wr(s),l=Xe(t),d=a==="y",f=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,p=r[i]/2-o[i]/2;let g;switch(l){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:m};break;case"left":g={x:r.x-o.width,y:m};break;default:g={x:r.x,y:r.y}}switch(Tt(t)){case"start":g[s]-=p*(n&&d?-1:1);break;case"end":g[s]+=p*(n&&d?-1:1);break}return g}const jm=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:m}=Zs(d,r,l),p=r,g={},b=0;for(let h=0;h<i.length;h++){const{name:v,fn:x}=i[h],{x:y,y:w,data:S,reset:k}=await x({x:f,y:m,initialPlacement:r,placement:p,strategy:o,middlewareData:g,rects:d,platform:s,elements:{reference:e,floating:t}});f=y??f,m=w??m,g={...g,[v]:{...g[v],...S}},k&&b<=50&&(b++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(d=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:m}=Zs(d,p,l)),h=-1)}return{x:f,y:m,placement:p,strategy:o,middlewareData:g}};async function Xt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:p=!1,padding:g=0}=Ke(t,e),b=Xs(g),v=i[p?m==="floating"?"reference":"floating":m],x=zn(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:l})),y=m==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),S=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},k=zn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:w,strategy:l}):y);return{top:(x.top-k.top+b.top)/S.y,bottom:(k.bottom-x.bottom+b.bottom)/S.y,left:(x.left-k.left+b.left)/S.x,right:(k.right-x.right+b.right)/S.x}}const Am=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:d,padding:f=0}=Ke(e,t)||{};if(d==null)return{};const m=Xs(f),p={x:n,y:r},g=Fr(o),b=Wr(g),h=await s.getDimensions(d),v=g==="y",x=v?"top":"left",y=v?"bottom":"right",w=v?"clientHeight":"clientWidth",S=a.reference[b]+a.reference[g]-p[g]-a.floating[b],k=p[g]-a.reference[g],_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let C=_?_[w]:0;(!C||!await(s.isElement==null?void 0:s.isElement(_)))&&(C=i.floating[w]||a.floating[b]);const E=S/2-k/2,F=C/2-h[b]/2-1,Y=nt(m[x],F),R=nt(m[y],F),z=Y,K=C-h[b]-R,H=C/2-h[b]/2+E,Z=Rr(z,H,K),B=!l.arrow&&Tt(o)!=null&&H!==Z&&a.reference[b]/2-(H<z?Y:R)-h[b]/2<0,Q=B?H<z?H-z:H-K:0;return{[g]:p[g]+Q,data:{[g]:Z,centerOffset:H-Z-Q,...B&&{alignmentOffset:Q}},reset:B}}}),Rm=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:h=!0,...v}=Ke(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const x=Xe(o),y=$e(i),w=Xe(i)===i,S=await(l.isRTL==null?void 0:l.isRTL(d.floating)),k=p||(w||!h?[Bn(i)]:_m(i)),_=b!=="none";!p&&_&&k.push(...Pm(i,h,b,S));const C=[i,...k],E=await Xt(t,v),F=[];let Y=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&F.push(E[x]),m){const H=Em(o,s,S);F.push(E[H[0]],E[H[1]])}if(Y=[...Y,{placement:o,overflows:F}],!F.every(H=>H<=0)){var R,z;const H=(((R=a.flip)==null?void 0:R.index)||0)+1,Z=C[H];if(Z&&(!(m==="alignment"?y!==$e(Z):!1)||Y.every(P=>$e(P.placement)===y?P.overflows[0]>0:!0)))return{data:{index:H,overflows:Y},reset:{placement:Z}};let B=(z=Y.filter(Q=>Q.overflows[0]<=0).sort((Q,P)=>Q.overflows[1]-P.overflows[1])[0])==null?void 0:z.placement;if(!B)switch(g){case"bestFit":{var K;const Q=(K=Y.filter(P=>{if(_){const te=$e(P.placement);return te===y||te==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(te=>te>0).reduce((te,T)=>te+T,0)]).sort((P,te)=>P[1]-te[1])[0])==null?void 0:K[0];Q&&(B=Q);break}case"initialPlacement":B=i;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function Qs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Js(e){return km.some(t=>e[t]>=0)}const Im=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ke(e,t);switch(r){case"referenceHidden":{const a=await Xt(t,{...o,elementContext:"reference"}),s=Qs(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Js(s)}}}case"escaped":{const a=await Xt(t,{...o,altBoundary:!0}),s=Qs(a,n.floating);return{data:{escapedOffsets:s,escaped:Js(s)}}}default:return{}}}}},ei=new Set(["left","top"]);async function Wm(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Xe(n),i=Tt(n),l=$e(n)==="y",d=ei.has(s)?-1:1,f=a&&l?-1:1,m=Ke(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:b}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return i&&typeof b=="number"&&(g=i==="end"?b*-1:b),l?{x:g*f,y:p*d}:{x:p*d,y:g*f}}const Fm=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,l=await Wm(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},Lm=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:v=>{let{x,y}=v;return{x,y}}},...l}=Ke(e,t),d={x:n,y:r},f=await Xt(t,l),m=$e(Xe(o)),p=Ir(m);let g=d[p],b=d[m];if(a){const v=p==="y"?"top":"left",x=p==="y"?"bottom":"right",y=g+f[v],w=g-f[x];g=Rr(y,g,w)}if(s){const v=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=b+f[v],w=b-f[x];b=Rr(y,b,w)}const h=i.fn({...t,[p]:g,[m]:b});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[p]:a,[m]:s}}}}}},$m=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:d=!0}=Ke(e,t),f={x:n,y:r},m=$e(o),p=Ir(m);let g=f[p],b=f[m];const h=Ke(i,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const w=p==="y"?"height":"width",S=a.reference[p]-a.floating[w]+v.mainAxis,k=a.reference[p]+a.reference[w]-v.mainAxis;g<S?g=S:g>k&&(g=k)}if(d){var x,y;const w=p==="y"?"width":"height",S=ei.has(Xe(o)),k=a.reference[m]-a.floating[w]+(S&&((x=s.offset)==null?void 0:x[m])||0)+(S?0:v.crossAxis),_=a.reference[m]+a.reference[w]+(S?0:((y=s.offset)==null?void 0:y[m])||0)-(S?v.crossAxis:0);b<k?b=k:b>_&&(b=_)}return{[p]:g,[m]:b}}}},Bm=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:l=()=>{},...d}=Ke(e,t),f=await Xt(t,d),m=Xe(o),p=Tt(o),g=$e(o)==="y",{width:b,height:h}=a.floating;let v,x;m==="top"||m==="bottom"?(v=m,x=p===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(x=m,v=p==="end"?"top":"bottom");const y=h-f.top-f.bottom,w=b-f.left-f.right,S=nt(h-f[v],y),k=nt(b-f[x],w),_=!t.middlewareData.shift;let C=S,E=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=y),_&&!p){const Y=Ne(f.left,0),R=Ne(f.right,0),z=Ne(f.top,0),K=Ne(f.bottom,0);g?E=b-2*(Y!==0||R!==0?Y+R:Ne(f.left,f.right)):C=h-2*(z!==0||K!==0?z+K:Ne(f.top,f.bottom))}await l({...t,availableWidth:E,availableHeight:C});const F=await s.getDimensions(i.floating);return b!==F.width||h!==F.height?{reset:{rects:!0}}:{}}}};function Vn(){return typeof window<"u"}function Pt(e){return ti(e)?(e.nodeName||"").toLowerCase():"#document"}function Ee(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Be(e){var t;return(t=(ti(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ti(e){return Vn()?e instanceof Node||e instanceof Ee(e).Node:!1}function je(e){return Vn()?e instanceof Element||e instanceof Ee(e).Element:!1}function ze(e){return Vn()?e instanceof HTMLElement||e instanceof Ee(e).HTMLElement:!1}function ni(e){return!Vn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ee(e).ShadowRoot}const zm=new Set(["inline","contents"]);function Zt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ae(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!zm.has(o)}const Vm=new Set(["table","td","th"]);function Ym(e){return Vm.has(Pt(e))}const Hm=[":popover-open",":modal"];function Yn(e){return Hm.some(t=>{try{return e.matches(t)}catch{return!1}})}const Gm=["transform","translate","scale","rotate","perspective"],Um=["transform","translate","scale","rotate","perspective","filter"],qm=["paint","layout","strict","content"];function $r(e){const t=Br(),n=je(e)?Ae(e):e;return Gm.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)||Um.some(r=>(n.willChange||"").includes(r))||qm.some(r=>(n.contain||"").includes(r))}function Km(e){let t=rt(e);for(;ze(t)&&!Dt(t);){if($r(t))return t;if(Yn(t))return null;t=rt(t)}return null}function Br(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Xm=new Set(["html","body","#document"]);function Dt(e){return Xm.has(Pt(e))}function Ae(e){return Ee(e).getComputedStyle(e)}function Hn(e){return je(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rt(e){if(Pt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ni(e)&&e.host||Be(e);return ni(t)?t.host:t}function ri(e){const t=rt(e);return Dt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ze(t)&&Zt(t)?t:ri(t)}function Qt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ri(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ee(o);if(a){const i=zr(s);return t.concat(s,s.visualViewport||[],Zt(o)?o:[],i&&n?Qt(i):[])}return t.concat(o,Qt(o,[],n))}function zr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function oi(e){const t=Ae(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ze(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=Ln(n)!==a||Ln(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function Vr(e){return je(e)?e:e.contextElement}function jt(e){const t=Vr(e);if(!ze(t))return Le(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=oi(t);let s=(a?Ln(n.width):n.width)/r,i=(a?Ln(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const Zm=Le(0);function ai(e){const t=Ee(e);return!Br()||!t.visualViewport?Zm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qm(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ee(e)?!1:t}function mt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Vr(e);let s=Le(1);t&&(r?je(r)&&(s=jt(r)):s=jt(e));const i=Qm(a,n,r)?ai(a):Le(0);let l=(o.left+i.x)/s.x,d=(o.top+i.y)/s.y,f=o.width/s.x,m=o.height/s.y;if(a){const p=Ee(a),g=r&&je(r)?Ee(r):r;let b=p,h=zr(b);for(;h&&r&&g!==b;){const v=jt(h),x=h.getBoundingClientRect(),y=Ae(h),w=x.left+(h.clientLeft+parseFloat(y.paddingLeft))*v.x,S=x.top+(h.clientTop+parseFloat(y.paddingTop))*v.y;l*=v.x,d*=v.y,f*=v.x,m*=v.y,l+=w,d+=S,b=Ee(h),h=zr(b)}}return zn({width:f,height:m,x:l,y:d})}function Gn(e,t){const n=Hn(e).scrollLeft;return t?t.left+n:mt(Be(e)).left+n}function si(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Gn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Jm(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=Be(r),i=t?Yn(t.floating):!1;if(r===s||i&&a)return n;let l={scrollLeft:0,scrollTop:0},d=Le(1);const f=Le(0),m=ze(r);if((m||!m&&!a)&&((Pt(r)!=="body"||Zt(s))&&(l=Hn(r)),ze(r))){const g=mt(r);d=jt(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const p=s&&!m&&!a?si(s,l):Le(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+f.x+p.x,y:n.y*d.y-l.scrollTop*d.y+f.y+p.y}}function eh(e){return Array.from(e.getClientRects())}function th(e){const t=Be(e),n=Hn(e),r=e.ownerDocument.body,o=Ne(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ne(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Gn(e);const i=-n.scrollTop;return Ae(r).direction==="rtl"&&(s+=Ne(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}const ii=25;function nh(e,t){const n=Ee(e),r=Be(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const f=Br();(!f||f&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const d=Gn(r);if(d<=0){const f=r.ownerDocument,m=f.body,p=getComputedStyle(m),g=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,b=Math.abs(r.clientWidth-m.clientWidth-g);b<=ii&&(a-=b)}else d<=ii&&(a+=d);return{width:a,height:s,x:i,y:l}}const rh=new Set(["absolute","fixed"]);function oh(e,t){const n=mt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=ze(e)?jt(e):Le(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,d=r*a.y;return{width:s,height:i,x:l,y:d}}function li(e,t,n){let r;if(t==="viewport")r=nh(e,n);else if(t==="document")r=th(Be(e));else if(je(t))r=oh(t,n);else{const o=ai(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return zn(r)}function ci(e,t){const n=rt(e);return n===t||!je(n)||Dt(n)?!1:Ae(n).position==="fixed"||ci(n,t)}function ah(e,t){const n=t.get(e);if(n)return n;let r=Qt(e,[],!1).filter(i=>je(i)&&Pt(i)!=="body"),o=null;const a=Ae(e).position==="fixed";let s=a?rt(e):e;for(;je(s)&&!Dt(s);){const i=Ae(s),l=$r(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&rh.has(o.position)||Zt(s)&&!l&&ci(e,s))?r=r.filter(f=>f!==s):o=i,s=rt(s)}return t.set(e,r),r}function sh(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Yn(t)?[]:ah(t,this._c):[].concat(n),r],i=s[0],l=s.reduce((d,f)=>{const m=li(t,f,o);return d.top=Ne(m.top,d.top),d.right=nt(m.right,d.right),d.bottom=nt(m.bottom,d.bottom),d.left=Ne(m.left,d.left),d},li(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ih(e){const{width:t,height:n}=oi(e);return{width:t,height:n}}function lh(e,t,n){const r=ze(t),o=Be(t),a=n==="fixed",s=mt(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=Le(0);function d(){l.x=Gn(o)}if(r||!r&&!a)if((Pt(t)!=="body"||Zt(o))&&(i=Hn(t)),r){const g=mt(t,!0,a,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&d();a&&!r&&o&&d();const f=o&&!r&&!a?si(o,i):Le(0),m=s.left+i.scrollLeft-l.x-f.x,p=s.top+i.scrollTop-l.y-f.y;return{x:m,y:p,width:s.width,height:s.height}}function Yr(e){return Ae(e).position==="static"}function di(e,t){if(!ze(e)||Ae(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Be(e)===n&&(n=n.ownerDocument.body),n}function ui(e,t){const n=Ee(e);if(Yn(e))return n;if(!ze(e)){let o=rt(e);for(;o&&!Dt(o);){if(je(o)&&!Yr(o))return o;o=rt(o)}return n}let r=di(e,t);for(;r&&Ym(r)&&Yr(r);)r=di(r,t);return r&&Dt(r)&&Yr(r)&&!$r(r)?n:r||Km(e)||n}const ch=async function(e){const t=this.getOffsetParent||ui,n=this.getDimensions,r=await n(e.floating);return{reference:lh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function dh(e){return Ae(e).direction==="rtl"}const uh={convertOffsetParentRelativeRectToViewportRelativeRect:Jm,getDocumentElement:Be,getClippingRect:sh,getOffsetParent:ui,getElementRects:ch,getClientRects:eh,getDimensions:ih,getScale:jt,isElement:je,isRTL:dh};function fi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fh(e,t){let n=null,r;const o=Be(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const d=e.getBoundingClientRect(),{left:f,top:m,width:p,height:g}=d;if(i||t(),!p||!g)return;const b=$n(m),h=$n(o.clientWidth-(f+p)),v=$n(o.clientHeight-(m+g)),x=$n(f),w={rootMargin:-b+"px "+-h+"px "+-v+"px "+-x+"px",threshold:Ne(0,nt(1,l))||1};let S=!0;function k(_){const C=_[0].intersectionRatio;if(C!==l){if(!S)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!fi(d,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(k,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,w)}n.observe(e)}return s(!0),a}function mh(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=Vr(e),f=o||a?[...d?Qt(d):[],...Qt(t)]:[];f.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),a&&x.addEventListener("resize",n)});const m=d&&i?fh(d,n):null;let p=-1,g=null;s&&(g=new ResizeObserver(x=>{let[y]=x;y&&y.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),d&&!l&&g.observe(d),g.observe(t));let b,h=l?mt(e):null;l&&v();function v(){const x=mt(e);h&&!fi(h,x)&&n(),h=x,b=requestAnimationFrame(v)}return n(),()=>{var x;f.forEach(y=>{o&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),m==null||m(),(x=g)==null||x.disconnect(),g=null,l&&cancelAnimationFrame(b)}}const hh=Fm,ph=Lm,gh=Rm,bh=Bm,vh=Im,mi=Am,xh=$m,yh=(e,t,n)=>{const r=new Map,o={platform:uh,...n},a={...o.platform,_c:r};return jm(e,t,{...o,platform:a})};var wh=typeof document<"u",kh=function(){},Un=wh?M.useLayoutEffect:kh;function qn(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(!qn(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 a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!qn(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function hi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pi(e,t){const n=hi(e);return Math.round(t*n)/n}function Hr(e){const t=u.useRef(e);return Un(()=>{t.current=e}),t}function Sh(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:d}=e,[f,m]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=u.useState(r);qn(p,r)||g(r);const[b,h]=u.useState(null),[v,x]=u.useState(null),y=u.useCallback(P=>{P!==_.current&&(_.current=P,h(P))},[]),w=u.useCallback(P=>{P!==C.current&&(C.current=P,x(P))},[]),S=a||b,k=s||v,_=u.useRef(null),C=u.useRef(null),E=u.useRef(f),F=l!=null,Y=Hr(l),R=Hr(o),z=Hr(d),K=u.useCallback(()=>{if(!_.current||!C.current)return;const P={placement:t,strategy:n,middleware:p};R.current&&(P.platform=R.current),yh(_.current,C.current,P).then(te=>{const T={...te,isPositioned:z.current!==!1};H.current&&!qn(E.current,T)&&(E.current=T,gn.flushSync(()=>{m(T)}))})},[p,t,n,R,z]);Un(()=>{d===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,m(P=>({...P,isPositioned:!1})))},[d]);const H=u.useRef(!1);Un(()=>(H.current=!0,()=>{H.current=!1}),[]),Un(()=>{if(S&&(_.current=S),k&&(C.current=k),S&&k){if(Y.current)return Y.current(S,k,K);K()}},[S,k,K,Y,F]);const Z=u.useMemo(()=>({reference:_,floating:C,setReference:y,setFloating:w}),[y,w]),B=u.useMemo(()=>({reference:S,floating:k}),[S,k]),Q=u.useMemo(()=>{const P={position:n,left:0,top:0};if(!B.floating)return P;const te=pi(B.floating,f.x),T=pi(B.floating,f.y);return i?{...P,transform:"translate("+te+"px, "+T+"px)",...hi(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:T}},[n,i,B.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:K,refs:Z,elements:B,floatingStyles:Q}),[f,K,Z,B,Q])}const Ch=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?mi({element:r.current,padding:o}).fn(n):{}:r?mi({element:r,padding:o}).fn(n):{}}}},Nh=(e,t)=>({...hh(e),options:[e,t]}),Eh=(e,t)=>({...ph(e),options:[e,t]}),_h=(e,t)=>({...xh(e),options:[e,t]}),Mh=(e,t)=>({...gh(e),options:[e,t]}),Oh=(e,t)=>({...bh(e),options:[e,t]}),Th=(e,t)=>({...vh(e),options:[e,t]}),Ph=(e,t)=>({...Ch(e),options:[e,t]});var Dh="Arrow",gi=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return c.jsx(U.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});gi.displayName=Dh;var jh=gi,Gr="Popper",[bi,At]=Ce(Gr),[Ah,vi]=bi(Gr),xi=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return c.jsx(Ah,{scope:t,anchor:r,onAnchorChange:o,children:n})};xi.displayName=Gr;var yi="PopperAnchor",wi=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=vi(yi,n),s=u.useRef(null),i=le(t,s),l=u.useRef(null);return u.useEffect(()=>{const d=l.current;l.current=(r==null?void 0:r.current)||s.current,d!==l.current&&a.onAnchorChange(l.current)}),r?null:c.jsx(U.div,{...o,ref:i})});wi.displayName=yi;var Ur="PopperContent",[Rh,Ih]=bi(Ur),ki=u.forwardRef((e,t)=>{var j,V,J,ne,se,ie;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:p=!1,updatePositionStrategy:g="optimized",onPlaced:b,...h}=e,v=vi(Ur,n),[x,y]=u.useState(null),w=le(t,ke=>y(ke)),[S,k]=u.useState(null),_=yn(S),C=(_==null?void 0:_.width)??0,E=(_==null?void 0:_.height)??0,F=r+(a!=="center"?"-"+a:""),Y=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},R=Array.isArray(d)?d:[d],z=R.length>0,K={padding:Y,boundary:R.filter(Fh),altBoundary:z},{refs:H,floatingStyles:Z,placement:B,isPositioned:Q,middlewareData:P}=Sh({strategy:"fixed",placement:F,whileElementsMounted:(...ke)=>mh(...ke,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[Nh({mainAxis:o+E,alignmentAxis:s}),l&&Eh({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?_h():void 0,...K}),l&&Mh({...K}),Oh({...K,apply:({elements:ke,rects:Oe,availableWidth:xt,availableHeight:yt})=>{const{width:wt,height:Wo}=Oe.reference,Vt=ke.floating.style;Vt.setProperty("--radix-popper-available-width",`${xt}px`),Vt.setProperty("--radix-popper-available-height",`${yt}px`),Vt.setProperty("--radix-popper-anchor-width",`${wt}px`),Vt.setProperty("--radix-popper-anchor-height",`${Wo}px`)}}),S&&Ph({element:S,padding:i}),Lh({arrowWidth:C,arrowHeight:E}),p&&Th({strategy:"referenceHidden",...K})]}),[te,T]=Ni(B),G=qe(b);be(()=>{Q&&(G==null||G())},[Q,G]);const O=(j=P.arrow)==null?void 0:j.x,A=(V=P.arrow)==null?void 0:V.y,W=((J=P.arrow)==null?void 0:J.centerOffset)!==0,[I,ee]=u.useState();return be(()=>{x&&ee(window.getComputedStyle(x).zIndex)},[x]),c.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:Q?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:I,"--radix-popper-transform-origin":[(ne=P.transformOrigin)==null?void 0:ne.x,(se=P.transformOrigin)==null?void 0:se.y].join(" "),...((ie=P.hide)==null?void 0:ie.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Rh,{scope:n,placedSide:te,onArrowChange:k,arrowX:O,arrowY:A,shouldHideArrow:W,children:c.jsx(U.div,{"data-side":te,"data-align":T,...h,ref:w,style:{...h.style,animation:Q?void 0:"none"}})})})});ki.displayName=Ur;var Si="PopperArrow",Wh={top:"bottom",right:"left",bottom:"top",left:"right"},Ci=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Ih(Si,r),s=Wh[a.placedSide];return c.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:c.jsx(jh,{...o,ref:n,style:{...o.style,display:"block"}})})});Ci.displayName=Si;function Fh(e){return e!==null}var Lh=e=>({name:"transformOrigin",options:e,fn(t){var v,x,y;const{placement:n,rects:r,middlewareData:o}=t,s=((v=o.arrow)==null?void 0:v.centerOffset)!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[d,f]=Ni(n),m={start:"0%",center:"50%",end:"100%"}[f],p=(((x=o.arrow)==null?void 0:x.x)??0)+i/2,g=(((y=o.arrow)==null?void 0:y.y)??0)+l/2;let b="",h="";return d==="bottom"?(b=s?m:`${p}px`,h=`${-l}px`):d==="top"?(b=s?m:`${p}px`,h=`${r.floating.height+l}px`):d==="right"?(b=`${-l}px`,h=s?m:`${g}px`):d==="left"&&(b=`${r.floating.width+l}px`,h=s?m:`${g}px`),{data:{x:b,y:h}}}});function Ni(e){const[t,n="center"]=e.split("-");return[t,n]}var qr=xi,Kn=wi,Kr=ki,Xr=Ci,Ei=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"}),$h="VisuallyHidden",_i=u.forwardRef((e,t)=>c.jsx(U.span,{...e,ref:t,style:{...Ei,...e.style}}));_i.displayName=$h;var Bh=_i,[Xn,S0]=Ce("Tooltip",[At]),Zn=At(),Mi="TooltipProvider",zh=700,Zr="tooltip.open",[Vh,Qr]=Xn(Mi),Oi=e=>{const{__scopeTooltip:t,delayDuration:n=zh,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=u.useRef(!0),i=u.useRef(!1),l=u.useRef(0);return u.useEffect(()=>{const d=l.current;return()=>window.clearTimeout(d)},[]),c.jsx(Vh,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:u.useCallback(d=>{i.current=d},[]),disableHoverableContent:o,children:a})};Oi.displayName=Mi;var Jt="Tooltip",[Yh,en]=Xn(Jt),Jr=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=Qr(Jt,e.__scopeTooltip),d=Zn(t),[f,m]=u.useState(null),p=ye(),g=u.useRef(0),b=s??l.disableHoverableContent,h=i??l.delayDuration,v=u.useRef(!1),[x,y]=We({prop:r,defaultProp:o??!1,onChange:C=>{C?(l.onOpen(),document.dispatchEvent(new CustomEvent(Zr))):l.onClose(),a==null||a(C)},caller:Jt}),w=u.useMemo(()=>x?v.current?"delayed-open":"instant-open":"closed",[x]),S=u.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,y(!0)},[y]),k=u.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y(!1)},[y]),_=u.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,y(!0),g.current=0},h)},[h,y]);return u.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),c.jsx(qr,{...d,children:c.jsx(Yh,{scope:t,contentId:p,open:x,stateAttribute:w,trigger:f,onTriggerChange:m,onTriggerEnter:u.useCallback(()=>{l.isOpenDelayedRef.current?_():S()},[l.isOpenDelayedRef,_,S]),onTriggerLeave:u.useCallback(()=>{b?k():(window.clearTimeout(g.current),g.current=0)},[k,b]),onOpen:S,onClose:k,disableHoverableContent:b,children:n})})};Jr.displayName=Jt;var eo="TooltipTrigger",to=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=en(eo,n),a=Qr(eo,n),s=Zn(n),i=u.useRef(null),l=le(t,i,o.onTriggerChange),d=u.useRef(!1),f=u.useRef(!1),m=u.useCallback(()=>d.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),c.jsx(Kn,{asChild:!0,...s,children:c.jsx(U.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:X(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:X(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:X(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:X(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:X(e.onBlur,o.onClose),onClick:X(e.onClick,o.onClose)})})});to.displayName=eo;var no="TooltipPortal",[Hh,Gh]=Xn(no,{forceMount:void 0}),Ti=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=en(no,t);return c.jsx(Hh,{scope:t,forceMount:n,children:c.jsx(Pe,{present:n||a.open,children:c.jsx(Kt,{asChild:!0,container:o,children:r})})})};Ti.displayName=no;var Rt="TooltipContent",ro=u.forwardRef((e,t)=>{const n=Gh(Rt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=en(Rt,e.__scopeTooltip);return c.jsx(Pe,{present:r||s.open,children:s.disableHoverableContent?c.jsx(Pi,{side:o,...a,ref:t}):c.jsx(Uh,{side:o,...a,ref:t})})}),Uh=u.forwardRef((e,t)=>{const n=en(Rt,e.__scopeTooltip),r=Qr(Rt,e.__scopeTooltip),o=u.useRef(null),a=le(t,o),[s,i]=u.useState(null),{trigger:l,onClose:d}=n,f=o.current,{onPointerInTransitChange:m}=r,p=u.useCallback(()=>{i(null),m(!1)},[m]),g=u.useCallback((b,h)=>{const v=b.currentTarget,x={x:b.clientX,y:b.clientY},y=Zh(x,v.getBoundingClientRect()),w=Qh(x,y),S=Jh(h.getBoundingClientRect()),k=tp([...w,...S]);i(k),m(!0)},[m]);return u.useEffect(()=>()=>p(),[p]),u.useEffect(()=>{if(l&&f){const b=v=>g(v,f),h=v=>g(v,l);return l.addEventListener("pointerleave",b),f.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",h)}}},[l,f,g,p]),u.useEffect(()=>{if(s){const b=h=>{const v=h.target,x={x:h.clientX,y:h.clientY},y=(l==null?void 0:l.contains(v))||(f==null?void 0:f.contains(v)),w=!ep(x,s);y?p():w&&(p(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,f,s,d,p]),c.jsx(Pi,{...e,ref:a})}),[qh,Kh]=Xn(Jt,{isInside:!1}),Xh=ad("TooltipContent"),Pi=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=en(Rt,n),d=Zn(n),{onClose:f}=l;return u.useEffect(()=>(document.addEventListener(Zr,f),()=>document.removeEventListener(Zr,f)),[f]),u.useEffect(()=>{if(l.trigger){const m=p=>{const g=p.target;g!=null&&g.contains(l.trigger)&&f()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[l.trigger,f]),c.jsx(qt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:m=>m.preventDefault(),onDismiss:f,children:c.jsxs(Kr,{"data-state":l.stateAttribute,...d,...i,ref:t,style:{...i.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:[c.jsx(Xh,{children:r}),c.jsx(qh,{scope:n,isInside:!0,children:c.jsx(Bh,{id:l.contentId,role:"tooltip",children:o||r})})]})})});ro.displayName=Rt;var Di="TooltipArrow",ji=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Zn(n);return Kh(Di,n).isInside?null:c.jsx(Xr,{...o,...r,ref:t})});ji.displayName=Di;function Zh(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Qh(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 Jh(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 ep(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],d=i.x,f=i.y,m=l.x,p=l.y;f>r!=p>r&&n<(m-d)*(r-f)/(p-f)+d&&(o=!o)}return o}function tp(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),np(t)}function np(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 a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.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 a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.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 rp=Oi,op=Jr,ap=to,sp=Ti,ip=ro,lp=ji;function Ai({delayDuration:e=0,...t}){return c.jsx(rp,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function cp({...e}){return c.jsx(Ai,{children:c.jsx(op,{"data-slot":"tooltip",...e})})}function dp({...e}){return c.jsx(ap,{"data-slot":"tooltip-trigger",...e})}function up({className:e,sideOffset:t=0,children:n,...r}){return c.jsx(sp,{children:c.jsxs(ip,{"data-slot":"tooltip-content",sideOffset:t,className:N("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,c.jsx(lp,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Ri=({className:e,type:t,...n})=>c.jsx("input",{type:t,className:N("flex-1 h-10 bg-transparent outline-none placeholder:text-neutral-black-2 disabled:cursor-not-allowed disabled:opacity-50","text-black-1 text-sm","placeholder:text-neutral-black-2 placeholder:text-sm",e),...n}),fp=ge("flex items-center rounded-lg border transition-colors p-2",{variants:{size:{small:"h-6 w-80 text-sm px-2",medium:"h-10 w-92 text-base px-3"},status:{default:"border-neutral-black-4 text-foreground focus-within:ring-4 focus-within:ring-neutral-black-4",error:"border-error-1 text-primary-1 focus-within:ring-4 focus-within:ring-error-1",disabled:"border-neutral-black-4 bg-neutral-black-4 text-neutral-black-2 cursor-not-allowed"}},defaultVariants:{size:"medium",status:"default"}}),Ii=({size:e,status:t,startSlot:n,endSlot:r,className:o,disabled:a,...s})=>c.jsxs("div",{className:N(fp({size:e,status:t}),o),children:[n&&c.jsx("span",{className:"mr-2 flex-shrink-0",children:n}),c.jsx(Ri,{disabled:a,...s}),r&&c.jsx("span",{className:"ml-2 flex-shrink-0",children:r})]}),Wi=({children:e,className:t,...n})=>e==null?null:c.jsx("label",{className:N("text-sm font-normal text-neutral-black-1",t),...n,children:e}),oo=({label:e,helperText:t,errorText:n,startSlot:r,endSlot:o,size:a="medium",className:s,disabled:i=!1,labelClassName:l,...d})=>c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx(Wi,{className:l,children:e}),c.jsx(Ii,{size:a,status:n?"error":i?"disabled":"default",startSlot:r,endSlot:o,disabled:i,className:s,...d}),(t||n)&&c.jsx("p",{className:N("text-sm mt-1",n?"text-primary-1":"text-neutral-black-2"),children:n||t})]}),mp=({label:e="Password",showForgot:t=!1,onValidityChange:n,customValidator:r,showPasswordValidation:o=!0,labelClassName:a="",...s})=>{const[i,l]=M.useState(!1),[d,f]=M.useState(""),[m,p]=M.useState(!1),g=v=>[{label:"minimum 8 characters",isValid:v.length>=8},{label:"one uppercase character",isValid:/[A-Z]/.test(v)},{label:"one lowercase character",isValid:/[a-z]/.test(v)},{label:"one special character",isValid:/[^A-Za-z0-9]/.test(v)},{label:"one number",isValid:/\d/.test(v)}],b=M.useMemo(()=>o?r?r(d):g(d):[],[o,r,d]),h=b.every(v=>v.isValid);return M.useEffect(()=>{o&&n&&n(h,b)},[d,h,b,n,o]),c.jsx("div",{className:"flex flex-col gap-2",children:c.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[c.jsxs("div",{className:"flex justify-between items-center",children:[c.jsx("label",{className:N("text-sm font-medium text-neutral-0",a),children:e}),t&&c.jsx(Se,{className:"text-xs text-neutral-0 hover:underline bg-transparent p-0 hover:bg-transparent",variant:"primary",children:"Forgot Password?"})]}),c.jsx(oo,{labelClassName:a,type:i?"text":"password",value:d,onChange:v=>f(v.target.value),onFocus:()=>p(!0),...s,endSlot:c.jsx(Se,{className:"text-xs text-neutral-0 hover:underline bg-transparent p-0 hover:bg-transparent",variant:"primary",onClick:()=>l(!i),children:i?c.jsx(Gu,{size:24,className:"text-neutral-black-2"}):c.jsx(Uu,{size:24,className:"text-neutral-black-2"})})}),o&&c.jsx("div",{className:"grid grid-cols-2 gap-y-1 text-xs mt-3",children:b.map((v,x)=>c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx("div",{className:N("w-1.5 h-1.5 rounded-full transition-colors",v.isValid?"bg-success-1":m?"bg-primary-1":"bg-neutral-black-2")}),c.jsx("span",{className:N("transition-colors",v.isValid?"text-success-1":m?"text-primary-1":"text-neutral-black-2"),children:v.label})]},x))})]})})},hp=e=>c.jsx(oo,{type:"search",startSlot:c.jsx(Qa,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder text-neutral-black-2"}),placeholder:"Search...",...e});function Fi(e,[t,n]){return Math.min(n,Math.max(t,e))}var pp=[" ","Enter","ArrowUp","ArrowDown"],gp=[" ","Enter"],ht="Select",[Qn,Jn,bp]=ba(ht),[It,C0]=Ce(ht,[bp,At]),er=At(),[vp,ot]=It(ht),[xp,yp]=It(ht),Li=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:l,dir:d,name:f,autoComplete:m,disabled:p,required:g,form:b}=e,h=er(t),[v,x]=u.useState(null),[y,w]=u.useState(null),[S,k]=u.useState(!1),_=kn(d),[C,E]=We({prop:r,defaultProp:o??!1,onChange:a,caller:ht}),[F,Y]=We({prop:s,defaultProp:i,onChange:l,caller:ht}),R=u.useRef(null),z=v?b||!!v.closest("form"):!0,[K,H]=u.useState(new Set),Z=Array.from(K).map(B=>B.props.value).join(";");return c.jsx(qr,{...h,children:c.jsxs(vp,{required:g,scope:t,trigger:v,onTriggerChange:x,valueNode:y,onValueNodeChange:w,valueNodeHasChildren:S,onValueNodeHasChildrenChange:k,contentId:ye(),value:F,onValueChange:Y,open:C,onOpenChange:E,dir:_,triggerPointerDownPosRef:R,disabled:p,children:[c.jsx(Qn.Provider,{scope:t,children:c.jsx(xp,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(B=>{H(Q=>new Set(Q).add(B))},[]),onNativeOptionRemove:u.useCallback(B=>{H(Q=>{const P=new Set(Q);return P.delete(B),P})},[]),children:n})}),z?c.jsxs(cl,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:m,value:F,onChange:B=>Y(B.target.value),disabled:p,form:b,children:[F===void 0?c.jsx("option",{value:""}):null,Array.from(K)]},Z):null]})})};Li.displayName=ht;var $i="SelectTrigger",Bi=u.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=er(n),s=ot($i,n),i=s.disabled||r,l=le(t,s.onTriggerChange),d=Jn(n),f=u.useRef("touch"),[m,p,g]=ul(h=>{const v=d().filter(w=>!w.disabled),x=v.find(w=>w.value===s.value),y=fl(v,h,x);y!==void 0&&s.onValueChange(y.value)}),b=h=>{i||(s.onOpenChange(!0),g()),h&&(s.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return c.jsx(Kn,{asChild:!0,...a,children:c.jsx(U.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":dl(s.value)?"":void 0,...o,ref:l,onClick:X(o.onClick,h=>{h.currentTarget.focus(),f.current!=="mouse"&&b(h)}),onPointerDown:X(o.onPointerDown,h=>{f.current=h.pointerType;const v=h.target;v.hasPointerCapture(h.pointerId)&&v.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(b(h),h.preventDefault())}),onKeyDown:X(o.onKeyDown,h=>{const v=m.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&p(h.key),!(v&&h.key===" ")&&pp.includes(h.key)&&(b(),h.preventDefault())})})})});Bi.displayName=$i;var zi="SelectValue",Vi=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...i}=e,l=ot(zi,n),{onValueNodeHasChildrenChange:d}=l,f=a!==void 0,m=le(t,l.onValueNodeChange);return be(()=>{d(f)},[d,f]),c.jsx(U.span,{...i,ref:m,style:{pointerEvents:"none"},children:dl(l.value)?c.jsx(c.Fragment,{children:s}):a})});Vi.displayName=zi;var wp="SelectIcon",Yi=u.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return c.jsx(U.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Yi.displayName=wp;var kp="SelectPortal",Hi=e=>c.jsx(Kt,{asChild:!0,...e});Hi.displayName=kp;var pt="SelectContent",Gi=u.forwardRef((e,t)=>{const n=ot(pt,e.__scopeSelect),[r,o]=u.useState();if(be(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?gn.createPortal(c.jsx(Ui,{scope:e.__scopeSelect,children:c.jsx(Qn.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),a):null}return c.jsx(qi,{...e,ref:t})});Gi.displayName=pt;var Re=10,[Ui,at]=It(pt),Sp="SelectContentImpl",Cp=dt("SelectContent.RemoveScroll"),qi=u.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:l,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:p,collisionPadding:g,sticky:b,hideWhenDetached:h,avoidCollisions:v,...x}=e,y=ot(pt,n),[w,S]=u.useState(null),[k,_]=u.useState(null),C=le(t,j=>S(j)),[E,F]=u.useState(null),[Y,R]=u.useState(null),z=Jn(n),[K,H]=u.useState(!1),Z=u.useRef(!1);u.useEffect(()=>{if(w)return Tr(w)},[w]),Cr();const B=u.useCallback(j=>{const[V,...J]=z().map(ie=>ie.ref.current),[ne]=J.slice(-1),se=document.activeElement;for(const ie of j)if(ie===se||(ie==null||ie.scrollIntoView({block:"nearest"}),ie===V&&k&&(k.scrollTop=0),ie===ne&&k&&(k.scrollTop=k.scrollHeight),ie==null||ie.focus(),document.activeElement!==se))return},[z,k]),Q=u.useCallback(()=>B([E,w]),[B,E,w]);u.useEffect(()=>{K&&Q()},[K,Q]);const{onOpenChange:P,triggerPointerDownPosRef:te}=y;u.useEffect(()=>{if(w){let j={x:0,y:0};const V=ne=>{var se,ie;j={x:Math.abs(Math.round(ne.pageX)-(((se=te.current)==null?void 0:se.x)??0)),y:Math.abs(Math.round(ne.pageY)-(((ie=te.current)==null?void 0:ie.y)??0))}},J=ne=>{j.x<=10&&j.y<=10?ne.preventDefault():w.contains(ne.target)||P(!1),document.removeEventListener("pointermove",V),te.current=null};return te.current!==null&&(document.addEventListener("pointermove",V),document.addEventListener("pointerup",J,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",V),document.removeEventListener("pointerup",J,{capture:!0})}}},[w,P,te]),u.useEffect(()=>{const j=()=>P(!1);return window.addEventListener("blur",j),window.addEventListener("resize",j),()=>{window.removeEventListener("blur",j),window.removeEventListener("resize",j)}},[P]);const[T,G]=ul(j=>{const V=z().filter(se=>!se.disabled),J=V.find(se=>se.ref.current===document.activeElement),ne=fl(V,j,J);ne&&setTimeout(()=>ne.ref.current.focus())}),O=u.useCallback((j,V,J)=>{const ne=!Z.current&&!J;(y.value!==void 0&&y.value===V||ne)&&(F(j),ne&&(Z.current=!0))},[y.value]),A=u.useCallback(()=>w==null?void 0:w.focus(),[w]),W=u.useCallback((j,V,J)=>{const ne=!Z.current&&!J;(y.value!==void 0&&y.value===V||ne)&&R(j)},[y.value]),I=r==="popper"?ao:Ki,ee=I===ao?{side:i,sideOffset:l,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:p,collisionPadding:g,sticky:b,hideWhenDetached:h,avoidCollisions:v}:{};return c.jsx(Ui,{scope:n,content:w,viewport:k,onViewportChange:_,itemRefCallback:O,selectedItem:E,onItemLeave:A,itemTextRefCallback:W,focusSelectedItem:Q,selectedItemText:Y,position:r,isPositioned:K,searchRef:T,children:c.jsx(An,{as:Cp,allowPinchZoom:!0,children:c.jsx(Mn,{asChild:!0,trapped:y.open,onMountAutoFocus:j=>{j.preventDefault()},onUnmountAutoFocus:X(o,j=>{var V;(V=y.trigger)==null||V.focus({preventScroll:!0}),j.preventDefault()}),children:c.jsx(qt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:j=>j.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:c.jsx(I,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:j=>j.preventDefault(),...x,...ee,onPlaced:()=>H(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:X(x.onKeyDown,j=>{const V=j.ctrlKey||j.altKey||j.metaKey;if(j.key==="Tab"&&j.preventDefault(),!V&&j.key.length===1&&G(j.key),["ArrowUp","ArrowDown","Home","End"].includes(j.key)){let ne=z().filter(se=>!se.disabled).map(se=>se.ref.current);if(["ArrowUp","End"].includes(j.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(j.key)){const se=j.target,ie=ne.indexOf(se);ne=ne.slice(ie+1)}setTimeout(()=>B(ne)),j.preventDefault()}})})})})})})});qi.displayName=Sp;var Np="SelectItemAlignedPosition",Ki=u.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=ot(pt,n),s=at(pt,n),[i,l]=u.useState(null),[d,f]=u.useState(null),m=le(t,C=>f(C)),p=Jn(n),g=u.useRef(!1),b=u.useRef(!0),{viewport:h,selectedItem:v,selectedItemText:x,focusSelectedItem:y}=s,w=u.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&d&&h&&v&&x){const C=a.trigger.getBoundingClientRect(),E=d.getBoundingClientRect(),F=a.valueNode.getBoundingClientRect(),Y=x.getBoundingClientRect();if(a.dir!=="rtl"){const se=Y.left-E.left,ie=F.left-se,ke=C.left-ie,Oe=C.width+ke,xt=Math.max(Oe,E.width),yt=window.innerWidth-Re,wt=Fi(ie,[Re,Math.max(Re,yt-xt)]);i.style.minWidth=Oe+"px",i.style.left=wt+"px"}else{const se=E.right-Y.right,ie=window.innerWidth-F.right-se,ke=window.innerWidth-C.right-ie,Oe=C.width+ke,xt=Math.max(Oe,E.width),yt=window.innerWidth-Re,wt=Fi(ie,[Re,Math.max(Re,yt-xt)]);i.style.minWidth=Oe+"px",i.style.right=wt+"px"}const R=p(),z=window.innerHeight-Re*2,K=h.scrollHeight,H=window.getComputedStyle(d),Z=parseInt(H.borderTopWidth,10),B=parseInt(H.paddingTop,10),Q=parseInt(H.borderBottomWidth,10),P=parseInt(H.paddingBottom,10),te=Z+B+K+P+Q,T=Math.min(v.offsetHeight*5,te),G=window.getComputedStyle(h),O=parseInt(G.paddingTop,10),A=parseInt(G.paddingBottom,10),W=C.top+C.height/2-Re,I=z-W,ee=v.offsetHeight/2,j=v.offsetTop+ee,V=Z+B+j,J=te-V;if(V<=W){const se=R.length>0&&v===R[R.length-1].ref.current;i.style.bottom="0px";const ie=d.clientHeight-h.offsetTop-h.offsetHeight,ke=Math.max(I,ee+(se?A:0)+ie+Q),Oe=V+ke;i.style.height=Oe+"px"}else{const se=R.length>0&&v===R[0].ref.current;i.style.top="0px";const ke=Math.max(W,Z+h.offsetTop+(se?O:0)+ee)+J;i.style.height=ke+"px",h.scrollTop=V-W+h.offsetTop}i.style.margin=`${Re}px 0`,i.style.minHeight=T+"px",i.style.maxHeight=z+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[p,a.trigger,a.valueNode,i,d,h,v,x,a.dir,r]);be(()=>w(),[w]);const[S,k]=u.useState();be(()=>{d&&k(window.getComputedStyle(d).zIndex)},[d]);const _=u.useCallback(C=>{C&&b.current===!0&&(w(),y==null||y(),b.current=!1)},[w,y]);return c.jsx(_p,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:g,onScrollButtonChange:_,children:c.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:c.jsx(U.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ki.displayName=Np;var Ep="SelectPopperPosition",ao=u.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Re,...a}=e,s=er(n);return c.jsx(Kr,{...s,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ao.displayName=Ep;var[_p,so]=It(pt,{}),io="SelectViewport",Xi=u.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=at(io,n),s=so(io,n),i=le(t,a.onViewportChange),l=u.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),c.jsx(Qn.Slot,{scope:n,children:c.jsx(U.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:X(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:p}=s;if(p!=null&&p.current&&m){const g=Math.abs(l.current-f.scrollTop);if(g>0){const b=window.innerHeight-Re*2,h=parseFloat(m.style.minHeight),v=parseFloat(m.style.height),x=Math.max(h,v);if(x<b){const y=x+g,w=Math.min(b,y),S=y-w;m.style.height=w+"px",m.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,m.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});Xi.displayName=io;var Zi="SelectGroup",[Mp,Op]=It(Zi),Qi=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ye();return c.jsx(Mp,{scope:n,id:o,children:c.jsx(U.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Qi.displayName=Zi;var Ji="SelectLabel",el=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Op(Ji,n);return c.jsx(U.div,{id:o.id,...r,ref:t})});el.displayName=Ji;var tr="SelectItem",[Tp,tl]=It(tr),nl=u.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,i=ot(tr,n),l=at(tr,n),d=i.value===r,[f,m]=u.useState(a??""),[p,g]=u.useState(!1),b=le(t,y=>{var w;return(w=l.itemRefCallback)==null?void 0:w.call(l,y,r,o)}),h=ye(),v=u.useRef("touch"),x=()=>{o||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(Tp,{scope:n,value:r,disabled:o,textId:h,isSelected:d,onItemTextChange:u.useCallback(y=>{m(w=>w||((y==null?void 0:y.textContent)??"").trim())},[]),children:c.jsx(Qn.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:c.jsx(U.div,{role:"option","aria-labelledby":h,"data-highlighted":p?"":void 0,"aria-selected":d&&p,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:b,onFocus:X(s.onFocus,()=>g(!0)),onBlur:X(s.onBlur,()=>g(!1)),onClick:X(s.onClick,()=>{v.current!=="mouse"&&x()}),onPointerUp:X(s.onPointerUp,()=>{v.current==="mouse"&&x()}),onPointerDown:X(s.onPointerDown,y=>{v.current=y.pointerType}),onPointerMove:X(s.onPointerMove,y=>{var w;v.current=y.pointerType,o?(w=l.onItemLeave)==null||w.call(l):v.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:X(s.onPointerLeave,y=>{var w;y.currentTarget===document.activeElement&&((w=l.onItemLeave)==null||w.call(l))}),onKeyDown:X(s.onKeyDown,y=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&y.key===" "||(gp.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})})})})});nl.displayName=tr;var tn="SelectItemText",rl=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=ot(tn,n),i=at(tn,n),l=tl(tn,n),d=yp(tn,n),[f,m]=u.useState(null),p=le(t,x=>m(x),l.onItemTextChange,x=>{var y;return(y=i.itemTextRefCallback)==null?void 0:y.call(i,x,l.value,l.disabled)}),g=f==null?void 0:f.textContent,b=u.useMemo(()=>c.jsx("option",{value:l.value,disabled:l.disabled,children:g},l.value),[l.disabled,l.value,g]),{onNativeOptionAdd:h,onNativeOptionRemove:v}=d;return be(()=>(h(b),()=>v(b)),[h,v,b]),c.jsxs(c.Fragment,{children:[c.jsx(U.span,{id:l.textId,...a,ref:p}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?gn.createPortal(a.children,s.valueNode):null]})});rl.displayName=tn;var ol="SelectItemIndicator",al=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return tl(ol,n).isSelected?c.jsx(U.span,{"aria-hidden":!0,...r,ref:t}):null});al.displayName=ol;var lo="SelectScrollUpButton",sl=u.forwardRef((e,t)=>{const n=at(lo,e.__scopeSelect),r=so(lo,e.__scopeSelect),[o,a]=u.useState(!1),s=le(t,r.onScrollButtonChange);return be(()=>{if(n.viewport&&n.isPositioned){let i=function(){const d=l.scrollTop>0;a(d)};const l=n.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?c.jsx(ll,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=n;i&&l&&(i.scrollTop=i.scrollTop-l.offsetHeight)}}):null});sl.displayName=lo;var co="SelectScrollDownButton",il=u.forwardRef((e,t)=>{const n=at(co,e.__scopeSelect),r=so(co,e.__scopeSelect),[o,a]=u.useState(!1),s=le(t,r.onScrollButtonChange);return be(()=>{if(n.viewport&&n.isPositioned){let i=function(){const d=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<d;a(f)};const l=n.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?c.jsx(ll,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=n;i&&l&&(i.scrollTop=i.scrollTop+l.offsetHeight)}}):null});il.displayName=co;var ll=u.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=at("SelectScrollButton",n),s=u.useRef(null),i=Jn(n),l=u.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return u.useEffect(()=>()=>l(),[l]),be(()=>{var f;const d=i().find(m=>m.ref.current===document.activeElement);(f=d==null?void 0:d.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),c.jsx(U.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:X(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:X(o.onPointerMove,()=>{var d;(d=a.onItemLeave)==null||d.call(a),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:X(o.onPointerLeave,()=>{l()})})}),Pp="SelectSeparator",Dp=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return c.jsx(U.div,{"aria-hidden":!0,...r,ref:t})});Dp.displayName=Pp;var uo="SelectArrow",jp=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=er(n),a=ot(uo,n),s=at(uo,n);return a.open&&s.position==="popper"?c.jsx(Xr,{...o,...r,ref:t}):null});jp.displayName=uo;var Ap="SelectBubbleInput",cl=u.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=u.useRef(null),a=le(r,o),s=xn(t);return u.useEffect(()=>{const i=o.current;if(!i)return;const l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==t&&f){const m=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(m)}},[s,t]),c.jsx(U.select,{...n,style:{...Ei,...n.style},ref:a,defaultValue:t})});cl.displayName=Ap;function dl(e){return e===""||e===void 0}function ul(e){const t=qe(e),n=u.useRef(""),r=u.useRef(0),o=u.useCallback(s=>{const i=n.current+s;t(i),function l(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(i)},[t]),a=u.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function fl(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=Rp(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==n));const l=s.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Rp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ip=Li,Wp=Bi,Fp=Vi,Lp=Yi,$p=Hi,Bp=Gi,zp=Xi,Vp=Qi,Yp=el,Hp=nl,Gp=rl,Up=al,qp=sl,Kp=il;function ml({...e}){return c.jsx(Ip,{"data-slot":"select",...e})}function Xp({...e}){return c.jsx(Vp,{"data-slot":"select-group",...e})}function Zp({...e}){return c.jsx(Fp,{"data-slot":"select-value",...e})}function hl({className:e,size:t="default",children:n,...r}){return c.jsxs(Wp,{"data-slot":"select-trigger","data-size":t,className:N("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,c.jsx(Lp,{asChild:!0,children:c.jsx(Nt,{className:"size-4 opacity-50"})})]})}function pl({className:e,children:t,position:n="popper",...r}){return c.jsx($p,{children:c.jsxs(Bp,{"data-slot":"select-content",className:N("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[c.jsx(Jp,{}),c.jsx(zp,{className:N("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),c.jsx(eg,{})]})})}function Qp({className:e,...t}){return c.jsx(Yp,{"data-slot":"select-label",className:N("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function fo({className:e,children:t,...n}){return c.jsxs(Hp,{"data-slot":"select-item",className:N("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[c.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:c.jsx(Up,{children:c.jsx(Za,{className:"size-4"})})}),c.jsx(Gp,{children:t})]})}function Jp({className:e,...t}){return c.jsx(qp,{"data-slot":"select-scroll-up-button",className:N("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(Vu,{className:"size-4"})})}function eg({className:e,...t}){return c.jsx(Kp,{"data-slot":"select-scroll-down-button",className:N("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(Nt,{className:"size-4"})})}const tg=({label:e="Phone number",helperText:t,errorText:n,size:r="medium",disabled:o,labelClassName:a,country:s,onCountryChange:i,countryOptions:l,showDialCode:d=!0,className:f,onValidityChange:m,includeDialCodeInValue:p=!0,...g})=>{const[b,h]=M.useState(!1),v=s||"US",x=M.useMemo(()=>l.find(R=>R.value===v)??{value:"US",label:"US",dialCode:"+1"},[l,v]),y=R=>{const K=(typeof R=="string"?R:Array.isArray(R)?R.join(""):String(R??"")).replace(/\D/g,"");return K.length===11&&K.startsWith("1")?!0:K.length===10},w=R=>{const z=(x==null?void 0:x.dialCode)??"";if(!z)return R;const K=R.replace(/\D/g,""),H=z.replace(/\D/g,"");return K.startsWith(H)?`+${K}`:`${z}${K}`.replace(/^\+?/,"+")},S=g.value??"";M.useEffect(()=>{if(!m)return;const R=v==="US"?y(S):!0;m(R)},[v,S,m]);const k=c.jsxs(ml,{value:v,onValueChange:i,disabled:!0,children:[c.jsx(hl,{className:N("border-0 bg-transparent px-0 py-0 h-auto shadow-none focus-visible:ring-0 focus-visible:border-0 text-neutral-black-1","min-w-14"),children:c.jsxs("div",{className:"flex items-center gap-2",children:[(x==null?void 0:x.flag)&&c.jsx("span",{className:"flex-shrink-0",children:x.flag}),c.jsx("span",{className:"text-sm text-neutral-black-1",children:(x==null?void 0:x.label)??v})]})}),c.jsx(pl,{className:"bg-white border border-neutral-black-4",children:l.map(R=>c.jsx(fo,{value:R.value,disabled:R.disabled,children:c.jsxs("span",{className:"flex items-center gap-2",children:[R.flag,c.jsx("span",{children:R.label}),d&&c.jsx("span",{className:"text-neutral-black-3 ml-1",children:R.dialCode})]})},R.value))})]}),_=d&&(x!=null&&x.dialCode)?`${x.dialCode} `:"",C=g.value,F=v==="US"&&b&&!!C&&!y(C)?"Enter a valid number":n,Y=p&&typeof C=="string"?w(C):C;return c.jsx(oo,{label:e,helperText:t,errorText:F,size:r,disabled:o,labelClassName:a,startSlot:k,className:f,inputMode:"tel",type:"tel",placeholder:g.placeholder??`${_}(234) 567 8900`,value:Y,onBlur:R=>{var z;h(!0),(z=g.onBlur)==null||z.call(g,R)},onChange:R=>{var z,K;if(b||h(!0),p){const H=w(R.target.value),Z={...R,target:{...R.target,value:H},currentTarget:{...R.currentTarget,value:H}};(z=g.onChange)==null||z.call(g,Z)}else(K=g.onChange)==null||K.call(g,R)},...g})};var nr="Popover",[gl,N0]=Ce(nr,[At]),nn=At(),[ng,st]=gl(nr),bl=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=nn(t),l=u.useRef(null),[d,f]=u.useState(!1),[m,p]=We({prop:r,defaultProp:o??!1,onChange:a,caller:nr});return c.jsx(qr,{...i,children:c.jsx(ng,{scope:t,contentId:ye(),triggerRef:l,open:m,onOpenChange:p,onOpenToggle:u.useCallback(()=>p(g=>!g),[p]),hasCustomAnchor:d,onCustomAnchorAdd:u.useCallback(()=>f(!0),[]),onCustomAnchorRemove:u.useCallback(()=>f(!1),[]),modal:s,children:n})})};bl.displayName=nr;var vl="PopoverAnchor",rg=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=st(vl,n),a=nn(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return u.useEffect(()=>(s(),()=>i()),[s,i]),c.jsx(Kn,{...a,...r,ref:t})});rg.displayName=vl;var xl="PopoverTrigger",yl=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=st(xl,n),a=nn(n),s=le(t,o.triggerRef),i=c.jsx(U.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Nl(o.open),...r,ref:s,onClick:X(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:c.jsx(Kn,{asChild:!0,...a,children:i})});yl.displayName=xl;var mo="PopoverPortal",[og,ag]=gl(mo,{forceMount:void 0}),wl=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=st(mo,t);return c.jsx(og,{scope:t,forceMount:n,children:c.jsx(Pe,{present:n||a.open,children:c.jsx(Kt,{asChild:!0,container:o,children:r})})})};wl.displayName=mo;var Wt="PopoverContent",kl=u.forwardRef((e,t)=>{const n=ag(Wt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=st(Wt,e.__scopePopover);return c.jsx(Pe,{present:r||a.open,children:a.modal?c.jsx(ig,{...o,ref:t}):c.jsx(lg,{...o,ref:t})})});kl.displayName=Wt;var sg=dt("PopoverContent.RemoveScroll"),ig=u.forwardRef((e,t)=>{const n=st(Wt,e.__scopePopover),r=u.useRef(null),o=le(t,r),a=u.useRef(!1);return u.useEffect(()=>{const s=r.current;if(s)return Tr(s)},[]),c.jsx(An,{as:sg,allowPinchZoom:!0,children:c.jsx(Sl,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:X(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:X(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,d=i.button===2||l;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:X(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),lg=u.forwardRef((e,t)=>{const n=st(Wt,e.__scopePopover),r=u.useRef(!1),o=u.useRef(!1);return c.jsx(Sl,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,d;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=n.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Sl=u.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:f,...m}=e,p=st(Wt,n),g=nn(n);return Cr(),c.jsx(Mn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:c.jsx(qt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>p.onOpenChange(!1),children:c.jsx(Kr,{"data-state":Nl(p.open),role:"dialog",id:p.contentId,...g,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Cl="PopoverClose",cg=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=st(Cl,n);return c.jsx(U.button,{type:"button",...r,ref:t,onClick:X(e.onClick,()=>o.onOpenChange(!1))})});cg.displayName=Cl;var dg="PopoverArrow",ug=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=nn(n);return c.jsx(Xr,{...o,...r,ref:t})});ug.displayName=dg;function Nl(e){return e?"open":"closed"}var fg=bl,mg=yl,hg=wl,pg=kl;function El({...e}){return c.jsx(fg,{"data-slot":"popover",...e})}function _l({...e}){return c.jsx(mg,{"data-slot":"popover-trigger",...e})}function ho({className:e,align:t="center",sideOffset:n=4,...r}){return c.jsx(hg,{children:c.jsx(pg,{"data-slot":"popover-content",align:t,sideOffset:n,className:N("bg-white text-black data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...r})})}var Ml=1,gg=.9,bg=.8,vg=.17,po=.1,go=.999,xg=.9999,yg=.99,wg=/[\\\/_+.#"@\[\(\{&]/,kg=/[\\\/_+.#"@\[\(\{&]/g,Sg=/[\s-]/,Ol=/[\s-]/g;function bo(e,t,n,r,o,a,s){if(a===t.length)return o===e.length?Ml:yg;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var l=r.charAt(a),d=n.indexOf(l,o),f=0,m,p,g,b;d>=0;)m=bo(e,t,n,r,d+1,a+1,s),m>f&&(d===o?m*=Ml:wg.test(e.charAt(d-1))?(m*=bg,g=e.slice(o,d-1).match(kg),g&&o>0&&(m*=Math.pow(go,g.length))):Sg.test(e.charAt(d-1))?(m*=gg,b=e.slice(o,d-1).match(Ol),b&&o>0&&(m*=Math.pow(go,b.length))):(m*=vg,o>0&&(m*=Math.pow(go,d-o))),e.charAt(d)!==t.charAt(a)&&(m*=xg)),(m<po&&n.charAt(d-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(d-1)!==r.charAt(a))&&(p=bo(e,t,n,r,d+1,a+2,s),p*po>m&&(m=p*po)),m>f&&(f=m),d=n.indexOf(l,d+1);return s[i]=f,f}function Tl(e){return e.toLowerCase().replace(Ol," ")}function Cg(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,bo(e,t,Tl(e),Tl(t),0,0,{})}var rn='[cmdk-group=""]',vo='[cmdk-group-items=""]',Ng='[cmdk-group-heading=""]',Pl='[cmdk-item=""]',Dl=`${Pl}:not([aria-disabled="true"])`,xo="cmdk-item-select",Ft="data-value",Eg=(e,t,n)=>Cg(e,t,n),jl=u.createContext(void 0),on=()=>u.useContext(jl),Al=u.createContext(void 0),yo=()=>u.useContext(Al),Rl=u.createContext(void 0),Il=u.forwardRef((e,t)=>{let n=Lt(()=>{var O,A;return{search:"",value:(A=(O=e.value)!=null?O:e.defaultValue)!=null?A:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=Lt(()=>new Set),o=Lt(()=>new Map),a=Lt(()=>new Map),s=Lt(()=>new Set),i=Wl(e),{label:l,children:d,value:f,onValueChange:m,filter:p,shouldFilter:g,loop:b,disablePointerSelection:h=!1,vimBindings:v=!0,...x}=e,y=ye(),w=ye(),S=ye(),k=u.useRef(null),_=Wg();gt(()=>{if(f!==void 0){let O=f.trim();n.current.value=O,C.emit()}},[f]),gt(()=>{_(6,K)},[]);let C=u.useMemo(()=>({subscribe:O=>(s.current.add(O),()=>s.current.delete(O)),snapshot:()=>n.current,setState:(O,A,W)=>{var I,ee,j,V;if(!Object.is(n.current[O],A)){if(n.current[O]=A,O==="search")z(),Y(),_(1,R);else if(O==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let J=document.getElementById(S);J?J.focus():(I=document.getElementById(y))==null||I.focus()}if(_(7,()=>{var J;n.current.selectedItemId=(J=H())==null?void 0:J.id,C.emit()}),W||_(5,K),((ee=i.current)==null?void 0:ee.value)!==void 0){let J=A??"";(V=(j=i.current).onValueChange)==null||V.call(j,J);return}}C.emit()}},emit:()=>{s.current.forEach(O=>O())}}),[]),E=u.useMemo(()=>({value:(O,A,W)=>{var I;A!==((I=a.current.get(O))==null?void 0:I.value)&&(a.current.set(O,{value:A,keywords:W}),n.current.filtered.items.set(O,F(A,W)),_(2,()=>{Y(),C.emit()}))},item:(O,A)=>(r.current.add(O),A&&(o.current.has(A)?o.current.get(A).add(O):o.current.set(A,new Set([O]))),_(3,()=>{z(),Y(),n.current.value||R(),C.emit()}),()=>{a.current.delete(O),r.current.delete(O),n.current.filtered.items.delete(O);let W=H();_(4,()=>{z(),(W==null?void 0:W.getAttribute("id"))===O&&R(),C.emit()})}),group:O=>(o.current.has(O)||o.current.set(O,new Set),()=>{a.current.delete(O),o.current.delete(O)}),filter:()=>i.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:y,inputId:S,labelId:w,listInnerRef:k}),[]);function F(O,A){var W,I;let ee=(I=(W=i.current)==null?void 0:W.filter)!=null?I:Eg;return O?ee(O,n.current.search,A):0}function Y(){if(!n.current.search||i.current.shouldFilter===!1)return;let O=n.current.filtered.items,A=[];n.current.filtered.groups.forEach(I=>{let ee=o.current.get(I),j=0;ee.forEach(V=>{let J=O.get(V);j=Math.max(J,j)}),A.push([I,j])});let W=k.current;Z().sort((I,ee)=>{var j,V;let J=I.getAttribute("id"),ne=ee.getAttribute("id");return((j=O.get(ne))!=null?j:0)-((V=O.get(J))!=null?V:0)}).forEach(I=>{let ee=I.closest(vo);ee?ee.appendChild(I.parentElement===ee?I:I.closest(`${vo} > *`)):W.appendChild(I.parentElement===W?I:I.closest(`${vo} > *`))}),A.sort((I,ee)=>ee[1]-I[1]).forEach(I=>{var ee;let j=(ee=k.current)==null?void 0:ee.querySelector(`${rn}[${Ft}="${encodeURIComponent(I[0])}"]`);j==null||j.parentElement.appendChild(j)})}function R(){let O=Z().find(W=>W.getAttribute("aria-disabled")!=="true"),A=O==null?void 0:O.getAttribute(Ft);C.setState("value",A||void 0)}function z(){var O,A,W,I;if(!n.current.search||i.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let ee=0;for(let j of r.current){let V=(A=(O=a.current.get(j))==null?void 0:O.value)!=null?A:"",J=(I=(W=a.current.get(j))==null?void 0:W.keywords)!=null?I:[],ne=F(V,J);n.current.filtered.items.set(j,ne),ne>0&&ee++}for(let[j,V]of o.current)for(let J of V)if(n.current.filtered.items.get(J)>0){n.current.filtered.groups.add(j);break}n.current.filtered.count=ee}function K(){var O,A,W;let I=H();I&&(((O=I.parentElement)==null?void 0:O.firstChild)===I&&((W=(A=I.closest(rn))==null?void 0:A.querySelector(Ng))==null||W.scrollIntoView({block:"nearest"})),I.scrollIntoView({block:"nearest"}))}function H(){var O;return(O=k.current)==null?void 0:O.querySelector(`${Pl}[aria-selected="true"]`)}function Z(){var O;return Array.from(((O=k.current)==null?void 0:O.querySelectorAll(Dl))||[])}function B(O){let A=Z()[O];A&&C.setState("value",A.getAttribute(Ft))}function Q(O){var A;let W=H(),I=Z(),ee=I.findIndex(V=>V===W),j=I[ee+O];(A=i.current)!=null&&A.loop&&(j=ee+O<0?I[I.length-1]:ee+O===I.length?I[0]:I[ee+O]),j&&C.setState("value",j.getAttribute(Ft))}function P(O){let A=H(),W=A==null?void 0:A.closest(rn),I;for(;W&&!I;)W=O>0?Rg(W,rn):Ig(W,rn),I=W==null?void 0:W.querySelector(Dl);I?C.setState("value",I.getAttribute(Ft)):Q(O)}let te=()=>B(Z().length-1),T=O=>{O.preventDefault(),O.metaKey?te():O.altKey?P(1):Q(1)},G=O=>{O.preventDefault(),O.metaKey?B(0):O.altKey?P(-1):Q(-1)};return u.createElement(U.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:O=>{var A;(A=x.onKeyDown)==null||A.call(x,O);let W=O.nativeEvent.isComposing||O.keyCode===229;if(!(O.defaultPrevented||W))switch(O.key){case"n":case"j":{v&&O.ctrlKey&&T(O);break}case"ArrowDown":{T(O);break}case"p":case"k":{v&&O.ctrlKey&&G(O);break}case"ArrowUp":{G(O);break}case"Home":{O.preventDefault(),B(0);break}case"End":{O.preventDefault(),te();break}case"Enter":{O.preventDefault();let I=H();if(I){let ee=new Event(xo);I.dispatchEvent(ee)}}}}},u.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:Lg},l),rr(e,O=>u.createElement(Al.Provider,{value:C},u.createElement(jl.Provider,{value:E},O))))}),_g=u.forwardRef((e,t)=>{var n,r;let o=ye(),a=u.useRef(null),s=u.useContext(Rl),i=on(),l=Wl(e),d=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:s==null?void 0:s.forceMount;gt(()=>{if(!d)return i.item(o,s==null?void 0:s.id)},[d]);let f=Fl(o,a,[e.value,e.children,a],e.keywords),m=yo(),p=it(_=>_.value&&_.value===f.current),g=it(_=>d||i.filter()===!1?!0:_.search?_.filtered.items.get(o)>0:!0);u.useEffect(()=>{let _=a.current;if(!(!_||e.disabled))return _.addEventListener(xo,b),()=>_.removeEventListener(xo,b)},[g,e.onSelect,e.disabled]);function b(){var _,C;h(),(C=(_=l.current).onSelect)==null||C.call(_,f.current)}function h(){m.setState("value",f.current,!0)}if(!g)return null;let{disabled:v,value:x,onSelect:y,forceMount:w,keywords:S,...k}=e;return u.createElement(U.div,{ref:ct(a,t),...k,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!p,"data-disabled":!!v,"data-selected":!!p,onPointerMove:v||i.getDisablePointerSelection()?void 0:h,onClick:v?void 0:b},e.children)}),Mg=u.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,s=ye(),i=u.useRef(null),l=u.useRef(null),d=ye(),f=on(),m=it(g=>o||f.filter()===!1?!0:g.search?g.filtered.groups.has(s):!0);gt(()=>f.group(s),[]),Fl(s,i,[e.value,e.heading,l]);let p=u.useMemo(()=>({id:s,forceMount:o}),[o]);return u.createElement(U.div,{ref:ct(i,t),...a,"cmdk-group":"",role:"presentation",hidden:m?void 0:!0},n&&u.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:d},n),rr(e,g=>u.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?d:void 0},u.createElement(Rl.Provider,{value:p},g))))}),Og=u.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=u.useRef(null),a=it(s=>!s.search);return!n&&!a?null:u.createElement(U.div,{ref:ct(o,t),...r,"cmdk-separator":"",role:"separator"})}),Tg=u.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=yo(),s=it(d=>d.search),i=it(d=>d.selectedItemId),l=on();return u.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),u.createElement(U.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":i,id:l.inputId,type:"text",value:o?e.value:s,onChange:d=>{o||a.setState("search",d.target.value),n==null||n(d.target.value)}})}),Pg=u.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=u.useRef(null),s=u.useRef(null),i=it(d=>d.selectedItemId),l=on();return u.useEffect(()=>{if(s.current&&a.current){let d=s.current,f=a.current,m,p=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let g=d.offsetHeight;f.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return p.observe(d),()=>{cancelAnimationFrame(m),p.unobserve(d)}}},[]),u.createElement(U.div,{ref:ct(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":r,id:l.listId},rr(e,d=>u.createElement("div",{ref:ct(s,l.listInnerRef),"cmdk-list-sizer":""},d)))}),Dg=u.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:s,...i}=e;return u.createElement(Bs,{open:n,onOpenChange:r},u.createElement(zs,{container:s},u.createElement(Vs,{"cmdk-overlay":"",className:o}),u.createElement(Ys,{"aria-label":e.label,"cmdk-dialog":"",className:a},u.createElement(Il,{ref:t,...i}))))}),jg=u.forwardRef((e,t)=>it(n=>n.filtered.count===0)?u.createElement(U.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Ag=u.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return u.createElement(U.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},rr(e,s=>u.createElement("div",{"aria-hidden":!0},s)))}),an=Object.assign(Il,{List:Pg,Item:_g,Input:Tg,Group:Mg,Separator:Og,Dialog:Dg,Empty:jg,Loading:Ag});function Rg(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Ig(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Wl(e){let t=u.useRef(e);return gt(()=>{t.current=e}),t}var gt=typeof window>"u"?u.useEffect:u.useLayoutEffect;function Lt(e){let t=u.useRef();return t.current===void 0&&(t.current=e()),t}function it(e){let t=yo(),n=()=>e(t.snapshot());return u.useSyncExternalStore(t.subscribe,n,n)}function Fl(e,t,n,r=[]){let o=u.useRef(),a=on();return gt(()=>{var s;let i=(()=>{var d;for(let f of n){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(d=f.current.textContent)==null?void 0:d.trim():o.current}})(),l=r.map(d=>d.trim());a.value(e,i,l),(s=t.current)==null||s.setAttribute(Ft,i),o.current=i}),o}var Wg=()=>{let[e,t]=u.useState(),n=Lt(()=>new Map);return gt(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function Fg(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function rr({asChild:e,children:t},n){return e&&u.isValidElement(t)?u.cloneElement(Fg(t),{ref:t.ref},n(t.props.children)):n(t)}var Lg={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function $g({className:e,...t}){return c.jsx(an,{"data-slot":"command",className:N("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function Bg({className:e,...t}){return c.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[c.jsx(Qa,{className:"size-4 shrink-0 opacity-50"}),c.jsx(an.Input,{"data-slot":"command-input",className:N("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function zg({...e}){return c.jsx(an.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Ll({className:e,...t}){return c.jsx(an.Group,{"data-slot":"command-group",className:N("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function $l({className:e,...t}){return c.jsx(an.Item,{"data-slot":"command-item",className:N("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function wo(e){return e.length>0&&e[0].kind==="group"}function Vg(e){return e.multiple?c.jsx(zl,{...e}):c.jsx(Bl,{...e})}const Bl=({options:e,placeholder:t="Select...",disabled:n,error:r,helperText:o,value:a,onChange:s})=>{const[i,l]=M.useState(""),d=a??i,f=m=>{l(m),s==null||s(m)};return c.jsxs("div",{children:[c.jsxs(ml,{value:d,onValueChange:f,disabled:n,children:[c.jsx(hl,{"aria-invalid":!!r,className:N("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",n&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",r?"border-primary-1":"border-neutral-black-4"),children:c.jsx(Zp,{placeholder:t})}),c.jsx(pl,{className:"w-full bg-white border border-neutral-black-4",children:wo(e)?e.map(m=>c.jsxs(Xp,{className:"p-2",children:[c.jsx(Qp,{children:m.label}),m.options.map(p=>c.jsx(fo,{value:p.value,disabled:p.disabled,children:p.label},p.value))]},m.label)):e.map(m=>c.jsx(fo,{value:m.value,disabled:m.disabled,className:"hover:cursor-pointer hover:bg-neutral-black-5",children:m.label},m.value))})]}),r&&c.jsx("p",{className:"mt-1 text-xs text-primary-1",children:r}),o&&c.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},zl=({options:e,placeholder:t="Select...",disabled:n,error:r,helperText:o,value:a,onChange:s})=>{const[i,l]=M.useState(!1),[d,f]=M.useState([]),m=a??d,p=M.useMemo(()=>wo(e)?e.flatMap(b=>b.options):e,[e]),g=b=>{const h=m.includes(b)?m.filter(v=>v!==b):[...m,b];f(h),s==null||s(h)};return c.jsxs("div",{className:"w-94",children:[c.jsxs(El,{open:i,onOpenChange:l,children:[c.jsx(_l,{asChild:!0,children:c.jsxs("button",{type:"button",disabled:n,"aria-haspopup":"listbox","aria-expanded":i,className:N("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",n&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",r?"border-primary-1":"border-neutral-black-4"),children:[c.jsx("div",{className:"flex flex-wrap gap-1",children:m.length>0?m.map(b=>c.jsxs(Ar,{type:"outline",onClick:h=>{h.stopPropagation(),g(b)},className:"cursor-pointer border-neutral-black-4 bg-transparent hover:bg-neutral-black-4",children:[c.jsx("span",{className:"text-neutral-black-1",children:b}),c.jsx("div",{className:"flex items-center justify-center rounded-full border border-neutral-black-2 h-5 w-5 ml-1",children:c.jsx(es,{className:"h-3 w-3 text-neutral-black-1",strokeWidth:2})})]},b)):c.jsx("span",{className:"truncate text-xs text-neutral-black-1",children:t})}),c.jsx(Nt,{className:"h-4 w-4 text-neutral-black-1"})]})}),c.jsx(ho,{className:"p-0 w-full bg-white border border-neutral-black-4",children:c.jsxs($g,{className:"w-full",children:[c.jsx(Bg,{placeholder:"Search..."}),c.jsx(zg,{children:"No results found."}),wo(e)?e.map(b=>c.jsx(Ll,{heading:b.label,children:b.options.map(h=>c.jsxs($l,{value:h.label,onSelect:()=>!h.disabled&&g(h.value),disabled:h.disabled,children:[c.jsx("input",{type:"checkbox",readOnly:!0,checked:m.includes(h.value),className:"mr-2"}),h.label]},h.value))},b.label)):c.jsx(Ll,{children:p.map(b=>c.jsxs($l,{value:b.label,onSelect:()=>!b.disabled&&g(b.value),disabled:b.disabled,children:[c.jsx("input",{type:"checkbox",readOnly:!0,checked:m.includes(b.value),className:"mr-2"}),b.label]},b.value))})]})})]}),r&&c.jsx("p",{className:"mt-1 text-xs text-primary-1",children:r}),o&&c.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},Yg=ge("w-full",{variants:{variant:{"widget-1":"bg-white rounded-lg p-6 flex flex-col items-start gap-4 shadow-[0_0_8px_0_rgba(0,0,0,0.08),6px_0_0_0_var(--color-primary-1)_inset]","widget-2":"bg-white rounded-lg p-6 flex flex-col items-start gap-4 border border-neutral-black-4 shadow-[0_0_8px_0_rgba(0,0,0,0.08)]"}},defaultVariants:{variant:"widget-1"}});function Hg({className:e,variant:t,asChild:n=!1,children:r,...o}){const a=n?Ge:"div";return c.jsx(a,{"data-slot":"card",className:N(Yg({variant:t}),e),...o,children:r})}var ko={exports:{}},So={};/**
|
|
167
182
|
* @license React
|
|
168
183
|
* use-sync-external-store-shim.production.js
|
|
169
184
|
*
|
|
@@ -171,7 +186,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
171
186
|
*
|
|
172
187
|
* This source code is licensed under the MIT license found in the
|
|
173
188
|
* LICENSE file in the root directory of this source tree.
|
|
174
|
-
*/var
|
|
189
|
+
*/var Vl;function Gg(){if(Vl)return So;Vl=1;var e=M;function t(m,p){return m===p&&(m!==0||1/m===1/p)||m!==m&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(m,p){var g=p(),b=r({inst:{value:g,getSnapshot:p}}),h=b[0].inst,v=b[1];return a(function(){h.value=g,h.getSnapshot=p,l(h)&&v({inst:h})},[m,g,p]),o(function(){return l(h)&&v({inst:h}),m(function(){l(h)&&v({inst:h})})},[m]),s(g),g}function l(m){var p=m.getSnapshot;m=m.value;try{var g=p();return!n(m,g)}catch{return!0}}function d(m,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:i;return So.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,So}var Co={};/**
|
|
175
190
|
* @license React
|
|
176
191
|
* use-sync-external-store-shim.development.js
|
|
177
192
|
*
|
|
@@ -179,4 +194,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
179
194
|
*
|
|
180
195
|
* This source code is licensed under the MIT license found in the
|
|
181
196
|
* LICENSE file in the root directory of this source tree.
|
|
182
|
-
*/var $i;function rh(){return $i||($i=1,process.env.NODE_ENV!=="production"&&function(){function e(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}function t(h,v){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=v();if(!p){var b=v();a(m,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}b=s({inst:{value:m,getSnapshot:v}});var x=b[0].inst,w=b[1];return c(function(){x.value=m,x.getSnapshot=v,r(x)&&w({inst:x})},[h,m,v]),i(function(){return r(x)&&w({inst:x}),h(function(){r(x)&&w({inst:x})})},[h]),d(m),m}function r(h){var v=h.getSnapshot;h=h.value;try{var m=v();return!a(h,m)}catch{return!0}}function n(h,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=ae,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,c=o.useLayoutEffect,d=o.useDebugValue,f=!1,p=!1,g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;In.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:g,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),In}process.env.NODE_ENV==="production"?Tn.exports=th():Tn.exports=rh();var nh=Tn.exports;function oh(){return nh.useSyncExternalStore(ah,()=>!0,()=>!1)}function ah(){return()=>{}}var jn="Avatar",[sh,Tg]=de(jn),[ih,Fi]=sh(jn),Vi=l.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,a]=l.useState("idle");return u.jsx(ih,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:u.jsx(V.span,{...n,ref:t})})});Vi.displayName=jn;var Bi="AvatarImage",zi=l.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,s=Fi(Bi,r),i=lh(n,a),c=Ne(d=>{o(d),s.onImageLoadingStatusChange(d)});return ie(()=>{i!=="idle"&&c(i)},[i,c]),i==="loaded"?u.jsx(V.img,{...a,ref:t,src:n}):null});zi.displayName=Bi;var Wi="AvatarFallback",Gi=l.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,a=Fi(Wi,r),[s,i]=l.useState(n===void 0);return l.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>i(!0),n);return()=>window.clearTimeout(c)}},[n]),s&&a.imageLoadingStatus!=="loaded"?u.jsx(V.span,{...o,ref:t}):null});Gi.displayName=Wi;function Hi(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function lh(e,{referrerPolicy:t,crossOrigin:r}){const n=oh(),o=l.useRef(null),a=n?(o.current||(o.current=new window.Image),o.current):null,[s,i]=l.useState(()=>Hi(a,e));return ie(()=>{i(Hi(a,e))},[a,e]),ie(()=>{const c=p=>()=>{i(p)};if(!a)return;const d=c("loaded"),f=c("error");return a.addEventListener("load",d),a.addEventListener("error",f),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",d),a.removeEventListener("error",f)}},[a,r,t]),s}var ch=Vi,Ui=zi,xr=Gi;const uh=le("relative flex items-center justify-center rounded-full bg-[var(--color-neutral-black-4)] text-black font-medium select-none",{variants:{size:{sm:"w-[30px] h-[30px] text-xs",md:"w-[40px] h-[40px] text-sm",lg:"w-[50px] h-[50px] text-lg",xl:"w-[60px] h-[60px] text-xl","2xl":"w-[70px] h-[70px] text-2xl"},progress:{true:"ring-2 ring-offset-4 ring-black",false:""}},defaultVariants:{size:"md",progress:!1}}),dh=le("absolute bottom-0 right-0 rounded-full border-2 border-white",{variants:{status:{Neutral:"bg-transparent",Online:"bg-[var(--color-success-1)]",Busy:"bg-[var(--color-error-1)]",Away:"bg-[var(--color-warning-1)]",Offline:"bg-[var(--color-neutral-black-2)]"},size:{sm:"w-[10px] h-[10px]",md:"w-[12px] h-[12px]",lg:"w-[14px] h-[14px]",xl:"w-[16px] h-[16px]","2xl":"w-[18px] h-[18px]"}},defaultVariants:{status:"Neutral",size:"md"}}),fh=le("absolute bottom-0 right-0 flex items-center justify-center rounded-full border-2 border-white font-medium",{variants:{size:{sm:"w-[14px] h-[14px] text-[10px]",md:"w-[16px] h-[16px] text-[11px]",lg:"w-[18px] h-[18px] text-[12px]",xl:"w-[21px] h-[21px] text-[13px]","2xl":"w-[24px] h-[24px] text-[14px]"},priority:{low:"bg-[var(--color-neutral-black-2)] text-black",mid:"bg-[var(--color-neutral-black-2)] text-black",high:"bg-black text-white"}},defaultVariants:{size:"md",priority:"low"}}),ph=le("absolute bottom-0 right-0 flex items-center justify-center rounded-full bg-[var(--color-neutral-black-2)] border-2 border-white",{variants:{size:{sm:"w-[14px] h-[14px]",md:"w-[16px] h-[16px]",lg:"w-[18px] h-[18px]",xl:"w-[21px] h-[21px]","2xl":"w-[24px] h-[24px]"}},defaultVariants:{size:"md"}});function mh(e){const{type:t,size:r="md",status:n="Neutral",notification:o,CTAIndicator:a=!1,progress:s=!1,className:i,...c}=e;return u.jsxs(ch,{className:j(uh({size:r,progress:s}),i),...c,children:[t==="picture"&&u.jsxs(u.Fragment,{children:[u.jsx(Ui,{src:e.src,alt:"avatar",className:"w-full h-full object-cover rounded-full"}),u.jsx(xr,{children:u.jsx(Ko,{className:"text-black",size:r==="sm"?16:r==="md"?20:r==="lg"?24:r==="xl"?28:32})})]}),t==="initials"&&u.jsx(xr,{className:"uppercase",children:e.initials}),t==="placeholder"&&u.jsx(xr,{children:u.jsx(Ko,{"data-testid":"avatar-placeholder",className:"text-black",size:r==="sm"?16:r==="md"?20:r==="lg"?24:r==="xl"?28:32})}),n!=="Neutral"&&u.jsx("span",{"data-testid":"avatar-status",className:dh({status:n,size:r})}),o&&u.jsx("span",{"data-testid":"avatar-notification",className:fh({size:r,priority:o.priority}),children:o.value}),a&&u.jsx("span",{"data-testid":"avatar-camera-icon",className:ph({size:r}),children:u.jsx(Hc,{"data-testid":"avatar-camera",className:"text-[var(--color-neutral-black-1)]",size:12})})]})}function hh({className:e,...t}){return u.jsx(Ui,{className:j("aspect-square h-full w-full",e),...t})}function gh({className:e,...t}){return u.jsx(xr,{className:j("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t})}var vh="Separator",Ki="horizontal",bh=["horizontal","vertical"],Yi=l.forwardRef((e,t)=>{const{decorative:r,orientation:n=Ki,...o}=e,a=xh(n)?n:Ki,i=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return u.jsx(V.div,{"data-orientation":a,...i,...o,ref:t})});Yi.displayName=vh;function xh(e){return bh.includes(e)}var wh=Yi;function yh({className:e,orientation:t="horizontal",decorative:r=!0,size:n=1,...o}){const a=t==="horizontal"?{1:"h-px",2:"h-0.5",3:"h-[3px]",4:"h-1"}[n]:{1:"w-px",2:"w-0.5",3:"w-[3px]",4:"w-1"}[n];return u.jsx(wh,{"data-slot":"separator",role:"separator",decorative:r,orientation:t,className:j("bg-neutral-black-4 shrink-0",t==="horizontal"?"w-full":"h-full",a,e),...o})}const Sh=le("flex flex-col gap-12"),Ch=le("",{variants:{variant:{filled:"h-3 w-3 rounded-full bg-neutral-black-2",outlined:"h-3 w-3 rounded-full bg-transparent border-2 border-neutral-black-2",icon:"h-12 w-12 rounded-full flex items-center justify-center text-display-xs"},visited:{true:"",false:""}},compoundVariants:[{variant:"icon",visited:!0,class:"bg-primary-1 text-white"},{variant:"icon",visited:!1,class:"bg-neutral-black-5 text-neutral-black-2"}],defaultVariants:{variant:"filled",visited:!0}}),kh=le("flex relative after:border-l-2 after:absolute after:h-full after:-translate-x-1/2",{variants:{hideConnector:{true:"after:hidden",false:"min-h-9"},variant:{filled:"pl-7 after:left-[6px] after:border-l-neutral-black-2",outlined:"pl-7 after:left-[6px] after:border-l-neutral-black-2",icon:"pl-10 after:left-[24px]"},visited:{true:"",false:""}},compoundVariants:[{variant:"icon",visited:!0,class:"after:border-l-primary-1"},{variant:"icon",visited:!1,class:"after:border-l-neutral-black-5"}],defaultVariants:{hideConnector:!1,variant:"filled",visited:!0}}),Eh=(e,t)=>e&&!t;function Rh({items:e,variant:t="filled",className:r}){const n=e.findIndex(a=>a.notVisited===!0),o=e.map((a,s)=>n!==-1&&s>=n?{...a,notVisited:!0}:a);return u.jsx("div",{className:j(Sh(),r),"data-testid":"timeline",children:u.jsx("div",{className:"flex flex-col",children:o.map((a,s)=>{const i=s===o.length-1,c=!!(a.description||a.content),d=Eh(i,c),f=a.notVisited||!1,p=o[s+1],g=(p==null?void 0:p.notVisited)||!1,h=t==="icon"&&g;return u.jsxs("div",{className:"flex flex-col","data-testid":"timeline-item",children:[u.jsxs("div",{className:"flex items-center gap-4 min-h-[35px]",children:[u.jsx("div",{"data-testid":"timeline-dot",className:j(Ch({variant:t,visited:!f})),children:t==="icon"&&a.icon&&u.jsx("div",{className:"flex items-center justify-center w-full h-full",children:a.icon})}),u.jsx("p",{className:j("text-neutral-black-1",f&&"text-neutral-black-4"),children:a.title})]}),u.jsx("div",{"data-testid":"timeline-connector",className:j(kh({hideConnector:d,variant:t,visited:!h})),children:(a.description||a.content)&&u.jsxs("div",{className:"flex flex-col gap-2 py-2",children:[a.description&&u.jsx("p",{className:j("text-neutral-black-1 text-sm",f&&"text-neutral-black-4"),children:a.description}),a.content&&u.jsx("div",{className:"min-h-[35px]",children:a.content})]})})]},a.id)})})})}const _h=({variant:e="icon",width:t,height:r,iconSize:n=40,className:o,...a})=>{const s=()=>{switch(e){case"image":return u.jsx(Jc,{size:n,"data-testid":"placeholder-image"});case"video":return u.jsx(tu,{size:n,"data-testid":"placeholder-video"});case"pieChart":return u.jsx(Uc,{size:n,"data-testid":"placeholder-pieChart"});case"icon":default:return u.jsx(eu,{size:n,"data-testid":"placeholder-smile"})}};return u.jsx("div",{"data-testid":"placeholder-wrapper",className:j("flex flex-col items-center justify-center text-neutral-black-2 gap-2 select-none bg-neutral-black-5 rounded-2xl",o),style:{width:t,height:r},...a,children:s()})},Nh=e=>e===void 0||isNaN(e)?0:Math.min(100,Math.max(0,e)),qi=l.forwardRef(({variant:e="linear",value:t=0,color:r="var(--color-primary-1)",className:n,...o},a)=>{const s=Nh(t);if(e==="circular"){const{size:i=80,thickness:c=8}=o,d=(i-c)/2,f=2*Math.PI*d,p=f-s/100*f;return u.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:j("flex flex-col items-center justify-center",n),...o,children:u.jsxs("svg",{width:i,height:i,className:"rotate-[-90deg]",children:[u.jsx("circle",{cx:i/2,cy:i/2,r:d,stroke:"var(--color-neutral-black-5)",strokeWidth:c,fill:"transparent"}),u.jsx("circle",{cx:i/2,cy:i/2,r:d,stroke:r,strokeWidth:c,fill:"transparent",strokeDasharray:f,strokeDashoffset:p,className:"transition-all duration-700"})]})})}return u.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:j("w-full h-2 bg-[var(--color-neutral-black-5)] overflow-hidden",n),...o,children:u.jsx("div",{className:"h-full transition-all duration-300",style:{width:`${s}%`,backgroundColor:r}})})});qi.displayName="ProgressIndicator";function Ph({className:e,...t}){return u.jsx("div",{"data-slot":"skeleton",className:j("bg-neutral-black-5 animate-pulse rounded-sm",e),...t})}function Th({className:e,title:t="Oops! It looks like you're lost.",description:r="The page you're looking for isn't available. Try to search again or use the go to.",backButtonText:n="Back to home",href:o="/"}){return u.jsx("main",{className:j("flex flex-1 w-full py-16 px-6 md:py-24 md:px-8",e),children:u.jsxs("div",{className:"flex flex-col lg:flex-row gap-16 lg:gap-20 flex-1 max-w-7xl mx-auto",children:[u.jsx("div",{className:"flex-shrink-0 w-full max-w-[484px] h-64 lg:h-96 max-h-[370px] rounded-lg flex items-center justify-center",children:u.jsx("img",{src:"https://iili.io/KTthUtR.png",alt:"Page not found illustration"})}),u.jsxs("div",{className:"flex flex-col flex-1 gap-6 items-start",children:[u.jsxs("h1",{className:"font-bold text-neutral-black-1 text-6xl md:text-8xl lg:text-[129px]/[176px]",children:["40",u.jsx("span",{className:"text-primary-1",children:"4"})]}),u.jsxs("div",{className:"flex flex-col gap-3 max-w-lg",children:[u.jsx("h2",{className:"font-bold text-2xl md:text-3xl text-neutral-black-1",children:t}),u.jsx("p",{className:"text-base md:text-lg text-neutral-black-1 leading-relaxed",children:r})]}),u.jsx("a",{href:o,children:u.jsx(Ot,{variant:"default",size:"sm",className:"cursor-pointer",children:n})})]})]})})}function Ah({...e}){return u.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function Ih({className:e,...t}){return u.jsx("ol",{"data-slot":"breadcrumb-list",className:j("text-muted-foreground flex flex-wrap items-center gap-2 text-sm break-words",e),...t})}function jh({className:e,...t}){return u.jsx("li",{"data-slot":"breadcrumb-item",className:j("inline-flex items-center gap-1.5",e),...t})}function Oh({asChild:e,className:t,...r}){const n=e?At:"a";return u.jsx(n,{"data-slot":"breadcrumb-link",className:j("text-neutral-black-1 hover:text-primary-1 hover:no-underline",t),...r})}function Mh({className:e,...t}){return u.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:j("text-neutral-black-2 cursor-default",e),...t})}function Dh({children:e,className:t,...r}){return u.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:j("[&>svg]:size-3.5 text-neutral-black-3 text-[20px]",t),...r,children:e??u.jsx(Kc,{})})}function Lh({className:e,...t}){return u.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:j("flex size-9 items-center justify-center",e),...t,children:[u.jsx(qc,{className:"size-4"}),u.jsx("span",{className:"sr-only",children:"More"})]})}const $h=le("flex items-center justify-between w-full bg-neutral-black-5 px-4 py-3"),Fh=le("flex items-center gap-3");function Vh({className:e,children:t,...r}){return u.jsx("nav",{className:j($h(),e),...r,children:t})}function Bh({children:e,className:t,isCollapsed:r,onToggleCollapse:n,logo:o,logoAlt:a}){return u.jsxs("div",{className:j(Fh(),t),children:[u.jsx("div",{className:"flex items-center",children:u.jsx("img",{src:o,alt:a,className:r?"hidden":"w-auto max-w-32 pr-10"})}),u.jsx("div",{children:u.jsx(Qc,{className:"h-5 w-5 cursor-pointer",onClick:n})}),e]})}function zh({children:e,className:t}){return u.jsx("div",{className:j("flex items-center gap-2",t),children:e})}var wr="Tabs",[Wh,Ag]=de(wr,[Ft]),Xi=Ft(),[Gh,On]=Wh(wr),Zi=l.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:c="automatic",...d}=e,f=$t(i),[p,g]=we({prop:n,onChange:o,defaultProp:a??"",caller:wr});return u.jsx(Gh,{scope:r,baseId:ce(),value:p,onValueChange:g,orientation:s,dir:f,activationMode:c,children:u.jsx(V.div,{dir:f,"data-orientation":s,...d,ref:t})})});Zi.displayName=wr;var Ji="TabsList",Qi=l.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=On(Ji,r),s=Xi(r);return u.jsx(vo,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:n,children:u.jsx(V.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});Qi.displayName=Ji;var el="TabsTrigger",tl=l.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,s=On(el,r),i=Xi(r),c=ol(s.baseId,n),d=al(s.baseId,n),f=n===s.value;return u.jsx(bo,{asChild:!0,...i,focusable:!o,active:f,children:u.jsx(V.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...a,ref:t,onMouseDown:z(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?s.onValueChange(n):p.preventDefault()}),onKeyDown:z(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&s.onValueChange(n)}),onFocus:z(e.onFocus,()=>{const p=s.activationMode!=="manual";!f&&!o&&p&&s.onValueChange(n)})})})});tl.displayName=el;var rl="TabsContent",nl=l.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...s}=e,i=On(rl,r),c=ol(i.baseId,n),d=al(i.baseId,n),f=n===i.value,p=l.useRef(f);return l.useEffect(()=>{const g=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(g)},[]),u.jsx(he,{present:o||f,children:({present:g})=>u.jsx(V.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":c,hidden:!g,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:g&&a})})});nl.displayName=rl;function ol(e,t){return`${e}-trigger-${t}`}function al(e,t){return`${e}-content-${t}`}var Hh=Zi,Uh=Qi,Kh=tl,Yh=nl;const qh={underline:"data-[state=active]:border-b-primary-1 px-5 py-4 border-b-[1.5px] border-b-neutral-black-3 text-md",badge:"px-3 py-2 rounded-md text-neutral-0 data-[state=active]:bg-white text-sm rounded-[5px]"},Xh=le("flex max-w-fit",{variants:{variant:{none:"",badge:"bg-neutral-black-5 p-[5px] rounded-[5px] h-12"}},defaultVariants:{variant:"none"}}),Zh=le("[&>svg]:text-neutral-black-2 cursor-pointer data-[state=active]:text-primary-1 data-[state=active]:[&>svg]:text-primary-1",{variants:{variant:qh},defaultVariants:{variant:"underline"}});function Jh({className:e,...t}){return u.jsx(Hh,{"data-slot":"tabs",className:j("flex flex-col gap-2",e),...t})}function Qh({className:e,variant:t,...r}){return u.jsx(Uh,{"data-slot":"tabs-list",className:j(Xh({variant:t}),e),...r})}function eg({className:e,variant:t="underline",...r}){return u.jsx(Kh,{"data-slot":"tabs-trigger",className:j(Zh({variant:t}),e),...r})}function tg({className:e,...t}){return u.jsx(Yh,{"data-slot":"tabs-content",className:j("flex-1 outline-none",e),...t})}L.Avatar=mh,L.AvatarFallback=gh,L.AvatarImage=hh,L.Badge=Yr,L.BaseInput=Is,L.Breadcrumb=Ah,L.BreadcrumbEllipsis=Lh,L.BreadcrumbItem=jh,L.BreadcrumbLink=Oh,L.BreadcrumbList=Ih,L.BreadcrumbPage=Mh,L.BreadcrumbSeparator=Dh,L.Button=Ot,L.Card=eh,L.Checkbox=qo,L.Dialog=gd,L.DialogClose=bd,L.DialogContent=xd,L.DialogDescription=Cd,L.DialogFooter=yd,L.DialogHeader=wd,L.DialogOverlay=Ba,L.DialogPortal=Va,L.DialogTitle=Sd,L.DialogTrigger=vd,L.Divider=yh,L.Input=js,L.InputLabel=Os,L.MultiSelect=Di,L.Navigation=Vh,L.NavigationEnd=zh,L.NavigationStart=Bh,L.Page404=Th,L.PasswordInput=vp,L.Placeholder=_h,L.ProgressIndicator=qi,L.RadioGroup=jo,L.RadioGroupItem=Oo,L.SearchInput=bp,L.SelectOption=Jm,L.SingleSelect=Mi,L.Skeleton=Ph,L.Tabs=Jh,L.TabsContent=tg,L.TabsList=Qh,L.TabsTrigger=eg,L.Timeline=Rh,L.Toggle=lc,L.Tooltip=pp,L.TooltipContent=hp,L.TooltipProvider=As,L.TooltipTrigger=mp,L.cn=j,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})});
|
|
197
|
+
*/var Yl;function Ug(){return Yl||(Yl=1,process.env.NODE_ENV!=="production"&&function(){function e(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}function t(g,b){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=b();if(!m){var v=b();a(h,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}v=s({inst:{value:h,getSnapshot:b}});var x=v[0].inst,y=v[1];return l(function(){x.value=h,x.getSnapshot=b,n(x)&&y({inst:x})},[g,h,b]),i(function(){return n(x)&&y({inst:x}),g(function(){n(x)&&y({inst:x})})},[g]),d(h),h}function n(g){var b=g.getSnapshot;g=g.value;try{var h=b();return!a(g,h)}catch{return!0}}function r(g,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=M,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,l=o.useLayoutEffect,d=o.useDebugValue,f=!1,m=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Co.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Co}process.env.NODE_ENV==="production"?ko.exports=Gg():ko.exports=Ug();var qg=ko.exports;function Kg(){return qg.useSyncExternalStore(Xg,()=>!0,()=>!1)}function Xg(){return()=>{}}var No="Avatar",[Zg,E0]=Ce(No),[Qg,Hl]=Zg(No),Gl=u.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=u.useState("idle");return c.jsx(Qg,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:c.jsx(U.span,{...r,ref:t})})});Gl.displayName=No;var Ul="AvatarImage",ql=u.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,s=Hl(Ul,n),i=Jg(r,a),l=qe(d=>{o(d),s.onImageLoadingStatusChange(d)});return be(()=>{i!=="idle"&&l(i)},[i,l]),i==="loaded"?c.jsx(U.img,{...a,ref:t,src:r}):null});ql.displayName=Ul;var Kl="AvatarFallback",Xl=u.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Hl(Kl,n),[s,i]=u.useState(r===void 0);return u.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&a.imageLoadingStatus!=="loaded"?c.jsx(U.span,{...o,ref:t}):null});Xl.displayName=Kl;function Zl(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Jg(e,{referrerPolicy:t,crossOrigin:n}){const r=Kg(),o=u.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[s,i]=u.useState(()=>Zl(a,e));return be(()=>{i(Zl(a,e))},[a,e]),be(()=>{const l=m=>()=>{i(m)};if(!a)return;const d=l("loaded"),f=l("error");return a.addEventListener("load",d),a.addEventListener("error",f),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",d),a.removeEventListener("error",f)}},[a,n,t]),s}var eb=Gl,Ql=ql,or=Xl;const tb=ge("relative flex items-center justify-center rounded-full bg-[var(--color-neutral-black-4)] text-black font-medium select-none",{variants:{size:{sm:"w-[30px] h-[30px] text-xs",md:"w-[40px] h-[40px] text-sm",lg:"w-[50px] h-[50px] text-lg",xl:"w-[60px] h-[60px] text-xl","2xl":"w-[70px] h-[70px] text-2xl"},progress:{true:"ring-2 ring-offset-4 ring-black",false:""}},defaultVariants:{size:"md",progress:!1}}),nb=ge("absolute bottom-0 right-0 rounded-full border-2 border-white",{variants:{status:{Neutral:"bg-transparent",Online:"bg-[var(--color-success-1)]",Busy:"bg-[var(--color-error-1)]",Away:"bg-[var(--color-warning-1)]",Offline:"bg-[var(--color-neutral-black-2)]"},size:{sm:"w-[10px] h-[10px]",md:"w-[12px] h-[12px]",lg:"w-[14px] h-[14px]",xl:"w-[16px] h-[16px]","2xl":"w-[18px] h-[18px]"}},defaultVariants:{status:"Neutral",size:"md"}}),rb=ge("absolute bottom-0 right-0 flex items-center justify-center rounded-full border-2 border-white font-medium",{variants:{size:{sm:"w-[14px] h-[14px] text-[10px]",md:"w-[16px] h-[16px] text-[11px]",lg:"w-[18px] h-[18px] text-[12px]",xl:"w-[21px] h-[21px] text-[13px]","2xl":"w-[24px] h-[24px] text-[14px]"},priority:{low:"bg-[var(--color-neutral-black-2)] text-black",mid:"bg-[var(--color-neutral-black-2)] text-black",high:"bg-black text-white"}},defaultVariants:{size:"md",priority:"low"}}),ob=ge("absolute bottom-0 right-0 flex items-center justify-center rounded-full bg-[var(--color-neutral-black-2)] border-2 border-white",{variants:{size:{sm:"w-[14px] h-[14px]",md:"w-[16px] h-[16px]",lg:"w-[18px] h-[18px]",xl:"w-[21px] h-[21px]","2xl":"w-[24px] h-[24px]"}},defaultVariants:{size:"md"}});function ab(e){const{type:t,size:n="md",status:r="Neutral",notification:o,CTAIndicator:a=!1,progress:s=!1,className:i,...l}=e;return c.jsxs(eb,{className:N(tb({size:n,progress:s}),i),...l,children:[t==="picture"&&c.jsxs(c.Fragment,{children:[c.jsx(Ql,{src:e.src,alt:"avatar",className:"w-full h-full object-cover rounded-full"}),c.jsx(or,{children:c.jsx(Ja,{className:"text-black",size:n==="sm"?16:n==="md"?20:n==="lg"?24:n==="xl"?28:32})})]}),t==="initials"&&c.jsx(or,{className:"uppercase",children:e.initials}),t==="placeholder"&&c.jsx(or,{children:c.jsx(Ja,{"data-testid":"avatar-placeholder",className:"text-black",size:n==="sm"?16:n==="md"?20:n==="lg"?24:n==="xl"?28:32})}),r!=="Neutral"&&c.jsx("span",{"data-testid":"avatar-status",className:nb({status:r,size:n})}),o&&c.jsx("span",{"data-testid":"avatar-notification",className:rb({size:n,priority:o.priority}),children:o.value}),a&&c.jsx("span",{"data-testid":"avatar-camera-icon",className:ob({size:n}),children:c.jsx(Bu,{"data-testid":"avatar-camera",className:"text-[var(--color-neutral-black-1)]",size:12})})]})}function sb({className:e,...t}){return c.jsx(Ql,{className:N("aspect-square h-full w-full",e),...t})}function ib({className:e,...t}){return c.jsx(or,{className:N("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t})}var lb="Separator",Jl="horizontal",cb=["horizontal","vertical"],ec=u.forwardRef((e,t)=>{const{decorative:n,orientation:r=Jl,...o}=e,a=db(r)?r:Jl,i=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return c.jsx(U.div,{"data-orientation":a,...i,...o,ref:t})});ec.displayName=lb;function db(e){return cb.includes(e)}var ub=ec;function tc({className:e,orientation:t="horizontal",decorative:n=!0,size:r=1,...o}){const a=t==="horizontal"?{1:"h-px",2:"h-0.5",3:"h-[3px]",4:"h-1"}[r]:{1:"w-px",2:"w-0.5",3:"w-[3px]",4:"w-1"}[r];return c.jsx(ub,{"data-slot":"separator",role:"separator",decorative:n,orientation:t,className:N("bg-neutral-black-4 shrink-0",t==="horizontal"?"w-full":"h-full",a,e),...o})}const fb=ge("flex flex-col gap-12"),mb=ge("",{variants:{variant:{filled:"h-3 w-3 rounded-full bg-neutral-black-2",outlined:"h-3 w-3 rounded-full bg-transparent border-2 border-neutral-black-2",icon:"h-12 w-12 rounded-full flex items-center justify-center text-display-xs"},visited:{true:"",false:""}},compoundVariants:[{variant:"icon",visited:!0,class:"bg-primary-1 text-white"},{variant:"icon",visited:!1,class:"bg-neutral-black-5 text-neutral-black-2"}],defaultVariants:{variant:"filled",visited:!0}}),hb=ge("flex relative after:border-l-2 after:absolute after:h-full after:-translate-x-1/2",{variants:{hideConnector:{true:"after:hidden",false:"min-h-9"},variant:{filled:"pl-7 after:left-[6px] after:border-l-neutral-black-2",outlined:"pl-7 after:left-[6px] after:border-l-neutral-black-2",icon:"pl-10 after:left-[24px]"},visited:{true:"",false:""}},compoundVariants:[{variant:"icon",visited:!0,class:"after:border-l-primary-1"},{variant:"icon",visited:!1,class:"after:border-l-neutral-black-5"}],defaultVariants:{hideConnector:!1,variant:"filled",visited:!0}}),pb=(e,t)=>e&&!t;function gb({items:e,variant:t="filled",className:n}){const r=e.findIndex(a=>a.notVisited===!0),o=e.map((a,s)=>r!==-1&&s>=r?{...a,notVisited:!0}:a);return c.jsx("div",{className:N(fb(),n),"data-testid":"timeline",children:c.jsx("div",{className:"flex flex-col",children:o.map((a,s)=>{const i=s===o.length-1,l=!!(a.description||a.content),d=pb(i,l),f=a.notVisited||!1,m=o[s+1],p=(m==null?void 0:m.notVisited)||!1,g=t==="icon"&&p;return c.jsxs("div",{className:"flex flex-col","data-testid":"timeline-item",children:[c.jsxs("div",{className:"flex items-center gap-4 min-h-[35px]",children:[c.jsx("div",{"data-testid":"timeline-dot",className:N(mb({variant:t,visited:!f})),children:t==="icon"&&a.icon&&c.jsx("div",{className:"flex items-center justify-center w-full h-full",children:a.icon})}),c.jsx("p",{className:N("text-neutral-black-1",f&&"text-neutral-black-4"),children:a.title})]}),c.jsx("div",{"data-testid":"timeline-connector",className:N(hb({hideConnector:d,variant:t,visited:!g})),children:(a.description||a.content)&&c.jsxs("div",{className:"flex flex-col gap-2 py-2",children:[a.description&&c.jsx("p",{className:N("text-neutral-black-1 text-sm",f&&"text-neutral-black-4"),children:a.description}),a.content&&c.jsx("div",{className:"min-h-[35px]",children:a.content})]})})]},a.id)})})})}const bb=({variant:e="icon",width:t,height:n,iconSize:r=40,className:o,...a})=>{const s=()=>{switch(e){case"image":return c.jsx(qu,{size:r,"data-testid":"placeholder-image"});case"video":return c.jsx(Zu,{size:r,"data-testid":"placeholder-video"});case"pieChart":return c.jsx(zu,{size:r,"data-testid":"placeholder-pieChart"});case"icon":default:return c.jsx(Xu,{size:r,"data-testid":"placeholder-smile"})}};return c.jsx("div",{"data-testid":"placeholder-wrapper",className:N("flex flex-col items-center justify-center text-neutral-black-2 gap-2 select-none bg-neutral-black-5 rounded-2xl",o),style:{width:t,height:n},...a,children:s()})},vb=e=>e===void 0||isNaN(e)?0:Math.min(100,Math.max(0,e)),nc=u.forwardRef(({variant:e="linear",value:t=0,color:n="var(--color-primary-1)",className:r,...o},a)=>{const s=vb(t);if(e==="circular"){const{size:i=80,thickness:l=8}=o,d=(i-l)/2,f=2*Math.PI*d,m=f-s/100*f;return c.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:N("flex flex-col items-center justify-center",r),...o,children:c.jsxs("svg",{width:i,height:i,className:"rotate-[-90deg]",children:[c.jsx("circle",{cx:i/2,cy:i/2,r:d,stroke:"var(--color-neutral-black-5)",strokeWidth:l,fill:"transparent"}),c.jsx("circle",{cx:i/2,cy:i/2,r:d,stroke:n,strokeWidth:l,fill:"transparent",strokeDasharray:f,strokeDashoffset:m,className:"transition-all duration-700"})]})})}return c.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:N("w-full h-2 bg-[var(--color-neutral-black-5)] overflow-hidden",r),...o,children:c.jsx("div",{className:"h-full transition-all duration-300",style:{width:`${s}%`,backgroundColor:n}})})});nc.displayName="ProgressIndicator";function Eo({className:e,...t}){return c.jsx("div",{"data-slot":"skeleton",className:N("bg-neutral-black-5 animate-pulse rounded-sm",e),...t})}function xb({className:e,title:t="Oops! It looks like you're lost.",description:n="The page you're looking for isn't available. Try to search again or use the go to.",backButtonText:r="Back to home",href:o="/"}){return c.jsx("main",{className:N("flex flex-1 w-full py-16 px-6 md:py-24 md:px-8",e),children:c.jsxs("div",{className:"flex flex-col lg:flex-row gap-16 lg:gap-20 flex-1 max-w-7xl mx-auto",children:[c.jsx("div",{className:"flex-shrink-0 w-full max-w-[484px] h-64 lg:h-96 max-h-[370px] rounded-lg flex items-center justify-center",children:c.jsx("img",{src:"https://iili.io/KTthUtR.png",alt:"Page not found illustration"})}),c.jsxs("div",{className:"flex flex-col flex-1 gap-6 items-start",children:[c.jsxs("h1",{className:"font-bold text-neutral-black-1 text-6xl md:text-8xl lg:text-[129px]/[176px]",children:["40",c.jsx("span",{className:"text-primary-1",children:"4"})]}),c.jsxs("div",{className:"flex flex-col gap-3 max-w-lg",children:[c.jsx("h2",{className:"font-bold text-2xl md:text-3xl text-neutral-black-1",children:t}),c.jsx("p",{className:"text-base md:text-lg text-neutral-black-1 leading-relaxed",children:n})]}),c.jsx("a",{href:o,children:c.jsx(Se,{variant:"default",size:"sm",className:"cursor-pointer",children:r})})]})]})})}function yb({...e}){return c.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function wb({className:e,...t}){return c.jsx("ol",{"data-slot":"breadcrumb-list",className:N("text-muted-foreground flex flex-wrap items-center gap-2 text-sm break-words",e),...t})}function kb({className:e,...t}){return c.jsx("li",{"data-slot":"breadcrumb-item",className:N("inline-flex items-center gap-1.5",e),...t})}function Sb({asChild:e,className:t,...n}){const r=e?Ge:"a";return c.jsx(r,{"data-slot":"breadcrumb-link",className:N("text-neutral-black-1 hover:text-primary-1 hover:no-underline",t),...n})}function Cb({className:e,...t}){return c.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:N("text-neutral-black-2 cursor-default",e),...t})}function Nb({children:e,className:t,...n}){return c.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:N("[&>svg]:size-3.5 text-neutral-black-3 text-[20px]",t),...n,children:e??c.jsx(_n,{})})}function Eb({className:e,...t}){return c.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:N("flex size-9 items-center justify-center",e),...t,children:[c.jsx(Hu,{className:"size-4"}),c.jsx("span",{className:"sr-only",children:"More"})]})}const _b=ge("flex items-center justify-between w-full bg-neutral-black-5 px-4 py-3"),Mb=ge("flex items-center gap-3");function Ob({className:e,children:t,...n}){return c.jsx("nav",{className:N(_b(),e),...n,children:t})}function Tb({children:e,className:t,isCollapsed:n,onToggleCollapse:r,logo:o,logoAlt:a}){return c.jsxs("div",{className:N(Mb(),t),children:[c.jsx("div",{className:"flex items-center",children:c.jsx("img",{src:o,alt:a,className:n?"hidden":"w-auto max-w-32 pr-10"})}),c.jsx("div",{children:c.jsx(Ku,{className:"h-5 w-5 cursor-pointer",onClick:r})}),e]})}function Pb({children:e,className:t}){return c.jsx("div",{className:N("flex items-center gap-2",t),children:e})}var ar="Tabs",[Db,_0]=Ce(ar,[Sn]),rc=Sn(),[jb,_o]=Db(ar),oc=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:l="automatic",...d}=e,f=kn(i),[m,p]=We({prop:r,onChange:o,defaultProp:a??"",caller:ar});return c.jsx(jb,{scope:n,baseId:ye(),value:m,onValueChange:p,orientation:s,dir:f,activationMode:l,children:c.jsx(U.div,{dir:f,"data-orientation":s,...d,ref:t})})});oc.displayName=ar;var ac="TabsList",sc=u.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=_o(ac,n),s=rc(n);return c.jsx(Sa,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:r,children:c.jsx(U.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});sc.displayName=ac;var ic="TabsTrigger",lc=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,s=_o(ic,n),i=rc(n),l=uc(s.baseId,r),d=fc(s.baseId,r),f=r===s.value;return c.jsx(Ca,{asChild:!0,...i,focusable:!o,active:f,children:c.jsx(U.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...a,ref:t,onMouseDown:X(e.onMouseDown,m=>{!o&&m.button===0&&m.ctrlKey===!1?s.onValueChange(r):m.preventDefault()}),onKeyDown:X(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&s.onValueChange(r)}),onFocus:X(e.onFocus,()=>{const m=s.activationMode!=="manual";!f&&!o&&m&&s.onValueChange(r)})})})});lc.displayName=ic;var cc="TabsContent",dc=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...s}=e,i=_o(cc,n),l=uc(i.baseId,r),d=fc(i.baseId,r),f=r===i.value,m=u.useRef(f);return u.useEffect(()=>{const p=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(p)},[]),c.jsx(Pe,{present:o||f,children:({present:p})=>c.jsx(U.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!p,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:p&&a})})});dc.displayName=cc;function uc(e,t){return`${e}-trigger-${t}`}function fc(e,t){return`${e}-content-${t}`}var Ab=oc,Rb=sc,Ib=lc,Wb=dc;const Fb={underline:"data-[state=active]:border-b-primary-1 px-5 py-4 border-b-[1.5px] border-b-neutral-black-3 text-md",badge:"px-3 py-2 rounded-md text-neutral-0 data-[state=active]:bg-white text-sm rounded-[5px]"},Lb=ge("flex max-w-fit",{variants:{variant:{none:"",badge:"bg-neutral-black-5 p-[5px] rounded-[5px] h-12"}},defaultVariants:{variant:"none"}}),$b=ge("[&>svg]:text-neutral-black-2 cursor-pointer data-[state=active]:text-primary-1 data-[state=active]:[&>svg]:text-primary-1",{variants:{variant:Fb},defaultVariants:{variant:"underline"}});function Bb({className:e,...t}){return c.jsx(Ab,{"data-slot":"tabs",className:N("flex flex-col gap-2",e),...t})}function zb({className:e,variant:t,...n}){return c.jsx(Rb,{"data-slot":"tabs-list",className:N(Lb({variant:t}),e),...n})}function Vb({className:e,variant:t="underline",...n}){return c.jsx(Ib,{"data-slot":"tabs-trigger",className:N($b({variant:t}),e),...n})}function Yb({className:e,...t}){return c.jsx(Wb,{"data-slot":"tabs-content",className:N("flex-1 outline-none",e),...t})}const Hb="sidebar_state",Gb=60*60*24*7,Ub="20rem",qb="4.5rem",Kb="b",mc=u.createContext(null);function sn(){const e=u.useContext(mc);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Xb=({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...s})=>{const[l,d]=u.useState(!1),[f,m]=u.useState(e),p=t??f,g=u.useCallback(x=>{const y=typeof x=="function"?x(p):x;n?n(y):m(y),document.cookie=`${Hb}=${y}; path=/; max-age=${Gb}`},[n,p]),b=u.useCallback(()=>g(x=>!x),[!1,g,d]);u.useEffect(()=>{const x=y=>{y.key===Kb&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),b())};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[b]);const h=p?"expanded":"collapsed",v=u.useMemo(()=>({state:h,open:p,setOpen:g,isMobile:!1,openMobile:l,setOpenMobile:d,toggleSidebar:b}),[h,p,g,!1,l,d,b]);return c.jsx(mc.Provider,{value:v,children:c.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":Ub,"--sidebar-width-icon":qb,...o},className:N("group/sidebar-wrapper has-data-[variant=inset]:bg-brand-50 flex min-h-svh w-full",r),...s,children:a})})},Zb=({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a})=>{const{state:s}=sn();return n==="none"?c.jsx("div",{"data-slot":"sidebar",className:N("bg-brand-50 text-brand-950 flex h-full w-(--sidebar-width) flex-col",r),...a,children:o}):c.jsxs("div",{className:"text-brand-950 group peer hidden md:block","data-state":s,"data-collapsible":s==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[c.jsx("div",{"data-slot":"sidebar-gap",className:N("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),c.jsx("div",{"data-slot":"sidebar-container",className:N("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l border-neutral-black-5",r),...a,children:c.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-tag-light-gray group-data-[variant=floating]:border-neutral-black-5 flex h-full w-full flex-col p-4 group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-xs",children:o})})]})},Qb=({className:e,onClick:t,...n})=>{const{toggleSidebar:r}=sn();return c.jsxs(Se,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"outline",size:"icon",className:N("size-8",e),onClick:o=>{t==null||t(o),r()},...n,children:[c.jsx(Yu,{className:"text-brand-950 size-6"}),c.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})},Jb=({className:e,...t})=>{const{toggleSidebar:n}=sn();return c.jsx("button",{type:"button","data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:N("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:hover:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})},ev=({className:e,...t})=>c.jsx("main",{"data-slot":"sidebar-inset",className:N("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-xs md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2",e),...t}),tv=({className:e,...t})=>c.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:N("flex flex-col gap-2",e),...t}),nv=({className:e,...t})=>c.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:N("flex flex-col text-sm gap-2 text-neutral-black-1",e),...t}),rv=({className:e,...t})=>c.jsx(tc,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:N("bg-sidebar-border mx-2 w-auto",e),...t}),ov=({className:e,...t})=>c.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:N("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}),av=({className:e,...t})=>c.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:N("relative flex w-full min-w-0 flex-col",e),...t}),sv=({className:e,asChild:t=!1,...n})=>{const r=t?Ge:"div";return c.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:N("text-brand-950/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})},iv=({className:e,asChild:t=!1,...n})=>{const r=t?Ge:"button";return c.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:N("text-brand-950 ring-sidebar-ring hover:bg-sidebar-accent hover:text-secondary-50 absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})},lv=({className:e,...t})=>c.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:N("w-full text-sm",e),...t}),cv=({className:e,...t})=>c.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:N("flex group-data-[collapsible=icon]:items-center w-full min-w-0 flex-col gap-2",e),...t}),dv=({className:e,...t})=>c.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:N("group/menu-item relative justify-center",e),...t}),uv=ge("peer/menu-button flex w-full items-center gap-2 text-neutral-black-1 overflow-hidden rounded-lg py-2.5 px-3 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding,color] duration-300 hover:bg-brand-700 hover:text-secondary-50 focus-visible:ring-2 active:bg-brand-700 active:text-secondary-50 disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-error-2 data-[active=true]:font-semibold data-[active=true]:text-primary-1 data-[state=open]:hover:bg-error-2 data-[state=open]:hover:text-primary-1 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 cursor-pointer",{variants:{variant:{default:"hover:bg-error-2 hover:text-primary-1",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-secondary-50 hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}}),fv=({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...s})=>{const i=e?Ge:"button",{isMobile:l,state:d}=sn(),f=c.jsx(i,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:N(uv({variant:n,size:r}),a),...s});return o?(typeof o=="string"&&(o={children:o}),c.jsxs(Jr,{children:[c.jsx(to,{asChild:!0,children:f}),c.jsx(ro,{side:"right",align:"center",hidden:d!=="collapsed"||l,...o})]})):f},mv=({className:e,asChild:t=!1,showOnHover:n=!1,...r})=>{const o=t?Ge:"button";return c.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:N("text-brand-950 ring-sidebar-ring hover:bg-sidebar-accent hover:text-secondary-50 peer-hover/menu-button:text-secondary-50 absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"peer-data-[active=true]/menu-button:text-secondary-50 group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...r})},hv=({className:e,...t})=>c.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:N("text-brand-950 pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-secondary-50 peer-data-[active=true]/menu-button:text-secondary-50","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}),pv=({className:e,showIcon:t=!1,...n})=>{const r=u.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return c.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:N("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&c.jsx(Eo,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),c.jsx(Eo,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})},gv=({className:e,...t})=>c.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:N("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}),bv=({className:e,...t})=>c.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:N("group/menu-sub-item relative",e),...t}),vv=({asChild:e=!1,size:t="md",isActive:n=!1,className:r,...o})=>{const a=e?Ge:"a";return c.jsx(a,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:N("text-brand-950 ring-sidebar-ring hover:bg-brand-700 hover:text-secondary-50 active:bg-brand-700 active:text-secondary-50 [&>svg]:text-secondary-50 flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-brand-700 data-[active=true]:text-secondary-50",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})};function hc({children:e}){return c.jsx("div",{className:"flex flex-col w-[440px] rounded-lg overflow-hidden border border-neutral-black-5 shadow-[0_1px_2px_0_rgba(0,0,0,0.30),_0_1px_3px_1px_rgba(0,0,0,0.15)]",children:e})}function xv({children:e}){return c.jsx("div",{className:"flex justify-between bg-neutral-black-5 text-neutral-black-1 py-3 px-4",children:c.jsx("h2",{className:"text-md font-medium text-neutral-black-1",children:e})})}function yv({children:e,className:t}){return c.jsx("div",{className:N("flex flex-col ",t),children:e})}function wv({children:e,iconClassName:t,heading:n,description:r,timestamp:o,className:a,read:s=!1}){return c.jsxs("div",{className:N("flex gap-3 w-full p-4 border-b border-neutral-black-4",a),children:[c.jsx("div",{className:N("flex rounded-full size-8 min-w-8 bg-white items-center justify-center",{"bg-neutral-black-5":s}),children:c.jsx($u,{className:N("size-3 fill-neutral-black-2 text-transparent",t)})}),c.jsxs("div",{className:"flex flex-col gap-3 w-full",children:[c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("h3",{className:"text-sm font-semibold text-neutral-black-1",children:n}),c.jsx("p",{className:N("text-sm text-neutral-black-1",{"text-neutral-black-2":s}),children:r})]}),e,c.jsx("p",{className:"text-xs text-neutral-black-2",children:o})]}),!s&&c.jsx("div",{className:"size-1.5 bg-neutral-black-1 rounded-full mt-2"})]})}const kv={Root:hc,Header:xv,Body:yv,Card:wv};function Sv(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const Mo={},ln={};function bt(e,t){try{const r=(Mo[e]||(Mo[e]=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format))(t).split("GMT")[1];return r in ln?ln[r]:pc(r,r.split(":"))}catch{if(e in ln)return ln[e];const n=e==null?void 0:e.match(Cv);return n?pc(e,n.slice(1)):NaN}}const Cv=/([+-]\d\d):?(\d\d)?/;function pc(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return ln[e]=n*60+r>0?n*60+r+o:n*60-r-o}class Ve extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(bt(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),bc(this),Oo(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new Ve(...n,t):new Ve(Date.now(),t)}withTimeZone(t){return new Ve(+this,t)}getTimezoneOffset(){const t=-bt(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Oo(this),+this}[Symbol.for("constructDateFrom")](t){return new Ve(+new Date(t),this.timeZone)}}const gc=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!gc.test(e))return;const t=e.replace(gc,"$1UTC");Ve.prototype[t]&&(e.startsWith("get")?Ve.prototype[e]=function(){return this.internal[t]()}:(Ve.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Nv(this),+this},Ve.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Oo(this),+this}))});function Oo(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-bt(e.timeZone,e)*60))}function Nv(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),bc(e)}function bc(e){const t=bt(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),a=-new Date(+r).getTimezoneOffset(),s=o-a,i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();s&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+s);const l=o-n;l&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const d=new Date(+e);d.setUTCSeconds(0);const f=o>0?d.getSeconds():(d.getSeconds()-60)%60,m=Math.round(-(bt(e.timeZone,e)*60))%60;(m||f)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+m),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+m+f));const p=bt(e.timeZone,e),g=p>0?Math.floor(p):Math.ceil(p),h=-new Date(+e).getTimezoneOffset()-g,v=g!==n,x=h-l;if(v&&x){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+x);const y=bt(e.timeZone,e),w=y>0?Math.floor(y):Math.ceil(y),S=g-w;S&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+S),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+S))}}class we extends Ve{static tz(t,...n){return n.length?new we(...n,t):new we(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${Sv(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new we(+this,t)}[Symbol.for("constructDateFrom")](t){return new we(+new Date(t),this.timeZone)}}const vc=6048e5,Ev=864e5,xc=Symbol.for("constructDateFrom");function xe(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&xc in e?e[xc](t):e instanceof Date?new e.constructor(t):new Date(t)}function ue(e,t){return xe(t||e,e)}function yc(e,t,n){const r=ue(e,n==null?void 0:n.in);return isNaN(t)?xe(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function wc(e,t,n){const r=ue(e,n==null?void 0:n.in);if(isNaN(t))return xe(e,NaN);if(!t)return r;const o=r.getDate(),a=xe(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const s=a.getDate();return o>=s?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}let _v={};function cn(){return _v}function $t(e,t){var i,l,d,f;const n=cn(),r=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,o=ue(e,t==null?void 0:t.in),a=o.getDay(),s=(a<r?7:0)+a-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function dn(e,t){return $t(e,{...t,weekStartsOn:1})}function kc(e,t){const n=ue(e,t==null?void 0:t.in),r=n.getFullYear(),o=xe(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=dn(o),s=xe(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const i=dn(s);return n.getTime()>=a.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function Sc(e){const t=ue(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Bt(e,...t){const n=xe.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function un(e,t){const n=ue(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Cc(e,t,n){const[r,o]=Bt(n==null?void 0:n.in,e,t),a=un(r),s=un(o),i=+a-Sc(a),l=+s-Sc(s);return Math.round((i-l)/Ev)}function Mv(e,t){const n=kc(e,t),r=xe(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),dn(r)}function Ov(e,t,n){return yc(e,t*7,n)}function Tv(e,t,n){return wc(e,t*12,n)}function Pv(e,t){let n,r=t==null?void 0:t.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=xe.bind(null,o));const a=ue(o,r);(!n||n<a||isNaN(+a))&&(n=a)}),xe(r,n||NaN)}function Dv(e,t){let n,r=t==null?void 0:t.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=xe.bind(null,o));const a=ue(o,r);(!n||n>a||isNaN(+a))&&(n=a)}),xe(r,n||NaN)}function jv(e,t,n){const[r,o]=Bt(n==null?void 0:n.in,e,t);return+un(r)==+un(o)}function Nc(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Av(e){return!(!Nc(e)&&typeof e!="number"||isNaN(+ue(e)))}function Rv(e,t,n){const[r,o]=Bt(n==null?void 0:n.in,e,t),a=r.getFullYear()-o.getFullYear(),s=r.getMonth()-o.getMonth();return a*12+s}function Iv(e,t){const n=ue(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Wv(e,t){const[n,r]=Bt(e,t.start,t.end);return{start:n,end:r}}function Fv(e,t){const{start:n,end:r}=Wv(t==null?void 0:t.in,e);let o=+n>+r;const a=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0),s.setDate(1);let i=1;const l=[];for(;+s<=a;)l.push(xe(n,s)),s.setMonth(s.getMonth()+i);return o?l.reverse():l}function Lv(e,t){const n=ue(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function $v(e,t){const n=ue(e,t==null?void 0:t.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Ec(e,t){const n=ue(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function _c(e,t){var i,l,d,f;const n=cn(),r=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,o=ue(e,t==null?void 0:t.in),a=o.getDay(),s=(a<r?-7:0)+6-(a-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function Bv(e,t){return _c(e,{...t,weekStartsOn:1})}const zv={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Vv=(e,t,n)=>{let r;const o=zv[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function To(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Yv={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Hv={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Gv={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Uv={date:To({formats:Yv,defaultWidth:"full"}),time:To({formats:Hv,defaultWidth:"full"}),dateTime:To({formats:Gv,defaultWidth:"full"})},qv={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Kv=(e,t,n,r)=>qv[e];function fn(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,i=n!=null&&n.width?String(n.width):s;o=e.formattingValues[i]||e.formattingValues[s]}else{const s=e.defaultWidth,i=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[i]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const Xv={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Zv={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Qv={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Jv={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ex={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},tx={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},nx={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:fn({values:Xv,defaultWidth:"wide"}),quarter:fn({values:Zv,defaultWidth:"wide",argumentCallback:e=>e-1}),month:fn({values:Qv,defaultWidth:"wide"}),day:fn({values:Jv,defaultWidth:"wide"}),dayPeriod:fn({values:ex,defaultWidth:"wide",formattingValues:tx,defaultFormattingWidth:"wide"})};function mn(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const s=a[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?ox(i,m=>m.test(s)):rx(i,m=>m.test(s));let d;d=e.valueCallback?e.valueCallback(l):l,d=n.valueCallback?n.valueCallback(d):d;const f=t.slice(s.length);return{value:d,rest:f}}}function rx(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function ox(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function ax(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const i=t.slice(o.length);return{value:s,rest:i}}}const sx=/^(\d+)(th|st|nd|rd)?/i,ix=/\d+/i,lx={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},cx={any:[/^b/i,/^(a|c)/i]},dx={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ux={any:[/1/i,/2/i,/3/i,/4/i]},fx={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},mx={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},hx={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},px={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},gx={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bx={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},vx={ordinalNumber:ax({matchPattern:sx,parsePattern:ix,valueCallback:e=>parseInt(e,10)}),era:mn({matchPatterns:lx,defaultMatchWidth:"wide",parsePatterns:cx,defaultParseWidth:"any"}),quarter:mn({matchPatterns:dx,defaultMatchWidth:"wide",parsePatterns:ux,defaultParseWidth:"any",valueCallback:e=>e+1}),month:mn({matchPatterns:fx,defaultMatchWidth:"wide",parsePatterns:mx,defaultParseWidth:"any"}),day:mn({matchPatterns:hx,defaultMatchWidth:"wide",parsePatterns:px,defaultParseWidth:"any"}),dayPeriod:mn({matchPatterns:gx,defaultMatchWidth:"any",parsePatterns:bx,defaultParseWidth:"any"})},Po={code:"en-US",formatDistance:Vv,formatLong:Uv,formatRelative:Kv,localize:nx,match:vx,options:{weekStartsOn:0,firstWeekContainsDate:1}};function xx(e,t){const n=ue(e,t==null?void 0:t.in);return Cc(n,Ec(n))+1}function Mc(e,t){const n=ue(e,t==null?void 0:t.in),r=+dn(n)-+Mv(n);return Math.round(r/vc)+1}function Oc(e,t){var f,m,p,g;const n=ue(e,t==null?void 0:t.in),r=n.getFullYear(),o=cn(),a=(t==null?void 0:t.firstWeekContainsDate)??((m=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??o.firstWeekContainsDate??((g=(p=o.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??1,s=xe((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const i=$t(s,t),l=xe((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const d=$t(l,t);return+n>=+i?r+1:+n>=+d?r:r-1}function yx(e,t){var i,l,d,f;const n=cn(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1,o=Oc(e,t),a=xe((t==null?void 0:t.in)||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),$t(a,t)}function Tc(e,t){const n=ue(e,t==null?void 0:t.in),r=+$t(n,t)-+yx(n,t);return Math.round(r/vc)+1}function de(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const lt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return de(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):de(n+1,2)},d(e,t){return de(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return de(e.getHours()%12||12,t.length)},H(e,t){return de(e.getHours(),t.length)},m(e,t){return de(e.getMinutes(),t.length)},s(e,t){return de(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return de(o,t.length)}},zt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Pc={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return lt.y(e,t)},Y:function(e,t,n,r){const o=Oc(e,r),a=o>0?o:1-o;if(t==="YY"){const s=a%100;return de(s,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):de(a,t.length)},R:function(e,t){const n=kc(e);return de(n,t.length)},u:function(e,t){const n=e.getFullYear();return de(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return de(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return de(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return lt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return de(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Tc(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):de(o,t.length)},I:function(e,t,n){const r=Mc(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):de(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):lt.d(e,t)},D:function(e,t,n){const r=xx(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):de(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return de(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return de(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return de(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=zt.noon:r===0?o=zt.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=zt.evening:r>=12?o=zt.afternoon:r>=4?o=zt.morning:o=zt.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return lt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):lt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):de(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):de(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):lt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):lt.s(e,t)},S:function(e,t){return lt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return jc(r);case"XXXX":case"XX":return vt(r);case"XXXXX":case"XXX":default:return vt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return jc(r);case"xxxx":case"xx":return vt(r);case"xxxxx":case"xxx":default:return vt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Dc(r,":");case"OOOO":default:return"GMT"+vt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Dc(r,":");case"zzzz":default:return"GMT"+vt(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return de(r,t.length)},T:function(e,t,n){return de(+e,t.length)}};function Dc(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+de(a,2)}function jc(e,t){return e%60===0?(e>0?"-":"+")+de(Math.abs(e)/60,2):vt(e,t)}function vt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=de(Math.trunc(r/60),2),a=de(r%60,2);return n+o+t+a}const Ac=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Rc=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},wx={p:Rc,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Ac(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Ac(r,t)).replace("{{time}}",Rc(o,t))}},kx=/^D+$/,Sx=/^Y+$/,Cx=["D","DD","YY","YYYY"];function Nx(e){return kx.test(e)}function Ex(e){return Sx.test(e)}function _x(e,t,n){const r=Mx(e,t,n);if(console.warn(r),Cx.includes(e))throw new RangeError(r)}function Mx(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Ox=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Tx=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Px=/^'([^]*?)'?$/,Dx=/''/g,jx=/[a-zA-Z]/;function Ax(e,t,n){var f,m,p,g,b,h,v,x;const r=cn(),o=(n==null?void 0:n.locale)??r.locale??Po,a=(n==null?void 0:n.firstWeekContainsDate)??((m=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(p=r.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((h=(b=n==null?void 0:n.locale)==null?void 0:b.options)==null?void 0:h.weekStartsOn)??r.weekStartsOn??((x=(v=r.locale)==null?void 0:v.options)==null?void 0:x.weekStartsOn)??0,i=ue(e,n==null?void 0:n.in);if(!Av(i))throw new RangeError("Invalid time value");let l=t.match(Tx).map(y=>{const w=y[0];if(w==="p"||w==="P"){const S=wx[w];return S(y,o.formatLong)}return y}).join("").match(Ox).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const w=y[0];if(w==="'")return{isToken:!1,value:Rx(y)};if(Pc[w])return{isToken:!0,value:y};if(w.match(jx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:y}});o.localize.preprocessor&&(l=o.localize.preprocessor(i,l));const d={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return l.map(y=>{if(!y.isToken)return y.value;const w=y.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Ex(w)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Nx(w))&&_x(w,t,String(e));const S=Pc[w[0]];return S(i,w,o.localize,d)}).join("")}function Rx(e){const t=e.match(Px);return t?t[1].replace(Dx,"'"):e}function Ix(e,t){const n=ue(e,t==null?void 0:t.in),r=n.getFullYear(),o=n.getMonth(),a=xe(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function Wx(e,t){return ue(e,t==null?void 0:t.in).getMonth()}function Fx(e,t){return ue(e,t==null?void 0:t.in).getFullYear()}function Lx(e,t){return+ue(e)>+ue(t)}function $x(e,t){return+ue(e)<+ue(t)}function Bx(e,t,n){const[r,o]=Bt(n==null?void 0:n.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function zx(e,t,n){const[r,o]=Bt(n==null?void 0:n.in,e,t);return r.getFullYear()===o.getFullYear()}function Vx(e,t,n){const r=ue(e,n==null?void 0:n.in),o=r.getFullYear(),a=r.getDate(),s=xe(e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const i=Ix(s);return r.setMonth(t,Math.min(a,i)),r}function Yx(e,t,n){const r=ue(e,n==null?void 0:n.in);return isNaN(+r)?xe(e,NaN):(r.setFullYear(t),r)}const Ic=5,Hx=4;function Gx(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),a=t.addDays(o,Ic*7-1);return t.getMonth(e)===t.getMonth(a)?Ic:Hx}function Wc(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-1*6):t.addDays(n,-1*(r-1))}function Ux(e,t){const n=Wc(e,t),r=Gx(e,t);return t.addDays(n,r*7-1)}class _e{constructor(t,n){this.Date=Date,this.today=()=>{var r;return(r=this.overrides)!=null&&r.today?this.overrides.today():this.options.timeZone?we.tz(this.options.timeZone):new this.Date},this.newDate=(r,o,a)=>{var s;return(s=this.overrides)!=null&&s.newDate?this.overrides.newDate(r,o,a):this.options.timeZone?new we(r,o,a,this.options.timeZone):new Date(r,o,a)},this.addDays=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addDays?this.overrides.addDays(r,o):yc(r,o)},this.addMonths=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addMonths?this.overrides.addMonths(r,o):wc(r,o)},this.addWeeks=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addWeeks?this.overrides.addWeeks(r,o):Ov(r,o)},this.addYears=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addYears?this.overrides.addYears(r,o):Tv(r,o)},this.differenceInCalendarDays=(r,o)=>{var a;return(a=this.overrides)!=null&&a.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):Cc(r,o)},this.differenceInCalendarMonths=(r,o)=>{var a;return(a=this.overrides)!=null&&a.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):Rv(r,o)},this.eachMonthOfInterval=r=>{var o;return(o=this.overrides)!=null&&o.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):Fv(r)},this.endOfBroadcastWeek=r=>{var o;return(o=this.overrides)!=null&&o.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):Ux(r,this)},this.endOfISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.endOfISOWeek?this.overrides.endOfISOWeek(r):Bv(r)},this.endOfMonth=r=>{var o;return(o=this.overrides)!=null&&o.endOfMonth?this.overrides.endOfMonth(r):Iv(r)},this.endOfWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.endOfWeek?this.overrides.endOfWeek(r,o):_c(r,this.options)},this.endOfYear=r=>{var o;return(o=this.overrides)!=null&&o.endOfYear?this.overrides.endOfYear(r):$v(r)},this.format=(r,o,a)=>{var i;const s=(i=this.overrides)!=null&&i.format?this.overrides.format(r,o,this.options):Ax(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(s):s},this.getISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.getISOWeek?this.overrides.getISOWeek(r):Mc(r)},this.getMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getMonth?this.overrides.getMonth(r,this.options):Wx(r,this.options)},this.getYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getYear?this.overrides.getYear(r,this.options):Fx(r,this.options)},this.getWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getWeek?this.overrides.getWeek(r,this.options):Tc(r,this.options)},this.isAfter=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isAfter?this.overrides.isAfter(r,o):Lx(r,o)},this.isBefore=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isBefore?this.overrides.isBefore(r,o):$x(r,o)},this.isDate=r=>{var o;return(o=this.overrides)!=null&&o.isDate?this.overrides.isDate(r):Nc(r)},this.isSameDay=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameDay?this.overrides.isSameDay(r,o):jv(r,o)},this.isSameMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameMonth?this.overrides.isSameMonth(r,o):Bx(r,o)},this.isSameYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameYear?this.overrides.isSameYear(r,o):zx(r,o)},this.max=r=>{var o;return(o=this.overrides)!=null&&o.max?this.overrides.max(r):Pv(r)},this.min=r=>{var o;return(o=this.overrides)!=null&&o.min?this.overrides.min(r):Dv(r)},this.setMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.setMonth?this.overrides.setMonth(r,o):Vx(r,o)},this.setYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.setYear?this.overrides.setYear(r,o):Yx(r,o)},this.startOfBroadcastWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):Wc(r,this)},this.startOfDay=r=>{var o;return(o=this.overrides)!=null&&o.startOfDay?this.overrides.startOfDay(r):un(r)},this.startOfISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.startOfISOWeek?this.overrides.startOfISOWeek(r):dn(r)},this.startOfMonth=r=>{var o;return(o=this.overrides)!=null&&o.startOfMonth?this.overrides.startOfMonth(r):Lv(r)},this.startOfWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.startOfWeek?this.overrides.startOfWeek(r,this.options):$t(r,this.options)},this.startOfYear=r=>{var o;return(o=this.overrides)!=null&&o.startOfYear?this.overrides.startOfYear(r):Ec(r)},this.options={locale:Po,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){var n;const t=(n=this.options.locale)==null?void 0:n.code;return t&&_e.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:o}=this.options,a=n==null?void 0:n.code;if(a&&_e.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(t)}catch{}const s=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,s)}}_e.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const Ye=new _e;class Fc{constructor(t,n,r=Ye){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class qx{constructor(t,n){this.date=t,this.weeks=n}}class Kx{constructor(t,n){this.days=n,this.weekNumber=t}}function Xx(e){return M.createElement("button",{...e})}function Zx(e){return M.createElement("span",{...e})}function Qx(e){const{size:t=24,orientation:n="left",className:r}=e;return M.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&M.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&M.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&M.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&M.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function Jx(e){const{day:t,modifiers:n,...r}=e;return M.createElement("td",{...r})}function ey(e){const{day:t,modifiers:n,...r}=e,o=M.useRef(null);return M.useEffect(()=>{var a;n.focused&&((a=o.current)==null||a.focus())},[n.focused]),M.createElement("button",{ref:o,...r})}var q;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(q||(q={}));var he;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(he||(he={}));var Ie;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Ie||(Ie={}));var Me;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(Me||(Me={}));function ty(e){const{options:t,className:n,components:r,classNames:o,...a}=e,s=[o[q.Dropdown],n].join(" "),i=t==null?void 0:t.find(({value:l})=>l===a.value);return M.createElement("span",{"data-disabled":a.disabled,className:o[q.DropdownRoot]},M.createElement(r.Select,{className:s,...a},t==null?void 0:t.map(({value:l,label:d,disabled:f})=>M.createElement(r.Option,{key:l,value:l,disabled:f},d))),M.createElement("span",{className:o[q.CaptionLabel],"aria-hidden":!0},i==null?void 0:i.label,M.createElement(r.Chevron,{orientation:"down",size:18,className:o[q.Chevron]})))}function ny(e){return M.createElement("div",{...e})}function ry(e){return M.createElement("div",{...e})}function oy(e){const{calendarMonth:t,displayIndex:n,...r}=e;return M.createElement("div",{...r},e.children)}function ay(e){const{calendarMonth:t,displayIndex:n,...r}=e;return M.createElement("div",{...r})}function sy(e){return M.createElement("table",{...e})}function iy(e){return M.createElement("div",{...e})}const Lc=M.createContext(void 0);function hn(){const e=M.useContext(Lc);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function ly(e){const{components:t}=hn();return M.createElement(t.Dropdown,{...e})}function cy(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...a}=e,{components:s,classNames:i,labels:{labelPrevious:l,labelNext:d}}=hn(),f=M.useCallback(p=>{o&&(n==null||n(p))},[o,n]),m=M.useCallback(p=>{r&&(t==null||t(p))},[r,t]);return M.createElement("nav",{...a},M.createElement(s.PreviousMonthButton,{type:"button",className:i[q.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":l(r),onClick:m},M.createElement(s.Chevron,{disabled:r?void 0:!0,className:i[q.Chevron],orientation:"left"})),M.createElement(s.NextMonthButton,{type:"button",className:i[q.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":d(o),onClick:f},M.createElement(s.Chevron,{disabled:o?void 0:!0,orientation:"right",className:i[q.Chevron]})))}function dy(e){const{components:t}=hn();return M.createElement(t.Button,{...e})}function uy(e){return M.createElement("option",{...e})}function fy(e){const{components:t}=hn();return M.createElement(t.Button,{...e})}function my(e){const{rootRef:t,...n}=e;return M.createElement("div",{...n,ref:t})}function hy(e){return M.createElement("select",{...e})}function py(e){const{week:t,...n}=e;return M.createElement("tr",{...n})}function gy(e){return M.createElement("th",{...e})}function by(e){return M.createElement("thead",{"aria-hidden":!0},M.createElement("tr",{...e}))}function vy(e){const{week:t,...n}=e;return M.createElement("th",{...n})}function xy(e){return M.createElement("th",{...e})}function yy(e){return M.createElement("tbody",{...e})}function wy(e){const{components:t}=hn();return M.createElement(t.Dropdown,{...e})}const ky=Object.freeze(Object.defineProperty({__proto__:null,Button:Xx,CaptionLabel:Zx,Chevron:Qx,Day:Jx,DayButton:ey,Dropdown:ty,DropdownNav:ny,Footer:ry,Month:oy,MonthCaption:ay,MonthGrid:sy,Months:iy,MonthsDropdown:ly,Nav:cy,NextMonthButton:dy,Option:uy,PreviousMonthButton:fy,Root:my,Select:hy,Week:py,WeekNumber:vy,WeekNumberHeader:xy,Weekday:gy,Weekdays:by,Weeks:yy,YearsDropdown:wy},Symbol.toStringTag,{value:"Module"}));function Ze(e,t,n=!1,r=Ye){let{from:o,to:a}=e;const{differenceInCalendarDays:s,isSameDay:i}=r;return o&&a?(s(a,o)<0&&([o,a]=[a,o]),s(t,o)>=(n?1:0)&&s(a,t)>=(n?1:0)):!n&&a?i(a,t):!n&&o?i(o,t):!1}function $c(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Do(e){return!!(e&&typeof e=="object"&&"from"in e)}function Bc(e){return!!(e&&typeof e=="object"&&"after"in e)}function zc(e){return!!(e&&typeof e=="object"&&"before"in e)}function Vc(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Yc(e,t){return Array.isArray(e)&&e.every(t.isDate)}function Qe(e,t,n=Ye){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:a,isAfter:s}=n;return r.some(i=>{if(typeof i=="boolean")return i;if(n.isDate(i))return o(e,i);if(Yc(i,n))return i.includes(e);if(Do(i))return Ze(i,e,!1,n);if(Vc(i))return Array.isArray(i.dayOfWeek)?i.dayOfWeek.includes(e.getDay()):i.dayOfWeek===e.getDay();if($c(i)){const l=a(i.before,e),d=a(i.after,e),f=l>0,m=d<0;return s(i.before,i.after)?m&&f:f||m}return Bc(i)?a(e,i.after)>0:zc(i)?a(i.before,e)>0:typeof i=="function"?i(e):!1})}function Sy(e,t,n,r,o){const{disabled:a,hidden:s,modifiers:i,showOutsideDays:l,broadcastCalendar:d,today:f}=t,{isSameDay:m,isSameMonth:p,startOfMonth:g,isBefore:b,endOfMonth:h,isAfter:v}=o,x=n&&g(n),y=r&&h(r),w={[he.focused]:[],[he.outside]:[],[he.disabled]:[],[he.hidden]:[],[he.today]:[]},S={};for(const k of e){const{date:_,displayMonth:C}=k,E=!!(C&&!p(_,C)),F=!!(x&&b(_,x)),Y=!!(y&&v(_,y)),R=!!(a&&Qe(_,a,o)),z=!!(s&&Qe(_,s,o))||F||Y||!d&&!l&&E||d&&l===!1&&E,K=m(_,f??o.today());E&&w.outside.push(k),R&&w.disabled.push(k),z&&w.hidden.push(k),K&&w.today.push(k),i&&Object.keys(i).forEach(H=>{const Z=i==null?void 0:i[H];Z&&Qe(_,Z,o)&&(S[H]?S[H].push(k):S[H]=[k])})}return k=>{const _={[he.focused]:!1,[he.disabled]:!1,[he.hidden]:!1,[he.outside]:!1,[he.today]:!1},C={};for(const E in w){const F=w[E];_[E]=F.some(Y=>Y===k)}for(const E in S)C[E]=S[E].some(F=>F===k);return{..._,...C}}}function Cy(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[a])=>(n[a]?o.push(n[a]):t[he[a]]?o.push(t[he[a]]):t[Ie[a]]&&o.push(t[Ie[a]]),o),[t[q.Day]])}function Ny(e){return{...ky,...e}}function Ey(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function jo(){const e={};for(const t in q)e[q[t]]=`rdp-${q[t]}`;for(const t in he)e[he[t]]=`rdp-${he[t]}`;for(const t in Ie)e[Ie[t]]=`rdp-${Ie[t]}`;for(const t in Me)e[Me[t]]=`rdp-${Me[t]}`;return e}function Hc(e,t,n){return(n??new _e(t)).formatMonthYear(e)}const _y=Hc;function My(e,t,n){return(n??new _e(t)).format(e,"d")}function Oy(e,t=Ye){return t.format(e,"LLLL")}function Ty(e,t,n){return(n??new _e(t)).format(e,"cccccc")}function Py(e,t=Ye){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function Dy(){return""}function Gc(e,t=Ye){return t.format(e,"yyyy")}const jy=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:Hc,formatDay:My,formatMonthCaption:_y,formatMonthDropdown:Oy,formatWeekNumber:Py,formatWeekNumberHeader:Dy,formatWeekdayName:Ty,formatYearCaption:Gc,formatYearDropdown:Gc},Symbol.toStringTag,{value:"Module"}));function Ay(e){return e!=null&&e.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e!=null&&e.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...jy,...e}}function Ry(e,t,n,r,o){const{startOfMonth:a,startOfYear:s,endOfYear:i,eachMonthOfInterval:l,getMonth:d}=o;return l({start:s(e),end:i(e)}).map(p=>{const g=r.formatMonthDropdown(p,o),b=d(p),h=t&&p<a(t)||n&&p>a(n)||!1;return{value:b,label:g,disabled:h}})}function Iy(e,t={},n={}){let r={...t==null?void 0:t[q.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n==null?void 0:n[o]}}),r}function Wy(e,t,n){const r=e.today(),o=t?e.startOfISOWeek(r):e.startOfWeek(r),a=[];for(let s=0;s<7;s++){const i=e.addDays(o,s);a.push(i)}return a}function Fy(e,t,n,r,o=!1){if(!e||!t)return;const{startOfYear:a,endOfYear:s,addYears:i,getYear:l,isBefore:d,isSameYear:f}=r,m=a(e),p=s(t),g=[];let b=m;for(;d(b,p)||f(b,p);)g.push(b),b=i(b,1);return o&&g.reverse(),g.map(h=>{const v=n.formatYearDropdown(h,r);return{value:l(h),label:v,disabled:!1}})}function Uc(e,t,n,r){let o=(r??new _e(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const Ly=Uc;function qc(e,t,n){return(n??new _e(t)).formatMonthYear(e)}const $y=qc;function By(e,t,n,r){let o=(r??new _e(n)).format(e,"PPPP");return t!=null&&t.today&&(o=`Today, ${o}`),o}function zy(e){return"Choose the Month"}function Vy(){return""}function Yy(e){return"Go to the Next Month"}function Hy(e){return"Go to the Previous Month"}function Gy(e,t,n){return(n??new _e(t)).format(e,"cccc")}function Uy(e,t){return`Week ${e}`}function qy(e){return"Week Number"}function Ky(e){return"Choose the Year"}const Xy=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:$y,labelDay:Ly,labelDayButton:Uc,labelGrid:qc,labelGridcell:By,labelMonthDropdown:zy,labelNav:Vy,labelNext:Yy,labelPrevious:Hy,labelWeekNumber:Uy,labelWeekNumberHeader:qy,labelWeekday:Gy,labelYearDropdown:Ky},Symbol.toStringTag,{value:"Module"})),pn=e=>e instanceof HTMLElement?e:null,Ao=e=>[...e.querySelectorAll("[data-animated-month]")??[]],Zy=e=>pn(e.querySelector("[data-animated-month]")),Ro=e=>pn(e.querySelector("[data-animated-caption]")),Io=e=>pn(e.querySelector("[data-animated-weeks]")),Qy=e=>pn(e.querySelector("[data-animated-nav]")),Jy=e=>pn(e.querySelector("[data-animated-weekdays]"));function ew(e,t,{classNames:n,months:r,focused:o,dateLib:a}){const s=M.useRef(null),i=M.useRef(r),l=M.useRef(!1);M.useLayoutEffect(()=>{const d=i.current;if(i.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||d.length===0||r.length!==d.length)return;const f=a.isSameMonth(r[0].date,d[0].date),m=a.isAfter(r[0].date,d[0].date),p=m?n[Me.caption_after_enter]:n[Me.caption_before_enter],g=m?n[Me.weeks_after_enter]:n[Me.weeks_before_enter],b=s.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?(Ao(h).forEach(w=>{if(!(w instanceof HTMLElement))return;const S=Zy(w);S&&w.contains(S)&&w.removeChild(S);const k=Ro(w);k&&k.classList.remove(p);const _=Io(w);_&&_.classList.remove(g)}),s.current=h):s.current=null,l.current||f||o)return;const v=b instanceof HTMLElement?Ao(b):[],x=Ao(e.current);if(x!=null&&x.every(y=>y instanceof HTMLElement)&&v&&v.every(y=>y instanceof HTMLElement)){l.current=!0,e.current.style.isolation="isolate";const y=Qy(e.current);y&&(y.style.zIndex="1"),x.forEach((w,S)=>{const k=v[S];if(!k)return;w.style.position="relative",w.style.overflow="hidden";const _=Ro(w);_&&_.classList.add(p);const C=Io(w);C&&C.classList.add(g);const E=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),y&&(y.style.zIndex=""),_&&_.classList.remove(p),C&&C.classList.remove(g),w.style.position="",w.style.overflow="",w.contains(k)&&w.removeChild(k)};k.style.pointerEvents="none",k.style.position="absolute",k.style.overflow="hidden",k.setAttribute("aria-hidden","true");const F=Jy(k);F&&(F.style.opacity="0");const Y=Ro(k);Y&&(Y.classList.add(m?n[Me.caption_before_exit]:n[Me.caption_after_exit]),Y.addEventListener("animationend",E));const R=Io(k);R&&R.classList.add(m?n[Me.weeks_before_exit]:n[Me.weeks_after_exit]),w.insertBefore(k,w.firstChild)})}})}function tw(e,t,n,r){const o=e[0],a=e[e.length-1],{ISOWeek:s,fixedWeeks:i,broadcastCalendar:l}=n??{},{addDays:d,differenceInCalendarDays:f,differenceInCalendarMonths:m,endOfBroadcastWeek:p,endOfISOWeek:g,endOfMonth:b,endOfWeek:h,isAfter:v,startOfBroadcastWeek:x,startOfISOWeek:y,startOfWeek:w}=r,S=l?x(o,r):s?y(o):w(o),k=l?p(a):s?g(b(a)):h(b(a)),_=f(k,S),C=m(a,o)+1,E=[];for(let R=0;R<=_;R++){const z=d(S,R);if(t&&v(z,t))break;E.push(z)}const Y=(l?35:42)*C;if(i&&E.length<Y){const R=Y-E.length;for(let z=0;z<R;z++){const K=d(E[E.length-1],1);E.push(K)}}return E}function nw(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((a,s)=>a.concat(s.days.slice()),t.slice());return n.concat(o.slice())},t.slice())}function rw(e,t,n,r){const{numberOfMonths:o=1}=n,a=[];for(let s=0;s<o;s++){const i=r.addMonths(e,s);if(t&&i>t)break;a.push(i)}return a}function Kc(e,t,n,r){const{month:o,defaultMonth:a,today:s=r.today(),numberOfMonths:i=1}=e;let l=o||a||s;const{differenceInCalendarMonths:d,addMonths:f,startOfMonth:m}=r;if(n&&d(n,l)<i-1){const p=-1*(i-1);l=f(n,p)}return t&&d(l,t)<0&&(l=t),m(l)}function ow(e,t,n,r){const{addDays:o,endOfBroadcastWeek:a,endOfISOWeek:s,endOfMonth:i,endOfWeek:l,getISOWeek:d,getWeek:f,startOfBroadcastWeek:m,startOfISOWeek:p,startOfWeek:g}=r,b=e.reduce((h,v)=>{const x=n.broadcastCalendar?m(v,r):n.ISOWeek?p(v):g(v),y=n.broadcastCalendar?a(v):n.ISOWeek?s(i(v)):l(i(v)),w=t.filter(C=>C>=x&&C<=y),S=n.broadcastCalendar?35:42;if(n.fixedWeeks&&w.length<S){const C=t.filter(E=>{const F=S-w.length;return E>y&&E<=o(y,F)});w.push(...C)}const k=w.reduce((C,E)=>{const F=n.ISOWeek?d(E):f(E),Y=C.find(z=>z.weekNumber===F),R=new Fc(E,v,r);return Y?Y.days.push(R):C.push(new Kx(F,[R])),C},[]),_=new qx(v,k);return h.push(_),h},[]);return n.reverseMonths?b.reverse():b}function aw(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:a,startOfMonth:s,endOfMonth:i,addYears:l,endOfYear:d,newDate:f,today:m}=t,{fromYear:p,toYear:g,fromMonth:b,toMonth:h}=e;!n&&b&&(n=b),!n&&p&&(n=t.newDate(p,0,1)),!r&&h&&(r=h),!r&&g&&(r=f(g,11,31));const v=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=s(n):p?n=f(p,0,1):!n&&v&&(n=o(l(e.today??m(),-100))),r?r=i(r):g?r=f(g,11,31):!r&&v&&(r=d(e.today??m())),[n&&a(n),r&&a(r)]}function sw(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a=1}=n,{startOfMonth:s,addMonths:i,differenceInCalendarMonths:l}=r,d=o?a:1,f=s(e);if(!t)return i(f,d);if(!(l(t,e)<a))return i(f,d)}function iw(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a}=n,{startOfMonth:s,addMonths:i,differenceInCalendarMonths:l}=r,d=o?a??1:1,f=s(e);if(!t)return i(f,-d);if(!(l(f,t)<=0))return i(f,-d)}function lw(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function sr(e,t){const[n,r]=M.useState(e);return[t===void 0?n:t,r]}function cw(e,t){const[n,r]=aw(e,t),{startOfMonth:o,endOfMonth:a}=t,s=Kc(e,n,r,t),[i,l]=sr(s,e.month?s:void 0);M.useEffect(()=>{const _=Kc(e,n,r,t);l(_)},[e.timeZone]);const d=rw(i,r,e,t),f=tw(d,e.endMonth?a(e.endMonth):void 0,e,t),m=ow(d,f,e,t),p=lw(m),g=nw(m),b=iw(i,n,e,t),h=sw(i,r,e,t),{disableNavigation:v,onMonthChange:x}=e,y=_=>p.some(C=>C.days.some(E=>E.isEqualTo(_))),w=_=>{if(v)return;let C=o(_);n&&C<o(n)&&(C=o(n)),r&&C>o(r)&&(C=o(r)),l(C),x==null||x(C)};return{months:m,weeks:p,days:g,navStart:n,navEnd:r,previousMonth:b,nextMonth:h,goToMonth:w,goToDay:_=>{y(_)||w(_.date)}}}var He;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(He||(He={}));function Xc(e){return!e[he.disabled]&&!e[he.hidden]&&!e[he.outside]}function dw(e,t,n,r){let o,a=-1;for(const s of e){const i=t(s);Xc(i)&&(i[he.focused]&&a<He.FocusedModifier?(o=s,a=He.FocusedModifier):r!=null&&r.isEqualTo(s)&&a<He.LastFocused?(o=s,a=He.LastFocused):n(s.date)&&a<He.Selected?(o=s,a=He.Selected):i[he.today]&&a<He.Today&&(o=s,a=He.Today))}return o||(o=e.find(s=>Xc(t(s)))),o}function uw(e,t,n,r,o,a,s){const{ISOWeek:i,broadcastCalendar:l}=a,{addDays:d,addMonths:f,addWeeks:m,addYears:p,endOfBroadcastWeek:g,endOfISOWeek:b,endOfWeek:h,max:v,min:x,startOfBroadcastWeek:y,startOfISOWeek:w,startOfWeek:S}=s;let _={day:d,week:m,month:f,year:p,startOfWeek:C=>l?y(C,s):i?w(C):S(C),endOfWeek:C=>l?g(C):i?b(C):h(C)}[e](n,t==="after"?1:-1);return t==="before"&&r?_=v([r,_]):t==="after"&&o&&(_=x([o,_])),_}function Zc(e,t,n,r,o,a,s,i=0){if(i>365)return;const l=uw(e,t,n.date,r,o,a,s),d=!!(a.disabled&&Qe(l,a.disabled,s)),f=!!(a.hidden&&Qe(l,a.hidden,s)),m=l,p=new Fc(l,m,s);return!d&&!f?p:Zc(e,t,p,r,o,a,s,i+1)}function fw(e,t,n,r,o){const{autoFocus:a}=e,[s,i]=M.useState(),l=dw(t.days,n,r||(()=>!1),s),[d,f]=M.useState(a?l:void 0);return{isFocusTarget:h=>!!(l!=null&&l.isEqualTo(h)),setFocused:f,focused:d,blur:()=>{i(d),f(void 0)},moveFocus:(h,v)=>{if(!d)return;const x=Zc(h,v,d,t.navStart,t.navEnd,e,o);x&&(t.goToDay(x),f(x))}}}function mw(e,t){const{selected:n,required:r,onSelect:o}=e,[a,s]=sr(n,o?n:void 0),i=o?n:a,{isSameDay:l}=t,d=g=>(i==null?void 0:i.some(b=>l(b,g)))??!1,{min:f,max:m}=e;return{selected:i,select:(g,b,h)=>{let v=[...i??[]];if(d(g)){if((i==null?void 0:i.length)===f||r&&(i==null?void 0:i.length)===1)return;v=i==null?void 0:i.filter(x=>!l(x,g))}else(i==null?void 0:i.length)===m?v=[g]:v=[...v,g];return o||s(v),o==null||o(v,g,b,h),v},isSelected:d}}function hw(e,t,n=0,r=0,o=!1,a=Ye){const{from:s,to:i}=t||{},{isSameDay:l,isAfter:d,isBefore:f}=a;let m;if(!s&&!i)m={from:e,to:n>0?void 0:e};else if(s&&!i)l(s,e)?n===0?m={from:s,to:e}:o?m={from:s,to:void 0}:m=void 0:f(e,s)?m={from:e,to:s}:m={from:s,to:e};else if(s&&i)if(l(s,e)&&l(i,e))o?m={from:s,to:i}:m=void 0;else if(l(s,e))m={from:s,to:n>0?void 0:e};else if(l(i,e))m={from:e,to:n>0?void 0:e};else if(f(e,s))m={from:e,to:i};else if(d(e,s))m={from:s,to:e};else if(d(e,i))m={from:s,to:e};else throw new Error("Invalid range");if(m!=null&&m.from&&(m!=null&&m.to)){const p=a.differenceInCalendarDays(m.to,m.from);r>0&&p>r?m={from:e,to:void 0}:n>1&&p<n&&(m={from:e,to:void 0})}return m}function pw(e,t,n=Ye){const r=Array.isArray(t)?t:[t];let o=e.from;const a=n.differenceInCalendarDays(e.to,e.from),s=Math.min(a,6);for(let i=0;i<=s;i++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function Qc(e,t,n=Ye){return Ze(e,t.from,!1,n)||Ze(e,t.to,!1,n)||Ze(t,e.from,!1,n)||Ze(t,e.to,!1,n)}function gw(e,t,n=Ye){const r=Array.isArray(t)?t:[t];if(r.filter(i=>typeof i!="function").some(i=>typeof i=="boolean"?i:n.isDate(i)?Ze(e,i,!1,n):Yc(i,n)?i.some(l=>Ze(e,l,!1,n)):Do(i)?i.from&&i.to?Qc(e,{from:i.from,to:i.to},n):!1:Vc(i)?pw(e,i.dayOfWeek,n):$c(i)?n.isAfter(i.before,i.after)?Qc(e,{from:n.addDays(i.after,1),to:n.addDays(i.before,-1)},n):Qe(e.from,i,n)||Qe(e.to,i,n):Bc(i)||zc(i)?Qe(e.from,i,n)||Qe(e.to,i,n):!1))return!0;const s=r.filter(i=>typeof i=="function");if(s.length){let i=e.from;const l=n.differenceInCalendarDays(e.to,e.from);for(let d=0;d<=l;d++){if(s.some(f=>f(i)))return!0;i=n.addDays(i,1)}}return!1}function bw(e,t){const{disabled:n,excludeDisabled:r,selected:o,required:a,onSelect:s}=e,[i,l]=sr(o,s?o:void 0),d=s?o:i;return{selected:d,select:(p,g,b)=>{const{min:h,max:v}=e,x=p?hw(p,d,h,v,a,t):void 0;return r&&n&&(x!=null&&x.from)&&x.to&&gw({from:x.from,to:x.to},n,t)&&(x.from=p,x.to=void 0),s||l(x),s==null||s(x,p,g,b),x},isSelected:p=>d&&Ze(d,p,!1,t)}}function vw(e,t){const{selected:n,required:r,onSelect:o}=e,[a,s]=sr(n,o?n:void 0),i=o?n:a,{isSameDay:l}=t;return{selected:i,select:(m,p,g)=>{let b=m;return!r&&i&&i&&l(m,i)&&(b=void 0),o||s(b),o==null||o(b,m,p,g),b},isSelected:m=>i?l(i,m):!1}}function xw(e,t){const n=vw(e,t),r=mw(e,t),o=bw(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function yw(e){var td;let t=e;t.timeZone&&(t={...e},t.today&&(t.today=new we(t.today,t.timeZone)),t.month&&(t.month=new we(t.month,t.timeZone)),t.defaultMonth&&(t.defaultMonth=new we(t.defaultMonth,t.timeZone)),t.startMonth&&(t.startMonth=new we(t.startMonth,t.timeZone)),t.endMonth&&(t.endMonth=new we(t.endMonth,t.timeZone)),t.mode==="single"&&t.selected?t.selected=new we(t.selected,t.timeZone):t.mode==="multiple"&&t.selected?t.selected=(td=t.selected)==null?void 0:td.map(ae=>new we(ae,t.timeZone)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?new we(t.selected.from,t.timeZone):void 0,to:t.selected.to?new we(t.selected.to,t.timeZone):void 0}));const{components:n,formatters:r,labels:o,dateLib:a,locale:s,classNames:i}=M.useMemo(()=>{const ae={...Po,...t.locale};return{dateLib:new _e({locale:ae,weekStartsOn:t.broadcastCalendar?1:t.weekStartsOn,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},t.dateLib),components:Ny(t.components),formatters:Ay(t.formatters),labels:{...Xy,...t.labels},locale:ae,classNames:{...jo(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.components,t.formatters,t.labels,t.classNames]),{captionLayout:l,mode:d,navLayout:f,numberOfMonths:m=1,onDayBlur:p,onDayClick:g,onDayFocus:b,onDayKeyDown:h,onDayMouseEnter:v,onDayMouseLeave:x,onNextClick:y,onPrevClick:w,showWeekNumber:S,styles:k}=t,{formatCaption:_,formatDay:C,formatMonthDropdown:E,formatWeekNumber:F,formatWeekNumberHeader:Y,formatWeekdayName:R,formatYearDropdown:z}=r,K=cw(t,a),{days:H,months:Z,navStart:B,navEnd:Q,previousMonth:P,nextMonth:te,goToMonth:T}=K,G=Sy(H,t,B,Q,a),{isSelected:O,select:A,selected:W}=xw(t,a)??{},{blur:I,focused:ee,isFocusTarget:j,moveFocus:V,setFocused:J}=fw(t,K,G,O??(()=>!1),a),{labelDayButton:ne,labelGridcell:se,labelGrid:ie,labelMonthDropdown:ke,labelNav:Oe,labelPrevious:xt,labelNext:yt,labelWeekday:wt,labelWeekNumber:Wo,labelWeekNumberHeader:Vt,labelYearDropdown:jw}=o,Aw=M.useMemo(()=>Wy(a,t.ISOWeek),[a,t.ISOWeek]),Jc=d!==void 0||g!==void 0,Fo=M.useCallback(()=>{P&&(T(P),w==null||w(P))},[P,T,w]),Lo=M.useCallback(()=>{te&&(T(te),y==null||y(te))},[T,te,y]),Rw=M.useCallback((ae,me)=>re=>{re.preventDefault(),re.stopPropagation(),J(ae),A==null||A(ae.date,me,re),g==null||g(ae.date,me,re)},[A,g,J]),Iw=M.useCallback((ae,me)=>re=>{J(ae),b==null||b(ae.date,me,re)},[b,J]),Ww=M.useCallback((ae,me)=>re=>{I(),p==null||p(ae.date,me,re)},[I,p]),Fw=M.useCallback((ae,me)=>re=>{const fe={ArrowLeft:[re.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[re.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[re.shiftKey?"year":"week","after"],ArrowUp:[re.shiftKey?"year":"week","before"],PageUp:[re.shiftKey?"year":"month","before"],PageDown:[re.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(fe[re.key]){re.preventDefault(),re.stopPropagation();const[Te,ce]=fe[re.key];V(Te,ce)}h==null||h(ae.date,me,re)},[V,h,t.dir]),Lw=M.useCallback((ae,me)=>re=>{v==null||v(ae.date,me,re)},[v]),$w=M.useCallback((ae,me)=>re=>{x==null||x(ae.date,me,re)},[x]),Bw=M.useCallback(ae=>me=>{const re=Number(me.target.value),fe=a.setMonth(a.startOfMonth(ae),re);T(fe)},[a,T]),zw=M.useCallback(ae=>me=>{const re=Number(me.target.value),fe=a.setYear(a.startOfMonth(ae),re);T(fe)},[a,T]),{className:Vw,style:Yw}=M.useMemo(()=>({className:[i[q.Root],t.className].filter(Boolean).join(" "),style:{...k==null?void 0:k[q.Root],...t.style}}),[i,t.className,t.style,k]),Hw=Ey(t),ed=M.useRef(null);ew(ed,!!t.animate,{classNames:i,months:Z,focused:ee,dateLib:a});const Gw={dayPickerProps:t,selected:W,select:A,isSelected:O,months:Z,nextMonth:te,previousMonth:P,goToMonth:T,getModifiers:G,components:n,classNames:i,styles:k,labels:o,formatters:r};return M.createElement(Lc.Provider,{value:Gw},M.createElement(n.Root,{rootRef:t.animate?ed:void 0,className:Vw,style:Yw,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...Hw},M.createElement(n.Months,{className:i[q.Months],style:k==null?void 0:k[q.Months]},!t.hideNavigation&&!f&&M.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:i[q.Nav],style:k==null?void 0:k[q.Nav],"aria-label":Oe(),onPreviousClick:Fo,onNextClick:Lo,previousMonth:P,nextMonth:te}),Z.map((ae,me)=>M.createElement(n.Month,{"data-animated-month":t.animate?"true":void 0,className:i[q.Month],style:k==null?void 0:k[q.Month],key:me,displayIndex:me,calendarMonth:ae},f==="around"&&!t.hideNavigation&&me===0&&M.createElement(n.PreviousMonthButton,{type:"button",className:i[q.PreviousMonthButton],tabIndex:P?void 0:-1,"aria-disabled":P?void 0:!0,"aria-label":xt(P),onClick:Fo,"data-animated-button":t.animate?"true":void 0},M.createElement(n.Chevron,{disabled:P?void 0:!0,className:i[q.Chevron],orientation:t.dir==="rtl"?"right":"left"})),M.createElement(n.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:i[q.MonthCaption],style:k==null?void 0:k[q.MonthCaption],calendarMonth:ae,displayIndex:me},l!=null&&l.startsWith("dropdown")?M.createElement(n.DropdownNav,{className:i[q.Dropdowns],style:k==null?void 0:k[q.Dropdowns]},(()=>{const re=l==="dropdown"||l==="dropdown-months"?M.createElement(n.MonthsDropdown,{key:"month",className:i[q.MonthsDropdown],"aria-label":ke(),classNames:i,components:n,disabled:!!t.disableNavigation,onChange:Bw(ae.date),options:Ry(ae.date,B,Q,r,a),style:k==null?void 0:k[q.Dropdown],value:a.getMonth(ae.date)}):M.createElement("span",{key:"month"},E(ae.date,a)),fe=l==="dropdown"||l==="dropdown-years"?M.createElement(n.YearsDropdown,{key:"year",className:i[q.YearsDropdown],"aria-label":jw(a.options),classNames:i,components:n,disabled:!!t.disableNavigation,onChange:zw(ae.date),options:Fy(B,Q,r,a,!!t.reverseYears),style:k==null?void 0:k[q.Dropdown],value:a.getYear(ae.date)}):M.createElement("span",{key:"year"},z(ae.date,a));return a.getMonthYearOrder()==="year-first"?[fe,re]:[re,fe]})(),M.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},_(ae.date,a.options,a))):M.createElement(n.CaptionLabel,{className:i[q.CaptionLabel],role:"status","aria-live":"polite"},_(ae.date,a.options,a))),f==="around"&&!t.hideNavigation&&me===m-1&&M.createElement(n.NextMonthButton,{type:"button",className:i[q.NextMonthButton],tabIndex:te?void 0:-1,"aria-disabled":te?void 0:!0,"aria-label":yt(te),onClick:Lo,"data-animated-button":t.animate?"true":void 0},M.createElement(n.Chevron,{disabled:te?void 0:!0,className:i[q.Chevron],orientation:t.dir==="rtl"?"left":"right"})),me===m-1&&f==="after"&&!t.hideNavigation&&M.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:i[q.Nav],style:k==null?void 0:k[q.Nav],"aria-label":Oe(),onPreviousClick:Fo,onNextClick:Lo,previousMonth:P,nextMonth:te}),M.createElement(n.MonthGrid,{role:"grid","aria-multiselectable":d==="multiple"||d==="range","aria-label":ie(ae.date,a.options,a)||void 0,className:i[q.MonthGrid],style:k==null?void 0:k[q.MonthGrid]},!t.hideWeekdays&&M.createElement(n.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:i[q.Weekdays],style:k==null?void 0:k[q.Weekdays]},S&&M.createElement(n.WeekNumberHeader,{"aria-label":Vt(a.options),className:i[q.WeekNumberHeader],style:k==null?void 0:k[q.WeekNumberHeader],scope:"col"},Y()),Aw.map(re=>M.createElement(n.Weekday,{"aria-label":wt(re,a.options,a),className:i[q.Weekday],key:String(re),style:k==null?void 0:k[q.Weekday],scope:"col"},R(re,a.options,a)))),M.createElement(n.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:i[q.Weeks],style:k==null?void 0:k[q.Weeks]},ae.weeks.map(re=>M.createElement(n.Week,{className:i[q.Week],key:re.weekNumber,style:k==null?void 0:k[q.Week],week:re},S&&M.createElement(n.WeekNumber,{week:re,style:k==null?void 0:k[q.WeekNumber],"aria-label":Wo(re.weekNumber,{locale:s}),className:i[q.WeekNumber],scope:"row",role:"rowheader"},F(re.weekNumber,a)),re.days.map(fe=>{const{date:Te}=fe,ce=G(fe);if(ce[he.focused]=!ce.hidden&&!!(ee!=null&&ee.isEqualTo(fe)),ce[Ie.selected]=(O==null?void 0:O(Te))||ce.selected,Do(W)){const{from:$o,to:Bo}=W;ce[Ie.range_start]=!!($o&&Bo&&a.isSameDay(Te,$o)),ce[Ie.range_end]=!!($o&&Bo&&a.isSameDay(Te,Bo)),ce[Ie.range_middle]=Ze(W,Te,!0,a)}const Uw=Iy(ce,k,t.modifiersStyles),qw=Cy(ce,i,t.modifiersClassNames),Kw=!Jc&&!ce.hidden?se(Te,ce,a.options,a):void 0;return M.createElement(n.Day,{key:`${a.format(Te,"yyyy-MM-dd")}_${a.format(fe.displayMonth,"yyyy-MM")}`,day:fe,modifiers:ce,className:qw.join(" "),style:Uw,role:"gridcell","aria-selected":ce.selected||void 0,"aria-label":Kw,"data-day":a.format(Te,"yyyy-MM-dd"),"data-month":fe.outside?a.format(Te,"yyyy-MM"):void 0,"data-selected":ce.selected||void 0,"data-disabled":ce.disabled||void 0,"data-hidden":ce.hidden||void 0,"data-outside":fe.outside||void 0,"data-focused":ce.focused||void 0,"data-today":ce.today||void 0},!ce.hidden&&Jc?M.createElement(n.DayButton,{className:i[q.DayButton],style:k==null?void 0:k[q.DayButton],type:"button",day:fe,modifiers:ce,disabled:ce.disabled||void 0,tabIndex:j(fe)?0:-1,"aria-label":ne(Te,ce,a.options,a),onClick:Rw(fe,ce),onBlur:Ww(fe,ce),onFocus:Iw(fe,ce),onKeyDown:Fw(fe,ce),onMouseEnter:Lw(fe,ce),onMouseLeave:$w(fe,ce)},C(Te,a.options,a)):!ce.hidden&&C(fe.date,a.options,a))})))))))),t.footer&&M.createElement(n.Footer,{className:i[q.Footer],style:k==null?void 0:k[q.Footer],role:"status","aria-live":"polite"},t.footer)))}function ww({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r="label",buttonVariant:o="outline",formatters:a,components:s,...i}){const l=jo();return c.jsx(yw,{showOutsideDays:n,className:N("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,formatters:{formatMonthDropdown:d=>d.toLocaleString("default",{month:"short"}),...a},classNames:{root:N("w-fit",l.root),months:N("flex gap-4 flex-col md:flex-row relative",l.months),month:N("flex flex-col w-full gap-4",l.month),nav:N("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",l.nav),button_previous:N(hr({variant:o}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",l.button_previous),button_next:N(hr({variant:o}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",l.button_next),month_caption:N("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",l.month_caption),dropdowns:N("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",l.dropdowns),dropdown_root:N("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",l.dropdown_root),dropdown:N("absolute bg-popover inset-0 opacity-0",l.dropdown),caption_label:N("select-none font-medium",r==="label"?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",l.caption_label),table:"w-full border-collapse",weekdays:N("flex",l.weekdays),weekday:N("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",l.weekday),week:N("flex w-full mt-2",l.week),week_number_header:N("select-none w-(--cell-size)",l.week_number_header),week_number:N("text-[0.8rem] select-none text-muted-foreground",l.week_number),day:N("relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",l.day),range_start:N("rounded-l-md bg-accent",l.range_start),range_middle:N("rounded-none",l.range_middle),range_end:N("rounded-r-md bg-accent",l.range_end),today:N("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",l.today),outside:N("text-muted-foreground aria-selected:text-muted-foreground",l.outside),disabled:N("text-muted-foreground opacity-50",l.disabled),hidden:N("invisible",l.hidden),...t},components:{Root:({className:d,rootRef:f,...m})=>c.jsx("div",{"data-slot":"calendar",ref:f,className:N(d),...m}),Chevron:({className:d,orientation:f,...m})=>f==="left"?c.jsx(xr,{className:N("size-4",d),...m}):f==="right"?c.jsx(_n,{className:N("size-4",d),...m}):c.jsx(Nt,{className:N("size-4",d),...m}),DayButton:kw,WeekNumber:({children:d,...f})=>c.jsx("td",{...f,children:c.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:d})}),...s},...i})}function kw({className:e,day:t,modifiers:n,...r}){const o=jo(),a=u.useRef(null);return u.useEffect(()=>{var s;n.focused&&((s=a.current)==null||s.focus())},[n.focused]),c.jsx(Se,{ref:a,variant:"outline",size:"icon","data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:N("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",o.day,e),...r})}const Sw=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"];function Cw(e){const[t,n]=u.useState(!1),o=(()=>{var b;return e.mode==="single"?e.date||new Date:((b=e.date)==null?void 0:b.from)||new Date})(),[a,s]=u.useState(o.getFullYear()),[i,l]=u.useState(o.getMonth()),d=b=>{if(l(b),n(!1),e.mode==="single"){const h=e.date,v=new Date(a,b,(h==null?void 0:h.getDate())||1);e.setDate(v)}else if(e.mode==="range"){const h=e.date;if(h!=null&&h.from){const v=new Date(a,b,h.from.getDate());e.setDate({from:v,to:h.to})}}},f=b=>{s(h=>b==="prev"?h-1:h+1)},m=b=>{const h=new Date(a,i);b==="prev"?h.setMonth(h.getMonth()-1):h.setMonth(h.getMonth()+1),s(h.getFullYear()),l(h.getMonth())},p=new Date(a,i).toLocaleString("default",{month:"long"});if(t)return c.jsxs(ho,{className:"w-[370px] p-6",children:[c.jsxs("div",{className:"flex items-center justify-between mb-6",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("span",{className:"text-lg font-medium",children:[p," ",a]}),c.jsx(Nt,{className:"w-4 h-4"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Se,{variant:"outline",size:"icon",onClick:()=>f("prev"),className:"h-8 w-8",children:c.jsx(xr,{className:"w-4 h-4"})}),c.jsx(Se,{variant:"outline",size:"icon",onClick:()=>f("next"),className:"h-8 w-8",children:c.jsx(_n,{className:"w-4 h-4"})})]})]}),c.jsx("div",{className:"grid grid-cols-3 gap-4 mb-6",children:Sw.map((b,h)=>c.jsx(Se,{variant:h===i?"default":"outline",onClick:()=>d(h),className:N("h-12 text-sm font-medium",h===i&&"bg-black text-white hover:bg-black/90"),children:b},b))}),c.jsxs("div",{className:"flex justify-end gap-3",children:[c.jsx(Se,{variant:"outline",onClick:()=>n(!1),children:"Cancel"}),c.jsx(Se,{onClick:()=>n(!1),children:"Ok"})]})]});const g=()=>{const b={month:new Date(a,i),onMonthChange:h=>{s(h.getFullYear()),l(h.getMonth())},classNames:{month_caption:"flex items-center justify-between mb-4",caption_label:"text-lg font-medium cursor-pointer hover:bg-gray-100 px-2 py-1 rounded",nav:"flex items-center gap-2 hidden",button_previous:"h-8 w-8",button_next:"h-8 w-8",table:"w-full",weekdays:"grid grid-cols-7 mb-2",weekday:"text-center text-sm font-medium text-gray-600 py-2",week:"grid grid-cols-7",day:"aspect-square p-0",today:"bg-transparent border-2 border-black rounded-full",selected:"bg-black text-white rounded-full hover:bg-black/90",outside:"text-gray-400",range_middle:"bg-gray-100 rounded-none",range_start:"bg-black text-white rounded-l-full",range_end:"bg-black text-white rounded-r-full"},components:{MonthCaption:({calendarMonth:h})=>c.jsxs("div",{className:"flex items-center justify-between w-full mb-4",children:[c.jsxs(Se,{variant:"outline",onClick:()=>n(!0),className:"text-lg font-medium hover:bg-gray-100 px-2 py-1 h-auto",children:[h.date.toLocaleString("default",{month:"long",year:"numeric"}),c.jsx(Nt,{className:"w-4 h-4 ml-1"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Se,{variant:"outline",size:"icon",onClick:()=>m("prev"),className:"h-8 w-8",children:c.jsx(xr,{className:"w-4 h-4"})}),c.jsx(Se,{variant:"outline",size:"icon",onClick:()=>m("next"),className:"h-8 w-8",children:c.jsx(_n,{className:"w-4 h-4"})})]})]})}};return e.mode==="single"?{...b,mode:"single",selected:e.date,onSelect:e.setDate}:{...b,mode:"range",selected:e.date,onSelect:e.setDate}};return c.jsxs(El,{children:[c.jsx(_l,{children:"Open"}),c.jsx(ho,{className:"w-[370px] p-0 flex justify-center z-50",children:c.jsx(ww,{...g()})})]})}function Nw({className:e,...t}){return c.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:c.jsx("table",{"data-slot":"table",className:N("w-full caption-bottom text-sm bg-white/[0.1]",e),...t})})}function Ew({className:e,...t}){return c.jsx("thead",{"data-slot":"table-header",className:N("[&_tr]:border-b border-neutral-black-4",e),...t})}function _w({className:e,...t}){return c.jsx("tbody",{"data-slot":"table-body",className:N("[&_tr:last-child]:border-0",e),...t})}function Mw({className:e,...t}){return c.jsx("tfoot",{"data-slot":"table-footer",className:N("border-t border-neutral-black-4 font-medium [&>tr]:last:border-b-0",e),...t})}function Ow({className:e,...t}){return c.jsx("tr",{"data-slot":"table-row",className:N("bg-transparent border-b border-neutral-black-4 transition-colors",e),...t})}function Tw({className:e,...t}){return c.jsx("th",{"data-slot":"table-head",className:N("text-neutral-black-1 text-sm font-medium max-h-14 p-4 text-left align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function Pw({className:e,...t}){return c.jsx("td",{"data-slot":"table-cell",className:N("p-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function Dw({className:e,...t}){return c.jsx("caption",{"data-slot":"table-caption",className:N("text-neutral-black-1/80 text-sm",e),...t})}D.Avatar=ab,D.AvatarFallback=ib,D.AvatarImage=sb,D.Badge=Ar,D.BaseInput=Ri,D.Breadcrumb=yb,D.BreadcrumbEllipsis=Eb,D.BreadcrumbItem=kb,D.BreadcrumbLink=Sb,D.BreadcrumbList=wb,D.BreadcrumbPage=Cb,D.BreadcrumbSeparator=Nb,D.Button=Se,D.Card=Hg,D.Checkbox=ts,D.DatePicker=Cw,D.Dialog=mm,D.DialogClose=pm,D.DialogContent=gm,D.DialogDescription=ym,D.DialogFooter=vm,D.DialogHeader=bm,D.DialogOverlay=Us,D.DialogPortal=Gs,D.DialogTitle=xm,D.DialogTrigger=hm,D.Divider=tc,D.Input=Ii,D.InputLabel=Wi,D.MultiSelect=zl,D.Navigation=Ob,D.NavigationEnd=Pb,D.NavigationStart=Tb,D.NotificationContent=kv,D.NotificationContentRoot=hc,D.Page404=xb,D.PasswordInput=mp,D.PhoneInput=tg,D.Placeholder=bb,D.ProgressIndicator=nc,D.RadioGroup=La,D.RadioGroupItem=$a,D.SearchInput=hp,D.SelectOption=Vg,D.Sidebar=Zb,D.SidebarContent=ov,D.SidebarFooter=nv,D.SidebarGroup=av,D.SidebarGroupAction=iv,D.SidebarGroupContent=lv,D.SidebarGroupLabel=sv,D.SidebarHeader=tv,D.SidebarInset=ev,D.SidebarMenu=cv,D.SidebarMenuAction=mv,D.SidebarMenuBadge=hv,D.SidebarMenuButton=fv,D.SidebarMenuItem=dv,D.SidebarMenuSkeleton=pv,D.SidebarMenuSub=gv,D.SidebarMenuSubButton=vv,D.SidebarMenuSubItem=bv,D.SidebarProvider=Xb,D.SidebarRail=Jb,D.SidebarSeparator=rv,D.SidebarTrigger=Qb,D.SingleSelect=Bl,D.Skeleton=Eo,D.Table=Nw,D.TableBody=_w,D.TableCaption=Dw,D.TableCell=Pw,D.TableFooter=Mw,D.TableHead=Tw,D.TableHeader=Ew,D.TableRow=Ow,D.Tabs=Bb,D.TabsContent=Yb,D.TabsList=zb,D.TabsTrigger=Vb,D.Timeline=gb,D.Toggle=ru,D.Tooltip=cp,D.TooltipContent=up,D.TooltipProvider=Ai,D.TooltipTrigger=dp,D.cn=N,D.useSidebar=sn,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
|