PageSourceSearch

https://www.workmate.com/_next/static/immutable/chunks/03ogl347goxgh.js

js workmate.com collected 2026-10-01 12:08:02 UTC 385,272 bytes, 42 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="ab19abcf-7184-d480-ec7a-a3e162f3406f")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,207670,e=>{"use strict";function t(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=function e(t){var r,n,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(a&&(a+=" "),a+=n)}else for(n in t)t[n]&&(a&&(a+=" "),a+=n);return a}(e))&&(n&&(n+=" "),n+=t);return n}e.s(["clsx",0,t,"default",0,t])},363178,e=>{"use strict";var t=e.i(271645),r=(e,t,r,n,a,o,i,l)=>{let s=document.documentElement,d=["light","dark"];function c(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,n=r&&o?a.map(e=>o[e]||e):a;r?(s.classList.remove(...n),s.classList.add(o&&o[t]?o[t]:t)):s.setAttribute(e,t)}),r=t,l&&d.includes(r)&&(s.style.colorScheme=r)}if(n)c(n);else try{let e=localStorage.getItem(t)||r,n=i&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(n)}catch(e){}},n=["light","dark"],a="(prefers-color-scheme: dark)",o="u"<typeof window,i=t.createContext(void 0),l={setTheme:e=>{},themes:[]},s=["light","dark"],d=({forcedTheme:e,disableTransitionOnChange:r=!1,enableSystem:o=!0,enableColorScheme:l=!0,storageKey:d="theme",themes:m=s,defaultTheme:h=o?"system":"light",attribute:g="data-theme",value:v,children:x,nonce:b,scriptProps:y})=>{let[w,k]=t.useState(()=>u(d,h)),[j,N]=t.useState(()=>"system"===w?f():w),C=v?Object.values(v):m,S=t.useCallback(e=>{let t=e;if(!t)return;"system"===e&&o&&(t=f());let a=v?v[t]:t,i=r?p(b):null,s=document.documentElement,d=e=>{"class"===e?(s.classList.remove(...C),a&&s.classList.add(a)):e.startsWith("data-")&&(a?s.setAttribute(e,a):s.removeAttribute(e))};if(Array.isArray(g)?g.forEach(d):d(g),l){let e=n.includes(h)?h:null,r=n.includes(t)?t:e;s.style.colorScheme=r}null==i||i()},[b]),E=t.useCallback(e=>{let t="function"==typeof e?e(w):e;k(t);try{localStorage.setItem(d,t)}catch(e){}},[w]),R=t.useCallback(t=>{N(f(t)),"system"===w&&o&&!e&&S("system")},[w,e]);t.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(R),R(e),()=>e.removeListener(R)},[R]),t.useEffect(()=>{let e=e=>{e.key===d&&(e.newValue?k(e.newValue):E(h))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[E]),t.useEffect(()=>{S(null!=e?e:w)},[e,w]);let M=t.useMemo(()=>({theme:w,setTheme:E,forcedTheme:e,resolvedTheme:"system"===w?j:w,themes:o?[...m,"system"]:m,systemTheme:o?j:void 0}),[w,E,e,j,o,m]);return t.createElement(i.Provider,{value:M},t.createElement(c,{forcedTheme:e,storageKey:d,attribute:g,enableSystem:o,enableColorScheme:l,defaultTheme:h,value:v,themes:m,nonce:b,scriptProps:y}),x)},c=t.memo(({forcedTheme:e,storageKey:n,attribute:a,enableSystem:o,enableColorScheme:i,defaultTheme:l,value:s,themes:d,nonce:c,scriptProps:u})=>{let p=JSON.stringify([a,n,l,e,d,s,o,i]).slice(1,-1);return t.createElement("script",{...u,suppressHydrationWarning:!0,nonce:"u"<typeof window?c:"",dangerouslySetInnerHTML:{__html:`(${r.toString()})(${p})`}})}),u=(e,t)=>{let r;if(!o){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},p=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},f=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light");e.s(["ThemeProvider",0,e=>t.useContext(i)?t.createElement(t.Fragment,null,e.children):t.createElement(d,{...e}),"useTheme",0,()=>{var e;return null!=(e=t.useContext(i))?e:l}])},320553,e=>{"use strict";let t={fast:150,swift:200,normal:250,slow:400}
2,r={snap:{type:"spring",visualDuration:t.fast/1e3,bounce:.1},layout:{type:"spring",visualDuration:t.fast/1e3,bounce:0},chipExit:{type:"spring",visualDuration:t.swift/1e3,bounce:0}};e.s(["DURATION",0,t,"EASING",0,{app:"cubic-bezier(0.32, 0.72, 0, 1)",out:"cubic-bezier(0, 0, 0.2, 1)",in:"cubic-bezier(0.4, 0, 1, 1)",inOut:"cubic-bezier(0.4, 0, 0.6, 1)",bounce:"cubic-bezier(0.5, 1.5, 0.6, 1)",quick:"cubic-bezier(0.16, 1, 0.3, 1)"},"SPRING",0,r])},414540,e=>{"use strict";var t=e.i(271645);let r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},n=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var a={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"};let o=(0,t.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:l="",children:s,iconNode:d,...c},u)=>(0,t.createElement)("svg",{ref:u,...a,width:r,height:r,stroke:e,strokeWidth:i?24*Number(o)/Number(r):o,className:n("lucide",l),...!s&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(c)&&{"aria-hidden":"true"},...c},[...d.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(s)?s:[s]]));e.s(["default",0,(e,a)=>{let i=(0,t.forwardRef)(({className:i,...l},s)=>(0,t.createElement)(o,{ref:s,iconNode:a,className:n(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...l}));return i.displayName=r(e),i}],414540)},420597,e=>{"use strict";let t=(0,e.i(414540).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",0,t],420597)},285159,665623,632137,426528,981140,820783,30030,248425,75830,934620,610772,30207,369340,586318,842727,635804,999682,296626,202687,991918,e=>{"use strict";let t,r,n;var a=e.i(843476),o=e.i(271645),i=e.i(207670);let l=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=i.clsx,d=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return s(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:o}=t,i=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],n=null==o?void 0:o[e];if(null===t)return null;let i=l(t)||l(n);return a[e][i]}),d=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return s(e,i,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...a}=t;return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...d}[t]):({...o,...d})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)};e.s(["cva",0,d],665623);let c=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),u=[],p=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let n=e[t],a=r.nextPart.get(n);if(a){let r=p(e,t+1,a);if(r)return r}let o=r.validators;if(null===o)return;let i=0===t?e.join("-"):e.slice(t).join("-"),l=o.length;for(let e=0;e<l;e++){let t=o[e];if(t.validator(i))return t.classGroupId}},f=(e,t)=>{let r=c();for(let n in e)m(e[n],r,n,t);return r},m=(e,t,r,n)=>{let a=e.length;for(let o=0;o<a;o++)h(e[o],t,r,n)},h=(e,t,r,n)=>{"string"==typeof e?g(e,t,r):"function"==typeof e?v(e,t,r,n):x(e,t,r,n)},g=(e,t,r)=>{(""===e?t:b(t,e)).classGroupId=r},v=(e,t,r,n)=>{y(e)?m(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e}))},x=(e,t,r,n)=>{let a=Object.entries(e),o=a.length;for(let e=0;e<o;e++){let[o,i]=a[e];m(i,b(t,o),r,n)}},b=(e,t)=>{let r=e,n=t.split("-"),a=n.length;for(let e=0;e<a;e++){let t=n[e],a=r.nextPart.get(t);a||(a=c(),r.nextPart.set(t,a)),r=a}return r},y=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,w=[],k=(e,t,r,n,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:a}),j=/\s+/,N=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=N(e[n]))&&(r&&(r+=" "),r+=t);return r},C=(e,...t)=>{let r,n,a,o,i=e=>{let t=n(e);if(t)return t;let o=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:o}=t,i=[],l=e.trim().split(j),s="";for(let e=l.length-1;e>=0;e-=1){let t=l[e],{isExternal:d,modifiers:c,hasImportantModifier:u,baseClassName:p,maybePostfixModifierPosition:f}=r(t);if(d){s=t+(s.length>0?" "+s:s);continue}let m=!!f,h=n(m?p.substring(0,f):p);if(!h){if(!m||!(h=n(p))){s=t+(s.length>0?" "+s:s);continue}m=!1}let g=0===c.length?"":1===c.length?c[0]:o(c).join(":"),v=u?g+"!":g,x=v+h;if(i.indexOf(x)>-1)continue;i.push(x);let b=a(h,m);for(let e=0;e<b.length;++e){let t=b[e];i.push(v+t)}s=t+(s.length>0?" "+s:s)}return s})(e,r);return a(e,o),o};return o=l=>{var s;let d;return n=(r={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),a=(a,o)=>{r[a]=o,++t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(a(e,t),t):void 0},set(e,t){e in r?r[e]=t:a(e,t)}}})((s=t.reduce((e,t)=>
2t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,n=e=>{let t,r=[],n=0,a=0,o=0,i=e.length;for(let l=0;l<i;l++){let i=e[l];if(0===n&&0===a){if(":"===i){r.push(e.slice(o,l)),o=l+1;continue}if("/"===i){t=l;continue}}"["===i?n++:"]"===i?n--:"("===i?a++:")"===i&&a--}let l=0===r.length?e:e.slice(o),s=l,d=!1;return l.endsWith("!")?(s=l.slice(0,-1),d=!0):l.startsWith("!")&&(s=l.slice(1),d=!0),k(r,d,s,t&&t>o?t-o:void 0)};if(t){let e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):k(w,!1,t,void 0,!0)}if(r){let e=n;n=t=>r({className:t,parseClassName:e})}return n})(s),sortModifiers:(d=new Map,s.orderSensitiveModifiers.forEach((e,t)=>{d.set(e,1e6+t)}),e=>{let t=[],r=[];for(let n=0;n<e.length;n++){let a=e[n],o="["===a[0],i=d.has(a);o||i?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(a)):r.push(a)}return r.length>0&&(r.sort(),t.push(...r)),t}),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return f(r,t)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var r;let t,n,a;return -1===(r=e).slice(1,-1).indexOf(":")?void 0:(n=(t=r.slice(1,-1)).indexOf(":"),(a=t.slice(0,n))?"arbitrary.."+a:void 0)}let n=e.split("-"),a=+(""===n[0]&&n.length>1);return p(n,a,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=n[e],a=r[e];if(t){if(a){let e=Array(a.length+t.length);for(let t=0;t<a.length;t++)e[t]=a[t];for(let r=0;r<t.length;r++)e[a.length+r]=t[r];return e}return t}return a||u}return r[e]||u}}})(s)}).cache.get,a=r.cache.set,o=i,i(l)},(...e)=>o(((...e)=>{let t,r,n=0,a="";for(;n<e.length;)(t=e[n++])&&(r=N(t))&&(a&&(a+=" "),a+=r);return a})(...e))},S=[],E=e=>{let t=t=>t[e]||S;return t.isThemeGetter=!0,t},R=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,M=/^\((?:(\w[\w-]*):)?(.+)\)$/i,P=/^\d+\/\d+$/,T=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,I=/\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$/,D=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,L=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,A=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>P.test(e),O=e=>!!e&&!Number.isNaN(Number(e)),$=e=>!!e&&Number.isInteger(Number(e)),F=e=>e.endsWith("%")&&O(e.slice(0,-1)),H=e=>T.test(e),_=()=>!0,B=e=>I.test(e)&&!D.test(e),W=()=>!1,V=e=>L.test(e),G=e=>A.test(e),U=e=>!K(e)&&!ee(e),q=e=>el(e,eu,W),K=e=>R.test(e),Y=e=>el(e,ep,B),X=e=>el(e,ef,O),Z=e=>el(e,ed,W),J=e=>el(e,ec,G),Q=e=>el(e,eh,V),ee=e=>M.test(e),et=e=>es(e,ep),er=e=>es(e,em),en=e=>es(e,ed),ea=e=>es(e,eu),eo=e=>es(e,ec),ei=e=>es(e,eh,!0),el=(e,t,r)=>{let n=R.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},es=(e,t,r=!1)=>{let n=M.exec(e);return!!n&&(n[1]?t(n[1]):r)},ed=e=>"position"===e||"percentage"===e,ec=e=>"image"===e||"url"===e,eu=e=>"length"===e||"size"===e||"bg-size"===e,ep=e=>"length"===e,ef=e=>"number"===e,em=e=>"family-name"===e,eh=e=>"shadow"===e,eg=()=>{let e=E("color"),t=E("font"),r=E("text"),n=E("font-weight"),a=E("tracking"),o=E("leading"),i=E("breakpoint"),l=E("container"),s=E("spacing"),d=E("radius"),c=E("shadow"),u=E("inset-shadow"),p=E("text-shadow"),f=E("drop-shadow"),m=E("blur"),h=E("perspective"),g=E("aspect"),v=E("ease"),x=E("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...y(),ee,K],k=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],N=()=>[ee,K,s],C=()=>[z,"full","auto",...N()],S=()=>[$,"none","subgrid",ee,K],R=()=>["auto",{span:["full",$,ee,K]},$,ee,K],M=()=>[$,"auto",ee,K],P=()=>["auto","min","max","fr",ee,K],T=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...N()],L=()=>[z,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],A=()=>[e,ee,K],B=()=>[...y(),en,Z,{position:[ee,K]}],W=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",ea,q,{size:[ee,K]}],G=()=>[F,et,Y],el=()=>["","none","full",d,ee,K],es=()=>["",O,et,Y],ed=()=>["solid","dashed","dotted","double"],ec=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],eu=()=>[O,F,en,Z],ep=()=>["","none",m,ee,K],ef=()=>["none",O,ee,K],em=()=>["none",O,ee,K],eh=()=>[O,ee,K],eg=()=>[z,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[H],breakpoint:[H],color:[_],container:[H],"drop-shadow":[H],ease:["in","out","in-out"],font:[U],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[H],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[H],shadow:[H],spacing:["px",O],text:[H],"text-shadow":[H],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",z,K,ee,g]}
vendor: 5,582 bytes, line 2
2],container:["container"],columns:[{columns:[O,K,ee,l]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"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:w()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{start:C()}],end:[{end:C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[$,"auto",ee,K]}],basis:[{basis:[z,"full","auto",l,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[O,z,"auto","initial","none",K]}],grow:[{grow:["",O,ee,K]}],shrink:[{shrink:["",O,ee,K]}],order:[{order:[$,"first","last","none",ee,K]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:R()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:R()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...T(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...T()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":T()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],w:[{w:[l,"screen",...L()]}],"min-w":[{"min-w":[l,"screen","none",...L()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",r,et,Y]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,ee,X]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",F,K]}],"font-family":[{font:[er,K,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:[a,ee,K]}],"line-clamp":[{"line-clamp":[O,"none",ee,X]}],leading:[{leading:[o,...N()]}],"list-image":[{"list-image":["none",ee,K]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ee,K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ed(),"wavy"]}],"text-decoration-thickness":[{decoration:[O,"from-font","auto",ee,Y]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[O,"auto",ee,K]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee,K]}],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",ee,K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:B()}],"bg-repeat":[{bg:W()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$,ee,K],radial:["",ee,K],conic:[$,ee,K]},eo,J]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:G()}
2],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:el()}],"rounded-s":[{"rounded-s":el()}],"rounded-e":[{"rounded-e":el()}],"rounded-t":[{"rounded-t":el()}],"rounded-r":[{"rounded-r":el()}],"rounded-b":[{"rounded-b":el()}],"rounded-l":[{"rounded-l":el()}],"rounded-ss":[{"rounded-ss":el()}],"rounded-se":[{"rounded-se":el()}],"rounded-ee":[{"rounded-ee":el()}],"rounded-es":[{"rounded-es":el()}],"rounded-tl":[{"rounded-tl":el()}],"rounded-tr":[{"rounded-tr":el()}],"rounded-br":[{"rounded-br":el()}],"rounded-bl":[{"rounded-bl":el()}],"border-w":[{border:es()}],"border-w-x":[{"border-x":es()}],"border-w-y":[{"border-y":es()}],"border-w-s":[{"border-s":es()}],"border-w-e":[{"border-e":es()}],"border-w-t":[{"border-t":es()}],"border-w-r":[{"border-r":es()}],"border-w-b":[{"border-b":es()}],"border-w-l":[{"border-l":es()}],"divide-x":[{"divide-x":es()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":es()}
vendor: 6,160 bytes, line 2
2],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ed(),"hidden","none"]}],"divide-style":[{divide:[...ed(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...ed(),"none","hidden"]}],"outline-offset":[{"outline-offset":[O,ee,K]}],"outline-w":[{outline:["",O,et,Y]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",c,ei,Q]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",u,ei,Q]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:es()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[O,Y]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":es()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",p,ei,Q]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[O,ee,K]}],"mix-blend":[{"mix-blend":[...ec(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ec()}],"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":[O]}],"mask-image-linear-from-pos":[{"mask-linear-from":eu()}],"mask-image-linear-to-pos":[{"mask-linear-to":eu()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":eu()}],"mask-image-t-to-pos":[{"mask-t-to":eu()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":eu()}],"mask-image-r-to-pos":[{"mask-r-to":eu()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":eu()}],"mask-image-b-to-pos":[{"mask-b-to":eu()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":eu()}],"mask-image-l-to-pos":[{"mask-l-to":eu()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":eu()}],"mask-image-x-to-pos":[{"mask-x-to":eu()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":eu()}],"mask-image-y-to-pos":[{"mask-y-to":eu()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[ee,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":eu()}],"mask-image-radial-to-pos":[{"mask-radial-to":eu()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"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":y()}],"mask-image-conic-pos":[{"mask-conic":[O]}],"mask-image-conic-from-pos":[{"mask-conic-from":eu()}],"mask-image-conic-to-pos":[{"mask-conic-to":eu()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:W()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ee,K]}],filter:[{filter:["","none",ee,K]}],blur:[{blur:ep()}],brightness:[{brightness:[O,ee,K]}],contrast:[{contrast:[O,ee,K]}],"drop-shadow":[{"drop-shadow":["","none",f,ei,Q]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",O,ee,K]}],"hue-rotate":[{"hue-rotate":[O,ee,K]}],invert:[{invert:["",O,ee,K]}],saturate:[{saturate:[O,ee,K]}],sepia:[{sepia:["",O,ee,K]}],"backdrop-filter":[{"backdrop-filter":["","none",ee,K]}],"backdrop-blur":[{"backdrop-blur":ep()}],"backdrop-brightness":[{"backdrop-brightness":[O,ee,K]}],"backdrop-contrast":[{"backdrop-contrast":[O,ee,K]}],"backdrop-grayscale":[{"backdrop-grayscale":["",O,ee,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[O,ee,K]}],"backdrop-invert":[{"backdrop-invert":["",O,ee,K]}],"backdrop-opacity":[{"backdrop-opacity":[O,ee,K]}],"backdrop-saturate":[{"backdrop-saturate":[O,ee,K]}],"backdrop-sepia":[{"backdrop-sepia":["",O,ee,K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ee,K]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[O,"initial",ee,K]}],ease:[{ease:["linear","initial",v,ee,K]}],delay:[{delay:[O,ee,K]}],animate:[{animate:["none",x,ee,K]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,ee,K]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:ef()}],"rotate-x":[{"rotate-x":ef()}],"rotate-y":[{"rotate-y":ef()}],"rotate-z":[{"rotate-z":ef()}],scale:[{scale:em()}],"scale-x":[{"scale-x":em()}],"scale-y":[{"scale-y":em()}],"scale-z":[{"scale-z":em()}],"scale-3d":["scale-3d"],skew:[{skew:eh()}],"skew-x":[{"skew-x":eh()}],"skew-y":[{"skew-y":eh()}],transform:[{transform:[ee,K,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:eg()}],"translate-x":[{"translate-x":eg()}],"translate-y":[{"translate-y":eg()}],"translate-z":[{"translate-z":eg()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}
2],"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",ee,K]}],"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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",ee,K]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[O,et,Y,X]}],stroke:[{stroke:["none",...A()]}],"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"]}},ev=(e,t,r)=>{void 0!==r&&(e[t]=r)},ex=(e,t)=>{if(t)for(let r in t)ev(e,r,t[r])},eb=(e,t)=>{if(t)for(let r in t)ey(e,t,r)},ey=(e,t,r)=>{let n=t[r];void 0!==n&&(e[r]=e[r]?e[r].concat(n):n)},ew=((e,...t)=>"function"==typeof e?C(eg,e,...t):C(()=>((e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:a={},override:o={}})=>(ev(e,"cacheSize",t),ev(e,"prefix",r),ev(e,"experimentalParseClassName",n),ex(e.theme,o.theme),ex(e.classGroups,o.classGroups),ex(e.conflictingClassGroups,o.conflictingClassGroups),ex(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ev(e,"orderSensitiveModifiers",o.orderSensitiveModifiers),eb(e.theme,a.theme),eb(e.classGroups,a.classGroups),eb(e.conflictingClassGroups,a.conflictingClassGroups),eb(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),ey(e,a,"orderSensitiveModifiers"),e))(eg(),e),...t))({extend:{classGroups:{"font-size":[{text:["xxs","xxl","xxxl"]}
2]}}});function ek(...e){return ew((0,i.clsx)(e))}e.s(["cn",0,ek],632137);let ej=d("relative inline-flex items-center justify-center rounded-full overflow-hidden",{variants:{size:{sm:"w-6 h-6 text-xxs",default:"w-8 h-8 text-xs",lg:"w-10 h-10 text-sm",xl:"w-12 h-12 text-base"}},defaultVariants:{size:"default"}}),eN=o.forwardRef(({className:e,size:t,src:r,alt:n,initials:i,colorSeed:l,overlaySrc:s,...d},c)=>{let[u,p]=o.useState(!1);o.useEffect(()=>{p(!1)},[r]);let f=r&&!u;return(0,a.jsxs)("div",{ref:c,role:"img","aria-label":n??i??void 0,className:ek(ej({size:t}),!f&&"bg-brand/10 dark:bg-brand/15",e),...d,children:[f?(0,a.jsx)("img",{src:r,alt:n??"",className:"w-full h-full object-cover",onError:()=>p(!0)}):(0,a.jsx)("span",{"aria-hidden":"true",className:"translate-y-px font-sans font-bold text-brand select-none",children:(i??"?").slice(0,2).toUpperCase()}),s&&(0,a.jsx)("img",{src:s,alt:"","aria-hidden":"true",className:"absolute inset-0 w-full h-full object-cover"})]})});eN.displayName="Avatar",o.forwardRef(({className:e,count:t,...r},n)=>(0,a.jsx)("div",{ref:n,className:ek("absolute bottom-0 right-0 flex items-center justify-center rounded-full border-2 border-background",void 0!==t?"min-w-[18px] h-[18px] px-1":"w-3 h-3","bg-green-500 text-white",e),...r,children:void 0!==t&&(0,a.jsx)("span",{className:"text-xxs font-medium leading-none",children:t>99?"99+":t})})).displayName="AvatarBadge",o.forwardRef(({className:e,children:t,limit:r,...n},i)=>{let l=o.Children.toArray(t),s=r?l.slice(0,r):l,d=r?l.length-r:0;return(0,a.jsxs)("div",{ref:i,className:ek("flex -space-x-2",e),...n,children:[s,d>0&&(0,a.jsx)(eC,{count:d})]})}).displayName="AvatarGroup";let eC=o.forwardRef(({count:e,size:t="default",className:r,...n},o)=>(0,a.jsx)("div",{ref:o,className:ek(ej({size:t}),"bg-muted text-muted-foreground font-medium",r),...n,children:(0,a.jsxs)("span",{className:"text-xs",children:["+",e]})}));eC.displayName="AvatarGroupCount",e.s(["Avatar",0,eN],285159);let eS=d("inline-flex items-center rounded-full border font-medium [&>[data-icon=inline-start]]:mr-1 [&>[data-icon=inline-end]]:ml-1",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground",ghost:"border-transparent bg-transparent text-foreground hover:bg-accent",muted:"border-transparent bg-muted text-muted-foreground",success:"border-transparent bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400",warning:"border-transparent bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400"},size:{default:"px-2.5 py-0.5 text-xs",sm:"px-1.5 py-px text-xxs leading-tight",lg:"px-3 py-1 text-sm"}},defaultVariants:{variant:"default",size:"default"}}),eE=o.forwardRef(({className:e,variant:t,size:r,...n},o)=>(0,a.jsx)("span",{ref:o,className:ek(eS({variant:t,size:r}),e),...n}));function eR(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function eM(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function eP(...e){return t=>{let r=!1,n=e.map(e=>{let n=eM(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():eM(e[t],null)}}}}function eT(...e){return o.useCallback(eP(...e),e)}function eI(e,t=[]){let r=[],n=()=>{let t=r.map(e=>o.createContext(e));return function(r){let n=r?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let i=o.createContext(n),l=r.length;r=[...r,n];let s=t=>{let{scope:r,children:n,...s}=t,d=r?.[e]?.[l]||i,c=o.useMemo(()=>s,Object.values(s));return(0,a.jsx)(d.Provider,{value:c,children:n})};return s.displayName=t+"Provider",[s,function(r,a){let s=a?.[e]?.[l]||i,d=o.useContext(s);if(d)return d;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let a=r(e)[`__scope${n}`];return{...t,...a}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}eE.displayName="Badge",e.s(["Badge",0,eE],426528),"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,eR],981140),e.s(["composeRefs",0,eP,"useComposedRefs",0,eT],820783),e.s(["createContext",0,function(e,t){let r=o.createContext(t),n=e=>{let{children:t,...n}=e,i=o.useMemo(()=>n,Object.values(n));return(0,a.jsx)(r.Provider,{value:i,children:t})};return n.displayName=e+"Provider",[n,function(n){let a=o.useContext(r);if(a)return a;
2if(void 0!==t)return t;throw Error(`\`${n}\` must be used within \`${e}\``)}]},"createContextScope",0,eI],30030);var eD=e.i(174080),eL=Symbol("radix.slottable");function eA(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eL}var ez=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var r,n;let i,l,s,d=(n=r=`Primitive.${t}`,(i=o.forwardRef((e,t)=>{let{children:r,...n}=e;if(o.isValidElement(r)){var a;let e,i,l=(a=r,(i=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(i=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),s=function(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==o.Fragment&&(s.ref=t?eP(t,l):l),o.cloneElement(r,s)}return o.Children.count(r)>1?o.Children.only(null):null})).displayName=`${n}.SlotClone`,l=i,(s=o.forwardRef((e,t)=>{let{children:r,...n}=e,i=o.Children.toArray(r),s=i.find(eA);if(s){let e=s.props.children,r=i.map(t=>t!==s?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,a.jsx)(l,{...n,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,r):null})}return(0,a.jsx)(l,{...n,ref:t,children:r})})).displayName=`${r}.Slot`,s),c=o.forwardRef((e,r)=>{let{asChild:n,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(n?d:t,{...o,ref:r})});return c.displayName=`Primitive.${t}`,{...e,[t]:c}},{});function eO(e){var t;let r,n=(t=e,(r=o.forwardRef((e,t)=>{let{children:r,...n}=e;if(o.isValidElement(r)){var a;let e,i,l=(a=r,(i=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(i=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),s=function(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==o.Fragment&&(s.ref=t?eP(t,l):l),o.cloneElement(r,s)}return o.Children.count(r)>1?o.Children.only(null):null})).displayName=`${t}.SlotClone`,r),i=o.forwardRef((e,t)=>{let{children:r,...i}=e,l=o.Children.toArray(r),s=l.find(eF);if(s){let e=s.props.children,r=l.map(t=>t!==s?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,a.jsx)(n,{...i,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,r):null})}return(0,a.jsx)(n,{...i,ref:t,children:r})});return i.displayName=`${e}.Slot`,i}e.s(["Primitive",0,ez,"dispatchDiscreteCustomEvent",0,function(e,t){e&&eD.flushSync(()=>e.dispatchEvent(t))}],248425);var e$=Symbol("radix.slottable");function eF(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===e$}function eH(e){let t=e+"CollectionProvider",[r,n]=eI(t),[i,l]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:r}=e,n=o.default.useRef(null),l=o.default.useRef(new Map).current;return(0,a.jsx)(i,{scope:t,itemMap:l,collectionRef:n,children:r})};s.displayName=t;let d=e+"CollectionSlot",c=eO(d),u=o.default.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=eT(t,l(d,r).collectionRef);return(0,a.jsx)(c,{ref:o,children:n})});u.displayName=d;let p=e+"CollectionItemSlot",f="data-radix-collection-item",m=eO(p),h=o.default.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,s=o.default.useRef(null),d=eT(t,s),c=l(p,r);return o.default.useEffect(()=>(c.itemMap.set(s,{ref:s,...i}),()=>void c.itemMap.delete(s))),(0,a.jsx)(m,{...{[f]:""},ref:d,children:n})});return h.displayName=p,[{Provider:s,Slot:u,ItemSlot:h},function(t){let r=l(e+"CollectionConsumer",t);return o.default.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}e.s(["createCollection",0,eH],75830);var e_=globalThis?.document?o.useLayoutEffect:()=>{};
2e.s(["useLayoutEffect",0,e_],934620);var eB=o[" useId ".trim().toString()]||(()=>void 0),eW=0;function eV(e){let[t,r]=o.useState(eB());return e_(()=>{e||r(e=>e??String(eW++))},[e]),e||(t?`radix-${t}`:"")}function eG(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...e)=>t.current?.(...e),[])}e.s(["useId",0,eV],610772),e.s(["useCallbackRef",0,eG],30207),o[" useEffectEvent ".trim().toString()],o[" useInsertionEffect ".trim().toString()];var eU=o[" useInsertionEffect ".trim().toString()]||e_;function eq({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[a,i,l]=function({defaultProp:e,onChange:t}){let[r,n]=o.useState(e),a=o.useRef(r),i=o.useRef(t);return eU(()=>{i.current=t},[t]),o.useEffect(()=>{a.current!==r&&(i.current?.(r),a.current=r)},[r,a]),[r,n,i]}({defaultProp:t,onChange:r}),s=void 0!==e,d=s?e:a;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==s){let t=s?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. 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.`)}t.current=s},[s,n])}return[d,o.useCallback(t=>{if(s){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else i(t)},[s,e,i,l])]}Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,eq],369340);var eK=o.createContext(void 0);function eY(e){let t=o.useContext(eK);return e||t||"ltr"}e.s(["useDirection",0,eY],586318);var eX="rovingFocusGroup.onEntryFocus",eZ={bubbles:!1,cancelable:!0},eJ="RovingFocusGroup",[eQ,e0,e1]=eH(eJ),[e2,e5]=eI(eJ,[e1]),[e4,e3]=e2(eJ),e6=o.forwardRef((e,t)=>(0,a.jsx)(eQ.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,a.jsx)(eQ.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,a.jsx)(e8,{...e,ref:t})})}));e6.displayName=eJ;var e8=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:l,currentTabStopId:s,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:p=!1,...f}=e,m=o.useRef(null),h=eT(t,m),g=eY(l),[v,x]=eq({prop:s,defaultProp:d??null,onChange:c,caller:eJ}),[b,y]=o.useState(!1),w=eG(u),k=e0(r),j=o.useRef(!1),[N,C]=o.useState(0);return o.useEffect(()=>{let e=m.current;if(e)return e.addEventListener(eX,w),()=>e.removeEventListener(eX,w)},[w]),(0,a.jsx)(e4,{scope:r,orientation:n,dir:g,loop:i,currentTabStopId:v,onItemFocus:o.useCallback(e=>x(e),[x]),onItemShiftTab:o.useCallback(()=>y(!0),[]),onFocusableItemAdd:o.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>C(e=>e-1),[]),children:(0,a.jsx)(ez.div,{tabIndex:b||0===N?-1:0,"data-orientation":n,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:eR(e.onMouseDown,()=>{j.current=!0}),onFocus:eR(e.onFocus,e=>{let t=!j.current;if(e.target===e.currentTarget&&t&&!b){let t=new CustomEvent(eX,eZ);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=k().filter(e=>e.focusable);tt([e.find(e=>e.active),e.find(e=>e.id===v),...e].filter(Boolean).map(e=>e.ref.current),p)}}j.current=!1}),onBlur:eR(e.onBlur,()=>y(!1))})})}),e7="RovingFocusGroupItem",e9=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:l,children:s,...d}=e,c=eV(),u=l||c,p=e3(e7,r),f=p.currentTabStopId===u,m=e0(r),{onFocusableItemAdd:h,onFocusableItemRemove:g,currentTabStopId:v}=p;return o.useEffect(()=>{if(n)return h(),()=>g()},[n,h,g]),(0,a.jsx)(eQ.ItemSlot,{scope:r,id:u,focusable:n,active:i,children:(0,a.jsx)(ez.span,{tabIndex:f?0:-1,"data-orientation":p.orientation,...d,ref:t,onMouseDown:eR(e.onMouseDown,e=>{n?p.onItemFocus(u):e.preventDefault()}),onFocus:eR(e.onFocus,()=>p.onItemFocus(u)),onKeyDown:eR(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let a=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(a))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)))return te[a]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=m().filter(e=>
2e.focusable).map(e=>e.ref.current);if("last"===t)a.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&a.reverse();let o=a.indexOf(e.currentTarget);a=p.loop?(r=a,n=o+1,r.map((e,t)=>r[(n+t)%r.length])):a.slice(o+1)}setTimeout(()=>tt(a))}}),children:"function"==typeof s?s({isCurrentTabStop:f,hasTabStop:null!=v}):s})})});e9.displayName=e7;var te={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tt(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function tr(e){let[t,r]=o.useState(void 0);return e_(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,a;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,a=t.blockSize}else n=e.offsetWidth,a=e.offsetHeight;r({width:n,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}function tn(e){let t=o.useRef({value:e,previous:e});return o.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}e.s(["Item",0,e9,"Root",0,e6,"createRovingFocusGroupScope",0,e5],842727),e.s(["useSize",0,tr],635804),e.s(["usePrevious",0,tn],999682);var ta=e=>{var t;let r,n,{present:a,children:i}=e,l=function(e){var t,r;let[n,a]=o.useState(),i=o.useRef(null),l=o.useRef(e),s=o.useRef("none"),[d,c]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},o.useReducer((e,t)=>r[e][t]??e,t));return o.useEffect(()=>{let e=to(i.current);s.current="mounted"===d?e:"none"},[d]),e_(()=>{let t=i.current,r=l.current;if(r!==e){let n=s.current,a=to(t);e?c("MOUNT"):"none"===a||t?.display==="none"?c("UNMOUNT"):r&&n!==a?c("ANIMATION_OUT"):c("UNMOUNT"),l.current=e}},[e,c]),e_(()=>{if(n){let e,t=n.ownerDocument.defaultView??window,r=r=>{let a=to(i.current).includes(CSS.escape(r.animationName));if(r.target===n&&a&&(c("ANIMATION_END"),!l.current)){let r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},a=e=>{e.target===n&&(s.current=to(i.current))};return n.addEventListener("animationstart",a),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",a),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:o.useCallback(e=>{i.current=e?getComputedStyle(e):null,a(e)},[])}}(a),s="function"==typeof i?i({present:l.isPresent}):o.Children.only(i),d=eT(l.ref,(t=s,(n=(r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof i||l.isPresent?o.cloneElement(s,{ref:d}):null};function to(e){return e?.animationName||"none"}ta.displayName="Presence",e.s(["Presence",0,ta],296626);var ti="Radio",[tl,ts]=eI(ti),[td,tc]=tl(ti),tu=o.forwardRef((e,t)=>{let{__scopeRadio:r,name:n,checked:i=!1,required:l,disabled:s,value:d="on",onCheck:c,form:u,...p}=e,[f,m]=o.useState(null),h=eT(t,e=>m(e)),g=o.useRef(!1),v=!f||u||!!f.closest("form");return(0,a.jsxs)(td,{scope:r,checked:i,disabled:s,children:[(0,a.jsx)(ez.button,{type:"button",role:"radio","aria-checked":i,"data-state":th(i),"data-disabled":s?"":void 0,disabled:s,value:d,...p,ref:h,onClick:eR(e.onClick,e=>{i||c?.(),v&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())})}),v&&(0,a.jsx)(tm,{control:f,bubbles:!g.current,name:n,value:d,checked:i,required:l,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});tu.displayName=ti;var tp="RadioIndicator",tf=o.forwardRef((e,t)=>{let{__scopeRadio:r,forceMount:n,...o}=e,i=tc(tp,r);return(0,a.jsx)(ta,{present:n||i.checked,children:(0,a.jsx)(ez.span,{"data-state":th(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})})});tf.displayName=tp;var tm=o.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...i},l)=>{let s=o.useRef(null),d=eT(s,l),c=tn(r),u=tr(t);return o.useEffect(()=>{let e=s.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(c!==r&&t){let a=new Event("click",{bubbles:n});t.call(e,r),e.dispatchEvent(a)}},[c,r,n]),(0,a.jsx)(ez.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...i,tabIndex:-1,ref:d,style:{...i.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function th(e){return e?"checked":"unchecked"}tm.displayName="RadioBubbleInput";var tg=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],tv="RadioGroup",[tx,tb]=eI(tv,[e5,ts]),ty=e5(),tw=ts(),[tk,tj]=tx(tv),tN=o.forwardRef((e,t)=>
2{let{__scopeRadioGroup:r,name:n,defaultValue:o,value:i,required:l=!1,disabled:s=!1,orientation:d,dir:c,loop:u=!0,onValueChange:p,...f}=e,m=ty(r),h=eY(c),[g,v]=eq({prop:i,defaultProp:o??null,onChange:p,caller:tv});return(0,a.jsx)(tk,{scope:r,name:n,required:l,disabled:s,value:g,onValueChange:v,children:(0,a.jsx)(e6,{asChild:!0,...m,orientation:d,dir:h,loop:u,children:(0,a.jsx)(ez.div,{role:"radiogroup","aria-required":l,"aria-orientation":d,"data-disabled":s?"":void 0,dir:h,...f,ref:t})})})});tN.displayName=tv;var tC="RadioGroupItem",tS=o.forwardRef((e,t)=>{let{__scopeRadioGroup:r,disabled:n,...i}=e,l=tj(tC,r),s=l.disabled||n,d=ty(r),c=tw(r),u=o.useRef(null),p=eT(t,u),f=l.value===i.value,m=o.useRef(!1);return o.useEffect(()=>{let e=e=>{tg.includes(e.key)&&(m.current=!0)},t=()=>m.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,a.jsx)(e9,{asChild:!0,...d,focusable:!s,active:f,children:(0,a.jsx)(tu,{disabled:s,required:l.required,checked:f,...c,...i,name:l.name,ref:p,onCheck:()=>l.onValueChange(i.value),onKeyDown:eR(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:eR(i.onFocus,()=>{m.current&&u.current?.click()})})})});tS.displayName=tC;var tE=o.forwardRef((e,t)=>{let{__scopeRadioGroup:r,...n}=e,o=tw(r);return(0,a.jsx)(tf,{...o,...n,ref:t})});tE.displayName="RadioGroupIndicator";let tR=o.forwardRef(({className:e,...t},r)=>(0,a.jsx)(tN,{className:ek("grid gap-2",e),...t,ref:r}));tR.displayName="RadioGroup";let tM=o.forwardRef(({className:e,...t},r)=>(0,a.jsx)(tS,{ref:r,className:ek("relative aspect-square h-4 w-4 shrink-0 rounded-full border transition-colors","border-black/22 dark:border-white/18","data-[state=checked]:border-brand","ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:(0,a.jsx)(tE,{className:"absolute inset-0 m-auto flex items-center justify-center",children:(0,a.jsx)("span",{className:"block size-2 rounded-full bg-brand"})})}));tM.displayName="RadioGroupItem",e.s(["RadioGroup",0,tR,"RadioGroupItem",0,tM],202687);var tP=Symbol.for("react.lazy"),tT=o[" use ".trim().toString()];function tI(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===tP&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var tD=((n=o.forwardRef((e,t)=>{let{children:r,...n}=e;if(tI(r)&&"function"==typeof tT&&(r=tT(r._payload)),o.isValidElement(r)){var a;let e,i,l=(a=r,(i=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(i=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),s=function(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==o.Fragment&&(s.ref=t?eP(t,l):l),o.cloneElement(r,s)}return o.Children.count(r)>1?o.Children.only(null):null})).displayName="Slot.SlotClone",t=n,(r=o.forwardRef((e,r)=>{let{children:n,...i}=e;tI(n)&&"function"==typeof tT&&(n=tT(n._payload));let l=o.Children.toArray(n),s=l.find(tA);if(s){let e=s.props.children,n=l.map(t=>t!==s?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,a.jsx)(t,{...i,ref:r,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,a.jsx)(t,{...i,ref:r,children:n})})).displayName="Slot.Slot",r),tL=Symbol("radix.slottable");function tA(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===tL}e.s(["Slot",0,tD],991918)},81522,234085,104080,207936,354885,10710,920165,187892,442326,587254,603818,521329,660344,225675,477443,423759,191710,617345,209534,586215,879601,409251,454655,924466,458047,536878,26306,581063,901001,851033,971822,393564,21079,894208,e=>{"use strict";let t;var r=e.i(843476),n=e.i(271645),a=e.i(991918),o=e.i(665623),i=e.i(414540);let l=(0,i.default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);var s=e.i(632137);let d=new Set,c=(0,o.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-button text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&>[data-icon=inline-start]]:mr-2 [&>[data-icon=inline-end]]:ml-2",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-button hover:bg-primary/90",accent:"btn-accent text-white font-semibold",destructive:"bg-destructive text-destructive-foreground shadow-button hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-button hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline","link-muted":"text-muted-foreground underline-offset-4 hover:text-foreground hover:underline",warm:"bg-surface-warm-muted text-foreground hover:bg-surface-warm-muted/70 active:bg-surface-warm-muted/50"},size:{default:"h-10 px-4 py-2",sm:"h-9 px-3",lg:"h-11 px-8",icon:"h-10 w-10","icon-xs":"h-7 w-7 [&_svg]:size-3.5","icon-sm":"h-8 w-8 [&_svg]:size-4","icon-lg":"h-12 w-12 [&_svg]:size-5"}},defaultVariants:{variant:"default",size:"default"}}),u=n.forwardRef(({className:e,variant:t,size:o,asChild:i=!1,loading:u=!1,children:p,disabled:f,...m},h)=>{let g=n.useId();if("production"!==globalThis.process?.env?.NODE_ENV){i&&u&&console.warn("Button: `loading` prop has no effect when `asChild` is true");let e=o?.toString().startsWith("icon"),t="string"==typeof p||Array.isArray(p)&&p.some(e=>"string"==typeof e);!e||t||m["aria-label"]||d.has(g)||(d.add(g),console.warn('Button: Icon-only buttons require aria-label for accessibility. Example: <Button size="icon" aria-label="More options"><Icon /></Button>'))}return i?(0,r.jsx)(a.Slot,{className:(0,s.cn)(c({variant:t,size:o,className:e})),ref:h,...m,children:p}):(0,r.jsxs)("button",{className:(0,s.cn)(c({variant:t,size:o,className:e})),ref:h,disabled:f||u,"aria-busy":u||void 0,...m,children:[u&&(0,r.jsx)(l,{className:"animate-spin"}),p]})});function p({icon:e,title:t,description:n,action:a,bordered:o=!1,compact:i=!1,children:l,className:d}){return(0,r.jsxs)("div",{className:(0,s.cn)("flex flex-col items-center justify-center text-center",i?"py-8":"py-16",o&&"border border-dashed border-border rounded-lg",d),children:[(0,r.jsx)("div",{className:(0,s.cn)("rounded-full bg-muted",i?"p-2.5 mb-3":"p-4 mb-4"),children:(0,r.jsx)(e,{className:(0,s.cn)("text-muted-foreground",i?"w-5 h-5":"w-8 h-8")})}),(0,r.jsx)("h2",{className:(0,s.cn)("font-medium text-foreground",i?"text-sm mb-1":"text-lg mb-2"),children:t}),(0,r.jsx)("p",{className:(0,s.cn)("text-muted-foreground max-w-md",i?"text-xs":"text-sm"),children:n}),l?(0,r.jsx)("div",{className:i?"mt-3":"mt-4",children:l}):a&&(0,r.jsx)(u,{onClick:a.onClick,disabled:a.disabled,size:i?"sm":"default",className:i?"mt-3":"mt-4",children:a.label})]})}u.displayName="Button",e.s(["Button",0,u,"buttonVariants",0,c],81522),p.displayName="EmptyState",e.s(["EmptyState",0,p],234085);var f=e.i(207670);let m=(0,i.default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),h=(0,i.default)("arrow-right-left",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]),g=(0,i.default)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),v=(0,i.default)("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"}]]),x=(0,i.default)("bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]),b=(0,i.default)("briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);e.s(["Briefcase",0,b],104080);let y=(0,i.default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);e.s(["Calendar",0,y],207936);let w=(0,i.default)("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);e.s(["default",0,w],354885);let k=(0,i.default)("square-check-big",[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acy
2p4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),j=(0,i.default)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Clock",0,j],10710);let N=(0,i.default)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]),C=(0,i.default)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]),S=(0,i.default)("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);e.s(["DollarSign",0,S],920165);let E=(0,i.default)("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"}]]),R=(0,i.default)("file-pen",[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]]),M=(0,i.default)("file-search",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]),P=(0,i.default)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["FileText",0,P],187892);let T=(0,i.default)("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]),I=(0,i.default)("flask-conical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]),D=(0,i.default)("flag",[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]]),L=(0,i.default)("git-branch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);e.s(["GitBranch",0,L],442326);let A=(0,i.default)("git-pull-request",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]]),z=(0,i.default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["Globe",0,z],587254);let O=(0,i.default)("handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);e.s(["Handshake",0,O],603818);let $=(0,i.default)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]),F=(0,i.default)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),H=(0,i.default)("list-checks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]),_=(0,i.default)("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]),B=(0,i.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Mail",0,B],521329);let W=(0,i.default)("message-square-warning",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 15h.01",key:"q59x07"}],["path",{d:"M12 7v4",key:"xawao1"}]]),V=(0,i.default)("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),G=(0,i.default)("newspaper",[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}
2],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]]),U=(0,i.default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);e.s(["Package",0,U],660344);let q=(0,i.default)("pen-line",[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]),K=(0,i.default)("presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]),Y=(0,i.default)("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"}]]),X=(0,i.default)("receipt",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]]),Z=(0,i.default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,Z],225675);let J=(0,i.default)("rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]),Q=(0,i.default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,Q],477443);let ee=(0,i.default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),et=(0,i.default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]),er=(0,i.default)("shield-alert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]),en=(0,i.default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
2],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",0,en],423759);let ea=(0,i.default)("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]),eo=(0,i.default)("ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]),ei=(0,i.default)("trending-down",[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]]),el=(0,i.default)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]);e.s(["TrendingUp",0,el],191710);let es=(0,i.default)("user-check",[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);e.s(["UserCheck",0,es],617345);let ed=(0,i.default)("user-plus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);e.s(["UserPlus",0,ed],209534);let ec=(0,i.default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);e.s(["Users",0,ec],586215);let eu=(0,i.default)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]),ep=(0,i.default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),ef=["linear-gradient(135deg, #d8c4ec, #f3b5c1)","linear-gradient(135deg, #f3d4b5, #ecebbe)","linear-gradient(135deg, #b8ecd4, #b8e4ec)","linear-gradient(135deg, #f3b5a4, #f3c4d4)","linear-gradient(135deg, #b8d4ec, #d8c4ec)","linear-gradient(135deg, #dcecb4, #b8ecd4)","linear-gradient(135deg, #f0b8d4, #f5c4a4)","linear-gradient(135deg, #ffe4a4, #f3b5a4)","linear-gradient(135deg, #f5c4a4, #f3c4d4)","linear-gradient(135deg, #a8c4f0, #b8ecd4)","linear-gradient(135deg, #c8a8e8, #b8e4ec)","radial-gradient(ellipse 60% 50% at 30% 30%, rgba(243,181,193,0.72), transparent 70%), radial-gradient(ellipse 70% 60% at 75% 75%, rgba(184,212,236,0.6), transparent 70%), radial-gradient(ellipse 50% 40% at 80% 30%, rgba(255,228,164,0.48), transparent 70%), #f9f1e2","radial-gradient(ellipse 60% 50% at 25% 25%, rgba(184,236,212,0.72), transparent 70%), radial-gradient(ellipse 70% 60% at 80% 70%, rgba(200,168,232,0.6), transparent 70%), radial-gradient(ellipse 50% 40% at 70% 25%, rgba(243,196,212,0.48), transparent 70%), #f3f6ec","radial-gradient(ellipse 60% 50% at 30% 70%, rgba(243,181,164,0.78), transparent 70%), radial-gradient(ellipse 60% 50% at 70% 30%, rgba(255,228,164,0.68), transparent 70%), radial-gradient(ellipse 50% 40% at 50% 50%, rgba(243,181,193,0.48), transparent 70%), #fbf2e4","radial-gradient(ellipse 60% 50% at 30% 30%, rgba(168,196,240,0.72), transparent 70%), radial-gradient(ellipse 70% 60% at 70% 75%, rgba(184,228,236,0.68), transparent 70%), radial-gradient(ellipse 50% 40% at 80% 25%, rgba(200,168,232,0.48), transparent 70%), #f0f4fa","radial-gradient(ellipse 60% 50% at 30% 30%, rgba(184,236,212,0.72), transparent 70%), radial-gradient(ellipse 70% 60% at 75% 75%, rgba(243,196,212,0.6), transparent 70%), radial-gradient(ellipse 50% 40% at 70% 30%, rgba(220,236,180,0.55), transparent 70%), #f5f6eb","linear-gradient(135deg, #ededf0, #d6dadf)"];function em(e){let t=Math.max(0,Math.floor(Math.abs(e)))%ef.length;return ef[t]}e.s(["PASTEL_WHEEL_PALETTE",0,ef,"pickPaletteBg",0,em],879601);let eh=((t=[]).push("radial-gradient(circle at center, transparent 42%, rgba(0,0,0,0.037500000000000006) 100%)"),t.push(`${function(e=.85){return`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='${e}' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ${.05} 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>")`}(1.2)} 0 0/120px 120px`),t.length>0?t.join(", "):"transparent"),eg=["puppet-1","puppet-2","puppet-3","puppet-4","puppet-5","puppet-6","puppet-7","puppet-8","puppet-9","puppet-10","puppet-11"],ev={"worky-default-476e0c5f":"worky-default",1:"1",2:"2",3:"3",4:"4",5:"5"};function ex(e){if(ev[e])return ev[e];if(eg.includes(e))return e;let t=function(e){let t=0;for(let r=0;r<e.length;r++)t=31*t+e.charCodeAt(r)>>>0;return t}(e)%eg.length;return eg[t]}function eb(e){return`/avatars/workclaw/${ex(e)}.png`}function ey(e,t){if(t<=0)return 0;let r=0;for(let t=0;t<e.length;t++)r=37*r+e.charCodeAt(t)+7>>>0;return r%t}e.s(["resolveAvatarBgIndex",0,ey,"resolveWorkclawSeed",0,ex,"workclawAvatarUrl",0,eb],409251);let ew={avatarStyleId:"workclaw",avatarShadowId:"black",avatarBgId:"pastel-wheel-palette",avatarOff
2setX:0,avatarOffsetY:17,avatarScale:131,avatarContrast:95,avatarShape:"rounded",avatarRadius:35,bgSaturation:111,bgBrightness:122,vignetteIntensity:5,vignetteSize:58,noiseIntensity:100,noiseOpacity:10,outlineOpacity:0,avatarSpacing:6,avatarLarge:!0,avatarsCentered:!0,avatarCadence:"every-turn",avatarPosition:"gutter",avatarBubbleSpacing:15};e.s(["AVATAR_DESIGN_STATE",0,ew],454655);let ek=(0,n.createContext)(null),ej=(0,n.forwardRef)(function({id:e,name:t,seed:a,bgIndex:o,imageUrl:i,bgGradient:l,customIconUrl:d,size:c=48,shape:u,provisioning:p=!1,selected:m=!1,hoverScale:h=!1,showOutline:g,className:v,"aria-label":x},b){let y=(0,n.useContext)(ek)??ew,w=ex(a??e),k="number"==typeof o?o:ey(e,ef.length),j="circle"===(u??y.avatarShape)?c/2:Math.round(c*y.avatarRadius/100),N=!!d,C=p?"rgb(243, 244, 246)":N?"transparent":l??em(k),S=N?"none":`translate(${y.avatarOffsetX}%, ${y.avatarOffsetY}%) scale(${y.avatarScale/100})`,E=N?d:i??eb(w),R=t?`${t} avatar`:"Claw avatar",M="boolean"==typeof g?g:y.outlineOpacity>0,P=y.outlineOpacity/100;return(0,r.jsx)("span",{ref:b,"aria-label":x??R,className:(0,s.cn)("relative inline-block transition-transform duration-normal ease-app",h&&"hover:scale-[1.12] active:scale-[0.98]",m&&"ring-2 ring-brand ring-offset-0",v),style:{width:c,height:c,borderRadius:j},children:(0,r.jsxs)("span",{"aria-hidden":!0,className:"absolute inset-0",style:{borderRadius:j,clipPath:`inset(0 round ${j}px)`},children:[(0,r.jsx)("span",{"aria-hidden":!0,className:"absolute inset-0 pointer-events-none",style:{background:C,filter:p||N?void 0:"saturate(111%) brightness(122%)"}}),(0,r.jsx)("span",{"aria-hidden":!0,className:"absolute inset-0 pointer-events-none",style:{background:N?"transparent":eh}}),(0,r.jsx)("img",{src:E,alt:R,draggable:!1,className:(0,f.default)("relative size-full object-cover pointer-events-none select-none"),style:{transform:S,transformOrigin:"center",filter:p?"grayscale(100%) contrast(85%) brightness(110%)":"contrast(95%)"}}),M&&P>0&&(0,r.jsx)("span",{"aria-hidden":!0,className:"absolute inset-0 pointer-events-none",style:{borderRadius:j,boxShadow:`inset 0 0 0 1px rgba(0,0,0,${P})`}})]})})});ej.displayName="ClawAvatar",e.s(["ClawAvatar",0,ej],924466),e.s([],458047);let eN={layout:"centered",greeting:"full-greeting",suggestions:"chips",avatarSize:96,animateIn:!0};function eC({className:e}){return(0,r.jsx)("div",{className:(0,s.cn)("flex items-center justify-center py-16",e),children:(0,r.jsx)(l,{className:"w-8 h-8 text-muted-foreground animate-spin"})})}function eS({title:e,description:t,actions:n,className:a}){return n?(0,r.jsxs)("header",{className:(0,s.cn)("flex items-start justify-between gap-4",a),children:[(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("h1",{className:"text-xxl font-semibold text-foreground",children:e}),t&&(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:t})]}),(0,r.jsx)("div",{className:"shrink-0",children:n})]}):(0,r.jsxs)("header",{className:(0,s.cn)("space-y-2",a),children:[(0,r.jsx)("h1",{className:"text-xxl font-semibold text-foreground",children:e}),t&&(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:t})]})}e.s(["ChatEmptyState",0,function({claw:e,avatarSeed:t,avatarBgIndex:a,avatarImageUrl:o,avatarBgGradient:i,customIconUrl:l,config:s=eN,onPromptClick:d,composerSlot:c,role:u,slackHandle:p,accessPhrase:ef,showSlackHandle:em=!0,prompts:eh}){var eg;let ev,ex,eb=s.avatarSize,[ey,ew]=(0,n.useState)(!s.animateIn);(0,n.useEffect)(()=>{if(!s.animateIn)return void ew(!0);ew(!1);let e=window.setTimeout(()=>ew(!0),16);return()=>window.clearTimeout(e)},[s.animateIn,e.id]);let ek="none"===(eg=s.greeting)?null:"name-only"===eg?e.name:"name-and-role"===eg?`${e.name} \xb7 ${e.role}`:`Hi, I'm ${e.name}. What can I help with?`,eC="minimal"!==s.layout&&null!==ek,eS="minimal"!==s.layout&&"none"!==s.suggestions,eE=eS?(eh??function(e){switch(e.id){case"sage":return["Compare pricing vs top 3","Track competitor launches","Pull churn signals","Find 5 customers like Acme","Summarize user interviews"];case"atlas":return["Draft tomorrow's standup","Find what's blocking v2","Audit stale tickets","Hand off to Wren","Schedule steering review"];case"vera":return["Find 10 Series-B leads","Draft a warm intro to Acme","Qualify this inbou
2nd","Pull stale deals (14d+)","Brief me before the call"];case"wren":return["Source 5 NYC engineers","Screen this resume","Book the hiring panel","Draft a kind rejection","Update the JD"];case"theo":return["Triage today's tickets","Find an SSO article","Reply to ticket #2841","Flag latency to eng","Summarize recurring issues"];default:return[`Pull ${e.role.toLowerCase()} updates`,"Draft a kickoff brief","Hand off to a teammate","Find a useful example","Set up a recurring digest"]}}(e)).slice(0,4):[];return(0,r.jsx)("div",{className:(0,f.default)("flex-1 flex flex-col items-center px-6","top-anchored"===s.layout?"justify-start pt-24":"justify-center"),children:(0,r.jsxs)("div",{className:(0,f.default)("flex flex-col items-center max-w-4xl w-full transition-all duration-slow ease-app",ey?"opacity-100 translate-y-0":"opacity-0 translate-y-1"),children:[(0,r.jsx)("div",{className:"relative shrink-0 shadow-(--shadow-bubble)",style:{width:eb,height:eb,borderRadius:9999},children:(0,r.jsx)(ej,{id:e.id,name:e.name,seed:t??void 0,bgIndex:"number"==typeof a?a:void 0,imageUrl:o??void 0,bgGradient:i??void 0,customIconUrl:l??void 0,size:eb,shape:"rounded"})}),eC&&(0,r.jsx)("div",{className:"mt-5 text-center",children:"full-greeting"===s.greeting?(0,r.jsxs)("p",{className:"text-2xl font-semibold tracking-tight text-neutral-800 dark:text-neutral-100 leading-snug",children:["Hi, I'm"," ",(0,r.jsx)("span",{className:"text-brand",children:e.name}),". What can I help with?"]}):"name-and-role"===s.greeting?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"text-lg font-semibold text-neutral-800 dark:text-neutral-100",children:e.name}),(0,r.jsx)("div",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:e.role})]}):(0,r.jsx)("div",{className:"text-lg font-semibold text-neutral-700 dark:text-neutral-200",children:e.name})}),eC&&(ev=em&&p?`@${p} on Slack`:null,0===(ex=[u?{key:"role",node:u}:null,ef?{key:"privacy",node:(0,r.jsxs)(r.Fragment,{children:["Shared with"," ",(0,r.jsx)("span",{className:"text-neutral-600 dar
2k:text-neutral-300",children:ef})]})}:null,ev?{key:"slack",node:ev}:null].filter(e=>null!==e)).length?null:(0,r.jsx)("div",{className:"mt-1.5 text-xs text-neutral-400 dark:text-neutral-500 text-center max-w-md leading-relaxed",children:ex.map((e,t)=>(0,r.jsxs)("span",{children:[t>0&&(0,r.jsx)("span",{"aria-hidden":!0,className:"px-1.5 text-neutral-300 dark:text-neutral-700",children:"·"}),e.node]},e.key))})),c&&(0,r.jsx)("div",{className:"mt-8 w-full max-w-2xl",children:c}),eS&&eE.length>0&&(0,r.jsx)("div",{className:(0,f.default)("mt-10 w-full","chips"===s.suggestions&&"flex flex-wrap justify-center gap-3","list"===s.suggestions&&"flex flex-col gap-1"),children:eE.map(e=>{let t,n=(t=e.toLowerCase(),/daily briefing|morning briefing/.test(t)?G:/research report/.test(t)?Q:/presentation|slide deck|slides/.test(t)?K:/lead|prospect|inbound|outbound/.test(t)?ea:/deal|proposal|renewal|qbr/.test(t)?b:/discount|approval|brief.*demo/.test(t)?ee:/cac|channel|growth/.test(t)?el:/screen|candidate|jd|hire/.test(t)?ed:/onboard|new hire/.test(t)?es:/at-risk|at risk|churn/.test(t)?ei:/comp|performance|engagement/.test(t)?ec:/triage|ticket|reply/.test(t)?eo:/article|kb|knowledge/.test(t)?M:/escalate|flag|risky|risk|incident/.test(t)?m:/account|expansion/.test(t)?$:/pr\b|review.*pr|migration/.test(t)?A:/regression|reproduce|flaky|test plan/.test(t)?I:/error|prod fail|latency|investigate/.test(t)?er:/deploy|release|roll back|rollback/.test(t)?J:/code|sdk|api/.test(t)?N:/branch|repo\b/.test(t)?L:/aws|infra|cost/.test(t)?S:/slo|alert|5xx|activation alert/.test(t)?v:/security|prod access|pen test|soc 2/.test(t)?et:/p&l|p\\&l|expense|reconcile/.test(t)?X:/stripe|payout|credit card/.test(t)?C:/invoice|vendor|spend/.test(t)?S:/runway|projection|board|finance/.test(t)?Y:/unusual|anomal/.test(t)?m:/cohort|retention/.test(t)?w:/funnel|drop-off|drop off|conversion/.test(t)?T:/signups|metrics|digest|by source/.test(t)?g:/this week vs|vs last|compare.*week/.test(t)?h:/power vs|power user|casual/.test(t)?ec:/unused feature/.test(t)?E:/synthesi|interview|themes|feedback|qualitative/.test(t)?W:/journey/.test(t)?V:/usability test/.test(t)?I:/swot|strategy memo|position vs/.test(t)?ea:/okr/.test(t)?k:/research|find|look up|search/.test(t)?Q:/competitor|market|compare/.test(t)?h:/scope creep/.test(t)?m:/roadmap|status|across teams|exec status/.test(t)?V:/plan|sprint|kickoff|spec/.test(t)?H:/sched|steering|crit|panel|call/.test(t)?y:/standup|daily/.test(t)?j:/blog|launch.*post|case study/.test(t)?q:/newsletter|outreach|partner.*outreach/.test(t)?B:/headline|name|brand/.test(t)?en:/voice|copy.*site|dissonance/.test(t)?E:/tighten|adapt|rewrite|copy/.test(t)?R:/quotes/.test(t)?x:/changelog|notes|out-of-date|out of date|conflicting docs|reorganize|meta-doc|docs updated|searches/.test(t)?P:/quickstart|onboarding doc|api ref/.test(t)?U:/translate|localiz|multi-language|idiom/.test(t)?_:/mock|figma|design|empty-state inspo|inspo/.test(t)?q:/hand off|hand this/.test(t)?h:/brief|summarize/.test(t)?P:/draft|write|reply|email/.test(t)?q:/msa|clause|contract|policy/.test(t)?et:/regulatory|update.*quarter/.test(t)?D:/audit/.test(t)?E:/categorize|fix|update/.test(t)?eu:/refresh|sync|recurring/.test(t)?Z:/co-marketing|partnership/.test(t)?O:/global|eu/.test(t)?z:/experiment|test/.test(t)?ep:/example|help|show me|what can/.test(t)?F:en);return"list"===s.suggestions?(0,r.jsx)("button",{type:"button",onClick:d?()=>d(e):void 0,className:"w-full text-left px-3 py-2 rounded-md text-sm text-neutral-700 dark:text-neutral-200 transition-colors hover:bg-white/60 dark:hover:bg-neutral-800/60",children:e},e):(0,r.jsxs)("button",{type:"button",onClick:d?()=>d(e):void 0,className:"inline-flex items-center gap-2 px-3.5 h-9 rounded-full bg-white dark:bg-neutral-800 ring-1 ring-inset ring-neutral-200/80 dark:ring-neutral-700/70 shadow-(--shadow-bubble) text-xs font-medium text-neutral-700 dark:text-neutral-200 press-pill hover:bg-neutral-50 dark:hover:bg-neutral-700/60 hover:ring-neutral-300 dark:hover:ring-neutral-600",children:[(0,r.jsx)(n,{size:14,strokeWidth:2,className:"shrink-0 text-brand"}),(0,r.jsx)("span",{className:"text-trim-cap",children:e})]},e)})})]})})}],536878),e.s([],26306),eC.displayName="PageLoader",e.s(["PageLoader",0,eC],581063),eS.displayName="PageHeader",e.s(["PageHeader",0,eS],901001);let eE=(0,i.default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);
2function eR({title:e,subtitle:t,onBack:n,backLabel:a="Back",stickyAction:o,children:i,className:l}){return(0,r.jsxs)("div",{className:(0,s.cn)("w-full space-y-8",l),children:[n&&(0,r.jsxs)(u,{variant:"link-muted",size:"sm",onClick:n,className:"fade-up fade-up-1",children:[(0,r.jsx)(eE,{className:"h-4 w-4"}),a]}),(0,r.jsxs)("header",{className:"text-center space-y-2 pb-2 fade-up fade-up-1",children:[(0,r.jsx)("h1",{className:"text-xxl sm:text-xxxl font-semibold text-foreground font-display tracking-tight",children:e}),t&&(0,r.jsx)("p",{className:"text-sm sm:text-base text-foreground",children:t})]}),(0,r.jsx)("div",{className:"w-full max-w-sm mx-auto space-y-8 fade-up fade-up-2",children:i}),o&&(0,r.jsx)("div",{className:"sticky bottom-0 pt-4 pb-6 max-w-sm mx-auto w-full fade-up fade-up-3",children:o})]})}function eM({title:e,description:t,className:n}){return(0,r.jsxs)("div",{className:(0,s.cn)("space-y-1",n),children:[(0,r.jsx)("h2",{className:"text-base font-semibold text-foreground",children:e}),t&&(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:t})]})}e.s(["ArrowLeft",0,eE],851033),eR.displayName="FlowPage",e.s(["FlowPage",0,eR],971822),eM.displayName="SectionHeader",e.s(["SectionHeader",0,eM],393564);let eP=n.forwardRef(({className:e,type:t,...n},a)=>(0,r.jsx)("input",{type:t,className:(0,s.cn)("flex w-full px-3 h-10 rounded-md border border-border bg-background text-sm text-foreground placeholder:text-foreground/30 focus:outline-none focus:ring-2 focus:ring-foreground/40 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...n}));eP.displayName="Input",e.s(["Input",0,eP],21079);let eT=n.forwardRef(({className:e,...t},n)=>(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(Q,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),(0,r.jsx)(eP,{ref:n,type:"text",className:(0,s.cn)("pl-10",e),...t})]}));eT.displayName="SearchInput",e.s(["SearchInput",0,eT],894208)},547412,401400,911123,819326,120254,726330,303536,765491,853660,774606,186312,985369,77847,160444,119420,331680,406120,411541,946560,420787,774177,825362,839690,669832,288599,837012,987806,623078,572871,593117,e=>{"use strict";let t,r,n,a;var o,i,l,s,d,c,u,p,f=e.i(843476),m=e.i(271645),h=e.i(477443),g=e.i(420597),v=e.i(632137);function x(e,t){try{let r=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"shortOffset"}).formatToParts(t).find(e=>"timeZoneName"===e.type);if(!r)return"";return r.value.replace(/-/g,"−")}catch{return""}}function b({value:e,placeholder:t,disabled:r,open:n,triggerRef:a,onToggle:o,onKeyDown:i,className:l,id:s,ariaLabel:d}){let c=e?x(e,new Date):"";return(0,f.jsxs)("button",{ref:a,id:s,type:"button","aria-haspopup":"listbox","aria-expanded":n,"aria-label":d,disabled:r,onClick:o,onKeyDown:i,className:(0,v.cn)("w-full h-10 px-3 rounded-lg","bg-neutral-50 dark:bg-neutral-800","ring-1 ring-neutral-200 dark:ring-neutral-700","text-sm text-left text-neutral-900 dark:text-neutral-100","focus:outline-none focus:ring-2 focus:ring-neutral-400 dark:focus:ring-neutral-500","flex items-center justify-between gap-2","disabled:opacity-50 disabled:cursor-not-allowed",l),children:[(0,f.jsx)("span",{className:"flex-1 min-w-0 truncate",children:e?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("span",{children:e}),c&&(0,f.jsxs)("span",{className:"text-neutral-500 dark:text-neutral-400",children:[" · ",c]})]}):(0,f.jsx)("span",{className:"text-neutral-400 dark:text-neutral-500",children:t??"Select timezone"})}),(0,f.jsx)(g.ChevronDown,{size:16,className:(0,v.cn)("shrink-0 text-neutral-500 dark:text-neutral-400 transition-transform",n&&"rotate-180")})]})}let y=(0,m.forwardRef)(function({value:e,onChange:t,placeholder:r,disabled:n,className:a,id:o,"aria-label":i},l){let s=(0,m.useMemo)(()=>(function(){try{if("function"!=typeof Intl.supportedValuesOf)return null;let e=Intl.supportedValuesOf("timeZone");if(!Array.isArray(e)||0===e.length)return null;let t=["UTC"],r=new Set(["UTC","Etc/UTC","Etc/GMT","GMT","Universal"]);for(let n of e)r.has(n)||(r.add(n),t.push(n));return t}catch{return null}})(),[]),[d,c]=(0,m.useState)(!1),[u,p]=(0,m.useState)(""),[g,y]=(0,m.useState)(0),w=(0,m.useRef)(null),k=(0,m.useRef)(null),j=(0,m.useRef)(null),N=(0,m.useRef)([]),C=(0,m.useRef)(null),S=(0,m.useId)(),E=(0,m.useCallback)(e=>{"function"==typeof l?l(e):l&&(l.current=e)},[l]);(0,m.useCallback)(e=>{w.current=e,E(e)},[E]);let R=(0,m.useMemo)(()=>
2{if(!s)return[];let e=u.trim().toLowerCase();if(!e)return s;let t=[];for(let r of s){let n=function(e,t){if(!t)return 0;let r=e.toLowerCase(),n=r.indexOf(t);return -1===n?1/0:r===t?-1e3:0===n?-100+e.length/1e3:"/"===e[n-1]?-50+n:n}(r,e);n!==1/0&&t.push({zone:r,score:n})}return t.sort((e,t)=>e.score-t.score),t.map(e=>e.zone)},[s,u]);(0,m.useEffect)(()=>{y(0)},[u]),(0,m.useEffect)(()=>{if(!d)return void p("");let t=e?R.indexOf(e):-1;t>=0&&y(t);let r=requestAnimationFrame(()=>{k.current?.focus()});return()=>cancelAnimationFrame(r)},[d]),(0,m.useEffect)(()=>{if(!d)return;let e=N.current[g];e&&e.scrollIntoView({block:"nearest"})},[d,g]),(0,m.useEffect)(()=>{if(!d)return;let e=e=>{let t=C.current;!t||e.target instanceof Node&&t.contains(e.target)||c(!1)},t=e=>{"Escape"===e.key&&(c(!1),w.current?.focus())};return window.addEventListener("mousedown",e),window.addEventListener("keydown",t),()=>{window.removeEventListener("mousedown",e),window.removeEventListener("keydown",t)}},[d]);let M=(0,m.useCallback)(e=>{t(e),c(!1),w.current?.focus()},[t]);if(!s)return(0,f.jsx)("input",{ref:E,id:o,type:"text","aria-label":i,value:e,disabled:n,onChange:e=>t(e.target.value),placeholder:r??"UTC",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",className:(0,v.cn)("w-full h-10 px-3 rounded-lg","bg-neutral-50 dark:bg-neutral-800","ring-1 ring-neutral-200 dark:ring-neutral-700","text-sm text-neutral-900 dark:text-neutral-100","focus:outline-none focus:ring-2 focus:ring-neutral-400 dark:focus:ring-neutral-500",a)});let P=new Date;return(0,f.jsxs)("div",{ref:C,className:"relative",children:[(0,f.jsx)(b,{value:e,placeholder:r,disabled:n,open:d,triggerRef:w,onToggle:()=>!n&&c(e=>!e),onKeyDown:e=>{!n&&("ArrowDown"===e.key||"ArrowUp"===e.key||"Enter"===e.key||" "===e.key?(e.preventDefault(),c(!0)):1===e.key.length&&/[a-zA-Z0-9_/+\- ]/.test(e.key)&&
2(c(!0),p(e.key),e.preventDefault()))},className:a,id:o,ariaLabel:i}),d&&(0,f.jsxs)("div",{className:(0,v.cn)("absolute left-0 right-0 top-full mt-1 z-50","rounded-lg bg-white dark:bg-neutral-800","ring-1 ring-inset ring-black/6 dark:ring-white/8","shadow-(--shadow-popover)","overflow-hidden"),children:[(0,f.jsxs)("div",{className:"relative px-2 pt-2 pb-1.5",children:[(0,f.jsx)(h.Search,{size:14,className:"absolute left-4 top-1/2 -translate-y-1/2 text-neutral-400 dark:text-neutral-500 pointer-events-none"}),(0,f.jsx)("input",{ref:k,type:"text",value:u,onChange:e=>p(e.target.value),onKeyDown:e=>{if("ArrowDown"===e.key)e.preventDefault(),0!==R.length&&y(e=>(e+1)%R.length);else if("ArrowUp"===e.key){if(e.preventDefault(),0===R.length)return;y(e=>(e-1+R.length)%R.length)}else if("Enter"===e.key){e.preventDefault();let t=R[g];t&&M(t)}else"Tab"===e.key?c(!1):"Escape"===e.key&&(e.preventDefault(),c(!1),w.current?.focus())},placeholder:"Search timezones",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",role:"combobox","aria-expanded":!0,"aria-controls":S,"aria-autocomplete":"list","aria-activedescendant":R[g]?`${S}-opt-${g}`:void 0,className:(0,v.cn)("w-full h-8 pl-7 pr-2 rounded-md","bg-neutral-50 dark:bg-neutral-900","ring-1 ring-neutral-200 dark:ring-neutral-700","text-sm text-neutral-900 dark:text-neutral-100","focus:outline-none focus:ring-2 focus:ring-neutral-400 dark:focus:ring-neutral-500")})]}),(0,f.jsx)("div",{ref:j,id:S,role:"listbox",className:"max-h-56 overflow-y-auto py-1",children:0===R.length?(0,f.jsxs)("div",{className:"px-3 py-2 text-xs text-neutral-500 dark:text-neutral-400",children:['No timezones match "',u,'".']}):R.map((t,r)=>{let n=x(t,P),a=r===g,o=t===e;return(0,f.jsxs)("button",{id:`${S}-opt-${r}`,ref:e=>{N.current[r]=e},type:"button",role:"option","aria-selected":o,onMouseDown:e=>e.preventDefault(),onMouseEnter:()=>y(r),onClick:()=>M(t),className:(0,v.cn)("w-full text-left px-3 py-1.5 text-sm flex items-baseline justify-between gap-2",a?"bg-neutral-100 dark:bg-neutral-700/60":"hover:bg-neutral-100 dark:hover:bg-neutral-700/60",o?"text-neutral-900 dark:text-neutral-100 font-medium":"text-neutral-700 dark:text-neutral-200"),children:[(0,f.jsx)("span",{className:"truncate",children:t}),n&&(0,f.jsx)("span",{className:"shrink-0 text-xs text-neutral-500 dark:text-neutral-400 tabular-nums",children:n})]},t)})})]})]})});y.displayName="TimezoneSelector",e.s(["TimezoneSelector",0,y],547412);var w=e.i(81522),k=e.i(414540);let j=(0,k.default)("calendar-days",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]),N=(0,k.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,N],401400);let C=(0,k.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,C],911123);var S=e.i(10710);let E=(0,k.default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,E],819326);let R=["S","M","T","W","T","F","S"],M=["January","February","March","April","May","June","July","August","September","October","November","December"];function P(e){return e.toString().padStart(2,"0")}function T(e){if(!e)return{date:null,hours:"00",minutes:"00"};let[t,r="00:00"]=e.split("T"),[n,a,o]=t.split("-").map(Number),[i,l]=r.split(":").map(Number);return n&&a&&o?{date:new Date(n,a-1,o),hours:P(Math.min(23,Math.max(0,i??0))),minutes:P(Math.min(59,Math.max(0,l??0)))}:{date:null,hours:"00",minutes:"00"}}function I(e,t,r){return`${e.getFullYear()}-${P(e.getMonth()+1)}-${P(e.getDate())}T${t}:${r}`}function D(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}let L=(0,m.forwardRef)(function({value:e,onChange:t,min:r,max:n,placeholder:a="Pick date & time",ariaLabel:o,className:i,triggerClassName:l,align:s="start"},d){let[c,u]=(0,m.useState)(!1),{date:p,hours:h,minutes:g}=(0,m.useMemo)(()=>T(e),[e]),[x,b]=(0,m.useState)(()=>p??new Date),y=(0,m.useRef)(null),k=(0,m.useId)(),L=(0,m.useCallback)(e=>{y.current=e,"function"==typeof d?d(e):d&&(d.current=e)},[d]);(0,m.useEffect)(()=>
2{if(!c)return;let e=e=>{y.current?.contains(e.target)||u(!1)},t=e=>{"Escape"===e.key&&u(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[c]);let z=(0,m.useMemo)(()=>new Date,[]),O=(0,m.useMemo)(()=>{let e,t,r;return t=(e=new Date(x.getFullYear(),x.getMonth(),1)).getDay(),(r=new Date(e)).setDate(1-t),Array.from({length:42},(e,t)=>{let n=new Date(r);return n.setDate(r.getDate()+t),n})},[x]),$=(0,m.useCallback)((e,a,o)=>{let i=I(e,a,o);r&&i<r&&(i=r),n&&i>n&&(i=n),t(i)},[n,r,t]),F=(0,m.useCallback)(e=>{$(e,h,g)},[$,h,g]),H=(0,m.useCallback)((e,t)=>{$(p??new Date,e,t)},[$,p]),_=(0,m.useCallback)(()=>t(""),[t]),B=(0,m.useCallback)(()=>{let e=new Date;$(e,P(e.getHours()),P(e.getMinutes()))},[$]),W=function(e){let t=T(e);if(!t.date)return"";let r=new Date(t.date);return r.setHours(Number(t.hours),Number(t.minutes),0,0),r.toLocaleString(void 0,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"})}(e);return(0,f.jsxs)("div",{ref:L,className:(0,v.cn)("relative",i),children:[(0,f.jsxs)("button",{type:"button","aria-label":o,"aria-haspopup":"dialog","aria-expanded":c,"aria-controls":c?k:void 0,onClick:()=>{u(e=>{let t=!e;return t&&b(p??new Date),t})},className:(0,v.cn)("group flex h-10 w-full items-center justify-between gap-2 rounded-md border border-border bg-background px-3 text-sm transition-colors","hover:border-foreground
2/30","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-foreground/40",c&&"border-foreground/40 ring-2 ring-foreground/20",!W&&"text-muted-foreground",W&&"pr-10",l),children:[(0,f.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,f.jsx)(j,{className:"size-4 shrink-0 text-muted-foreground"}),(0,f.jsx)("span",{className:"truncate text-left",children:W||a})]}),W?null:(0,f.jsx)(C,{className:(0,v.cn)("size-3.5 shrink-0 text-muted-foreground/60 transition-transform",c&&"rotate-90")})]}),W?(0,f.jsx)("button",{type:"button","aria-label":"Clear date",onClick:_,className:"absolute top-1/2 right-2 -translate-y-1/2 rounded-md p-1 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:(0,f.jsx)(E,{className:"size-3.5"})}):null,c?(0,f.jsxs)("div",{id:k,role:"dialog","aria-label":"Choose date and time",className:(0,v.cn)("absolute top-full z-50 mt-2 w-76 rounded-xl border border-border bg-popover p-3 text-popover-foreground shadow-xl","end"===s?"right-0":"left-0"),children:[(0,f.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,f.jsx)("button",{type:"button",onClick:()=>b(new Date(x.getFullYear(),x.getMonth()-1,1)),"aria-label":"Previous month",className:"rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:(0,f.jsx)(N,{className:"size-4"})}),(0,f.jsxs)("div",{className:"text-sm font-medium tabular-nums",children:[M[x.getMonth()]," ",x.getFullYear()]}),(0,f.jsx)("button",{type:"button",onClick:()=>b(new Date(x.getFullYear(),x.getMonth()+1,1)),"aria-label":"Next month",className:"rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:(0,f.jsx)(C,{className:"size-4"})})]}),(0,f.jsx)("div",{className:"mb-1 grid grid-cols-7 text-center text-xxs font-medium uppercase tracking-[0.08em] text-muted-foreground",children:R.map((e,t)=>(0,f.jsx)("div",{className:"py-1",children:e},`${e}-${t}`))}),(0,f.jsx)("div",{className:"grid grid-cols-7 gap-0.5",children:O.map(e=>{let t,a,o=e.getMonth()===x.getMonth(),i=null!=p&&D(e,p),l=D(e,z),s=(t=I(e,"00","00"),a=I(e,"23","59"),(!r||!(a<r))&&(!n||!(t>n)));return(0,f.jsx)("button",{type:"button",disabled:!s,onClick:()=>F(e),className:(0,v.cn)("relative h-8 rounded-md text-xs tabular-nums transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-foreground/40",o?"text-foreground":"text-muted-foreground/40",i&&"bg-foreground text-background hover:bg-foreground
2/90",!i&&l&&"ring-1 ring-foreground/30",!i&&s&&"hover:bg-muted",!s&&"cursor-not-allowed opacity-25"),"aria-pressed":i,"aria-current":l?"date":void 0,children:e.getDate()},e.toISOString())})}),(0,f.jsxs)("div",{className:"mt-3 flex items-center gap-2 rounded-lg border border-border bg-muted/30 px-3 py-2",children:[(0,f.jsx)(S.Clock,{className:"size-4 text-muted-foreground"}),(0,f.jsx)("span",{className:"text-xxs font-medium uppercase tracking-[0.08em] text-muted-foreground",children:"Time"}),(0,f.jsxs)("div",{className:"ml-auto flex items-center gap-1 tabular-nums",children:[(0,f.jsx)(A,{value:h,max:23,ariaLabel:"Hours",onCommit:e=>H(e,g)}),(0,f.jsx)("span",{className:"text-muted-foreground",children:":"}),(0,f.jsx)(A,{value:g,max:59,ariaLabel:"Minutes",onCommit:e=>H(h,e)})]})]}),(0,f.jsxs)("div",{className:"mt-3 flex items-center justify-between gap-2",children:[(0,f.jsx)("button",{type:"button",onClick:_,className:"text-xs font-medium text-muted-foreground transition-colors hover:text-foreground",children:"Clear"}),(0,f.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,f.jsx)(w.Button,{type:"button",variant:"ghost",size:"sm",onClick:B,children:"Now"}),(0,f.jsx)(w.Button,{type:"button",size:"sm",onClick:()=>u(!1),children:"Done"})]})]})]}):null]})});function A({value:e,max:t,ariaLabel:r,onCommit:n}){let[a,o]=(0,m.useState)(e),i=(0,m.useRef)(!1);return(0,m.useEffect)(()=>{i.current||o(e)},[e]),(0,f.jsx)("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",maxLength:2,"aria-label":r,value:a,onFocus:e=>{i.current=!0,e.target.select()},onChange:e=>{let r=e.target.value.replace(/\D/g,"").slice(0,2);o(r),""===r||n(P(Math.min(parseInt(r,10),t)))},onBlur:()=>{i.current=!1;let e=P(""===a?0:Math.min(parseInt(a,10)||0,t));o(e),n(e)},onKeyDown:e=>{if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();let r=parseInt(a||"0",10)||0,i=P("ArrowUp"===e.key?r+1>t?0:r+1:r-1<0?t:r-1);o(i),n(i)}},className:(0,v.cn)("h-7 w-9 rounded-md bg-background text-center text-sm font-medium tabular-nums","ring-1 ring-border outline-none","focus:ring-2 focus:ring-foreground/40")})}L.displayName="DateTimePicker",e.s(["DateTimePicker",0,L],120254);var z=e.i(981140),O=e.i(820783),$=e.i(30030),F=e.i(369340),H=e.i(248425),_=e.i(75830),B=e.i(586318),W=e.i(30207),V="dismissableLayer.update",G=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),U=m.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:i,onDismiss:l,...s}=e,d=m.useContext(G),[c,p]=m.useState(null),h=c?.ownerDocument??globalThis?.document,[,g]=m.useState({}),v=(0,O.useComposedRefs)(t,e=>p(e)),x=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=x.indexOf(b),w=c?x.indexOf(c):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,j=w>=y,N=function(e,t=globalThis?.document){let r=(0,W.useCallbackRef)(e),n=m.useRef(!1),a=m.useRef(()=>{});return m.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let n=function(){K("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=n,t.addEventListener("click",a.current,{once:!0})):n()}else t.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...d.branches].some(e=>e.contains(t));j&&!r&&(a?.(e),i?.(e),e.defaultPrevented||l?.())},h),C=function(e,t=globalThis?.document){let r=(0,W.useCallbackRef)(e),n=m.useRef(!1);return m.useEffect(()=>{let e=e=>{e.target&&!n.current&&K("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;![...d.branches].some(e=>e.contains(t))&&(o?.(e),i?.(e),e.defaultPrevented||l?.())},h);return!function(e,t=globalThis?.document){let r=(0,W.useCallbackRef)(e);m.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{w===d.layers.size-1&&(n?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},h),m.useEffect(()=>{if(c)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(u=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(c)),d.layers.add(c),q(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=u)}},[c,h,r,d]),m.useEffect(()=>()=>{c&&(d.layers.delete(c),d.layersWithOutsidePointerEventsDisabled.delete(c),q())},[c,d]),m.useEffect(()=>{let e=()=>g({});return document.addEventListener(V,e),()=>document.removeEventListener(V,e)},[]),(0,f.jsx)(H.Primitive.div,{...s,ref:v,style:{pointerEvents:k?j?"auto":"none":void 0,...e.style},onFocusCapture:(0,z.composeEventHandlers)(e.onFocusCapture,C.onFocusCapture),onBlurCapture:(0,z.composeEventHandlers)(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:(0,z.composeEventHandlers)(e.onPointerDownCapture,N.onPointerDownCapture)})});function q(){let e=new CustomEvent(V);document.dispatchEvent(e)}function K(e,t,r,{discrete:n}){let a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?(0,H.dispatchDiscreteCustomEvent)(a,o):a.dispatchEvent(o)}U.displayName="DismissableLayer",m.forwardRef((e,t)=>
2{let r=m.useContext(G),n=m.useRef(null),a=(0,O.useComposedRefs)(t,n);return m.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,f.jsx)(H.Primitive.div,{...e,ref:a})}).displayName="DismissableLayerBranch",e.s(["DismissableLayer",0,U],726330);var Y=0;function X(){m.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Z()),document.body.insertAdjacentElement("beforeend",e[1]??Z()),Y++,()=>{1===Y&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Y--}},[])}function Z(){let 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}e.s(["useFocusGuards",0,X],303536);var J="focusScope.autoFocusOnMount",Q="focusScope.autoFocusOnUnmount",ee={bubbles:!1,cancelable:!0},et=m.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[l,s]=m.useState(null),d=(0,W.useCallbackRef)(a),c=(0,W.useCallbackRef)(o),u=m.useRef(null),p=(0,O.useComposedRefs)(t,e=>s(e)),h=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(n){let e=function(e){if(h.paused||!l)return;let t=e.target;l.contains(t)?u.current=t:ea(u.current,{select:!0})},t=function(e){if(h.paused||!l)return;let t=e.relatedTarget;null!==t&&(l.contains(t)||ea(u.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&ea(l)});return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,l,h.paused]),m.useEffect(()=>{if(l){eo.add(h);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(J,ee);l.addEventListener(J,d),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(ea(n,{select:t}),document.activeElement!==r)return}(er(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&ea(l))}return()=>{l.removeEventListener(J,d),setTimeout(()=>{let t=new CustomEvent(Q,ee);l.addEventListener(Q,c),l.dispatchEvent(t),t.defaultPrevented||ea(e??document.body,{select:!0}),l.removeEventListener(Q,c),eo.remove(h)},0)}}},[l,d,c,h]);let g=m.useCallback(e=>{if(!r&&!n||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){var o;let t,n=e.currentTarget,[i,l]=[en(t=er(o=n),o),en(t.reverse(),o)];i&&l?e.shiftKey||a!==l?e.shiftKey&&a===i&&(e.preventDefault(),r&&ea(l,{select:!0})):(e.preventDefault(),r&&ea(i,{select:!0})):a===n&&e.preventDefault()}},[r,n,h.paused]);return(0,f.jsx)(H.Primitive.div,{tabIndex:-1,...i,ref:p,onKeyDown:g})});function er(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function en(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function ea(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}et.displayName="FocusScope";var eo=(n=[],{add(e){let t=n[0];e!==t&&t?.pause(),(n=ei(n,e)).unshift(e)},remove(e){n=ei(n,e),n[0]?.resume()}});function ei(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}e.s(["FocusScope",0,et],765491);var el=e.i(610772);let es=["top","right","bottom","left"],ed=Math.min,ec=Math.max,eu=Math.round,ep=Math.floor,ef=e=>({x:e,y:e}),em={left:"right",right:"left",bottom:"top",top:"bottom"},eh={start:"end",end:"start"};function eg(e,t){return"function"==typeof e?e(t):e}function ev(e){return e.split("-")[0]}function ex(e){return e.split("-")[1]}function eb(e){return"x"===e?"y":"x"}function ey(e){return"y"===e?"height":"width"}let ew=new Set(["top","bottom"]);function ek(e){return ew.has(ev(e))?"y":"x"}function ej(e){return e.replace(/start|end/g,e=>eh[e])}let eN=["left","right"],eC=["right","left"],eS=["top","bottom"],eE=["bottom","top"];function eR(e){return e.replace(/left|right|bottom|top/g,e=>em[e])}function eM(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function eP(e){let{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function eT(e,t,r){let n,{reference:a,floating:o}=e,i=ek(t),l=eb(ek(t)),s=ey(l),d=ev(t),c="y"===i,u=a.x+a.width/2-o.width/2,p=a.y+a.height/2-o.height/2,f=a[s]/2-o[s]/2;switch(d){case"top":n={x:u,y:a.y-o.height};break;case"bottom":n={x:u,y:a.y+a.height};break;case"right":n={x:a.x+a.width,y:p};break;case"left":n={x:a.x-o.width,y:p};break;default:n={x:a.x,y:a.y}}switch(ex(t)){case"start":n[l]-=f*(r&&c?-1:1);break;case"end":n[l]+=f*(r&&c?-1:1)}return n}async function eI(e,t){var r;void 0===t&&(t={});let{x:n,y:a,platform:o,rects:i,elements:l,strategy:s}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:u="floating",altBoundary:p=!1,padding:f=0}=eg(t,e),m=eM(f),h=l[p?"floating"===u?"reference":"floating":u],g=eP(await o.getClippingRect
2({element:null==(r=await (null==o.isElement?void 0:o.isElement(h)))||r?h:h.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(l.floating)),boundary:d,rootBoundary:c,strategy:s})),v="floating"===u?{x:n,y:a,width:i.floating.width,height:i.floating.height}:i.reference,x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(l.floating)),b=await (null==o.isElement?void 0:o.isElement(x))&&await (null==o.getScale?void 0:o.getScale(x))||{x:1,y:1},y=eP(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:x,strategy:s}):v);return{top:(g.top-y.top+m.top)/b.y,bottom:(y.bottom-g.bottom+m.bottom)/b.y,left:(g.left-y.left+m.left)/b.x,right:(y.right-g.right+m.right)/b.x}}let eD=async(e,t,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:o=[],platform:i}=r,l=o.filter(Boolean),s=await (null==i.isRTL?void 0:i.isRTL(t)),d=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:u}=eT(d,n,s),p=n,f={},m=0;for(let r=0;r<l.length;r++){var h;let{name:o,fn:g}=l[r],{x:v,y:x,data:b,reset:y}=await g({x:c,y:u,initialPlacement:n,placement:p,strategy:a,middlewareData:f,re
2cts:d,platform:{...i,detectOverflow:null!=(h=i.detectOverflow)?h:eI},elements:{reference:e,floating:t}});c=null!=v?v:c,u=null!=x?x:u,f={...f,[o]:{...f[o],...b}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(d=!0===y.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):y.rects),{x:c,y:u}=eT(d,p,s)),r=-1)}return{x:c,y:u,placement:p,strategy:a,middlewareData:f}};function eL(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eA(e){return es.some(t=>e[t]>=0)}let ez=new Set(["left","top"]);async function eO(e,t){let{placement:r,platform:n,elements:a}=e,o=await (null==n.isRTL?void 0:n.isRTL(a.floating)),i=ev(r),l=ex(r),s="y"===ek(r),d=ez.has(i)?-1:1,c=o&&s?-1:1,u=eg(t,e),{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&"number"==typeof m&&(f="end"===l?-1*m:m),s?{x:f*c,y:p*d}:{x:p*d,y:f*c}}function e$(){return"u">typeof window}function eF(e){return eB(e)?(e.nodeName||"").toLowerCase():"#document"}function eH(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function e_(e){var t;return null==(t=(eB(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eB(e){return!!e$()&&(e instanceof Node||e instanceof eH(e).Node)}function eW(e){return!!e$()&&(e instanceof Element||e instanceof eH(e).Element)}function eV(e){return!!e$()&&(e instanceof HTMLElement||e instanceof eH(e).HTMLElement)}function eG(e){return!(!e$()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof eH(e).ShadowRoot)}let eU=new Set(["inline","contents"]);function eq(e){let{overflow:t,overflowX:r,overflowY:n,display:a}=e4(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!eU.has(a)}let eK=new Set(["table","td","th"]),eY=[":popover-open",":modal"];function eX(e){return eY.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let eZ=["transform","translate","scale","rotate","perspective"],eJ=["transform","translate","scale","rotate","perspective","filter"],eQ=["paint","layout","strict","content"];function e0(e){let t=e1(),r=eW(e)?e4(e):e;return eZ.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||eJ.some(e=>(r.willChange||"").includes(e))||eQ.some(e=>(r.contain||"").includes(e))}function e1(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let e2=new Set(["html","body","#document"]);function e5(e){return e2.has(eF(e))}function e4(e){return eH(e).getComputedStyle(e)}function e3(e){return eW(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function e6(e){if("html"===eF(e))return e;let t=e.assignedSlot||e.parentNode||eG(e)&&e.host||e_(e);return eG(t)?t.host:t}function e8(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let a=function e(t){let r=e6(t);return e5(r)?t.ownerDocument?t.ownerDocument.body:t.body:eV(r)&&eq(r)?r:e(r)}(e),o=a===(null==(n=e.ownerDocument)?void 0:n.body),i=eH(a);if(o){let e=e7(i);return t.concat(i,i.visualViewport||[],eq(a)?a:[],e&&r?e8(e):[])}return t.concat(a,e8(a,[],r))}function e7(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function e9(e){let t=e4(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=eV(e),o=a?e.offsetWidth:r,i=a?e.offsetHeight:n,l=eu(r)!==o||eu(n)!==i;return l&&(r=o,n=i),{width:r,height:n,$:l}}function te(e){return eW(e)?e:e.contextElement}function tt(e){let t=te(e);if(!eV(t))return ef(1);let r=t.getBoundingClientRect(),{width:n,height:a,$:o}=e9(t),i=(o?eu(r.width):r.width)/n,l=(o?eu(r.height):r.height)/a;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}let tr=ef(0);function tn(e){let t=eH(e);return e1()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:tr}function ta(e,t,r,n){var a;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),i=te(e),l=ef(1);t&&(n?eW(n)&&(l=tt(n)):l=tt(e));
2let s=(void 0===(a=r)&&(a=!1),n&&(!a||n===eH(i))&&a)?tn(i):ef(0),d=(o.left+s.x)/l.x,c=(o.top+s.y)/l.y,u=o.width/l.x,p=o.height/l.y;if(i){let e=eH(i),t=n&&eW(n)?eH(n):n,r=e,a=e7(r);for(;a&&n&&t!==r;){let e=tt(a),t=a.getBoundingClientRect(),n=e4(a),o=t.left+(a.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(n.paddingTop))*e.y;d*=e.x,c*=e.y,u*=e.x,p*=e.y,d+=o,c+=i,a=e7(r=eH(a))}}return eP({width:u,height:p,x:d,y:c})}function to(e,t){let r=e3(e).scrollLeft;return t?t.left+r:ta(e_(e)).left+r}function ti(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-to(e,r),y:r.top+t.scrollTop}}let tl=new Set(["absolute","fixed"]);function ts(e,t,r){var n;let a;if("viewport"===t)a=function(e,t){let r=eH(e),n=e_(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,l=0,s=0;if(a){o=a.width,i=a.height;let e=e1();(!e||e&&"fixed"===t)&&(l=a.offsetLeft,s=a.offsetTop)}let d=to(n);if(d<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,i=Math.abs(n.clientWidth-t.clientWidth-a);i<=25&&(o-=i)}else d<=25&&(o+=d);return{width:o,height:i,x:l,y:s}}(e,r);else if("document"===t){let t,r,o,i,l,s,d;n=e_(e),t=e_(n),r=e3(n),o=n.ownerDocument.body,i=ec(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=ec(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-r.scrollLeft+to(n),d=-r.scrollTop,"rtl"===e4(o).direction&&(s+=ec(t.clientWidth,o.clientWidth)-i),a={width:i,height:l,x:s,y:d}}else if(eW(t)){let e,n,o,i,l,s;n=(e=ta(t,!0,"fixed"===r)).top+t.clientTop,o=e.left+t.clientLeft,i=eV(t)?tt(t):ef(1),l=t.clientWidth*i.x,s=t.clientHeight*i.y,a={width:l,height:s,x:o*i.x,y:n*i.y}}else{let r=tn(e);a={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return eP(a)}function td(e){return"static"===e4(e).position}function tc(e,t){if(!eV(e)||"fixed"===e4(e).position)return null;if(t)return t(e);let r=e.offsetParent;return e_(e)===r&&(r=r.ownerDocument.body),r}function tu(e,t){var r;let n=eH(e);if(eX(e))return n;if(!eV(e)){let t=e6(e);for(;t&&!e5(t);){if(eW(t)&&!td(t))return t;t=e6(t)}return n}let a=tc(e,t);for(;a&&(r=a,eK.has(eF(r)))&&td(a);)a=tc(a,t);return a&&e5(a)&&td(a)&&!e0(a)?n:a||function(e){let t=e6(e);for(;eV(t)&&!e5(t);){if(e0(t))return t;if(eX(t))break;t=e6(t)}return null}(e)||n}let tp=async function(e){let t=this.getOffsetParent||tu,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=eV(t),a=e_(t),o="fixed"===r,i=ta(e,!0,o,t),l={scrollLeft:0,scrollTop:0},s=ef(0);if(n||!n&&!o)if(("body"!==eF(t)||eq(a))&&(l=e3(t)),n){let e=ta(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&(s.x=to(a));o&&!n&&a&&(s.x=to(a));let d=!a||n||o?ef(0):ti(a,l);return{x:i.left+l.scrollLeft-s.x-d.x,y:i.top+l.scrollTop-s.y-d.y,width:i.width,height:i.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},tf={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e,o="fixed"===a,i=e_(n),l=!!t&&eX(t.floating);if(n===i||l&&o)return r;let s={scrollLeft:0,scrollTop:0},d=ef(1),c=ef(0),u=eV(n);if((u||!u&&!o)&&(("body"!==eF(n)||eq(i))&&(s=e3(n)),eV(n))){let e=ta(n);d=tt(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}let p=!i||u||o?ef(0):ti(i,s);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-s.scrollLeft*d.x+c.x+p.x,y:r.y*d.y-s.scrollTop*d.y+c.y+p.y}},getDocumentElement:e_,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e,o=[..."clippingAncestors"===r?eX(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=e8(e,[],!1).filter(e=>eW(e)&&"body"!==eF(e)),a=null,o="fixed"===e4(e).position,i=o?e6(e):e;for(;eW(i)&&!e5(i);){let t=e4(i),r=e0(i);r||"fixed"!==t.position||(a=null),(o?!r&&!a:!r&&"static"===t.position&&!!a&&tl.has(a.position)||eq(i)&&!r&&function e(t,r){let n=e6(t);return!(n===r||!eW(n)||e5(n))&&("fixed"===e4(n).position||e(n,r))}(e,i))?n=n.filter(e=>e!==i):a=t,i=e6(i)}return t.set(e,n),n}(t,this._c):[].concat(r),n],i=o[0],l=o.reduce((e,r)=>{let n=ts(t,r,a);return e.top=ec(n.top,e.top),e.right=ed(n.right,e.right),e.bottom=ed(n.bottom,e.bottom),e.left=ec(n.left,e.left),e},ts(t,i,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:tu,getElementRects:tp,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=e9(e);return{width:t,height:r}},getScale:tt,isElement:eW,isRTL:function(e){return"rtl"===e4(e).direction}};function tm(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let th=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:a,rects:o,platform:i,elements:l,middlewareData:s}=t,{element:d,padding:c=0}=eg(e,t)||{};if(null==d)return{};let u=eM(c),p={x:r,y:n},f=eb(ek(a)),m=ey(f),h=await i.getDimensions(d),g="y"===f,v=g?"clientHeight":"clientWidth",x=o.reference[m]+o.reference[f]-p[f]-o.floating[m],b=p[f]-o.reference[f],y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(d)),w=y?y[v]:0;w&&await (null==i.isElement?void 0:i.isElement(y))||(w=l.floating[v]||o.floating[m]);let k=w/2-h[m]/2-1,j=ed(u[g?"top":"left"],k),N=ed(u[g?"bottom":"right"],k),C=w-h[m]-N,S=w/2-h[m]/2+(x/2-b/2),E=ec(j,ed(S,C)),R=!s.arrow&&null!=ex(a)&&S!==E&&o.reference[m]/2-(S<j?j:N)-h[m]/2<0,M=R?S<j?S-j:S-C:0;return{[f]:p[f]+M,data:{[f]:E,centerOffset:S-E-M,...R&&{alignmentOffset:M}},reset:R}}});var tg=e.i(174080),tv="u">typeof document?m.useLayoutEffect:function(){};function tx(e,t){let r,n,a;if(e===t)return!0;
2if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!tx(e[n],t[n]))return!1;return!0}if((r=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,a[n]))return!1;for(n=r;0!=n--;){let r=a[n];if(("_owner"!==r||!e.$$typeof)&&!tx(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function tb(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ty(e,t){let r=tb(e);return Math.round(t*r)/r}function tw(e){let t=m.useRef(e);return tv(()=>{t.current=e}),t}var tk=m.forwardRef((e,t)=>{let{children:r,width:n=10,height:a=5,...o}=e;return(0,f.jsx)(H.Primitive.svg,{...o,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,f.jsx)("polygon",{points:"0,0 30,0 15,10"})})});tk.displayName="Arrow";var tj=e.i(934620),tN=e.i(635804),tC="Popper",[tS,tE]=(0,$.createContextScope)(tC),[tR,tM]=tS(tC),tP=e=>{let{__scopePopper:t,children:r}=e,[n,a]=m.useState(null);return(0,f.jsx)(tR,{scope:t,anchor:n,onAnchorChange:a,children:r})};tP.displayName=tC;var tT="PopperAnchor",tI=m.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:n,...a}=e,o=tM(tT,r),i=m.useRef(null),l=(0,O.useComposedRefs)(t,i),s=m.useRef(null);return m.useEffect(()=>{let e=s.current;s.current=n?.current||i.current,e!==s.current&&o.onAnchorChange(s.current)}),n?null:(0,f.jsx)(H.Primitive.div,{...a,ref:l})});tI.displayName=tT;var tD="PopperContent",[tL,tA]=tS(tD),tz=m.forwardRef((e,t)=>{var r,n,a,o,i,l,s,d,c,u,p,h,g;let{__scopePopper:v,side:x="bottom",sideOffset:b=0,align:y="center",alignOffset:w=0,arrowPadding:k=0,avoidCollisions:j=!0,collisionBoundary:N=[],collisionPadding:C=0,sticky:S="partial",hideWhenDetached:E=!1,updatePositionStrategy:R="optimized",onPlaced:M,...P}=e,T=tM(tD,v),[I,D]=m.useState(null),L=(0,O.useComposedRefs)(t,e=>D(e)),[A,z]=m.useState(null),$=(0,tN.useSize)(A),F=$?.width??0,_=$?.height??0,B="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},V=Array.isArray(N)?N:[N],G=V.length>0,U={padding:B,boundary:V.filter(tH),altBoundary:G},{refs:q,floatingStyles:K,placement:Y,isPositioned:X,middlewareData:Z}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:o,floating:i}={},transform:l=!0,whileElementsMounted:s,open:d}=e,[c,u]=m.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=m.useState(n);tx(p,n)||f(n);let[h,g]=m.useState(null),[v,x]=m.useState(null),b=m.useCallback(e=>{e!==j.current&&(j.current=e,g(e))},[]),y=m.useCallback(e=>{e!==N.current&&(N.current=e,x(e))},[]),w=o||h,k=i||v,j=m.useRef(null),N=m.useRef(null),C=m.useRef(c),S=null!=s,E=tw(s),R=tw(a),M=tw(d),P=m.useCallback(()=>{var e,n;let a,o,i;if(!j.current||!N.current)return;let l={placement:t,strategy:r,middleware:p};R.current&&(l.platform=R.current),(e=j.current,n=N.current,a=new Map,i={...(o={platform:tf,...l}).platform,_c:a},eD(e,n,{...o,platform:i})).then(e=>{let t={...e,isPositioned:!1!==M.current};T.current&&!tx(C.current,t)&&(C.current=t,tg.flushSync(()=>{u(t)}))})},[p,t,r,R,M]);tv(()=>{!1===d&&C.current.isPositioned&&(C.current.isPositioned=!1,u(e=>({...e,isPositioned:!1})))},[d]);let T=m.useRef(!1);tv(()=>(T.current=!0,()=>{T.current=!1}),[]),tv(()=>{if(w&&(j.current=w),k&&(N.current=k),w&&k){if(E.current)return E.current(w,k,P);P()}},[w,k,P,E,S]);let I=m.useMemo(()=>({reference:j,floating:N,setReference:b,setFloating:y}),[b,y]),D=m.useMemo(()=>({reference:w,floating:k}),[w,k]),L=m.useMemo(()=>{let e={position:r,left:0,top:0};if(!D.floating)return e;let t=ty(D.floating,c.x),n=ty(D.floating,c.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...tb(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,D.floating,c.x,c.y]);return m.useMemo(()=>({...c,update:P,refs:I,elements:D,floatingStyles:L}),[c,P,I,D,L])}({strategy:"fixed",placement:x+("center"!==y?"-"+y:""),whileElementsMounted:(...e)=>(function(e,t,r,n){let a;void 0===n&&(n={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:d=!1}=n,c=te(e),u=o||i?[...c?e8(c):[],...e8(t)]:[];
2u.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)});let p=c&&s?function(e,t){let r,n=null,a=e_(e);function o(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),o();let d=e.getBoundingClientRect(),{left:c,top:u,width:p,height:f}=d;if(l||t(),!p||!f)return;let m={rootMargin:-ep(u)+"px "+-ep(a.clientWidth-(c+p))+"px "+-ep(a.clientHeight-(u+f))+"px "+-ep(c)+"px",threshold:ec(0,ed(1,s))||1},h=!0;function g(t){let n=t[0].intersectionRatio;if(n!==s){if(!h)return i();n?i(!1,n):r=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==n||tm(d,e.getBoundingClientRect())||i(),h=!1}try{n=new IntersectionObserver(g,{...m,root:a.ownerDocument})}catch(e){n=new IntersectionObserver(g,m)}n.observe(e)}(!0),o}(c,r):null,f=-1,m=null;l&&(m=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),r()}),c&&!d&&m.observe(c),m.observe(t));let h=d?ta(e):null;return d&&function t(){let n=ta(e);h&&!tm(h,n)&&r(),h=n,a=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)}),null==p||p(),null==(e=m)||e.disconnect(),m=null,d&&cancelAnimationFrame(a)}})(...e,{animationFrame:"always"===R}),elements:{reference:T.anchor},middleware:[{...{name:"offset",options:n=r={mainAxis:b+_,alignmentAxis:w},async fn(e){var t,r;let{x:a,y:o,placement:i,middlewareData:l}=e,s=await eO(e,n);return i===(null==(t=l.offset)?void 0:t.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:a+s.x,y:o+s.y,data:{...s,placement:i}}}},options:[r,void 0]},j&&{...{name:"shift",options:i=o={mainAxis:!0,crossAxis:!1,limiter:"partial"===S?{...(a=void 0,{options:a={},fn(e){let{x:t,y:r,placement:n,rects:o,middlewareData:i}=e,{offset:l=0,mainAxis:s=!0,crossAxis:d=!0}=eg(a,e),c={x:t,y:r},u=ek(n),p=eb(u),f=c[p],m=c[u],h=eg(l,e),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){let e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+g.mainAxis,r=o.reference[p]+o.reference[e]-g.mainAxis;f<t?f=t:f>r&&(f=r)}if(d){var v,x;let e="y"===p?"width":"height",t=ez.has(ev(n)),r=o.reference[u]-o.floating[e]+(t&&(null==(v=i.offset)?void 0:v[u])||0)+(t?0:g.crossAxis),a=o.reference[u]+o.reference[e]+(t?0:(null==(x=i.offset)?void 0:x[u])||0)-(t?g.crossAxis:0);m<r?m=r:m>a&&(m=a)}return{[p]:f,[u]:m}}}),options:[void 0,void 0]}:void 0,...U},async fn(e){let{x:t,y:r,placement:n,platform:a}=e,{mainAxis:o=!0,crossAxis:l=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...d}=eg(i,e),c={x:t,y:r},u=await a.detectOverflow(e,d),p=ek(ev(n)),f=eb(p),m=c[f],h=c[p];if(o){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=m+u[e],n=m-u[t];m=ec(r,ed(m,n))}
2if(l){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",r=h+u[e],n=h-u[t];h=ec(r,ed(h,n))}let g=s.fn({...e,[f]:m,[p]:h});return{...g,data:{x:g.x-t,y:g.y-r,enabled:{[f]:o,[p]:l}}}}},options:[o,void 0]},j&&{...{name:"flip",options:s=l={...U},async fn(e){var t,r,n,a,o,i,l,d;let c,u,p,{placement:f,middlewareData:m,rects:h,initialPlacement:g,platform:v,elements:x}=e,{mainAxis:b=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:k="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:N=!0,...C}=eg(s,e);if(null!=(t=m.arrow)&&t.alignmentOffset)return{};let S=ev(f),E=ek(g),R=ev(g)===g,M=await (null==v.isRTL?void 0:v.isRTL(x.floating)),P=w||(R||!N?[eR(g)]:(c=eR(g),[ej(g),c,ej(c)])),T="none"!==j;!w&&T&&P.push(...(u=ex(g),p=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?eC:eN;return t?eN:eC;case"left":case"right":return t?eS:eE;default:return[]}}(ev(g),"start"===j,M),u&&(p=p.map(e=>e+"-"+u),N&&(p=p.concat(p.map(ej)))),p));let I=[g,...P],D=await v.detectOverflow(e,C),L=[],A=(null==(r=m.flip)?void 0:r.overflows)||[];if(b&&L.push(D[S]),y){let e,t,r,n,a=(i=f,l=h,void 0===(d=M)&&(d=!1),e=ex(i),r=ey(t=eb(ek(i))),n="x"===t?e===(d?"end":"start")?"right":"left":"start"===e?"bottom":"top",l.reference[r]>l.floating[r]&&(n=eR(n)),[n,eR(n)]);L.push(D[a[0]],D[a[1]])}if(A=[...A,{placement:f,overflows:L}],!L.every(e=>e<=0)){let e=((null==(n=m.flip)?void 0:n.index)||0)+1,t=I[e];if(t&&("alignment"!==y||E===ek(t)||A.every(e=>ek(e.placement)!==E||e.overflows[0]>0)))return{data:{index:e,overflows:A},reset:{placement:t}};let r=null==(a=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!r)switch(k){case"bestFit":{let e=null==(o=A.filter(e=>{if(T){let t=ek(e.placement);return t===E||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(r=e);break}case"initialPlacement":r=g}if(f!==r)return{reset:{placement:r}}}return{}}},options:[l,void 0]},{...{name:"size",options:c=d={...U,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${r}px`),i.setProperty("--radix-popper-available-height",`${n}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}},async fn(e){var t,r;let n,a,{placement:o,rects:i,platform:l,elements:s}=e,{apply:d=()=>{},...u}=eg(c,e),p=await l.detectOverflow(e,u),f=ev(o),m=ex(o),h="y"===ek(o),{width:g,height:v}=i.floating;"top"===f||"bottom"===f?(n=f,a=m===(await (null==l.isRTL?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(a=f,n="end"===m?"top":"bottom");let x=v-p.top-p.bottom,b=g-p.left-p.right,y=ed(v-p[n],x),w=ed(g-p[a],b),k=!e.middlewareData.shift,j=y,N=w;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(N=b),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(j=x),k&&!m){let e=ec(p.left,0),t=ec(p.right,0),r=ec(p.top,0),n=ec(p.bottom,0);h?N=g-2*(0!==e||0!==t?e+t:ec(p.left,p.right)):j=v-2*(0!==r||0!==n?r+n:ec(p.top,p.bottom))}await d({...e,availableWidth:N,availableHeight:j});let C=await l.getDimensions(s.floating);return g!==C.width||v!==C.height?{reset:{rects:!0}}:{}}},options:[d,void 0]},A&&{...{name:"arrow",options:p=u={element:A,padding:k},fn(e){let{element:t,padding:r}="function"==typeof p?p(e):p;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?th({element:t.current,padding:r}).fn(e):{}:t?th({element:t,padding:r}).fn(e):{}}},options:[u,void 0]},t_({arrowWidth:F,arrowHeight:_}),E&&{...{name:"hide",options:g=h={strategy:"referenceHidden",...U},async fn(e){let{rects:t,platform:r}=e,{strategy:n="referenceHidden",...a}=eg(g,e);switch(n){case"referenceHidden":{let n=eL(await r.detectOverflow(e,{...a,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:eA(n)}}}case"escaped":{let n=eL(await r.detectOverflow(e,{...a,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:eA(n)}}}default:return{}}}},options:[h,void 0]}]}),[J,Q]=tB(Y),ee=(0,W.useCallbackRef)(M);(0,tj.useLayoutEffect)(()=>{X&&ee?.()},[X,ee]);let et=Z.arrow?.x,er=Z.arrow?.y,en=Z.arrow?.centerOffset!==0,[ea,eo]=m.useState();return(0,tj.useLayoutEffect)(()=>{I&&eo(window.getComputedStyle(I).zIndex)},[I]),(0,f.jsx)("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:X?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ea,"--radix-popper-transform-origin":[Z.transformOrigin?.x,Z.transformOrigin?.y].join(" "),...Z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,f.jsx)(tL,{scope:v,placedSide:J,onArrowChange:z,arrowX:et,arrowY:er,shouldHideArrow:en,children:(0,f.jsx)(H.Primitive.div,{"data-side":J,"data-align":Q,...P,ref:L,style:{...P.style,animation:X?void 0:"none"}})})})});tz.displayName=tD;var tO="PopperArrow",t$={top:"bottom",right:"left",bottom:"top",left:"r
2ight"},tF=m.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,a=tA(tO,r),o=t$[a.placedSide];return(0,f.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]: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:(0,f.jsx)(tk,{...n,ref:t,style:{...n.style,display:"block"}})})});function tH(e){return null!==e}tF.displayName=tO;var t_=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:a}=t,o=a.arrow?.centerOffset!==0,i=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[s,d]=tB(r),c={start:"0%",center:"50%",end:"100%"}[d],u=(a.arrow?.x??0)+i/2,p=(a.arrow?.y??0)+l/2,f="",m="";return"bottom"===s?(f=o?c:`${u}px`,m=`${-l}px`):"top"===s?(f=o?c:`${u}px`,m=`${n.floating.height+l}px`):"right"===s?(f=`${-l}px`,m=o?c:`${p}px`):"left"===s&&(f=`${n.floating.width+l}px`,m=o?c:`${p}px`),{data:{x:f,y:m}}}});function tB(e){let[t,r="center"]=e.split("-");return[t,r]}e.s(["Anchor",0,tI,"Arrow",0,tF,"Content",0,tz,"Root",0,tP,"createPopperScope",0,tE],853660);var tW=m.forwardRef((e,t)=>{let{container:r,...n}=e,[a,o]=m.useState(!1);(0,tj.useLayoutEffect)(()=>o(!0),[]);let i=r||a&&globalThis?.document?.body;return i?tg.default.createPortal((0,f.jsx)(H.Primitive.div,{...n,ref:t}),i):null});tW.displayName="Portal",e.s(["Portal",0,tW],774606);var tV=e.i(296626),tG=e.i(842727),tU=Symbol("radix.slottable");function tq(e){return m.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===tU}var tK=new WeakMap,tY=new WeakMap,tX={},tZ=0,tJ=function(e){return e&&(e.host||tJ(e.parentNode))},tQ=function(e,t,r,n){var a=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=tJ(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});tX[r]||(tX[r]=new WeakMap);var o=tX[r],i=[],l=new Set,s=new Set(a),d=function(e){!e||l.has(e)||(l.add(e),d(e.parentNode))};a.forEach(d);var c=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))c(e);else try{var t=e.getAttribute(n),a=null!==t&&"false"!==t,s=(tK.get(e)||0)+1,d=(o.get(e)||0)+1;tK.set(e,s),o.set(e,d),i.push(e),1===s&&a&&tY.set(e,!0),1===d&&e.setAttribute(r,"true"),a||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),l.clear(),tZ++,function(){i.forEach(function(e){var t=tK.get(e)-1,a=o.get(e)-1;tK.set(e,t),o.set(e,a),t||(tY.has(e)||e.removeAttribute(n),tY.delete(e)),a||e.removeAttribute(r)}),--tZ||(tK=new WeakMap,tK=new WeakMap,tY=new WeakMap,tX={})}},t0=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live], script"))),tQ(n,a,r,"aria-hidden")):function(){return null}};e.s(["hideOthers",0,t0],186312);var t1=function(){return(t1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function t2(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}var t5=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),t4="width-before-scroll-bar";function t3(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var t6="u">typeof window?m.useLayoutEffect:m.useEffect,t8=new WeakMap,t7=(void 0===o&&(o={}),(void 0===i&&(i=function(e){return e}),l=[],s=!1,d={read:function(){if(s)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:null},useMedium:function(e){var t=i(e,s);return l.push(t),function(){l=l.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(s=!0;l.length;){var t=l;l=[],t.forEach(e)}l={push:function(t){return e(t)},filter:function(){return l}}},assignMedium:function(e){s=!0;var t=[];if(l.length){var r=l;l=[],r.forEach(e),t=l}var n=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(n)};a(),l={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),l}}}}).options=t1({async:!0,ssr:!1},o),d),t9=function(){},re=m.forwardRef(function(e,t){var r,n,a,o,i=m.useRef(null),l=m.useState({onScrollCapture:t9,onWheelCapture:t9,onTouchMoveCapture:t9}),s=l[0],d=l[1],c=e.forwardProps,u=e.children,p=e.className,f=e.removeScrollBar,h=e.enabled,g=e.shards,v=e.sideCar,x=e.noRelative,b=e.noIsolation,y=e.inert,w=e.allowPinchZoom,k=e.as,j=e.gapMode,N=t2(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=(r=[i,t],n=function(e){return r.forEach(function(t){return t3(t,e)})},(a=(0,m.useState)(function(){return{value:null,callback:n,facade:{get current(){return a.value},set current(value){var e=a.value;e!==value&&(a.value=value,a.callback(value,e))}}}})[0]).callback=n,o=a.facade,t6(function(){var e=t8.get(o);if(e){var t=new Set(e),n=new Set(r),a=o.current;t.forEach(function(e){n.has(e)||t3(e,null)}
2),n.forEach(function(e){t.has(e)||t3(e,a)})}t8.set(o,r)},[r]),o),S=t1(t1({},N),s);return m.createElement(m.Fragment,null,h&&m.createElement(v,{sideCar:t7,removeScrollBar:f,shards:g,noRelative:x,noIsolation:b,inert:y,setCallbacks:d,allowPinchZoom:!!w,lockRef:i,gapMode:j}),c?m.cloneElement(m.Children.only(u),t1(t1({},S),{ref:C})):m.createElement(void 0===k?"div":k,t1({},S,{className:p,ref:C}),u))});re.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},re.classNames={fullWidth:t4,zeroRight:t5};var rt=function(e){var t=e.sideCar,r=t2(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return m.createElement(n,t1({},r))};rt.isSideCarExport=!0;var rr=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=p||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var n,a;(n=t).styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rn=function(){var e=rr();return function(t,r){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ra=function(){var e=rn();return function(t){return e(t.styles,t.dynamic),null}},ro={left:0,top:0,right:0,gap:0},ri=function(e){return parseInt(e||"",10)||0},rl=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[ri(r),ri(n),ri(a)]},rs=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return ro;var t=rl(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])}},rd=ra(),rc="data-scroll-locked",ru=function(e,t,r,n){var a=e.left,o=e.top,i=e.right,l=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(l,"px ").concat(n,";\n  }\n  body[").concat(rc,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(a,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(l,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(t5," {\n    right: ").concat(l,"px ").concat(n,";\n  }\n  \n  .").concat(t4," {\n    margin-right: ").concat(l,"px ").concat(n,";\n  }\n  \n  .").concat(t5," .").concat(t5," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(t4," .").concat(t4," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(rc,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n  }\n")},rp=function(){var e=parseInt(document.body.getAttribute(rc)||"0",10);return isFinite(e)?e:0},rf=function(){m.useEffect(function(){return document.body.setAttribute(rc,(rp()+1).toString()),function(){var e=rp()-1;e<=0?document.body.removeAttribute(rc):document.body.setAttribute(rc,e.toString())}},[])},rm=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;rf();var o=m.useMemo(function(){return rs(a)},[a]);return m.createElement(rd,{styles:ru(o,!t,a,r?"":"!important")})},rh=!1;if("u">typeof window)try{var rg=Object.defineProperty({},"passive",{get:function(){return rh=!0,!0}});window.addEventListener("test",rg,rg),window.removeEventListener("test",rg,rg)}catch(e){rh=!1}var rv=!!rh&&{passive:!1},rx=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},rb=function(e,t){var r=t.ownerDocument,n=t;do{if("u">typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),ry(e,n)){var a=rw(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body)return!1},ry=function(e,t){return"v"===e?rx(t,"overflowY"):rx(t,"overflowX")},rw=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},rk=function(e,t,r,n,a){var o,i=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),l=i*n,s=r.target,d=t.contains(s),c=!1,u=l>0,p=0,f=0;do{if(!s)break;var m=rw(e,s),h=m[0],g=m[1]-m[2]-i*h;(h||g)&&ry(e,s)&&(p+=g,f+=h);var v=s.parentNode;s=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!d&&s!==document.body||d&&(t.contains(s)||t===s))return u&&(a&&1>Math.abs(p)||!a&&l>p)?c=!0:!u&&(a&&1>Math.abs(f)||!a&&-l>f)&&(c=!0),c},rj=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rN=function(e){return[e.deltaX,e.deltaY]},rC=function(e){return e&&"current"in e?e.current:e},rS=0,rE=[];let rR=(c=function(e){var t=m.useRef([]),r=m.useRef([0,0]),n=m.useRef(),a=m.useState(rS++)[0],o=m.useState(ra)[0],i=m.useRef(e);m.useEffect(function(){i.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a<o;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))}
2)([e.lockRef.current],(e.shards||[]).map(rC),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=m.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,o=rj(e),l=r.current,s="deltaX"in e?e.deltaX:l[0]-o[0],d="deltaY"in e?e.deltaY:l[1]-o[1],c=e.target,u=Math.abs(s)>Math.abs(d)?"h":"v";if("touches"in e&&"h"===u&&"range"===c.type)return!1;var p=window.getSelection(),f=p&&p.anchorNode;if(f&&(f===c||f.contains(c)))return!1;var m=rb(u,c);if(!m)return!0;if(m?a=u:(a="v"===u?"h":"v",m=rb(u,c)),!m)return!1;if(!n.current&&"changedTouches"in e&&(s||d)&&(n.current=a),!a)return!0;var h=n.current||a;return rk(h,t,e,"h"===h?s:d,!0)},[]),s=m.useCallback(function(e){if(rE.length&&rE[rE.length-1]===o){var r="deltaY"in e?rN(e):rj(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var a=(i.current.shards||[]).map(rC).filter(Boolean).filter(function(t){return t.contains(e.target)});(a.length>0?l(e,a[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=m.useCallback(function(e,r,n,a){var o={name:e,delta:r,target:n,should:a,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=m.useCallback(function(e){r.current=rj(e),n.current=void 0},[]),u=m.useCallback(function(t){d(t.type,rN(t),t.target,l(t,e.lockRef.current))},[]),p=m.useCallback(function(t){d(t.type,rj(t),t.target,l(t,e.lockRef.current))},[]);m.useEffect(function(){return rE.push(o),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:p}),document.addEventListener("wheel",s,rv),document.addEventListener("touchmove",s,rv),document.addEventListener("touchstart",c,rv),function(){rE=rE.filter(function(e){return e!==o}),document.removeEventListener("wheel",s,rv),document.removeEventListener("touchmove",s,rv),document.removeEventListener("touchstart",c,rv)}},[]);var f=e.removeScrollBar,h=e.inert;return m.createElement(m.Fragment,null,h?m.createElement(o,{styles:"\n  .block-interactivity-".concat(a," {pointer-events: none;}\n  .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,f?m.createElement(rm,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},t7.useMedium(c),rt);var rM=m.forwardRef(function(e,t){return m.createElement(re,t1({},e,{ref:t,sideCar:rR}))});rM.classNames=re.classNames,e.s(["RemoveScroll",0,rM],985369);var rP=["Enter"," "],rT=["ArrowUp","PageDown","End"],rI=["ArrowDown","PageUp","Home",...rT],rD={ltr:[...rP,"ArrowRight"],rtl:[...rP,"ArrowLeft"]},rL={ltr:["ArrowLeft"],rtl:["ArrowRight"]},rA="Menu",[rz,rO,r$]=(0,_.createCollection)(rA),[rF,rH]=(0,$.createContextScope)(rA,[r$,tE,tG.createRovingFocusGroupScope]),r_=tE(),rB=(0,tG.createRovingFocusGroupScope)(),[rW,rV]=rF(rA),[rG,rU]=rF(rA),rq=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:a,onOpenChange:o,modal:i=!0}=e,l=r_(t),[s,d]=m.useState(null),c=m.useRef(!1),u=(0,W.useCallbackRef)(o),p=(0,B.useDirection)(a);return m.useEffect(()=>{let e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,f.jsx)(tP,{...l,children:(0,f.jsx)(rW,{scope:t,open:r,onOpenChange:u,content:s,onContentChange:d,children:(0,f.jsx)(rG,{scope:t,onClose:m.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:c,dir:p,modal:i,children:n})})})};rq.displayName=rA;var rK=m.forwardRef((e,t)=>
2{let{__scopeMenu:r,...n}=e,a=r_(r);return(0,f.jsx)(tI,{...a,...n,ref:t})});rK.displayName="MenuAnchor";var rY="MenuPortal",[rX,rZ]=rF(rY,{forceMount:void 0}),rJ=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:a}=e,o=rV(rY,t);return(0,f.jsx)(rX,{scope:t,forceMount:r,children:(0,f.jsx)(tV.Presence,{present:r||o.open,children:(0,f.jsx)(tW,{asChild:!0,container:a,children:n})})})};rJ.displayName=rY;var rQ="MenuContent",[r0,r1]=rF(rQ),r2=m.forwardRef((e,t)=>{let r=rZ(rQ,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,o=rV(rQ,e.__scopeMenu),i=rU(rQ,e.__scopeMenu);return(0,f.jsx)(rz.Provider,{scope:e.__scopeMenu,children:(0,f.jsx)(tV.Presence,{present:n||o.open,children:(0,f.jsx)(rz.Slot,{scope:e.__scopeMenu,children:i.modal?(0,f.jsx)(r5,{...a,ref:t}):(0,f.jsx)(r4,{...a,ref:t})})})})}),r5=m.forwardRef((e,t)=>{let r=rV(rQ,e.__scopeMenu),n=m.useRef(null),a=(0,O.useComposedRefs)(t,n);return m.useEffect(()=>{let e=n.current;if(e)return t0(e)},[]),(0,f.jsx)(r6,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,z.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),r4=m.forwardRef((e,t)=>{let r=rV(rQ,e.__scopeMenu);return(0,f.jsx)(r6,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),r3=((a=m.forwardRef((e,t)=>{let{children:r,...n}=e;if(m.isValidElement(r)){var a;let e,o,i=(a=r,(o=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(o=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),l=function(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==m.Fragment&&(l.ref=t?(0,O.composeRefs)(t,i):i),m.cloneElement(r,l)}return m.Children.count(r)>1?m.Children.only(null):null})).displayName="MenuContent.ScrollLock.SlotClone",t=a,(r=m.forwardRef((e,r)=>{let{children:n,...a}=e,o=m.Children.toArray(n),i=o.find(tq);if(i){let e=i.props.children,n=o.map(t=>t!==i?t:m.Children.count(e)>1?m.Children.only(null):m.isValidElement(e)?e.props.children:null);return(0,f.jsx)(t,{...a,ref:r,children:m.isValidElement(e)?m.cloneElement(e,void 0,n):null})}return(0,f.jsx)(t,{...a,ref:r,children:n})})).displayName="MenuContent.ScrollLock.Slot",r),r6=m.forwardRef((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:s,onEscapeKeyDown:d,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:p,onDismiss:h,disableOutsideScroll:g,...v}=e,x=rV(rQ,r),b=rU(rQ,r),y=r_(r),w=rB(r),k=rO(r),[j,N]=m.useState(null),C=m.useRef(null),S=(0,O.useComposedRefs)(t,C,x.onContentChange),E=m.useRef(0),R=m.useRef(""),M=m.useRef(0),P=m.useRef(null),T=m.useRef("right"),I=m.useRef(0),D=g?rM:m.Fragment;m.useEffect(()=>()=>window.clearTimeout(E.current),[]),X();let L=m.useCallback(e=>{var t,r;return T.current===P.current?.side&&(t=e,!!(r=P.current?.area)&&function(e,t){let{x:r,y:n}=e,a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let i=t[e],l=t[o],s=i.x,d=i.y,c=l.x,u=l.y;d>n!=u>n&&r<(c-s)*(n-d)/(u-d)+s&&(a=!a)}return a}({x:t.clientX,y:t.clientY},r))},[]);return(0,f.jsx)(r0,{scope:r,searchRef:R,onItemEnter:m.useCallback(e=>{L(e)&&e.preventDefault()},[L]),onItemLeave:m.useCallback(e=>{L(e)||(C.current?.focus(),N(null))},[L]),onTriggerLeave:m.useCallback(e=>{L(e)&&e.preventDefault()},[L]),pointerGraceTimerRef:M,onPointerGraceIntentChange:m.useCallback(e=>{P.current=e},[]),children:(0,f.jsx)(D,{...g?{as:r3,allowPinchZoom:!0}:void 0,children:(0,f.jsx)(et,{asChild:!0,trapped:a,onMountAutoFocus:(0,z.composeEventHandlers)(o,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:(0,f.jsx)(U,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:p,onDismiss:h,children:(0,f.jsx)(tG.Root,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:n,currentTabStopId:j,onCurrentTabStopIdChange:N,onEntryFocus:(0,z.composeEventHandlers)(s,e=>{b.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,f.jsx)(tz,{role:"menu","aria-orientation":"vertical","data-state":nN(x.open),"data-radix-menu-content":"",dir:b.dir,...y,...v,ref:S,style:{outline:"none",...v.style},onKeyDown:(0,z.composeEventHandlers)(v.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.ke
2y.length;if(t){var a;let t,o,i,l,s,d;"Tab"===e.key&&e.preventDefault(),!r&&n&&(a=e.key,t=R.current+a,o=k().filter(e=>!e.disabled),i=document.activeElement,l=o.find(e=>e.ref.current===i)?.textValue,s=function(e,t,r){var n;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=r?e.indexOf(r):-1,i=(n=Math.max(o,0),e.map((t,r)=>e[(n+r)%e.length]));1===a.length&&(i=i.filter(e=>e!==r));let l=i.find(e=>e.toLowerCase().startsWith(a.toLowerCase()));return l!==r?l:void 0}(o.map(e=>e.textValue),t,l),d=o.find(e=>e.textValue===s)?.ref.current,function e(t){R.current=t,window.clearTimeout(E.current),""!==t&&(E.current=window.setTimeout(()=>e(""),1e3))}(t),d&&setTimeout(()=>d.focus()))}let o=C.current;if(e.target!==o||!rI.includes(e.key))return;e.preventDefault();let i=k().filter(e=>!e.disabled).map(e=>e.ref.current);rT.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,z.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),R.current="")}),onPointerMove:(0,z.composeEventHandlers)(e.onPointerMove,nE(e=>{let t=e.target,r=I.current!==e.clientX;e.currentTarget.contains(t)&&r&&(T.current=e.clientX>I.current?"right":"left",I.current=e.clientX)}))})})})})})})});r2.displayName=rQ;var r8=m.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,f.jsx)(H.Primitive.div,{role:"group",...n,ref:t})});r8.displayName="MenuGroup";var r7=m.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,f.jsx)(H.Primitive.div,{...n,ref:t})});r7.displayName="MenuLabel";var r9="MenuItem",ne="menu.itemSelect",nt=m.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:n,...a}=e,o=m.useRef(null),i=rU(r9,e.__scopeMenu),l=r1(r9,e.__scopeMenu),s=(0,O.useComposedRefs)(t,o),d=m.useRef(!1);return(0,f.jsx)(nr,{...a,ref:s,disabled:r,onClick:(0,z.composeEventHandlers)(e.onClick,()=>{let e=o.current;if(!r&&e){let t=new CustomEvent(ne,{bubbles:!0,cancelable:!0});e.addEventListener(ne,e=>n?.(e),{once:!0}),(0,H.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?d.current=!1:i.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),d.current=!0},onPointerUp:(0,z.composeEventHandlers)(e.onPointerUp,e=>{d.current||e.currentTarget?.click()}),onKeyDown:(0,z.composeEventHandlers)(e.onKeyDown,e=>{let t=""!==l.searchRef.current;r||t&&" "===e.key||rP.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});nt.displayName=r9;var nr=m.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:a,...o}=e,i=r1(r9,r),l=rB(r),s=m.useRef(null),d=(0,O.useComposedRefs)(t,s),[c,u]=m.useState(!1),[p,h]=m.useState("");return m.useEffect(()=>{let e=s.current;e&&h((e.textContent??"").trim())},[o.children]),(0,f.jsx)(rz.ItemSlot,{scope:r,disabled:n,textValue:a??p,children:(0,f.jsx)(tG.Item,{asChild:!0,...l,focusable:!n,children:(0,f.jsx)(H.Primitive.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...o,ref:d,onPointerMove:(0,z.composeEventHandlers)(e.onPointerMove,nE(e=>{n?i.onItemLeave(e):(i.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,z.composeEventHandlers)(e.onPointerLeave,nE(e=>i.onItemLeave(e))),onFocus:(0,z.composeEventHandlers)(e.onFocus,()=>u(!0)),onBlur:(0,z.composeEventHandlers)(e.onBlur,()=>u(!1))})})})}),nn=m.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...a}=e;return(0,f.jsx)(nu,{scope:e.__scopeMenu,checked:r,children:(0,f.jsx)(nt,{role:"menuitemcheckbox","aria-checked":nC(r)?"mixed":r,...a,ref:t,"data-state":nS(r),onSelect:(0,z.composeEventHandlers)(a.onSelect,()=>n?.(!!nC(r)||!r),{checkForDefaultPrevented:!1})})})});nn.displayName="MenuCheckboxItem";var na="MenuRadioGroup",[no,ni]=rF(na,{value:void 0,onValueChange:()=>{}}),nl=m.forwardRef((e,t)=>{let{value:r,onValueChange:n,...a}=e,o=(0,W.useCallbackRef)(n);return(0,f.jsx)(no,{scope:e.__scopeMenu,value:r,onValueChange:o,children:(0,f.jsx)(r8,{...a,ref:t})})});nl.displayName=na;var ns="MenuRadioItem",nd=m.forwardRef((e,t)=>{let{value:r,...n}=e,a=ni(ns,e.__scopeMenu),o=r===a.value;return(0,f.jsx)(nu,{scope:e.__scopeMenu,checked:o,children:(0,f.jsx)(nt,{role:"menuitemradio","aria-checked":o,...n,ref:t,"data-state":nS(o),onSelect:(0,z.composeEventHandlers)(n.onSelect,()=>a.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});nd.displayName=ns;var nc="MenuItemIndicator",[nu,np]=rF(nc,{checked:!1}
2),nf=m.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...a}=e,o=np(nc,r);return(0,f.jsx)(tV.Presence,{present:n||nC(o.checked)||!0===o.checked,children:(0,f.jsx)(H.Primitive.span,{...a,ref:t,"data-state":nS(o.checked)})})});nf.displayName=nc;var nm=m.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,f.jsx)(H.Primitive.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});nm.displayName="MenuSeparator";var nh=m.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,a=r_(r);return(0,f.jsx)(tF,{...a,...n,ref:t})});nh.displayName="MenuArrow";var ng="MenuSub",[nv,nx]=rF(ng),nb=e=>{let{__scopeMenu:t,children:r,open:n=!1,onOpenChange:a}=e,o=rV(ng,t),i=r_(t),[l,s]=m.useState(null),[d,c]=m.useState(null),u=(0,W.useCallbackRef)(a);return m.useEffect(()=>(!1===o.open&&u(!1),()=>u(!1)),[o.open,u]),(0,f.jsx)(tP,{...i,children:(0,f.jsx)(rW,{scope:t,open:n,onOpenChange:u,content:d,onContentChange:c,children:(0,f.jsx)(nv,{scope:t,contentId:(0,el.useId)(),triggerId:(0,el.useId)(),trigger:l,onTriggerChange:s,children:r})})})};nb.displayName=ng;var ny="MenuSubTrigger",nw=m.forwardRef((e,t)=>{let r=rV(ny,e.__scopeMenu),n=rU(ny,e.__scopeMenu),a=nx(ny,e.__scopeMenu),o=r1(ny,e.__scopeMenu),i=m.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:s}=o,d={__scopeMenu:e.__scopeMenu},c=m.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return m.useEffect(()=>c,[c]),m.useEffect(()=>{let e=l.current;return()=>{window.clearTimeout(e),s(null)}},[l,s]),(0,f.jsx)(rK,{asChild:!0,...d,children:(0,f.jsx)(nr,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":nN(r.open),...e,ref:(0,O.composeRefs)(t,a.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,z.composeEventHandlers)(e.onPointerMove,nE(t=>{o.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||i.current||(o.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),c()},100)))})),onPointerLeave:(0,z.composeEventHandlers)(e.onPointerLeave,nE(e=>{c();let t=r.content?.getBoundingClientRect();if(t){let n=r.content?.dataset.side,a="right"===n,i=t[a?"left":"right"],s=t[a?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:i,y:t.top},{x:s,y:t.top},{x:s,y:t.bottom},{x:i,y:t.bottom}],side:n}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:(0,z.composeEventHandlers)(e.onKeyDown,t=>{let a=""!==o.searchRef.current;e.disabled||a&&" "===t.key||rD[n.dir].includes(t.key)&&(r.onOpenChange(!0),r.content?.focus(),t.preventDefault())})})})});nw.displayName=ny;var nk="MenuSubContent",nj=m.forwardRef((e,t)=>{let r=rZ(rQ,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,o=rV(rQ,e.__scopeMenu),i=rU(rQ,e.__scopeMenu),l=nx(nk,e.__scopeMenu),s=m.useRef(null),d=(0,O.useComposedRefs)(t,s);return(0,f.jsx)(rz.Provider,{scope:e.__scopeMenu,children:(0,f.jsx)(tV.Presence,{present:n||o.open,children:(0,f.jsx)(rz.Slot,{scope:e.__scopeMenu,children:(0,f.jsx)(r6,{id:l.contentId,"aria-labelledby":l.triggerId,...a,ref:d,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{i.isUsingKeyboardRef.current&&s.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,z.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==l.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:(0,z.composeEventHandlers)(e.onEscapeKeyDown,e=>{i.onClose(),e.preventDefault()}),onKeyDown:(0,z.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=rL[i.dir].includes(e.key);t&&r&&(o.onOpenChange(!1),l.trigger?.focus(),e.preventDefault())})})})})})});function nN(e){return e?"open":"closed"}function nC(e){return"indeterminate"===e}function nS(e){return nC(e)?"indeterminate":e?"checked":"unchecked"}function nE(e){return t=>
2"mouse"===t.pointerType?e(t):void 0}nj.displayName=nk;var nR="DropdownMenu",[nM,nP]=(0,$.createContextScope)(nR,[rH]),nT=rH(),[nI,nD]=nM(nR),nL=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:a,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,s=nT(t),d=m.useRef(null),[c,u]=(0,F.useControllableState)({prop:a,defaultProp:o??!1,onChange:i,caller:nR});return(0,f.jsx)(nI,{scope:t,triggerId:(0,el.useId)(),triggerRef:d,contentId:(0,el.useId)(),open:c,onOpenChange:u,onOpenToggle:m.useCallback(()=>u(e=>!e),[u]),modal:l,children:(0,f.jsx)(rq,{...s,open:c,onOpenChange:u,dir:n,modal:l,children:r})})};nL.displayName=nR;var nA="DropdownMenuTrigger",nz=m.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,o=nD(nA,r),i=nT(r);return(0,f.jsx)(rK,{asChild:!0,...i,children:(0,f.jsx)(H.Primitive.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...a,ref:(0,O.composeRefs)(t,o.triggerRef),onPointerDown:(0,z.composeEventHandlers)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,z.composeEventHandlers)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});nz.displayName=nA;var nO=e=>{let{__scopeDropdownMenu:t,...r}=e,n=nT(t);return(0,f.jsx)(rJ,{...n,...r})};nO.displayName="DropdownMenuPortal";var n$="DropdownMenuContent",nF=m.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=nD(n$,r),o=nT(r),i=m.useRef(!1);return(0,f.jsx)(r2,{id:a.contentId,"aria-labelledby":a.triggerId,...o,...n,ref:t,onCloseAutoFocus:(0,z.composeEventHandlers)(e.onCloseAutoFocus,e=>{i.current||a.triggerRef.current?.focus(),i.current=!1,e.preventDefault()}),onInteractOutside:(0,z.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!a.modal||n)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});nF.displayName=n$,m.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=nT(r);return(0,f.jsx)(r8,{...a,...n,ref:t})}).displayName="DropdownMenuGroup";var nH=m.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=nT(r);return(0,f.jsx)(r7,{...a,...n,ref:t})});nH.displayName="DropdownMenuLabel";var n_=m.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=nT(r);return(0,f.jsx)(nt,{...a,...n,ref:t})});n_.displayName="DropdownMenuItem";var nB=m.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=nT(r);return(0,f.jsx)(nn,{...a,...n,ref:t})});nB.displayName="DropdownMenuCheckboxItem";var nW=m.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=nT(r);return(0,f.jsx)(nl,{...a,...n,ref:t})});nW.displayName="DropdownMenuRadioGroup";var nV=m.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=nT(r);return(0,f.jsx)(nd,{...a,...n,ref:t})});nV.displayName="DropdownMenuRadioItem";var nG=m.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=nT(r);return(0,f.jsx)(nf,{...a,...n,ref:t})});nG.displayName="DropdownMenuItemIndicator";var nU=m.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=nT(r);return(0,f.jsx)(nm,{...a,...n,ref:t})});nU.displayName="DropdownMenuSeparator",m.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=nT(r);return(0,f.jsx)(nh,{...a,...n,ref:t})}).displayName="DropdownMenuArrow";var nq=m.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=nT(r);return(0,f.jsx)(nw,{...a,...n,ref:t})});nq.displayName="DropdownMenuSubTrigger";var nK=m.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=nT(r);return(0,f.jsx)(nj,{...a,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});nK.displayName="DropdownMenuSubContent";let nY=(0,k.default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,nY],77847);let nX=(0,k.default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),nZ=m.forwardRef(({className:e,inset:t,children:r,...n},a)=>(0,f.jsxs)(nq,{ref:a,className:(0,v.cn)("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n,children:[r,(0,f.jsx)(C,{className:"ml-auto"})]}));
2nZ.displayName=nq.displayName;let nJ=m.forwardRef(({className:e,...t},r)=>(0,f.jsx)(nK,{ref:r,className:(0,v.cn)("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg duration-fast 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-[0.98] data-[state=open]:zoom-in-[0.98] data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1 origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));nJ.displayName=nK.displayName;let nQ=m.forwardRef(({className:e,sideOffset:t=4,...r},n)=>(0,f.jsx)(nO,{children:(0,f.jsx)(nF,{ref:n,sideOffset:t,className:(0,v.cn)("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-32 overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-(--shadow-popover)","duration-fast 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-[0.98] data-[state=open]:zoom-in-[0.98] data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1 origin-[--radix-dropdown-menu-content-transform-origin]",e),...r})}));nQ.displayName=nF.displayName;let n0=m.forwardRef(({className:e,inset:t,...r},n)=>(0,f.jsx)(n_,{ref:n,className:(0,v.cn)("relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...r}));n0.displayName=n_.displayName;let n1=m.forwardRef(({className:e,children:t,checked:r,...n},a)=>(0,f.jsxs)(nB,{ref:a,className:(0,v.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...n,children:[(0,f.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,f.jsx)(nG,{children:(0,f.jsx)(nY,{className:"h-4 w-4"})})}),t]}));n1.displayName=nB.displayName;let n2=m.forwardRef(({className:e,children:t,...r},n)=>(0,f.jsxs)(nV,{ref:n,className:(0,v.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[(0,f.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,f.jsx)(nG,{children:(0,f.jsx)(nX,{className:"h-2 w-2 fill-current"})})}),t]}));n2.displayName=nV.displayName;let n5=m.forwardRef(({className:e,inset:t,...r},n)=>(0,f.jsx)(nH,{ref:n,className:(0,v.cn)("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));n5.displayName=nH.displayName;let n4=m.forwardRef(({className:e,...t},r)=>(0,f.jsx)(nU,{ref:r,className:(0,v.cn)("-mx-1 my-1 h-px bg-muted",e),...t}));n4.displayName=nU.displayName,e.s(["DropdownMenu",0,nL,"DropdownMenuCheckboxItem",0,n1,"DropdownMenuContent",0,nQ,"DropdownMenuItem",0,n0,"DropdownMenuLabel",0,n5,"DropdownMenuPortal",0,nO,"DropdownMenuRadioGroup",0,nW,"DropdownMenuRadioItem",0,n2,"DropdownMenuSeparator",0,n4,"DropdownMenuSub",0,e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:a,defaultOpen:o}=e,i=nT(t),[l,s]=(0,F.useControllableState)({prop:n,defaultProp:o??!1,onChange:a,caller:"DropdownMenuSub"});return(0,f.jsx)(nb,{...i,open:l,onOpenChange:s,children:r})},"DropdownMenuSubContent",0,nJ,"DropdownMenuSubTrigger",0,nZ,"DropdownMenuTrigger",0,nz],160444);let n3=(0,m.forwardRef)(function({value:e,onChange:t,options:r,groups:n,placeholder:a="All",noun:o,ariaLabel:i,className:l,align:s="start"},d){let c=(0,m.useMemo)(()=>n?n.flatMap(e=>e.options):r??[],[n,r]),u=(0,m.useMemo)(()=>new Map(c.map(e=>[e.value,e])),[c]),p=r=>{t(e.includes(r)?e.filter(e=>e!==r):[...e,r])},h=(()=>
2{if(0===e.length)return a;if(1===e.length)return u.get(e[0])?.label??a;if(o){let t=o.endsWith("s")?o:`${o}s`;return`${e.length} ${t} selected`}return`${e.length} selected`})(),x=1===e.length?u.get(e[0])?.icon:void 0;return(0,f.jsxs)(nL,{children:[(0,f.jsxs)(nz,{ref:d,"aria-label":i,className:(0,v.cn)("flex h-10 w-full items-center justify-between gap-2 rounded-md border border-border bg-background px-3 text-sm transition-colors","hover:border-foreground/30","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-foreground/40","data-[state=open]:border-foreground/40 data-[state=open]:ring-2 data-[state=open]:ring-foreground/20",0===e.length&&"text-muted-foreground",l),children:[(0,f.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[x?(0,f.jsx)(x,{className:"size-4 shrink-0 text-muted-foreground"}):null,(0,f.jsx)("span",{className:"truncate text-left",children:h}),e.length>1?(0,f.jsx)("span",{className:"rounded-full bg-foreground/10 px-1.5 py-0.5 text-xxs font-semibold tabular-nums text-foreground",children:e.length}):null]}),(0,f.jsx)(g.ChevronDown,{className:"size-4 shrink-0 opacity-50"})]}),(0,f.jsxs)(nQ,{align:s,className:"w-(--radix-dropdown-menu-trigger-width) min-w-56",children:[n?n.map((t,r)=>(0,f.jsx)(n6,{group:t,value:e,onToggle:p,showSeparator:r>0},`${t.label??"_"}-${r}`)):(0,f.jsx)(n8,{options:r??[],value:e,onToggle:p}),(0,f.jsx)(n4,{}),(0,f.jsxs)("div",{className:"flex items-center justify-between gap-2 px-2 py-1",children:[(0,f.jsx)("span",{className:"text-xs text-muted-foreground tabular-nums",children:0===e.length?"Nothing selected":`${e.length} selected`}),(0,f.jsx)(w.Button,{variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>t([]),disabled:0===e.length,children:"Clear"})]})]})]})});function n6({group:e,value:t,onToggle:r,showSeparator:n}){return(0,f.jsxs)(f.Fragment,{children:[n?(0,f.jsx)(n4,{}):null,e.label?(0,f.jsx)(n5,{className:"text-xxs font-medium uppercase tracking-[0.06em] text-muted-foreground",children:e.label}):null,(0,f.jsx)(n8,{options:e.options,value:t,onToggle:r})]})}function n8({options:e,value:t,onToggle:r}){return(0,f.jsx)(f.Fragment,{children:e.map(e=>{let n=e.icon;return(0,f.jsx)(n1,{checked:t.includes(e.value),onSelect:e=>e.preventDefault(),onCheckedChange:()=>r(e.value),children:(0,f.jsxs)("span",{className:"flex items-center gap-2",children:[n?(0,f.jsx)(n,{className:"size-3.5 text-muted-foreground"}):null,e.label]})},e.value)})})}n3.displayName="MultiSelect",e.s(["MultiSelect",0,n3],119420);let n7=m.forwardRef(({className:e,interactive:t,disabled:r,onClick:n,onKeyDown:a,...o},i)=>(0,f.jsx)("div",{ref:i,role:t?"button":void 0,tabIndex:t&&!r?0:void 0,"aria-disabled":r||void 0,className:(0,v.cn)("rounded-lg border border-border bg-card text-card-foreground transition-colors",t&&!r&&["cursor-pointer hover:bg-accent/50 hover:border-accent-foreground/20","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"],t&&r&&"opacity-50 cursor-not-allowed",!t&&"hover:border-accent-foreground/20",e),onClick:r?void 0:n,onKeyDown:e=>{t&&!r&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),e.currentTarget.click()),a?.(e)},...o}));n7.displayName="Card";let n9=m.forwardRef(({className:e,children:t,...r},n)=>{let a=m.Children.toArray(t),o=a.some(e=>m.isValidElement(e)&&e.type===aa);if(a.some(e=>m.isValidElement(e)&&e.type===ao)&&o){let t=a.find(e=>m.isValidElement(e)&&e.type===ao),o=a.find(e=>m.isValidElement(e)&&e.type===aa),i=a.filter(e=>m.isValidElement(e)&&e.type!==ao&&e.type!==aa);return(0,f.jsxs)("div",{ref:n,className:(0,v.cn)("flex flex-col p-6 space-y-2",e),...r,children:[(0,f.jsxs)("div",{className:"flex items-start justify-between",children:[t,o]}),(0,f.jsx)("div",{className:"space-y-1.5",children:i})]})}return(0,f.jsx)("div",{ref:n,className:(0,v.cn)("flex p-6",o?"flex-row items-start justify-between gap-4":"flex-col space-y-1.5",e),...r,children:t})});n9.displayName="CardHeader";let ae=m.forwardRef(({className:e,as:t="h3",...r},n)=>(0,f.jsx)(t,{ref:n,className:(0,v.cn)("text-base font-semibold leading-none tracking-tight",e),...r}));
2ae.displayName="CardTitle";let at=m.forwardRef(({className:e,as:t="p",...r},n)=>(0,f.jsx)(t,{ref:n,className:(0,v.cn)("text-sm text-muted-foreground",e),...r}));at.displayName="CardDescription";let ar=m.forwardRef(({className:e,...t},r)=>(0,f.jsx)("div",{ref:r,className:(0,v.cn)("p-6 pt-0",e),...t}));ar.displayName="CardContent";let an=m.forwardRef(({className:e,...t},r)=>(0,f.jsx)("div",{ref:r,className:(0,v.cn)("flex items-center p-6 pt-0",e),...t}));an.displayName="CardFooter";let aa=m.forwardRef(({className:e,...t},r)=>(0,f.jsx)("div",{ref:r,className:(0,v.cn)("flex-shrink-0",e),...t}));aa.displayName="CardAction";let ao=m.forwardRef(({className:e,...t},r)=>(0,f.jsx)("div",{ref:r,className:(0,v.cn)("flex-shrink-0",e),...t}));ao.displayName="CardMedia",e.s(["Card",0,n7,"CardAction",0,aa,"CardContent",0,ar,"CardDescription",0,at,"CardFooter",0,an,"CardHeader",0,n9,"CardMedia",0,ao,"CardTitle",0,ae],331680);var ai=e.i(665623);let al=(0,ai.cva)("inline-flex items-center",{variants:{size:{sm:"",default:"",lg:"",xl:""}},defaultVariants:{size:"default"}}),as=({className:e,color:t="brand"})=>(0,f.jsx)("svg",{viewBox:"0 0 56 41",fill:"none",className:e,children:(0,f.jsx)("path",{d:"M55.9974 20.5L51.6561 3.36933C50.5094 -1.14559 44.0603 -1.11436 42.9606 3.41097L38.8022 20.5H36.5924L32.2537 3.36933C31.107 -1.14559 24.6579 -1.11436 23.5582 3.41097L19.3998 20.5H17.19L12.8513 3.36933C11.7047 -1.14559 5.25547 -1.11436 4.15579 3.41097L0 20.5H9.7012L14.0424 37.6307C15.1891 42.1456 21.6383 42.1144 22.738 37.589L26.8964 20.5H29.1062L33.4475 37.6307C34.5942 42.1456 41.0433 42.1144 42.143 37.589L46.2988 20.5H56H55.9974Z",fill:"auto"===t?"currentColor":"brand"===t?"#3032EC":"white"===t?"#FFFFFF":"#161D27"})}),ad=({className:e,color:t="brand"})=>{let r="auto"===t?"currentColor":"brand"===t?"#E55656":"white"===t?"#FFFFFF":"#161D27";return(0,f.jsxs)("svg",{viewBox:"0 0 40 40",fill:"none",className:e,children:[(0,f.jsxs)("g",{clipPath:"url(#wc-mark-clip)",children:[(0,f.jsx)("path",{d:"M24.397 7.0079C24.6582 7.00018 24.9508 6.97948 25.2029 7.05186C25.8876 7.24836 26.1623 8.09538 25.9021 8.73229C25.766 9.06536 25.4868 9.36829 25.2713 9.65721C25.0554 9.94661 24.8473 10.2422 24.6476 10.5436C23.5637 12.1912 22.7331 14.0004 22.1854 15.9075C21.2038 19.3534 21.1756 22.9784 22.0581 26.3903C22.715 28.9299 21.9024 31.903 19.4117 32.5046C16.5591 33.1936 13.6372 33.1641 10.6001 32.4069C10.3867 32.3508 10.1695 32.2893 9.95024 32.2229C7.66179 31.5301 6.08164 29.4252 6.00771 26.9762C5.85308 21.8521 7.73741 16.8128 11.154 13.0803C14.6041 9.32475 19.3711 7.13891 24.397 7.0079Z",fill:r}),(0,f.jsx)("path",{d:"M33.3331 19.5253C33.4749 19.4193 33.6897 19.5993 33.7408 19.7688C33.7851 19.9158 33.7572 20.0839 33.757 20.2687L33.7556 21.1474L33.762 23.8038L33.7663 28.834C33.7664 29.601 33.7697 30.3715 33.7694 31.1384C33.762 31.2525 33.7722 31.3642 33.6964 31.4563C33.5921 31.5832 33.3939 31.6313 33.261 31.5132C32.9972 31.2793 32.7477 31.016 32.4965 30.7645L30.9202 29.1867C30.7195 28.9855 30.1626 28.3677 29.968 28.2762C29.7813 28.1884 26.7027 28.2276 26.2637 28.2288C25.9979 28.2296 25.5423 28.267 25.2927 28.2137C25.2062 28.1952 25.133 28.1492 25.0864 28.0732C25.0441 28.0044 25.0219 27.9187 25.0425 27.8391C25.0671 27.7439 25.1473 27.6674 25.2128 27.5985C25.8228 26.9588 26.464 26.3439 27.0893 25.7184L30.7512 22.0568L32.339 20.4691C32.6319 20.1758 33.0005 19.7741 33.3331 19.5253Z",fill:r})]}),(0,f.jsx)("defs",{children:(0,f.jsx)("clipPath",{id:"wc-mark-clip",children:(0,f.jsx)("rect",{width:"40",height:"40",rx:"8",fill:"white"})})})]})},ac={sm:"h-4 w-auto",default:"h-[1.15rem] w-auto",lg:"h-[1.4rem] w-auto",xl:"h-8 w-auto"},au={sm:"text-[0.9rem]",default:"text-[1.05rem]",lg:"text-[1.35rem]",xl:"text-[1.75rem]"},ap={sm:"gap-0.5",default:"gap-0.5",lg:"gap-1",xl:"gap-2.5"},af={workclaw:"WorkClaw",workmate:"Workmate"},am=m.forwardRef(({className:e,size:t,color:r="brand",variant:n="mark",brand:a="workmate",...o},i)=>{let l="workclaw"===a?ad:as,s="auto"===r?"text-current":"white"===r?"text-white":"text-foreground",d=t??"default";return(0,f.jsx)("div",{ref:i,className:(0,v.cn)(al({size:t}),e),...o,children:"lockup"===n?(0,f.jsxs)("div",{className:(0,v.cn)("inline-flex items-center",ap[d]),children:[(0,f.jsx)(l,{className:ac[d],color:r}),(0,f.jsx)("span",{className:(0,v.cn)("font-logo font-semibold tracking-[-0.03em]",au[d],s),children:af[a]})]}):(0,f.jsx)(l,{className:"sm"===t?"h-5 w-auto":"xl"===t?"h-12 w-auto":"lg"===t?"h-8 w-auto":"h-6 w-auto",color:r})})});am.displayName="Logo",e.s(["Logo",0,am],406120);let ah=(0,ai.cva)("inline-flex items-center justify-center font-medium bg-destructive text-destructive-foreground rounded-full",{variants:{variant:{count:"min-w-4 h-4 px-1 text-xxs",dot:"w-2 h-2"}},defaultVariants:{variant:"count"}}),ag=m.forwardRef(({className:e,variant:t="count",count:r,max:n=99,...a},o)=>
2{if("dot"===t)return(0,f.jsx)("span",{ref:o,className:(0,v.cn)(ah({variant:t}),e),...a});let i=void 0!==r?r>n?`${n}+`:r.toString():"0";return(0,f.jsx)("span",{ref:o,className:(0,v.cn)(ah({variant:t}),e),...a,children:i})});ag.displayName="NavBadge",e.s(["NavBadge",0,ag],411541);let av={companyName:"Acme, Inc",provisioningLockupVariant:"bullets",provisioningBulletIconJob:!0,provisioningBulletIconShare:!0,provisioningBulletIconSlack:!0,provisioningCardTopPad:38,provisioningCardGap:20,provisioningLockupTitleGap:6,provisioningBulletGap:4,provisioningCardContentTopPad:8,provisioningCardContentBottomPad:9,provisioningBulletsToLoaderGap:8,provisioningLoaderToTipGap:2,provisioningLoaderToAppsGap:7,provisioningPhotoHeightPx:240,provisioningPhotoScalePct:80,provisioningPhotoOffsetXPct:0,provisioningPhotoOffsetYPct:-101,provisioningPhotoMotion:"rotate",provisioningPhotoRotateDeg:2.2,provisioningPhotoRotateDurationMs:5700,provisioningPhotoBobAmountPx:5,provisioningPhotoBobDurationMs:3600,provisioningTitleSizePx:18,provisioningTitleWeight:600,provisioningTitleTracking:0,provisioningRevealCounter:0,provisioningRevealCardShapeMs:80,provisioningRevealContentMs:380,provisioningRevealPhotoSlideMs:1900,provisioningRevealChromeMs:2650,provisioningRevealDoneMs:2950,provisioningRevealPhotoSlideDurationMs:700,provisioningRevealEntranceDurationMs:280,provisioningRevealEntranceScale:.18,provisioningRevealImageLagPx:600,provisioningRevealImageLagDurationMultiplier:1.5,provisioningRevealRowStaggerMs:260,provisioningRevealRowDurationMs:500,provisioningLoaderWidthPct:100,provisioningLoaderFeatherPct:0,provisioningLoaderDurationMs:400,provisioningLoaderSheenHighlightPct:100,provisioningLoaderSheenShadowPct:25,provisioningLoaderSheenMidStopPct:60,provisioningLoaderSheenHorizontalFadePct:15,provisioningLoaderSheenBlend:"overlay",provisioningNavShimmerWhitePct:80,provisioningNavShimmerDurationMs:1400,provisioningNavShimmerPanPct:300,provisioningNavShimmerPauseMs:350,provisioningNavShimmerDimPct:17,provisioningNavShimmerScanlinePct:6,provisioningNavShimmerScanlinePeriodPx:2,avatarStyle:{id:"workclaw",name:"WorkClaw",dicebearStyle:"workclaw"},avatarBg:{id:"pastel-wheel-palette",name:"Pastel wheel",bg:["linear-gradient(135deg, #d8c4ec, #f3b5c1)","linear-gradient(135deg, #f3d4b5, #ecebbe)","linear-gradient(135deg, #b8ecd4, #b8e4ec)","linear-gradient(135deg, #f3b5a4, #f3c4d4)","linear-gradient(135deg, #b8d4ec, #d8c4ec)","linear-gradient(135deg, #dcecb4, #b8ecd4)","linear-gradient(135deg, #f0b8d4, #f5c4a4)","linear-gradient(135deg, #ffe4a4, #f3b5a4)"]},provisioningRevealStyle:"animated",chatBg:{color:"var(--background)"}};e.s(["PROVISIONING_DESIGN_STATE",0,av],946560);let ax=av.provisioningNavShimmerWhitePct,ab=av.provisioningNavShimmerDurationMs,ay=av.provisioningNavShimmerPanPct,aw=av.provisioningNavShimmerPauseMs,ak=av.provisioningNavShimmerDimPct;function aj({borderRadius:e}){let t=ab+aw,r=ab/t*100,n=.1*r,a=.7*r;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("span",{"aria-hidden":!0,className:"absolute inset-0 pointer-events-none",style:{borderRadius:e,background:`linear-gradient(to bottom, transparent 0%, color-mix(in srgb, black ${ak}%, transparent) 100%)`}}),(0,f.jsx)("span",{"aria-hidden":!0,className:"nav-avatar-shimmer absolute inset-0 pointer-events-none",style:{borderRadius:e,backgroundImage:`linear-gradient(120deg, transparent 30%, color-mix(in srgb, white ${ax}%, transparent) 50%, transparent 70%)`,backgroundSize:"200% 100%",backgroundRepeat:"no-repeat",animation:`nav-avatar-shimmer ${t}ms linear infinite`,"--shimmer-pan":`${100-ay}%`,WebkitMaskImage:"linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%)",maskImage:"linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%)"}}),(0,f.jsx)("style",{children:`
3        @keyframes nav-avatar-shimmer {
4          0%                          { background-position: 100% 0; opacity: 0; }
5          ${n.toFixed(2)}%    { opacity: 1; }
6          ${a.toFixed(2)}%   { opacity: 1; }
7          ${r.toFixed(2)}% { background-position: var(--shimmer-pan) 0; opacity: 0; }
8          100%                        { background-position: 100% 0; opacity: 0; }
9        }
10      `})]})}e.s(["NavShimmerOverlay",0,aj],420787);let aN=av.provisioningNavShimmerDurationMs,aC=aN+av.provisioningNavShimmerPauseMs;e.s(["NavNameShimmer",0,function({children:e}){let t=aN+-500,r="60.00";return(0,f.jsxs)("span",{className:"relative inline-block",children:[e,(0,f.jsx)("span",{"aria-hidden":!0,
10className:"absolute inset-0 pointer-events-none",style:{backgroundImage:`linear-gradient(110deg, transparent 40.00%, white 50%, transparent ${r}%)`,backgroundSize:"300% 100%",backgroundRepeat:"no-repeat",backgroundClip:"text",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",color:"transparent",animation:`nav-name-shimmer ${aC}ms linear infinite`},children:e}),(0,f.jsx)("style",{children:`
11        @keyframes nav-name-shimmer {
12          0%                                 { background-position: 100% 0; }
13          ${(t/aC*100).toFixed(3)}%        { background-position: 100% 0; }
14          ${((t+800)/aC*100).toFixed(3)}%          { background-position: 0% 0; }
15          100%                               { background-position: 0% 0; }
16        }
17      `})]})}],774177);let aS=(0,k.default)("chart-no-axes-column-increasing",[["line",{x1:"12",x2:"12",y1:"20",y2:"10",key:"1vz5eb"}],["line",{x1:"18",x2:"18",y1:"20",y2:"4",key:"cun8e5"}],["line",{x1:"6",x2:"6",y1:"20",y2:"16",key:"hq0ia6"}]]);var aE=e.i(104080);let aR=(0,k.default)("building",[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]]),aM=(0,k.default)("calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);var aP=e.i(207936);let aT=(0,k.default)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]),aI=(0,k.default)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]),aD=(0,k.default)("compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),aL=(0,k.default)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);var aA=e.i(920165),az=e.i(187892),aO=e.i(442326),a$=e.i(603818);let aF=(0,k.default)("headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]),aH=(0,k.default)("heart-handshake",[["path",{d:"M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762",key:"17lmqv"}]]);var a_=e.i(354885),a_=a_;let aB=(0,k.default)("megaphone",[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]]),aW=(0,k.default)("microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}
17],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]),aV=(0,k.default)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]),aG=(0,k.default)("pen-tool",[["path",{d:"M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z",key:"nt11vn"}],["path",{d:"m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18",key:"15qc1e"}],["path",{d:"m2.3 2.3 7.286 7.286",key:"1wuzzi"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]]),aU=(0,k.default)("radio",[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]),aq=(0,k.default)("scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]),aK=(0,k.default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Settings",0,aK],825362);let aY=(0,k.default)("sigma",[["path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2",key:"wuwx1p"}]]);var aX=e.i(423759),aZ=e.i(191710);let aJ=(0,k.default)("circle-user",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);var aQ=e.i(209534),a0=e.i(586215);let a1=[{id:"sales",name:"Sales",Icon:aZ.TrendingUp},{id:"marketing",name:"Marketing",Icon:aB},{id:"engineer",name:"Engineer",Icon:aI},{id:"product-manager",name:"Product Manager",Icon:aT},{id:"product-designer",name:"Product Designer",Icon:aG},{id:"chief-of-staff",name:"Chief of Staff",Icon:aE.Briefcase},{id:"human-resources",name:"HR",Icon:a0.Users},{id:"recruiting",name:"Recruiting",Icon:aQ.UserPlus},{id:"customer-support",name:"Customer Support",Icon:aF},{id:"customer-success",name:"Customer Success",Icon:aH},{id:"sales-ops",name:"Sales Ops",Icon:aS},{id:"marketing-ops",name:"Marketing Ops",Icon:a_.default},{id:"finance",name:"Finance",Icon:aA.DollarSign},{id:"accounting",name:"Accounting",Icon:aM},{id:"legal",name:"Legal",Icon:aq},{id:"operations",name:"Operations",Icon:aK},{id:"business-dev",name:"Biz Dev",Icon:a$.Handshake},{id:"account-manager",name:"Account Manager",Icon:aJ},{id:"data-analyst",name:"Data Analyst",Icon:aL},{id:"data-scientist",name:"Data Scientist",Icon:aY},{id:"engineering-manager",name:"Engineering Manager",Icon:aO.GitBranch},{id:"product-marketing",name:"Product Marketing",Icon:aX.Sparkles},{id:"brand",name:"Brand",Icon:aV},{id:"content",name:"Content",Icon:az.FileText},{id:"communications",name:"Communications",Icon:aU},{id:"research",name:"Research",Icon:aW},{id:"strategy",name:"Strategy",Icon:aD},{id:"office-manager",name:"Office Manager",Icon:aR},{id:"executive-assistant",name:"Executive Assistant",Icon:aP.Calendar},{id:"data-engineer",name:"Data Engineer",Icon:aL}];e.s(["ROLES",0,a1],839690),e.s(["StepHeader",0,function({title:e,description:t}
17){return(0,f.jsxs)("header",{className:"mx-auto space-y-2 px-2 text-center lg:max-w-2xl",children:[(0,f.jsx)("h1",{className:"text-3xl text-balance text-neutral-900 dark:text-neutral-50 lg:text-4xl lg:whitespace-nowrap",style:{letterSpacing:"-0.025em",fontWeight:600},children:e}),t&&(0,f.jsx)("p",{className:"text-sm text-neutral-400 dark:text-neutral-500",children:t})]})}],669832);var a2=e.i(207670);e.i(458047);var a5=e.i(409251),a4=e.i(879601);let a3=(0,m.createContext)(null);function a6(){let e=(0,m.useContext)(a3);if(!e)throw Error("useProvisioningState must be used inside <ProvisioningStateProvider>. Render ProvisioningPage (which provides the context) or wrap your tree manually.");return e}e.s(["ProvisioningStateProvider",0,function({value:e,children:t}){return(0,f.jsx)(a3.Provider,{value:e,children:t})},"useProvisioningState",0,a6],288599);let a8=(0,k.default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);var a7=e.i(617345);let a9={private:{label:"Private",icon:a8},team:{label:"Shared with team",icon:a0.Users},select:{label:"Shared with select people",icon:a7.UserCheck}};var oe=e.i(363178);let ot=(0,k.default)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]),or=[["#8b5cf6","#d946ef"],["#3b82f6","#06b6d4"],["#f97316","#ec4899"],["#10b981","#14b8a6"],["#f59e0b","#ea580c"],["#f43f5e","#ef4444"],["#6366f1","#a855f7"],["#0ea5e9","#2563eb"],["#84cc16","#059669"],["#ec4899","#f43f5e"]];function on(e){let[t,r]=or[function(e){let t=5381;for(let r=0;r<e.length;r+=1)t=(t<<5)+t+e.charCodeAt(r)|0;return Math.abs(t)}(e)%or.length]??or[0];return{initials:function(e){let t=e.trim();if(!t)return"?";let r=t.split(/[\s_\-/.]+/).map(e=>e.replace(/[^a-zA-Z0-9]/g,"").slice(0,1)).filter(e=>e.length>0);return 0===r.length?"?":r.length>=2?(r[0]+r[1]).toUpperCase():t.replace(/[^a-zA-Z0-9]/g,"").slice(0,2).toUpperCase()}(e),gradientFrom:t,gradientTo:r}}function oa(e,t){if(0===t)return!0;let r=e/t;return r>=.85&&r<=1.15}function oo(e){return e&&/^https?:\/\//i.test(e)?`/api/icon-proxy?url=${encodeURIComponent(e)}`:e}function oi(e){if(!oa(e.naturalWidth,e.naturalHeight))return"contain";try{let t=e.naturalWidth,r=e.naturalHeight;if(t<2||r<2)return"cover";let n=document.createElement("canvas");n.width=t,n.height=r;let a=n.getContext("2d");if(!a)return"cover";if(a.drawImage(e,0,0),[a.getImageData(0,0,1,1).data,a.getImageData(t-1,0,1,1).data,a.getImageData(0,r-1,1,1).data,a.getImageData(t-1,r-1,1,1).data].every(e=>{var t,r,n;return t=e[0]??0,r=e[1]??0,n=e[2]??0,(e[3]??0)<200||t>235&&r>235&&n>235}))return"contain";return"cover"}catch{return"cover"}}e.s(["buildCustomAvatar",0,on],837012),e.s(["buildIconProbeUrl",0,oo,"isAspectSquareish",0,oa,"probeImageFitMode",0,oi],987806);let ol={page:{radiusRatio:.25,bgClass:"bg-background",ringClass:"",shadowClass:"",centeredGlyph:!1,defaultFallback:"lucide"},catalog:{radiusRatio:.286,bgClass:"bg-white",ringClass:"ring-1 ring-black/5 dark:ring-white/10",shadowClass:"",centeredGlyph:!0,defaultFallback:"letter"},detail:{radiusRatio:.286,bgClass:"bg-white",ringClass:"ring-1 ring-black/5 dark:ring-white/10",shadowClass:"shadow-(--shadow-popover)",centeredGlyph:!0,defaultFallback:"letter"},chip:{radiusRatio:.286,bgClass:"bg-white dark:bg-neutral-800",ringClass:"ring-1 ring-black/5 dark:ring-white/10",shadowClass:"",centeredGlyph:!0,defaultFallback:"letter"}};function os({name:e,imageUrl:t,size:r=48,variant:n="page",fallback:a,customApp:o=!1,fallbackIcon:i=ot,brandColor:l,dimmed:s=!1,flat:d=!1,className:c}){let u=t&&""!==t.trim()?t:void 0,p=ol[n],h=Math.round(r*p.radiusRatio),g=`${r}px`,v=`${h}px`,x=a??(o?"initials":p.defaultFallback),[b,y]=(0,m.useState)(!1),[w,k]=(0,m.useState)("cover"),[j,N]=(0,m.useState)(!1),[C,S]=(0,m.useState)(!1);(0,m.useEffect)(()=>{if(y(!1),k("cover"),N(!1),S(!1),!u)return;let e=!1,t=new Image;t.crossOrigin="anonymous";let r=()=>{e||S(!0)},n=()=>{e||("contain"===oi(t)&&k("contain"),r())};return t.onload=n,t.onerror=r,t.src=oo(u),t.complete&&t.naturalWi
17dth>0&&n(),()=>{e=!0}},[u]);let E=e=>{let t=e.currentTarget;oa(t.naturalWidth,t.naturalHeight)||k("contain"),N(!0)},R=(0,m.useCallback)(e=>{e&&e.complete&&0!==e.naturalWidth&&(oa(e.naturalWidth,e.naturalHeight)||k("contain"),N(!0))},[]),M=!u||b,P=j&&C?"blur(0)":"blur(8px)",T="filter var(--duration-normal) var(--ease-app)",{resolvedTheme:I}=function(){let{resolvedTheme:e}=(0,oe.useTheme)(),[t,r]=(0,m.useState)(!1);return(0,m.useEffect)(()=>r(!0),[]),{resolvedTheme:t?e:void 0}}(),D="chip"!==n||d?void 0:`var(--shadow-dock-tile), 0 ${+(.083*r).toFixed(2)}px ${+(.167*r).toFixed(2)}px ${"dark"===I?"rgba(0, 0, 0, 0.2)":"color-mix(in srgb, black 7%, transparent)"}`;if(M)return"initials"===x?(0,f.jsx)(oc,{name:e,size:r,radius:h,className:c,shadowClass:p.shadowClass,chipShadow:D}):"letter"===x?(0,f.jsx)(ou,{name:e,size:r,radius:h,brandColor:l,className:c,shadowClass:p.shadowClass,chipShadow:D}):(0,f.jsx)(od,{size:r,radius:h,Icon:i,ariaLabel:e,className:c,shadowClass:p.shadowClass,chipShadow:D});if("page"===n){let t="contain"===w;return(0,f.jsx)("img",{ref:R,src:u,alt:e,onError:()=>y(!0),onLoad:E,className:(0,a2.default)("shrink-0",t?"object-contain bg-white":"object-cover",t?"":p.bgClass,c),style:{width:g,height:g,borderRadius:v,padding:t?`${Math.round(.12*r)}px`:void 0,filter:P,transition:T},draggable:!1})}let L=p.centeredGlyph&&(/\.svgz?$/i.test(u)||/simpleicons\.org/i.test(u)),A=!L&&"contain"===w,z=Math.round(.6*r);return(0,f.jsx)("div",{className:(0,a2.default)("shrink-0 overflow-hidden",p.bgClass,p.ringClass,p.shadowClass,L||A?"flex items-center justify-center":"",c),style:{width:g,height:g,borderRadius:v,boxShadow:D,filter:s?"grayscale(100%)":void 0,transition:s?"filter var(--duration-slow) var(--ease-app)":void 0},children:(0,f.jsx)("img",{ref:R,src:u,alt:e,onError:()=>y(!0),onLoad:E,className:L||A?"object-contain":"size-full object-cover",style:{...L?{width:z,height:z}:A?{width:r-Math.round(.24*r),height:r-Math.round(.24*r)}:{},filter:P,transition:T},draggable:!1})})}function od({size:e,radius:t,Icon:r,ariaLabel:n,className:a,shadowClass:o,chipShadow:i}){let l=Math.round(.42*e);return(0,f.jsx)("div",{"aria-label":n,role:"img",className:(0,a2.default)("bg-muted flex items-center justify-center shrink-0",o,""===o&&"shadow-[0px_1px_2px_rgba(0,0,0,0.07)]",a),style:{width:e,height:e,borderRadius:t,boxShadow:i},children:(0,f.jsx)(r,{className:"text-muted-foreground",style:{width:l,height:l},"aria-hidden":"true"})})}function oc({name:e,size:t,radius:r,className:n,shadowClass:a,chipShadow:o}){let{initials:i,gradientFrom:l,gradientTo:s}=on(e),d=Math.round(.33*t);return(0,f.jsx)("div",{"aria-label":e,role:"img",className:(0,a2.default)("shrink-0 flex items-center justify-center text-white font-bold tracking-tight",a,""===a&&"shadow-[0px_1px_2px_rgba(0,0,0,0.07)]",n),style:{width:t,height:t,borderRadius:r,fontSize:d,backgroundImage:`linear-gradient(135deg, ${l}, ${s})`,boxShadow:o},children:i})}function ou({name:e,size:t,radius:r,brandColor:n,className:a,shadowClass:o,chipShadow:i}){let l=e.slice(0,1).toUpperCase()||"?";return(0,f.jsx)("div",{"aria-label":e,role:"img",className:(0,a2.default)("shrink-0 ring-1 ring-black/10 flex items-center justify-center","text-white font-semibold select-none",o,a),style:{width:t,height:t,borderRadius:r,background:n??"#737373",boxShadow:i},children:(0,f.jsx)("span",{style:{fontSize:Math.round(.45*t)},children:l})})}function op({logoUrl:e,fallbackName:t,size:r=24,dimmed:n=!1,flat:a=!1}){return(0,f.jsx)("span",{className:"relative inline-flex",children:(0,f.jsx)(os,{variant:"chip",size:r,name:t,imageUrl:e,dimmed:n,flat:a})})}os.displayName="AppIcon",e.s(["AppIcon",0,os],623078),op.displayName="AppChipIcon",e.s(["AppChipIcon",0,op],572871);let of=[],om={id:"sage",name:"Sage",role:"Inbox triage assistant",slackHandle:"sage",scopePhrase:"just you"},oh=["Setting things up…","Getting your workspace ready…","Preparing your private space…","Pulling everything together…","Getting {name} settled in…","Teaching {name} about you…","Briefing {name} on the team…","Picking out {name}’s desk…","Walking {name} through the basics…","Showing {name} around…","Almost ready…","Adding the final touches…","Just a moment longer…","Tidying up the workspace…","Making sure everything's in place…","Polishing things up…","Just about there…","Ready in a moment…"];
17function og({claw:e,radius:t,imageLagOffsetPx:r=0,imageLagTransition:n}){let a=e.bgGradient??null,o=240,i=100,l=0,s=0,d="rotate",c=1.5,u=5e3,p=0,m=4500;try{let t=a6();t.avatarStyle.dicebearStyle;let r="number"==typeof e.bgColorIndex?e.bgColorIndex:of.findIndex(t=>t.id===e.id);e.bgGradient||(a=(0,a4.pickPaletteBg)(Math.max(0,r))),o=t.provisioningPhotoHeightPx,i=t.provisioningPhotoScalePct,l=t.provisioningPhotoOffsetXPct,s=t.provisioningPhotoOffsetYPct,d=t.provisioningPhotoMotion,c=t.provisioningPhotoRotateDeg,u=t.provisioningPhotoRotateDurationMs,p=t.provisioningPhotoBobAmountPx,m=t.provisioningPhotoBobDurationMs}catch{}let h=c*Math.PI/180,g=i*("rotate"===d?Math.abs(Math.cos(h))+Math.abs(Math.sin(h)):1)/100*320,v=(320-g)*(l+50)/100,x=(o-g)*(s+50)/100,b=56+v,y=56+x,w=b+g/2,k=y+g/2,j=e.photoId??e.id,N=e.imageUrl??(0,a5.workclawAvatarUrl)(j),C=`${e.name} avatar`;return(0,f.jsxs)("div",{className:(0,a2.default)("relative w-full overflow-hidden",null==a&&"bg-emerald-100 dark:bg-emerald-950/60"),style:{height:o,borderTopLeftRadius:t,borderTopRightRadius:t,...null!=a?{background:a}:{}},children:["rotate"===d?(0,f.jsx)("div",{className:"provisioning-photo-rotate absolute",style:{inset:"-56px",transformOrigin:`${w}px ${k}px`,"--photo-rotate-deg":`${c}deg`,"--photo-bob-amount":`${p}px`,animationDuration:`${u}ms, ${m}ms`},children:(0,f.jsx)("img",{src:N,alt:C,draggable:!1,className:"absolute pointer-events-none select-none",style:{left:b,top:y,width:g,height:g,transform:`translateY(${r}px)`,transition:n}})}):(0,f.jsx)("img",{src:N,alt:C,draggable:!1,className:"absolute pointer-events-none select-none",style:{left:v,top:x,width:g,height:g,transform:`translateY(${r}px)`,transition:n}}),"shimmer"===d&&(0,f.jsx)(aj,{borderRadius:0})]})}function ov({showIcon:e,icon:t,children:r,iconUncolored:n=!1}){return(0,f.jsxs)("div",{role:"listitem",className:"flex items-center gap-2",children:[(0,f.jsx)("span",{className:(0,a2.default)("inline-flex items-center justify-center w-3.5 h-3.5 shrink-0",n?"":e?"text-brand":"text-neutral-400 dark:text-neutral-500"),"aria-hidden":"true",children:e?t:(0,f.jsx)("span",{className:"w-1 h-1 rounded-full bg-current"})}),(0,f.jsx)("span",{children:r})]})}function ox(){let e=100,t=0,r=500,n=60,a=25,o=50,i=15,l="overlay";try{let s=a6();e=s.provisioningLoaderWidthPct,t=s.provisioningLoaderFeatherPct,r=s.provisioningLoaderDurationMs,n=s.provisioningLoaderSheenHighlightPct,a=s.provisioningLoaderSheenShadowPct,o=s.provisioningLoaderSheenMidStopPct,i=s.provisioningLoaderSheenHorizontalFadePct,l=s.provisioningLoaderSheenBlend}catch{}let s=12/Math.sin(60*Math.PI/180),d=100-t;return(0,f.jsxs)("div",{className:"relative rounded-full",style:{width:`${e}%`,boxShadow:"0 2px 8px color-mix(in srgb, var(--color-brand) 45%, transparent)"},children:[(0,f.jsx)("div",{className:"overflow-hidden rounded-full",style:t>0?{WebkitMaskImage:`linear-gradient(to right, transparent 0%, black ${t}%, black ${d}%, transparent 100%)`,maskImage:`linear-gradient(to right, transparent 0%, black ${t}%, black ${d}%, transparent 100%)`}:void 0,children:(0,f.jsx)("div",{className:"provisioning-barbershop h-2",style:{width:`calc(100% + ${s}px)`,backgroundImage:"repeating-linear-gradient(60deg, var(--color-brand) 0 6px, color-mix(in srgb, var(--color-brand) 75%, black) 6px 12px)","--provisioning-pan":`${s}px`,animationDuration:`${r}ms`},"aria-hidden":"true"})}),(0,f.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 rounded-full",style:{backgroundImage:`linear-gradient(to bottom, color-mix(in srgb, white ${n}%, transparent) 0%, transparent ${o}%, color-mix(in srgb, black ${a}%, transparent) 100%)`,mixBlendMode:"normal"===l?void 0:l,...i>0?{WebkitMaskImage:`linear-gradient(to right, transparent 0%, black ${i}%, black ${100-i}%, transparent 100%)`,maskImage:`linear-gradient(to right, transparent 0%, black ${i}%, black ${100-i}%, transparent 100%)`}:{}}})]})}function ob({clawName:e}){let[t,r]=(0,m.useState)(0);(0,m.useEffect)(()=>{let e=window.setInterval(()=>r(e=>e+1),4500);return()=>window.clearInterval(e)},[]);let n=e.trim()||"your claw",a=oh[t%oh.length].replaceAll("{name}",n);return(0,f.jsx)("div",{className:"h-6 w-56 flex items-center justify-center overflow-clip",children:(0,f.jsx)("span",{className:"provisioning-tip-slide text-xs text-brand font-medium",children:a},t)})}function oy({apps:e,marginTopPx:t}){let r=e.slice(0,5),n=e.length-r.length;return(0,f.jsxs)("div",{className:"flex items-center justify-center gap-2",style:{marginTop:t},children:[r.map(e=>(0,f.jsx)(ow,{app:e},e.id)),n>0&&(0,f.jsxs)("span",{className:"ml-1 text-xs font-medium text-neutral-500 dark:text-neutral-400",children:["+",n]})]})}function ow({app:e}){return(0,f.jsx)(op,{size:24,logoUrl:e.logoUrl,fallbackName:e.n
17ame})}e.s(["ProvisioningClawCard",0,function({claw:e=om,revealPhase:t="done",revealStyle:r="none",revealPhotoSlideDurationMs:n=700,revealEntranceDurationMs:a=700,revealEntranceScale:o=.18,revealRowStaggerMs:i=260,revealRowDurationMs:l=500}){let s=320,d=5,c=8,u=10,p=1,m=10,h=180,g=2.4;try{let e=a6();s=e.provisioningPhotoHeightPx,d=e.provisioningCardContentTopPad,c=e.provisioningCardContentBottomPad,u=e.provisioningBulletsToLoaderGap,p=e.provisioningLoaderToTipGap,m=e.provisioningLoaderToAppsGap,h=e.provisioningRevealImageLagPx,g=e.provisioningRevealImageLagDurationMultiplier}catch{}let v=function(e){let t=!0,r=!0,n=!0,a=4;try{let e=a6();t=e.provisioningBulletIconJob,r=e.provisioningBulletIconShare,n=e.provisioningBulletIconSlack,a=e.provisioningBulletGap}catch{}let o=e.roleIcon??aE.Briefcase,i=""===e.role.trim()?null:(0,f.jsx)(ov,{showIcon:t,icon:(0,f.jsx)(o,{size:12,strokeWidth:2}),children:e.role}),l=a9[e.accessType??"team"].icon,s=(0,f.jsxs)(ov,{showIcon:r,icon:(0,f.jsx)(l,{size:12,strokeWidth:2}),children:["Shared with"," ",(0,f.jsx)("span",{className:"text-neutral-800 dark:text-neutral-100",children:e.scopePhrase??"just you"})]}),d=(e.slackHandle??"").trim().length>0?(0,f.jsxs)(ov,{showIcon:n,icon:(0,f.jsx)("img",{src:"/services/slack.svg",alt:"",className:"size-3"}),iconUncolored:!0,children:["Mention"," ",(0,f.jsxs)("span",{className:"text-neutral-800 dark:text-neutral-100",children:["@",e.slackHandle]})," ","on Slack"]}):null;return{showJobIcon:t,showShareIcon:r,showSlackIcon:n,bulletGapStep:a,roleBullet:i,privacyBullet:s,slackBullet:d}}(e),x="none"!==r&&"done"!==t,b="content"===t||"photo-slide"===t||"chrome"===t||"done"===t,y="photo-slide"===t||"chrome"===t||"done"===t;function w(e){return x?{opacity:+!!b,transform:b?"translateY(0)":"translateY(8px)",transitionDelay:b?`${e*i}ms`:"0ms",transitionDuration:`${l}ms`,transitionTimingFunction:"var(--ease-quick)"}:{}}let k=v.roleBullet?{role:0,privacy:1,slack:2,loader:3,apps:4}:{role:null,privacy:0,slack:1,loader:2,apps:3},j=0;x&&(j="idle"===t||"card-shape"===t||"content"===t?s:0);let N="none"===r?"none":`inset(${j}px 0 0 0 round 24px)`,C=x&&!y?s:0,S=Math.round(n*g),E=x&&!y?h:0,R=x?`transform ${S}ms var(--ease-quick)`:void 0,M=x&&"idle"===t,P=x&&!y?-s/2:0,T=x&&!y?s:0;return(0,f.jsx)("div",{className:"relative w-full max-w-xs",style:{transform:`translateY(${P}px)`,transition:x?`transform ${n}ms var(--ease-quick)`:void 0},children:(0,f.jsxs)("div",{className:"relative w-full",style:{opacity:+!M,transform:M?`scale(${o})`:"scale(1)",transformOrigin:`center calc(50% + ${s/2}px)`,transition:x?`opacity ${a}ms var(--ease-quick), transform ${a}ms var(--ease-quick)`:void 0},children:[(0,f.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 rounded-3xl ring-1 ring-neutral-200/70 dark:ring-neutral-800/70",style:{to
17p:T,boxShadow:"0 1px 2px color-mix(in srgb, var(--color-neutral-900) 4%, transparent), 0 12px 32px color-mix(in srgb, var(--color-neutral-900) 6%, transparent)",transition:x?`top ${n}ms var(--ease-quick)`:void 0}}),(0,f.jsxs)("div",{className:"relative w-full flex flex-col overflow-hidden rounded-3xl bg-white dark:bg-neutral-900",style:{clipPath:N,WebkitClipPath:N,transition:x?`clip-path ${n}ms var(--ease-quick), -webkit-clip-path ${n}ms var(--ease-quick)`:void 0},children:[(0,f.jsx)("div",{className:"relative w-full overflow-hidden",style:{height:s,borderTopLeftRadius:24,borderTopRightRadius:24},children:(0,f.jsx)("div",{style:{transform:`translateY(${C}px)`,transition:x?`transform ${n}ms var(--ease-quick)`:void 0},children:(0,f.jsx)(og,{claw:e,radius:24,imageLagOffsetPx:E,imageLagTransition:R})})}),(0,f.jsxs)("div",{className:"flex flex-col items-center px-10",style:{paddingTop:4*d,paddingBottom:4*c},children:[(0,f.jsxs)("div",{role:"list",className:"flex flex-col items-start text-xs text-neutral-500 dark:text-neutral-400 leading-snug",style:{rowGap:`${4*v.bulletGapStep}px`},children:[v.roleBullet&&null!==k.role&&(0,f.jsx)("div",{className:"transition-all ease-out",style:w(k.role),children:v.roleBullet}),(0,f.jsx)("div",{className:"transition-all ease-out",style:w(k.privacy),children:v.privacyBullet}),v.slackBullet&&(0,f.jsx)("div",{className:"transition-all ease-out",style:w(k.slack),children:v.slackBullet})]}),(0,f.jsxs)("div",{className:"flex w-full flex-col items-center transition-all ease-out",style:{marginTop:4*u,rowGap:4*p,...w(k.loader)},children:[(0,f.jsx)(ox,{}),(0,f.jsx)(ob,{clawName:e.name})]}),e.apps&&e.apps.length>0&&(0,f.jsx)("div",{className:"w-full transition-all ease-out",style:w(k.apps),children:(0,f.jsx)(oy,{apps:e.apps,marginTopPx:4*m})})]})]})]})})}],593117)},116233,493734,308402,836131,499177,418367,931260,439779,620059,189042,44024,311159,222850,579605,515892,458409,795372,695576,972023,762519,723823,767036,901111,433992,708737,781243,846696,246366,214877,576326,87352,991686,235118,e=>{"use strict";let t,r,n,a,o,i,l;var s=e.i(285159),d=e.i(426528);e.i(202687);var c=e.i(81522),u=e.i(234085);e.i(26306);var p=e.i(581063),f=e.i(901001),m=e.i(971822),h=e.i(393564),g=e.i(894208),v=e.i(547412),x=e.i(120254),b=e.i(119420),y=e.i(331680),w=e.i(406120),k=e.i(411541),j=e.i(420787),N=e.i(774177);e.i(458047);var C=e.i(843476),S=e.i(271645),E=e.i(104080),R=e.i(207670),M=e.i(839690),P=e.i(669832),T=e.i(593117),I=e.i(320553);function D({clerkEmail:e=null,clerkPhone:t=null,onConfirmEmail:r,onConfirmPhone:n}){return(0,C.jsx)("div",{className:"w-full flex flex-col items-center gap-5",children:(0,C.jsx)(L,{})})}function L(){return(0,C.jsxs)("div",{className:"max-w-xs text-center flex flex-col gap-1",children:[(0,C.jsx)("p",{className:"text-xs font-semibold text-neutral-800 dark:text-neutral-100",children:"Ready in about 3-5 minutes."}),(0,C.jsx)("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"We'll tell you when they've finished setting up."})]})}I.SPRING.snap,I.SPRING.layout,I.SPRING.chipExit;var A=e.i(288599),z=e.i(363178);function O({claw:e,className:t,revealPhase:r="done",revealStyle:n="none",chromeVisible:a=!0,revealPhotoSlideDurationMs:o,revealEntranceDurationMs:i,revealEntranceScale:l,revealRowStaggerMs:s,revealRowDurationMs:d,clerkEmail:c,clerkPhone:u,onConfirmEmail:p,onConfirmPhone:f}){let m=20,h=null;try{let e=(0,A.useProvisioningState)();m=e.provisioningCardGap,h=e.chatBg?.color??null}catch{}let{resolvedTheme:g}=function(){let{resolvedTheme:e}=(0,z.useTheme)(),[t,r]=(0,S.useState)(!1);return(0,S.useEffect)(()=>r(!0),[]),{resolvedTheme:t?e:void 0}}(),v="dark"===g?void 0:h??void 0;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:(0,R.default)("hidden lg:flex h-full w-full flex-col justify-center",t),children:(0,C.jsxs)("div",{className:"flex min-h-0 flex-1 w-full max-w-xl max-h-[1000px] mx-auto flex-col overflow-y-auto [&::-webkit-scrollbar]:hidden [scrollbar-width:none]",style:{rowGap:`${4*m}px`},children:[(0,C.jsx)("div",{className:"flex flex-1 justify-center px-6 pt-8",style:{alignItems:"safe center"},children:(0,C.jsx)(T.ProvisioningClawCard,{claw:e,revealPhase:r,revealStyle:n,revealPhotoSlideDurationMs:o,revealEntranceDurationMs:i,revealEntranceScale:l,revealRowStaggerMs:s,revealRowDurationMs:d})}),(0,C.jsxs)("div",{className:"sticky bottom-0 shrink-0 transition-opacity duration-500 ease-out",style:{opacity:+!!a}
17,children:[(0,C.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 -top-10 h-10",style:{backgroundImage:v?`linear-gradient(to bottom, transparent, ${v})`:void 0}}),(0,C.jsx)("div",{className:"px-6 pb-8 pt-4 dark:bg-neutral-950",style:{backgroundColor:v},children:(0,C.jsx)(D,{clerkEmail:c,clerkPhone:u,onConfirmEmail:p,onConfirmPhone:f})})]})]})}),(0,C.jsx)("div",{className:"lg:hidden h-full w-full flex flex-col px-4",children:(0,C.jsxs)("div",{className:"flex min-h-0 flex-1 w-full flex-col overflow-y-auto [&::-webkit-scrollbar]:hidden [scrollbar-width:none]",children:[(0,C.jsx)("div",{className:"flex flex-1 w-full justify-center",style:{alignItems:"safe center"},children:(0,C.jsx)(T.ProvisioningClawCard,{claw:e,revealPhase:r,revealStyle:n,revealPhotoSlideDurationMs:o,revealEntranceDurationMs:i,revealEntranceScale:l,revealRowStaggerMs:s,revealRowDurationMs:d})}),(0,C.jsxs)("div",{className:"sticky bottom-0 w-full shrink-0 transition-opacity duration-500 ease-out",style:{opacity:+!!a},children:[(0,C.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 -top-10 h-10",style:{backgroundImage:v?`linear-gradient(to bottom, transparent, ${v})`:void 0}}),(0,C.jsx)("div",{className:"pt-4 dark:bg-neutral-950",style:{backgroundColor:v,paddingBottom:"calc(env(safe-area-inset-bottom, 0px) + 16px)"},children:(0,C.jsx)(D,{clerkEmail:c,clerkPhone:u,onConfirmEmail:p,onConfirmPhone:f})})]})]})})]})}let $=[],F={cardShape:80,content:80,photoSlide:1100,chrome:1820,done:2050};function H({claw:e,animateReveal:t=!1,onRevealComplete:r,onChromePhaseBegin:n,clerkEmail:a,clerkPhone:o,companyName:i,onConfirmEmail:l,onConfirmPhone:s}){let d=i?.trim(),c=d||"Acme, Inc",u=0,p=F,f=700,m=700,h=.18,g=260,v=500,x=null;try{let e=(0,A.useProvisioningState)();c=d||e.companyName||c,u=e.provisioningRevealCounter??0,p={cardShape:e.provisioningRevealCardShapeMs,content:e.provisioningRevealContentMs,photoSlide:e.provisioningRevealPhotoSlideMs,chrome:e.provisioningRevealChromeMs,done:e.provisioningRevealDoneMs},f=e.provisioningRevealPhotoSlideDurationMs,m=e.provisioningRevealEntranceDurationMs,h=e.provisioningRevealEntranceScale,g=e.provisioningRevealRowStaggerMs,v=e.provisioningRevealRowDurationMs,x=e.chatBg?.color??null}catch{}let b=(0,S.useRef)(t&&!0),[y,w]=(0,S.useState)(b.current?"idle":"done");(0,S.useEffect)(()=>{if(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){w("done"),r?.();return}if(!b.current)return void w("done");w("idle");let e=[];return e.push(setTimeout(()=>w("card-shape"),p.cardShape)),e.push(setTimeout(()=>w("content"),p.content)),e.push(setTimeout(()=>w("photo-slide"),p.photoSlide)),e.push(setTimeout(()=>{w("chrome"),n?.()},p.chrome)),e.push(setTimeout(()=>{w("done"),r?.()},p.done)),()=>{for(let t of e)clearTimeout(t)}},[u]);let k=M.ROLES.find(t=>t.name===e.role.trim()),j=k?.Icon??E.Briefcase,N="just you",T=e.accessType;if("team"===e.accessType)N="your team";else if("select"===e.accessType){let t=(e.accessSelectedMemberIds??[]).length;N=0===t?"just you":1===t?"1 teammate":`${t} teammates`,0===t&&(T="private")}let I=(e.appIds??[]).map(e=>$.find(t=>t.id===e)).filter(e=>!!e).map(e=>({id:e.id,name:e.name,logoUrl:e.logoUrl,color:e.color})),D={id:e.id,name:e.name,role:e.role,slackHandle:e.slackHandle??"",accessType:T,scopePhrase:N,roleIcon:j,apps:I,photoId:e.photoId,bgColorIndex:e.bgColorIndex,imageUrl:e.imageUrl,bgGradient:e.bgGradient},L="chrome"===y||"done"===y,z=e.name.trim()||"Your claw",_=(0,C.jsxs)(C.Fragment,{children:["Hang tight,",(0,C.jsx)("br",{}),(0,C.jsx)("span",{className:"text-brand",children:z})," is on the way."]});return(0,C.jsxs)("div",{className:"flex h-full w-full flex-col",children:[(0,C.jsxs)("div",{className:(0,R.default)("relative z-10 shrink-0 px-6 pt-2 pb-8 transition-opacity duration-500 ease-out lg:pt-16 lg:pb-10"),style:{opacity:+!!L,backgroundColor:x??void 0},children:[(0,C.jsx)(P.StepHeader,{title:_}),x&&(0,C.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 -bottom-10 h-10",style:{backgroundImage:`linear-gradient(to bottom, ${x}, transparent)`}})]}),(0,C.jsx)("div",{className:"flex min-h-0 flex-1 flex-col",children:(0,C.jsx)(O,{claw:D,revealPhase:y,revealStyle:"animated",chromeVisible:L,revealPhotoSlideDurationMs:f,revealEntranceDurationMs:m,revealEntranceScale:h,revealRowStaggerMs:g,revealRowDurationMs:v,clerkEmail:a,clerkPhone:o,onConfirmEmail:l,onConfirmPhone:s})})]})}e.s(["ProvisioningPage",0,function(e){return(0,C.jsx)(A.ProvisioningStateProvider,{value:e.state,children:(0,C.jsx)(H,{...e})})}],493734);var _=e.i(665623),B=e.i(632137),W=e.i(981140),V=e.i(820783),G=e.i(30030),U=e.i(726330),q=e.i(610772),K=e.i(853660),Y=e.i(774606),X=e.i(296626),Z=e.i(248425),J=Symbol("radix.slottable"),Q=e.i(369340),ee=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"}),et=S.forwardRef((e,t)=>
17(0,C.jsx)(Z.Primitive.span,{...e,ref:t,style:{...ee,...e.style}}));et.displayName="VisuallyHidden";var[er,en]=(0,G.createContextScope)("Tooltip",[K.createPopperScope]),ea=(0,K.createPopperScope)(),eo="TooltipProvider",ei="tooltip.open",[el,es]=er(eo),ed=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:o}=e,i=S.useRef(!0),l=S.useRef(!1),s=S.useRef(0);return S.useEffect(()=>{let e=s.current;return()=>window.clearTimeout(e)},[]),(0,C.jsx)(el,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:S.useCallback(()=>{window.clearTimeout(s.current),i.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:S.useCallback(e=>{l.current=e},[]),disableHoverableContent:a,children:o})};ed.displayName=eo;var ec="Tooltip",[eu,ep]=er(ec),ef=e=>{let{__scopeTooltip:t,children:r,open:n,defaultOpen:a,onOpenChange:o,disableHoverableContent:i,delayDuration:l}=e,s=es(ec,e.__scopeTooltip),d=ea(t),[c,u]=S.useState(null),p=(0,q.useId)(),f=S.useRef(0),m=i??s.disableHoverableContent,h=l??s.delayDuration,g=S.useRef(!1),[v,x]=(0,Q.useControllableState)({prop:n,defaultProp:a??!1,onChange:e=>{e?(s.onOpen(),document.dispatchEvent(new CustomEvent(ei))):s.onClose(),o?.(e)},caller:ec}),b=S.useMemo(()=>v?g.current?"delayed-open":"instant-open":"closed",[v]),y=S.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,x(!0)},[x]),w=S.useCallback(()=>{window.clearTimeout(f.current),f.current=0,x(!1)},[x]),k=S.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,x(!0),f.current=0},h)},[h,x]);return S.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),(0,C.jsx)(K.Root,{...d,children:(0,C.jsx)(eu,{scope:t,contentId:p,open:v,stateAttribute:b,trigger:c,onTriggerChange:u,onTriggerEnter:S.useCallback(()=>{s.isOpenDelayedRef.current?k():y()},[s.isOpenDelayedRef,k,y]),onTriggerLeave:S.useCallback(()=>{m?w():(window.clearTimeout(f.current),f.current=0)},[w,m]),onOpen:y,onClose:w,disableHoverableContent:m,children:r})})};ef.displayName=ec;var em="TooltipTrigger",eh=S.forwardRef((e,t)=>{let{__scopeTooltip:r,...n}=e,a=ep(em,r),o=es(em,r),i=ea(r),l=S.useRef(null),s=(0,V.useComposedRefs)(t,l,a.onTriggerChange),d=S.useRef(!1),c=S.useRef(!1),u=S.useCallback(()=>d.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),(0,C.jsx)(K.Anchor,{asChild:!0,...i,children:(0,C.jsx)(Z.Primitive.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...n,ref:s,onPointerMove:(0,W.composeEventHandlers)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(c.current||o.isPointerInTransitRef.current||(a.onTriggerEnter(),c.current=!0))}),onPointerLeave:(0,W.composeEventHandlers)(e.onPointerLeave,()=>{a.onTriggerLeave(),c.current=!1}),onPointerDown:(0,W.composeEventHandlers)(e.onPointerDown,()=>{a.open&&a.onClose(),d.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:(0,W.composeEventHandlers)(e.onFocus,()=>{d.current||a.onOpen()}),onBlur:(0,W.composeEventHandlers)(e.onBlur,a.onClose),onClick:(0,W.composeEventHandlers)(e.onClick,a.onClose)})})});eh.displayName=em;var eg="TooltipPortal",[ev,ex]=er(eg,{forceMount:void 0}),eb=e=>{let{__scopeTooltip:t,forceMount:r,children:n,container:a}=e,o=ep(eg,t);return(0,C.jsx)(ev,{scope:t,forceMount:r,children:(0,C.jsx)(X.Presence,{present:r||o.open,children:(0,C.jsx)(Y.Portal,{asChild:!0,container:a,children:n})})})};eb.displayName=eg;var ey="TooltipContent",ew=S.forwardRef((e,t)=>{let r=ex(ey,e.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...o}=e,i=ep(ey,e.__scopeTooltip);return(0,C.jsx)(X.Presence,{present:n||i.open,children:i.disableHoverableContent?(0,C.jsx)(eS,{side:a,...o,ref:t}):(0,C.jsx)(ek,{side:a,...o,ref:t})})}),ek=S.forwardRef((e,t)=>{let r=ep(ey,e.__scopeTooltip),n=es(ey,e.__scopeTooltip),a=S.useRef(null),o=(0,V.useComposedRefs)(t,a),[i,l]=S.useState(null),{trigger:s,onClose:d}=r,c=a.current,{onPointerInTransitChange:u}=n,p=S.useCallback(()=>
17{l(null),u(!1)},[u]),f=S.useCallback((e,t)=>{let r,n=e.currentTarget,a={x:e.clientX,y:e.clientY},o=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,a,o)){case o:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(a,n.getBoundingClientRect());l(((r=[...function(e,t,r=5){let 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})}return n}(a,o),...function(e){let{top:t,right:r,bottom:n,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:n},{x:a,y:n}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(r))),u(!0)},[u]);return S.useEffect(()=>()=>p(),[p]),S.useEffect(()=>{if(s&&c){let e=e=>f(e,c),t=e=>f(e,s);return s.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{s.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[s,c,f,p]),S.useEffect(()=>{if(i){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=s?.contains(t)||c?.contains(t),a=!function(e,t){let{x:r,y:n}=e,a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let i=t[e],l=t[o],s=i.x,d=i.y,c=l.x,u=l.y;d>n!=u>n&&r<(c-s)*(n-d)/(u-d)+s&&(a=!a)}return a}(r,i);n?p():a&&(p(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[s,c,i,d,p]),(0,C.jsx)(eS,{...e,ref:o})}),[ej,eN]=er(ec,{isInside:!1}),eC=((t=({children:e})=>(0,C.jsx)(C.Fragment,{children:e})).displayName="TooltipContent.Slottable",t.__radixId=J,t),eS=S.forwardRef((e,t)=>{let{__scopeTooltip:r,children:n,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:i,...l}=e,s=ep(ey,r),d=ea(r),{onClose:c}=s;return S.useEffect(()=>(document.addEventListener(ei,c),()=>document.removeEventListener(ei,c)),[c]),S.useEffect(()=>{if(s.trigger){let e=e=>{let t=e.target;t?.contains(s.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[s.trigger,c]),(0,C.jsx)(U.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:c,children:(0,C.jsxs)(K.Content,{"data-state":s.stateAttribute,...d,...l,ref:t,style:{...l.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:[(0,C.jsx)(eC,{children:n}),(0,C.jsx)(ej,{scope:r,isInside:!0,children:(0,C.jsx)(et,{id:s.contentId,role:"tooltip",children:a||n})})]})})});ew.displayName=ey;var eE="TooltipArrow";S.forwardRef((e,t)=>{let{__scopeTooltip:r,...n}=e,a=ea(r);return eN(eE,r).isInside?null:(0,C.jsx)(K.Arrow,{...a,...n,ref:t})}).displayName=eE;let eR=S.forwardRef(({className:e,sideOffset:t=4,...r},n)=>(0,C.jsx)(eb,{children:(0,C.jsx)(ew,{ref:n,sideOffset:t,className:(0,B.cn)("z-[9999] overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-(--shadow-popover) duration-fast data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-[0.98] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-[0.98] data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:sli
17de-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",e),...r})}));eR.displayName=ew.displayName,e.s(["Tooltip",0,ef,"TooltipContent",0,eR,"TooltipProvider",0,ed,"TooltipTrigger",0,eh],308402);var eM=e.i(414540);let eP=(0,eM.default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]),eT=(0,_.cva)("relative flex items-center rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",{variants:{layout:{icon:"justify-center",stacked:"flex-col justify-center items-center",inline:"justify-start"},size:{sm:"",default:"",lg:""},active:{true:"bg-accent text-accent-foreground",false:"text-muted-foreground hover:bg-muted hover:text-foreground"},disabled:{true:"opacity-50 pointer-events-none",false:""}},compoundVariants:[{layout:"icon",size:"sm",className:"p-2"},{layout:"icon",size:"default",className:"p-2.5"},{layout:"icon",size:"lg",className:"p-3"},{layout:"stacked",size:"sm",className:"p-1.5 gap-0.5"},{layout:"stacked",size:"default",className:"p-2 gap-1"},{layout:"stacked",size:"lg",className:"p-2.5 gap-1"},{layout:"inline",size:"sm",className:"px-2 py-1.5 gap-1.5"},{layout:"inline",size:"default",className:"px-3 py-2 gap-2"},{layout:"inline",size:"lg",className:"px-3 py-2.5 gap-2.5"}],defaultVariants:{layout:"inline",size:"default",active:!1,disabled:!1}}),eI={sm:"w-4 h-4",default:"w-5 h-5",lg:"w-5 h-5"},eD={sm:"text-xxs",default:"text-xs",lg:"text-sm"},eL=S.forwardRef(({className:e,layout:t="inline",size:r="default",active:n=!1,disabled:a=!1,label:o,icon:i=eP,badge:l,showTooltip:s,...d},c)=>{let u=eI[r||"default"],p=eD[r||"default"],f=s??"icon"===t,m=(0,C.jsxs)("button",{ref:c,disabled:a||!1,className:(0,B.cn)(eT({layout:t,size:r,active:n,disabled:a}),e),...d,children:[(0,C.jsxs)("div",{className:"relative",children:[(0,C.jsx)(i,{className:(0,B.cn)("shrink-0",u)}),void 0!==l&&l>0&&(0,C.jsx)(k.NavBadge,{count:l,className:"absolute -top-1.5 -right-1.5"})]}),"stacked"===t&&(0,C.jsx)("span",{className:(0,B.cn)("font-medium truncate",p),children:o}),"inline"===t&&(0,C.jsx)("span",{className:(0,B.cn)("font-medium truncate flex-1 text-left",p),children:o})]});return f&&o?(0,C.jsxs)(ef,{children:[(0,C.jsx)(eh,{asChild:!0,children:m}),(0,C.jsx)(eR,{side:"right",sideOffset:8,children:o})]}):m});eL.displayName="NavButton";var eA=e.i(587254);let ez={sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"};e.s(["ServiceIcon",0,function({name:e,imageUrl:t,icon:r=eA.Globe,size:n="md",noPadding:a=!1,className:o=""}){let i=o?.includes("w-")&&o?.includes("h-")?"":ez[n];return t?(0,C.jsx)("img",{src:t,alt:e,className:`${i} object-contain ${a?"":"p-0.5"} ${a?"rounded-md":"rounded-md bg-white border border-border/60 shadow-[0_0.5px_1px_rgba(0,0,0,0.04)]"} shrink-0 ${o}`}):(0,C.jsx)(r,{className:`${i} text-muted-foreground shrink-0 bg-muted rounded p-1.5 ${o}`})}],836131);var eO=e.i(77847);let e$=(0,eM.default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),eF=(0,_.cva)(["relative flex h-48 flex-col justify-between overflow-hidden","rounded-3xl border p-6 text-card-foreground","transition-[box-shadow,border-color,background-color] duration-fast ease-out"],{variants:{installed:{false:"bg-card border-border hover:shadow-(--shadow-card) hover:border-accent-foreground/20",true:"bg-subtle border-border shadow-sm"}},defaultVariants:{installed:!1}}),eH=S.forwardRef(({title:e="Untitled skill",author:t="Unknown author",description:r="",installCount:n=0,services:a=[],installed:o=!1,onQuickAdd:i,className:l,onClick:s,onKeyDown:d,...c},u)=>{let p="function"==typeof s,f=a.slice(0,3),m=o?`${e} is installed`:`Install ${e}`,h=`${n.toLocaleString()} ${1===n?"install":"installs"} on your team`;return(0,C.jsxs)("div",{ref:u,"data-ph-no-capture":"true",role:p?"button":void 0,tabIndex:p?0:void 0,onClick:s,onKeyDown:e=>{p&&e.target===e.currentTarget&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),e.currentTarget.click()),d?.(e)},className:(0,B.cn)(eF({installed:o}),p&&"cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",l),...c,children:[(0,C.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,C.jsxs)("div",{className:"flex items-start gap-4",children:[(0,C.jsx)("h3",{className:"flex-1 min-w-0 text-xl font-semibold leading-tight tracking-tight",children:e}),i&&(0,C.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),i?.()},"aria-label":m,"aria-pressed":o||void 0,className:(0,B.cn)("flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full","text-muted-foreground transition-colors hover:text-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",o&&"text-primary hover:text-primary"),children:o?(0,C.jsx)(eO.Check,{className:"h-5 w-5","aria-hidden":"true"}):(0,C.jsx)(e$,{className:"h-5 w-5","aria-hidden":"true"})})]}),(0,C.jsxs)("p",{className:"text-xxs",children:[(0,C.jsx)("span",{className:"text-muted-foreground",children:"by "}),(0,C.jsx)("span",{className:"font-medium text-foreground",children:t})]}),r&&(0,C.jsx)("p",{className:"text-xs leading-snug text-muted-foreground line-clamp-2",children:r})]}),(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsx)("span",{className:"text-xxs font-medium text-muted-foreground",children:h}),f.length>0&&(0,C.jsx)(e_,{services:f})]})]})});function e_({services:e}){return(0,C.jsx)("div",{className:"flex items-center",children:e.map((t,r)=>{let n=t.icon;return(0,C.jsx)("div",{title:t.name,"aria-label":t.name,className:(0,B.cn)("relative inline-flex h-5 w-5 items-center justify-center overflow-hidden","rounded-md bg-white shadow-sm ring-[1.5px] ring-card",r>
170&&"-ml-1.5"),style:{zIndex:e.length-r},children:t.imageUrl?(0,C.jsx)("img",{src:t.imageUrl,alt:"",className:"h-full w-full object-cover"}):n?(0,C.jsx)(n,{className:"h-3 w-3 text-muted-foreground","aria-hidden":"true"}):(0,C.jsx)("span",{"aria-hidden":"true",className:"text-xxs font-semibold text-muted-foreground",children:t.name.slice(0,1).toUpperCase()})},`${t.name}-${r}`)})})}eH.displayName="SkillCard",e.s(["SkillCard",0,eH],499177);let eB=(0,_.cva)("flex items-center",{variants:{size:{sm:"gap-2",default:"gap-2",lg:"gap-3"},layout:{inline:"flex-row",stacked:"flex-col text-center"}},defaultVariants:{size:"default",layout:"inline"}}),eW=e=>e.split(" ").map(e=>e[0]).join("").toUpperCase().slice(0,2),eV=S.forwardRef(({className:e,size:t="default",layout:r="inline",name:n,email:a,avatarUrl:o,colorSeed:i,avatarOnly:l=!1,...d},c)=>{let u="sm"===t?"sm":"lg"===t?"lg":"default";return l?(0,C.jsx)(s.Avatar,{src:o,initials:eW(n),size:u,colorSeed:i,className:e}):(0,C.jsxs)("div",{ref:c,className:(0,B.cn)(eB({size:t,layout:r}),e),...d,children:[(0,C.jsx)(s.Avatar,{src:o,initials:eW(n),size:u,colorSeed:i}),(0,C.jsxs)("div",{className:(0,B.cn)("min-w-0 flex-1","inline"===r&&"text-left"),children:[(0,C.jsx)("div",{className:"text-sm font-medium truncate",children:n}),a&&(0,C.jsx)("div",{className:"text-xs text-muted-foreground truncate",children:a})]})]})});eV.displayName="UserProfile",e.s(["UserProfile",0,eV,"getInitials",0,eW],418367);var eG=e.i(934620),eU="Collapsible",[eq,eK]=(0,G.createContextScope)(eU),[eY,eX]=eq(eU),eZ=S.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:n,defaultOpen:a,disabled:o,onOpenChange:i,...l}=e,[s,d]=(0,Q.useControllableState)({prop:n,defaultProp:a??!1,onChange:i,caller:eU});return(0,C.jsx)(eY,{scope:r,disabled:o,contentId:(0,q.useId)(),open:s,onOpenToggle:S.useCallback(()=>d(e=>!e),[d]),children:(0,C.jsx)(Z.Primitive.div,{"data-state":e5(s),"data-disabled":o?"":void 0,...l,ref:t})})});eZ.displayName=eU;var eJ="CollapsibleTrigger",eQ=S.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,a=eX(eJ,r);return(0,C.jsx)(Z.Primitive.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":e5(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...n,ref:t,onClick:(0,W.composeEventHandlers)(e.onClick,a.onOpenToggle)})});eQ.displayName=eJ;var e0="CollapsibleContent",e1=S.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=eX(e0,e.__scopeCollapsible);return(0,C.jsx)(X.Presence,{present:r||a.open,children:({present:e})=>(0,C.jsx)(e2,{...n,ref:t,present:e})})});e1.displayName=e0;var e2=S.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:n,children:a,...o}=e,i=eX(e0,r),[l,s]=S.useState(n),d=S.useRef(null),c=(0,V.useComposedRefs)(t,d),u=S.useRef(0),p=u.current,f=S.useRef(0),m=f.current,h=i.open||l,g=S.useRef(h),v=S.useRef(void 0);return S.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,eG.useLayoutEffect)(()=>{let e=d.current;if(e){v.current=v.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();u.current=t.height,f.current=t.width,g.current||(e.style.transitionDuration=v.current.transitionDuration,e.style.animationName=v.current.animationName),s(n)}},[i.open,n]),(0,C.jsx)(Z.Primitive.div,{"data-state":e5(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!h,...o,ref:c,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&a})});function e5(e){return e?"open":"closed"}let e4=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)(e1,{ref:r,className:(0,B.cn)("overflow-hidden duration-normal data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",e),...t}));e4.displayName="CollapsibleContent",e.s(["Collapsible",0,eZ,"CollapsibleContent",0,e4,"CollapsibleTrigger",0,eQ],931260);var e3=e.i(911123);let e6=(0,eM.default)("menu",[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]]);var e8=e.i(765491),e7=e.i(303536),e9=e.i(985369),te=e.i(186312),tt=Symbol("radix.slottable");function tr(e){return S.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===tt}var tn="Dialog",[ta,to]=(0,G.createContextScope)(tn),[ti,tl]=ta(tn),ts=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,l=S.useRef(null),s=S.useRef(null),[d,c]=(0,Q.useControllableState)({prop:n,defaultProp:a??!1,onChange:o,caller:tn});return(0,C.jsx)(ti,{scope:t,triggerRef:l,contentRef:s,contentId:(0,q.useId)(),titleId:(0,q.useId)(),descriptionId:(0,q.useId)(),open:d,onOpenChange:c,onOpenToggle:S.useCallback(()=>c(e=>!e),[c]),modal:i,children:r})};ts.displayName=tn;var td="DialogTrigger",tc=S.forwardRef((e,t)=>
17{let{__scopeDialog:r,...n}=e,a=tl(td,r),o=(0,V.useComposedRefs)(t,a.triggerRef);return(0,C.jsx)(Z.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":tP(a.open),...n,ref:o,onClick:(0,W.composeEventHandlers)(e.onClick,a.onOpenToggle)})});tc.displayName=td;var tu="DialogPortal",[tp,tf]=ta(tu,{forceMount:void 0}),tm=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:a}=e,o=tl(tu,t);return(0,C.jsx)(tp,{scope:t,forceMount:r,children:S.Children.map(n,e=>(0,C.jsx)(X.Presence,{present:r||o.open,children:(0,C.jsx)(Y.Portal,{asChild:!0,container:a,children:e})}))})};tm.displayName=tu;var th="DialogOverlay",tg=S.forwardRef((e,t)=>{let r=tf(th,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=tl(th,e.__scopeDialog);return o.modal?(0,C.jsx)(X.Presence,{present:n||o.open,children:(0,C.jsx)(tx,{...a,ref:t})}):null});tg.displayName=th;var tv=((i=S.forwardRef((e,t)=>{let{children:r,...n}=e;if(S.isValidElement(r)){var a;let e,o,i=(a=r,(o=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(o=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),l=function(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==S.Fragment&&(l.ref=t?(0,V.composeRefs)(t,i):i),S.cloneElement(r,l)}return S.Children.count(r)>1?S.Children.only(null):null})).displayName="DialogOverlay.RemoveScroll.SlotClone",r=i,(n=S.forwardRef((e,t)=>{let{children:n,...a}=e,o=S.Children.toArray(n),i=o.find(tr);if(i){let e=i.props.children,n=o.map(t=>t!==i?t:S.Children.count(e)>1?S.Children.only(null):S.isValidElement(e)?e.props.children:null);return(0,C.jsx)(r,{...a,ref:t,children:S.isValidElement(e)?S.cloneElement(e,void 0,n):null})}return(0,C.jsx)(r,{...a,ref:t,children:n})})).displayName="DialogOverlay.RemoveScroll.Slot",n),tx=S.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=tl(th,r);return(0,C.jsx)(e9.RemoveScroll,{as:tv,allowPinchZoom:!0,shards:[a.contentRef],children:(0,C.jsx)(Z.Primitive.div,{"data-state":tP(a.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),tb="DialogContent",ty=S.forwardRef((e,t)=>{let r=tf(tb,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=tl(tb,e.__scopeDialog);return(0,C.jsx)(X.Presence,{present:n||o.open,children:o.modal?(0,C.jsx)(tw,{...a,ref:t}):(0,C.jsx)(tk,{...a,ref:t})})});ty.displayName=tb;var tw=S.forwardRef((e,t)=>{let r=tl(tb,e.__scopeDialog),n=S.useRef(null),a=(0,V.useComposedRefs)(t,r.contentRef,n);return S.useEffect(()=>{let e=n.current;if(e)return(0,te.hideOthers)(e)},[]),(0,C.jsx)(tj,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,W.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,W.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,W.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})}),tk=S.forwardRef((e,t)=>{let r=tl(tb,e.__scopeDialog),n=S.useRef(!1),a=S.useRef(!1);return(0,C.jsx)(tj,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let o=t.target;r.triggerRef.current?.contains(o)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),tj=S.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,l=tl(tb,r),s=S.useRef(null),d=(0,V.useComposedRefs)(t,s);return(0,e7.useFocusGuards)(),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(e8.FocusScope,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,C.jsx)(U.DismissableLayer,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":tP(l.open),...i,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(tL,{titleId:l.titleId}),(0,C.jsx)(tA,{contentRef:s,descriptionId:l.descriptionId})]})]})}),tN="DialogTitle",tC=S.forwardRef((e,t)=>
17{let{__scopeDialog:r,...n}=e,a=tl(tN,r);return(0,C.jsx)(Z.Primitive.h2,{id:a.titleId,...n,ref:t})});tC.displayName=tN;var tS="DialogDescription",tE=S.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=tl(tS,r);return(0,C.jsx)(Z.Primitive.p,{id:a.descriptionId,...n,ref:t})});tE.displayName=tS;var tR="DialogClose",tM=S.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=tl(tR,r);return(0,C.jsx)(Z.Primitive.button,{type:"button",...n,ref:t,onClick:(0,W.composeEventHandlers)(e.onClick,()=>a.onOpenChange(!1))})});function tP(e){return e?"open":"closed"}tM.displayName=tR;var tT="DialogTitleWarning",[tI,tD]=(0,G.createContext)(tT,{contentName:tb,titleName:tN,docsSlug:"dialog"}),tL=({titleId:e})=>{let t=tD(tT),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
18
19If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
20
21For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return S.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},tA=({contentRef:e,descriptionId:t})=>{let r=tD("DialogDescriptionWarning"),n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return S.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},tz=e.i(819326);let tO=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)(tg,{ref:r,className:(0,B.cn)("fixed inset-0 z-50 bg-black/40 backdrop-blur-[2px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 duration-normal",e),...t}));tO.displayName=tg.displayName;let t$=S.forwardRef(({className:e,children:t,container:r,...n},a)=>(0,C.jsxs)(tm,{container:r,children:[(0,C.jsx)(tO,{}),(0,C.jsxs)(ty,{ref:a,className:(0,B.cn)("fixed left-[50%] top-[50%] z-50 flex flex-col w-full max-w-md max-h-[85vh] translate-x-[-50%] translate-y-[-50%] gap-4 bg-card p-6 overflow-hidden duration-normal 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-[0.98] data-[state=open]:zoom-in-[0.98]","rounded-dialog shadow-dialog",e),...n,children:[t,(0,C.jsxs)(tM,{className:"absolute right-4 top-4 roun
21ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,C.jsx)(tz.X,{className:"h-4 w-4"}),(0,C.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));t$.displayName=ty.displayName;let tF=({className:e,...t})=>(0,C.jsx)("div",{className:(0,B.cn)("flex flex-col space-y-2.5 text-center sm:text-left",e),...t});tF.displayName="DialogHeader";let tH=({className:e,...t})=>(0,C.jsx)("div",{className:(0,B.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end shrink-0 pt-2 mt-auto",e),...t});tH.displayName="DialogFooter";let t_=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)(tC,{ref:r,className:(0,B.cn)("text-2xl font-semibold leading-tight tracking-tight",e),...t}));t_.displayName=tC.displayName;let tB=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)(tE,{ref:r,className:(0,B.cn)("text-sm text-muted-foreground",e),...t}));tB.displayName=tE.displayName,e.s(["Dialog",0,ts,"DialogContent",0,t$,"DialogDescription",0,tB,"DialogFooter",0,tH,"DialogHeader",0,tF,"DialogTitle",0,t_,"DialogTrigger",0,tc],439779);let tW=(0,_.cva)("flex flex-col h-full bg-background border-r border-border",{variants:{mode:{compact:"w-16",medium:"w-20",full:"w-56"}},defaultVariants:{mode:"full"}}),tV={compact:"icon",medium:"stacked",full:"inline"},tG=({item:e,active:t,onClick:r})=>{let n=e.icon;return(0,C.jsxs)("button",{onClick:r,disabled:e.disabled,"aria-current":t?"page":void 0,className:(0,B.cn)("flex items-center gap-2 w-full rounded-md px-2 py-1.5 text-xs font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",t?"text-accent-foreground bg-accent":"text-muted-foreground hover:text-foreground hover:bg-muted",e.disabled&&"opacity-50 pointer-events-none",e.className),children:[n?(0,C.jsx)(n,{className:"w-4 h-4 shrink-0"}):(0,C.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-current shrink-0 opacity-50"}),(0,C.jsx)("span",{className:"truncate",children:e.label}),void 0!==e.badge&&e.badge>0&&(0,C.jsx)(k.NavBadge,{count:e.badge,className:"ml-auto"})]})},tU=({item:e,mode:t,activeId:r,onNavigate:n})=>{let a=e.children?.some(e=>e.id===r),[o,i]=S.useState(e.defaultOpen??a??!1);S.useEffect(()=>{a&&i(!0)},[a]);let l=tV[t];return"full"===t?(0,C.jsxs)(eZ,{open:o,onOpenChange:i,children:[(0,C.jsxs)("div",{className:"flex items-center",children:[(0,C.jsx)(eQ,{asChild:!0,children:(0,C.jsxs)("button",{className:(0,B.cn)("relative flex items-center flex-1 min-w-0 rounded-md transition-colors","px-3 py-2 gap-2","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",e.id===r||a?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground",e.disabled&&"opacity-50 pointer-events-none"),children:[e.icon&&(0,C.jsx)(e.icon,{className:"w-5 h-5 shrink-0"}),(0,C.jsx)("span",{className:"font-medium truncate flex-1 text-left text-xs",children:e.label}),void 0!==e.badge&&e.badge>0&&(0,C.jsx)(k.NavBadge,{count:e.badge}),!e.action&&(0,C.jsx)(e3.ChevronRight,{className:(0,B.cn)("w-4 h-4 shrink-0 transition-transform duration-fast",o&&"rotate-90")})]})}),e.action&&(0,C.jsx)("div",{className:"shrink-0 mr-1",children:e.action})]}),(0,C.jsx)(e4,{children:(0,C.jsx)("div",{className:(0,B.cn)("ml-4","border-l border-border pl-2 space-y-0.5 py-1"),children:e.children?.map(e=>(0,C.jsx)(tG,{item:e,active:e.id===r,onClick:()=>n?.(e)},e.id))})})]}):(0,C.jsxs)(eZ,{open:o,onOpenChange:i,children:[(0,C.jsx)(eQ,{asChild:!0,children:(0,C.jsx)(eL,{layout:l,label:e.label,icon:e.icon??e3.ChevronRight,badge:e.badge,active:e.id===r||a,disabled:e.disabled,className:"w-full"})}),(0,C.jsx)(e4,{children:(0,C.jsx)("div",{className:"space-y-0.5 py-1",children:e.children?.map(e=>(0,C.jsx)(tG,{item:e,active:e.id===r,onClick:()=>n?.(e)},e.id))})})]})},tq=({group:e,mode:t,activeId:r,onNavigate:n})=>{let[a,o]=S.useState(e.defaultOpen??!0),i=()=>(0,C.jsx)("div",{className:"space-y-1",children:e.items.map(e=>(0,C.jsx)("div",{className:"mx-2",children:e.children&&e.children.length>0?(0,C.jsx)(tU,{item:e,mode:t,activeId:r,onNavigate:n}):(0,C.jsx)(eL,{layout:tV[t],label:e.label,icon:e.icon??eP,badge:e.badge,active:e.id===r,disabled:e.disabled,onClick:()=>{e.disabled||n?.(e)},className:"w-full"})},e.id))}),l=e.separator&&(0,C.jsx)("div",{className:"mx-4 my-2 border-t border-border"});return e.label||e.collapsible?e.collapsible&&"full"===t?(0,C.jsxs)(C.Fragment,{children:[l,(0,C.jsxs)(eZ,{open:a,onOpenChange:o,children:[(0,C.jsxs)("div",{className:"flex items-center px-4 py-1.5",children:[(0,C.jsx)(eQ,{asChild:!0,children:(0,C.jsxs)("button",{className:"flex items-center gap-1 text-xs font-semibold text-muted-foreground uppercase tracking-wider hover:text-foreground transition-colors",children:[(0,C.jsx)(e3.ChevronRight,{className:(0,B.cn)("w-3 h-3 transition-transform duration-fast",a&&"rotate-90")}),e.label]})}),e.action&&(0,C.jsx)("div",{className:"ml-auto",children:e.action})]}),(0,C.jsx)(e4,{children:i()})]})]}):e.label&&"full"===t?(0,C.jsxs)(C.Fragment,{children:[l,(0,C.jsxs)("div",{children:[(0,C.jsxs)("div",{className:"flex items-center px-4 py-1.5",children:[(0,C.jsx)("span",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:e.label}),e.action&&(0,C.jsx)("div",{className:"ml-auto",children:e.action})]}),i()]})]}):(0,C.jsxs)(C.Fragment,{children:[l,i()]}):(0,C.jsxs)(C.Fragment,{children:[l,i()]})},tK=({mode:e,activeId:t,onNavigate:r,groups:n,logo:a,user:o,footer:i,header:l,footerAction:s})=>{let d=(0,B.cn)("flex items-center shrink-0 h-16","full"===e?"justify-start px-4":"justify-center px-2");return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:d,children:a?"string"==typeof a?(0,C.jsx)("img",{src:a,alt:"Logo",className:"h-8 w-auto"}):a:(0,C.jsx)(w.Logo,{size:"lg",color:"dark"})}),(0,C.jsxs)("div",{className:"flex-1 overflow-y-auto min-h-0",children:[l&&(0,C.jsx)("div",{className:"px-2 pb-2",children:l}),n.length>0&&(0,C.jsx)("nav",{className:"pt-1 pb-4 space-y-3",children:n.map(n=>(0,C.jsx)(tq,{group:n,mode:e,activeId:t,onNavigate:r},n.id))})]}),i?(0,C.jsx)("div",{className:"mx-2 py-3",children:i}):o?(0,C.jsx)("div",{className:(0,B.cn)("mx-2 py-3","full"!==e&&"grid place-items-center"),children:"full"===e?(0,C.jsxs)("div",{className:"flex items-center gap-1",children:[(0,C.jsx)("div",{className:"flex-1 min-w-0",children:(0,C.jsx)(eV,{name:o.name,email:o.email,avatarUrl:o.avatarUrl})}),s&&(0,C.jsx)("div",{className:"shrink-0",children:s})]}):"compact"===e?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(ef,{children:[(0,C.jsx)(eh,{asChild:!0,children:(0,C.jsx)("button",{className:"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:rounded-full",children:(0,C.jsx)(eV,{name:o.name,avatarUrl:o.avatarUrl,avatarOnly:!0})})}),(0,C.jsx)(eR,{side:"right",sideOffset:8,children:(0,C.jsx)(eV,{name:o.name,email:o.email,avatarUrl:o.avatarUrl,size:"sm"})})]}),s&&(0,C.jsx)("div",{className:"mt-2",children:s})]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(eV,{name:o.name,avatarUrl:o.avatarUrl,avatarOnly:!0}),s&&(0,C.jsx)("div",{className:"mt-2",children:s})]})}):null]})},tY=({items:e,activeId:t,onNavigate:r,groups:n,logo:a,user:o,footer:i,header:l,footerAction:s,open:d,onOpenChange:u,hideTrigger:p=!1})=>{let[f,m]=S.useState(!1),h=void 0!==d,g=h?d:f,v=S.useCallback(e=>{h||m(e),u?.(e)},[h,u]),x=n??(e?[{id:"__default",items:e}]:[]);return x.length||a||l||i||o?(0,C.jsx)("div",{className:(0,B.cn)("fixed z-40 lg:hidden",p&&"pointer-events-none"),style:p?void 0:{top:"max(env(safe-area-inset-top), 0.75rem)",left:"max(env(safe-area-inset-left), 0.75rem)"},children:(0,C.jsxs)(ts,{open:g,onOpenChange:v,children:[!p&&(0,C.jsx)(tc,{asChild:!0,children:(0,C.jsx)(c.Button,{variant:"outline",size:"icon-sm","aria-label":"Open navigation menu",className:"rounded-full border-border bg-background/90 text-foreground shadow-sm backdrop-blur supports-[backdrop-filter]:bg-background/80",suppressHydrationWarning:!0,children:(0,C.jsx)(e6,{className:"h-4 w-4"})})}),(0,C.jsxs)(t$,{className:"left-0 top-0 h-dvh max-h-dvh w-[min(22rem,calc(100vw-0.75rem))] max-w-none translate-x-0 translate-y-0 gap-0 overflow-hidden rounded-none rounded-r-2xl border-y-0 border-l-0 p-0 shadow-(--shadow-dialog)",children:[(0,C.jsx)(t_,{className:"sr-only",children:"Navigation menu"}),(0,C.jsx)("div",{className:"flex h-full flex-col bg-background",onClick:e=>{let t=e.target;t?.closest('[data-mobile-nav-close="true"]')&&v(!1)},children:(0,C.jsx)(tK,{mode:"full",activeId:t,onNavigate:e=>{v(!1),r?.(e)},groups:x,logo:a,user:o,footer:i,header:l,footerAction:s})})]})]})}):null};tY.displayName="BottomNav";let tX={brand:"#3032EC",white:"#FFFFFF",black:"#161D27"};function tZ({variant:e="brand",size:t=40,...r}){let n=tX[e];return(0,C.jsx)("svg",{width:t,height:t,viewBox:"0 0 56 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:(0,C.jsx)("path",{d:"M55.9974 20.5L51.6561 3.36933C50.5094 -1.14559 44.0603 -1.11436 42.9606 3.41097L38.8022 20.5H36.5924L32.2537 3.36933C31.107 -1.14559 24.6579 -1.11436 23.5582 3.41097L19.3998 20.5H17.19L12.8513 3.36933C11.7047 -1.14559 5.25547 -1.11436 4.15579 3.41097L0 20.5H9.7012L14.0424 37.6307C15.1891 42.1456 21.6383 42.1144 22.738 37.589L26.8964 20.5H29.1062L33.4475 37.6307C34.5942 42.1456 41.0433 42.1144 42.143 37.589L46.2988 20.5H56H55.9974Z",fill:n})})}e.s(["LogoMark",0,tZ],620059);let tJ={boxShadow:"var(--nav-logo-shadow)"};function tQ({sessionsOpen:e,onToggleSessions:t}){return(0,C.jsx)(C.Fragment,{children:(0,C.jsx)("div",{className:"h-20 flex items-center shrink-0 w-full pl-4",children:(0,C.jsxs)("div",{className:(0,B.cn)("size-12 rounded-2xl flex items-center justify-center","bg-white dark:bg-black"),style:tJ,"aria-label":"Logo",children:[(0,C.jsx)(tZ,{variant:"brand",size:34,className:"dark:hidden"}),(0,C.jsx)(tZ,{variant:"white",size:34,className:"hidden dark:block"})]})})})}tQ.displayName="NavLogoLockup";var t0=e.i(174080);let t1=(0,eM.default)("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"}]]),t2=(0,eM.default)("pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7
21a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]),t5=(0,eM.default)("pin-off",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]);var t4=e.i(825362),t3=e.i(924466);let t6=(0,S.forwardRef)(function({open:e,children:t,role:r,className:n,durationMs:a=I.DURATION.normal,onDismiss:o,...i},l){let[s,d]=(0,S.useState)(e),c=(0,S.useRef)(null),u=(0,S.useRef)(null),p=(0,S.useRef)(null),f=(0,S.useRef)(null);return((0,S.useLayoutEffect)(()=>{e&&!s&&d(!0)},[e,s]),(0,S.useLayoutEffect)(()=>{if(!s)return;let t=c.current,r=u.current;if(!t||!r)return;let n=e=>{if(e.current){try{e.current.commitStyles()}catch{}e.current.cancel(),e.current=null}};if(n(p),n(f),0===a){t.style.transform=e?"translateY(0)":"translateY(100%)",r.style.opacity=e?"1":"0",e||d(!1);return}let o=t.animate([{transform:e?"translateY(100%)":"translateY(0)"},{transform:e?"translateY(0)":"translateY(100%)"}],{duration:a,easing:I.EASING.app,fill:"forwards"});p.current=o,f.current=r.animate([{opacity:+!e},{opacity:+!!e}],{duration:a,easing:I.EASING.app,fill:"forwards"}),e||o.finished.then(()=>{p.current===o&&(p.current=null,d(!1))},()=>{})},[e,s,a]),(0,S.useEffect)(()=>{if(!e||"u"<typeof document)return;let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}},[e]),!s||"u"<typeof document)?null:(0,t0.createPortal)((0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{ref:u,"aria-hidden":!0,onClick:o,className:(0,B.cn)("fixed inset-0 z-40 bg-black/30 dark:bg-black/50",o&&"cursor-pointer"),style:{opacity:0}}),(0,C.jsxs)("div",{ref:e=>{c.current=e,"function"==typeof l?l(e):l&&(l.current=e)},role:r,className:(0,B.cn)("fixed inset-x-0 bottom-0 z-50","bg-white dark:bg-neutral-800","rounded-t-2xl shadow-(--shadow-popover)","ring-1 ring-inset ring-black/6 dark:ring-white/8","p-1.5 pb-[max(0.375rem,env(safe-area-inset-bottom))]",n),style:{transform:"translateY(100%)"},...i,children:[(0,C.jsx)("div",{"aria-hidden":!0,className:"flex justify-center pt-1 pb-2",children:(0,C.jsx)("div",{className:"h-1 w-10 rounded-full bg-neutral-200 dark:bg-neutral-600"})}),t]})]}),document.body)});function t8(){let[e,t]=(0,S.useState)(!1);return(0,S.useEffect)(()=>{let e=window.matchMedia("(max-width: 1023px)"),r=()=>t(e.matches);return r(),e.addEventListener("change",r),()=>e.removeEventListener("change",r)},[]),e}t6.displayName="Sheet",e.s(["Sheet",0,t6,"useIsMobileSheet",0,t8],189042);let t7=(0,S.forwardRef)(function({open:e,children:t,className:r,style:n,origin:a,animation:o="scale-fade",position:i="below",radius:l="2xl",padding:s="cozy",durationMs:d=200,onDismiss:c,...u},p){var f,m;let h=t8(),[g,v]=(0,S.useState)(e),x=(0,S.useRef)(null),b=(0,S.useRef)(null),y=(f=o,m=i,"fade-only"===f||"none"===f?"none":"slide-fade"===f?"above"===m?"translateY(4px)":"right"===m?"translateX(-4px)":"translateY(-4px)":"scale(0.95)"),w="fade-only"===o||"none"===o?"none":"slide-fade"===o?"translate(0, 0)":"scale(1)",k="none"===o?0:d;if((0,S.useLayoutEffect)(()=>{e&&!g&&v(!0)},[e,g]),(0,S.useLayoutEffect)(()=>{if(h||!g)return;let t=x.current;if(!t)return;if(b.current){try{b.current.commitStyles()}catch{}b.current.cancel(),b.current=null}if(0===k){t.style.opacity=e?"1":"0",t.style.transform=e?w:y,e||v(!1);return}let r=e?{opacity:0,transform:y}:{opacity:1,transform:w},n=e?{opacity:1,transform:w}:{opacity:0,transform:y},a=t.animate([r,n],{duration:k,easing:I.EASING.app,fill:"forwards"});b.current=a,e||a.finished.then(()=>{b.current===a&&(b.current=null,v(!1))},()=>{})},[e,g,k,y,w,h]),h)return(0,C.jsx)(t6,{open:e,ref:p,onDismiss:c,...u,children:t});if(!g)return null;let j=a??("above"===i?"bottom-left":"top-left"),N=(()=>{switch(j){case"top-right":return{transformOrigin:"top right"};case"bottom-left":return{transformOrigin:"bottom left"};case"bottom-right":return{transformOrigin:"bottom right"};default:return{transformOrigin:"top left"}}})();return(0,C.jsx)("div",{ref:e=>{x.current=e,"function"==typeof p?p(e):p&&(p.current=e)},className:(0,B.cn)("lg"===l?"rounded-lg":"xl"===l?"rounded-xl":"rounded-2xl","tight"===s?"p-1":"roomy"===s?"p-2":"p-1.5","bg-white dark:bg-neutral-800 ring-1 ring-inset ring-black/6 dark:ring-white/8 shadow-(--shadow-popover) text-sm",!e&&"pointer-events-none",r),style:{...N,opacity:0,transform:y,...n},...u,children:t})});function t9({icon:e,label:t,description:r,accessory:n,onClick:a,onMouseEnter:o,role:i="menuitem",disabled:l,active:s=!1,tone:d="neutral",className:c}){let u=null!=r;return(0,C.jsxs)("button",{type:"button",role:i,onMouseDown:e=>e.preventDefault(),onClick:a,onMouseEnter:o,disabled:l,className:(0,B.cn)("group/popover-item w-full flex items-center gap-3 rounded-xl px-3 py-2.5 text-left text-neutral-700 dark:text-neutral-200",s?"bg-neutral-100 dar
21k:bg-neutral-700/60":"hover:bg-neutral-100 dark:hover:bg-neutral-700/60","transition-colors","outline-none focus-visible:focus-ring","disabled:opacity-50 disabled:cursor-not-allowed",c),children:[e&&(0,C.jsx)("span",{className:"shrink-0 text-neutral-500 dark:text-neutral-300 inline-flex",children:e}),u?(0,C.jsxs)("span",{className:"flex-1 min-w-0 flex flex-col items-start gap-0.5",children:[(0,C.jsx)("span",{className:(0,B.cn)("text-sm font-medium","accent"===d&&"text-brand"),children:t}),(0,C.jsx)("span",{className:"text-xs text-neutral-500 dark:text-neutral-300 leading-snug",children:r})]}):(0,C.jsx)("span",{className:(0,B.cn)("flex-1 min-w-0 truncate","accent"===d&&"text-brand"),children:t}),n&&(0,C.jsx)("span",{className:"shrink-0",children:n})]})}function re({children:e}){return(0,C.jsx)("div",{className:"px-4 pt-2.5 pb-1.5",children:(0,C.jsx)("span",{className:"text-xxs uppercase tracking-widest text-neutral-300 dark:text-neutral-500",children:e})})}function rt({children:e}){return(0,C.jsx)("div",{role:"group",className:"flex flex-col gap-0.5 px-1.5 pb-1.5",children:e})}function rr(){return(0,C.jsx)("div",{className:"my-1 h-px bg-black/6 dark:bg-white/8"})}function rn({claws:e,selectedClawId:t,onSelectClaw:r,onAddClaw:n,isAddingClaw:a=!1,onToggleFavorite:o,onOpenSettingsForClaw:i,navMode:l="wide"}){let s,d="narrow"===l,c=t8(),[u,p]=(0,S.useState)(null),[f,m]=(0,S.useState)(null),[h,g]=(0,S.useState)(null),v=(0,S.useRef)(null),x=(0,S.useRef)(null);(0,S.useEffect)(()=>{if(!f)return;let e=()=>m(null),t=t=>{let r=t.target;x.current&&r&&x.current.contains(r)||r&&r.closest("[data-claw-overflow-trigger]")||e()},r=t=>{"Escape"===t.key&&e()},n=window.setTimeout(()=>{document.addEventListener("mousedown",t)},0);return document.addEventListener("keydown",r),window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.clearTimeout(n),document.removeEventListener("mousedown",t),document.removeEventListener("keydown",r),window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[f]),(0,S.useEffect)(()=>{if(f||!h)return;let e=window.setTimeout(()=>g(null),220);return()=>window.clearTimeout(e)},[f,h]);let b=h?{position:"fixed",top:h.rect.top,left:h.rect.right+8,zIndex:50,minWidth:176}:void 0,y=Math.round(16.799999999999997),w=Math.max(y-4,0),k=Math.max(4,Math.round(3)),E=k-1,R=e.findIndex(e=>e.id===u),M=e=>!!e.favorite,P=(()=>{let t=-1;for(let r=0;r<e.length;r++)M(e[r])&&(t=r);return t})(),T=P>=0&&P<e.length-1?P:-1;return(0,C.jsxs)("div",{onMouseLeave:()=>p(null),style:{gap:`${Math.max(4,Math.round(3))}px`,scrollbarWidth:"none",maskImage:"linear-gradient(to bottom, transparent 0, black 20px, black calc(100% - 20px), transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, transparent 0, black 20px, black calc(100% - 20px), transparent 100%)"},className:"w-full flex-1 flex flex-col items-center [justify-content:safe_center] py-4 overflow-y-auto overscroll-contain [&::-webkit-scrollbar]:hidden",children:[e.map((e,n)=>{let a,l=u===e.id,s=t===e.id,k=null!=e.deployMode,M=0;R>=0&&(n<R?M=-6:n>R&&(M=E));let P=e.href,I={className:"relative w-full group/claw-row transition-transform ease-out cursor-pointer flex flex-row items-center gap-3 px-4 no-underline text-inherit",style:{transform:M?`translateY(${M}px)`:void 0,transitionDuration:"400ms",viewTransitionName:`claw-${e.id}`},onMouseEnter:()=>p(e.id)},D=(0,C.jsxs)(P?"a":"div",{...I,...P?{href:P}:{},onClick:t=>{P&&(0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)||(t.preventDefault(),r(e.id))},children:[(0,C.jsx)("span",{"aria-hidden":!0,style:{top:-6,height:6},className:"absolute left-0 right-0"}),(0,C.jsx)("button",{type:"button","aria-label":`Select ${e.name}`,"aria-pressed":s,"aria-busy":k||void 0,style:{width:48,height:48,borderRadius:y},className:(0,B.cn)("flex items-center justify-center border-2 p-0.5 transition-all duration-normal ease-app active:scale-[0.98]",l&&"scale-[1.12]",s?"border-brand":l?"border-neutral-200 dark:border-neutral-700":"border-transparent active:border-neutral-300 dark:active:border-neutral-600"),children:(0,C.jsxs)("span",{className:"relative size-full",style:{borderRadius:w,clipPath:`inset(0 round ${w}px)`},children:[(0,C.jsx)(t3.ClawAvatar,{id:e.id,name:e.name,seed:e.avatarSeed??void 0,bgIndex:"number"==typeof e.avatarBgIndex?e.avatarBgIndex:n,imageUrl:e.avatarImageUrl??void 0,bgGradient:e.avatarBgGradient??void 0,customIconUrl:e.customIconUrl??void 0,size:44,shape:"rounded",provisioning:k,className:"size-full"}),k&&(0,C.jsx)(j.NavShimmerOverlay,{borderRadius:w})]})}),(0,C.jsx)("span",{className:(0,B.cn)("flex-1 min-w-0 leading-tighter truncate transition",s?"font-semibold":"font-medium",l||s?"text-neutral-900 dark:text-neutral-100":"text-neutral-300 dark:text-neutral-600",d&&"opacity-0 pointer-events-none"),"aria-hidden":d,style:{fontSize:12},children:k?(0,C.jsx)(N.NavNameShimmer,{children:e.name}):e.name}
21),(o||i)&&(0,C.jsx)("span",{"aria-hidden":!0,className:(0,B.cn)("pointer-events-none absolute right-0 top-0 bottom-0 w-20 bg-gradient-to-l from-background from-50% to-transparent transition",d?"opacity-0":f===e.id?"opacity-100":"opacity-100 [@media(hover:hover)]:opacity-0 group-hover/claw-row:opacity-100")}),(o||i)&&(0,C.jsx)("button",{type:"button","data-claw-overflow-trigger":!0,"aria-label":`More options for ${e.name}`,"aria-haspopup":"menu","aria-expanded":f===e.id,onClick:t=>{t.preventDefault(),t.stopPropagation(),f===e.id?m(null):(v.current=t.currentTarget,g({clawId:e.id,rect:t.currentTarget.getBoundingClientRect()}),m(e.id))},disabled:d,className:(0,B.cn)("absolute right-4 top-1/2 -translate-y-1/2 size-7 rounded-full inline-flex items-center justify-center text-neutral-400 dark:text-neutral-500","hover:bg-neutral-100 dark:hover:bg-neutral-800 hover:text-neutral-700 dark:hover:text-neutral-200","transition",d?"opacity-0 pointer-events-none":f===e.id?"opacity-100":"opacity-100 [@media(hover:hover)]:opacity-0 group-hover/claw-row:opacity-100 focus-visible:opacity-100"),children:(0,C.jsx)(t1,{size:14})}),h&&h.clawId===e.id&&"u">typeof document&&(0,t0.createPortal)((0,C.jsx)("div",{ref:x,children:(0,C.jsxs)(t7,{open:f===e.id,position:"right",style:c?void 0:b,children:[o&&(0,C.jsx)(t9,{label:e.favorite?"Unpin":"Pin",icon:e.favorite?(0,C.jsx)(t5,{size:15,strokeWidth:2,className:"text-brand"}):(0,C.jsx)(t2,{size:15,strokeWidth:2,className:"text-brand"}),onClick:t=>{var r;let n;t.stopPropagation(),r=()=>{o(e.id)},"function"==typeof(n=document).startViewTransition?n.startViewTransition(()=>{(0,t0.flushSync)(r)}):r(),m(null)}}),i&&(0,C.jsx)(t9,{label:"Settings",icon:(0,C.jsx)(t4.Settings,{size:15,strokeWidth:2,className:"text-brand"}),onClick:t=>{t.stopPropagation(),i(e.id),m(null)}})]})}),document.body)]});return(0,C.jsxs)(S.Fragment,{children:[D,n===T&&(a=0,R>=0&&(a=R<=T?E:-6),(0,C.jsx)("div",{"aria-hidden":!0,className:"w-full flex flex-row items-center px-4 py-1.5 transition-transform ease-out",style:{transform:a?`translateY(${a}px)`:void 0,transitionDuration:"400ms"},children:(0,C.jsx)("span",{className:"block h-px bg-black/10 dark:bg-white/12",style:{width:48}})}))]},e.id)}),n&&(s=R>=0?k:0,(0,C.jsx)("div",{className:"w-full flex flex-row items-center px-4 transition-transform ease-out",style:{transform:s?`translateY(${s}px)`:void 0,transitionDuration:"400ms"},onMouseEnter:()=>p(null),children:(0,C.jsx)("div",{style:{width:48,height:48},className:"flex items-center justify-center shrink-0",children:(0,C.jsx)("button",{type:"button","aria-label":"Create a Workmate","aria-pressed":a,onClick:n,style:{width:48,height:48,borderRadius:y},className:a?"group flex items-center justify-center p-0.5 transition-all duration-normal ease-app active:scale-[0.98] border-2 border-solid border-brand":"group flex items-center justify-center p-0.5 transition-all duration-normal ease-app hover:scale-[1.12] active:scale-[0.98] border border-dashed border-neutral-300 dark:border-neutral-700",children:(0,C.jsx)("span",{className:a?"flex size-full items-center justify-center transition-colors duration-normal ease-app bg-neutral-100 dark:bg-neutral-800":"flex size-full items-center justify-center transition-colors duration-normal ease-app bg-transparent group-hover:bg-neutral-100 dark:group-hover:bg-neutral-800",style:{borderRadius:w},children:(0,C.jsx)(e$,{size:16,strokeWidth:2,className:"text-brand"})})})})}))]})}function ra({items:e,selectedItemId:t,onSelectItem:r,navMode:n="wide"}){return(0,C.jsx)("div",{className:"flex flex-col gap-3 w-full items-stretch px-1",children:e.map(e=>(0,C.jsx)(ro,{item:e,selected:t===e.id,onSelect:r,navMode:n},e.id))})}function ro({item:e,selected:t,onSelect:r,navMode:n}){let a="narrow"===n,o=null!=e.href,i=e.description?`${e.label}, ${e.description}`:e.label,l=(0,B.cn)(a?t?"text-brand transition-colors":"text-neutral-500 dark:text-neutral-300 hover:text-neutral-700 dark:hover:text-neutral-300 transition-colors":t?"text-brand transition-colors":"text-neutral-500 dark:text-neutral-300 hover:bg-(--color-hover-bg) hover:text-neutral-700 dark:hover:text-neutral-300 transition-colors","rounded-full flex items-center gap-3 px-3 py-2 w-full group/bottom-row",o&&"no-underline");return(0,C.jsx)("div",{className:"relative",children:o?(0,C.jsx)("a",{href:e.href,"aria-label":i,title:i,onClick:t=>{0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),r?.(e.id))},className:l,children:(0,C.jsx)(ri,{item:e,selected:t,isNarrow:a})}):(0,C.jsx)("button",{type:"button","aria-label":i,title:i,onClick:()=>r?.(e.id),className:l,children:(0,C.jsx)(ri,{item:e,selected:t,isNarrow:a})})})}function ri({item:e,selected:t,isNarrow:r}){let n=e.icon,a=t?"font-semibold":"font-medium",o=e.avatarSrc?t?"text-brand":"text-neutral-700 dark:text-neutral-200":"",i=null!=e.badgeCount&&e.badgeCount>0;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("span",{"aria-hidden":!0,
21className:(0,B.cn)("relative shrink-0 inline-flex items-center justify-center size-4 transition",r&&"translate-x-4"),children:[r&&(0,C.jsx)("span",{"aria-hidden":!0,className:(0,B.cn)("absolute left-1/2 top-1/2 size-9 -translate-x-1/2 -translate-y-1/2 rounded-full transition",!t&&"group-hover/bottom-row:bg-(--color-hover-bg)")}),(0,C.jsx)("span",{className:"relative z-10 inline-flex items-center justify-center",children:n?(0,C.jsx)(n,{size:16,className:"shrink-0"}):(0,C.jsx)(s.Avatar,{src:e.avatarSrc,alt:e.label,initials:eW(e.label),size:"sm",className:"w-4 h-4 shrink-0"})})]}),(0,C.jsxs)("div",{"aria-hidden":r,className:(0,B.cn)("flex flex-1 items-center gap-3 min-w-0 transition",r&&"opacity-0 pointer-events-none"),children:[void 0!==e.value?(0,C.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,C.jsx)("span",{className:(0,B.cn)("leading-tighter truncate",a),style:{fontSize:12},children:e.label}),(0,C.jsx)("span",{className:"tabular-nums leading-tighter text-brand font-medium",style:{fontSize:12},children:e.value})]}):e.description?(0,C.jsxs)("span",{className:"flex min-w-0 flex-col gap-0.5 text-left",children:[(0,C.jsx)("span",{className:(0,B.cn)("leading-tighter truncate",a,o),style:{fontSize:12},children:e.label}),(0,C.jsx)("span",{className:"truncate text-neutral-400 dark:text-neutral-500",style:{fontSize:10,lineHeight:1.1},children:e.description})]}):(0,C.jsx)("span",{className:(0,B.cn)("leading-tighter truncate",a,o),style:{fontSize:12},children:e.label}),i&&(0,C.jsx)("span",{"aria-label":`${e.badgeCount} pending`,className:"ml-auto inline-flex items-center justify-center rounded-full bg-amber-100 px-1.5 text-xxs font-semibold text-amber-700 dark:bg-amber-500/15 dark:text-amber-300 tabular-nums leading-snug min-w-5 h-4",children:e.badgeCount})]})]})}function rl({claws:e,selectedClawId:t,onSelectClaw:r,onAddClaw:n,isAddingClaw:a=!1,onToggleFavorite:o,onOpenSettingsForClaw:i,bottomItems:l,selectedBottomItemId:s,onSelectBottomItem:d,sessionsOpen:c=!1,onToggleSessions:u,navMode:p="wide",className:f,style:m}){let h="narrow"===p;return(0,C.jsxs)("aside",{className:(0,B.cn)("peer group/nav shrink-0 flex flex-col items-center pt-2 pb-6 transition-[width] duration-normal ease-app","overflow-x-hidden",h?"w-20":"w-44","bg-background","hidden lg:flex",f),style:m,children:[(0,C.jsx)(tQ,{sessionsOpen:c,onToggleSessions:u}),(0,C.jsx)(rn,{claws:e,selectedClawId:t,onSelectClaw:r,onAddClaw:n,isAddingClaw:a,onToggleFavorite:o,onOpenSettingsForClaw:i,navMode:p}),l&&l.length>0&&(0,C.jsx)(ra,{items:l,selectedItemId:s,onSelectItem:d,navMode:p})]})}t7.displayName="PopoverPanel",t9.displayName="PopoverItem",re.displayName="PopoverHeading",rt.displayName="PopoverItemList",rr.displayName="PopoverSeparator",e.s(["PopoverHeading",0,re,"PopoverItem",0,t9,"PopoverItemList",0,rt,"PopoverPanel",0,t7,"PopoverSeparator",0,rr],44024),rn.displayName="NavClawList",ra.displayName="NavBottomItems",rl.displayName="NavRail",e.s(["NavRail",0,rl],311159);let rs=(0,eM.default)("clock-3",[["path",{d:"M12 6v6h4",key:"135r8i"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),rd=(0,eM.default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);var rc=e.i(225675),ru=e.i(477443);let rp=(0,eM.default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]),rf=(0,eM.default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);function rm({className:e,...t}){return(0,C.jsx)("div",{className:(0,B.cn)("animate-pulse rounded-md bg-muted",e),...t})}e.s(["Skeleton",0,rm],222850);let rh="conversations",rg="routines";function rv({open:e,sessions:t,loading:r=!1,selectedSessionId:n,onSelectSession:a,onRenameSession:o,onDeleteSession:i}){let[l,s]=(0,S.useState)(""),d=(0,S.useMemo)(()=>{let e=l.trim().toLowerCase();return e?t.filter(t=>t.title.toLowerCase().includes(e)):t},[t,l]);return(0,C.jsx)("aside",{style:{transition:"width 250ms var(--ease-app), border-color 500ms var(--ease-out)"},className:(0,B.cn)("shrink-0 h-full overflow-hidden bg-neutral-50 dark:bg-neutral-950","[--session-fade-rgb:229,229,229] dark:[--session-fade-rgb:0,0,0]",e?"border-l border-black/6 dark:border-white/10":"",e?"w-52":"w-0"),children:(0,C.jsxs)("div",{className:"w-52 h-full pt-6 flex flex-col",children:[(0,C.jsx)(rx,{query:l,onQueryChange:s}),(0,C.jsx)(rb,{open:e,sessions:d,loading:r,selectedSessionId:n??null,onSelectSession:a,onRenameSession:o,onDeleteSession:i,searchActive:l.trim().length>0})]})})}function rx({query:e,onQueryChange:t}){let r=(0,S.useRef)(null);return(0,C.jsx)("div",{className:"px-3 pb-3 flex items-center shrink-0",children:(0,C.jsxs)("div",{onMouseDown:e=>{e.target.closest("button, input, textarea, a, [role='button'], [role='textbox']")||(e.preventDefault(),r.current?.focus())},className:"cursor-text flex-1 min-w-0 flex items-center gap-2 px-3 h-8 rounded-full bg-black/3 dark:bg-white/8 r
21ing-1 ring-inset ring-black/6 dark:ring-white/10",children:[(0,C.jsx)(ru.Search,{size:14,className:"text-neutral-500 dark:text-neutral-300 shrink-0"}),(0,C.jsx)("input",{ref:r,type:"text",placeholder:"Search",value:e,onChange:e=>t(e.target.value),className:"flex-1 bg-transparent text-xs text-neutral-950 dark:text-neutral-50 placeholder-neutral-400 dark:placeholder-neutral-400 focus:outline-none min-w-0"})]})})}function rb({open:e,sessions:t,loading:r,selectedSessionId:n,onSelectSession:a,onRenameSession:o,onDeleteSession:i,searchActive:l}){let s,d,c=(s=t.filter(e=>!e.routine),0===(d=t.filter(e=>e.routine)).length?[{id:rh,label:null,sessions:s}]:[{id:rh,label:"Conversations",sessions:s},{id:rg,label:"Routines",sessions:d}]),u=e=>{let t=n===e.id,r=!e.readOnly&&(void 0!==o||void 0!==i),l=e.childSessions??[],s=l.find(e=>e.id===n)?.id,d={},c="w-full text-left pl-4 pr-10 py-2.5 text-xs truncate transition-all duration-fast border-l-2 border-transparent text-neutral-950 dark:text-neutral-50";return t||(c+=" hover:bg-(--color-hover-bg) opacity-[var(--session-dim)] hover:opacity-100",d["--session-dim"]=String(.31)),t&&(d.backgroundImage="linear-gradient(to right, rgba(var(--session-fade-rgb), 0.44) 0%, rgba(var(--session-fade-rgb), 0) 100%)"),(0,C.jsxs)("li",{className:"group relative",children:[(0,C.jsxs)("div",{className:"relative",children:[t&&(0,C.jsx)("span",{"aria-hidden":!0,className:"absolute left-0 pointer-events-none rounded-sm",style:{top:0,bottom:0,width:2,backgroundColor:"var(--color-brand)"}}),(0,C.jsxs)("button",{type:"button",onClick:()=>a?.(e.id),"aria-pressed":t,style:d,className:c,title:`${e.title} \xb7 ${e.lastActiveAgo}`,children:[(0,C.jsxs)("span",{className:"flex items-center gap-1 text-neutral-900 dark:text-neutral-50",children:[e.routine&&(0,C.jsx)(rs,{"aria-hidden":!0,className:"size-3 shrink-0 text-neutral-400 dark:text-neutral-500"}),(0,C.jsx)("span",{className:"truncate",children:e.title}),e.hasUnread&&(0,C.jsx)("span",{"aria-label":"Unread",className:"ml-auto size-2 shrink-0 rounded-full bg-red-500"})]}),(0,C.jsx)("span",{className:"block text-xxs tabular-nums truncate mt-0.5 text-neutral-500 dark:text-neutral-300",children:e.routine?`Routine run \xb7 ${e.lastActiveAgo}`:e.lastActiveAgo})]}),r&&(0,C.jsx)(rw,{sessionId:e.id,title:e.title,onRename:o?()=>o(e.id,e.title):void 0,onDelete:i?()=>i(e.id):void 0})]}),l.length>0&&(0,C.jsx)("ol",{className:"ml-4 mr-2 mb-1 border-l border-neutral-200/80 pl-2 dark:border-neutral-800/80",children:l.map(e=>{let t=s===e.id,r=e.running?rc.RefreshCw:rp;return(0,C.jsxs)("li",{className:"relative",children:[t&&(0,C.jsx)("span",{"aria-hidden":!0,className:"absolute -left-2 top-1 bottom-1 w-0.5 rounded-sm bg-brand"}),(0,C.jsxs)("button",{type:"button",onClick:()=>a?.(e.id),"aria-pressed":t,className:(0,B.cn)("flex w-full items-center gap-1.5 rounded-sm px-1 py-1 text-left text-[11px] leading-none text-neutral-500 transition-colors hover:bg-(--color-hover-bg) hover:text-neutral-900 dark:text-neutral-400 dark:hover:text-neutral-100",t&&"text-neutral-900 dark:text-neutral-100"),title:e.id,children:[(0,C.jsx)(r,{size:12,className:(0,B.cn)("shrink-0",e.running&&"animate-spin text-brand")}),(0,C.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.title}),e.statusLabel&&(0,C.jsx)("span",{className:"shrink-0 text-[10px] text-neutral-400 dark:text-neutral-500",children:e.statusLabel})]})]},e.id)})})]},e.id)};return(0,C.jsxs)("ul",{className:(0,B.cn)("flex-1 overflow-y-auto overscroll-contain py-1 transition-opacity ease-out",e?"opacity-100 duration-normal":"opacity-0 duration-fast"),children:[0===t.length&&r&&(0,C.jsx)(ry,{}),0===t.length&&!r&&(0,C.jsx)("li",{className:"px-4 py-6 text-xs text-neutral-300 dark:text-neutral-500 text-center leading-relaxed",children:l?"No sessions match your search.":"No sessions yet for this Workmate."}),c.map(e=>e.sessions.length>0&&(0,C.jsxs)("li",{className:"mb-2 last:mb-0",children:[e.label&&(0,C.jsxs)("div",{className:"flex items-center gap-1.5 px-4 pb-1 pt-2 text-[10px] font-medium uppercase tracking-[0.08em] text-neutral-500 dark:text-neutral-400",children:[e.id===rg&&(0,C.jsx)(rs,{"aria-hidden":!0,
21className:"size-3"}),(0,C.jsx)("span",{children:e.label}),(0,C.jsx)("span",{className:"ml-auto tabular-nums text-neutral-400 dark:text-neutral-500",children:e.sessions.length})]}),(0,C.jsx)("ul",{children:e.sessions.map(u)})]},e.id))]})}function ry(){return(0,C.jsx)(C.Fragment,{children:[{title:"w-32",sub:"w-16"},{title:"w-24",sub:"w-12"},{title:"w-36",sub:"w-14"},{title:"w-28",sub:"w-10"},{title:"w-32",sub:"w-16"}].map((e,t)=>(0,C.jsxs)("li",{"aria-hidden":!0,className:"pl-4 pr-10 py-2.5 border-l-2 border-transparent",children:[(0,C.jsx)(rm,{className:(0,B.cn)("h-3",e.title)}),(0,C.jsx)(rm,{className:(0,B.cn)("h-2 mt-1.5",e.sub)})]},t))})}function rw({sessionId:e,title:t,onRename:r,onDelete:n}){let[a,o]=(0,S.useState)(!1),i=(0,S.useRef)(null),l=(0,S.useRef)(null),[s,d]=(0,S.useState)({}),c=t8(),u=(0,S.useCallback)(()=>o(!1),[]);return(0,S.useLayoutEffect)(()=>{if(!a||!i.current)return;let e=()=>{let e=i.current;if(!e)return;let t=e.getBoundingClientRect();d({position:"fixed",top:t.bottom+6,right:window.innerWidth-t.right,zIndex:50,minWidth:176})};return e(),window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[a]),(0,S.useEffect)(()=>{if(!a)return;let t=t=>{let r=t.target;l.current&&r&&l.current.contains(r)||r&&r.closest(`[data-session-overflow-trigger="${e}"]`)||u()},r=e=>{"Escape"===e.key&&u()},n=window.setTimeout(()=>{document.addEventListener("mousedown",t)},0);return document.addEventListener("keydown",r),()=>{window.clearTimeout(n),document.removeEventListener("mousedown",t),document.removeEventListener("keydown",r)}},[a,u,e]),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("button",{ref:i,type:"button","data-session-overflow-trigger":e,"aria-label":`More options for ${t}`,"aria-expanded":a,onClick:e=>{e.stopPropagation(),o(e=>!e)},className:(0,B.cn)("absolute right-2 top-1/2 -translate-y-1/2 p-1 rounded-full","text-neutral-500 dark:text-neutral-300","hover:bg-(--color-hover-bg) hover:text-neutral-950 dark:hover:text-neutral-300","transition-opacity",a?"opacity-100":"opacity-100 [@media(hover:hover)]:opacity-0 group-hover:opacity-100 focus-visible:opacity-100"),children:(0,C.jsx)(t1,{size:14})}),"u">typeof document&&(0,t0.createPortal)((0,C.jsx)("div",{ref:l,children:(0,C.jsxs)(t7,{open:a,position:"below",origin:"top-right",style:c?void 0:s,className:"min-w-44",children:[r&&(0,C.jsx)(t9,{label:"Rename",icon:(0,C.jsx)(rd,{size:15,strokeWidth:2}),onClick:()=>{u(),r()}}),n&&(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(t9,{label:"Delete",icon:(0,C.jsx)(rf,{size:15,strokeWidth:2,className:"text-destructive"}),className:"text-destructive hover:text-destructive",onClick:()=>{u(),n()}})})]})}),document.body)]})}function rk(e,t,r={}){var n;let{radius:a=32,roughness:o=.25,seed:i=42,step:l=2,edges:s}=r;if(e<=0||t<=0)return"";let d=!s,c=d||!!s?.top,u=d||!!s?.right,p=d||!!s?.bottom,f=d||!!s?.left,m=Math.min(a,e/2,t/2),h=(n=i,function(){n|=0;let e=Math.imul((n=n+0x6d2b79f5|0)^n>>>15,1|n);return(((e=e+Math.imul(e^e>>>7,61|e)^e)^e>>>14)>>>0)/0x100000000}),g=[],v=Math.max(6,Math.ceil(m*Math.PI/(2*l))),x=e=>e?(h()-.5)*2*o:0,b=(e,t)=>{g.push([e,t])};for(let t=m;t<=e-m;t+=l)b(t,x(c));let y=c||u;for(let t=0;t<=v;t++){let r=-Math.PI/2+Math.PI/2*(t/v),n=x(y);b(e-m+(m+n)*Math.cos(r),m+(m+n)*Math.sin(r))}for(let r=m;r<=t-m;r+=l)b(e+x(u),r);let w=p||u;for(let r=0;r<=v;r++){let n=Math.PI/2*(r/v),a=x(w);b(e-m+(m+a)*Math.cos(n),t-m+(m+a)*Math.sin(n))}for(let r=e-m;r>=m;r-=l)b(r,t+x(p));let k=p||f;for(let e=0;e<=v;e++){let r=Math.PI/2+Math.PI/2*(e/v),n=x(k);b(m+(m+n)*Math.cos(r),t-m+(m+n)*Math.sin(r))}for(let e=t-m;e>=m;e-=l)b(x(f),e);let j=c||f;for(let e=0;e<=v;e++){let t=Math.PI+Math.PI/2*(e/v),r=x(j);b(m+(m+r)*Math.cos(t),m+(m+r)*Math.sin(t))}if(0===g.length)return"";let N=e=>e.toFixed(2),C=`M ${N(g[0][0])} ${N(g[0][1])}`;for(let e=1;e<g.length;e++)C+=` L ${N(g[e][0])} ${N(g[e][1])}`;return C+" Z"}rv.displayName="SessionsPanel",e.s(["SessionsPanel",0,rv],579605),(0,eM.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),(0,eM.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),e.i(160444),S.forwardRef(({width:e,height:t,radius:r=32,roughness:n=.25,seed:a=42,step:o=2,fill:i="currentColor",className:l,...s},d)=>{let c=Math.ceil(n),u=rk(e,t,{radius:r,roughness:n,seed:a,step:o});return(0,C.jsx)("svg",{ref:d,width:e+2*c,height:t+2*c,viewBox:`${-c} ${-c} ${e+2*c} ${t+2*c}
21`,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:l,"aria-hidden":!0,...s,children:(0,C.jsx)("path",{d:u,fill:i})})}).displayName="RoughShape",S.forwardRef(({className:e,radius:t=32,roughness:r=.25,seed:n=42,step:a=2,edges:o,borderWidth:i,borderColor:l="currentColor",clipContent:s=!0,children:d,style:c,...u},p)=>{let[f,m]=S.useState(null),h=S.useRef(null),g=S.useCallback(e=>{h.current&&(h.current.disconnect(),h.current=null),"function"==typeof p?p(e):p&&(p.current=e),e&&(h.current=new ResizeObserver(([t])=>{let r=t.borderBoxSize?.[0];if(r)m({w:r.inlineSize,h:r.blockSize});else{let t=e.getBoundingClientRect();m({w:t.width,h:t.height})}}),h.current.observe(e))},[p]),v=f?rk(f.w,f.h,{radius:t,roughness:r,seed:n,step:a,edges:o}):"";return null!=i&&i>0?(0,C.jsxs)("div",{ref:g,className:(0,B.cn)("relative",e),style:c,...u,children:[(0,C.jsx)("div",{className:"h-full",style:v&&s?{clipPath:`path("${v}")`}:void 0,children:d}),v&&f&&(0,C.jsx)("svg",{className:"absolute inset-0 pointer-events-none",width:f.w,height:f.h,viewBox:`0 0 ${f.w} ${f.h}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",overflow:"visible","aria-hidden":!0,children:(0,C.jsx)("path",{d:v,fill:"none",stroke:l,strokeWidth:i})})]}):(0,C.jsx)("div",{ref:g,className:(0,B.cn)("relative",e),style:{...c,...v?{clipPath:`path("${v}")`}:{}},...u,children:d})}).displayName="RoughMask";let rj=(0,S.forwardRef)(function({width:e,height:t,size:r,fill:n,stroke:a,strokeWidth:o,children:i,...l},s){let d=r??e??t??24,c=(0,S.useId)(),u=`mail-flap-cutout-${c.replace(/:/g,"-")}`;return(0,C.jsxs)("svg",{ref:s,width:d,height:d,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",strokeLinecap:"round",strokeLinejoin:"round",...l,children:[i,(0,C.jsx)("defs",{children:(0,C.jsxs)("mask",{id:u,maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:[(0,C.jsx)("rect",{width:"24",height:"24",fill:"white"}),(0,C.jsx)("path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",fill:"none",stroke:"black",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,C.jsx)("rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",fill:n,stroke:a,strokeWidth:o??1,mask:`url(#${u})`})]})});function rN({Icon:e,size:t=24,fallbackName:r}){let{resolvedTheme:n}=function(){let{resolvedTheme:e}=(0,z.useTheme)(),[t,r]=(0,S.useState)(!1);return(0,S.useEffect)(()=>r(!0),[]),{resolvedTheme:t?e:void 0}}(),a="dark"===n,o=Math.round(.286*t),i=Math.round(.5*t),l=`coming-soon-glyph-${r.toLowerCase().replace(/[^a-z0-9]+/g,"-")}`,s=`url(#${l})`,d=`0 ${+(.083*t).toFixed(2)}px ${+(.167*t).toFixed(2)}px ${a?"rgba(0, 0, 0, 0.2)":"color-mix(in srgb, black 7%, transparent)"}`,c=`var(--shadow-dock-tile), ${d}`,u=a?"#1f1f1f":"#ffffff";return e?(0,C.jsx)("span",{style:{width:t,height:t,borderRadius:o,boxShadow:c,background:u},className:"shrink-0 flex items-center justify-center relative overflow-hidden",children:(0,C.jsx)(e,{width:i,height:i,fill:s,stroke:s,strokeWidth:1,style:{filter:"drop-shadow(0 1px 2px rgba(0,0,0,0.25))"},children:(0,C.jsx)("defs",{children:(0,C.jsxs)("linearGradient",{id:l,gradientUnits:"userSpaceOnUse",x1:"0",y1:"0",x2:"0",y2:"24",children:[(0,C.jsx)("stop",{offset:"0%",stopColor:"var(--gradient-brand-tile-top)",stopOpacity:.6}),(0,C.jsx)("stop",{offset:"100%",stopColor:"var(--gradient-brand-tile-bottom)",stopOpacity:1})]})})})}):(0,C.jsx)("span",{style:{width:t,height:t,borderRadius:o,boxShadow:c,background:u},className:"shrink-0"})}rj.displayName="MailEnvelope",e.s(["MailEnvelope",0,rj],515892),e.i(572871),e.i(623078),rN.displayName="ComingSoonChannelTile",e.s(["ComingSoonChannelTile",0,rN],458409);let rC={base:"#3032EC",top:"#575AEF",bottom:"#1418DB",tint:"#C6C7FA",glowRgb:"48, 50, 236"};e.s(["BRAND_BLUE",0,rC,"DEVICE_APP_COLORS",0,{skills:"#8b5cf6",apps:"#0ea5e9",files:"#f59e0b",scheduled:"#10b981",browser:"#3b82f6",bio:"#a78bfa",settings:"#737373"}],795372);let rS={coral:{top:rC.top,bottom:rC.bottom,glowRgb:rC.glowRgb},silver:{top:"#F2F3F5",bottom:"#B0B5BD",glowRgb:"160, 168, 180"},gold:{top:"#FFE08A",bottom:"#D8A22B",glowRgb:"217, 162, 43"},sky:{top:"#7FBFFF",bottom:"#4A8FE3",glowRgb:"74, 143, 227"},plum:{top:"#C77FE5",bottom:"#8E4ECC",glowRgb:"142, 78, 204"}},rE={none:{id:"none",type:"none"},"dots-large":{id:"dots-large",type:"dots",spacing:18,baseOpacity:.07}};function rR(e){let t=e.match(/^#?([0-9a-fA-F]{6})$/);if(!t)return[0,0,0];let r=t[1];return[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]}function rM(e,t){let[r,n,a]=rR(e);return`rgba(${r}, ${n}, ${a}, ${t.toFixed(3)})`}function rP(e,t){let[r,n,a]=rR(e),o=(e,r)=>
21Math.round(e*(1-t)+r*t),i=o(r,10).toString(16).padStart(2,"0"),l=o(n,10).toString(16).padStart(2,"0"),s=o(a,10).toString(16).padStart(2,"0");return`#${i}${l}${s}`}function rT({icon:e,label:t,onClick:r,buttonSize:n,iconSize:a,borderRadius:o,pressed:i,config:l,visualOnly:s=!1}){let d,{resolvedTheme:c}=function(){let{resolvedTheme:e}=(0,z.useTheme)(),[t,r]=(0,S.useState)(!1);return(0,S.useEffect)(()=>r(!0),[]),{resolvedTheme:t?e:void 0}}(),u="dark"===c,[p,f]=(0,S.useState)(!1),m=rS[l.gradient],h="outline"===l.fill,g=l.gradientOpacity/100,v=l.gradientOpacityPressed/100,x=u&&i?rP(m.top,.78):m.top,b=u&&i?rP(m.bottom,.78):m.bottom;if(i)switch(l.pressedBg){case"gradient-same":d=`linear-gradient(180deg, ${rM(x,v)} 0%, ${rM(b,v)} 100%)`;break;case"solid":d=rM(u?rP(l.pressedSolid,.78):l.pressedSolid,v);break;case"transparent":d="transparent";break;default:d=`linear-gradient(180deg, ${rM(b,v)} 0%, ${rM(x,v)} 100%)`}else d=`linear-gradient(180deg, ${rM(m.top,g)} 0%, ${rM(m.bottom,g)} 100%)`;let y=rE[l.texture]??rE.none,w=i?l.textureIntensityPressed:l.textureIntensity,k=i&&"inherit"!==l.textureColorPressed?l.textureColorPressed:l.textureColor,j=i&&"inherit"!==l.textureColorPressed?l.textureCustomPressed:l.textureCustom,N=function(e,t,r,n,a){switch(e){case"black":return"#000000";case"white":return"#ffffff";case"gradient-top":return r;case"gradient-bottom":return n;case"custom":return a;default:return"screen"===t||"luminosity"===t?"#ffffff":"#000000"}}(k,l.textureBlend,m.top,m.bottom,j),E="none"!==y.type?function(e,t,r){if("none"===e.type)return null;let n=Math.max(0,Math.min(1,e.baseOpacity*t)),[a,o,i]=rR(r);return"dots"===e.type?`radial-gradient(circle at 1px 1px, rgba(${a},${o},${i},${n}) 0.5px, transparent 0) 0 0/${e.spacing}px ${e.spacing}px`:"grid"===e.type?`linear-gradient(rgba(${a},${o},${i},${n}) 0.5px, transparent 0.5px) 0 0/${e.spacing}px ${e.spacing}px, linear-gradient(90deg, rgba(${a},${o},${i},${n}) 0.5px, transparent 0.5px) 0 0/${e.spacing}px ${e.spacing}px`:null}(y,w/100*2.4,N):null,R=h?E??"transparent":E?`${E}, ${d}`:d,M=E&&!h?`${l.textureBlend}, normal`:void 0,P=[];if(h&&P.push(`inset 0 0 0 1.5px ${m.bottom}`),i){let e=u?2.4:1;if(l.pressedStrokeOpacity>0){let t=Math.min(1,l.pressedStrokeOpacity/100*e).toFixed(3);P.push(`inset 0 0 0 1px rgba(0,0,0,${t})`)}let t=Math.min(1,l.pressedShadowOpacity/100*e).toFixed(3);P.push(`inset 0 ${l.pressedShadowY}px ${l.pressedShadowBlur}px ${l.pressedShadowSpread}px rgba(0,0,0,${t})`)}else{if(!h&&l.highlight>0){let e=(l.highlight/100*.4).toFixed(3);P.push(`inset 0 1px 0 rgba(255,255,255,${e})`)}if(l.glow>0){let e=l.glow/100*.6,t=(p&&!i?.55*e:e).toFixed(3),r=8+l.glow/100*8,n=Math.round(p&&!i?r+12:r),a=Math.round(2+l.glow/100*4),o=p&&!i?2:-3;P.push(`0 ${a}px ${n}px ${o}px rgba(${m.glowRgb}, ${t})`)}}let T=h?"":i?"text-neutral-900 dark:text-neutral-50":"text-white dark:text-neutral-950",I=h?m.bottom:void 0;return s?(0,C.jsx)("span",{"aria-hidden":!0,className:`inline-flex items-center justify-center ${T}`,style:{width:n,height:n,borderRadius:o,background:R,backgroundBlendMode:M,boxShadow:P.join(", "),...I?{color:I}:{}},children:(0,C.jsx)(e,{size:a})}):(0,C.jsx)("button",{type:"button",onClick:r,onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),"aria-label":t,title:t,className:`inline-flex items-center justify-center transition-all duration-normal ease-app hover:scale-[1.12] active:scale-[0.98] ${T}`,style:{width:n,height:n,borderRadius:o,background:R,backgroundBlendMode:M,boxShadow:P.join(", "),...I?{color:I}:{}},children:(0,C.jsx)(e,{size:a})})}rT.displayName="DeviceButton",e.s(["DeviceButton",0,rT],695576);let rI=(0,_.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",warning:"border-amber-500/50 text-amber-700 dark:text-amber-400 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-400"}},defaultVariants:{variant:"default"}}),rD=S.forwardRef(({className:e,variant:t,...r},n)=>(0,C.jsx)("div",{ref:n,role:"alert",className:(0,B.cn)(rI({variant:t}),e),...r}));rD.displayName="Alert";let rL=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)("h5",{ref:r,className:(0,B.cn)("mb-1 font-medium leading-none tracking-tight",e),...t}));rL.displayName="AlertTitle";let rA=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)("div",{ref:r,className:(0,B.cn)("text-sm [&_p]:leading-relaxed",e),...t}));rA.displayName="AlertDescription",e.s(["Alert",0,rD,"AlertDescription",0,rA,"AlertTitle",0,rL],972023);var rz=e.i(999682),rO=e.i(635804),r$="Checkbox",[rF,rH]=(0,G.createContextScope)(r$),[r_,rB]=rF(r$);function rW(e){let{__scopeCheckbox:t,checked:r,children:n,defaultChecked:a,disabled:o,form:i,name:l,onCheckedChange:s,required:d,value:c="on",internal_do_not_use_render:u}=e,[p,f]=(0,Q.useControllableState)({prop:r,defaultProp:a??!1,onChange:s,caller:r$}),[m,h]=S.useState(null),[g,v]=S.useState(null),x=S.useRef(!1),b=!m||!!i||!!m.closest("form"),y={checked:p,disabled:o,setChecked:f,control:m,setControl:h,name:l,form:i,value:c,hasConsumerStoppedPropagationRef:x,required:d,defaultChecked:!rZ(a)&&a,isFormControl:b,bubbleInput:g,setBubbleInput:v};return(0,C.jsx)(r_,{scope:t,...y,children:"function"==typeof u?u(y):n})}var rV="CheckboxTrigger",rG=S.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},a)=>{let{control:o,value:i,disabled:l,checked:s,required:d,setControl:c,setChecked:u,hasConsumerStoppedPropagationRef:p,isFormControl:f,bubbleInput:m}=rB(rV,e),h=(0,V.useComposedRefs)(a,c),g=S.useRef(s);return S.useEffect(()=>{let e=o?.form;if(e){let t=()=>u(g.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[o,u]),(0,C.jsx)(Z.Primitive.button,{type:"button",role:"checkbox","aria-checked":rZ(s)?"mixed":s,"aria-required":d,"data-state":rJ(s),"data-disabled":l?"":void 0,disabled:l,value:i,...n,ref:h,onKeyDown:(0,W.composeEventHandlers)(t,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,W.composeEventHandlers)(r,e=>{u(e=>!!rZ(e)||!e),m&&f&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())})})});rG.displayName=rV;var rU=S.forwardRef((e,t)=>
21{let{__scopeCheckbox:r,name:n,checked:a,defaultChecked:o,required:i,disabled:l,value:s,onCheckedChange:d,form:c,...u}=e;return(0,C.jsx)(rW,{__scopeCheckbox:r,checked:a,defaultChecked:o,disabled:l,required:i,onCheckedChange:d,name:n,form:c,value:s,internal_do_not_use_render:({isFormControl:e})=>(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(rG,{...u,ref:t,__scopeCheckbox:r}),e&&(0,C.jsx)(rX,{__scopeCheckbox:r})]})})});rU.displayName=r$;var rq="CheckboxIndicator",rK=S.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...a}=e,o=rB(rq,r);return(0,C.jsx)(X.Presence,{present:n||rZ(o.checked)||!0===o.checked,children:(0,C.jsx)(Z.Primitive.span,{"data-state":rJ(o.checked),"data-disabled":o.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});rK.displayName=rq;var rY="CheckboxBubbleInput",rX=S.forwardRef(({__scopeCheckbox:e,...t},r)=>{let{control:n,hasConsumerStoppedPropagationRef:a,checked:o,defaultChecked:i,required:l,disabled:s,name:d,value:c,form:u,bubbleInput:p,setBubbleInput:f}=rB(rY,e),m=(0,V.useComposedRefs)(r,f),h=(0,rz.usePrevious)(o),g=(0,rO.useSize)(n);S.useEffect(()=>{if(!p)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!a.current;if(h!==o&&e){let r=new Event("click",{bubbles:t});p.indeterminate=rZ(o),e.call(p,!rZ(o)&&o),p.dispatchEvent(r)}},[p,h,o,a]);let v=S.useRef(!rZ(o)&&o);return(0,C.jsx)(Z.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??v.current,required:l,disabled:s,name:d,value:c,form:u,...t,tabIndex:-1,ref:m,style:{...t.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function rZ(e){return"indeterminate"===e}function rJ(e){return rZ(e)?"indeterminate":e?"checked":"unchecked"}rX.displayName=rY;let rQ=(0,eM.default)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),r0=S.forwardRef(({className:e,checked:t,...r},n)=>(0,C.jsx)(rU,{ref:n,checked:t,className:(0,B.cn)("peer h-4 w-4 shrink-0 rounded-toggle border transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50","border-black/22 dark:border-white/18","data-[state=checked]:bg-brand data-[state=checked]:border-brand data-[state=checked]:text-white","data-[state=indeterminate]:bg-brand data-[state=indeterminate]:border-brand data-[state=indeterminate]:text-white",e),...r,children:(0,C.jsx)(rK,{className:(0,B.cn)("flex items-center justify-center text-current"),children:"indeterminate"===t?(0,C.jsx)(rQ,{className:"h-3 w-3",strokeWidth:3}):(0,C.jsx)(eO.Check,{className:"h-3 w-3",strokeWidth:3})})}));r0.displayName=rU.displayName,e.s(["Checkbox",0,r0],762519);var r1=e.i(842727),r2=e.i(586318),r5="Tabs",[r4,r3]=(0,G.createContextScope)(r5,[r1.createRovingFocusGroupScope]),r6=(0,r1.createRovingFocusGroupScope)(),[r8,r7]=r4(r5),r9=S.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:a,defaultValue:o,orientation:i="horizontal",dir:l,activationMode:s="automatic",...d}=e,c=(0,r2.useDirection)(l),[u,p]=(0,Q.useControllableState)({prop:n,onChange:a,defaultProp:o??"",caller:r5});return(0,C.jsx)(r8,{scope:r,baseId:(0,q.useId)(),value:u,onValueChange:p,orientation:i,dir:c,activationMode:s,children:(0,C.jsx)(Z.Primitive.div,{dir:c,"data-orientation":i,...d,ref:t})})});r9.displayName=r5;var ne="TabsList",nt=S.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...a}=e,o=r7(ne,r),i=r6(r);return(0,C.jsx)(r1.Root,{asChild:!0,...i,orientation:o.orientation,dir:o.dir,loop:n,children:(0,C.jsx)(Z.Primitive.div,{role:"tablist","aria-orientation":o.orientation,...a,ref:t})})});nt.displayName=ne;var nr="TabsTrigger",nn=S.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:a=!1,...o}=e,i=r7(nr,r),l=r6(r),s=ni(i.baseId,n),d=nl(i.baseId,n),c=n===i.value;return(0,C.jsx)(r1.Item,{asChild:!0,...l,focusable:!a,active:c,children:(0,C.jsx)(Z.Primitive.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":d,"data-state":c?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:s,...o,ref:t,onMouseDown:(0,W.composeEventHandlers)(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():i.onValueChange(n)}),onKeyDown:(0,W.composeEventHandlers)(e.onKeyDown,e=>
21{[" ","Enter"].includes(e.key)&&i.onValueChange(n)}),onFocus:(0,W.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==i.activationMode;c||a||!e||i.onValueChange(n)})})})});nn.displayName=nr;var na="TabsContent",no=S.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,forceMount:a,children:o,...i}=e,l=r7(na,r),s=ni(l.baseId,n),d=nl(l.baseId,n),c=n===l.value,u=S.useRef(c);return S.useEffect(()=>{let e=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,C.jsx)(X.Presence,{present:a||c,children:({present:r})=>(0,C.jsx)(Z.Primitive.div,{"data-state":c?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!r,id:d,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:u.current?"0s":void 0},children:r&&o})})});function ni(e,t){return`${e}-trigger-${t}`}function nl(e,t){return`${e}-content-${t}`}no.displayName=na;let ns=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)(nt,{ref:r,className:(0,B.cn)("inline-flex h-9 max-w-full items-center justify-center-safe overflow-x-auto rounded-lg bg-muted p-1 text-muted-foreground [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",e),...t}));ns.displayName=nt.displayName;let nd=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)(nn,{ref:r,className:(0,B.cn)("inline-flex shrink-0 items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium text-foreground/40 ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));nd.displayName=nn.displayName;let nc=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)(no,{ref:r,className:(0,B.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));nc.displayName=no.displayName,e.s(["Tabs",0,r9,"TabsContent",0,nc,"TabsList",0,ns,"TabsTrigger",0,nd],723823);let nu=S.forwardRef(({className:e,wrapperClassName:t,...r},n)=>(0,C.jsx)("div",{className:(0,B.cn)("relative w-full overflow-auto",t),children:(0,C.jsx)("table",{ref:n,className:(0,B.cn)("w-full caption-bottom text-sm",e),...r})}));nu.displayName="Table";let np=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)("thead",{ref:r,className:(0,B.cn)("[&_tr]:border-b [&_tr]:border-border",e),...t}));np.displayName="TableHeader";let nf=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)("tbody",{ref:r,className:(0,B.cn)("[&_tr:last-child]:border-0",e),...t}));nf.displayName="TableBody",S.forwardRef(({className:e,...t},r)=>(0,C.jsx)("tfoot",{ref:r,className:(0,B.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t})).displayName="TableFooter";let nm=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)("tr",{ref:r,className:(0,B.cn)("border-b border-border transition-colors hover:bg-muted/30 data-[state=selected]:bg-muted",e),...t}));nm.displayName="TableRow";let nh=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)("th",{ref:r,className:(0,B.cn)("py-3 px-4 text-left align-middle text-sm font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));nh.displayName="TableHead";let ng=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)("td",{ref:r,className:(0,B.cn)("py-3 px-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));function nv({columns:e,data:t,onRowClick:r,emptyState:n,className:a}){return 0===t.length&&n?(0,C.jsx)(C.Fragment,{children:n}):(0,C.jsx)("div",{className:(0,B.cn)("border border-border rounded-lg overflow-hidden",a),children:(0,C.jsxs)(nu,{children:[(0,C.jsx)(np,{children:(0,C.jsx)(nm,{className:"bg-muted/50 hover:bg-muted/50",children:e.map(e=>(0,C.jsx)(nh,{className:e.width,children:e.header},e.key))})}),(0,C.jsx)(nf,{children:t.map(t=>(0,C.jsx)(nm,{onClick:r?()=>r(t):void 0,onKeyDown:r?e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),r(t))}:void 0,role:r?"button":void 0,tabIndex:r?0:void 0,className:(0,B.cn)(r&&"cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset"),children:e.map(e=>(0,C.jsx)(ng,{children:e.render?e.render(t):t[e.key]},e.key))},t.id))})]})})}ng.displayName="TableCell",S.forwardRef(({className:e,...t},r)=>(0,C.jsx)("caption",{ref:r,className:(0,B.cn)("mt-4 text-sm text-muted-foreground",e),...t})).displayName="TableCaption",e.s(["Table",0,nu,"TableBody",0,nf,"TableCell",0,ng,"TableHead",0,nh,"TableHeader",0,np,"TableRow",0,nm],767036),nv.displayName="DataTable",e.s(["DataTable",0,nv],901111),e.i(21079);let nx=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)("label",{ref:r,className:(0,B.cn)("text-sm font-medium text-foreground",e),...t}));nx.displayName="Label";let nb=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)("div",{ref:r,className:(0,B.cn)("flex flex-col gap-3",e),...t}));function ny(e,[t,r]){return Math.min(r,Math.max(t,e))}nb.displayName="FormField",e.s(["FormField",0,nb,"Label",0,nx],433992);var nw=e.i(75830),nk=Symbol("radix.slottable");function nj(e){return S.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===nk}var nN=e.i(30207),nC=[" ","Enter","ArrowUp","ArrowDown"],nS=[" ","Enter"],nE="Select",[nR,nM,nP]=(0,nw.createCollection)(nE),[nT,nI]=(0,G.createContextScope)(nE,[nP,K.createPopperScope]),nD=(0,K.createPopperScope)(),[nL,nA]=nT(nE),[nz,nO]=nT(nE),n$=e=>{let{__scopeSelect:t,children:r,open:n,defaultOpen:a,onOpenChange:o,value:i,defaultValue:l,onValueChange:s,dir:d,name:c,autoComplete:u,disabled:p,required:f,form:m}=e,h=nD(t),[g,v]=S.useState(null),[x,b]=S.useState(null),[y,w]=S.useState(!1),k=(0,r2.useDirection)(d),[j,N]=(0,Q.useControllableState)({prop:n,defaultProp:a??!1,onChange:o,caller:nE}),[E,R]=(0,Q.useControllableState)({prop:i,defaultProp:l,onChange:s,caller:nE}),M=S.useRef(null),P=!g||m||!!g.closest("form"),[T,I]=S.useState(new Set),D=Array.from(T).map(e=>e.props.value).join(";");return(0,C.jsx)(K.Root,{...h,children:(0,C.jsxs)(nL,{required:f,scope:t,trigger:g,onTriggerChange:v,valueNode:x,onValueNodeChange:b,valueNodeHasChildren:y,onValueNodeHasChildrenChange:w,contentId:(0,q.useId)(),value:E,onValueChange:R,open:j,onOpenChange:N,dir:k,triggerPointerDownPosRef:M,disabled:p,children:[(0,C.jsx)(nR.Provider,{scope:t,children:(0,C.jsx)(nz,{scope:e.__scopeSelect,onNativeOptionAdd:S.useCallback(e=>{I(t=>new Set(t).add(e))},[]),onNativeOptionRemove:S.useCallback(e=>{I(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),P?(0,C.jsxs)(am,{"aria-hidden":!0,required:f,tabIndex:-1,name:c,autoComplete:u,value:E,onChange:e=>R(e.target.value),disabled:p,form:m,children:[void 0===E?(0,C.jsx)("option",{value:""}):null,Array.from(T)]},D):null]})})};n$.displayName=nE;var nF="SelectTrigger",nH=S.forwardRef((e,t)=>
21{let{__scopeSelect:r,disabled:n=!1,...a}=e,o=nD(r),i=nA(nF,r),l=i.disabled||n,s=(0,V.useComposedRefs)(t,i.onTriggerChange),d=nM(r),c=S.useRef("touch"),[u,p,f]=ag(e=>{let t=d().filter(e=>!e.disabled),r=t.find(e=>e.value===i.value),n=av(t,e,r);void 0!==n&&i.onValueChange(n.value)}),m=e=>{l||(i.onOpenChange(!0),f()),e&&(i.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,C.jsx)(K.Anchor,{asChild:!0,...o,children:(0,C.jsx)(Z.Primitive.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":ah(i.value)?"":void 0,...a,ref:s,onClick:(0,W.composeEventHandlers)(a.onClick,e=>{e.currentTarget.focus(),"mouse"!==c.current&&m(e)}),onPointerDown:(0,W.composeEventHandlers)(a.onPointerDown,e=>{c.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(m(e),e.preventDefault())}),onKeyDown:(0,W.composeEventHandlers)(a.onKeyDown,e=>{let t=""!==u.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||p(e.key),(!t||" "!==e.key)&&nC.includes(e.key)&&(m(),e.preventDefault())})})})});nH.displayName=nF;var n_="SelectValue",nB=S.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:a,children:o,placeholder:i="",...l}=e,s=nA(n_,r),{onValueNodeHasChildrenChange:d}=s,c=void 0!==o,u=(0,V.useComposedRefs)(t,s.onValueNodeChange);return(0,eG.useLayoutEffect)(()=>{d(c)},[d,c]),(0,C.jsx)(Z.Primitive.span,{...l,ref:u,style:{pointerEvents:"none"},children:ah(s.value)?(0,C.jsx)(C.Fragment,{children:i}):o})});nB.displayName=n_;var nW=S.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...a}=e;return(0,C.jsx)(Z.Primitive.span,{"aria-hidden":!0,...a,ref:t,children:n||"▼"})});nW.displayName="SelectIcon";var nV=e=>(0,C.jsx)(Y.Portal,{asChild:!0,...e});nV.displayName="SelectPortal";var nG="SelectContent",nU=S.forwardRef((e,t)=>{let r=nA(nG,e.__scopeSelect),[n,a]=S.useState();return((0,eG.useLayoutEffect)(()=>{a(new DocumentFragment)},[]),r.open)?(0,C.jsx)(nX,{...e,ref:t}):n?t0.createPortal((0,C.jsx)(nq,{scope:e.__scopeSelect,children:(0,C.jsx)(nR.Slot,{scope:e.__scopeSelect,children:(0,C.jsx)("div",{children:e.children})})}),n):null});nU.displayName=nG;var[nq,nK]=nT(nG),nY=((l=S.forwardRef((e,t)=>{let{children:r,...n}=e;if(S.isValidElement(r)){var a;let e,o,i=(a=r,(o=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(o=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),l=function(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==S.Fragment&&(l.ref=t?(0,V.composeRefs)(t,i):i),S.cloneElement(r,l)}return S.Children.count(r)>1?S.Children.only(null):null})).displayName="SelectContent.RemoveScroll.SlotClone",a=l,(o=S.forwardRef((e,t)=>{let{children:r,...n}=e,o=S.Children.toArray(r),i=o.find(nj);if(i){let e=i.props.children,r=o.map(t=>t!==i?t:S.Children.count(e)>1?S.Children.only(null):S.isValidElement(e)?e.props.children:null);return(0,C.jsx)(a,{...n,ref:t,children:S.isValidElement(e)?S.cloneElement(e,void 0,r):null})}return(0,C.jsx)(a,{...n,ref:t,children:r})})).displayName="SelectContent.RemoveScroll.Slot",o),nX=S.forwardRef((e,t)=>{let{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:i,side:l,sideOffset:s,align:d,alignOffset:c,arrowPadding:u,collisionBoundary:p,collisionPadding:f,sticky:m,hideWhenDetached:h,avoidCollisions:g,...v}=e,x=nA(nG,r),[b,y]=S.useState(null),[w,k]=S.useState(null),j=(0,V.useComposedRefs)(t,e=>y(e)),[N,E]=S.useState(null),[R,M]=S.useState(null),P=nM(r),[T,I]=S.useState(!1),D=S.useRef(!1);S.useEffect(()=>{if(b)return(0,te.hideOthers)(b)},[b]),(0,e7.useFocusGuards)();let L=S.useCallback(e=>{let[t,...r]=P().map(e=>e.ref.current),[n]=r.slice(-1),a=document.activeElement;for(let r of e)if(r===a||(r?.scrollIntoView({block:"nearest"}),r===t&&w&&(w.scrollTop=0),r===n&&w&&(w.scrollTop=w.scrollHeight),r?.focus(),document.activeElement!==a))return},[P,w]),A=S.useCallback(()=>L([N,b]),[L,N,b]);S.useEffect(()=>{T&&A()},[T,A]);let{onOpenChange:z,triggerPointerDownPosRef:O}=x;S.useEffect(()=>{if(b){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(O.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(O.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():b.contains(r.target)||z(!1),document.removeEventListener("pointermove",t),O.current=null};return null!==O.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[b,z,O]),S.useEffect(()=>{let e=()=>z(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[z]);let[$,F]=ag(e=>{let t=P().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=av(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),H=S.useCallback((e,t,r)=>{let n=!D.current&&!r;(void 0!==x.value&&x.value===t||n)&&(E(e),n&&(D.current=!0))},[x.value]),_=S.useCallback(()=>b?.focus(),[b]),B=S.useCallback((e,t,r)=>{let n=!D.current&&!r;(void 0!==x.value&&x.value===t||n)&&M(e)},[x.value]),G="popper"===n?nJ:nZ,q=G===nJ?{side:l,sideOffset:s,align:d,alignOffset:c,arrowPadding:u,collisionBoundary:p,collisionPadding:f,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,C.jsx)(nq,{scope:r,content:b,viewport:w,onViewportChange:k,itemRefCallback:H,selectedItem:N,onItemLeave:_,itemTextRefCallback:B,focusSelectedItem:A,selectedItemText:R,position:n,isPositioned:T,searchRef:$,children:(0,C.jsx)(e9.RemoveScroll,{as:nY,allowPinchZoom:!0,children:(0,C.jsx)(e8.FocusScope,{asChild:!0,trapped:x.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,W.composeEventHandlers)(a,e=>{x.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,C.jsx)(U.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:(0,C.jsx)(G,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:e=>e.preventDefault(),...v,...q,onPlaced:()=>I(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:(0,W.composeEventHandlers)(v.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;
21if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||F(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=P().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>L(t)),e.preventDefault()}})})})})})})});nX.displayName="SelectContentImpl";var nZ=S.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:n,...a}=e,o=nA(nG,r),i=nK(nG,r),[l,s]=S.useState(null),[d,c]=S.useState(null),u=(0,V.useComposedRefs)(t,e=>c(e)),p=nM(r),f=S.useRef(!1),m=S.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:v,focusSelectedItem:x}=i,b=S.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&d&&h&&g&&v){let e=o.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),r=o.valueNode.getBoundingClientRect(),a=v.getBoundingClientRect();if("rtl"!==o.dir){let n=a.left-t.left,o=r.left-n,i=e.left-o,s=e.width+i,d=Math.max(s,t.width),c=ny(o,[10,Math.max(10,window.innerWidth-10-d)]);l.style.minWidth=s+"px",l.style.left=c+"px"}else{let n=t.right-a.right,o=window.innerWidth-r.right-n,i=window.innerWidth-e.right-o,s=e.width+i,d=Math.max(s,t.width),c=ny(o,[10,Math.max(10,window.innerWidth-10-d)]);l.style.minWidth=s+"px",l.style.right=c+"px"}let i=p(),s=window.innerHeight-20,c=h.scrollHeight,u=window.getComputedStyle(d),m=parseInt(u.borderTopWidth,10),x=parseInt(u.paddingTop,10),b=parseInt(u.borderBottomWidth,10),y=m+x+c+parseInt(u.paddingBottom,10)+b,w=Math.min(5*g.offsetHeight,y),k=window.getComputedStyle(h),j=parseInt(k.paddingTop,10),N=parseInt(k.paddingBottom,10),C=e.top+e.height/2-10,S=g.offsetHeight/2,E=m+x+(g.offsetTop+S);if(E<=C){let e=i.length>0&&g===i[i.length-1].ref.current;l.style.bottom="0px";let t=Math.max(s-C,S+(e?N:0)+(d.clientHeight-h.offsetTop-h.offsetHeight)+b);l.style.height=E+t+"px"}else{let e=i.length>0&&g===i[0].ref.current;l.style.top="0px";let t=Math.max(C,m+h.offsetTop+(e?j:0)+S);l.style.height=t+(y-E)+"px",h.scrollTop=E-C+h.offsetTop}l.style.margin="10px 0",l.style.minHeight=w+"px",l.style.maxHeight=s+"px",n?.(),requestAnimationFrame(()=>f.current=!0)}},[p,o.trigger,o.valueNode,l,d,h,g,v,o.dir,n]);(0,eG.useLayoutEffect)(()=>b(),[b]);let[y,w]=S.useState();(0,eG.useLayoutEffect)(()=>{d&&w(window.getComputedStyle(d).zIndex)},[d]);let k=S.useCallback(e=>{e&&!0===m.current&&(b(),x?.(),m.current=!1)},[b,x]);return(0,C.jsx)(nQ,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:f,onScrollButtonChange:k,children:(0,C.jsx)("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:y},children:(0,C.jsx)(Z.Primitive.div,{...a,ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});nZ.displayName="SelectItemAlignedPosition";var nJ=S.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:a=10,...o}=e,i=nD(r);return(0,C.jsx)(K.Content,{...i,...o,ref:t,align:n,collisionPadding:a,style:{boxSizing:"border-box",...o.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)"}})});nJ.displayName="SelectPopperPosition";var[nQ,n0]=nT(nG,{}),n1="SelectViewport",n2=S.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:n,...a}=e,o=nK(n1,r),i=n0(n1,r),l=(0,V.useComposedRefs)(t,o.onViewportChange),s=S.useRef(0);return(0,C.jsxs)(C.Fragment,{children:[(0,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:n}),(0,C.jsx)(nR.Slot,{scope:r,children:(0,C.jsx)(Z.Primitive.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:(0,W.composeEventHandlers)(a.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=i;if(n?.current&&r){let e=Math.abs(s.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,a=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(a<n){let o=a+e,i=Math.min(n,o),l=o-i;r.style.height=i+"px","0px"===r.style.bottom&&(t.scrollTop=l>0?l:0,r.style.justifyContent="flex-end")}}}s.current=t.scrollTop})})})]})});n2.displayName=n1;var n5="SelectGroup",[n4,n3]=nT(n5),n6=S.forwardRef((e,t)=>
21{let{__scopeSelect:r,...n}=e,a=(0,q.useId)();return(0,C.jsx)(n4,{scope:r,id:a,children:(0,C.jsx)(Z.Primitive.div,{role:"group","aria-labelledby":a,...n,ref:t})})});n6.displayName=n5;var n8="SelectLabel",n7=S.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,a=n3(n8,r);return(0,C.jsx)(Z.Primitive.div,{id:a.id,...n,ref:t})});n7.displayName=n8;var n9="SelectItem",[ae,at]=nT(n9),ar=S.forwardRef((e,t)=>{let{__scopeSelect:r,value:n,disabled:a=!1,textValue:o,...i}=e,l=nA(n9,r),s=nK(n9,r),d=l.value===n,[c,u]=S.useState(o??""),[p,f]=S.useState(!1),m=(0,V.useComposedRefs)(t,e=>s.itemRefCallback?.(e,n,a)),h=(0,q.useId)(),g=S.useRef("touch"),v=()=>{a||(l.onValueChange(n),l.onOpenChange(!1))};if(""===n)throw 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(0,C.jsx)(ae,{scope:r,value:n,disabled:a,textId:h,isSelected:d,onItemTextChange:S.useCallback(e=>{u(t=>t||(e?.textContent??"").trim())},[]),children:(0,C.jsx)(nR.ItemSlot,{scope:r,value:n,disabled:a,textValue:c,children:(0,C.jsx)(Z.Primitive.div,{role:"option","aria-labelledby":h,"data-highlighted":p?"":void 0,"aria-selected":d&&p,"data-state":d?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...i,ref:m,onFocus:(0,W.composeEventHandlers)(i.onFocus,()=>f(!0)),onBlur:(0,W.composeEventHandlers)(i.onBlur,()=>f(!1)),onClick:(0,W.composeEventHandlers)(i.onClick,()=>{"mouse"!==g.current&&v()}),onPointerUp:(0,W.composeEventHandlers)(i.onPointerUp,()=>{"mouse"===g.current&&v()}),onPointerDown:(0,W.composeEventHandlers)(i.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:(0,W.composeEventHandlers)(i.onPointerMove,e=>{g.current=e.pointerType,a?s.onItemLeave?.():"mouse"===g.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,W.composeEventHandlers)(i.onPointerLeave,e=>{e.currentTarget===document.activeElement&&s.onItemLeave?.()}),onKeyDown:(0,W.composeEventHandlers)(i.onKeyDown,e=>{(s.searchRef?.current===""||" "!==e.key)&&(nS.includes(e.key)&&v()," "===e.key&&e.preventDefault())})})})})});ar.displayName=n9;var an="SelectItemText",aa=S.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:a,...o}=e,i=nA(an,r),l=nK(an,r),s=at(an,r),d=nO(an,r),[c,u]=S.useState(null),p=(0,V.useComposedRefs)(t,e=>u(e),s.onItemTextChange,e=>l.itemTextRefCallback?.(e,s.value,s.disabled)),f=c?.textContent,m=S.useMemo(()=>(0,C.jsx)("option",{value:s.value,disabled:s.disabled,children:f},s.value),[s.disabled,s.value,f]),{onNativeOptionAdd:h,onNativeOptionRemove:g}=d;return(0,eG.useLayoutEffect)(()=>(h(m),()=>g(m)),[h,g,m]),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Z.Primitive.span,{id:s.textId,...o,ref:p}),s.isSelected&&i.valueNode&&!i.valueNodeHasChildren?t0.createPortal(o.children,i.valueNode):null]})});aa.displayName=an;var ao="SelectItemIndicator",ai=S.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return at(ao,r).isSelected?(0,C.jsx)(Z.Primitive.span,{"aria-hidden":!0,...n,ref:t}):null});ai.displayName=ao;var al="SelectScrollUpButton",as=S.forwardRef((e,t)=>{let r=nK(al,e.__scopeSelect),n=n0(al,e.__scopeSelect),[a,o]=S.useState(!1),i=(0,V.useComposedRefs)(t,n.onScrollButtonChange);return(0,eG.useLayoutEffect)(()=>{if(r.viewport&&r.isPositioned){let e=function(){o(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),a?(0,C.jsx)(au,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});as.displayName=al;var ad="SelectScrollDownButton",ac=S.forwardRef((e,t)=>{let r=nK(ad,e.__scopeSelect),n=n0(ad,e.__scopeSelect),[a,o]=S.useState(!1),i=(0,V.useComposedRefs)(t,n.onScrollButtonChange);return(0,eG.useLayoutEffect)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;o(Math.ceil(t.scrollTop)<e)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),a?(0,C.jsx)(au,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});ac.displayName=ad;var au=S.forwardRef((e,t)=>
21{let{__scopeSelect:r,onAutoScroll:n,...a}=e,o=nK("SelectScrollButton",r),i=S.useRef(null),l=nM(r),s=S.useCallback(()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)},[]);return S.useEffect(()=>()=>s(),[s]),(0,eG.useLayoutEffect)(()=>{let e=l().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[l]),(0,C.jsx)(Z.Primitive.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:(0,W.composeEventHandlers)(a.onPointerDown,()=>{null===i.current&&(i.current=window.setInterval(n,50))}),onPointerMove:(0,W.composeEventHandlers)(a.onPointerMove,()=>{o.onItemLeave?.(),null===i.current&&(i.current=window.setInterval(n,50))}),onPointerLeave:(0,W.composeEventHandlers)(a.onPointerLeave,()=>{s()})})}),ap=S.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,C.jsx)(Z.Primitive.div,{"aria-hidden":!0,...n,ref:t})});ap.displayName="SelectSeparator";var af="SelectArrow";S.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,a=nD(r),o=nA(af,r),i=nK(af,r);return o.open&&"popper"===i.position?(0,C.jsx)(K.Arrow,{...a,...n,ref:t}):null}).displayName=af;var am=S.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{let a=S.useRef(null),o=(0,V.useComposedRefs)(n,a),i=(0,rz.usePrevious)(t);return S.useEffect(()=>{let e=a.current;if(!e)return;let r=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(i!==t&&r){let n=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[i,t]),(0,C.jsx)(Z.Primitive.select,{...r,style:{...ee,...r.style},ref:o,defaultValue:t})});function ah(e){return""===e||void 0===e}function ag(e){let t=(0,nN.useCallbackRef)(e),r=S.useRef(""),n=S.useRef(0),a=S.useCallback(e=>{let a=r.current+e;t(a),function e(t){r.current=t,window.clearTimeout(n.current),""!==t&&(n.current=window.setTimeout(()=>e(""),1e3))}(a)},[t]),o=S.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return S.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,a,o]}function av(e,t,r){var n,a;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=r?e.indexOf(r):-1,l=(n=e,a=Math.max(i,0),n.map((e,t)=>n[(a+t)%n.length]));1===o.length&&(l=l.filter(e=>e!==r));let s=l.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return s!==r?s:void 0}am.displayName="SelectBubbleInput";var ax=e.i(420597);let ab=(0,eM.default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),ay=S.forwardRef(({className:e,children:t,...r},n)=>(0,C.jsxs)(nH,{ref:n,className:(0,B.cn)("flex h-10 w-full items-center justify-between rounded-md border border-border bg-background px-3 py-2 text-sm placeholder:text-foreground/30 focus:outline-none focus:ring-2 focus:ring-foreground/40 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,(0,C.jsx)(nW,{asChild:!0,children:(0,C.jsx)(ax.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ay.displayName=nH.displayName;let aw=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)(as,{ref:r,className:(0,B.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,C.jsx)(ab,{className:"h-4 w-4"})}));aw.displayName=as.displayName;let ak=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)(ac,{ref:r,className:(0,B.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,C.jsx)(ax.ChevronDown,{className:"h-4 w-4"})}));ak.displayName=ac.displayName;let aj=S.forwardRef(({className:e,children:t,position:r="popper",...n},a)=>(0,C.jsx)(nV,{children:(0,C.jsxs)(nU,{ref:a,className:(0,B.cn)("relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-(--shadow-popover) duration-fast 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-[0.98] data-[state=open]:zoom-in-[0.98] data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1","popper"===r&&"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:[(0,C.jsx)(aw,{}),(0,C.jsx)(n2,{className:(0,B.cn)("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,C.jsx)(ak,{})]})}));aj.displayName=nU.displayName;let aN=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)(n7,{ref:r,className:(0,B.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));aN.displayName=n7.displayName;let aC=S.forwardRef(({className:e,children:t,...r},n)=>(0,C.jsxs)(ar,{ref:n,className:(0,B.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[(0,C.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,C.jsx)(ai,{children:(0,C.jsx)(eO.Check,{className:"h-4 w-4"})})}),(0,C.jsx)(aa,{children:t})]}));aC.displayName=ar.displayName;let aS=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)(ap,{ref:r,className:(0,B.cn)("-mx-1 my-1 h-px bg-muted",e),...t}));aS.displayName=ap.displayName,e.s(["Select",0,n$,"SelectContent",0,aj,"SelectGroup",0,n6,"SelectItem",0,aC,"SelectLabel",0,aN,"SelectSeparator",0,aS,"SelectTrigger",0,ay,"SelectValue",0,nB],708737),e.i(401400),S.forwardRef(({className:e,...t},r)=>(0,C.jsx)("ul",{ref:r,className:(0,B.cn)("flex flex-row items-center gap-1",e),...t})).displayName="PaginationContent",S.forwardRef(({className:e,...t},r)=>(0,C.jsx)("li",{ref:r,className:(0,B.cn)("",e),...t})).displayName="PaginationItem";var aE="Switch",[aR,aM]=(0,G.createContextScope)(aE),[aP,aT]=aR(aE),aI=S.forwardRef((e,t)=>
21{let{__scopeSwitch:r,name:n,checked:a,defaultChecked:o,required:i,disabled:l,value:s="on",onCheckedChange:d,form:c,...u}=e,[p,f]=S.useState(null),m=(0,V.useComposedRefs)(t,e=>f(e)),h=S.useRef(!1),g=!p||c||!!p.closest("form"),[v,x]=(0,Q.useControllableState)({prop:a,defaultProp:o??!1,onChange:d,caller:aE});return(0,C.jsxs)(aP,{scope:r,checked:v,disabled:l,children:[(0,C.jsx)(Z.Primitive.button,{type:"button",role:"switch","aria-checked":v,"aria-required":i,"data-state":az(v),"data-disabled":l?"":void 0,disabled:l,value:s,...u,ref:m,onClick:(0,W.composeEventHandlers)(e.onClick,e=>{x(e=>!e),g&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())})}),g&&(0,C.jsx)(aA,{control:p,bubbles:!h.current,name:n,value:s,checked:v,required:i,disabled:l,form:c,style:{transform:"translateX(-100%)"}})]})});aI.displayName=aE;var aD="SwitchThumb",aL=S.forwardRef((e,t)=>{let{__scopeSwitch:r,...n}=e,a=aT(aD,r);return(0,C.jsx)(Z.Primitive.span,{"data-state":az(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:t})});aL.displayName=aD;var aA=S.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...a},o)=>{let i=S.useRef(null),l=(0,V.useComposedRefs)(i,o),s=(0,rz.usePrevious)(r),d=(0,rO.useSize)(t);return S.useEffect(()=>{let e=i.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(s!==r&&t){let a=new Event("click",{bubbles:n});t.call(e,r),e.dispatchEvent(a)}},[s,r,n]),(0,C.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:l,style:{...a.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function az(e){return e?"checked":"unchecked"}aA.displayName="SwitchBubbleInput";let aO=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)(aI,{className:(0,B.cn)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-brand","data-[state=unchecked]:bg-black/12 dark:data-[state=unchecked]:bg-white/18",e),...t,ref:r,children:(0,C.jsx)(aL,{className:(0,B.cn)("pointer-events-none block h-4 w-4 rounded-full bg-white shadow-sm ring-0 transition-transform data-[state=checked]:translate-x-[18px] data-[state=unchecked]:translate-x-0.5")})}));aO.displayName=aI.displayName,e.s(["Switch",0,aO],781243);let a$=Array(12).fill(0),aF=({visible:e,className:t})=>S.default.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},S.default.createElement("div",{className:"sonner-spinner"},a$.map((e,t)=>S.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`})))),aH=S.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},S.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),a_=S.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},S.default.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),aB=S.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},S.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),aW=S.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},S.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),aV=S.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},S.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),S.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),aG=1,aU=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>
vendor: 1,076 bytes, line 21
21{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,a="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:aG++,o=this.toasts.find(e=>e.id===a),i=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),o?this.toasts=this.toasts.map(t=>t.id===a?(this.publish({...t,...e,id:a,title:r}),{...t,...e,id:a,dismissible:i,title:r}):t):this.addToast({title:r,...n,dismissible:i,id:a}),a},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
21this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let r,n;if(!t)return;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let a=Promise.resolve(e instanceof Function?e():e),o=void 0!==n,i=a.then(async e=>{if(r=["resolve",e],S.default.isValidElement(e))o=!1,this.create({id:n,type:"default",message:e});else if(aq(e)&&!e.ok){o=!1;let r="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,a="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,i="object"!=typeof r||S.default.isValidElement(r)?{message:r}:r;this.create({id:n,type:"error",description:a,...i})}else if(e instanceof Error){o=!1;let r="function"==typeof t.error?await t.error(e):t.error,a="function"==typeof t.description?await t.description(e):t.description,i="object"!=typeof r||S.default.isValidElement(r)?{message:r}:r;this.create({id:n,type:"error",description:a,...i})}else if(void 0!==t.success){o=!1;let r="function"==typeof t.success?await t.success(e):t.success,a="function"==typeof t.description?await t.description(e):t.description,i="object"!=typeof r||S.default.isValidElement(r)?{message:r}:r;this.create({id:n,type:"success",description:a,...i})}}).catch(async e=>{if(r=["reject",e],void 0!==t.error){o=!1;let r="function"==typeof t.error?await t.error(e):t.error,a="function"==typeof t.description?await t.description(e):t.description,i="object"!=typeof r||S.default.isValidElement(r)?{message:r}:r;this.create({id:n,type:"error",description:a,...i})}}).finally(()=>{o&&(this.dismiss(n),n=void 0),null==t.finally||t.finally.call(t)}),l=()=>new Promise((e,t)=>i.then(()=>"reject"===r[0]?t(r[1]):e(r[1])).catch(t));return"string"!=typeof n&&"number"!=typeof n?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let r=(null==t?void 0:t.id)||aG++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},aq=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,aK=Object.assign((e,t)=>{let r=(null==t?void 0:t.id)||aG++;return aU.addToast({title:e,...t,id:r}),r},{success:aU.success,info:aU.info,warning:aU.warning,error:aU.error,custom:aU.custom,message:aU.message,promise:aU.promise,dismiss:aU.dismiss,loading:aU.loading},{getHistory:()=>aU.toasts,getToasts:()=>aU.getActiveToasts()});function aY(e){return void 0!==e.label}function aX(...e){return e.filter(Boolean).join(" ")}!function(e){if(!e||"u"<typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}
vendor: 14,864 bytes, line 21
21("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
21let aZ=e=>{var t,r,n,a,o,i,l,s,d,c,u,p,f;let{invert:m,toast:h,unstyled:g,interacting:v,setHeights:x,visibleToasts:b,heights:y,index:w,toasts:k,expanded:j,removeToast:N,defaultRichColors:C,closeButton:E,style:R,cancelButtonStyle:M,actionButtonStyle:P,className:T="",descriptionClassName:I="",duration:D,position:L,gap:A,expandByDefault:z,classNames:O,icons:$,closeButtonAriaLabel:F="Close toast"}=e,[H,_]=S.default.useState(null),[B,W]=S.default.useState(null),[V,G]=S.default.useState(!1),[U,q]=S.default.useState(!1),[K,Y]=S.default.useState(!1),[X,Z]=S.default.useState(!1),[J,Q]=S.default.useState(!1),[ee,et]=S.default.useState(0),[er,en]=S.default.useState(0),ea=S.default.useRef(h.duration||D||4e3),eo=S.default.useRef(null),ei=S.default.useRef(null),el=0===w,es=w+1<=b,ed=h.type,ec=!1!==h.dism
21issible,eu=h.className||"",ep=h.descriptionClassName||"",ef=S.default.useMemo(()=>y.findIndex(e=>e.toastId===h.id)||0,[y,h.id]),em=S.default.useMemo(()=>{var e;return null!=(e=h.closeButton)?e:E},[h.closeButton,E]),eh=S.default.useMemo(()=>h.duration||D||4e3,[h.duration,D]),eg=S.default.useRef(0),ev=S.default.useRef(0),ex=S.default.useRef(0),eb=S.default.useRef(null),[ey,ew]=L.split("-"),ek=S.default.useMemo(()=>y.reduce((e,t,r)=>r>=ef?e:e+t.height,0),[y,ef]),ej=(()=>{let[e,t]=S.default.useState(document.hidden);return S.default.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e})(),eN=h.invert||m,eC="loading"===ed;ev.current=S.default.useMemo(()=>ef*A+ek,[ef,ek]),S.default.useEffect(()=>{ea.current=eh},[eh]),S.default.useEffect(()=>{G(!0)},[]),S.default.useEffect(()=>{let e=ei.current;if(e){let t=e.getBoundingClientRect().height;return en(t),x(e=>[{toastId:h.id,height:t,position:h.position},...e]),()=>x(e=>e.filter(e=>e.toastId!==h.id))}},[x,h.id]),S.default.useLayoutEffect(()=>{if(!V)return;let e=ei.current,t=e.style.height;e.style.height="auto";let r=e.getBoundingClientRect().height;e.style.height=t,en(r),x(e=>e.find(e=>e.toastId===h.id)?e.map(e=>e.toastId===h.id?{...e,height:r}:e):[{toastId:h.id,height:r,position:h.position},...e])},[V,h.title,h.description,x,h.id,h.jsx,h.action,h.cancel]);let eS=S.default.useCallback(()=>{q(!0),et(ev.current),x(e=>e.filter(e=>e.toastId!==h.id)),setTimeout(()=>{N(h)},200)},[h,N,x,ev]);S.default.useEffect(()=>{let e;if((!h.promise||"loading"!==ed)&&h.duration!==1/0&&"loading"!==h.type){if(j||v||ej){if(ex.current<eg.current){let e=new Date().getTime()-eg.current;ea.current=ea.current-e}ex.current=new Date().getTime()}else ea.current!==1/0&&(eg.current=new Date().getTime(),e=setTimeout(()=>{null==h.onAutoClose||h.onAutoClose.call(h,h),eS()},ea.current));return()=>clearTimeout(e)}},[j,v,h,ed,ej,eS]),S.default.useEffect(()=>{h.delete&&(eS(),null==h.onDismiss||h.onDismiss.call(h,h))},[eS,h.delete]);let eE=h.icon||(null==$?void 0:$[ed])||(e=>{switch(e){case"success":return aH;case"info":return aB;case"warning":return a_;case"error":return aW;default:return null}})(ed);return S.default.createElement("li",{tabIndex:0,ref:ei,className:aX(T,eu,null==O?void 0:O.toast,null==h||null==(t=h.classNames)?void 0:t.toast,null==O?void 0:O.default,null==O?void 0:O[ed],null==h||null==(r=h.classNames)?void 0:r[ed]),"data-sonner-toast":"","data-rich-colors":null!=(c=h.richColors)?c:C,"data-styled":!(h.jsx||h.unstyled||g),"data-mounted":V,"data-promise":!!h.promise,"data-swiped":J,"data-removed":U,"data-visible":es,"data-y-position":ey,"data-x-position":ew,"data-index":w,"data-front":el,"data-swiping":K,"data-dismissible":ec,"data-type":ed,"data-invert":eN,"data-swipe-out":X,"data-swipe-direction":B,"data-expanded":!!(j||z&&V),"data-testid":h.testId,style:{"--index":w,"--toasts-before":w,"--z-index":k.length-w,"--offset":`${U?ee:ev.current}px`,"--initial-height":z?"auto":`${er}px`,...R,...h.style},onDragEnd:()=>{Y(!1),_(null),eb.current=null},onPointerDown:e=>{2===e.button||eC||!ec||(eo.current=new Date,et(ev.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(Y(!0),eb.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,r,n,a;if(X||!ec)return;eb.current=null;let o=Number((null==(e=ei.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),i=Number((null==(t=ei.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),l=new Date().getTime()-(null==(r=eo.current)?void 0:r.getTime()),s="x"===H?o:i,d=Math.abs(s)/l;if(Math.abs(s)>=45||d>.11){et(ev.current),null==h.onDismiss||h.onDismiss.call(h,h),"x"===H?W(o>0?"right":"left"):W(i>0?"down":"up"),eS(),Z(!0);return}null==(n=ei.current)||n.style.setProperty("--swipe-amount-x","0px"),null==(a=ei.current)||a.style.setProperty("--swipe-amount-y","0px"),Q(!1),Y(!1),_(null)},onPointerMove:t=>{var r,n,a,o;if(!eb.current||!ec||(null==(r=window.getSelection())?void 0:r.toString().length)>0)return;let i=t.clientY-eb.current.y,l=t.clientX-eb.current.x,s=null!=(o=e.swipeDirections)?o:function(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}(L);
21!H&&(Math.abs(l)>1||Math.abs(i)>1)&&_(Math.abs(l)>Math.abs(i)?"x":"y");let d={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if("y"===H){if(s.includes("top")||s.includes("bottom"))if(s.includes("top")&&i<0||s.includes("bottom")&&i>0)d.y=i;else{let e=i*c(i);d.y=Math.abs(e)<Math.abs(i)?e:i}}else if("x"===H&&(s.includes("left")||s.includes("right")))if(s.includes("left")&&l<0||s.includes("right")&&l>0)d.x=l;else{let e=l*c(l);d.x=Math.abs(e)<Math.abs(l)?e:l}(Math.abs(d.x)>0||Math.abs(d.y)>0)&&Q(!0),null==(n=ei.current)||n.style.setProperty("--swipe-amount-x",`${d.x}px`),null==(a=ei.current)||a.style.setProperty("--swipe-amount-y",`${d.y}px`)}},em&&!h.jsx&&"loading"!==ed?S.default.createElement("button",{"aria-label":F,"data-disabled":eC,"data-close-button":!0,onClick:eC||!ec?()=>{}:()=>{eS(),null==h.onDismiss||h.onDismiss.call(h,h)},className:aX(null==O?void 0:O.closeButton,null==h||null==(n=h.classNames)?void 0:n.closeButton)},null!=(u=null==$?void 0:$.close)?u:aV):null,(ed||h.icon||h.promise)&&null!==h.icon&&((null==$?void 0:$[ed])!==null||h.icon)?S.default.createElement("div",{"data-icon":"",className:aX(null==O?void 0:O.icon,null==h||null==(a=h.classNames)?void 0:a.icon)},h.promise||"loading"===h.type&&!h.icon?h.icon||((null==$?void 0:$.loading)?S.default.createElement("div",{className:aX(null==O?void 0:O.loader,null==h||null==(f=h.classNames)?void 0:f.loader,"sonner-loader"),"data-visible":"loading"===ed},$.loading):S.default.createElement(aF,{className:aX(null==O?void 0:O.loader,null==h||null==(p=h.classNames)?void 0:p.loader),visible:"loading"===ed})):null,"loading"!==h.type?eE:null):null,S.default.createElement("div",{"data-content":"",className:aX(null==O?void 0:O.content,null==h||null==(o=h.classNames)?void 0:o.content)},S.default.createElement("div",{"data-title":"",className:aX(null==O?void 0:O.title,null==h||null==(i=h.classNames)?void 0:i.title)},h.jsx?h.jsx:"function"==typeof h.title?h.title():h.title),h.description?S.default.createElement("div",{"data-description":"",className:aX(I,ep,null==O?void 0:O.description,null==h||null==(l=h.classNames)?void 0:l.description)},"function"==typeof h.description?h.description():h.description):null),S.default.isValidElement(h.cancel)?h.cancel:h.cancel&&aY(h.cancel)?S.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||M,onClick:e=>{!aY(h.cancel)||ec&&(null==h.cancel.onClick||h.cancel.onClick.call(h.cancel,e),eS())},className:aX(null==O?void 0:O.cancelButton,null==h||null==(s=h.classNames)?void 0:s.cancelButton)},h.cancel.label):null,S.default.isValidElement(h.action)?h.action:h.action&&aY(h.action)?S.default.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||P,onClick:e=>{!aY(h.action)||(null==h.action.onClick||h.action.onClick.call(h.action,e),e.defaultPrevented||eS())},className:aX(null==O?void 0:O.actionButton,null==h||null==(d=h.classNames)?void 0:d.actionButton)},h.action.label):null)};function aJ(){if("u"<typeof window||"u"<typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}let aQ=S.default.forwardRef(function(e,t){let{id:r,invert:n,position:a="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:l,className:s,offset:d,mobileOffset:c,theme:u="light",richColors:p,duration:f,style:m,visibleToasts:h=3,toastOptions:g,dir:v=aJ(),gap:x=14,icons:b,containerAriaLabel:y="Notifications"}=e,[w,k]=S.default.useState([]),j=S.default.useMemo(()=>r?w.filter(e=>e.toasterId===r):w.filter(e=>!e.toasterId),[w,r]),N=S.default.useMemo(()=>Array.from(new Set([a].concat(j.filter(e=>e.position).map(e=>e.position)))),[j,a]),[C,E]=S.default.useState([]),[R,M]=S.default.useState(!1),[P,T]=S.default.useState(!1),[I,D]=S.default.useState("system"!==u?u:"u">typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),L=S.default.useRef(null),A=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),z=S.default.useRef(null),O=S.default.useRef(!1),$=S.default.useCallback(e=>{k(t=>{var r;return(null==(r=t.find(t=>
21t.id===e.id))?void 0:r.delete)||aU.dismiss(e.id),t.filter(({id:t})=>t!==e.id)})},[]);return S.default.useEffect(()=>aU.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{k(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))}):setTimeout(()=>{t0.default.flushSync(()=>{k(t=>{let r=t.findIndex(t=>t.id===e.id);return -1!==r?[...t.slice(0,r),{...t[r],...e},...t.slice(r+1)]:[e,...t]})})})}),[w]),S.default.useEffect(()=>{if("system"!==u)return void D(u);if("system"===u&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?D("dark"):D("light")),"u"<typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",({matches:e})=>{e?D("dark"):D("light")})}catch(t){e.addListener(({matches:e})=>{try{e?D("dark"):D("light")}catch(e){console.error(e)}})}},[u]),S.default.useEffect(()=>{w.length<=1&&M(!1)},[w]),S.default.useEffect(()=>{let e=e=>{var t,r;o.every(t=>e[t]||e.code===t)&&(M(!0),null==(r=L.current)||r.focus()),"Escape"===e.code&&(document.activeElement===L.current||(null==(t=L.current)?void 0:t.contains(document.activeElement)))&&M(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o]),S.default.useEffect(()=>{if(L.current)return()=>{z.current&&(z.current.focus({preventScroll:!0}),z.current=null,O.current=!1)}},[L.current]),S.default.createElement("section",{ref:t,"aria-label":`${y} ${A}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map((t,r)=>{var a;let o,[u,y]=t.split("-");return j.length?S.default.createElement("ol",{key:t,dir:"auto"===v?aJ():v,tabIndex:-1,ref:L,className:s,"data-sonner-toaster":!0,"data-sonner-theme":I,"data-y-position":u,"data-x-position":y,style:{"--front-toast-height":`${(null==(a=C[0])?void 0:a.height)||0}px`,"--width":"356px","--gap":`${x}px`,...m,...(o={},[d,c].forEach((e,t)=>{let r=1===t,n=r?"--mobile-offset":"--offset",a=r?"16px":"24px";function i(e){["top","right","bottom","left"].forEach(t=>{o[`${n}-${t}`]="number"==typeof e?`${e}px`:e})}"number"==typeof e||"string"==typeof e?i(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?o[`${n}-${t}`]=a:o[`${n}-${t}`]="number"==typeof e[t]?`${e[t]}px`:e[t]}):i(a)}),o)},onBlur:e=>{O.current&&!e.currentTarget.contains(e.relatedTarget)&&(O.current=!1,z.current&&(z.current.focus({preventScroll:!0}),z.current=null))},onFocus:e=>{!(e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible)&&(O.current||(O.current=!0,z.current=e.relatedTarget))},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{P||M(!1)},onDragEnd:()=>M(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||T(!0)},onPointerUp:()=>T(!1)},j.filter(e=>!e.position&&0===r||e.position===t).map((r,a)=>{var o,s;return S.default.createElement(aZ,{key:r.id,icons:b,index:a,toast:r,defaultRichColors:p,duration:null!=(o=null==g?void 0:g.duration)?o:f,className:null==g?void 0:g.className,descriptionClassName:null==g?void 0:g.descriptionClassName,invert:n,visibleToasts:h,closeButton:null!=(s=null==g?void 0:g.closeButton)?s:l,interacting:P,position:t,style:null==g?void 0:g.style,unstyled:null==g?void 0:g.unstyled,classNames:null==g?void 0:g.classNames,cancelButtonStyle:null==g?void 0:g.cancelButtonStyle,actionButtonStyle:null==g?void 0:g.actionButtonStyle,closeButtonAriaLabel:null==g?void 0:g.closeButtonAriaLabel,removeToast:$,toasts:j.filter(e=>e.position==r.position),heights:C.filter(e=>e.position==r.position),setHeights:E,expandByDefault:i,gap:x,expanded:R,swipeDirections:e.swipeDirections})})):null}))});e.s(["Toaster",0,aQ,"toast",0,aK],846696),e.s(["Toaster",0,function({position:e="bottom-right",offset:t}){return(0,C.jsx)(aQ,{position:e,offset:t,icons:{success:(0,C.jsx)(eO.Check,{size:16,strokeWidth:2.5,className:"text-emerald-400"}),error:(0,C.jsx)(tz.X,{size:16,strokeWidth:2.5,className:"text-rose-400"})},toastOptions:{classNames:{toast:"!bg-neutral-900 !text-white !border-0 !rounded-xl !shadow-lg"}}})}],246366);let a0=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)("textarea",{className:(0,B.cn)("flex w-full px-3 py-2 min-h-[80px] rounded-md border border-border bg-background text-sm text-foreground placeholder:text-foreground
21/30 focus:outline-none focus:ring-2 focus:ring-foreground/40 disabled:cursor-not-allowed disabled:opacity-50 resize-y",e),ref:r,...t}));a0.displayName="Textarea",e.s(["Textarea",0,a0],214877);var a1=Object.defineProperty,a2=Object.defineProperties,a5=Object.getOwnPropertyDescriptors,a4=Object.getOwnPropertySymbols,a3=Object.prototype.hasOwnProperty,a6=Object.prototype.propertyIsEnumerable,a8=(e,t,r)=>t in e?a1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,a7=S.createContext({}),a9=S.forwardRef((e,t)=>{let r;var n,a,o,i,l,{value:s,onChange:d,maxLength:c,textAlign:u="left",pattern:p,placeholder:f,inputMode:m="numeric",onComplete:h,pushPasswordManagerStrategy:g="increase-width",pasteTransformer:v,containerClassName:x,noScriptCSSFallback:b=ot,render:y,children:w}=e,k=((e,t)=>{var r={};for(var n in e)a3.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&a4)for(var n of a4(e))0>t.indexOf(n)&&a6.call(e,n)&&(r[n]=e[n]);return r})(e,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[j,N]=S.useState("string"==typeof k.defaultValue?k.defaultValue:""),C=null!=s?s:j,E=(r=S.useRef(),S.useEffect(()=>{r.current=C}),r.current),R=S.useCallback(e=>{null==d||d(e),N(e)},[d]),M=S.useMemo(()=>p?"string"==typeof p?new RegExp(p):p:null,[p]),P=S.useRef(null),T=S.useRef(null),I=S.useRef({value:C,onChange:R,isIOS:"u">typeof window&&(null==(a=null==(n=null==window?void 0:window.CSS)?void 0:n.supports)?void 0:a.call(n,"-webkit-touch-callout","none"))}),D=S.useRef({prev:[null==(o=P.current)?void 0:o.selectionStart,null==(i=P.current)?void 0:i.selectionEnd,null==(l=P.current)?void 0:l.selectionDirection]});S.useImperativeHandle(t,()=>P.current,[]),S.useEffect(()=>{let e=P.current,t=T.current;if(!e||!t)return;function r(){if(document.activeElement!==e){F(null),_(null);return}let t=e.selectionStart,r=e.selectionEnd,n=e.selectionDirection,a=e.maxLength,o=e.value,i=D.current.prev,l=-1,s=-1,d;if(0!==o.length&&null!==t&&null!==r){let e=t===r,n=t===o.length&&o.length<a;if(e&&!n){if(0===t)l=0,s=1,d="forward";else if(t===a)l=t-1,s=t,d="backward";else if(a>1&&o.length>1){let e=0;if(null!==i[0]&&null!==i[1]){d=t<i[1]?"backward":"forward";let r=i[0]===i[1]&&i[0]<a;"backward"!==d||r||(e=-1)}l=e+t,s=e+t+1}}-1!==l&&-1!==s&&l!==s&&P.current.setSelectionRange(l,s,d)}let c=-1!==l?l:t,u=-1!==s?s:r,p=null!=d?d:n;F(c),_(u),D.current.prev=[c,u,p]}if(I.current.value!==e.value&&I.current.onChange(e.value),D.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",r,{capture:!0}),r(),document.activeElement===e&&O(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";oe(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),oe(e.sheet,`[data-input-otp]:autofill { ${t} }`),oe(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),oe(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),oe(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let n=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};n();let a=new ResizeObserver(n);return a.observe(e),()=>{document.removeEventListener("selectionchange",r,{capture:!0}),a.disconnect()}},[]);let[L,A]=S.useState(!1),[z,O]=S.useState(!1),[$,F]=S.useState(null),[H,_]=S.useState(null);S.useEffect(()=>{var e;setTimeout(e=()=>{var e,t,r,n;null==(e=P.current)||e.dispatchEvent(new Event("input"));let a=null==(t=P.current)?void 0:t.selectionStart,o=null==(r=P.current)?void 0:r.selectionEnd,i=null==(n=P.current)?void 0:n.selectionDirection;null!==a&&null!==o&&(F(a),_(o),D.current.prev=[a,o,i])},0),setTimeout(e,10),setTimeout(e,50)},[C,z]),S.useEffect(()=>{void 0!==E&&C!==E&&E.length<c&&C.length===c&&(null==h||h(C))},[c,h,E,C]);let B=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:r,isFocused:n}){let[a,o]=S.useState(!1),[i,l]=S.useState(!1),[s,d]=S.useState(!1),c=S.useMemo(()=>"none"!==r&&("increase-width"===r||"experimental-no-flickering"===r)&&a&&i,[a,i,r]),u=S.useCallback(()=>{let n=e.current,a=t.current;if(!n||!a||s||"none"===r)return;let i=n.getBoundingClientRect().left+n.offsetWidth,l=n.getBoundingClientRect().top+n.offsetHeight/2;0===document.querySelectorAll('[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;"]').length&&document.elementFromPoint(i-18,l)===n||(o(!0),d(!0))},[e,t,s,r]);return S.useEffect(()=>{let t=e.current;if(!t||"none"===r)return;function n(){l(window.innerWidth-t.getBoundingClientRect().right>=40)}n();let a=setInterval(n,1e3);return()=>{clearInterval(a)}},[e,r]),S.useEffect(()=>{let e=n||document.activeElement===t.current;if("none"===r||!e)return;let a=setTimeout(u,0),o=setTimeout(u,2e3),i=setTimeout(u,5e3),l=setTimeout(()=>{d(!0)},6e3);return()=>{clearTimeout(a),clearTimeout(o),clearTimeout(i),clearTimeout(l)}},[t,n,r,u]),{hasPWMBadge:a,willPushPWMBadge:c,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:T,inputRef:P,pushPasswordManagerStrategy:g,isFocused:z}),W=S.useCallback(e=>{let t=e.currentTarget.value.slice(0,c);t.length>0&&M&&!M.test(t)?e.preventDefault():("string"==typeof E&&t.length<E.length&&document.dispatchEvent(new Event("selectionchange")),R(t))},[c,R,E,M]),V=S.useCallback(()=>{var e;if(P.current){let t=Math.min(P.current.value.length,c-1),r=P.current.value.length;null==(e=P.current)||e.setSelectionRange(t,r),F(t),_(r)}O(!0)},[c]),G=S.useCallback(e=>{var t,r;let n=P.current;if(!v&&(!I.current.isIOS||!e.clipboardData||!n))return;let a=e.clipboardData.getData("text/plain"),o=v?v(a):a;e.preventDefault();let i=null==(t=P.current)?void 0:t.selectionStart,l=null==(r=P.current)?void 0:r.selectionEnd,s=(i!==l?C.slice(0,i)+o+C.slice(l):C.slice(0,i)+o+C.slice(i)).slice(0,c);if(s.length>0&&M&&!M.test(s))return;n.value=s,R(s);let d=Math.min(s.length,c-1),u=s.length;n.setSelectionRange(d,u),F(d),_(u)},[c,R,M,C]),U=S.useMemo(()=>
21({position:"relative",cursor:k.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[k.disabled]),q=S.useMemo(()=>({position:"absolute",inset:0,width:B.willPushPWMBadge?`calc(100% + ${B.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:B.willPushPWMBadge?`inset(0 ${B.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:u,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[B.PWM_BADGE_SPACE_WIDTH,B.willPushPWMBadge,u]),K=S.useMemo(()=>S.createElement("input",a2(((e,t)=>{for(var r in t||(t={}))a3.call(t,r)&&a8(e,r,t[r]);if(a4)for(var r of a4(t))a6.call(t,r)&&a8(e,r,t[r]);return e})({autoComplete:k.autoComplete||"one-time-code"},k),a5({"data-input-otp":!0,"data-input-otp-placeholder-shown":0===C.length||void 0,"data-input-otp-mss":$,"data-input-otp-mse":H,inputMode:m,pattern:null==M?void 0:M.source,"aria-placeholder":f,style:q,maxLength:c,value:C,ref:P,onPaste:e=>{var t;G(e),null==(t=k.onPaste)||t.call(k,e)},onChange:W,onMouseOver:e=>{var t;A(!0),null==(t=k.onMouseOver)||t.call(k,e)},onMouseLeave:e=>{var t;A(!1),null==(t=k.onMouseLeave)||t.call(k,e)},onFocus:e=>{var t;V(),null==(t=k.onFocus)||t.call(k,e)},onBlur:e=>{var t;O(!1),null==(t=k.onBlur)||t.call(k,e)}}))),[W,V,G,m,q,c,H,$,k,null==M?void 0:M.source,C]),Y=S.useMemo(()=>({slots:Array.from({length:c}).map((e,t)=>{var r;let n=z&&null!==$&&null!==H&&($===H&&t===$||t>=$&&t<H),a=void 0!==C[t]?C[t]:null;return{char:a,placeholderChar:void 0!==C[0]?null:null!=(r=null==f?void 0:f[t])?r:null,isActive:n,hasFakeCaret:n&&null===a}}),isFocused:z,isHovering:!k.disabled&&L}),[z,L,c,H,$,k.disabled,C]),X=S.useMemo(()=>y?y(Y):S.createElement(a7.Provider,{value:Y},w),[w,Y,y]);return S.createElement(S.Fragment,null,null!==b&&S.createElement("noscript",null,S.createElement("style",null,b)),S.createElement("div",{ref:T,"data-input-otp-container":!0,style:U,className:x},X,S.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},K)))});function oe(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}a9.displayName="Input";var ot=`
22[data-input-otp] {
23  --nojs-bg: white !important;
24  --nojs-fg: black !important;
25
26  background-color: var(--nojs-bg) !important;
27  color: var(--nojs-fg) !important;
28  caret-color: var(--nojs-fg) !important;
29  letter-spacing: .25em !important;
30  text-align: center !important;
31  border: 1px solid var(--nojs-fg) !important;
32  border-radius: 4px !important;
33  width: 100% !important;
34}
35@media (prefers-color-scheme: dark) {
36  [data-input-otp] {
37    --nojs-bg: black !important;
38    --nojs-fg: white !important;
39  }
40}`;let or=S.forwardRef(({className:e,containerClassName:t,...r},n)=>(0,C.jsx)(a9,{ref:n,containerClassName:(0,B.cn)("flex items-center gap-2 has-disabled:opacity-50",t),className:(0,B.cn)("disabled:cursor-not-allowed",e),...r}));or.displayName="InputOTP";let on=S.forwardRef(({className:e,...t},r)=>(0,C.jsx)("div",{ref:r,className:(0,B.cn)("flex items-center",e),...t}));on.displayName="InputOTPGroup";let oa=(0,_.cva)("relative flex items-center justify-center border border-border rounded-md bg-background text-sm transition-all",{variants:{size:{default:"h-10 w-10",lg:"h-12 w-12 text-lg",xl:"h-14 w-14 text-xl font-medium"}},defaultVariants:{size:"default"}}),oo=S.forwardRef(({index:e,size:t,className:r,...n},a)=>{let o=S.useContext(a7).slots[e];if(!o)return null;let{char:i,hasFakeCaret:l,isActive:s}=o;return(0,C.jsxs)("div",{ref:a,className:(0,B.cn)(oa({size:t}),s&&"z-10 ring-2 ring-foreground/40",r),...n,children:[i,l&&(0,C.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,C.jsx)("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});oo.displayName="InputOTPSlot",S.forwardRef(({...e},t)=>(0,C.jsx)("div",{ref:t,role:"separator",...e,children:(0,C.jsx)(rQ,{className:"h-4 w-4 text-muted-foreground"})})).displayName="InputOTPSeparator",e.s(["InputOTP",0,or,"InputOTPGroup",0,on,"InputOTPSlot",0,oo],576326);let oi=S.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},a)=>
40(0,C.jsx)("div",{ref:a,role:r?"none":"separator","aria-orientation":r?void 0:t,className:(0,B.cn)("shrink-0 bg-border","horizontal"===t?"h-px w-full":"h-full w-px",e),...n}));oi.displayName="Separator",e.s(["Separator",0,oi],87352);var ol="Toggle",os=S.forwardRef((e,t)=>{let{pressed:r,defaultPressed:n,onPressedChange:a,...o}=e,[i,l]=(0,Q.useControllableState)({prop:r,onChange:a,defaultProp:n??!1,caller:ol});return(0,C.jsx)(Z.Primitive.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...o,ref:t,onClick:(0,W.composeEventHandlers)(e.onClick,()=>{e.disabled||l(!i)})})});os.displayName=ol;var od="ToggleGroup",[oc,ou]=(0,G.createContextScope)(od,[r1.createRovingFocusGroupScope]),op=(0,r1.createRovingFocusGroupScope)(),of=S.default.forwardRef((e,t)=>{let{type:r,...n}=e;if("single"===r)return(0,C.jsx)(og,{...n,ref:t});if("multiple"===r)return(0,C.jsx)(ov,{...n,ref:t});throw Error(`Missing prop \`type\` expected on \`${od}\``)});of.displayName=od;var[om,oh]=oc(od),og=S.default.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:a=()=>{},...o}=e,[i,l]=(0,Q.useControllableState)({prop:r,defaultProp:n??"",onChange:a,caller:od});return(0,C.jsx)(om,{scope:e.__scopeToggleGroup,type:"single",value:S.default.useMemo(()=>i?[i]:[],[i]),onItemActivate:l,onItemDeactivate:S.default.useCallback(()=>l(""),[l]),children:(0,C.jsx)(oy,{...o,ref:t})})}),ov=S.default.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:a=()=>{},...o}=e,[i,l]=(0,Q.useControllableState)({prop:r,defaultProp:n??[],onChange:a,caller:od}),s=S.default.useCallback(e=>l((t=[])=>[...t,e]),[l]),d=S.default.useCallback(e=>l((t=[])=>t.filter(t=>t!==e)),[l]);return(0,C.jsx)(om,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:s,onItemDeactivate:d,children:(0,C.jsx)(oy,{...o,ref:t})})});of.displayName=od;var[ox,ob]=oc(od),oy=S.default.forwardRef((e,t)=>{let{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:a=!0,orientation:o,dir:i,loop:l=!0,...s}=e,d=op(r),c=(0,r2.useDirection)(i),u={role:"group",dir:c,...s};return(0,C.jsx)(ox,{scope:r,rovingFocus:a,disabled:n,children:a?(0,C.jsx)(r1.Root,{asChild:!0,...d,orientation:o,dir:c,loop:l,children:(0,C.jsx)(Z.Primitive.div,{...u,ref:t})}):(0,C.jsx)(Z.Primitive.div,{...u,ref:t})})}),ow="ToggleGroupItem",ok=S.default.forwardRef((e,t)=>{let r=oh(ow,e.__scopeToggleGroup),n=ob(ow,e.__scopeToggleGroup),a=op(e.__scopeToggleGroup),o=r.value.includes(e.value),i=n.disabled||e.disabled,l={...e,pressed:o,disabled:i},s=S.default.useRef(null);return n.rovingFocus?(0,C.jsx)(r1.Item,{asChild:!0,...a,focusable:!i,active:o,ref:s,children:(0,C.jsx)(oj,{...l,ref:t})}):(0,C.jsx)(oj,{...l,ref:t})});ok.displayName=ow;var oj=S.default.forwardRef((e,t)=>{let{__scopeToggleGroup:r,value:n,...a}=e,o=oh(ow,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l="single"===o.type?i:void 0;return(0,C.jsx)(os,{...l,...a,ref:t,onPressedChange:e=>{e?o.onItemActivate(n):o.onItemDeactivate(n)}})});let oN=S.createContext({size:"default",variant:"default"}),oC=S.forwardRef(({className:e,variant:t="default",size:r="default",children:n,...a},o)=>(0,C.jsx)(of,{ref:o,className:(0,B.cn)("inline-flex items-center justify-center gap-1",e),...a,children:(0,C.jsx)(oN.Provider,{value:{variant:t,size:r},children:n})}));oC.displayName=of.displayName;let oS=S.forwardRef(({className:e,children:t,variant:r,size:n,...a},o)=>{let i=S.useContext(oN),l=r||i.variant||"default",s=n||i.size||"default";return(0,C.jsx)(ok,{ref:o,className:(0,B.cn)("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors","hover:bg-muted hover:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{"h-10 px-3":"default"===s,"h-9 px-2.5":"sm"===s,"h-11 px-5":"lg"===s},"outline"===l&&"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground",e),...a,children:t})});oS.displayName=ok.displayName,e.s(["ToggleGroup",0,oC,"ToggleGroupItem",0,oS],991686),e.i(660344),e.i(521329),e.i(207936),e.i(209534),e.i(851033),(0,eM.default)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),(0,eM.default)("shopping-cart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}
40],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]),(0,eM.default)("inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]),(0,eM.default)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),(0,eM.default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),t4.Settings,s.Avatar,d.Badge,c.Button,y.Card,u.EmptyState,m.FlowPage,p.PageLoader,f.PageHeader,h.SectionHeader,g.SearchInput,v.TimezoneSelector,x.DateTimePicker,b.MultiSelect,w.Logo,k.NavBadge;let oE={id:"workclaw",name:"WorkClaw",description:"WorkClaw brand with black primary and claw identity",slots:{navigation:{component:"SideNav",props:{mode:"full"}},layout:"centered",density:"comfortable"},tokens:{radius:"lg",spacing:"default",typography:"default"},componentOverrides:{Logo:{defaultProps:{brand:"workclaw"}}}},oR={workclaw:oE,workmate:{id:"workmate",name:"Workmate",description:"Workmate brand with blue accent and W identity",slots:{navigation:{component:"SideNav",props:{mode:"full"}},layout:"centered",density:"comfortable"},tokens:{radius:"lg",spacing:"default",typography:"default"},componentOverrides:{Logo:{defaultProps:{brand:"workmate"}}}},ipad:{id:"ipad",name:"iPad",description:"Touch-friendly, spacious layout with larger targets and rounded surfaces",slots:{navigation:{component:"SideNav",props:{mode:"medium"}},layout:"centered",density:"spacious"},tokens:{radius:"full",spacing:"loose",typography:"expressive"}}},oM="workmate",oP=(0,S.createContext)(null),oT="aiden-direction";e.s(["DirectionProvider",0,({children:e,defaultDirection:t=oM})=>{let[r,n]=(0,S.useState)(t);(0,S.useEffect)(()=>{let e=function(){try{let e=localStorage.getItem(oT);if("default"===e)return localStorage.setItem(oT,"workclaw"),"workclaw";return e||oM}catch{return oM}}();e!==oM&&e!==t&&n(e)},[]);let a=(0,S.useMemo)(()=>oR[r]||oE,[r]),o=(0,S.useCallback)(e=>{let t=oR[e]||oE;n(t.id);var r=t.id;try{localStorage.setItem(oT,r)}catch{}},[]);(0,S.useEffect)(()=>{let e=document.documentElement;return e.dataset.directionRadius=a.tokens.radius||"lg",e.dataset.directionSpacing=a.tokens.spacing||"default",e.dataset.directionTypography=a.tokens.typography||"default",e.dataset.directionDensity=a.slots.density||"comfortable",e.dataset.directionLayout=a.slots.layout||"centered",()=>{delete e.dataset.directionRadius,delete e.dataset.directionSpacing,delete e.dataset.directionTypography,delete e.dataset.directionDensity,delete e.dataset.directionLayout}},[a]);let i=(0,S.useMemo)(()=>({current:a,all:oR,setDirection:o}),[a,o]);return(0,C.jsx)(oP.Provider,{value:i,children:e})},"useDirection",0,function(){let e=(0,S.useContext)(oP);if(!e)throw Error("useDirection must be used within a DirectionProvider");return e}],235118),e.s([],116233)}]);
41
42//# debugId=ab19abcf-7184-d480-ec7a-a3e162f3406f

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.